/* LaunchTank · coming-soon page. Scroll plays the page like a trailer: every .scene pins a full-screen .stage
   and main.js drives its animation from how far you've scrolled through it. */

@font-face {
  font-family: "Geist";
  src: url("/fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* Registered so the backdrop colours can transition smoothly between scenes. */
@property --c1 { syntax: "<color>"; inherits: true; initial-value: rgb(139 124 246 / 0.3); }
@property --c2 { syntax: "<color>"; inherits: true; initial-value: rgb(196 107 255 / 0.14); }

:root {
  --bg: #05050a;
  --fg: #eeedf7;
  --muted: rgb(238 237 247 / 0.66);
  --subtle: rgb(238 237 247 / 0.42);
  --line: rgb(196 184 255 / 0.14);
  --accent: #8b7cf6;
  --accent-light: #c4b8ff;
  --success: #34d399;
  --danger: #ff5d6c;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --nav-h: 64px;
  --title-top: 70vh;
  --mx: 50%;
  --my: 30%;
  --c1: rgb(139 124 246 / 0.3);
  --c2: rgb(196 107 255 / 0.14);
  transition: --c1 1.4s ease, --c2 1.4s ease;
  color-scheme: dark;
}
:root[data-tone="violet"] { --c1: rgb(139 124 246 / 0.3); --c2: rgb(196 107 255 / 0.14); }
:root[data-tone="red"]    { --c1: rgb(255 77 109 / 0.16); --c2: rgb(139 124 246 / 0.1); }
:root[data-tone="indigo"] { --c1: rgb(99 102 241 / 0.26); --c2: rgb(139 124 246 / 0.12); }
:root[data-tone="blue"]   { --c1: rgb(94 160 242 / 0.22); --c2: rgb(139 124 246 / 0.16); }
:root[data-tone="green"]  { --c1: rgb(52 211 153 / 0.16); --c2: rgb(94 200 242 / 0.12); }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
h1, h2, h3, p, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { display: block; }
::selection { background: rgb(139 124 246 / 0.45); }
:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 3px; border-radius: 8px; }

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  padding: 10px 14px; border-radius: 10px; background: var(--fg); color: var(--bg); font-weight: 600;
}
.skip:focus { top: 12px; }

.grad {
  background: linear-gradient(100deg, #e4dfff 0%, #a597ff 55%, #8b7cf6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dim { color: var(--subtle); }
.kicker {
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--accent-light);
}
.lede { color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6; max-width: 36rem; }
.pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--success); display: inline-block;
  box-shadow: 0 0 0 0 rgb(52 211 153 / 0.6); animation: pulse 2.2s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgb(52 211 153 / 0); } 100% { box-shadow: 0 0 0 0 rgb(52 211 153 / 0); } }

/* ---------- Backdrop ---------- */
.backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.field { position: absolute; inset: -20%; }
.field-a { background: radial-gradient(42% 38% at 22% 18%, var(--c1), transparent 70%); animation: drift-a 26s ease-in-out infinite alternate; }
.field-b { background: radial-gradient(40% 36% at 82% 86%, var(--c2), transparent 70%); animation: drift-b 32s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate(6%, 8%) scale(1.08); } }
@keyframes drift-b { to { transform: translate(-7%, -5%) scale(1.1); } }
.spot { position: absolute; inset: 0; background: radial-gradient(520px circle at var(--mx) var(--my), rgb(139 124 246 / 0.07), transparent 70%); }
.grain {
  position: absolute; inset: -50%; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- Snap points (touch screens) ----------
   main.js drops invisible markers at the moments worth stopping on, so a quick swipe lands on the next one
   instead of flying past it. */
:root.snapping { scroll-snap-type: y mandatory; }
.snap { position: absolute; left: 0; top: 0; width: 1px; height: 1px; pointer-events: none; scroll-snap-align: start; scroll-snap-stop: always; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(16px, 3vw, 32px);
  transition: background 0.4s, border-color 0.4s, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  border-bottom: 1px solid transparent;
}
:root.scrolled .nav { background: rgb(5 5 10 / 0.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: rgb(255 255 255 / 0.05); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.brand .mark { width: 30px; height: 30px; filter: drop-shadow(0 0 14px rgb(139 124 246 / 0.45)); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--muted);
  border: 1px solid var(--line); background: rgb(139 124 246 / 0.08); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.x-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600; background: var(--fg); color: #0b0b12;
  transition: transform 0.2s, box-shadow 0.2s;
}
.x-btn svg { width: 14px; height: 14px; fill: currentColor; }
.x-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 22px -8px rgb(238 237 247 / 0.6); }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 24px;
  border-radius: 999px; font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.25s, background 0.25s, border-color 0.25s;
}
.btn svg { width: 17px; height: 17px; fill: currentColor; }
.btn-primary {
  color: #fff; background: linear-gradient(180deg, #9d90ff, #7564f2);
  box-shadow: 0 10px 34px -10px rgb(139 124 246 / 0.85), inset 0 1px 0 rgb(255 255 255 / 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 44px -10px rgb(139 124 246 / 0.95), inset 0 1px 0 rgb(255 255 255 / 0.3); }
.btn-ghost { border: 1px solid rgb(255 255 255 / 0.14); background: rgb(255 255 255 / 0.04); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn-ghost:hover { transform: translateY(-2px); border-color: rgb(196 184 255 / 0.4); background: rgb(139 124 246 / 0.1); }

/* ---------- Scenes ---------- */
.scene { position: relative; }
.stage {
  /* dvh follows the phone's address bar, so the stage always reaches the bottom of the screen. */
  position: sticky; top: 0; height: 100vh; height: 100svh; height: 100dvh; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 clamp(16px, 4vw, 48px);
}
/* With JS, every stage is pinned full-screen for the whole page and main.js crossfades between them, so a scene
   never slides off and leaves a band of empty screen above or below. The .scene sections only set scroll length. */
.js .stage { position: fixed; left: 0; right: 0; top: 0; visibility: hidden; will-change: opacity, transform; }
.js .hero .stage { visibility: visible; }
.hero { height: 230vh; height: 230svh; }
.crash { height: 360vh; height: 360svh; }
.manifesto { height: 280vh; height: 280svh; }
.how { height: 600vh; height: 600svh; }
.locks { height: 640vh; height: 640svh; }
.fly { height: 460vh; height: 460svh; }
.finale { height: 200vh; height: 200svh; }

/* 01 · Hero */
.hero .stage { padding: 0; }
.hero-frame {
  /* Fills the whole screen. main.js shrinks it into a card under the nav as you scroll. */
  position: absolute; inset: 0; overflow: hidden; background: #000;
  transform-origin: 50% 50%; will-change: transform;
  box-shadow: 0 40px 120px -30px rgb(0 0 0 / 0.9), 0 0 0 1px rgb(196 184 255 / 0.12);
}
.hero-video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(5 5 10 / 0.35), transparent 18%, transparent 78%, rgb(5 5 10 / 0.55)); pointer-events: none; }
.sound-chip {
  position: absolute; left: clamp(16px, 3vw, 32px); bottom: 28px; z-index: 2;
  display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 16px 0 13px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; background: rgb(5 5 10 / 0.5); border: 1px solid rgb(255 255 255 / 0.16);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: background 0.2s, transform 0.2s;
}
.sound-chip:hover { background: rgb(139 124 246 / 0.25); transform: translateY(-1px); }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ico-on { display: none; }
[aria-pressed="true"] .ico-on { display: block; }
[aria-pressed="true"] .ico-off { display: none; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.3em; text-transform: uppercase; color: rgb(238 237 247 / 0.75);
}
.scroll-cue i { width: 1px; height: 34px; background: linear-gradient(rgb(238 237 247 / 0.8), transparent); animation: cue 1.8s cubic-bezier(0.6, 0, 0.3, 1) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.hero-copy { position: absolute; left: 0; right: 0; top: var(--title-top); padding: 0 16px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.js .hero-copy { opacity: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.hero-title { margin-top: 12px; font-size: clamp(40px, 6.2vw, 96px); line-height: 0.98; font-weight: 800; letter-spacing: -0.055em; }
.hero-title .line { display: inline-block; }
.hero-sub { margin-top: 10px; font-size: clamp(16px, 1.6vw, 20px); color: var(--muted); }
.hero-copy .actions { margin-top: 22px; }

/* Portrait screens: the tall cut fills the screen; the sound button sits in the bottom-right corner, clear of the
   trailer's captions, with the scroll cue centred. */
@media (max-aspect-ratio: 4/5) {
  .sound-chip { left: auto; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); }
  .scroll-cue { bottom: calc(14px + env(safe-area-inset-bottom)); }
}

/* 02 · Crash */
.crash-cap {
  position: absolute; top: 15svh; left: 0; right: 0; text-align: center; padding: 0 20px;
  font-size: clamp(28px, 4.4vw, 64px); font-weight: 750; letter-spacing: -0.045em; line-height: 1.05;
}
.js .crash-cap { opacity: 0; }
.cap-b { color: #ffb3bb; }
.chart { position: relative; width: min(1000px, 92vw); height: min(420px, 42svh); margin-top: 6svh; will-change: transform, opacity; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart-grid path { stroke: rgb(255 255 255 / 0.06); stroke-width: 1; vector-effect: non-scaling-stroke; fill: none; }
.chart-line { fill: none; stroke: #a597ff; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 8px rgb(139 124 246 / 0.8)); transition: stroke 0.3s; }
.chart-drop { fill: none; stroke: var(--danger); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 10px rgb(255 93 108 / 0.9)); }
.chart-area { transition: opacity 0.3s; }
.chart.crashed .chart-line { stroke: #ff8a95; filter: drop-shadow(0 0 8px rgb(255 93 108 / 0.7)); }
.chart.crashed .chart-area { opacity: 0.25; }
.chart-tip { display: none; }
.tip {
  position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 5px rgb(139 124 246 / 0.3), 0 0 26px 6px rgb(139 124 246 / 0.8); pointer-events: none;
}
.chart.crashed .tip { box-shadow: 0 0 0 5px rgb(255 93 108 / 0.3), 0 0 26px 6px rgb(255 93 108 / 0.9); }
.alert {
  position: absolute; right: 2%; top: -6%; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px;
  background: rgb(40 8 16 / 0.82); border: 1px solid rgb(255 93 108 / 0.45); box-shadow: 0 20px 60px -20px rgb(255 93 108 / 0.6);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  opacity: 0; transform: translateY(12px) scale(0.92); transition: opacity 0.35s, transform 0.5s cubic-bezier(0.2, 1.4, 0.3, 1);
}
.alert.on { opacity: 1; transform: none; }
.alert svg { width: 22px; height: 22px; fill: none; stroke: var(--danger); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; flex: none; }
.alert b { display: block; font-size: 14px; color: #ffd0d5; }
.alert span { display: block; font-size: 12.5px; color: rgb(255 208 213 / 0.7); }
.not-here {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; pointer-events: none;
  font-size: clamp(64px, 13vw, 220px); font-weight: 800; letter-spacing: -0.065em; line-height: 1;
}
.js .not-here { opacity: 0; }

/* 03 · Manifesto */
.manifesto .stage { gap: 26px; }
.manifesto-text {
  max-width: 21ch; text-align: center;
  font-size: clamp(30px, 5vw, 76px); line-height: 1.08; font-weight: 750; letter-spacing: -0.045em;
}
.manifesto-text .wd { transition: color 0.25s; }
.js .manifesto-text .wd { color: rgb(238 237 247 / 0.13); }
.js .manifesto-text .wd.lit { color: var(--fg); }
.js .manifesto-text .wd.lit.hl { color: var(--accent-light); }

/* 04 · How it works */
.how .stage { flex-direction: row; gap: clamp(28px, 6vw, 96px); padding-top: 6svh; }
.how-text { width: min(440px, 40vw); }
.rail { display: flex; gap: 18px; margin-top: 20px; font-family: var(--mono); font-size: 13px; color: var(--subtle); }
.rail li { position: relative; padding-bottom: 8px; transition: color 0.4s; }
.rail li::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: rgb(255 255 255 / 0.1); }
.rail li.done { color: var(--muted); }
.rail li.done::after { background: rgb(196 184 255 / 0.4); }
.rail li.on { color: var(--fg); }
.rail li.on::after { background: linear-gradient(90deg, var(--accent), var(--accent-light)); box-shadow: 0 0 12px rgb(139 124 246 / 0.8); }
.how-steps { position: relative; margin-top: 26px; min-height: 230px; }
.how-step { position: absolute; inset: 0 0 auto 0; transition: opacity 0.5s, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.5s; }
.js .how-step { opacity: 0; transform: translateY(26px); filter: blur(6px); }
.js .how-step.past { transform: translateY(-26px); }
.js .how-step.on { opacity: 1; transform: none; filter: none; }
.how-step h3 { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.04; font-weight: 750; letter-spacing: -0.045em; }
.how-step p { margin-top: 14px; color: var(--muted); font-size: clamp(15.5px, 1.3vw, 18px); line-height: 1.6; }

.how-visual { perspective: 1400px; }
.pcard {
  width: min(470px, 88vw); padding: 22px; border-radius: 24px; display: flex; flex-direction: column; gap: 14px;
  background: linear-gradient(180deg, rgb(26 22 52 / 0.8), rgb(12 11 24 / 0.86));
  border: 1px solid rgb(196 184 255 / 0.16);
  box-shadow: 0 50px 120px -40px rgb(0 0 0 / 0.9), 0 0 80px -30px rgb(139 124 246 / 0.55), inset 0 1px 0 rgb(255 255 255 / 0.06);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  transform-style: preserve-3d; will-change: transform;
  font-size: 13px;
}
.pcard > * { transition: opacity 0.5s, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .pcard > .dimmed { opacity: 0.22; }
.pc-head { display: flex; align-items: center; gap: 12px; }
.pc-logo { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, #2a2257, #120f24); border: 1px solid rgb(196 184 255 / 0.3); display: flex; align-items: flex-end; justify-content: center; gap: 3px; padding: 10px; flex: none; }
.pc-logo i { width: 5px; border-radius: 3px; background: #8f86c9; }
.pc-logo i:nth-child(1) { height: 8px; background: #5b5394; }
.pc-logo i:nth-child(2) { height: 13px; }
.pc-logo i:nth-child(3) { height: 20px; background: linear-gradient(#d9d2ff, #8b7cf6); }
.pc-name { flex: 1; min-width: 0; }
.pc-name b { display: block; font-size: 15px; letter-spacing: -0.02em; }
.pc-name span { display: block; font-size: 12px; color: var(--subtle); }
.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600;
  color: var(--success); background: rgb(52 211 153 / 0.1); border: 1px solid rgb(52 211 153 / 0.35);
  transition: opacity 0.4s, transform 0.5s cubic-bezier(0.2, 1.5, 0.3, 1);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.js .badge { opacity: 0; transform: scale(0.6); }
.js .badge.on { opacity: 1; transform: none; }
.pc-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pc-links span { padding: 5px 10px; border-radius: 8px; font-size: 12px; color: var(--accent-light); background: rgb(139 124 246 / 0.1); border: 1px solid rgb(139 124 246 / 0.22); }
.pc-plan { display: flex; flex-direction: column; gap: 7px; }
.pc-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--subtle); }
.pc-plan i { display: block; height: 7px; border-radius: 4px; background: rgb(255 255 255 / 0.09); transform-origin: 0 50%; }
.pc-plan i:nth-of-type(1) { width: 92%; }
.pc-plan i:nth-of-type(2) { width: 78%; }
.pc-plan i:nth-of-type(3) { width: 54%; }
.pc-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.pc-checks li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--subtle); transition: color 0.3s; }
.tick { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid rgb(255 255 255 / 0.2); flex: none; position: relative; transition: background 0.3s, border-color 0.3s, transform 0.4s cubic-bezier(0.2, 1.6, 0.3, 1); }
.tick::after { content: ""; position: absolute; left: 5.5px; top: 2.5px; width: 4px; height: 8px; border: solid #05130d; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform 0.3s 0.05s; }
.pc-checks li.on { color: var(--fg); }
.pc-checks li.on .tick { background: var(--success); border-color: var(--success); transform: scale(1.08); box-shadow: 0 0 12px rgb(52 211 153 / 0.6); }
.pc-checks li.on .tick::after { transform: rotate(45deg) scale(1); }
.pc-curve { position: relative; height: 112px; border-radius: 14px; background: rgb(255 255 255 / 0.03); border: 1px solid rgb(255 255 255 / 0.06); padding: 10px 12px; overflow: hidden; }
.pc-curve svg { position: absolute; left: 12px; right: 12px; top: 18px; bottom: 26px; width: calc(100% - 24px); height: calc(100% - 44px); }
.curve-bg, .curve-fg { fill: none; stroke-width: 3; stroke-linecap: round; }
.curve-bg { stroke: rgb(255 255 255 / 0.08); }
.curve-fg { stroke: #8fd3ff; filter: drop-shadow(0 0 6px rgb(94 200 242 / 0.8)); stroke-dasharray: 1; stroke-dashoffset: 1; }
.trades { position: absolute; left: 12px; top: 8px; display: flex; gap: 5px; }
.t { font-family: var(--mono); font-size: 10px; padding: 2px 7px; border-radius: 6px; transition: opacity 0.35s, transform 0.45s cubic-bezier(0.2, 1.4, 0.3, 1); }
.js .t { opacity: 0; transform: translateX(20px); }
.js .t.on { opacity: 1; transform: none; }
.t.buy { color: #7ef0c2; background: rgb(52 211 153 / 0.12); }
.t.sell { color: #ffb3bb; background: rgb(255 93 108 / 0.12); }
.trades .t:nth-child(n + 4) { display: none; }
.fee-row { position: absolute; left: 12px; right: 12px; bottom: 7px; display: flex; justify-content: space-between; font-size: 11.5px; color: var(--subtle); }
.fee-row b { color: var(--fg); font-weight: 600; transition: color 0.3s, text-shadow 0.3s; }
.fee-row.on b { color: var(--accent-light); text-shadow: 0 0 14px rgb(139 124 246 / 0.9); }
.pc-grad { padding: 12px; border-radius: 14px; background: rgb(255 255 255 / 0.03); border: 1px solid rgb(255 255 255 / 0.06); transition: border-color 0.4s, box-shadow 0.4s, opacity 0.5s; }
.pc-grad.done { border-color: rgb(52 211 153 / 0.45); box-shadow: 0 0 40px -12px rgb(52 211 153 / 0.6); }
.pc-grad-top { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 600; }
.pct { font-family: var(--mono); font-weight: 500; color: var(--accent-light); font-variant-numeric: tabular-nums; }
.bar { margin-top: 8px; height: 8px; border-radius: 6px; background: rgb(255 255 255 / 0.08); overflow: hidden; }
.bar i { display: block; height: 100%; width: 100%; border-radius: inherit; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, #6d5dfc, #a597ff, #d9d2ff); box-shadow: 0 0 14px rgb(139 124 246 / 0.9); }
.pc-grad.done .bar i { background: linear-gradient(90deg, #22b07d, #34d399, #a7f3d0); box-shadow: 0 0 14px rgb(52 211 153 / 0.9); }
.locked { margin-top: 10px; display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--success); transition: opacity 0.4s, transform 0.5s; }
.js .locked { opacity: 0; transform: translateY(6px); }
.pc-grad.done .locked { opacity: 1; transform: none; }
.locked svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.locked .shackle { transform: translateY(-3px); transition: transform 0.45s 0.2s cubic-bezier(0.3, 1.6, 0.4, 1); }
.pc-grad.done .locked .shackle { transform: none; }

/* 05 · Locks */
.locks .stage { gap: 0; }
.locks-kicker { position: absolute; top: calc(var(--nav-h) + 14px); left: 0; right: 0; text-align: center; padding: 0 16px; }
.lock-count { position: absolute; top: calc(var(--nav-h) + 46px); left: 0; right: 0; text-align: center; font-family: var(--mono); font-size: 14px; letter-spacing: 0.2em; color: var(--subtle); }
.lock-count b { color: var(--success); font-weight: 500; }
.lock-tag { color: var(--muted); }
.lock-ticks { position: absolute; bottom: calc(32px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.lock-ticks i { width: 34px; height: 3px; border-radius: 3px; background: rgb(255 255 255 / 0.12); transition: background 0.4s, box-shadow 0.4s; }
.lock-ticks i.on { background: var(--success); box-shadow: 0 0 10px rgb(52 211 153 / 0.7); }
.lock-list { position: relative; width: min(980px, 100%); height: min(380px, 58svh); }
.lock {
  position: absolute; inset: 0; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(28px, 5vw, 72px);
  will-change: transform, opacity, filter;
}
.js .lock { opacity: 0; }
.lock-art {
  width: clamp(150px, 20vw, 240px); aspect-ratio: 1; border-radius: 34%; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, rgb(52 211 153 / 0.28), rgb(10 30 24 / 0.6) 60%), rgb(8 14 14 / 0.6);
  border: 1px solid rgb(52 211 153 / 0.35); box-shadow: 0 0 90px -20px rgb(52 211 153 / 0.55), inset 0 1px 0 rgb(255 255 255 / 0.12);
}
.lock-art svg { width: 46%; height: 46%; fill: none; stroke: #a7f3d0; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 10px rgb(52 211 153 / 0.8)); overflow: visible; }
.lock-art .strike { stroke: var(--danger); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 6px rgb(255 93 108 / 0.9)); }
.lock h3 { font-size: clamp(38px, 6vw, 92px); line-height: 0.98; font-weight: 800; letter-spacing: -0.055em; }
.lock p { margin-top: 16px; max-width: 30ch; font-size: clamp(16px, 1.6vw, 21px); line-height: 1.5; color: var(--muted); }

/* 06 · Fly-through */
.fly .stage { perspective: 900px; }
.stars {
  position: absolute; inset: -30%; pointer-events: none; will-change: transform;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 32% 72%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 58% 34%, #cfc7ff 50%, transparent 51%), radial-gradient(1px 1px at 76% 64%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 18%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 44% 88%, #cfc7ff 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 52%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 66% 12%, #fff 50%, transparent 51%);
  background-size: 420px 420px; opacity: 0.45;
}
.space { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }
.w {
  position: absolute; left: 50%; top: 50%; white-space: nowrap; will-change: transform, opacity;
  font-size: clamp(40px, 7.5vw, 120px); font-weight: 800; letter-spacing: -0.055em; line-height: 1;
  background: linear-gradient(180deg, #ffffff 30%, #b9adff); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 60px rgb(139 124 246 / 0.25);
}
.js .w { opacity: 0; }
.fly-end { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.js .fly-end { opacity: 0; }
.fly-end h2 { font-size: clamp(48px, 8vw, 128px); line-height: 0.98; font-weight: 800; letter-spacing: -0.06em; }

/* 07 · Finale */
.finale .stage { gap: 16px; text-align: center; }
.finale h2 { font-size: clamp(64px, 12vw, 200px); line-height: 0.95; font-weight: 800; letter-spacing: -0.065em; }
.finale .lede { margin-bottom: 14px; }
.js .finale .kicker, .js .finale h2, .js .finale .lede, .js .finale .actions { opacity: 0; }
.bars { display: flex; align-items: flex-end; gap: clamp(10px, 1.4vw, 18px); height: clamp(90px, 14svh, 150px); margin-bottom: 14px; }
.bars i { width: clamp(22px, 2.6vw, 36px); border-radius: 999px; transform-origin: 50% 100%; }
.js .bars i { transform: scaleY(0); }
.bars i:nth-child(1) { height: 42%; background: linear-gradient(#6a62a6, #2a2257); }
.bars i:nth-child(2) { height: 68%; background: linear-gradient(#a49be0, #3b3480); }
.bars i:nth-child(3) { height: 100%; background: linear-gradient(#ece8ff, #a597ff 45%, #4a3fb0); box-shadow: 0 0 60px rgb(139 124 246 / 0.65); }
.foot { position: absolute; left: 0; right: 0; bottom: calc(24px + env(safe-area-inset-bottom)); padding: 0 16px; text-align: center; font-size: 12.5px; color: var(--subtle); }
.foot .risk { color: var(--muted); }
.foot .copy { margin-top: 4px; font-size: 12px; }

/* ---------- Small screens ---------- */
@media (max-width: 860px) {
  .how .stage { flex-direction: column; justify-content: flex-start; gap: 18px; padding-top: calc(var(--nav-h) + 16px); }
  .how-text { width: 100%; max-width: 520px; }
  .rail { margin-top: 10px; }
  .how-steps { margin-top: 12px; min-height: 132px; }
  .how-step h3 { font-size: 26px; }
  .how-step p { margin-top: 8px; font-size: 14.5px; line-height: 1.5; }
  .how-visual { transform: scale(0.84); transform-origin: 50% 0; }
  .pc-plan { display: none; }
  .pcard { gap: 12px; padding: 18px; }
  .lock { grid-template-columns: 1fr; justify-items: center; text-align: center; align-content: center; gap: 22px; }
  .lock p { margin-left: auto; margin-right: auto; }
  .lock-list { height: min(520px, 66svh); }
  .locks-kicker { font-size: 10.5px; letter-spacing: 0.16em; }
  .lock-count { top: calc(var(--nav-h) + 52px); }
}
@media (max-width: 860px) and (max-height: 760px) {
  .how-visual { transform: scale(0.74); }
}
@media (max-width: 480px) {
  .pill { display: none; }
  .btn { height: 48px; padding: 0 20px; font-size: 15px; }
  .hero-copy .actions { flex-direction: column; width: 100%; max-width: 300px; }
  .finale .actions { flex-direction: column; width: 100%; max-width: 300px; }
  .alert { right: 0; top: -14%; padding: 10px 12px; }
}

/* ---------- Reduced motion: keep the scroll scenes, drop ambient movement. ---------- */
@media (prefers-reduced-motion: reduce) {
  .field-a, .field-b, .grain, .scroll-cue i, .pulse { animation: none; }
}
