/* =====================================================================
   HEIMDALL — Design System  ("Watchtower")
   Terminal-native dev-tool language. Pairs with the watchman renderer
   and the install-banner cyberpunk palette. Four colors, hard restraint:
     cyan  = primary accent (the iris-band)
     gold  = pass / proven state + the token stat
     red   = denial / blocked ONLY
     mono neutrals = near-black, white, dim grey
   Type: Geist (sans prose) + Geist Mono (terminal). Dark + light.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700;800&family=Geist+Mono:wght@400;500;600&display=swap');

:root {
  --font-sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, monospace;

  --r-xs: 6px; --r-sm: 8px; --r-md: 10px; --r-lg: 14px; --r-xl: 22px; --r-pill: 999px;
  --ease: cubic-bezier(.22,1,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* =================== DARK (default) =================== */
:root, [data-theme="dark"] {
  --bg:        #07080A;
  --bg-1:      #0C0E11;
  --panel:     #11141A;
  --panel-2:   #171B22;
  --ink:       #ECEFF2;
  --ink-2:     #99A1AB;
  --ink-3:     #5C636D;
  --line:      rgba(255,255,255,.07);
  --line-2:    rgba(255,255,255,.13);

  --accent:        #4264FF;   /* royal blue */
  --accent-bright: #7C95FF;
  --accent-ink:    #FFFFFF;
  --accent-soft:   rgba(66,100,255,.15);
  --accent-line:   rgba(66,100,255,.45);

  --gold:        #FFCB57;     /* pass / proven / the stat */
  --gold-bright: #FFD980;
  --gold-soft:   rgba(255,203,87,.13);
  --gold-line:   rgba(255,203,87,.42);

  --neg:       #FF5C45;       /* denial only */
  --neg-soft:  rgba(255,92,69,.13);
  --neg-line:  rgba(255,92,69,.42);

  --term-bg:  #050608;
  --code-ink: #C2C8D0;

  --shadow-md: 0 8px 28px rgba(0,0,0,.45);
  --shadow-lg: 0 30px 80px rgba(0,0,0,.6);
  --glow:      0 0 80px rgba(66,100,255,.24);
  --hover:     rgba(255,255,255,.05);
  --grid-line: rgba(255,255,255,.035);
}

/* =================== LIGHT =================== */
[data-theme="light"] {
  --bg:        #FAFBFC;
  --bg-1:      #FFFFFF;
  --panel:     #F2F4F7;
  --panel-2:   #E8ECF1;
  --ink:       #0A0C10;
  --ink-2:     #4A515B;
  --ink-3:     #7E8691;
  --line:      rgba(10,14,22,.09);
  --line-2:    rgba(10,14,22,.15);

  --accent:        #2842D6;   /* deep royal blue */
  --accent-bright: #3A57F0;
  --accent-ink:    #FFFFFF;
  --accent-soft:   rgba(40,66,214,.10);
  --accent-line:   rgba(40,66,214,.32);

  --gold:        #A9760F;      /* readable gold on light */
  --gold-bright: #C68C16;
  --gold-soft:   rgba(169,118,15,.10);
  --gold-line:   rgba(169,118,15,.32);

  --neg:       #D6341E;
  --neg-soft:  rgba(214,52,30,.08);
  --neg-line:  rgba(214,52,30,.28);

  --term-bg:  #0A0B0E;   /* terminal stays dark in both themes */
  --code-ink: #C2C8D0;

  --shadow-md: 0 8px 24px rgba(20,30,60,.10);
  --shadow-lg: 0 24px 64px rgba(20,30,60,.14);
  --glow:      0 0 80px rgba(40,66,214,.14);
  --hover:     rgba(10,14,22,.04);
  --grid-line: rgba(10,14,22,.045);
}

/* =================== base / reset =================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent-soft); color: var(--ink); }

/* =================== type helpers =================== */
.h-display { font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; }
.h-title   { font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
.mono      { font-family: var(--font-mono); }
.eyebrow {
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-bright);
}
.eyebrow--gold { color: var(--gold); }

/* =================== shared atoms =================== */
.hd-wrap { max-width: 1140px; margin: 0 auto; padding: 0 40px; }

.hd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 44px; padding: 0 20px; border-radius: var(--r-md);
  font-family: var(--font-sans); font-weight: 600; font-size: 15px;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .15s var(--ease), background-color .2s, box-shadow .2s, border-color .2s, color .2s;
}
.hd-btn:active { transform: scale(.975); }
.hd-btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 22px var(--accent-soft); }
.hd-btn--primary:hover { background: var(--accent-bright); box-shadow: 0 8px 30px var(--accent-soft); }
.hd-btn--ghost { background: var(--bg-1); color: var(--ink); border-color: var(--line-2); }
.hd-btn--ghost:hover { background: var(--panel); }

.hd-chip {
  display: inline-flex; align-items: center; gap: 7px;
  height: 28px; padding: 0 12px; border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  background: var(--panel); color: var(--ink-2); border: 1px solid var(--line);
}
.hd-chip i { font-size: 11px; }
.hd-chip--accent { background: var(--accent-soft); color: var(--accent-bright); border-color: var(--accent-line); }
.hd-chip--gold { background: var(--gold-soft); color: var(--gold); border-color: var(--gold-line); }
.hd-chip--neg { background: var(--neg-soft); color: var(--neg); border-color: var(--neg-line); }

.hd-icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: var(--r-md); background: transparent; border: 1px solid var(--line);
  color: var(--ink-2); cursor: pointer; font-size: 16px;
  transition: background-color .2s, color .2s, border-color .2s;
}
.hd-icon-btn:hover { background: var(--hover); color: var(--ink); border-color: var(--line-2); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}


/* =====================================================================
   SHARED COMPONENTS (moved out of inline <style> so landing + proof share)
   ===================================================================== */

  /* ---------- background field ---------- */
  .bg-field { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
  .bg-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 78% 52% at 50% 0%, #000 0%, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse 78% 52% at 50% 0%, #000 0%, transparent 72%);
  }
  .aurora { position: absolute; top: -280px; left: 50%; transform: translateX(-50%); width: 1100px; height: 680px; pointer-events: none;
    background: radial-gradient(46% 50% at 50% 40%, rgba(66,100,255,.26), transparent 70%),
                radial-gradient(34% 42% at 32% 32%, rgba(80,110,255,.14), transparent 72%),
                radial-gradient(34% 42% at 70% 34%, rgba(40,60,200,.16), transparent 72%);
    filter: blur(30px); opacity: .9; }
  [data-theme="light"] .aurora { opacity: .5; }

  /* ---------- nav ---------- */
  nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid var(--line); }
  .nav-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
  .brand { display: flex; align-items: center; gap: 11px; }
  .brand .mk { width: 26px; height: 26px; color: var(--accent); }
  .brand .wm { font-weight: 600; font-size: 18px; letter-spacing: 0.04em; }
  .brand .ver { font-family: var(--font-mono); font-size: 11px; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--r-pill); padding: 2px 8px; }
  .nav-right { display: flex; align-items: center; gap: 8px; }
  .nav-link { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: var(--r-sm); font-weight: 500; font-size: 14.5px; color: var(--ink-2); transition: background-color .18s, color .18s; }
  .nav-link:hover { background: var(--hover); color: var(--ink); }

  /* ---------- watchman eyes (shared geometry) ---------- */
  .eyes-svg { display: block; }
  .eyes .almond { fill: none; stroke: currentColor; stroke-width: 2.4; opacity: .5; }
  .eyes .iris { fill: currentColor; filter: drop-shadow(0 0 8px currentColor); }
  .eyes .pupil { fill: #04070A; transform-box: fill-box; transform-origin: center; transition: transform .3s var(--ease); }
  .eyes .lid { fill: var(--term-bg); transition: transform .42s var(--ease); }

  /* idle eyes (hero + footer): calm cyan, soft pulse */
  .eyes-idle { color: var(--accent); }
  @media (prefers-reduced-motion: no-preference) {
    .eyes-idle .iris { animation: irisPulse 3.4s var(--ease) infinite; }
  }
  @keyframes irisPulse { 0%,100% { opacity: 1; } 50% { opacity: .62; } }

  /* ---------- hero ---------- */
  .hero { position: relative; padding: 92px 0 76px; text-align: center; }
  .hero .idle-wrap { width: 96px; margin: 0 auto 26px; color: var(--accent); }
  .hero .eyebrow { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
  .hero .eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
  .hero h1 { font-size: clamp(50px, 8.2vw, 98px); margin: 22px auto 0; max-width: 13ch; }
  .hero h1 .dim { color: var(--ink-3); }
  .hero .sub { font-size: clamp(18px, 2.1vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 600px; margin: 24px auto 0; }
  .hero .sub b { color: var(--ink); font-weight: 600; }
  .hero .stat-mini { display: inline-flex; align-items: center; gap: 9px; margin-top: 22px; font-family: var(--font-mono); font-size: 13px; color: var(--gold); background: var(--gold-soft); border: 1px solid var(--gold-line); border-radius: var(--r-pill); padding: 6px 14px; }

  /* install card */
  .install { display: inline-flex; align-items: center; gap: 12px; margin-top: 30px; background: var(--term-bg); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 10px 10px 10px 18px; box-shadow: var(--shadow-md); max-width: calc(100vw - 48px); }
  .install .pr { color: var(--accent); font-family: var(--font-mono); font-size: 14px; }
  .install code { font-family: var(--font-mono); font-size: 13.5px; color: #DCE2EA; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
  .install code::-webkit-scrollbar { display: none; }
  .cbtn { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 15px; background: var(--accent); color: var(--accent-ink); border: none; border-radius: var(--r-sm); font-family: var(--font-sans); font-weight: 600; font-size: 13.5px; cursor: pointer; transition: background-color .15s, transform .15s; }
  .cbtn:hover { background: var(--accent-bright); }
  .cbtn:active { transform: scale(.96); }
  .cbtn.copied { background: var(--gold); color: #2A1E00; }
  .vanity-note { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); margin-top: 13px; }
  .vanity-note b { color: var(--ink-2); font-weight: 500; }
  .trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 8px; margin-top: 24px; }
  .trust span { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 8px; }
  .trust span::before { content: "·"; color: var(--ink-3); margin-right: 4px; }
  .trust span:first-child::before { content: none; }

  /* ---------- generic section ---------- */
  .section { padding: 88px 0; }
  .sec-line { border-top: 1px solid var(--line); }
  .sec-head { margin-bottom: 44px; }
  .sec-head .eyebrow { display: block; }
  .sec-head h2 { font-size: clamp(32px, 4.4vw, 50px); font-weight: 600; letter-spacing: -0.03em; margin-top: 14px; }
  .sec-head p.kick { font-size: 18px; color: var(--ink-2); margin-top: 14px; max-width: 600px; line-height: 1.55; }

  /* ---------- thesis ---------- */
  .thesis { max-width: 900px; margin: 0 auto; text-align: center; }
  .thesis .big { font-size: clamp(28px, 4vw, 44px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.16; }
  .thesis .big .q { color: var(--accent); }
  .thesis .big .em { color: var(--ink-2); }

  /* ---------- proves-itself ---------- */
  .proves { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
  .proves h2 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 600; letter-spacing: -0.035em; }
  .proves .lead { font-size: 18px; color: var(--ink-2); margin-top: 22px; line-height: 1.62; }
  .proves .lead b { color: var(--ink); font-weight: 600; }
  .proves .lead .cy { color: var(--accent); font-family: var(--font-mono); font-size: .92em; }
  .proves .receipt { background: var(--term-bg); border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
  .rcpt-bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid rgba(255,255,255,.07); }
  .rcpt-bar .d { width: 11px; height: 11px; border-radius: 50%; background: #23262C; }
  .rcpt-bar .ttl { margin-left: 8px; font-family: var(--font-mono); font-size: 12px; color: #6A727D; }
  .rcpt-body { padding: 22px 24px 24px; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.95; color: var(--code-ink); }
  .rcpt-body .ln { display: block; white-space: pre-wrap; }
  .rcpt-body .pr { color: var(--accent); } .rcpt-body .er { color: var(--neg); } .rcpt-body .ok { color: var(--gold); }
  .rcpt-body .dm { color: #565D67; } .rcpt-body .wt { color: #E7EAEE; } .rcpt-body .cy { color: var(--accent-bright); }
  .rcpt-body .blk { display: inline-block; background: var(--neg-soft); border: 1px solid var(--neg-line); color: var(--neg); border-radius: 5px; padding: 0 7px; font-size: 12px; }

  /* ---------- watchman demo (motion centerpiece) ---------- */
  .demo-wrap { max-width: 900px; margin: 0 auto; }
  .demo-screen { position: relative; background: var(--term-bg); border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
  .demo-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 55% at 50% 42%, transparent 60%, rgba(0,0,0,.35)); }
  .demo-topbar { display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-bottom: 1px solid rgba(255,255,255,.07); position: relative; z-index: 2; }
  .demo-topbar .d { width: 11px; height: 11px; border-radius: 50%; background: #23262C; }
  .demo-topbar .ttl { margin-left: 8px; font-family: var(--font-mono); font-size: 12px; color: #6A727D; }
  .demo-status { margin-left: auto; font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; letter-spacing: .12em; padding: 4px 11px; border-radius: var(--r-pill); border: 1px solid; }
  .tone-accent { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
  .tone-neg { color: var(--neg); border-color: var(--neg-line); background: var(--neg-soft); }
  .tone-gold { color: var(--gold); border-color: var(--gold-line); background: var(--gold-soft); }

  .demo-stage { position: relative; height: 252px; display: grid; place-items: center; }
  .demo-face { color: var(--accent); width: 360px; max-width: 86%; }
  .demo-screen.is-deny .demo-face { color: var(--neg); }
  .demo-screen.is-pass .demo-face { color: var(--gold); }
  .demo-screen.is-deny .eyes { animation: shake .42s var(--ease); }
  @keyframes shake { 0%,100%{transform:translateX(0)} 20%{transform:translateX(-6px)} 60%{transform:translateX(6px)} 80%{transform:translateX(-3px)} }
  /* pupil */
  .demo-screen.is-deny .eyes .pupil { transform: scale(.55); }
  .demo-screen.is-scan .eyes .pupil { transform: translateX(7px) scale(.82); }
  /* lids */
  .demo-screen.is-scan .lid-top { transform: translateY(20px); } .demo-screen.is-scan .lid-bot { transform: translateY(-20px); }
  .demo-screen.is-fix  .lid-top { transform: translateY(11px); } .demo-screen.is-fix  .lid-bot { transform: translateY(-11px); }
  .demo-screen.is-deny .lid-top { transform: translateY(28px); } .demo-screen.is-deny .lid-bot { transform: translateY(-28px); }
  /* scanline */
  .scanline { position: absolute; left: 12%; right: 12%; top: 22%; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); box-shadow: 0 0 14px var(--accent); opacity: 0; z-index: 3; }
  .demo-screen.is-scan .scanline { opacity: 1; animation: scan 1.5s linear infinite; }
  @keyframes scan { 0%{top:24%} 50%{top:74%} 100%{top:24%} }
  /* sparkles */
  .spark { position: absolute; color: var(--gold); font-size: 16px; opacity: 0; z-index: 3; }
  .spark.s1 { top: 26%; left: 30%; } .spark.s2 { top: 32%; right: 30%; font-size: 12px; } .spark.s3 { top: 60%; left: 38%; font-size: 11px; } .spark.s4 { top: 56%; right: 34%; font-size: 14px; }
  .demo-screen.is-pass .spark { animation: pop 1.2s var(--ease) infinite; }
  .demo-screen.is-pass .spark.s2 { animation-delay: .25s; } .demo-screen.is-pass .spark.s3 { animation-delay: .5s; } .demo-screen.is-pass .spark.s4 { animation-delay: .7s; }
  @keyframes pop { 0%,100%{opacity:0; transform:scale(.4)} 40%{opacity:1; transform:scale(1)} }

  .demo-foot { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-top: 1px solid rgba(255,255,255,.07); font-family: var(--font-mono); font-size: 13px; position: relative; z-index: 2; }
  .demo-foot .pr { color: var(--ink-3); }
  .demo-foot { white-space: nowrap; overflow: hidden; }
  .demo-line { transition: color .25s; overflow: hidden; text-overflow: ellipsis; }
  .demo-line.l-accent { color: var(--accent); } .demo-line.l-neg { color: var(--neg); } .demo-line.l-gold { color: var(--gold); }
  .demo-cap { text-align: center; max-width: 660px; margin: 26px auto 0; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
  .demo-cap b { color: var(--ink); font-weight: 600; }

  /* ---------- gate suite ---------- */
  .suite { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .grp { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 24px 26px; }
  .grp .gh { display: flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
  .grp .gh i { font-size: 12px; }
  .grow { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; padding: 12px 0; border-top: 1px solid var(--line); }
  .grow:first-of-type { border-top: none; padding-top: 0; }
  .grow .gn { font-family: var(--font-mono); font-size: 14px; font-weight: 500; color: var(--ink); }
  .grow .gd { font-size: 14px; color: var(--ink-2); grid-column: 1 / -1; line-height: 1.5; }
  .grow .bin { font-family: var(--font-mono); font-size: 11.5px; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--r-xs); padding: 2px 7px; align-self: start; white-space: nowrap; }
  .composition { margin-top: 20px; background: var(--gold-soft); border: 1px solid var(--gold-line); border-radius: var(--r-lg); padding: 22px 26px; display: flex; align-items: center; gap: 16px; }
  .composition i { color: var(--gold); font-size: 22px; }
  .composition p { font-size: 16px; color: var(--ink); line-height: 1.5; }
  .composition p code { font-family: var(--font-mono); font-size: .9em; color: var(--gold); }

  /* also ships strip */
  .more-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 20px; }
  .more-item { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; }
  .more-item .mt { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; }
  .more-item .mt i { color: var(--accent); font-size: 14px; }
  .more-item p { font-size: 13px; color: var(--ink-2); margin-top: 8px; line-height: 1.5; }
  .more-item code { font-family: var(--font-mono); color: var(--accent); font-size: .92em; }

  /* ---------- bypass beat ---------- */
  .bypass { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
  .bypass h2 { font-size: clamp(32px, 4.4vw, 50px); font-weight: 600; letter-spacing: -0.03em; }
  .bypass p { font-size: 17px; color: var(--ink-2); margin-top: 22px; line-height: 1.62; }
  .bypass p b { color: var(--ink); font-weight: 600; } .bypass p code { font-family: var(--font-mono); color: var(--accent); font-size: .9em; }
  .bypass .door { aspect-ratio: 1; display: grid; place-items: center; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-lg); position: relative; overflow: hidden; }
  .bypass .door .ring { position: absolute; border: 1px solid var(--accent-line); border-radius: 50%; }
  .bypass .door .ring.r1 { inset: 18%; } .bypass .door .ring.r2 { inset: 30%; opacity: .6; } .bypass .door .ring.r3 { inset: 42%; opacity: .35; }
  .bypass .door .lockmark { width: 64px; height: 64px; color: var(--accent); position: relative; z-index: 2; }
  .bypass .door .seal { position: absolute; bottom: 22px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: var(--accent); }

  /* ---------- token stat ---------- */
  .tokenstat { text-align: center; }
  .tokenstat .num { font-size: clamp(64px, 12vw, 150px); font-weight: 700; letter-spacing: -0.05em; line-height: 1; color: var(--gold); text-shadow: 0 0 70px var(--gold-soft); }
  .tokenstat .lbl { font-size: clamp(20px, 2.6vw, 28px); font-weight: 600; letter-spacing: -0.02em; margin-top: 8px; }
  .tokenstat p { font-size: 18px; color: var(--ink-2); max-width: 560px; margin: 22px auto 0; line-height: 1.6; }
  .tokenstat .src { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); margin-top: 16px; }

  /* ---------- command reference ---------- */
  .cmds { background: var(--term-bg); border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); }
  .cmds .cbar { display: flex; align-items: center; gap: 8px; padding: 13px 18px; border-bottom: 1px solid rgba(255,255,255,.07); }
  .cmds .cbar .d { width: 11px; height: 11px; border-radius: 50%; background: #23262C; }
  .cmds .cbar .ttl { margin-left: 8px; font-family: var(--font-mono); font-size: 12px; color: #6A727D; }
  .cmd-grid { padding: 8px 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
  .cmd { display: grid; grid-template-columns: max-content 1fr; gap: 16px; align-items: baseline; padding: 9px 12px; border-radius: var(--r-sm); }
  .cmd:hover { background: rgba(255,255,255,.03); }
  .cmd .k { font-family: var(--font-mono); font-size: 13px; color: var(--accent); white-space: nowrap; }
  .cmd .v { font-size: 13.5px; color: var(--ink-2); }
  .slash-row { border-top: 1px solid rgba(255,255,255,.07); padding: 16px 22px; display: flex; flex-wrap: wrap; gap: 8px 10px; }
  .slash-row .sl { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent-bright); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--r-pill); padding: 3px 11px; }

  /* ---------- local & private ---------- */
  .privacy { text-align: center; max-width: 760px; margin: 0 auto; }
  .privacy h2 { font-size: clamp(32px, 4.4vw, 50px); font-weight: 600; letter-spacing: -0.03em; }
  .privacy p { font-size: 18px; color: var(--ink-2); margin-top: 22px; line-height: 1.62; }
  .privacy p b { color: var(--ink); font-weight: 600; }
  .privacy .row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

  /* ---------- read-before ---------- */
  .readbox { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
  .readbox h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 600; letter-spacing: -0.03em; }
  .readbox p { font-size: 17px; color: var(--ink-2); margin-top: 20px; line-height: 1.6; }
  .readbox p b { color: var(--ink); font-weight: 600; } .readbox code.inline { font-family: var(--font-mono); color: var(--accent); font-size: .9em; }
  .read { background: var(--term-bg); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 22px 24px; font-family: var(--font-mono); font-size: 13px; line-height: 2.05; box-shadow: var(--shadow-md); }
  .read .pr { color: var(--accent); } .read .dm { color: #565D67; }
  .read .row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
  .read .mc { background: transparent; border: 1px solid rgba(255,255,255,.18); color: #9AA1AB; border-radius: var(--r-xs); padding: 3px 9px; font-family: var(--font-sans); font-size: 11px; cursor: pointer; transition: .18s; }
  .read .mc:hover { color: #fff; border-color: rgba(255,255,255,.4); }

  /* ---------- roadmap (fenced) ---------- */
  .roadmap { position: relative; border: 1px dashed var(--line-2); border-radius: var(--r-xl); padding: 44px 40px 40px; background: repeating-linear-gradient(135deg, transparent, transparent 14px, var(--hover) 14px, var(--hover) 15px); }
  .roadmap .fence { position: absolute; top: -13px; left: 32px; display: inline-flex; align-items: center; gap: 9px; background: var(--bg); padding: 0 14px; font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
  .roadmap .fence i { color: var(--ink-3); }
  .roadmap h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 600; letter-spacing: -0.03em; }
  .roadmap .rk { font-size: 16px; color: var(--ink-2); margin-top: 12px; max-width: 620px; line-height: 1.55; }
  .road-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 30px; }
  .road-item { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 22px; opacity: .92; }
  .road-item .rt { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; }
  .road-item .badge { font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: .1em; color: var(--ink-3); border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: 2px 8px; margin-left: auto; }
  .road-item p { font-size: 14px; color: var(--ink-2); margin-top: 10px; line-height: 1.55; }
  .road-item p .now { color: var(--accent); } .road-item p .next { color: var(--ink); font-weight: 500; }

  /* ---------- footer ---------- */
  footer { border-top: 1px solid var(--line); padding: 60px 0 56px; margin-top: 88px; }
  .foot-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 38px; border-bottom: 1px solid var(--line); }
  .foot-brand { display: flex; align-items: center; gap: 11px; }
  .foot-brand .idle-wrap { width: 40px; color: var(--accent); }
  .foot-brand .wm { font-weight: 600; font-size: 18px; letter-spacing: .04em; }
  .foot-tag { font-size: 14px; color: var(--ink-3); margin-top: 14px; max-width: 300px; line-height: 1.55; }
  .foot-links { display: flex; gap: 40px; flex-wrap: wrap; }
  .foot-col { display: flex; flex-direction: column; gap: 12px; }
  .foot-col .lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 2px; }
  .foot-col a { font-size: 14.5px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; transition: color .18s; }
  .foot-col a:hover { color: var(--ink); }
  .foot-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 24px; flex-wrap: wrap; }
  .foot-bottom span { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-3); }

  /* ---------- hero proof anchor ---------- */
  .hero-proof { display: inline-flex; align-items: center; gap: 14px; margin-top: 26px; flex-wrap: wrap; justify-content: center; max-width: calc(100vw - 48px); background: var(--gold-soft); border: 1px solid var(--gold-line); border-radius: var(--r-md); padding: 11px 16px; transition: background-color .18s, border-color .18s, transform .15s; }
  .hero-proof:hover { border-color: var(--gold); }
  .hero-proof:active { transform: scale(.99); }
  .hp-badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-weight: 600; font-size: 12.5px; letter-spacing: .1em; color: var(--gold); white-space: nowrap; }
  .hp-detail { font-size: 13.5px; color: var(--ink-2); }
  .hp-detail b { color: var(--ink); font-weight: 600; }
  .hp-arrow { color: var(--gold); font-size: 12px; }

  /* ---------- companions ---------- */
  .companions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .comp { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 22px; }
  .comp .ct { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-weight: 600; font-size: 15px; color: var(--ink); }
  .comp .ct i { color: var(--ink-3); font-size: 14px; }
  .comp p { font-size: 13.5px; color: var(--ink-2); margin-top: 10px; line-height: 1.55; }

  @media (max-width: 900px){
    .proves, .bypass, .readbox { grid-template-columns: 1fr; gap: 32px; }
    .suite, .road-grid { grid-template-columns: 1fr; }
    .more-strip { grid-template-columns: repeat(2,1fr); }
    .companions { grid-template-columns: 1fr; }
    .cmd-grid { grid-template-columns: 1fr; }
    .bypass .door { max-width: 360px; }
  }
  @media (max-width: 640px){
    .hd-wrap { padding: 0 22px; }
    .nav-link.hide-sm { display: none; }
    .more-strip { grid-template-columns: 1fr; }
    .trust span::before { content: none; }
  }


/* =====================================================================
   ADDED v2 — How-it-works beats, See-the-proof CTA, Proof-page header
   ===================================================================== */

/* ---------- how it works (3 beats) ---------- */
.howit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.beat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 26px 28px; }
.beat .bi { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-md); background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line); font-size: 16px; }
.beat .bn { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3); letter-spacing: .14em; margin: 16px 0 6px; }
.beat h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.beat p { font-size: 14.5px; color: var(--ink-2); margin-top: 9px; line-height: 1.55; }
.beat p code { font-family: var(--font-mono); color: var(--accent); font-size: .9em; }
.beat p b { color: var(--ink); font-weight: 600; }

/* ---------- see-the-proof CTA ---------- */
.proofcta { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; background: var(--term-bg); border: 1px solid var(--gold-line); border-radius: var(--r-lg); padding: 32px 36px; box-shadow: var(--shadow-md); }
.proofcta .eyebrow { color: var(--gold); }
.proofcta h3 { font-size: clamp(22px, 3vw, 30px); font-weight: 600; letter-spacing: -0.025em; margin-top: 12px; color: var(--ink); }
.proofcta .pc-l p { font-size: 15px; color: var(--ink-2); margin-top: 9px; max-width: 540px; line-height: 1.55; }
.pc-btn { flex-shrink: 0; display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 26px; background: var(--gold); color: #2A1E00; border-radius: var(--r-md); font-weight: 600; font-size: 15.5px; white-space: nowrap; transition: transform .15s, box-shadow .2s; }
.pc-btn:hover { box-shadow: 0 8px 30px var(--gold-soft); }
.pc-btn:active { transform: scale(.97); }
.pc-btn.ghost { background: transparent; color: var(--gold); border: 1px solid var(--gold-line); }
.pc-btn.ghost:hover { border-color: var(--gold); box-shadow: none; }

/* ---------- proof page header ---------- */
.proof-hero { position: relative; padding: 70px 0 22px; text-align: center; }
.proof-hero .idle-wrap { width: 78px; margin: 0 auto 22px; color: var(--accent); }
.proof-hero h1 { font-size: clamp(40px, 6.4vw, 72px); }
.proof-hero .frame { font-size: clamp(17px, 2vw, 21px); color: var(--ink-2); max-width: 680px; margin: 22px auto 0; line-height: 1.55; }
.proof-hero .frame b { color: var(--ink); font-weight: 600; }
.proof-hero .frame .q { color: var(--accent); }
.toc { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 32px; }
.toc a { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-2); border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: 6px 14px; transition: .18s; }
.toc a:hover { color: var(--ink); border-color: var(--accent-line); background: var(--accent-soft); }
.backlink { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
.backlink:hover { color: var(--ink); }

/* proof intro framing line */
.proofframe { max-width: 820px; margin: 0 auto; text-align: center; }
.proofframe .big { font-size: clamp(24px, 3.2vw, 34px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.28; }
.proofframe .big .q { color: var(--accent); }
.proofframe .big .em { color: var(--ink-2); }

@media (max-width: 900px){
  .howit { grid-template-columns: 1fr; }
  .proofcta { flex-direction: column; align-items: flex-start; }
}
