/* ==========================================================================
   layout.css — Max Digital Services v2
   Product-first hero, editorial pacing, Claude discipline
   ========================================================================== */

/* ====================================================================
   CONTAINER — Claude 1200px max, 1.5rem gutter
   ==================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--prose {
  max-width: var(--container-prose);
}

/* ====================================================================
   SECTION — 96px padding (Claude discipline)
   ==================================================================== */

.section {
  padding-block: var(--section-pad);
  position: relative;
}

.section--tight {
  padding-block: var(--space-8);  /* 64px */
}

.section--alt {
  background: var(--surface);
}

.section--dark {
  background: var(--bg);
  color: var(--fg);
}

.section--featured {
  background: var(--surface-elevated);
}

/* Section header — editorial, centered */
.section-head {
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: var(--space-8);
  text-align: center;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: var(--fw-regular);
  line-height: var(--lh-heading);
  letter-spacing: var(--tr-heading);
  color: var(--fg);
  margin-bottom: var(--space-4);
}

.section-head p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--fg-muted);
  max-width: 60ch;
  margin-inline: auto;
}

.section-head .eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-3);
}

/* ====================================================================
   HERO — Product-First 6/6 grid
   ==================================================================== */

.hero {
  padding-top: var(--space-9);
  padding-bottom: var(--space-9);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  align-items: center;
}

@media (min-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr 1.1fr;  /* text | product (slightly wider for product) */
    gap: var(--space-8);
  }
}

.hero-content {
  max-width: 600px;
}

.hero-content .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--fg-muted);
  padding: var(--space-2) var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-5);
}

.hero-content .eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: var(--fw-regular);
  line-height: var(--lh-display);
  letter-spacing: var(--tr-display);
  color: var(--fg);
  margin-bottom: var(--space-5);
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--fg-muted);
  max-width: 50ch;
  margin-bottom: var(--space-6);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

/* Hero product visual — the Claude-style code/product mockup card */
.hero-product {
  position: relative;
}

.hero-product-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--card-pad);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.hero-product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(191, 255, 0, 0.06), transparent 60%);
  pointer-events: none;
}

/* ====================================================================
   GRIDS — feature 3-up, solutions 4-up, bento
   ==================================================================== */

.grid {
  display: grid;
  gap: var(--space-5);
}

.grid--2 {
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
}

.grid--3 {
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.grid--4 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* Bento — asymmetric, Claude-style product showcase */
.bento {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .bento {
    grid-template-columns: 2fr 1fr;
    grid-auto-rows: minmax(180px, auto);
  }
  .bento > .bento-wide  { grid-column: span 2; }
  .bento > .bento-tall  { grid-row: span 2; }
}

/* ====================================================================
   NAV — 64px, fixed
   ==================================================================== */

.site-nav {
  position: sticky;
  top: 0;
  height: var(--nav-height);
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: var(--z-nav);
}

.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-5);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--fg);
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  font-size: 1rem;
}

.site-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: var(--accent-fg);
  border-radius: var(--radius-sm);
  font-weight: var(--fw-bold);
  font-size: 0.875rem;
}

.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-5);
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
}

.nav-links a {
  color: var(--fg-muted);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: var(--fw-medium);
  transition: color var(--dur-fast) var(--ease-out);
}

.nav-links a:hover {
  color: var(--fg);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Mobile menu trigger */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--fg);
  cursor: pointer;
}

@media (min-width: 960px) {
  .nav-toggle { display: none; }
}

/* ====================================================================
   FOOTER — Claude dark surface, 4-col
   ==================================================================== */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border-subtle);
  padding-block: var(--space-8);
  margin-top: var(--space-9);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-7);
}

@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: var(--space-4);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: var(--space-2);
}

.footer-col a {
  color: var(--fg);
  text-decoration: none;
  font-size: var(--fs-body-sm);
  transition: color var(--dur-fast) var(--ease-out);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-subtle);
  font-size: var(--fs-caption);
  color: var(--fg-faint);
}

/* ====================================================================
   EDITORIAL — magazine column for long-form sections
   ==================================================================== */

.editorial {
  max-width: var(--container-prose);
  margin-inline: auto;
}

.editorial p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--fg-muted);
  margin-bottom: var(--space-5);
}

.editorial p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.5em;
  font-weight: var(--fw-regular);
  float: left;
  line-height: 0.85;
  margin-right: 0.1em;
  margin-top: 0.05em;
  color: var(--accent);
}

/* ====================================================================
   CTA BAND — full-bleed accent (Claude: callout-card-coral equivalent)
   ==================================================================== */

.cta-band {
  background: var(--accent);
  color: var(--accent-fg);
  border-radius: var(--radius-md);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  margin-block: var(--space-9);
  position: relative;
  overflow: hidden;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: var(--fw-regular);
  line-height: var(--lh-heading);
  letter-spacing: var(--tr-heading);
  color: var(--accent-fg);
  margin-bottom: var(--space-4);
}

.cta-band p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--accent-fg);
  opacity: 0.85;
  max-width: 50ch;
  margin-inline: auto;
  margin-bottom: var(--space-6);
}

.cta-band .btn--inverse {
  background: var(--bg);
  color: var(--fg);
}

.cta-band .btn--inverse:hover {
  background: var(--surface-elevated);
}

/* ====================================================================
   RESPONSIVE
   ==================================================================== */

@media (max-width: 720px) {
  :root {
    --section-pad: var(--space-8);
  }
}
