/* ============================================================
   TENGO — narrative × MORPHO — design
   Design system: dark institutional crypto-minimalism
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "FK Grotesk";
  src: url("../assets/fonts/fk-grotesk-light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "FK Grotesk";
  src: url("../assets/fonts/fk-grotesk-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* FK Grotesk Mono isn't in the captured assets — fall back to a crisp system mono */

/* ---------- Tokens ---------- */
:root {
  --bg:        #ffffff;
  --bg-elev:   #f4f4f5;
  --bg-elev-2: #ededee;
  --card:      rgba(0,0,0,.035);
  --card-2:    rgba(0,0,0,.02);
  --brd:       rgba(0,0,0,.14);
  --brd-soft:  rgba(0,0,0,.08);
  --brd-hard:  rgba(0,0,0,.28);

  --txt:       #0a0a0a;
  --txt-dim:   rgba(0,0,0,.62);
  --txt-mute:  rgba(0,0,0,.42);

  --lime:  #0a0a0a;   /* accent = black (monochrome) */
  --lime-d:#000000;
  --mint:  #1c1c1c;
  --sky:   #3a3a3a;
  --blue:  #2a2a2a;
  --green: #111111;

  --sans: "FK Grotesk", "Inter", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SF Mono", "SFMono-Regular", "JetBrains Mono", "Menlo", monospace;

  --maxw: 1200px;
  --gut:  24px;
  --radius: 22px;
  --radius-lg: 30px;
  --radius-sm: 14px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  --nav-h: 72px;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img, svg, canvas { display: block; max-width: 100%; }
::selection { background: rgba(0,0,0,.12); color: #000; }

/* thin custom scrollbar */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,.22); border-radius: 20px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
.section { position: relative; padding: clamp(80px, 12vw, 160px) 0; }
.section--tight { padding: clamp(56px, 8vw, 100px) 0; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--txt-mute);
  margin: 0 0 20px;
  display: inline-flex; align-items: center;
}
.eyebrow-inv { color: rgba(255,255,255,.55); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 300; margin: 0; letter-spacing: -.025em; line-height: 1.02; }
.display {
  font-size: clamp(44px, 7vw, 92px);
  line-height: .98;
  letter-spacing: -.035em;
}
.h2 { font-size: clamp(32px, 4.6vw, 60px); line-height: 1.0; letter-spacing: -.03em; }
.h3 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.02em; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--txt-dim); font-weight: 300; }
.mono { font-family: var(--mono); }
.dim { color: var(--txt-dim); }
.mute { color: var(--txt-mute); }
.accent { color: var(--lime); }
.grad-text {
  background: linear-gradient(96deg, #0a0a0a 30%, #6a6a6a 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 24px;
  border-radius: 100px;
  font-size: 15px; font-weight: 400;
  letter-spacing: -.01em;
  border: 1px solid transparent;
  transition: transform .5s var(--ease-out), background .3s, border-color .3s, color .3s;
  will-change: transform;
}
.btn .arrow { transition: transform .4s var(--ease-out); }
.btn:hover .arrow { transform: translate(3px,-3px); }
.btn--primary { background: #0a0a0a; color: #fff; font-weight: 500; }
.btn--primary:hover { background: #2a2a2a; }
.btn--ghost { background: rgba(0,0,0,.045); color: var(--txt); border-color: var(--brd); }
.btn--ghost:hover { background: rgba(0,0,0,.08); border-color: var(--brd-hard); }
.btn--sm { padding: 10px 18px; font-size: 14px; }

.readmore {
  font-family: var(--mono); font-size: 13px; letter-spacing: .02em;
  color: var(--txt-dim); display: inline-flex; align-items: center; gap: 7px;
  transition: color .3s, gap .3s;
}
.readmore:hover { color: var(--txt); gap: 11px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom-color: var(--brd-soft);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; }
.logo {
  font-size: 22px; letter-spacing: -.04em; font-weight: 400;
  display: inline-flex; align-items: center; gap: 0;
}
.logo b { font-weight: 400; }
.logo .dot { color: var(--txt); }
.logo-mark { height: 24px; width: auto; margin-right: 10px; mix-blend-mode: multiply; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 15px; color: var(--txt-dim); transition: color .25s; }
.nav-links a:hover { color: var(--txt); }
.nav-links a.active { color: var(--txt); }
.nav-links a.active::after { content: ""; display: block; height: 1px; background: var(--txt); margin-top: 3px; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--brd); color: var(--txt); transition: background .3s, border-color .3s, transform .4s var(--ease-out); }
.icon-btn:hover { background: var(--txt); color: #fff; transform: translateY(-2px); }
.nav--dark .icon-btn { border-color: rgba(255,255,255,.2); color: #fff; }
.nav--dark .icon-btn:hover { background: #fff; color: #0a0a0a; }
.nav-burger { display: none; }

/* nav inverted over black sections */
.nav--dark .logo, .nav--dark .logo .dot { color: #fff; }
.nav--dark .nav-links a { color: rgba(255,255,255,.6); }
.nav--dark .nav-links a:hover { color: #fff; }
.nav--dark .logo-mark { mix-blend-mode: screen; filter: invert(1); }
.nav--dark .btn--primary { background: #fff; color: #0a0a0a; }
.nav--dark.scrolled { background: rgba(10,10,12,.72); border-bottom-color: rgba(255,255,255,.1); }
.nav { transition: background .4s, backdrop-filter .4s, border-color .4s, color .35s; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-top: var(--nav-h);
  overflow: visible;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
  width: 100%;
}
.hero-copy { max-width: 620px; position: relative; z-index: 3; }
.hero h1 { margin-bottom: 26px; }
.hero .lead { max-width: 500px; margin-bottom: 34px; }
.hero .lead sup { color: var(--txt-mute); font-size: .6em; }
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-note { font-family: var(--mono); font-size: 12.5px; color: var(--txt-mute); letter-spacing: .01em; }
.hero-note b { color: var(--lime); font-weight: 400; }

/* particle canvas host — fixed full-screen, behind content */
#particle-canvas {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  z-index: 1; pointer-events: none;
}
.hero-card-anchor {
  position: relative; z-index: 2;
  aspect-ratio: 1.586 / 1; width: 100%; max-width: 460px; margin-left: auto;
  /* the particles render the card here; this is just a spacer + fallback glow */
}
.card-glow {
  position: absolute; inset: -20% -10%;
  background: radial-gradient(60% 60% at 60% 40%, rgba(0,0,0,.10), transparent 70%);
  filter: blur(34px); opacity: .7; pointer-events: none;
}
/* CSS fallback card (shown until particles are live, or when WebGL is off) */
.card-fallback {
  position: absolute; inset: 0; border-radius: 20px; overflow: hidden;
  padding: 8% 8% 7%;
  display: flex; flex-direction: column;
  background:
    radial-gradient(120% 120% at 15% 0%, rgba(255,255,255,.07), transparent 55%),
    linear-gradient(150deg, #1c1c1c 0%, #0a0a0a 60%, #151515 100%);
  border: 1px solid rgba(0,0,0,.4);
  box-shadow: 0 40px 90px -46px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.08);
  transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease);
  color: #f2f2f2;
}
.no-webgl .card-fallback { position: relative; }
body.particles-live .card-fallback { opacity: 0; transform: scale(.98); filter: blur(6px); pointer-events: none; }
.card-fallback .cf-sheen {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.06) 50%, transparent 60%);
}
.card-fallback .cf-top { display: flex; justify-content: space-between; align-items: flex-start; }
.card-fallback .cf-logo { font-size: clamp(15px,1.7vw,20px); letter-spacing: -.03em; color: #fff; display: inline-flex; align-items: center; gap: 0; }
.card-fallback .cf-logo b { color: #fff; font-weight: 400; }
.card-fallback .cf-logo .cf-mark { height: 1.3em; width: auto; margin-right: 8px; filter: invert(1); mix-blend-mode: screen; }
.card-fallback .cf-virtual { font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,.5); }
.card-fallback .cf-chiprow { display: flex; align-items: center; gap: 12px; margin-top: 12%; }
.card-fallback .cf-chip {
  width: 42px; height: 32px; border-radius: 7px;
  background: linear-gradient(135deg, #e2e2e2, #9a9a9a);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.3);
  position: relative;
}
.card-fallback .cf-chip::before, .card-fallback .cf-chip::after {
  content: ""; position: absolute; background: rgba(0,0,0,.4);
}
.card-fallback .cf-chip::before { left: 50%; top: 0; width: 1px; height: 100%; }
.card-fallback .cf-chip::after { top: 50%; left: 0; height: 1px; width: 100%; }
.card-fallback .cf-nfc { width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.45); border-left-color: transparent; border-bottom-color: transparent; transform: rotate(-45deg); }
.card-fallback .cf-graph { width: 100%; height: 34px; margin-top: auto; opacity: .9; }
.card-fallback .cf-num { font-family: var(--mono); font-size: clamp(15px,1.7vw,19px); letter-spacing: .02em; margin-top: 8px; color: #f0f0f0; }
.card-fallback .cf-bottom { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 10px; }
.card-fallback .cf-backed { font-size: 12px; color: rgba(255,255,255,.55); }
.card-fallback .cf-visa { font-style: italic; font-weight: 800; font-size: clamp(18px,2.2vw,26px); color: #fff; letter-spacing: -.02em; }

.card-badge {
  position: absolute; left: 5%; bottom: -18px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: 100px;
  background: rgba(255,255,255,.85); border: 1px solid var(--brd);
  backdrop-filter: blur(10px); color: var(--txt);
  font-size: 13px; z-index: 4;
  transition: opacity .4s, transform .4s;
}
.card-badge .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--lime);
  box-shadow: 0 0 0 0 rgba(198,242,78,.6); animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0,0,0,.45); }
  70% { box-shadow: 0 0 0 9px rgba(0,0,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); }
}

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--txt-mute); z-index: 3;
}
.scroll-hint .line { width: 1px; height: 44px; background: linear-gradient(var(--txt), transparent); }

/* ---------- Stat strip ---------- */
.statstrip {
  border-top: 1px solid var(--brd-soft); border-bottom: 1px solid var(--brd-soft);
  position: relative; z-index: 3; background: rgba(255,255,255,.55);
  backdrop-filter: blur(6px);
}
.statstrip .wrap { display: grid; grid-template-columns: repeat(4,1fr); }
.stat { padding: 34px 26px; border-left: 1px solid var(--brd-soft); }
.stat:first-child { border-left: none; }
.stat .num { font-family: var(--mono); font-size: clamp(26px,3vw,40px); font-weight: 400; letter-spacing: -.02em; }
.stat .lbl { font-size: 13px; color: var(--txt-mute); margin-top: 6px; font-family: var(--mono); letter-spacing: .02em; }
.stat .num .u { color: var(--lime); }

/* ============================================================
   Generic section header
   ============================================================ */
.sec-head { max-width: 760px; margin-bottom: clamp(40px,5vw,72px); }
.sec-head .h2 { margin-bottom: 18px; }

/* ---------- Triptych "deposit. spend. keep." ---------- */
.triptych { text-align: left; }
.triptych .big {
  font-size: clamp(48px, 9vw, 132px); line-height: .96; letter-spacing: -.04em;
}
.triptych .big span { display: inline-block; }
.triptych .word-dim { color: var(--txt-mute); }
.triptych .sub { margin-top: 30px; max-width: 520px; }

/* ---------- Cards grid (How it works) ---------- */
.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.card {
  position: relative; border-radius: var(--radius-lg);
  background: var(--card); border: 1px solid var(--brd-soft);
  padding: 30px; overflow: hidden;
  transition: border-color .4s, background .4s, transform .5s var(--ease-out);
}
.card:hover { border-color: var(--brd-hard); background: rgba(0,0,0,.03); }
.card .card-media {
  height: 208px; margin: -30px -30px 26px; position: relative; overflow: hidden;
  border-bottom: 1px solid var(--brd-soft);
  background: linear-gradient(158deg, #f2f2f3, #e6e6e8);
}
.card .card-media .cm-flow {
  width: 100%; height: 100%; display: block;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 45%, #000 55%, transparent 100%);
  mask-image: radial-gradient(120% 100% at 50% 45%, #000 55%, transparent 100%);
  transition: opacity .6s; opacity: .92;
}
.card:hover .card-media .cm-flow { opacity: 1; }
.card .card-num { display: none; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--txt-dim); font-size: 15.5px; margin: 0; }

/* mesh gradient blobs used inside media */
.mesh {
  position: absolute; inset: 0;
  background:
    radial-gradient(45% 60% at 22% 26%, rgba(0,0,0,.20), transparent 70%),
    radial-gradient(46% 62% at 78% 68%, rgba(0,0,0,.13), transparent 72%),
    radial-gradient(52% 62% at 55% 42%, rgba(0,0,0,.06), transparent 75%),
    #e8e8e9;
}
.mesh.mesh--b {
  background:
    radial-gradient(48% 62% at 72% 28%, rgba(0,0,0,.22), transparent 70%),
    radial-gradient(52% 62% at 24% 72%, rgba(0,0,0,.11), transparent 72%),
    #ededee;
}
.mesh.mesh--c {
  background:
    radial-gradient(52% 62% at 38% 34%, rgba(0,0,0,.18), transparent 70%),
    radial-gradient(46% 58% at 78% 72%, rgba(0,0,0,.10), transparent 72%),
    #e6e6e7;
}
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--grain); opacity: .5; mix-blend-mode: overlay;
}

/* ---------- Cost plaques ---------- */
.plaques { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--brd-soft);
  border: 1px solid var(--brd-soft); border-radius: var(--radius); overflow: hidden; }
.plaque { background: var(--bg); padding: 40px 28px; transition: background .4s; }
.plaque:hover { background: var(--bg-elev); }
.plaque .val { font-family: var(--mono); font-size: clamp(36px,4.5vw,58px); font-weight: 400; letter-spacing: -.03em; }
.plaque .val.lime { color: var(--lime); }
.plaque .cap { font-size: 12.5px; color: var(--txt-mute); margin-top: 14px; font-family: var(--mono);
  letter-spacing: .06em; text-transform: uppercase; line-height: 1.5; }

/* ---------- Phone mockups (inside the app) ---------- */
.phones { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.phone {
  border-radius: 28px; border: 1px solid var(--brd); background: linear-gradient(180deg,#fcfcfc,#f2f2f3);
  padding: 20px; min-height: 380px; position: relative; overflow: hidden;
  box-shadow: 0 30px 70px -44px rgba(0,0,0,.4);
}
.phone .status { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--txt-mute); margin-bottom: 22px; }
.phone .ptitle { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--txt-mute); margin-bottom: 16px; }
.phone .pbig { font-size: 22px; margin-bottom: 8px; }

/* safety meter */
.meter { height: 8px; border-radius: 10px; background: rgba(0,0,0,.10); overflow: hidden; margin: 20px 0 10px; }
.meter i { display: block; height: 100%; width: 86%; border-radius: 10px;
  background: linear-gradient(90deg, #555, #0a0a0a); }

/* cost breakdown rows */
.brow { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--brd-soft); font-size: 14.5px; }
.brow:last-child { border-bottom: none; }
.brow .k { color: var(--txt-dim); }
.brow.total { font-family: var(--mono); }
.brow.total .v { color: var(--lime); }

/* agent log */
.logitem { padding: 14px 0; border-bottom: 1px solid var(--brd-soft); }
.logitem:last-child { border: none; }
.logitem .lt { font-size: 14.5px; margin-bottom: 5px; display: flex; align-items: center; gap: 8px; }
.logitem .lt::before { content:""; width:6px;height:6px;border-radius:50%;background:var(--green); }
.logitem .ld { font-size: 13px; color: var(--txt-mute); }

/* ---------- Code block (Open by design) ---------- */
.codewrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: center; }
.codecard {
  border-radius: var(--radius); border: 1px solid var(--brd);
  background: #f6f6f7; overflow: hidden; box-shadow: 0 40px 80px -54px rgba(0,0,0,.45);
}
.codecard .bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--brd-soft); }
.codecard .bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(0,0,0,.16); }
.codecard .bar .fname { margin-left: 12px; font-family: var(--mono); font-size: 12.5px; color: var(--txt-mute); }
.codecard pre { margin: 0; padding: 22px 22px 26px; overflow-x: auto; }
.codecard code { font-family: var(--mono); font-size: 13px; line-height: 1.75; white-space: pre; }
.tok-com { color: rgba(0,0,0,.40); }
.tok-key { color: var(--sky); }
.tok-fn  { color: var(--mint); }
.tok-str { color: var(--green); }
.tok-num { color: var(--lime); }
.tok-typ { color: var(--blue); }
.cursor-blink { display:inline-block; width:8px; height:15px; background:var(--lime); vertical-align:-2px; margin-left:2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 0%,50%{opacity:1} 51%,100%{opacity:0} }

/* ---------- Security 2x2 ---------- */
.security-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 0; border: 1px solid var(--brd-soft); border-radius: var(--radius); overflow: hidden; }
.sec-item { padding: 40px; border-right: 1px solid var(--brd-soft); border-bottom: 1px solid var(--brd-soft); transition: background .4s; }
.sec-item:nth-child(2n) { border-right: none; }
.sec-item:nth-child(n+3) { border-bottom: none; }
.sec-item:hover { background: var(--card-2); }
.sec-item .ico { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--brd); display: grid; place-items: center; margin-bottom: 20px; color: var(--lime); }
.sec-item h3 { margin-bottom: 10px; font-size: 21px; }
.sec-item p { color: var(--txt-dim); font-size: 15px; margin: 0; }
.sec-item .tag { font-family: var(--mono); font-size: 11px; color: var(--txt-mute); letter-spacing: .04em; margin-top: 16px; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.price {
  border-radius: var(--radius-lg); padding: 40px 34px; border: 1px solid var(--brd-soft);
  background: var(--card-2); position: relative; overflow: hidden;
}
.price { display: flex; flex-direction: column; }
.price.feat { background: #0a0a0a; border-color: #0a0a0a; color: #fff; }
.price-label { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--txt-mute); margin-bottom: 22px; }
.price.feat .price-label { color: rgba(255,255,255,.5); }
.price .pv { font-family: var(--mono); font-size: clamp(38px,4.6vw,58px); letter-spacing: -.03em; }
.price .pc { color: var(--txt-dim); margin-top: 12px; }
.price.feat .pc { color: rgba(255,255,255,.6); }
.price-feats { list-style: none; padding: 0; margin: 26px 0 0; border-top: 1px solid var(--brd-soft); }
.price.feat .price-feats { border-color: rgba(255,255,255,.14); }
.price-feats li { padding: 12px 0 12px 26px; position: relative; font-size: 14.5px; color: var(--txt-dim); border-bottom: 1px solid var(--brd-soft); }
.price.feat .price-feats li { color: rgba(255,255,255,.78); border-color: rgba(255,255,255,.1); }
.price-feats li:last-child { border-bottom: none; }
.price-feats li::before { content: "✓"; position: absolute; left: 0; top: 12px; color: var(--txt); font-size: 13px; }
.price.feat .price-feats li::before { color: #fff; }

/* ---------- Marquee (rails / partners) ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent); mask-image: linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent); }
.marquee-track { display: flex; gap: 60px; width: max-content; animation: marq 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .item { font-size: 26px; color: var(--txt-mute); font-weight: 300; letter-spacing: -.02em; display: flex; align-items: center; gap: 12px; transition: color .3s; white-space: nowrap; }
.marquee .item:hover { color: var(--txt); }
.marquee .item .d { width: 1px; height: 16px; background: var(--txt); opacity: .28; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- Waitlist / countries ---------- */
.waitlist { border-radius: var(--radius-lg); border: 1px solid var(--brd); overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent); position: relative; }
.waitlist .inner { padding: clamp(36px,5vw,68px); position: relative; z-index: 2; }
.countries { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 36px; max-width: 780px; }
.chip { font-family: var(--mono); font-size: 12.5px; color: var(--txt-dim); padding: 7px 13px;
  border: 1px solid var(--brd-soft); border-radius: 100px; transition: all .3s; cursor: pointer; user-select: none; }
.waitlist.is-black .chip.selected { background: #fff; color: #0a0a0a; border-color: #fff; }
.chip.selected { background: var(--txt); color: #fff; border-color: var(--txt); }
.chip:hover { border-color: var(--brd-hard); color: var(--txt); background: var(--card); }
.chip.more { color: var(--txt); border-color: rgba(0,0,0,.28); font-weight: 400; cursor: pointer; background: none; }
.chip.is-hidden { display: none; }
.wform { display: flex; gap: 10px; max-width: 480px; flex-wrap: wrap; }
.wform input {
  flex: 1; min-width: 220px; background: rgba(0,0,0,.03); border: 1px solid var(--brd);
  border-radius: 100px; padding: 15px 20px; color: var(--txt); font-family: var(--sans); font-size: 15px;
  outline: none; transition: border-color .3s;
}
.wform input:focus { border-color: rgba(0,0,0,.45); }
.wform input::placeholder { color: var(--txt-mute); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--brd-soft); }
.faq-item { border-bottom: 1px solid var(--brd-soft); }
.faq-q { width: 100%; text-align: left; background: none; border: none; color: var(--txt);
  padding: 28px 0; font-size: clamp(19px,2vw,24px); font-weight: 300; letter-spacing: -.02em;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.faq-q .pm { width: 26px; height: 26px; position: relative; flex-shrink: 0; }
.faq-q .pm::before, .faq-q .pm::after { content:""; position:absolute; background: var(--txt-dim); transition: transform .4s var(--ease), background .3s; }
.faq-q .pm::before { top: 12px; left: 3px; width: 20px; height: 1.5px; }
.faq-q .pm::after  { left: 12px; top: 3px; width: 1.5px; height: 20px; }
.faq-item.open .pm::after { transform: scaleY(0); }
.faq-item.open .pm::before { background: var(--lime); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); }
.faq-a .inner { padding: 0 0 28px; color: var(--txt-dim); max-width: 720px; font-size: 16px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--brd-soft); padding: 70px 0 40px; position: relative; z-index: 3; background: rgba(255,255,255,.65); backdrop-filter: blur(8px); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 60px; }
.footer h5 { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--txt-mute); margin: 0 0 18px; font-weight: 400; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer ul a { color: var(--txt-dim); font-size: 15px; transition: color .25s; }
.footer ul a:hover { color: var(--txt); }
.footer .brand-col p { color: var(--txt-mute); font-size: 14px; max-width: 260px; margin: 14px 0 0; }
.footer-bottom { border-top: 1px solid var(--brd-soft); padding-top: 26px; color: var(--txt-mute); font-size: 12.5px; line-height: 1.7; max-width: 900px; }
.footer-bottom a { color: var(--txt-dim); text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   Custom cursor
   ============================================================ */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; border-radius: 50%; mix-blend-mode: difference; }
.cursor-dot { width: 5px; height: 5px; background: #fff; margin: -2.5px 0 0 -2.5px; transition: opacity .3s, transform .12s; }
.cursor-ring { width: 18px; height: 18px; border: 1px solid rgba(255,255,255,.7); margin: -9px 0 0 -9px;
  transition: width .3s var(--ease), height .3s var(--ease), opacity .3s, border-color .3s, background .3s; }
.cursor-ring.hover { width: 30px; height: 30px; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.9); }
body.has-cursor { cursor: none; }
body.has-cursor a, body.has-cursor button { cursor: none; }

/* ============================================================
   Reveal animations
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* aurora background blobs (behind everything, subtle) */
.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(100px); opacity: .05; }
.aurora .a1 { width: 640px; height: 640px; left: -12%; top: 4%; background: radial-gradient(circle, var(--lime), transparent 62%); animation: drift1 26s ease-in-out infinite; }
.aurora .a2 { width: 560px; height: 560px; right: -10%; top: 34%; background: radial-gradient(circle, var(--sky), transparent 62%); animation: drift2 32s ease-in-out infinite; }
.aurora .a3 { width: 500px; height: 500px; left: 30%; bottom: -8%; background: radial-gradient(circle, var(--mint), transparent 62%); animation: drift3 30s ease-in-out infinite; }
@keyframes drift1 { 50% { transform: translate(120px,60px) scale(1.15); } }
@keyframes drift2 { 50% { transform: translate(-100px,40px) scale(1.1); } }
@keyframes drift3 { 50% { transform: translate(60px,-70px) scale(1.2); } }

/* content sits above canvas/aurora — but NOT .nav (it must stay position:fixed) */
main, .footer { position: relative; z-index: 3; }
.section > .wrap { position: relative; z-index: 3; }

/* ============================================================
   v2 — black details, invert, terminal, expand, rails, form
   ============================================================ */

/* flowing wave-line background (drapery-like) */
#wave-bg { position: fixed; inset: 0; z-index: 0; width: 100vw; height: 100vh; pointer-events: none; opacity: .9; }

/* black accent details */
.stat.is-black { background: #0a0a0a; color: #fff; }
.stat.is-black .lbl { color: rgba(255,255,255,.55); }
.stat.is-black .num .u { color: #fff; }
.live-rate { position: relative; }

.plaque.is-black { background: #0a0a0a; color: #fff; }
.plaque.is-black .cap { color: rgba(255,255,255,.5); }

.phone.is-black { background: linear-gradient(180deg,#161616,#0a0a0a); border-color: rgba(255,255,255,.12); color: #fff; }
.phone.is-black .ptitle { color: rgba(255,255,255,.5); }
.phone.is-black .brow { border-color: rgba(255,255,255,.1); }
.phone.is-black .brow .k { color: rgba(255,255,255,.6); }
.phone.is-black .brow.total .v { color: #fff; }

/* inverted manifesto section — soft gradient edges so there's no hard black line */
.invert { background: #0a0a0a; color: #fff; padding: clamp(110px,15vw,200px) 0; position: relative; z-index: 3; }
.invert::before, .invert::after { content: ""; position: absolute; left: 0; right: 0; height: 180px; z-index: 3; pointer-events: none; }
.invert::before { top: -179px; background: linear-gradient(to bottom, rgba(10,10,10,0), #0a0a0a); }
.invert::after { bottom: -179px; background: linear-gradient(to top, rgba(10,10,10,0), #0a0a0a); }
.waitlist.is-black { position: relative; }
.invert .eyebrow { color: rgba(255,255,255,.6); }
.invert .eyebrow::before { background: #fff; }
.manifesto-line { font-size: clamp(28px,4.2vw,56px); font-weight: 300; line-height: 1.1; letter-spacing: -.025em; max-width: 1020px; margin-top: 22px; }
.manifesto-line .dim2 { color: rgba(255,255,255,.42); display: block; margin-top: 12px; }
.manifesto-flow { display: flex; align-items: stretch; gap: 12px; flex-wrap: wrap; margin-top: 56px; }
.flow-node { position: relative; border: 1px solid rgba(255,255,255,.16); border-radius: 18px; padding: 22px; font-size: 16px; min-width: 168px; flex: 1;
  background: rgba(255,255,255,.03); transition: background .4s, border-color .4s, transform .5s var(--ease-out); display: flex; flex-direction: column; }
.flow-node:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.42); transform: translateY(-4px); }
.flow-node .fn-k { display: none; }
.flow-node .fn-name { font-size: clamp(20px,2.4vw,27px); font-weight: 300; letter-spacing: -.02em; margin: 0 0 8px; }
.flow-node small { color: rgba(255,255,255,.45); font-size: 12.5px; }
.flow-arrow { color: rgba(255,255,255,.3); font-size: 20px; align-self: center; }
.manifesto-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: 60px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 40px; }
.manifesto-stats div { display: flex; flex-direction: column; gap: 6px; }
.manifesto-stats b { font-size: clamp(30px,3.6vw,46px); font-weight: 300; letter-spacing: -.02em; }
.manifesto-stats span { color: rgba(255,255,255,.5); font-size: 13.5px; }

/* interactive terminal */
.terminal { border-radius: var(--radius); border: 1px solid var(--brd); background: #0a0a0a; overflow: hidden;
  box-shadow: 0 40px 80px -52px rgba(0,0,0,.5); font-family: var(--mono); min-height: 360px; display: flex; flex-direction: column; }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid rgba(255,255,255,.1); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.18); }
.term-bar .fname { margin-left: 10px; font-size: 12px; color: rgba(255,255,255,.42); }
.term-body { padding: 18px; font-size: 13px; line-height: 1.7; color: #e2e2e2; flex: 1; overflow-y: auto; max-height: 320px; white-space: pre-wrap; word-break: break-word; }
.term-body .cmd-echo { color: #fff; }
.term-body .muted2 { color: rgba(255,255,255,.42); }
.term-body .hl { color: #fff; font-weight: 400; }
.term-body b { color: #fff; font-weight: 400; }
.term-inputline { display: flex; align-items: center; gap: 9px; padding: 13px 18px; border-top: 1px solid rgba(255,255,255,.1); }
.term-prompt { color: #fff; }
.term-inputline input { flex: 1; background: none; border: none; outline: none; color: #fff; font-family: var(--mono); font-size: 13px; caret-color: #fff; }

/* Security — expanding panels */
.expand { display: flex; gap: 12px; height: 460px; }
.ex-panel { position: relative; flex: 1 1 0; min-width: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--brd-soft); cursor: pointer; transition: flex .6s var(--ease-out); background: #0a0a0a; }
.ex-panel::before { content: ""; position: absolute; inset: 0; transition: opacity .6s, transform .9s var(--ease-out);
  background:
    radial-gradient(130% 90% at 82% 8%, rgba(255,255,255,.10), transparent 58%),
    repeating-linear-gradient(46deg, rgba(255,255,255,.028) 0 1px, transparent 1px 15px); }
.ex-panel:hover::before { opacity: .8; }
.ex-panel.active::before { transform: scale(1.02); }
.ex-panel .ex-watermark { position: absolute; right: -6px; bottom: -34px; z-index: 2;
  font-weight: 300; font-size: 190px; line-height: 1; color: rgba(255,255,255,.05); letter-spacing: -.05em; }
.ex-panel.active { flex: 4.2 1 0; }
.ex-num { position: absolute; top: 20px; left: 22px; z-index: 3; font-family: var(--mono); font-size: 13px; color: rgba(255,255,255,.65); }
.ex-body { position: absolute; left: 0; bottom: 0; z-index: 3; padding: 32px; color: #fff; max-width: 480px;
  opacity: 0; transform: translateY(14px); transition: opacity .45s .1s, transform .6s .1s; }
.ex-panel.active .ex-body { opacity: 1; transform: none; }
.ex-body h3 { font-size: clamp(22px,2.4vw,28px); margin-bottom: 12px; font-weight: 300; }
.ex-body p { color: rgba(255,255,255,.72); font-size: 15px; margin: 0 0 16px; }
.ex-tag { font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,.5); letter-spacing: .05em; }
.ex-label { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%) rotate(180deg); z-index: 3;
  writing-mode: vertical-rl; color: #fff; font-size: 15px; letter-spacing: .02em; opacity: .82; transition: opacity .35s; white-space: nowrap; }
.ex-panel.active .ex-label { opacity: 0; }

/* rails drag carousel */
.rail-scroller { overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; cursor: grab; padding: 6px var(--gut) 10px;
  scroll-snap-type: x proximity; margin-top: 40px; }
.rail-scroller::-webkit-scrollbar { display: none; }
.rail-scroller.dragging { cursor: grabbing; scroll-snap-type: none; }
.rail-scroller.dragging .rail-card { pointer-events: none; }
.rail-track { display: flex; gap: 18px; width: max-content; }
.rail-card { scroll-snap-align: center; width: 340px; flex: 0 0 340px; border-radius: var(--radius-lg);
  border: 1px solid var(--brd-soft); background: var(--card-2); padding: 28px; min-height: 300px;
  display: flex; flex-direction: column;
  transition: border-color .4s, transform .5s var(--ease-out), background .4s; }
.rail-card:hover { border-color: var(--brd-hard); background: var(--card); transform: translateY(-5px); }
.rail-card .rc-idx { display: none; }
.rail-card h4 { font-size: 22px; font-weight: 300; margin: 0 0 12px; letter-spacing: -.02em; }
.rail-card p { color: var(--txt-dim); font-size: 14.5px; margin: 0 0 22px; line-height: 1.55; }
.rail-card .rc-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; border-top: 1px solid var(--brd-soft); }
.rail-card .rc-tag { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--txt-mute); }
.rail-card .rc-meta { font-size: 13px; color: var(--txt); }
.rail-card:first-child { background: #0a0a0a; border-color: #0a0a0a; color: #fff; }
.rail-card:first-child p { color: rgba(255,255,255,.72); }
.rail-card:first-child .rc-ico { color: #fff; }
.rail-card:first-child .rc-idx, .rail-card:first-child .rc-tag { color: rgba(255,255,255,.5); }
.rail-card:first-child .rc-meta { color: #fff; }
.rail-card:first-child .rc-foot { border-color: rgba(255,255,255,.14); }

/* Security — clean numbered accordion (no boxy "table") */
.sec-list { border-top: 1px solid var(--brd); }
.sec-row { border-bottom: 1px solid var(--brd-soft); transition: border-color .3s; }
.sec-row:hover { border-color: var(--brd); }
.sr-head { width: 100%; background: none; border: none; text-align: left; cursor: pointer; color: var(--txt);
  display: grid; grid-template-columns: 1fr auto 26px; align-items: center; gap: 24px; padding: 30px 2px; }
.sr-num { display: none; }
.sr-title { font-size: clamp(20px,2.5vw,30px); font-weight: 300; letter-spacing: -.025em; transition: opacity .3s; }
.sr-tag { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--txt-mute); }
.sr-ind { width: 22px; height: 22px; position: relative; justify-self: end; }
.sr-ind::before, .sr-ind::after { content: ""; position: absolute; background: var(--txt-dim); transition: transform .4s var(--ease), background .3s; }
.sr-ind::before { top: 10px; left: 1px; width: 20px; height: 1.5px; }
.sr-ind::after { left: 10px; top: 1px; width: 1.5px; height: 20px; }
.sec-row.open .sr-ind::after { transform: scaleY(0); }
.sec-row.open .sr-ind::before { background: var(--txt); }
.sr-body { max-height: 0; overflow: hidden; transition: max-height .55s var(--ease); }
.sr-inner { padding: 0 0 32px 2px; max-width: 760px; color: var(--txt-dim); font-size: 16.5px; line-height: 1.6; }
@media (max-width: 700px) {
  .sr-head { grid-template-columns: 1fr 22px; gap: 14px; }
  .sr-tag { display: none; }
}

/* waitlist black + working form */
.waitlist.is-black { background: #0a0a0a; border-color: rgba(255,255,255,.14); color: #fff; }
.waitlist.is-black .lead { color: rgba(255,255,255,.66); }
.waitlist.is-black .chip { color: rgba(255,255,255,.6); border-color: rgba(255,255,255,.16); }
.waitlist.is-black .chip:hover { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); }
.waitlist.is-black .chip.more { color: #fff; border-color: rgba(255,255,255,.3); }
.waitlist.is-black .wform input { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: #fff; }
.waitlist.is-black .wform input::placeholder { color: rgba(255,255,255,.42); }
.waitlist.is-black .wform input:focus { border-color: rgba(255,255,255,.55); }
.waitlist.is-black .btn--primary { background: #fff; color: #0a0a0a; }
.waitlist.is-black .btn--primary:hover { background: #e8e8e8; }
.waitlist.is-black .mute { color: rgba(255,255,255,.4); }
.waitcount { font-family: var(--mono); font-size: 14px; color: rgba(255,255,255,.6); margin: 22px 0 2px; }
.waitcount b { color: #fff; font-weight: 400; }
.wmsg { font-size: 13.5px; margin-top: 14px; min-height: 18px; color: #fff; }

/* footer CTA */
.footer-cta { display: flex; justify-content: space-between; align-items: center; gap: 30px;
  padding-bottom: 56px; margin-bottom: 50px; border-bottom: 1px solid var(--brd-soft); flex-wrap: wrap; }
.footer-cta .h2 { line-height: 1.02; }

/* comparison */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.compare-col { border-radius: var(--radius-lg); border: 1px solid var(--brd-soft); padding: 34px; background: var(--card-2); }
.cc-black { background: #0a0a0a; color: #fff; border-color: #0a0a0a; }
.compare-col .cc-head { font-size: 20px; font-weight: 400; margin-bottom: 18px; letter-spacing: -.02em; }
.compare-col ul { list-style: none; padding: 0; margin: 0; }
.compare-col li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--brd-soft); font-size: 15px; }
.compare-col li:first-of-type { border-top: none; }
.cc-black li { border-color: rgba(255,255,255,.1); }
.compare-col li span { color: var(--txt-dim); }
.cc-black li span { color: rgba(255,255,255,.5); }
.compare-col li b { font-weight: 400; text-align: right; }
@media (max-width: 700px) { .compare { grid-template-columns: 1fr; } }

/* LIVE — network status, calculator, activity feed */
.netstatus { font-family: var(--mono); font-size: 13px; color: var(--txt-dim); margin-top: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.netstatus b { color: var(--txt); font-weight: 400; }
.ns-dot { display: none; }
.live-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 18px; margin-top: 44px; }
.calc { border-radius: var(--radius-lg); border: 1px solid var(--brd-soft); background: var(--card-2); padding: 34px; }
.calc-label { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--txt-mute); }
.calc-big { font-family: var(--mono); font-size: clamp(38px,5vw,58px); font-weight: 400; letter-spacing: -.03em; margin: 8px 0 26px; }
.calc-slider { width: 100%; -webkit-appearance: none; appearance: none; height: 2px; background: var(--brd-hard); outline: none; cursor: pointer; }
.calc-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #0a0a0a; cursor: grab; border: 4px solid #fff; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.calc-slider::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #0a0a0a; cursor: grab; border: 4px solid #fff; }
.calc-scale { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--txt-mute); margin-top: 10px; }
.calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--brd-soft); border: 1px solid var(--brd-soft); border-radius: var(--radius-sm); overflow: hidden; margin-top: 28px; }
.calc-out > div { background: var(--bg); padding: 18px 20px; }
.calc-out span { display: block; font-size: 12px; color: var(--txt-mute); font-family: var(--mono); margin-bottom: 7px; }
.calc-out b { font-family: var(--mono); font-size: clamp(19px,2.2vw,25px); font-weight: 400; letter-spacing: -.02em; }
.calc-note { font-family: var(--mono); font-size: 11.5px; color: var(--txt-mute); margin-top: 18px; }
.feed { border-radius: var(--radius-lg); border: 1px solid #0a0a0a; background: #0a0a0a; color: #fff; padding: 28px; overflow: hidden; }
.feed-head { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5); display: flex; align-items: center; gap: 9px; margin-bottom: 18px; }
.feed .ns-dot { background: #fff; }
.feed .ns-dot::after { border-color: #fff; }
.feed-list { display: flex; flex-direction: column; }
.feed-item { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.08); animation: feedin .5s var(--ease-out); }
.feed-item:last-child { border-bottom: none; }
.feed-item .fi-txt { font-size: 14.5px; color: rgba(255,255,255,.9); }
.feed-item .fi-meta { font-family: var(--mono); font-size: 11.5px; color: rgba(255,255,255,.4); white-space: nowrap; }
@keyframes feedin { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) { .live-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Inner pages (Security / Developers / Transparency)
   ============================================================ */
.page { padding-top: var(--nav-h); }
.page-hero { padding: clamp(70px,11vw,140px) 0 clamp(44px,6vw,72px); border-bottom: 1px solid var(--brd-soft); position: relative; z-index: 3; }
.page-back { font-family: var(--mono); font-size: 13px; color: var(--txt-mute); margin-bottom: 30px; display: flex; width: fit-content; gap: 8px; transition: color .3s, gap .3s; }
.page-back:hover { color: var(--txt); gap: 12px; }
.page-hero h1 { font-size: clamp(40px,6.4vw,82px); font-weight: 300; letter-spacing: -.035em; line-height: .98; }
.page-hero .lead { margin-top: 24px; max-width: 640px; }
.doc-section { padding: clamp(52px,7vw,92px) 0; border-bottom: 1px solid var(--brd-soft); position: relative; z-index: 3; }
.doc-section.is-black { background: #0a0a0a; color: #fff; }
.doc-section.is-black .doc-label { color: rgba(255,255,255,.5); }
.doc-section.is-black .doc-body p { color: rgba(255,255,255,.68); }
.doc-grid { display: grid; grid-template-columns: 240px 1fr; gap: 44px; align-items: start; }
.doc-label { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--txt-mute); position: sticky; top: 100px; }
.doc-body > h3 { font-size: clamp(22px,2.5vw,32px); font-weight: 300; letter-spacing: -.02em; margin: 0 0 16px; }
.doc-body p { color: var(--txt-dim); font-size: 16.5px; line-height: 1.6; margin: 0 0 18px; max-width: 700px; }
.doc-body p:last-child { margin-bottom: 0; }
.doc-body .accent { color: var(--txt); font-weight: 400; }
.doc-ul { list-style: none; padding: 0; margin: 8px 0 0; }
.doc-ul li { padding: 15px 0 15px 28px; position: relative; border-top: 1px solid var(--brd-soft); color: var(--txt-dim); font-size: 15.5px; max-width: 720px; }
.doc-ul li::before { content: "→"; position: absolute; left: 0; top: 15px; color: var(--txt); }
.is-black .doc-ul li { border-color: rgba(255,255,255,.12); color: rgba(255,255,255,.7); }
.is-black .doc-ul li::before { color: #fff; }
.perm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
.perm { border: 1px solid var(--brd-soft); border-radius: var(--radius-sm); padding: 20px 22px; }
.perm.can { }
.perm .perm-h { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.perm.can .perm-h::before { content: "✓"; }
.perm.cannot .perm-h::before { content: "✕"; }
.perm ul { list-style: none; padding: 0; margin: 0; }
.perm li { font-size: 14px; color: var(--txt-dim); padding: 6px 0; }
.param-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--brd-soft); border: 1px solid var(--brd-soft); border-radius: var(--radius); overflow: hidden; }
.param-grid > div { background: var(--bg); padding: 26px 24px; }
.param-grid b { font-family: var(--mono); font-size: clamp(24px,3vw,36px); font-weight: 400; letter-spacing: -.02em; display: block; }
.param-grid span { font-size: 12.5px; color: var(--txt-mute); margin-top: 10px; display: block; font-family: var(--mono); }
.ctable { border: 1px solid var(--brd-soft); border-radius: var(--radius); overflow: hidden; }
.ct-row { display: grid; grid-template-columns: 1.1fr 1.5fr auto; gap: 20px; padding: 18px 24px; border-top: 1px solid var(--brd-soft); align-items: center; }
.ct-row:first-child { border-top: none; background: var(--card-2); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--txt-mute); }
.ct-name { font-size: 15px; }
.ct-addr { font-family: var(--mono); font-size: 13px; color: var(--txt-dim); overflow: hidden; text-overflow: ellipsis; }
.ct-link { font-family: var(--mono); font-size: 12px; color: var(--txt-mute); white-space: nowrap; transition: color .3s; }
.ct-link:hover { color: var(--txt); }
.codeblock2 { background: #0a0a0a; color: #e2e2e2; border-radius: var(--radius); padding: 24px; font-family: var(--mono); font-size: 12.5px; line-height: 1.75; overflow-x: auto; margin-top: 8px; }
.codeblock2 .c-key { color: #88c0ff; } .codeblock2 .c-com { color: rgba(255,255,255,.4); } .codeblock2 .c-fn { color: #b0ffeb; } .codeblock2 .c-str { color: #a8e063; }
@media (max-width: 800px) {
  .doc-grid { grid-template-columns: 1fr; gap: 18px; }
  .doc-label { position: static; }
  .perm-grid { grid-template-columns: 1fr; }
  .param-grid { grid-template-columns: 1fr 1fr; }
  .ct-row { grid-template-columns: 1fr; gap: 6px; }
  .ct-row:first-child { display: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-card-anchor { max-width: 380px; margin: 10px auto 0; }
  .hero-copy { text-align: left; }
  .statstrip .wrap { grid-template-columns: repeat(2,1fr); }
  .stat:nth-child(3) { border-left: none; }
  .cards, .phones, .pricing { grid-template-columns: 1fr; }
  .plaques { grid-template-columns: repeat(2,1fr); }
  .codewrap { grid-template-columns: 1fr; gap: 26px; }
  .security-grid { grid-template-columns: 1fr; }
  .sec-item { border-right: none; }
  .sec-item:nth-child(3) { border-bottom: 1px solid var(--brd-soft); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  body.has-cursor { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
}
@media (max-width: 560px) {
  :root { --gut: 18px; }
  .plaques { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .statstrip .wrap { grid-template-columns: 1fr 1fr; }
}

/* v2 responsive */
@media (max-width: 940px) {
  .statstrip .wrap { grid-template-columns: repeat(2,1fr); }
  .manifesto-flow { gap: 8px; }
  .flow-arrow { transform: rotate(90deg); width: 100%; text-align: center; }
  .flow-node { width: 100%; }
  .expand { flex-direction: column; height: auto; }
  .ex-panel { flex: 0 0 auto; height: 88px; transition: height .5s var(--ease-out); }
  .ex-panel.active { flex: 0 0 auto; height: 330px; }
  .ex-body { max-width: none; }
  .ex-label { writing-mode: horizontal-tb; transform: none; left: 22px; bottom: 22px; }
  .footer-cta { flex-direction: column; align-items: flex-start; }
  .terminal { min-height: 320px; }
}
@media (max-width: 560px) {
  .rail-card { width: 280px; flex-basis: 280px; }
  .card .card-media { height: 180px; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
