/* Layout: a single dark "verification terminal" world. HUD frames, neon state colours
   (green pass, red fail, blue system) on deep navy, Pip as the one warm, soft element. */
:root {
  --ink-0: #060912;
  --ink-1: #0B0F1A;
  --ink-2: #111A2C;
  --ink-3: #18233A;
  --line: rgba(80, 140, 255, 0.18);
  --line-strong: rgba(80, 160, 255, 0.42);
  --text: #E8EFFF;
  --muted: #8C9BBD;
  --blue: #3B82F6;
  --cyan: #22D3EE;
  --green: #22E584;
  --red: #FF4D5E;
  --violet: #8A5CF6;

  --f-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --f-body: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --r: 14px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html, body { max-width: 100%; }
body {
  margin: 0;
  background: var(--ink-0);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--ink-0);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--green); color: var(--ink-0); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.mono { font-family: var(--f-mono); letter-spacing: 0.06em; }
.wrap {
  width: 100%; max-width: 1200px; margin-inline: auto;
  padding-left: calc(var(--gutter-l) + 8px); padding-right: calc(var(--gutter-r) + 8px);
}
.green { color: var(--green); }
.red { color: var(--red); }
.blink { animation: blink 1.1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; vertical-align: middle; margin-right: 6px; box-shadow: 0 0 10px currentColor; }

/* ---------- Background texture ---------- */
main { position: relative; }
main::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(59,130,246,0.16), transparent 60%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 56px 56px,
    var(--ink-0);
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 85%);
  opacity: 0.55;
}
.scanlines {
  position: fixed; inset: 0; pointer-events: none; z-index: 70;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}

/* ---------- Boot ---------- */
.boot {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: var(--ink-0);
}
.boot-inner { width: min(440px, 86vw); display: grid; gap: 18px; justify-items: start; }
.boot-logo { width: 72px; filter: drop-shadow(0 0 24px rgba(34,211,238,0.5)); }
.boot-log { margin: 0; min-height: 7.5em; font-family: var(--f-mono); font-size: 12.5px; line-height: 1.5; color: var(--muted); white-space: pre-wrap; }
.boot-log .ok { color: var(--green); }
.boot-log .no { color: var(--red); }
.boot-bar { width: 100%; height: 3px; background: var(--ink-3); border-radius: 3px; overflow: hidden; }
.boot-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--cyan), var(--green)); box-shadow: 0 0 12px var(--cyan); }
.boot.is-done { pointer-events: none; }

/* ---------- Cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; width: 34px; height: 34px; margin: -17px 0 0 -17px; opacity: 0; transition: opacity .3s, width .25s, height .25s, margin .25s; }
.cursor::before, .cursor::after { content: ""; position: absolute; inset: 0; border: 1.5px solid var(--cyan); border-radius: 4px; clip-path: polygon(0 0, 30% 0, 30% 2px, 2px 2px, 2px 30%, 0 30%, 0 70%, 2px 70%, 2px calc(100% - 2px), 30% calc(100% - 2px), 30% 100%, 70% 100%, 70% calc(100% - 2px), calc(100% - 2px) calc(100% - 2px), calc(100% - 2px) 70%, 100% 70%, 100% 30%, calc(100% - 2px) 30%, calc(100% - 2px) 2px, 70% 2px, 70% 0, 100% 0, 100% 100%, 0 100%); }
.cursor::after { display: none; }
.cursor span { position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.cursor.is-hover { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
.cursor.is-hover::before { border-color: var(--green); }
@media (hover: hover) and (pointer: fine) { .cursor { opacity: 1; } }

/* ---------- Nav ---------- */
.nav { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.is-solid { background: rgba(6, 9, 18, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav-inner { max-width: 1280px; margin-inline: auto; display: flex; align-items: center; gap: 24px; padding-block: 12px; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-weight: 700; font-size: 15px; letter-spacing: 0.04em; }
.brand img { width: 36px; height: 36px; }
.nav-links { display: flex; gap: 22px; margin-left: 12px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 14px; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-progress { margin-left: auto; font-size: 11px; color: var(--muted); }
.nav-progress b { color: var(--green); font-weight: 600; display: inline-block; min-width: 4ch; text-align: right; font-variant-numeric: tabular-nums; }
.nav-bar { height: 2px; background: transparent; }
.nav-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--cyan), var(--green)); box-shadow: 0 0 10px var(--cyan); }
@media (max-width: 900px) { .nav-links { display: none; } }
@media (max-width: 480px) { .nav-progress { display: none; } .nav-inner .btn-buy { margin-left: auto; } .brand span { font-size: 13px; } }

/* ---------- Buttons ---------- */
.btn {
  --bc: var(--green);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 24px; border-radius: 12px; border: 1.5px solid var(--bc);
  font-family: var(--f-display); font-weight: 700; font-size: 14px; letter-spacing: 0.03em;
  text-decoration: none; cursor: pointer; white-space: nowrap; position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .25s, background .25s, color .25s;
}
.btn-buy { background: var(--green); color: #04130B; box-shadow: 0 0 0 0 rgba(34,229,132,.5), 0 10px 30px -10px rgba(34,229,132,.7); }
.btn-buy:hover { box-shadow: 0 0 0 6px rgba(34,229,132,.15), 0 14px 40px -10px rgba(34,229,132,.9); }
.btn-buy::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-120%); animation: sheen 3.6s ease-in-out infinite; }
@keyframes sheen { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.btn-ghost { --bc: var(--line-strong); background: rgba(17, 26, 44, 0.6); color: var(--text); }
.btn-ghost:hover { --bc: var(--cyan); color: var(--cyan); box-shadow: 0 0 24px -6px rgba(34,211,238,.6); }
.btn-sm { padding: 10px 16px; font-size: 12.5px; }
.btn-verify { --bc: var(--blue); background: var(--blue); color: #fff; padding: 12px 22px; }
.btn-verify:hover { box-shadow: 0 0 24px -4px rgba(59,130,246,.8); }
.link-btn { background: none; border: 0; padding: 6px 0; color: var(--muted); font-size: 11.5px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--cyan); }

/* ---------- Type ---------- */
.eyebrow { font-size: 12px; color: var(--cyan); margin: 0 0 18px; }
.h2 { font-family: var(--f-display); font-weight: 700; font-size: clamp(30px, 4.6vw, 56px); line-height: 1.04; letter-spacing: -0.02em; margin: 0 0 18px; text-wrap: balance; }
.lead { color: var(--muted); font-size: clamp(16px, 1.4vw, 18px); max-width: 56ch; margin: 0; }
.section { padding-block: clamp(90px, 12vw, 160px); position: relative; }
.section-head { margin-bottom: clamp(40px, 6vw, 72px); }

.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.glitch::before { color: var(--red); transform: translate(-3px, 0); clip-path: inset(10% 0 55% 0); }
.glitch::after { color: var(--cyan); transform: translate(3px, 0); clip-path: inset(55% 0 8% 0); }
.glitch.is-glitching::before, .glitch.is-glitching::after { opacity: .85; animation: glitchA .35s steps(3) 2; }
.glitch.is-glitching::after { animation-name: glitchB; }
@keyframes glitchA { 0% { clip-path: inset(10% 0 60% 0); transform: translate(-4px,0);} 50% { clip-path: inset(40% 0 30% 0); transform: translate(3px,-1px);} 100% { clip-path: inset(70% 0 5% 0); transform: translate(-2px,1px);} }
@keyframes glitchB { 0% { clip-path: inset(60% 0 10% 0); transform: translate(4px,0);} 50% { clip-path: inset(20% 0 55% 0); transform: translate(-3px,1px);} 100% { clip-path: inset(5% 0 75% 0); transform: translate(2px,-1px);} }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: calc(110px + env(safe-area-inset-top, 0px)); padding-bottom: 90px; overflow: hidden; }
.hero-floor {
  position: absolute; left: -20%; right: -20%; bottom: -10%; height: 55%;
  background:
    linear-gradient(rgba(34,211,238,.35) 1.5px, transparent 1.5px) 0 0 / 70px 70px,
    linear-gradient(90deg, rgba(34,211,238,.35) 1.5px, transparent 1.5px) 0 0 / 70px 70px;
  transform: perspective(500px) rotateX(62deg); transform-origin: 50% 0;
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 60%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 60%, transparent);
  animation: floor 3s linear infinite; opacity: .5;
}
@keyframes floor { to { background-position: 0 70px, 0 0; } }
.hero-glow { position: absolute; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; right: -10vw; top: 0; background: radial-gradient(circle, rgba(138,92,246,.28), rgba(34,211,238,.12) 40%, transparent 70%); filter: blur(10px); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(24px, 4vw, 60px); position: relative; }
.hero-copy { min-width: 0; }
.hero-title { font-family: var(--f-display); font-weight: 900; font-size: clamp(46px, 8.2vw, 112px); line-height: .92; letter-spacing: -0.035em; margin: 0; text-transform: none; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; }
.accent { color: var(--green); text-shadow: 0 0 40px rgba(34,229,132,.45); }
.hero-sub { font-family: var(--f-display); font-weight: 500; font-size: clamp(18px, 2.2vw, 26px); color: var(--cyan); margin: 18px 0 14px; }
.hero-lead { color: var(--muted); max-width: 46ch; margin: 0 0 30px; font-size: clamp(15px, 1.3vw, 17px); }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-ctas.center { justify-content: center; }
.ca-pill { margin-top: 26px; display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 8px 8px 8px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(11,15,26,.75); }
.ca-pill code { font-size: 12.5px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ca-label { font-size: 11px; color: var(--cyan); }
.ca-copy { border: 0; background: var(--ink-3); color: var(--text); font-family: var(--f-mono); font-size: 11.5px; padding: 7px 12px; border-radius: 8px; cursor: pointer; flex-shrink: 0; }
.ca-copy:hover { background: var(--blue); }

.hero-visual { position: relative; min-width: 0; }
.hud-frame { position: relative; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: radial-gradient(circle at 50% 40%, rgba(59,130,246,.14), rgba(11,15,26,.35) 70%); }
.corner { position: absolute; width: 26px; height: 26px; border: 2px solid var(--cyan); filter: drop-shadow(0 0 6px var(--cyan)); }
.corner.tl { left: -1px; top: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: 20px; }
.corner.tr { right: -1px; top: -1px; border-left: 0; border-bottom: 0; border-top-right-radius: 20px; }
.corner.bl { left: -1px; bottom: -1px; border-right: 0; border-top: 0; border-bottom-left-radius: 20px; }
.corner.br { right: -1px; bottom: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: 20px; }
.pip-stack { position: relative; width: min(100%, 470px); margin-inline: auto; aspect-ratio: 1000 / 1080; }
.pip-stack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.pip-wire { opacity: .9; filter: drop-shadow(0 0 18px rgba(34,211,238,.5)); }
.pip-solid { clip-path: inset(0 0 0 0); filter: drop-shadow(0 24px 40px rgba(0,0,0,.6)); }
.scan-beam { position: absolute; left: -6%; right: -6%; height: 3px; top: 100%; background: linear-gradient(90deg, transparent, var(--cyan), var(--green), var(--cyan), transparent); box-shadow: 0 0 22px 4px rgba(34,211,238,.55); opacity: 0; }
.hud-read { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin: 14px 0 0; font-size: 11px; }
.hud-read div { border-top: 1px solid var(--line); padding-top: 8px; min-width: 0; }
.hud-read dt { color: var(--muted); }
.hud-read dd { margin: 2px 0 0; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.hud-read em { color: var(--muted); font-style: normal; font-weight: 400; }
.float { position: absolute; width: 46px; pointer-events: none; filter: drop-shadow(0 0 10px rgba(34,211,238,.45)); }
.f1 { left: -4%; top: 12%; } .f2 { right: -2%; top: 6%; width: 40px; } .f3 { left: 6%; bottom: 22%; width: 54px; } .f4 { right: 4%; bottom: 30%; } .f5 { right: 30%; top: -3%; width: 34px; }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); font-size: 10.5px; color: var(--muted); text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-cue span { width: 1px; height: 34px; background: linear-gradient(var(--cyan), transparent); animation: cue 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 360px; margin-inline: auto; width: 100%; }
  .hud-read { font-size: 10px; }
  .hero { padding-top: calc(86px + env(safe-area-inset-top, 0px)); }
  .scroll-cue { display: none; }
}

/* ---------- Marquee ---------- */
.marquee-wrap { overflow: hidden; padding-block: 14px; }
.marquee { border-block: 1px solid var(--line); background: linear-gradient(90deg, rgba(59,130,246,.12), rgba(138,92,246,.12)); overflow: hidden; padding-block: 16px; transform: rotate(-1.5deg) scale(1.03); }
.marquee-track { display: flex; gap: 28px; width: max-content; font-family: var(--f-display); font-weight: 700; font-size: clamp(16px, 2vw, 24px); white-space: nowrap; align-items: center; animation: marquee 30s linear infinite; }
.marquee-track b { color: var(--green); font-size: .9em; }
.marquee-track b.x { color: var(--red); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Verify game ---------- */
.verify { overflow: hidden; }
.verify-grid { display: grid; grid-template-columns: 1fr minmax(0, 440px); gap: clamp(32px, 6vw, 90px); align-items: center; }
.verify-copy { min-width: 0; }
.pip-react { position: relative; margin-top: 36px; display: flex; align-items: flex-end; gap: 16px; }
.pip-react img { width: clamp(140px, 18vw, 210px); filter: drop-shadow(0 18px 30px rgba(0,0,0,.5)); }
.speech { position: relative; align-self: flex-start; margin-top: 10px; padding: 12px 16px; border: 1px solid var(--line-strong); background: var(--ink-2); border-radius: 14px 14px 14px 4px; font-size: 12.5px; color: var(--text); max-width: 26ch; }

.captcha { position: relative; width: 100%; min-height: 0; background: #0E1526; border: 1px solid var(--line-strong); border-radius: 18px; padding: 16px; box-shadow: 0 30px 80px -30px rgba(59,130,246,.55), inset 0 0 0 1px rgba(255,255,255,.02); }
.cap-check { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 14px; background: var(--ink-1); border: 1px solid var(--line); border-radius: 12px; }
.cap-box { position: relative; width: 34px; height: 34px; border-radius: 8px; border: 2px solid var(--muted); background: var(--ink-0); cursor: pointer; padding: 0; transition: border-color .2s, box-shadow .2s; }
.cap-box:hover { border-color: var(--cyan); box-shadow: 0 0 14px rgba(34,211,238,.4); }
.cap-spin { position: absolute; inset: -2px; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--cyan); opacity: 0; }
.cap-box.is-loading { border-color: transparent; }
.cap-box.is-loading .cap-spin { opacity: 1; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cap-tick { position: absolute; inset: 2px; fill: none; stroke: var(--green); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; }
.cap-box.is-done { border-color: var(--green); box-shadow: 0 0 16px rgba(34,229,132,.5); }
.cap-box.is-done .cap-tick { stroke-dashoffset: 0; transition: stroke-dashoffset .4s ease; }
.cap-label { font-weight: 600; }
.cap-brand { display: flex; flex-direction: column; align-items: center; font-size: 9px; color: var(--muted); text-align: center; line-height: 1.3; }
.cap-brand img { width: 28px; margin-bottom: 3px; }
.cap-brand small { font-size: 8px; }

.cap-panel { margin-top: 0; }
.cap-head { background: linear-gradient(135deg, var(--blue), #2453C9); border-radius: 10px; padding: 16px 18px; display: grid; gap: 2px; margin-bottom: 10px; color: #fff; }
.cap-head small { font-size: 12.5px; opacity: .9; }
.cap-head strong { font-family: var(--f-display); font-size: 24px; line-height: 1.15; }
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--ink-0); border-radius: 8px; overflow: hidden; }
.tile { position: relative; aspect-ratio: 1; border: 0; padding: 0; cursor: pointer; background-color: var(--ink-2); background-size: 300% 300%; background-repeat: no-repeat; transition: transform .18s ease, filter .2s; overflow: hidden; }
.tile:hover { filter: brightness(1.15); }
.tile.is-sel { transform: scale(.86); }
.tile.pop { animation: pop .5s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes pop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.tile.pop.is-sel { animation: none; }
.tile.is-sel::after { content: ""; position: absolute; left: 6px; top: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; box-shadow: 0 0 0 2px #fff; }
.tile .intruder { position: absolute; width: 78%; left: 11%; bottom: -4%; pointer-events: none; }
.tile.is-bad { animation: shake .4s; box-shadow: inset 0 0 0 3px var(--red); }
.tile.is-good { box-shadow: inset 0 0 0 3px var(--green); }
@keyframes shake { 20%, 60% { transform: translateX(-5px) scale(.9); } 40%, 80% { transform: translateX(5px) scale(.9); } }
.cap-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.cap-attempts { font-size: 11px; color: var(--muted); }
.cap-attempts b { color: var(--text); font-variant-numeric: tabular-nums; }
.icon-btn { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; display: grid; place-items: center; }
.icon-btn svg { width: 20px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover svg { stroke: var(--cyan); }
.cap-toast { min-height: 1.6em; margin-top: 10px; font-size: 12px; color: var(--red); }
.cap-toast.ok { color: var(--green); }
.captcha.is-shake { animation: boxshake .45s; }
@keyframes boxshake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.cap-done { text-align: center; padding: 14px 6px 6px; }
.done-badge { width: 150px; margin: 0 auto 6px; filter: drop-shadow(0 0 30px rgba(34,229,132,.45)); }
.cap-done h3 { font-family: var(--f-display); font-size: 40px; margin: 0; color: var(--green); }
.cap-done p { font-size: 12.5px; color: var(--muted); margin: 6px 0 18px; }
.done-ctas { display: flex; flex-direction: column; gap: 10px; }
.skip { display: block; margin: 10px auto 0; }
.drift { position: absolute; width: 60px; opacity: .55; pointer-events: none; }
.d1 { left: 4%; top: 18%; } .d2 { right: 6%; bottom: 10%; width: 44px; }

@media (max-width: 900px) { .verify-grid { grid-template-columns: 1fr; } .captcha { max-width: 460px; margin-inline: auto; } }

/* confetti */
.confetti { position: fixed; pointer-events: none; z-index: 80; width: 26px; }

/* ---------- Case files (pinned horizontal) ---------- */
.files { position: relative; }
.files-pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-block: 100px 60px; overflow: hidden; }
.files-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px; margin-bottom: 40px; }
.files-head .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.files-head .h2 { margin: 0; }
.files-count { color: var(--muted); font-size: 12px; margin: 0; }
.files-count span { color: var(--green); }
.files-track { display: flex; gap: 28px; padding-left: max(calc((100vw - 1200px) / 2 + 24px), calc(var(--gutter-l) + 8px)); padding-right: 10vw; width: max-content; }
.file-card { width: min(72vw, 760px); flex-shrink: 0; background: var(--ink-1); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.file-img { position: relative; overflow: hidden; aspect-ratio: 16 / 10; }
.file-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.file-img::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 2px, transparent 2px 4px); pointer-events: none; }
.file-body { padding: 22px 26px 26px; }
.file-tag { font-size: 11px; color: var(--cyan); margin: 0 0 8px; }
.file-body h3 { font-family: var(--f-display); font-size: clamp(20px, 2.4vw, 30px); margin: 0 0 8px; line-height: 1.15; }
.file-body p:last-child { color: var(--muted); margin: 0; max-width: 60ch; }

@media (max-width: 768px) {
  .files-pin { min-height: 0; padding-block: 90px 40px; }
  .files-track { flex-direction: column; width: auto; padding-left: calc(var(--gutter-l) + 8px); padding-right: calc(var(--gutter-r) + 8px); }
  .file-card { width: 100%; }
  .files-count { display: none; }
}

/* ---------- Stages (pinned scrub) ---------- */
.stages-pin { min-height: 100vh; display: flex; align-items: center; padding-block: 90px; overflow: hidden; }
.stages-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 70px); align-items: center; }
.stages-text { min-width: 0; }
.stage-count { font-size: 12px; color: var(--muted); margin: 0 0 18px; }
.stage-count b { color: var(--green); font-variant-numeric: tabular-nums; }
.stage-lines { display: grid; }
.stage-line { grid-area: 1 / 1; opacity: 0; transform: translateY(24px); transition: opacity .45s, transform .45s; pointer-events: none; }
.stage-line.is-on { opacity: 1; transform: none; }
.stage-line h3 { font-family: var(--f-display); font-weight: 900; font-size: clamp(34px, 5.4vw, 72px); line-height: 1; letter-spacing: -0.03em; margin: 0 0 14px; text-wrap: balance; }
.stage-line:nth-child(4) h3 { color: var(--red); }
.stage-line:nth-child(8) h3 { color: var(--green); }
.stage-line p { color: var(--muted); font-size: 18px; margin: 0; }
.stage-ticks { display: flex; gap: 6px; margin-top: 34px; }
.stage-ticks i { flex: 1; max-width: 48px; height: 4px; border-radius: 4px; background: var(--ink-3); transition: background .3s, box-shadow .3s; }
.stage-ticks i.is-on { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.stages-visual { position: relative; aspect-ratio: 1; display: grid; place-items: center; min-width: 0; }
.stage-ring { position: absolute; inset: 6%; border-radius: 50%; border: 1px dashed var(--line-strong); box-shadow: inset 0 0 80px rgba(59,130,246,.18), 0 0 0 30px rgba(59,130,246,.03); animation: spin 40s linear infinite; }
.stage-img { grid-area: 1 / 1; width: 78%; opacity: 0; transform: scale(.85) rotate(-6deg); transition: opacity .45s, transform .55s cubic-bezier(.2,1.4,.4,1); filter: drop-shadow(0 24px 40px rgba(0,0,0,.55)); }
.stage-img.is-on { opacity: 1; transform: none; }
@media (max-width: 768px) {
  .stages-grid { grid-template-columns: 1fr; }
  .stages-visual { order: -1; width: min(78vw, 340px); margin-inline: auto; }
  .stage-line h3 { font-size: clamp(30px, 9vw, 44px); }
  .stages-pin { padding-block: 70px 40px; }
}

/* ---------- Roadmap ---------- */
.levels { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; position: relative; }
.levels::before { content: ""; position: absolute; left: 70px; top: 40px; bottom: 40px; width: 2px; background: var(--ink-3); }
.levels::after { content: ""; position: absolute; left: 70px; top: 40px; width: 2px; height: var(--fill, 0%); max-height: calc(100% - 80px); background: linear-gradient(var(--green), var(--cyan), var(--blue)); box-shadow: 0 0 12px var(--cyan); }
.level { display: grid; grid-template-columns: 140px 1fr; gap: 26px; align-items: start; position: relative; }
.level-badge { position: relative; z-index: 1; display: grid; place-items: center; }
.level-badge img { width: 130px; filter: grayscale(.85) brightness(.65); transition: filter .5s; }
.level.is-active .level-badge img, .level.is-lit .level-badge img { filter: none; drop-shadow: 0 0 20px rgba(34,211,238,.4); }
.level-body { background: var(--ink-1); border: 1px solid var(--line); border-radius: 18px; padding: 22px 26px; min-width: 0; transition: border-color .4s, box-shadow .4s; }
.level.is-active .level-body { border-color: rgba(34,229,132,.55); box-shadow: 0 0 40px -18px rgba(34,229,132,.6); }
.level-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 11.5px; color: var(--muted); }
.chip { font-size: 10.5px; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line-strong); color: var(--muted); }
.chip-live { border-color: var(--green); color: var(--green); background: rgba(34,229,132,.08); }
.level-body h3 { font-family: var(--f-display); font-size: clamp(22px, 2.6vw, 32px); margin: 8px 0 4px; }
.trigger { font-size: 11.5px; color: var(--cyan); margin: 0 0 12px; }
.level-body ul { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 7px; }
.level-body li { position: relative; padding-left: 22px; color: #C5D1EC; font-size: 15px; }
.level-body li::before { content: ""; position: absolute; left: 0; top: .5em; width: 11px; height: 11px; border-radius: 3px; border: 1.5px solid var(--muted); }
.level.is-active li::before { border-color: var(--green); background: rgba(34,229,132,.25); }
.lore { font-size: 11px; color: var(--violet); margin: 0; padding-top: 12px; border-top: 1px solid var(--line); }
.rules { margin-top: 30px; font-size: 11.5px; color: var(--muted); text-align: center; }
@media (max-width: 640px) {
  .level { grid-template-columns: 64px 1fr; gap: 14px; }
  .level-badge img { width: 64px; }
  .levels::before, .levels::after { left: 31px; }
  .level-body { padding: 18px; }
}

/* ---------- Token ---------- */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.fact { background: var(--ink-1); padding: 22px 24px; display: grid; gap: 6px; min-width: 0; }
.fact span { font-size: 11px; color: var(--muted); }
.fact b { font-family: var(--f-display); font-size: clamp(16px, 1.8vw, 21px); font-weight: 700; font-variant-numeric: tabular-nums; }
.ca-block { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 22px 24px; border-radius: 18px; border: 1px solid var(--line-strong); background: linear-gradient(120deg, rgba(59,130,246,.12), rgba(34,229,132,.08)); }
.ca-block > div { min-width: 0; }
.ca-big { display: block; margin-top: 6px; font-size: clamp(13px, 1.6vw, 18px); color: var(--text); word-break: break-all; }
.token-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 22px; margin-top: 22px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { background: var(--ink-1); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.steps span { font-size: 10.5px; color: var(--cyan); }
.steps h3 { font-family: var(--f-display); font-size: 17px; margin: 4px 0 4px; }
.steps p { margin: 0; color: var(--muted); font-size: 14.5px; }
.chart { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--ink-1); min-height: 420px; display: grid; min-width: 0; }
.chart iframe { width: 100%; height: 100%; min-height: 480px; border: 0; }
.chart-empty { display: grid; place-items: center; align-content: center; gap: 14px; text-align: center; padding: 30px; }
.chart-empty img { width: 170px; }
.chart-empty p { color: var(--muted); font-size: 12px; margin: 0; }
.ext-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.ext-links a { text-decoration: none; font-family: var(--f-mono); font-size: 12px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--muted); transition: color .2s, border-color .2s; }
.ext-links a:hover { color: var(--cyan); border-color: var(--cyan); }
@media (max-width: 900px) { .facts { grid-template-columns: 1fr 1fr; } .token-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .facts { grid-template-columns: 1fr; } }

/* ---------- Share ---------- */
.share-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.share-grid > div { min-width: 0; }
.share-form { display: grid; gap: 8px; margin-top: 28px; max-width: 420px; }
.share-form label { font-size: 11px; color: var(--muted); margin-top: 8px; }
.share-form input { background: var(--ink-1); border: 1px solid var(--line-strong); border-radius: 10px; padding: 13px 14px; color: var(--text); font-family: var(--f-mono); font-size: 15px; width: 100%; }
.share-form input:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 3px rgba(34,211,238,.2); }
.share-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.share-preview canvas { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line-strong); box-shadow: 0 30px 80px -30px rgba(138,92,246,.6); display: block; }
@media (max-width: 900px) { .share-grid { grid-template-columns: 1fr; } }

/* ---------- Final ---------- */
.final { padding-block: clamp(80px, 12vw, 150px) clamp(90px, 12vw, 150px); text-align: center; position: relative; overflow: hidden; }
.final::before { content: ""; position: absolute; left: 50%; top: 40%; width: 900px; height: 900px; max-width: 140vw; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(34,229,132,.18), transparent 60%); pointer-events: none; }
.final-inner { position: relative; display: grid; justify-items: center; gap: 24px; }
.final-pip { width: clamp(180px, 24vw, 300px); filter: drop-shadow(0 0 40px rgba(34,229,132,.35)); }
.final-title { font-family: var(--f-display); font-weight: 900; font-size: clamp(50px, 11vw, 150px); line-height: .9; letter-spacing: -0.04em; margin: 0; }
.final-title .glitch { color: var(--green); text-shadow: 0 0 50px rgba(34,229,132,.4); }
.muted-word { color: var(--muted); font-size: .45em; letter-spacing: -0.02em; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 50px calc(40px + env(safe-area-inset-bottom, 0px)); background: var(--ink-1); }
.footer-inner { display: grid; gap: 22px; justify-items: center; text-align: center; }
.footer-logo { width: min(320px, 80vw); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--cyan); }
.disclaimer { color: var(--muted); font-size: 12.5px; max-width: 70ch; margin: 0; }
.copy { font-size: 10.5px; color: #5C6A8A; margin: 0; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .boot { display: none; }
  .marquee-track { animation: none; }
}

/* =========================================================
   V2 · multi-page additions
   ========================================================= */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.char { display: inline-block; will-change: transform; }

/* boot v2 */
.boot { animation: bootFailsafe .4s 9s forwards; }
@keyframes bootFailsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.boot-inner { width: min(460px, 88vw); }
.boot-top { display: flex; align-items: center; gap: 14px; }
.boot-logo { width: 56px; animation: bootPulse 1.6s ease-in-out infinite; }
@keyframes bootPulse { 50% { filter: drop-shadow(0 0 30px rgba(34,229,132,.7)); transform: scale(1.05); } }
.boot-title { font-size: 18px; font-weight: 600; letter-spacing: .2em; }
.boot-title span { color: var(--cyan); }
.boot-meter { display: flex; align-items: center; gap: 12px; width: 100%; }
.boot-meter .boot-bar { flex: 1; height: 4px; }
.boot-meter b { font-size: 12px; color: var(--green); min-width: 4ch; text-align: right; font-variant-numeric: tabular-nums; }
.boot-enter { width: 100%; display: grid; gap: 14px; }
.boot-enter p { margin: 0; font-size: 11px; color: var(--muted); }
.boot-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.boot-btns .btn { flex: 1 1 180px; }

/* page wipe */
.wipe { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(59,130,246,.18), transparent 60%), linear-gradient(var(--line) 1px, transparent 1px) 0 0/40px 40px, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0/40px 40px, var(--ink-0);
  clip-path: inset(100% 0 0 0); }
.wipe.is-cover { clip-path: inset(0 0 0 0); pointer-events: auto; }
.wipe-inner { display: grid; justify-items: center; gap: 14px; }
.wipe-inner img { width: 58px; animation: bootPulse 1s ease-in-out infinite; }
.wipe-inner p { margin: 0; font-size: 12px; color: var(--cyan); letter-spacing: .2em; }
.wipe-bar { width: 180px; height: 3px; background: var(--ink-3); border-radius: 3px; overflow: hidden; }
.wipe-bar span { display: block; height: 100%; width: 40%; background: linear-gradient(90deg, var(--cyan), var(--green)); animation: wipeBar .8s ease-in-out infinite; }
@keyframes wipeBar { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* nav v2 */
.nav-links a[aria-current="page"] { color: var(--text); position: relative; }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--green); box-shadow: 0 0 8px var(--green); border-radius: 2px; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-progress { margin-left: 0; }
.sound-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: rgba(17,26,44,.6); cursor: pointer; }
.sound-btn:hover { border-color: var(--cyan); }
.sound-label { font-size: 10.5px; color: var(--muted); }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.eq i { width: 3px; height: 3px; background: var(--muted); border-radius: 1px; transition: background .2s; }
.sound-btn[aria-pressed="true"] .eq i { background: var(--green); animation: eq .9s ease-in-out infinite; }
.sound-btn[aria-pressed="true"] .sound-label { color: var(--green); }
.sound-btn[aria-pressed="true"] .eq i:nth-child(2) { animation-delay: -.3s; } .sound-btn[aria-pressed="true"] .eq i:nth-child(3) { animation-delay: -.6s; } .sound-btn[aria-pressed="true"] .eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 14px; } }
.menu-btn { display: none; width: 42px; height: 38px; border-radius: 10px; border: 1px solid var(--line-strong); background: rgba(17,26,44,.6); cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, top .3s; }
.menu-btn span:first-child { top: 14px; } .menu-btn span:last-child { top: 21px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 18px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 18px; transform: rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 45; background: rgba(6,9,18,.97); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: flex; flex-direction: column; justify-content: center; gap: 40px; padding-block: 100px 40px; padding-left: calc(var(--gutter-l) + 12px); padding-right: calc(var(--gutter-r) + 12px); }
.menu-links { display: grid; gap: 6px; }
.menu-links a { font-family: var(--f-display); font-weight: 700; font-size: clamp(32px, 9vw, 56px); text-decoration: none; line-height: 1.15; display: flex; align-items: baseline; gap: 14px; }
.menu-links a small { font-size: 12px; color: var(--cyan); }
.menu-links a[aria-current="page"] { color: var(--green); }
.menu-foot { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 900px) { .menu-btn { display: inline-block; } .sound-label { display: none; } .sound-btn { padding: 0 10px; } }
@media (max-width: 480px) { .nav-inner { gap: 10px; } .nav-right { gap: 8px; } .nav-right .btn-buy { padding: 10px 14px; } }

/* Pip buddy */
.buddy { position: fixed; z-index: 40; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: flex-end; gap: 8px; pointer-events: none; }
.buddy-btn { pointer-events: auto; width: 76px; height: 76px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: radial-gradient(circle at 50% 35%, var(--ink-3), var(--ink-1)); padding: 6px; cursor: pointer; box-shadow: 0 10px 30px -8px rgba(34,211,238,.45); transition: transform .2s, border-color .2s; }
.buddy-btn:hover { transform: translateY(-3px) rotate(-4deg); border-color: var(--cyan); }
.buddy-btn img { width: 100%; height: 100%; object-fit: contain; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-3px) rotate(2deg); } }
.buddy-bubble { pointer-events: none; max-width: 210px; padding: 10px 14px; border-radius: 14px 14px 4px 14px; background: var(--ink-2); border: 1px solid var(--line-strong); font-size: 12px; color: var(--text); opacity: 0; transform: translateY(8px) scale(.95); transition: opacity .25s, transform .25s; margin-bottom: 40px; }
.buddy-bubble.is-on { opacity: 1; transform: none; }
@media (max-width: 600px) { .buddy-btn { width: 58px; height: 58px; } .buddy-bubble { margin-bottom: 30px; max-width: 170px; } }

/* rain (easter egg) */
.rain { position: fixed; top: -80px; z-index: 85; pointer-events: none; width: 54px; }

/* hero v2 */
.hero-data { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .55; }
.hud-top { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); margin-bottom: 4px; }
button.pip-stack { display: block; border: 0; padding: 0; background: none; cursor: pointer; }
.type::after { content: "▌"; color: var(--cyan); margin-left: 2px; animation: blink 1s steps(2, start) infinite; }

/* briefing doors */
.doors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; perspective: 1200px; }
.door { position: relative; display: grid; gap: 6px; align-content: start; text-decoration: none; padding: 22px 22px 24px; border-radius: 20px; background: linear-gradient(160deg, var(--ink-2), var(--ink-1)); border: 1px solid var(--line); overflow: hidden; transform-style: preserve-3d; transition: border-color .3s, box-shadow .3s; min-width: 0; }
.door::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(34,211,238,.18), transparent 45%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.door:hover { border-color: var(--cyan); box-shadow: 0 30px 60px -30px rgba(34,211,238,.5); }
.door:hover::before { opacity: 1; }
.door img { height: 150px; width: auto; justify-self: center; margin: 8px 0 14px; object-fit: contain; filter: drop-shadow(0 16px 24px rgba(0,0,0,.5)); transform: translateZ(40px); transition: transform .4s; }
.door:hover img { transform: translateZ(60px) scale(1.06) rotate(-3deg); }
.door-num { position: absolute; top: 16px; right: 18px; font-size: 11px; color: var(--muted); }
.door-label { font-size: 10.5px; color: var(--cyan); }
.door h3 { font-family: var(--f-display); font-size: 22px; margin: 0; }
.door p { color: var(--muted); font-size: 14.5px; margin: 0; }
.door-go { margin-top: 10px; font-size: 11.5px; color: var(--green); }
@media (max-width: 1000px) { .doors { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .doors { grid-template-columns: 1fr; } .door img { height: 120px; } }

/* stats */
.stats { border-block: 1px solid var(--line); background: linear-gradient(90deg, rgba(34,229,132,.05), rgba(59,130,246,.08)); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding-block: 34px; display: grid; gap: 6px; justify-items: center; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { font-family: var(--f-display); font-size: clamp(30px, 4vw, 52px); line-height: 1; font-variant-numeric: tabular-nums; }
.stat > span.mono { font-size: 10.5px; color: var(--muted); }
@media (max-width: 700px) { .stats-grid { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); } }
.stage-ring.r2 { inset: 16%; border-style: solid; border-color: rgba(34,229,132,.18); animation-direction: reverse; animation-duration: 26s; }

/* page head (sub pages) */
.page-head { position: relative; padding-top: calc(130px + env(safe-area-inset-top, 0px)); padding-bottom: 40px; overflow: hidden; }
.page-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }
.page-head-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; }
.page-head-grid > div { min-width: 0; }
.crumb { font-size: 12px; color: var(--muted); margin: 0 0 14px; }
.crumb b { color: var(--cyan); font-weight: 600; }
.page-title { font-family: var(--f-display); font-weight: 900; font-size: clamp(44px, 8vw, 110px); line-height: .95; letter-spacing: -0.035em; margin: 0 0 20px; }
.page-head .hero-ctas { margin-top: 26px; }
.page-head-pip { width: min(320px, 70%); justify-self: center; filter: drop-shadow(0 24px 40px rgba(0,0,0,.55)); animation: bob 3s ease-in-out infinite; }
.dossier-id { justify-self: end; display: grid; grid-template-columns: auto auto; gap: 8px 20px; padding: 22px 24px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--ink-1); font-size: 11.5px; }
.dossier-id span { color: var(--muted); }
@media (max-width: 800px) { .page-head-grid { grid-template-columns: 1fr; } .page-head-pip { width: 200px; order: -1; justify-self: start; } .dossier-id { justify-self: start; } .page-head { padding-top: calc(100px + env(safe-area-inset-top, 0px)); } }

/* test page */
.verify { padding-top: 50px; }
[data-page="test"] .verify-grid { align-items: start; }
.stepper { list-style: none; margin: 0 0 30px; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; font-size: 11px; color: var(--muted); }
.stepper li { display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; border: 1px solid var(--line); border-radius: 99px; transition: all .3s; }
.stepper i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; background: var(--ink-3); color: var(--text); }
.stepper li.is-on { border-color: var(--cyan); color: var(--text); box-shadow: 0 0 18px -6px var(--cyan); }
.stepper li.is-on i { background: var(--cyan); color: var(--ink-0); }
.stepper li.is-done { border-color: rgba(34,229,132,.5); color: var(--green); }
.stepper li.is-done i { background: var(--green); color: var(--ink-0); }
.live-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 30px 0 0; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 11px; max-width: 460px; }
.live-stats div { background: var(--ink-1); padding: 14px 16px; }
.live-stats dt { color: var(--muted); }
.live-stats dd { margin: 4px 0 0; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cap-text canvas { width: 100%; height: auto; display: block; border-radius: 10px; background: #0A1020; border: 1px solid var(--line); }
.cap-text-form { display: flex; gap: 8px; margin-top: 12px; }
.cap-text-form input { flex: 1; min-width: 0; background: var(--ink-1); border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px 14px; color: var(--text); font-family: var(--f-mono); font-size: 16px; letter-spacing: .12em; text-transform: uppercase; }
.cap-text-form input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34,211,238,.2); }
.done-eyebrow { color: var(--cyan) !important; font-size: 11px !important; margin: 0 0 10px !important; }
.score-ring { position: relative; width: 170px; height: 170px; margin: 0 auto 8px; display: grid; place-items: center; }
.score-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--ink-3); stroke-width: 8; }
.ring-fg { fill: none; stroke: var(--green); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: calc(326.7 - 326.7 * var(--p) / 100); filter: drop-shadow(0 0 6px var(--green)); transition: stroke-dashoffset .1s linear; }
.score-ring div { display: grid; justify-items: center; }
.score-ring b { font-family: var(--f-display); font-size: 52px; line-height: 1; font-variant-numeric: tabular-nums; }
.score-ring span { font-size: 9.5px; color: var(--muted); margin-top: 4px; }
.cap-done h3 { font-size: 26px !important; margin: 6px 0 0 !important; }

/* case files dossier */
.dossier { padding-block: 40px 20px; }
.case { padding-block: clamp(50px, 8vw, 110px); }
.case-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.case.is-flip .case-media { order: 2; }
.case-media { position: relative; min-width: 0; }
.case-img { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: 0 40px 80px -40px rgba(59,130,246,.6); }
.case-img img { width: 100%; transform: scale(1.08); }
.case-scan { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--cyan), var(--green), transparent); box-shadow: 0 0 18px 4px rgba(34,211,238,.5); opacity: 0; }
.stamp { position: absolute; right: -10px; bottom: -18px; padding: 10px 16px; border: 3px solid currentColor; border-radius: 8px; font-size: clamp(14px, 1.6vw, 20px); font-weight: 600; letter-spacing: .12em; transform: rotate(-8deg); background: rgba(6,9,18,.85); }
.case.is-flip .stamp { right: auto; left: -10px; transform: rotate(6deg); }
.stamp-red { color: var(--red); box-shadow: 0 0 20px -4px rgba(255,77,94,.6); }
.stamp-green { color: var(--green); box-shadow: 0 0 20px -4px rgba(34,229,132,.6); }
.case-text { min-width: 0; }
.case-tag { font-size: 11.5px; color: var(--cyan); margin: 0 0 12px; }
.case-title { font-family: var(--f-display); font-size: clamp(30px, 4vw, 52px); line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 16px; text-wrap: balance; }
.case-body { color: #C5D1EC; font-size: 17px; margin: 0 0 22px; max-width: 54ch; }
.evidence { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); font-size: 12px; }
.evidence li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.evidence li span { color: var(--muted); }
.evidence em { font-style: normal; font-weight: 600; }
@media (max-width: 820px) { .case-grid { grid-template-columns: 1fr; } .case.is-flip .case-media { order: 0; } .stamp, .case.is-flip .stamp { right: 10px; left: auto; } }
.sealed-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sealed-card { position: relative; padding: 22px; border-radius: 18px; border: 1px dashed var(--line-strong); background: repeating-linear-gradient(-45deg, rgba(255,255,255,.015) 0 10px, transparent 10px 20px), var(--ink-1); min-height: 210px; display: grid; align-content: start; gap: 10px; overflow: hidden; }
.sealed-card > span:first-child { font-size: 10.5px; color: var(--muted); }
.sealed-card h3 { font-family: var(--f-display); font-size: 20px; margin: 0; filter: blur(5px); user-select: none; transition: filter .3s; }
.sealed-card:hover h3 { filter: blur(3px); }
.redact { display: grid; gap: 8px; margin: 6px 0 0; }
.redact i { display: block; height: 10px; border-radius: 3px; background: #22304D; }
.redact i:nth-child(2) { width: 80%; } .redact i:nth-child(3) { width: 55%; }
.lock { position: absolute; right: 16px; bottom: 16px; font-size: 10.5px; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--red); color: var(--red); }
.sealed-card.is-open { border-style: solid; border-color: rgba(34,229,132,.5); }
.sealed-card.is-open h3 { filter: none; }
.sealed-card.is-open .lock { border-color: var(--green); color: var(--green); }
.center-cta { display: flex; justify-content: center; margin-top: 40px; }
@media (max-width: 1000px) { .sealed-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .sealed-grid { grid-template-columns: 1fr; } }

/* roadmap page */
.level-meter { justify-self: end; width: min(320px, 100%); padding: 24px; border-radius: 18px; border: 1px solid var(--line-strong); background: var(--ink-1); }
.level-meter p { margin: 0; font-size: 11px; color: var(--muted); }
.level-big { display: block; font-family: var(--f-display); font-size: 70px; line-height: 1; margin: 8px 0 14px; color: var(--green); }
.level-big small { font-size: .4em; color: var(--muted); }
.meter { height: 6px; border-radius: 6px; background: var(--ink-3); overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--cyan)); box-shadow: 0 0 10px var(--green); }
.level-name { margin-top: 12px !important; color: var(--cyan) !important; }
@media (max-width: 800px) { .level-meter { justify-self: start; } }
.level.is-cleared .level-badge img { filter: none; }
.level.is-cleared .level-body { border-color: rgba(34,211,238,.4); }
.level.is-cleared li::before { border-color: var(--cyan); background: rgba(34,211,238,.3); }
.chip-done { border-color: var(--cyan); color: var(--cyan); background: rgba(34,211,238,.08); }
.rules-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; margin-top: 50px; }
.rule-card { position: relative; padding: 26px; border-radius: 18px; border: 1px solid var(--line); background: var(--ink-1); overflow: hidden; min-width: 0; }
.rule-card > p:first-child { font-size: 11px; color: var(--cyan); margin: 0 0 12px; }
.rule-card ul { margin: 0; padding-left: 18px; color: #C5D1EC; display: grid; gap: 8px; }
.rule-card h3 { font-family: var(--f-display); font-size: 30px; margin: 0 0 8px; }
.rule-card.s2 p:not(:first-child) { color: var(--muted); max-width: 30ch; margin: 0; }
.rule-card.s2 img { position: absolute; right: -10px; bottom: -30px; width: 150px; opacity: .9; }
@media (max-width: 800px) { .rules-grid { grid-template-columns: 1fr; } .rule-card.s2 { padding-bottom: 130px; } }

/* token page */
.ca-block { margin: 0 0 22px; }
.status-dot { margin-left: 10px; font-size: 10px; padding: 3px 8px; border-radius: 99px; border: 1px solid var(--green); color: var(--green); }
.status-dot.pre { border-color: var(--muted); color: var(--muted); }
.token-grid .eyebrow { margin-bottom: 14px; }
.warn { margin-top: 30px; display: flex; gap: 20px; align-items: center; padding: 22px 24px; border: 1px solid rgba(255,77,94,.4); border-radius: 18px; background: rgba(255,77,94,.06); }
.warn img { width: 90px; flex-shrink: 0; }
.warn p { margin: 0; }
.warn p:first-child { font-size: 11.5px; margin-bottom: 6px; }
.warn p:last-child { color: #C5D1EC; }
@media (max-width: 520px) { .warn { flex-direction: column; align-items: flex-start; } }

/* footer v2 */
.footer-inner { justify-items: stretch; text-align: left; gap: 34px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-logo { width: min(280px, 70vw); }
.footer-ca { display: grid; gap: 8px; min-width: 0; max-width: 100%; }
.footer-ca .ca-pill { margin-top: 0; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 24px; }
.footer-cols nav { display: grid; gap: 8px; align-content: start; }
.footer-cols nav p { margin: 0 0 4px; font-size: 11px; color: var(--cyan); }
.footer-cols a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer-cols a:hover { color: var(--text); }
.footer-base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 10.5px; color: #5C6A8A; border-top: 1px solid var(--line); padding-top: 20px; }
.egg-hint { color: var(--violet); }
@media (max-width: 700px) { .footer-cols { grid-template-columns: 1fr 1fr; } .footer-cols .disclaimer { grid-column: 1 / -1; } }

[data-when] { display: none; }
body.is-live [data-when="live"], body.is-pre [data-when="prelaunch"] { display: inline; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* X button in nav */
.x-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-strong); background: rgba(17,26,44,.6); color: var(--text); text-decoration: none; transition: border-color .2s, color .2s, box-shadow .2s, transform .2s; flex-shrink: 0; }
.x-btn svg { width: 16px; height: 16px; fill: currentColor; }
.x-btn:hover { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 18px -6px var(--cyan); transform: translateY(-1px); }
.x-btn[hidden] { display: none; }
@media (max-width: 420px) { .brand span { display: none; } }
