  :root {
    /* Backgrounds — bg/bg-2 shifted to match reference; verified AA */
    --bg: #111827;
    --bg-2: #161e2e;
    --surface: #11282e;
    --surface-2: #173640;

    /* Lines — opacity bumped to compensate for lighter --bg */
    --line: rgba(1, 158, 190, 0.40);
    --line-soft: rgba(1, 158, 190, 0.20);

    /* Text */
    --text: #ffffff;
    --text-dim: #b8cdd3;
    --text-mute: #94a8ae;

    /* Accents */
    --accent: #019ebe;
    --accent-bright: #2dc7e6;
    --accent-soft: #017a95;
    --accent-bg: rgba(1, 158, 190, 0.14);
    --accent-glow: rgba(1, 158, 190, 0.32);

    /* Gold — used ONLY on big metric numbers and 1px accent stripes */
    --gold: #f0cc7a;
    --gold-soft: rgba(240, 204, 122, 0.18);

    /* State */
    --red: #ef4444;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html, body { background: var(--bg); color: var(--text); font-family: 'Montserrat', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
  body { overflow-x: hidden; }
  a { color: inherit; text-decoration: none; }
  button { font: inherit; color: inherit; cursor: pointer; }

  .container { max-width: 1200px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }

  /* Surfaces (mirrored from wenbi-txl/frontend/app/globals.css) */
  .surface-card {
    background: linear-gradient(135deg, rgba(23, 54, 64, 0.85) 0%, rgba(15, 38, 45, 0.88) 100%);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      inset 0 0 80px rgba(1, 158, 190, 0.08),
      0 1px 0 rgba(0, 0, 0, 0.25),
      0 8px 24px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
  }
  .surface-card-elevated {
    background: linear-gradient(135deg, rgba(31, 70, 82, 0.9) 0%, rgba(20, 48, 56, 0.92) 100%);
    border: 1px solid rgba(1, 158, 190, 0.45);
    border-radius: 14px;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      inset 0 0 100px rgba(1, 158, 190, 0.12),
      0 2px 16px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
  }
  .hero-number {
    text-shadow: 0 0 24px rgba(1, 158, 190, 0.28);
    color: var(--text);
  }
  .nav-active {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 100%);
    color: var(--text) !important;
    box-shadow:
      0 0 18px rgba(1, 158, 190, 0.45),
      inset 0 1px 0 rgba(255, 255, 255, 0.18);
  }

  /* GOLD — expanded accent voice (header CTA, eyebrow, favorable metrics) */
  /* Italic gold rules for h1.headline em, .section-title em, and the
     About section's [data-tw="aboutAccent"] span live at their canonical
     positions later in this file to win the cascade naturally. */
  .nav-cta-gold {
    background: var(--gold) !important;
    color: #111827 !important;
    box-shadow:
      0 0 0 1px rgba(240, 204, 122, 0.45),
      0 8px 24px rgba(240, 204, 122, 0.18) !important;
  }
  .nav-cta-gold:hover {
    transform: translateY(-1px);
    box-shadow:
      0 0 0 1px var(--gold),
      0 12px 30px rgba(240, 204, 122, 0.30) !important;
  }
  .eyebrow.eyebrow-gold {
    color: var(--text);
    background: rgba(240, 204, 122, 0.10);
    border-color: rgba(240, 204, 122, 0.40);
    padding: 8px 18px;
    font-size: 12.5px;
    letter-spacing: 0.10em;
  }
  .eyebrow.eyebrow-gold .dot {
    width: 8px;
    height: 8px;
    background: var(--gold);
    box-shadow: 0 0 12px var(--gold);
  }
  .num-pos-gold { color: var(--gold); }

  /* NAV */
  .nav {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(14px) saturate(140%);
    background: rgba(6, 9, 10, 0.82);
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
  .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; letter-spacing: 0.02em; }
  .brand-mark {
    width: 22px; height: 22px; border-radius: 4px;
    background: var(--accent);
    box-shadow: 0 0 14px var(--accent-glow);
    position: relative;
    flex-shrink: 0;
  }
  .brand-mark::after {
    content: ""; position: absolute; inset: 4px; border-radius: 1px; background: var(--bg);
  }
  .brand-mark::before {
    content: ""; position: absolute; left: 8px; right: 8px; top: 7px; bottom: 7px; background: var(--accent);
  }
  .brand b { font-family: 'Montserrat', sans-serif; font-weight: 700; }
  .brand small { color: var(--text-dim); font-weight: 500; font-family: 'Montserrat', sans-serif; font-size: 11px; padding-left: 10px; border-left: 1px solid var(--line); margin-left: 0; letter-spacing: 0.04em; line-height: 1; }
  .brand b { line-height: 1; }
  .nav-links { display: flex; align-items: center; gap: 2px; }
  .nav-links a {
    padding: 8px 14px; border-radius: 6px; font-size: 13.5px; color: var(--text-dim);
    transition: color .15s, background .15s;
  }
  .nav-links a:hover { color: var(--text); background: var(--surface); }
  .nav-cta {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 14px; border-radius: 6px;
    background: var(--accent); color: #06251a;
    font-size: 12.5px; font-weight: 600;
    white-space: nowrap;
    line-height: 1.1;
    transition: transform .15s, box-shadow .15s;
    box-shadow: 0 0 0 1px var(--accent), 0 6px 18px var(--accent-glow);
  }
  .nav-cta:hover { transform: translateY(-1px); }
  .nav-cta svg { width: 16px; height: 16px; flex-shrink: 0; }
  .btn-primary svg { width: 18px; height: 18px; flex-shrink: 0; }

  /* HERO */
  .hero { padding: 80px 0 48px; position: relative; }
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
      linear-gradient(rgba(1, 158, 190, 0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(1, 158, 190, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
            mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
    z-index: 0;
  }
  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.7;
    background:
      radial-gradient(600px 400px at 80% 0%, rgba(1, 158, 190, 0.10), transparent 60%),
      radial-gradient(500px 400px at 5% 80%, rgba(240, 204, 122, 0.05), transparent 60%);
    z-index: 0;
  }
  .hero .container { z-index: 1; }
  .hero-inner { position: relative; text-align: center; }
  .eyebrow {
    display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; border-radius: 999px;
    background: var(--accent-bg); border: 1px solid rgba(1, 158, 190, 0.25);
    font-family: 'Montserrat', sans-serif; font-size: 11px; color: var(--accent);
    letter-spacing: 0.08em; text-transform: uppercase;
  }
  .eyebrow .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
  }
  @media (prefers-reduced-motion: no-preference) {
    .eyebrow .dot { animation: pulse 2.4s ease-in-out infinite; }
  }
  @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

  h1.headline {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(52px, 6.4vw, 88px);
    font-weight: 700;
    line-height: 1.0;
    letter-spacing: -0.025em;
    margin-top: 24px;
    text-wrap: balance;
  }
  h1.headline em {
    font-style: italic;
    font-weight: 600;
    font-family: 'Cormorant Garamond', serif;
    color: var(--gold);
  }
  h1.headline span { color: var(--accent); }
  .lede {
    margin: 24px auto 0; font-size: 20px; line-height: 1.55; color: var(--text-dim);
    max-width: 640px;
  }
  .hero-ctas { display: flex; gap: 12px; justify-content: flex-start; margin-top: 36px; }
  .hero-pillars {
    display: flex; gap: 10px; justify-content: center; margin-top: 24px;
    flex-wrap: wrap;
  }
  .pillar-pill {
    padding: 7px 16px; border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--accent-bg);
    font-size: 13px; font-weight: 500;
    color: var(--text);
    letter-spacing: 0.01em;
  }
  /* Pillar strip — desktop: 3 text items breathing in unison */
  .lede-mobile { display: none; }
  .pillar-strip {
    display: inline-flex;
    align-items: baseline;
    gap: 14px;
    margin-top: 26px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text);
  }
  .pillar-sep { color: var(--line); user-select: none; }
  @keyframes pillar-pulse {
    0%, 100% { opacity: 0.7; text-shadow: 0 0 0 rgba(240, 204, 122, 0); }
    50%      { opacity: 1;   text-shadow: 0 0 14px rgba(240, 204, 122, 0.40); }
  }
  @media (prefers-reduced-motion: no-preference) {
    .pillar-text { animation: pillar-pulse 4s ease-in-out infinite; }
  }
  .hero-arc {
    font-family: 'Geist Mono', 'Montserrat', monospace;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-mute);
    text-align: center;
    margin: 40px auto 0;
    max-width: 760px;
  }
  .hero-arc span { color: var(--accent); padding: 0 6px; }
  .btn-primary {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 24px; border-radius: 8px;
    background: var(--accent); color: #06251a; border: none;
    font-size: 15px; font-weight: 600;
    box-shadow: 0 0 0 1px var(--accent), 0 10px 30px var(--accent-glow);
    transition: transform .15s;
  }
  .btn-primary:hover { transform: translateY(-1px); }
  .btn-secondary {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 24px; border-radius: 8px;
    background: transparent; color: var(--text); border: 1px solid var(--line);
    font-size: 15px; font-weight: 500;
    transition: border-color .15s, background .15s;
  }
  .btn-secondary:hover { border-color: var(--accent-soft); background: var(--surface); }

  /* Hero CLI block */
  .hero-code {
    margin: 56px auto 0; max-width: 820px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg-2);
    box-shadow: 0 0 0 1px rgba(1, 158, 190, 0.08), 0 30px 60px -20px rgba(0,0,0,0.6), 0 0 80px -20px var(--accent-glow);
    overflow: hidden;
    text-align: left;
  }
  .hero-code-bar {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 14px; border-bottom: 1px solid var(--line-soft);
    background: var(--surface);
    font-family: 'Montserrat', sans-serif; font-size: 11.5px; color: var(--text-mute);
  }
  .hero-code-bar .dots { display: flex; gap: 6px; margin-right: 8px; }
  .hero-code-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: block; }
  .hero-code-bar .led { margin-left: auto; display: flex; align-items: center; gap: 6px; color: var(--accent); }
  .hero-code-bar .led i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 6px var(--accent); }
  .hero-code-body {
    padding: 22px 24px;
    font-family: 'Montserrat', sans-serif; font-size: 14px; line-height: 1.85;
    color: var(--text);
  }
  .hero-code-body .you { color: var(--text-dim); }
  .hero-code-body .ar { color: var(--text-mute); }
  .hero-code-body .op { color: var(--accent); font-weight: 600; }
  .hero-code-body .kv { color: #f0c674; }
  .hero-code-body .ck { color: #66d9ef; }
  .hero-code-body .ok { color: var(--accent); }

  /* SECTION COMMON */
  section { padding: 80px 0; position: relative; z-index: 1; }
  .section-tag {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 18px;
  }
  /* Gold tags on editorial/brand sections; teal default on everything else.
     Explicit list (not nth-of-type) so removing/reordering sections doesn't flip the map. */
  #about .section-tag,
  #access .section-tag { color: var(--gold); }
  .section-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(34px, 3.8vw, 52px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.05;
    text-wrap: balance;
  }
  .section-title em {
    font-style: italic;
    font-weight: 600;
    font-family: 'Cormorant Garamond', serif;
    color: var(--gold);
  }
  .section-title [data-tw="aboutAccent"] {
    font-style: italic;
    font-weight: 600;
    font-family: 'Cormorant Garamond', serif;
    color: var(--gold);
  }
  .section-title span { color: var(--accent); }
  .section-sub { color: var(--text-dim); font-size: 18px; line-height: 1.55; max-width: 640px; margin-top: 16px; }
  .section-head { text-align: center; margin: 0 auto 56px; max-width: 760px; }
  .section-head .section-sub { margin-left: auto; margin-right: auto; }

  /* Coverage strip (sits in .section-head, after .section-sub) */
  .coverage-strip {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dim);
    margin: 20px auto 0;
    max-width: 760px;
  }
  .coverage-live,
  .coverage-next,
  .coverage-later {
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  .coverage-live { color: var(--accent-bright); }
  .coverage-next { color: var(--gold); }
  .coverage-later { color: var(--text-dim); }

  /* PROOF */
  .num-pos { color: var(--gold); text-shadow: 0 0 24px rgba(240, 204, 122, 0.35); }
  .num-neg { color: var(--red); text-shadow: 0 0 24px rgba(239, 68, 68, 0.25); }

  .proof-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 0 auto 28px;
    max-width: 980px;
  }
  .proof-tile {
    padding: 36px 24px;
    text-align: center;
  }
  .proof-tile-num {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(64px, 7.5vw, 104px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
  }
  .proof-tile-suffix {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.6em;
    font-weight: 700;
    margin-left: 2px;
    opacity: 0.85;
  }
  .proof-tile-lbl {
    margin-top: 16px;
    font-size: 12px;
    color: var(--text-mute);
    letter-spacing: 0.18em;
    font-weight: 600;
  }

  .proof-tested {
    padding: 26px 32px;
    max-width: 880px;
    margin: 40px auto 0;
  }
  .proof-tested-head {
    font-size: 11px;
    color: var(--gold);
    letter-spacing: 0.18em;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
  }
  .proof-tested-list {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    line-height: 1.75;
    color: var(--text);
  }
  .proof-tested-dot {
    color: var(--text-mute);
    margin: 0 10px;
    opacity: 0.6;
  }
  .proof-tested-more {
    color: var(--text-mute);
    font-style: italic;
  }

  /* Card grid (originally How It Works; now reused by Features) */
  .how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 32px; }
  .how-card {
    border: 1px solid var(--line); border-radius: 12px; padding: 32px;
    background: var(--bg-2); display: flex; flex-direction: column; gap: 14px;
  }
  .how-card .lab { font-family: 'Montserrat', sans-serif; font-size: 14px; color: var(--accent); letter-spacing: 0.14em; font-weight: 600; }
  .how-card h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
  .how-card p { color: var(--text-dim); font-size: 14.5px; line-height: 1.6; }
  .how-card .vis { margin-top: 8px; padding: 18px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--bg); }

  /* CLI block */
  .cli-vis { font-family: 'Montserrat', sans-serif; font-size: 12.5px; line-height: 1.85; color: var(--text); }
  .cli-vis .p { color: var(--accent); }
  .cli-vis .d { color: var(--text-mute); }
  .cli-vis .ok { color: var(--accent); }

  /* Dashboard mock */
  .dash { display: flex; flex-direction: column; gap: 8px; font-family: 'Montserrat', sans-serif; font-size: 11.5px; }
  .dash-head { display: grid; grid-template-columns: 50px 1fr 90px 70px; gap: 10px; color: var(--text-mute); padding: 0 10px 6px; border-bottom: 1px dashed var(--line); letter-spacing: 0.06em; }
  .dash-row { display: grid; grid-template-columns: 50px 1fr 90px 70px; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line-soft); border-radius: 6px; background: var(--surface); }
  .dash-row .id { color: var(--accent); }
  .dash-row .nm { color: var(--text); }
  .dash-row .bar { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
  .dash-row .bar i { display: block; height: 100%; background: var(--accent); }
  .dash-row .pnl.pos { color: var(--accent); text-align: right; }
  .dash-row .pnl.neg { color: var(--red); text-align: right; }

  /* FEATURES INFOGRAPHIC */
  .info-stage {
    border: 1px solid var(--line); border-radius: 14px; padding: 24px;
    background: var(--bg-2);
  }
  .info-stage img { width: 100%; height: auto; display: block; border-radius: 8px; }
  .info-caption { margin-top: 16px; text-align: center; font-family: 'Montserrat', sans-serif; font-size: 11px; color: var(--text-mute); letter-spacing: 0.08em; }

  /* ABOUT — Wenbex stack */
  .stack-diagram { padding: 36px 32px; }
  .stack-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .stack-box {
    padding: 26px 18px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg-2);
    display: grid; place-items: center;
    min-height: 90px;
    transition: border-color 0.2s, background 0.2s;
  }
  .stack-box:hover { border-color: var(--accent); background: var(--surface); }
  .stack-box-label {
    font-size: 13px; font-weight: 600;
    color: var(--text);
    letter-spacing: 0.08em;
    text-align: center;
  }
  .stack-caption {
    margin-top: 24px; text-align: center;
    font-size: 11px; color: var(--text-mute);
    letter-spacing: 0.14em; font-weight: 500;
  }

  /* THESIS — ablation diagram */
  .ablation-grid {
    padding: 36px 32px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 28px;
    align-items: stretch;
    max-width: 880px;
    margin: 0 auto;
  }
  .ablation-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .ablation-col-head {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--text-mute);
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 4px;
  }
  .ablation-box {
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    padding: 16px 18px;
    background: var(--bg);
    transition: border-color 200ms ease, background 200ms ease;
  }
  .ablation-box:hover { border-color: var(--accent); background: var(--surface); }
  .ablation-box-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--text);
    text-align: center;
  }
  .ablation-base-shared {
    border-color: var(--accent);
    background: rgba(1, 158, 190, 0.04);
  }
  .ablation-divider {
    width: 1px;
    background: var(--line-soft);
    align-self: stretch;
  }
  .ablation-result {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px dashed var(--line);
    text-align: center;
  }
  .ablation-result-num {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 68px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
  }
  .ablation-result-num sup {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 26px;
    vertical-align: top;
    opacity: 0.6;
    margin-left: 2px;
    font-weight: 500;
  }
  .ablation-foot-ref {
    font-size: 0.7em;
    color: var(--gold);
    vertical-align: super;
    margin-left: 2px;
    line-height: 0;
  }
  .ablation-foot {
    margin-top: 22px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12.5px;
    color: var(--text-mute);
    text-align: center;
    letter-spacing: 0.02em;
  }
  .thesis-contact { margin-top: 14px; font-size: 15.5px; color: var(--text-mute); text-align: center; }
  .thesis-contact a { color: var(--accent-bright); border-bottom: 1px dashed var(--accent); }

  /* EARLY ACCESS */
  .access-stage {
    border: 1px solid var(--line); border-radius: 14px;
    background:
      radial-gradient(800px 400px at 50% 0%, rgba(1,158,190,0.10), transparent 60%),
      var(--bg-2);
    padding: 64px 56px; text-align: center;
  }
  .access-form {
    margin: 32px auto 0; display: flex; gap: 8px; max-width: 520px;
    border: 1px solid var(--line); border-radius: 10px; padding: 6px;
    background: var(--bg);
  }
  .access-form input {
    flex: 1; background: transparent; border: 0; outline: 0;
    color: var(--text); font: 15px 'Montserrat', sans-serif; padding: 10px 14px;
  }
  .access-form input::placeholder { color: var(--text-mute); }
  .access-form button {
    border: 0; border-radius: 6px; padding: 10px 18px;
    background: var(--accent); color: #06251a; font-weight: 600; font-size: 14px;
    box-shadow: 0 0 12px var(--accent-glow);
  }
  .access-body { color: var(--text-dim); font-size: 16px; line-height: 1.55; max-width: 540px; margin: 16px auto 0; }
  .access-meta { display: flex; justify-content: center; gap: 28px; margin-top: 22px; font-family: 'Montserrat', sans-serif; font-size: 11px; color: var(--text-mute); letter-spacing: 0.06em; flex-wrap: wrap; }
  .access-meta span { display: inline-flex; align-items: center; gap: 6px; }
  .access-meta span::before { content: "✓"; color: var(--accent); }

  /* FOOTER */
  footer { padding: 56px 0 36px; border-top: 1px solid var(--line-soft); margin-top: 80px; }
  .foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
  .foot-col h3 { font-family: 'Montserrat', sans-serif; font-size: 11px; color: var(--text-mute); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
  .foot-col a { display: block; padding: 6px 0; font-size: 14px; color: var(--text-dim); }
  .foot-col a:hover { color: var(--text); }
  .foot-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line-soft); font-family: 'Montserrat', sans-serif; font-size: 11px; color: var(--text-mute); letter-spacing: 0.06em; }

  @media (max-width: 900px) {
    .how-grid { grid-template-columns: 1fr !important; gap: 16px; }
    /* Footer on mobile: brand full-width, Product + Company side-by-side, Contact full-width */
    .foot-grid {
      grid-template-columns: 1fr 1fr !important;
      grid-template-areas:
        "brand brand"
        "product company"
        "contact contact";
      gap: 28px 32px;
    }
    .foot-col:nth-child(1) { grid-area: brand; }
    .foot-col:nth-child(2) { grid-area: product; }
    .foot-col:nth-child(3) { grid-area: company; }
    .foot-col:nth-child(4) { grid-area: contact; }
    .access-stage { padding: 32px 24px; }
    .nav-links { display: none; }
    .nav .brand small { display: none; }
    section { padding: 56px 0; }
    .stack-grid { grid-template-columns: 1fr 1fr; }
    .proof-tiles { grid-template-columns: 1fr; }
    .hero-pillars { flex-direction: column; align-items: center; }
    .ablation-grid { grid-template-columns: 1fr; gap: 24px; padding: 28px 20px; }
    .ablation-divider { display: none; }
    .ablation-col .ablation-result { margin-top: 0; }

    /* Features (mobile) — readable type + back content that fits inside the card */
    .coverage-strip { font-size: 15.5px; line-height: 1.65; }
    .how-card p { font-size: 16px; }
    .flip-inner { min-height: 360px; }
    .flip-front, .flip-back { padding: 24px; }
    .flip-front .lab,
    #feat-cli-back .lab,
    #feat-validation-back .lab,
    #feat-ops-back .lab { top: 24px; left: 24px; }
    /* Reclaim horizontal room in back visualizations on mobile */
    .how-card .vis { padding: 12px; }
    /* On mobile, pull the back-side labs back into the flex flow so the
       14px gap actually sits between the lab and the visualization (the
       absolute positioning collides with vertically-centered .vis). */
    #feat-cli-back .lab,
    #feat-validation-back .lab,
    #feat-ops-back .lab { position: static; top: auto; left: auto; }
    #feat-cli-back,
    #feat-validation-back,
    #feat-ops-back { justify-content: flex-start; }
    /* Extra breathing room between the lab and the visualization */
    #feat-cli-back .vis,
    #feat-validation-back .vis,
    #feat-ops-back .vis { margin-top: 24px; }
    /* Dashboard table — shrink the fixed cols so STRATEGY has room */
    .dash-head,
    .dash-row { grid-template-columns: 32px 1fr 48px 52px; gap: 6px; padding: 8px 6px; font-size: 11.5px; }
    .dash-head { padding: 0 6px 6px; }
    /* Don't upscale the cli/validation visualizations on mobile — they overflow */
    #feat-cli-back .cli-vis,
    #feat-validation-back .cli-vis { font-size: 12px; line-height: 1.85; }
    /* Tighter ops categories so all 6 fit comfortably */
    #feat-ops-back .ops-cats { gap: 8px; }
    #feat-ops-back .ops-cat { font-size: 11px; padding: 14px 4px; letter-spacing: 0.10em; }

    /* Mobile nav CTA — even tighter arrow when crammed next to hamburger */
    .nav-cta svg { width: 13px; height: 13px; }

    /* Hero left column centers on mobile */
    .hero-grid > div:first-child { text-align: center; }
    .hero-grid > div:first-child .hero-pillars { justify-content: center; }

    /* Hero CTAs stack full-width with centered content */
    .hero-ctas {
      flex-direction: column;
      align-items: stretch;
      gap: 10px;
    }
    .hero-ctas .btn-primary,
    .hero-ctas .btn-secondary {
      justify-content: center;
      width: 100%;
    }

    /* Swap lede + pillar treatment on mobile */
    .lede-desktop { display: none; }
    .lede-mobile { display: block; }
    .pillar-strip { display: none; }
  }

  @media (max-width: 480px) {
    .stack-grid { grid-template-columns: 1fr; }
    /* At narrow phone widths a 3-col ops grid clips. Switch to 2x3 — the
       widest labels (STRATEGY, QUERIES) get the breathing room they need. */
    #feat-ops-back .ops-cats { grid-template-columns: repeat(2, 1fr); }
  }

/* A11y page-level scaffolding */
section { scroll-margin-top: 80px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 10px 16px;
  background: var(--accent);
  color: #031318;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 14px;
  border-radius: 0 0 6px 0;
  text-decoration: none;
}
.skip-link:focus-visible {
  left: 0;
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
}

/* Focus rings — visible on keyboard nav, never on click for buttons */
.nav-cta:focus-visible,
.nav-links a:focus-visible,
.brand:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.access-form input:focus-visible,
.access-form button:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Hover lift — opacity + transform, never `transition: all` */
.btn-primary,
.btn-secondary,
.nav-cta,
.how-card,
.proof-tile,
.stack-box,
.ablation-box {
  transition: transform 80ms ease-out, opacity 80ms ease-out, border-color 150ms ease-out;
}

/* Touch — avoid double-tap zoom delay on every interactive */
a, button { touch-action: manipulation; }

/* Tabular numerals for numeric blocks */
.proof-tile-num,
.ablation-result-num,
.dash-row,
.hero-code-body,
.cli-vis,
.h-stat-n {
  font-variant-numeric: tabular-nums;
}

/* Tilt — pointer-fine only, transform-only transitions */
@media (hover: hover) and (pointer: fine) {
  [data-tilt] {
    transform-style: preserve-3d;
    transition: transform 120ms ease-out;
    will-change: transform;
  }
  [data-tilt]:hover {
    transform: perspective(1000px)
               rotateX(var(--tilt-x, 0deg))
               rotateY(var(--tilt-y, 0deg));
  }
}

/* Flip cards (Features only) */
.flip-card {
  display: block;
  width: 100%;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
  perspective: 1200px;
  color: inherit;
  font: inherit;
}
.flip-card:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 4px;
  border-radius: 14px;
}
.flip-inner {
  position: relative;
  width: 100%;
  min-height: 320px;
  transition: transform 950ms cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
  will-change: transform;
}
/* Hover trigger with a 120ms delay — drive-by cursor doesn't fire,
   intentional hover does. Click/keyboard toggles aria-expanded which
   wins regardless and fires immediately.
   Scoped to hover-capable devices so iOS Safari's sticky :hover after
   tap doesn't keep the card stuck in the flipped state on touch. */
@media (hover: hover) and (pointer: fine) {
  .flip-card:hover .flip-inner {
    transform: rotateY(180deg);
    transition-delay: 120ms;
  }
}
.flip-card[aria-expanded="true"] .flip-inner {
  transform: rotateY(180deg);
  transition-delay: 0ms;
}
.flip-front,
.flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 14px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
/* Front-face content (title + body) centers vertically so the
   shorter front side stops looking empty next to the taller backs.
   .flip-hint stays anchored bottom-right via absolute positioning. */
.flip-front {
  justify-content: center;
}
/* Lab pinned top-left so the centered title/body (front) and centered
   visualization (non-dashboard backs) don't have to share flex space
   with it. Dashboard back keeps its lab in flow so the dense 4-row
   table stays in its current top-aligned position. */
.flip-front .lab,
#feat-cli-back .lab,
#feat-validation-back .lab,
#feat-ops-back .lab {
  position: absolute;
  top: 32px;
  left: 32px;
}
/* Center the visualization on non-dashboard backs. */
#feat-cli-back,
#feat-validation-back,
#feat-ops-back {
  justify-content: center;
}
/* Scale up the visualizations on non-dashboard backs to fill the
   space the centered layout now gives them. Dashboard's table stays
   at its existing scale so the 4 rows still fit. */
#feat-cli-back .cli-vis,
#feat-validation-back .cli-vis {
  font-size: 14.5px;
  line-height: 1.95;
}
#feat-ops-back .ops-cats {
  gap: 14px;
}
#feat-ops-back .ops-cat {
  font-size: 13px;
  padding: 20px 12px;
  letter-spacing: 0.16em;
}
.flip-back {
  transform: rotateY(180deg);
}
.flip-hint {
  position: absolute;
  bottom: 16px;
  right: 18px;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 600;
}
.flip-hint::after { content: " →"; color: var(--accent); }

/* Reduced-motion: no rotateY, back stacks below front */
@media (prefers-reduced-motion: reduce) {
  .flip-inner {
    transform: none !important;
    transform-style: flat;
    min-height: 0;
  }
  .flip-front, .flip-back {
    position: relative;
    inset: auto;
    backface-visibility: visible;
    transform: none;
  }
  .flip-back { margin-top: 12px; }
  .flip-hint { display: none; }
}

/* Waitlist form */
.waitlist-form { margin: 32px auto 0; max-width: 560px; display: flex; flex-direction: column; gap: 14px; }
.wl-row { display: grid; gap: 14px; }
.wl-row-2 { grid-template-columns: 1fr 1fr; }
.wl-field { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.wl-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.wl-field input,
.wl-field select {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font: 15px 'Montserrat', sans-serif;
  outline: none;
  transition: border-color 150ms ease-out;
}
.wl-field input::placeholder { color: var(--text-mute); }
.wl-field input:focus-visible,
.wl-field select:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
}
.wl-field input[aria-invalid="true"],
.wl-field select[aria-invalid="true"] { border-color: var(--red); }
.wl-err {
  min-height: 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  color: var(--red);
}
.wl-err:empty { min-height: 0; }
.wl-success {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: var(--accent-bright);
  text-align: center;
}
.waitlist-form .btn-primary { align-self: center; }
.waitlist-form .btn-primary[disabled] { opacity: 0.6; cursor: progress; }

@media (max-width: 600px) {
  .wl-row-2 { grid-template-columns: 1fr; }
}

/* Contact form — extends waitlist styles */
.contact-form {
  max-width: 720px;
  margin: 0 auto;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(1,158,190,0.10), transparent 60%),
    var(--bg-2);
}
.contact-form textarea {
  resize: vertical;
  min-height: 140px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font: 15px 'Montserrat', sans-serif;
  outline: none;
  line-height: 1.55;
  transition: border-color 150ms ease-out;
}
.contact-form textarea::placeholder { color: var(--text-mute); }
.contact-form textarea:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
}
.contact-form textarea[aria-invalid="true"] { border-color: var(--red); }
.wl-count {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  color: var(--text-mute);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.contact-form .btn-primary { align-self: center; }

@media (max-width: 600px) {
  .contact-form { padding: 24px; }
}

/* Hamburger button */
.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}
.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(17, 24, 39, 0.97);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 40px;
  overscroll-behavior: contain;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-size: 24px;
  line-height: 1;
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.mobile-menu nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dim);
  padding: 12px 24px;
  letter-spacing: 0.04em;
}
.mobile-menu nav a:hover { color: var(--text); }
.mobile-menu-cta {
  margin-top: 12px;
  background: var(--accent);
  color: #031318 !important;
  border-radius: 8px;
}

/* Global reduced-motion guard — explicit, additive to per-feature handling */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   V1 STRUCTURES (hero terminal, routing grid, thesis card,
   hero two-column layout, sectors styling shared with old)
   ============================================================ */

/* Hero two-column */
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* Hero pillar chips (port from old) */
.hero-pillars {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 22px;
}
.pillar-pill {
  display: inline-flex; align-items: center;
  padding: 6px 14px; border-radius: 999px;
  background: var(--accent-bg);
  border: 1px solid var(--line);
  color: var(--text-dim);
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Animated terminal */
.terminal {
  background: linear-gradient(180deg, rgba(15, 38, 45, 0.92), rgba(10, 22, 27, 0.95));
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
.term-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: rgba(1, 158, 190, 0.08);
  border-bottom: 1px solid var(--line-soft);
  font-family: 'Geist Mono', 'Montserrat', monospace;
  font-size: 11px;
  color: var(--text-dim);
}
.term-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.term-title { margin-left: 8px; opacity: 0.7; }
.term-status { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 10px; letter-spacing: 0.1em; }
.term-status .led {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 8px var(--accent-bright);
}
@media (prefers-reduced-motion: no-preference) {
  .term-status .led { animation: pulse 2.4s ease-in-out infinite; }
}
.term-body {
  flex: 1;
  padding: 18px 18px 22px;
  font-family: 'Geist Mono', 'Montserrat', monospace;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-dim);
  overflow: auto;
}
.term-body .prompt { color: var(--accent-bright); }
.term-body .meta { color: var(--text-mute); }
.term-body .you { color: var(--text); }
.term-body .ok { color: var(--gold); }
.term-body .err { color: var(--red); }

@media (prefers-reduced-motion: reduce) {
  .term-body { animation: none !important; }
}

/* Features — 4-card grid + ops categories (Task 13) */
.features-grid-4 {
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (max-width: 720px) { .features-grid-4 { grid-template-columns: 1fr; } }
.ops-cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
}
.ops-cat {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 10px;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text);
  background: rgba(1, 158, 190, 0.08);
}

