/* L3睡死人生 — 深夜发布会 × 法务紧急接管 design system */
:root {
  --bg: #04060c;
  --bg2: #080c17;
  --ink: #eef1f8;
  --ink2: #c4cbdb;
  --muted: #8790a6;
  --line: rgba(170, 190, 235, 0.13);
  --gold: #e8c98a;
  --gold2: #f8e7bd;
  --gold3: #a8844a;
  --cyan: #5ef0ff;
  --red: #ff2a3d;
  --red2: #ff5a68;
  --ok: #6ff0b4;
  --accent: var(--cyan);
  --accent-soft: rgba(94, 240, 255, 0.16);
  --serif: "Noto Serif SC", "Songti SC", "STSong", "Source Han Serif SC", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --brush: "Ma Shan Zheng", "STKaiti", "KaiTi", var(--serif);
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --grunge: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' seed='7'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 -2.6 2.05'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  color-scheme: dark;
}
html[data-mode="l2"] {
  --accent: var(--red);
  --accent-soft: rgba(255, 42, 61, 0.18);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  min-width: 320px;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(94, 240, 255, 0.05), transparent 60%),
    radial-gradient(900px 700px at -10% 40%, rgba(232, 201, 138, 0.045), transparent 60%);
}
main, .footer { position: relative; z-index: 1; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold2); }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { text-wrap: pretty; }
code { font-family: var(--mono); }
::selection { background: rgba(232, 201, 138, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 28px; }

/* ---------------------------------------------------------------- preview bar & topbar */
.preview-bar {
  position: relative;
  z-index: 60;
  padding: 8px 16px;
  text-align: center;
  font: 700 13px/1.4 var(--sans);
  letter-spacing: 0.04em;
  color: #fff;
  background: repeating-linear-gradient(-45deg, #b0001a 0 14px, #8a0014 14px 28px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset;
}
.preview-bar[hidden] { display: none; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 68px;
  margin-bottom: -68px;
  transition: background 0.4s var(--ease), border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.topbar.solid {
  background: rgba(5, 7, 13, 0.72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--line);
}
.topbar-in { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: #fff; }
.brand-mark { width: 30px; height: 30px; color: var(--accent); transition: color 0.5s; }
.brand-name { font: 900 18px/1 var(--serif); letter-spacing: 0.02em; }
.brand-tick { font: 700 11px/1 var(--mono); color: var(--gold); padding: 5px 7px; border: 1px solid rgba(232, 201, 138, 0.35); border-radius: 6px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--ink2); font-size: 14px; padding: 8px 12px; border-radius: 10px; transition: color 0.2s, background 0.2s; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.topbar-act { display: flex; align-items: center; gap: 10px; }
.nav-mode {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--accent-soft);
  background: rgba(255, 255, 255, 0.04);
  font: 700 12px/1 var(--mono);
  color: var(--accent);
  transition: color 0.4s, border-color 0.4s, background 0.4s;
}
.nav-mode i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; animation: blink 1.6s infinite; }
html[data-mode="l2"] .nav-mode { background: rgba(255, 42, 61, 0.12); }
html[data-mode="l2"] .nav-mode i { animation-duration: 0.5s; }
.pill-link {
  height: 34px; display: inline-flex; align-items: center;
  padding: 0 14px; border-radius: 999px;
  font: 700 12px/1 var(--mono); color: #11100c;
  background: linear-gradient(180deg, var(--gold2), var(--gold));
}
.pill-link:hover { color: #000; filter: brightness(1.06); }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 110px 0 64px;
  overflow: hidden;
  isolation: isolate;
}
.hero-stage { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #05070f; }
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s var(--ease); }
.webgl-on #heroCanvas { opacity: 1; }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4, 6, 12, 0.9) 0%, rgba(4, 6, 12, 0.62) 30%, rgba(4, 6, 12, 0.12) 56%, transparent 70%),
    linear-gradient(0deg, var(--bg) 0%, rgba(4, 6, 12, 0.55) 16%, transparent 34%),
    linear-gradient(180deg, rgba(4, 6, 12, 0.75) 0%, transparent 18%);
}

/* fallback poster (also shown while WebGL boots) */
.hero-poster { position: absolute; inset: 0; transition: opacity 1.2s var(--ease); --pp-a: #5ef0ff; --pp-h: #22356a; }
.webgl-on .hero-poster { opacity: 0; }
html[data-mode="l2"] .hero-poster { --pp-a: #ff2a3d; --pp-h: #80101f; }
.pp-sky { position: absolute; inset: 0; background: linear-gradient(180deg, #010207 0%, #070e26 38%, var(--pp-h) 58%, #070b16 59%); transition: background 1s; }
.pp-moon { position: absolute; right: 22%; top: 12%; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, #f8ebcb 0 30%, rgba(244, 228, 193, 0.35) 45%, transparent 70%); filter: blur(0.5px); }
html[data-mode="l2"] .pp-moon { background: radial-gradient(circle, #ff9a80 0 30%, rgba(255, 80, 60, 0.35) 45%, transparent 70%); }
.pp-city { position: absolute; left: 0; right: 0; bottom: 41%; width: 100%; height: 42%; }
.pp-city .b { fill: #070a14; }
.pp-city .w { fill: #ffd08c; }
.pp-city .w2 { fill: #9fdcff; }
.pp-road { position: absolute; left: -20%; right: -20%; bottom: 0; height: 42%; perspective: 300px; overflow: hidden; background: linear-gradient(180deg, #0b0e15, #05070c); }
.pp-lanes {
  position: absolute; inset: -100% 0 0; transform: rotateX(62deg); transform-origin: 50% 100%;
  background:
    linear-gradient(90deg, transparent 49.6%, rgba(255, 255, 255, 0.75) 49.6% 50.4%, transparent 50.4%) 0 0 / 100% 120px,
    linear-gradient(90deg, transparent 20%, var(--pp-a) 20% 20.4%, transparent 20.4% 79.6%, var(--pp-a) 79.6% 80%, transparent 80%);
  -webkit-mask: repeating-linear-gradient(180deg, #000 0 60px, transparent 60px 120px), linear-gradient(#000 0 0);
  animation: lanes 0.6s linear infinite;
}
.pp-car { position: absolute; right: 11%; bottom: 40%; width: min(480px, 38vw); filter: drop-shadow(0 30px 30px rgba(0, 0, 0, 0.7)); animation: hover 3s ease-in-out infinite; }
.pp-strip { fill: var(--pp-a); filter: drop-shadow(0 0 6px var(--pp-a)); }
.pp-head { fill: #eaf6ff; filter: drop-shadow(0 0 10px #fff); }
.pp-tail { fill: #ff2238; filter: drop-shadow(0 0 10px #ff2238); }
.pp-z { font: 900 30px var(--serif); fill: var(--gold2); animation: zfloat 2.4s ease-in-out infinite; }
.pp-z.z2 { font-size: 20px; animation-delay: 0.6s; }
html[data-mode="l2"] .pp-z { display: none; }
@keyframes lanes { to { background-position: 0 120px, 0 0; } }
@keyframes hover { 50% { transform: translateY(-4px); } }
@keyframes zfloat { 0% { opacity: 0; transform: translate(0, 10px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(14px, -18px); } }

/* L2 alarm layers */
.alarm-frame {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  box-shadow: inset 0 0 0 2px rgba(255, 42, 61, 0.9), inset 0 0 160px rgba(255, 10, 40, 0.55);
  transition: opacity 0.4s;
}
html[data-mode="l2"] .alarm-frame { opacity: 1; animation: alarm 0.9s ease-in-out infinite; }
@keyframes alarm { 50% { box-shadow: inset 0 0 0 2px rgba(255, 42, 61, 0.4), inset 0 0 70px rgba(255, 10, 40, 0.25); } }
html[data-mode="l2"] .hero-stage { animation: jolt 0.55s var(--ease) 1; }
@keyframes jolt { 15% { transform: translate(-6px, 3px); } 35% { transform: translate(5px, -3px); } 55% { transform: translate(-3px, 2px); } 75% { transform: translate(2px, -1px); } }

.takeover {
  position: absolute; left: 50%; top: 92px; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px 10px 14px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 42, 61, 0.95), rgba(170, 0, 22, 0.95));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25) inset, 0 12px 50px rgba(255, 20, 50, 0.55);
  font: 900 15px/1 var(--sans);
  letter-spacing: 0.06em;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -24px);
  transition: opacity 0.35s, transform 0.5s var(--ease);
}
.takeover svg { width: 20px; height: 20px; }
.takeover b { font: 800 11px/1 var(--mono); padding: 4px 7px; border-radius: 6px; background: rgba(0, 0, 0, 0.3); letter-spacing: 0.12em; }
html[data-mode="l2"] .takeover { opacity: 1; transform: translate(-50%, 0); animation: tko 0.9s steps(2, jump-none) infinite 0.6s; }
@keyframes tko { 50% { filter: brightness(1.35); } }

.stamp-rain { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.stamp {
  --r: -8deg; --d: 0s;
  position: absolute;
  display: inline-block;
  padding: 0.18em 0.55em 0.22em;
  font: 900 clamp(20px, 2.6vw, 38px)/1.1 var(--serif);
  letter-spacing: 0.1em;
  color: var(--red);
  border: 0.13em solid currentColor;
  outline: 0.05em solid currentColor;
  outline-offset: 0.12em;
  border-radius: 6px;
  background: rgba(255, 42, 61, 0.07);
  text-shadow: 0 0 22px rgba(255, 42, 61, 0.55);
  white-space: nowrap;
  opacity: 0;
  transform: rotate(var(--r)) scale(2.4);
  -webkit-mask-image: var(--grunge);
  mask-image: var(--grunge);
}
.stamp.round { width: 3.6em; height: 3.6em; padding: 0; border-radius: 50%; display: grid; place-items: center; font-size: clamp(18px, 2vw, 28px); outline-offset: 0.18em; }
.st1 { --r: -7deg; --d: 0.05s; right: 2%; top: 10%; }
.st2 { --r: 6deg; --d: 0.32s; left: 7%; top: 23%; }
.st3 { --r: -5deg; --d: 0.6s; right: 20%; top: 18%; }
.st4 { --r: 8deg; --d: 0.88s; left: 24%; top: 36%; }
.st5 { --r: -16deg; --d: 1.15s; left: 47%; top: 46%; }
html[data-mode="l2"] .stamp { animation: slam 0.55s cubic-bezier(0.2, 1.5, 0.4, 1) var(--d) forwards, stampfade 0.6s ease 4.6s forwards; }
@keyframes slam {
  0% { opacity: 0; transform: rotate(var(--r)) scale(2.6); }
  55% { opacity: 1; transform: rotate(var(--r)) scale(0.92); }
  100% { opacity: 0.95; transform: rotate(var(--r)) scale(1); }
}
@keyframes stampfade { to { opacity: 0.38; } }

.hero-ui {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: end;
  gap: 40px;
}
.hero-copy { max-width: 780px; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 14, 26, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font: 700 12px/1 var(--mono);
  letter-spacing: 0.14em;
  color: var(--ink2);
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(255, 42, 61, 0.2), 0 0 12px var(--red); animation: blink 1.2s infinite; }
.k-sep { width: 1px; height: 12px; background: rgba(255, 255, 255, 0.2); }
@keyframes blink { 50% { opacity: 0.35; } }

.hero-title {
  margin: 22px 0 6px;
  font: 900 clamp(56px, 8.2vw, 124px)/0.98 var(--serif);
  white-space: nowrap;
  letter-spacing: -0.01em;
  display: flex; align-items: baseline;
}
.ht-cn {
  background: linear-gradient(180deg, #ffffff 0%, #eef1f8 45%, #aab3c8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.6));
}
.lvl { position: relative; display: inline-block; margin-right: 0.04em; }
.lvl3 {
  font-family: var(--serif);
  background: linear-gradient(180deg, var(--gold2) 0%, var(--gold) 50%, var(--gold3) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: opacity 0.5s;
  filter: drop-shadow(0 0 28px rgba(232, 201, 138, 0.35));
}
.lvl::after {
  content: ""; position: absolute; left: -4%; right: -4%; top: 52%; height: 0.08em;
  background: var(--red); border-radius: 4px; transform: rotate(-8deg) scaleX(0); transform-origin: left;
  box-shadow: 0 0 18px rgba(255, 42, 61, 0.8);
  transition: transform 0.45s var(--ease) 0.15s;
}
.lvl2 {
  position: absolute; left: 30%; top: -0.42em;
  font: 400 0.62em/1 var(--brush);
  color: var(--red);
  text-shadow: 0 0 20px rgba(255, 42, 61, 0.6);
  transform: rotate(-12deg) scale(0);
  transition: transform 0.5s cubic-bezier(0.2, 1.6, 0.4, 1) 0.45s;
}
html[data-mode="l2"] .lvl3 { opacity: 0.45; }
html[data-mode="l2"] .lvl::after { transform: rotate(-8deg) scaleX(1); }
html[data-mode="l2"] .lvl2 { transform: rotate(-12deg) scale(1); }
.hero-tick { font: 700 14px/1.4 var(--mono); color: var(--gold); letter-spacing: 0.08em; }
.hero-tick span { color: var(--muted); font-weight: 500; }

.quote-swap { display: grid; margin: 26px 0 24px; }
.q {
  grid-area: 1 / 1;
  margin: 0;
  padding: 2px 0 2px 20px;
  border-left: 3px solid var(--gold);
  transition: opacity 0.6s var(--ease), transform 0.7s var(--ease), filter 0.6s;
}
.q p { margin: 0; font: 600 clamp(18px, 2vw, 24px)/1.55 var(--serif); color: #fff; }
.q em { font-style: normal; color: var(--gold2); }
.q cite { display: block; margin-top: 8px; font: 500 12px/1.3 var(--mono); color: var(--muted); letter-spacing: 0.08em; font-style: normal; }
.q2 { border-left-color: var(--red); opacity: 0; transform: translateY(12px); filter: blur(6px); }
.q2 em { color: var(--red2); }
html[data-mode="l2"] .q3 { opacity: 0; transform: translateY(-12px); filter: blur(6px); }
html[data-mode="l2"] .q2 { opacity: 1; transform: none; filter: none; }

.hero-specs { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-specs li {
  display: flex; align-items: baseline; gap: 8px;
  padding: 9px 14px;
  border-radius: 12px;
  background: rgba(12, 16, 30, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 13px; color: var(--ink2);
}
.hero-specs b { font: 800 15px/1 var(--mono); color: var(--gold2); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px;
  border-radius: 14px;
  border: 1px solid transparent;
  font: 700 15px/1 var(--sans);
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.3s, background 0.3s, color 0.3s, border-color 0.3s;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-gold {
  color: #15110a;
  background: linear-gradient(180deg, #fff3d4 0%, var(--gold) 48%, #c9a462 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 -2px 0 rgba(120, 85, 30, 0.35) inset, 0 14px 40px -10px rgba(232, 201, 138, 0.6);
}
.btn-gold:hover { color: #000; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 -2px 0 rgba(120, 85, 30, 0.35) inset, 0 18px 50px -8px rgba(232, 201, 138, 0.75); }
.btn-glass {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn-glass:hover { color: #fff; background: rgba(255, 255, 255, 0.12); border-color: var(--accent); box-shadow: 0 0 30px -6px var(--accent); }
.btn-ghost { color: var(--ink2); border-color: transparent; }
.btn-ghost:hover { color: var(--gold2); }
.btn.wide { width: 100%; }

/* HUD */
.hud {
  position: relative;
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(16, 22, 40, 0.72), rgba(8, 11, 22, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  transition: border-color 0.5s, box-shadow 0.5s;
}
.hud::before, .panel::before, .console::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(248, 231, 189, 0.5), rgba(255, 255, 255, 0.04) 32%, transparent 62%, var(--accent-soft));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
html[data-mode="l2"] .hud { border-color: rgba(255, 42, 61, 0.5); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9), 0 0 60px -10px rgba(255, 42, 61, 0.45); }
.hud-row { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 14px; }
.hud-k { display: block; font: 700 10px/1 var(--mono); letter-spacing: 0.2em; color: var(--muted); margin-bottom: 6px; }
.hud-level b { font: 900 54px/0.9 var(--serif); color: var(--accent); text-shadow: 0 0 26px var(--accent-soft); transition: color 0.5s; }
.hud-speed b { font: 800 34px/1 var(--mono); color: #fff; font-variant-numeric: tabular-nums; }
.hud-speed small { margin-left: 4px; font: 500 11px var(--mono); color: var(--muted); }
.hud-ring { position: relative; width: 62px; height: 62px; }
.hud-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.hud-ring circle { fill: none; stroke-width: 4; }
.ring-bg { stroke: rgba(255, 255, 255, 0.1); }
.ring-arc { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; filter: drop-shadow(0 0 4px var(--accent)); transition: stroke 0.5s; }
.hud-ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 800 18px/1 var(--mono); }
.hud-timer { margin: 14px 0 12px; font: 600 13px/1.4 var(--sans); color: var(--ink2); }
html[data-mode="l2"] .hud-timer { color: var(--red2); }

.mode-switch {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  width: 100%; height: 46px; padding: 4px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
}
.ms-thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(94, 240, 255, 0.3), rgba(94, 240, 255, 0.12));
  box-shadow: inset 0 0 0 1px rgba(94, 240, 255, 0.5), 0 0 24px -4px rgba(94, 240, 255, 0.6);
  transition: transform 0.55s var(--ease), background 0.4s, box-shadow 0.4s;
}
.ms-opt { position: relative; display: grid; place-items: center; font: 700 13px/1 var(--sans); color: var(--muted); transition: color 0.4s; }
.ms3 { color: #fff; }
html[data-mode="l2"] .ms-thumb { transform: translateX(100%); background: linear-gradient(180deg, rgba(255, 42, 61, 0.55), rgba(255, 42, 61, 0.25)); box-shadow: inset 0 0 0 1px rgba(255, 90, 104, 0.8), 0 0 28px -2px rgba(255, 42, 61, 0.8); }
html[data-mode="l2"] .ms3 { color: var(--muted); }
html[data-mode="l2"] .ms2 { color: #fff; }

.hud-cd { margin-top: 14px; padding-top: 14px; border-top: 1px dashed rgba(255, 255, 255, 0.12); }
.cd-label { font: 600 12px/1.4 var(--sans); color: var(--muted); }
.cd-val {
  margin: 4px 0 6px;
  font: 800 clamp(30px, 3.2vw, 40px)/1.05 var(--mono);
  color: var(--gold2);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 24px rgba(232, 201, 138, 0.35);
}
.cd-meta { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font: 500 11px/1.4 var(--mono); color: var(--muted); }

.scroll-cue { position: absolute; left: 50%; bottom: 18px; width: 22px; height: 34px; margin-left: -11px; border: 1.5px solid rgba(255, 255, 255, 0.3); border-radius: 12px; }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

/* ---------------------------------------------------------------- legal tape */
.tape-wrap { position: relative; z-index: 2; overflow: hidden; padding: 34px 0 30px; margin-top: -10px; }
.tape { position: relative; overflow: hidden; white-space: nowrap; }
.tape-track { display: inline-flex; animation: tape 38s linear infinite; will-change: transform; }
.tape span { display: inline-flex; align-items: center; padding: 0 22px; }
.tape span::after { content: "◆"; margin-left: 44px; font-size: 0.6em; opacity: 0.7; }
.t-a {
  transform: rotate(-1.6deg) scale(1.04);
  padding: 13px 0;
  color: #120f08;
  font: 900 17px/1 var(--sans);
  letter-spacing: 0.12em;
  background: linear-gradient(180deg, var(--gold2), var(--gold));
  box-shadow: 0 18px 50px -14px rgba(232, 201, 138, 0.5);
  transition: background 0.6s, color 0.6s, box-shadow 0.6s;
}
.t-b {
  transform: rotate(1.2deg) scale(1.04);
  margin-top: -8px;
  padding: 10px 0;
  color: var(--red2);
  font: 700 13px/1 var(--mono);
  letter-spacing: 0.24em;
  background: #0b0c12;
  border-top: 1px solid rgba(255, 42, 61, 0.35);
  border-bottom: 1px solid rgba(255, 42, 61, 0.35);
}
.t-b .tape-track { animation-direction: reverse; animation-duration: 44s; }
html[data-mode="l2"] .t-a { color: #fff; background: repeating-linear-gradient(-45deg, #e3132b 0 22px, #a80018 22px 44px); box-shadow: 0 18px 60px -12px rgba(255, 42, 61, 0.7); }
@keyframes tape { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- sections */
.sec { position: relative; padding: 110px 0; }
.sec-head { max-width: 760px; margin-bottom: 44px; }
.eyebrow { display: flex; align-items: center; gap: 12px; font: 700 12px/1 var(--mono); letter-spacing: 0.24em; color: var(--gold); margin-bottom: 18px; }
.eyebrow span { display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 8px; border-radius: 6px; border: 1px solid rgba(232, 201, 138, 0.4); letter-spacing: 0.05em; }
.sec-head h2 { font: 900 clamp(34px, 5vw, 62px)/1.1 var(--serif); letter-spacing: -0.005em; }
.sec-head h2 small { font-size: 0.42em; font-weight: 600; color: var(--red2); letter-spacing: 0.02em; vertical-align: middle; }
.sec-head p { margin: 16px 0 0; color: var(--muted); font-size: 16px; max-width: 680px; }

.panel, .console {
  position: relative;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(20, 26, 44, 0.62) 0%, rgba(10, 13, 24, 0.7) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* console / telemetry */
.console { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 36px; padding: 32px; overflow: hidden; }
.console::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.04) 50%, transparent 60%);
  background-size: 250% 100%;
  animation: sheen 7s ease-in-out infinite;
}
@keyframes sheen { 0% { background-position: 120% 0; } 60%, 100% { background-position: -120% 0; } }
.console-gauge { position: relative; display: grid; place-items: center; }
.gauge { width: 100%; max-width: 280px; overflow: visible; }
.g-bg, .g-arc { fill: none; stroke-width: 10; stroke-linecap: round; }
.g-bg { stroke: rgba(255, 255, 255, 0.07); }
.g-arc { stroke: url(#gGrad); stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.2s var(--ease); filter: drop-shadow(0 0 8px rgba(94, 240, 255, 0.5)); }
.g-ticks line { stroke: rgba(255, 255, 255, 0.22); stroke-width: 1.5; }
.g-ticks line.major { stroke: rgba(232, 201, 138, 0.7); stroke-width: 2; }
.gauge-read { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding-top: 6px; }
.gauge-read b { font: 800 40px/1 var(--mono); color: #fff; font-variant-numeric: tabular-nums; }
.gauge-read small { margin-top: 8px; font-size: 12px; color: var(--muted); max-width: 150px; line-height: 1.4; }
.console-main { min-width: 0; display: flex; flex-direction: column; gap: 22px; justify-content: center; }
.console-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.stage-pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 14px; border-radius: 999px;
  font: 700 13px/1.2 var(--sans);
  color: var(--gold2);
  background: rgba(232, 201, 138, 0.1);
  border: 1px solid rgba(232, 201, 138, 0.3);
}
.stage-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; animation: blink 1.4s infinite; flex-shrink: 0; }
.stage-pill.live { color: var(--ok); background: rgba(111, 240, 180, 0.1); border-color: rgba(111, 240, 180, 0.35); }
.stage-pill.refund { color: #ffb36b; background: rgba(255, 179, 107, 0.1); border-color: rgba(255, 179, 107, 0.4); }
.addr-chip {
  display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%;
  padding: 6px 6px 6px 14px; border-radius: 12px;
  background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line);
  font-size: 12px; color: var(--muted);
}
.addr-chip code { font-size: 12.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mini-btn { flex-shrink: 0; height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.06); font-size: 12px; font-weight: 700; }
.mini-btn:hover { border-color: var(--gold); color: var(--gold2); }
.prog-track { position: relative; height: 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6); }
.prog-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  min-width: 14px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--gold2));
  box-shadow: 0 0 18px rgba(94, 240, 255, 0.6);
  transition: width 1s var(--ease);
}
.prog-fill::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.25) 0 6px, transparent 6px 12px); animation: stripes 1s linear infinite; background-size: 17px 17px; }
@keyframes stripes { to { background-position: 17px 0; } }
.prog-scale { display: flex; justify-content: space-between; margin-top: 8px; font: 500 11px/1 var(--mono); color: var(--muted); }
.tele-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat { padding: 16px; border-radius: 14px; background: rgba(0, 0, 0, 0.28); border: 1px solid rgba(255, 255, 255, 0.06); min-width: 0; }
.stat-k { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.stat-v { font: 800 18px/1.25 var(--mono); color: #fff; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* keynote slides */
.slides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.slide {
  position: relative;
  display: flex; flex-direction: column;
  padding: 28px 26px 26px;
  border-radius: var(--radius);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(232, 201, 138, 0.12), transparent 55%),
    linear-gradient(180deg, #0f1424, #090c17);
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.5s;
}
.slide::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask: linear-gradient(180deg, #000, transparent 70%);
  mask: linear-gradient(180deg, #000, transparent 70%);
}
.slide:hover { transform: translateY(-6px); border-color: rgba(232, 201, 138, 0.35); box-shadow: 0 40px 80px -40px rgba(232, 201, 138, 0.35); }
.slide-tag { position: relative; font: 700 11px/1 var(--mono); letter-spacing: 0.16em; color: var(--muted); }
.slide-num {
  position: relative;
  margin: 22px 0 12px;
  font: 900 clamp(58px, 6.4vw, 92px)/0.95 var(--serif);
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #fff6dd, var(--gold) 55%, var(--gold3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.slide-num small { display: inline-block; margin-left: 10px; font: 700 15px/1 var(--sans); letter-spacing: 0.04em; color: var(--ink2); -webkit-text-fill-color: var(--ink2); vertical-align: 0.6em; }
.slide p { position: relative; margin: 0 0 22px; color: var(--ink2); font-size: 14.5px; line-height: 1.7; }
.note {
  position: relative;
  margin-top: auto;
  align-self: flex-start;
  max-width: 100%;
  padding: 12px 16px 12px 14px;
  border-radius: 4px;
  background: #f5eee1;
  color: #c3001b;
  font: 400 21px/1.35 var(--brush);
  transform: rotate(-1.6deg);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(255, 255, 255, 0.6) inset;
  transition: transform 0.5s var(--ease);
}
.note::before { content: ""; position: absolute; left: 50%; top: -9px; width: 70px; height: 18px; margin-left: -35px; background: rgba(255, 255, 255, 0.22); transform: rotate(3deg); backdrop-filter: blur(2px); }
.note b {
  display: inline-block; margin-right: 10px; padding: 3px 7px 4px;
  font: 900 12px/1 var(--serif); letter-spacing: 0.12em; vertical-align: 0.25em;
  color: #fff; background: #d4001f; border-radius: 3px;
  -webkit-mask-image: var(--grunge); mask-image: var(--grunge);
}
.slide:hover .note { transform: rotate(-3deg) scale(1.03); }

/* mint + invite */
.mint-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.panel { padding: 28px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.panel-tag { display: inline-flex; align-items: center; gap: 8px; font: 700 13px/1 var(--sans); color: var(--ink); }
.panel-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.panel-tag.gold i { background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.panel-mono { font-size: 11.5px; color: var(--muted); padding: 5px 9px; border-radius: 7px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); }
.field-label { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; font-weight: 700; color: var(--ink2); margin-bottom: 10px; }
.field-label span { font: 500 11.5px var(--mono); color: var(--muted); }
.seat-keys { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
.seat-chip {
  position: relative;
  height: 64px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, #1a2034, #0e1220);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 0 #05070d, 0 10px 18px -6px rgba(0, 0, 0, 0.8);
  font: 800 22px/1 var(--mono);
  color: #fff;
  transition: transform 0.15s, box-shadow 0.2s, background 0.3s, color 0.3s;
}
.seat-chip small { display: block; margin-top: 5px; font: 600 11px/1 var(--sans); color: var(--muted); }
.seat-chip:hover { background: linear-gradient(180deg, #212841, #11162a); }
.seat-chip:active { transform: translateY(4px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 2px 0 #05070d; }
.seat-chip.active {
  color: #15110a;
  background: linear-gradient(180deg, #fff1cc, var(--gold) 60%, #c39d5c);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 6px 0 #5a4421, 0 10px 30px -6px rgba(232, 201, 138, 0.7);
}
.seat-chip.active small { color: rgba(21, 17, 10, 0.7); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--ink2); margin-bottom: 8px; }
.field input {
  width: 100%; height: 50px; padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  font: 500 15px var(--mono);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5);
  transition: border-color 0.2s, box-shadow 0.2s;
  min-width: 0;
}
.field input::placeholder { color: #5b6378; font-family: var(--sans); font-size: 14px; }
.field input:focus { outline: none; border-color: var(--gold); box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(232, 201, 138, 0.15); }
.stepper { display: grid; grid-template-columns: 50px minmax(0, 1fr) 50px; gap: 8px; }
.stepper button { height: 50px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.05); font-size: 22px; font-weight: 500; }
.stepper button:hover { border-color: var(--gold); color: var(--gold2); }
.stepper input { text-align: center; font-size: 20px; font-weight: 800; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.summary { margin: 6px 0 20px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.25); overflow: hidden; }
.summary-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 16px; font-size: 14px; color: var(--muted); }
.summary-row + .summary-row { border-top: 1px solid var(--line); }
.summary-row strong { font: 800 15px/1.3 var(--mono); color: #fff; text-align: right; overflow-wrap: anywhere; }
.summary-row:first-child strong { color: var(--gold2); font-size: 18px; }
.prompt { margin-top: 18px; border-radius: 14px; border: 1px solid var(--line); background: #05070c; overflow: hidden; }
.prompt-head { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); font: 700 12px/1.3 var(--mono); color: var(--muted); background: rgba(255, 255, 255, 0.02); }
.prompt-box { padding: 14px; font: 500 12.5px/1.75 var(--mono); color: #a9f6ff; overflow-wrap: anywhere; word-break: break-word; }
.status-msg { min-height: 22px; margin-top: 12px; font-size: 13px; line-height: 1.6; color: var(--muted); overflow-wrap: anywhere; }
.status-msg.ok { color: var(--ok); }
.status-msg.err { color: var(--red2); }
.phase-card { padding: 18px; border-radius: 14px; margin-bottom: 18px; }
.phase-card b { display: block; font-size: 16px; margin-bottom: 6px; }
.phase-card p { margin: 0; font-size: 14px; color: var(--ink2); }
.phase-card.warn { background: rgba(255, 179, 107, 0.08); border: 1px solid rgba(255, 179, 107, 0.35); }
.phase-card.warn b { color: #ffb36b; }
.phase-card.ok { background: rgba(111, 240, 180, 0.07); border: 1px solid rgba(111, 240, 180, 0.3); }
.phase-card.ok b { color: var(--ok); }
.invite-hero { padding: 20px; margin-bottom: 22px; border-radius: 16px; background: radial-gradient(120% 120% at 0% 0%, rgba(232, 201, 138, 0.16), transparent 60%), rgba(0, 0, 0, 0.25); border: 1px solid rgba(232, 201, 138, 0.18); }
.ih-num { font: 900 46px/1 var(--serif); background: linear-gradient(180deg, #fff6dd, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ih-num small { margin-left: 8px; font: 700 14px var(--sans); -webkit-text-fill-color: var(--ink2); }
.invite-hero p { margin: 10px 0 0; font-size: 14px; color: var(--ink2); }
.inv-result { margin-top: 18px; }
.inv-rules { margin: 20px 0 0; padding: 18px 0 0 18px; border-top: 1px dashed rgba(255, 255, 255, 0.1); font-size: 13px; color: var(--muted); }
.inv-rules li { margin-bottom: 6px; }
.inv-rules li::marker { color: var(--gold); }

.calc-slider { --p: 0%; width: 100%; height: 30px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.calc-slider::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--gold) 0 var(--p), rgba(255, 255, 255, 0.1) var(--p)); }
.calc-slider::-moz-range-track { height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--gold) 0 var(--p), rgba(255, 255, 255, 0.1) var(--p)); }
.calc-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--gold) 55%, #9c7a40); border: 0; box-shadow: 0 0 0 6px rgba(232, 201, 138, 0.18), 0 6px 18px rgba(0, 0, 0, 0.6); }
.calc-slider::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--gold) 55%, #9c7a40); border: 0; box-shadow: 0 0 0 6px rgba(232, 201, 138, 0.18); }
.calc-axis { display: flex; justify-content: space-between; font: 500 11px/1 var(--mono); color: var(--muted); margin: 4px 0 16px; }

/* tokenomics */
.tok-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.nw { white-space: nowrap; }
.tok-donut { display: flex; flex-direction: column; justify-content: center; gap: 34px; padding: 34px; overflow: hidden; }
.tok-donut::after { content: ""; position: absolute; left: -80px; top: -80px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(232, 201, 138, 0.12), transparent 65%); pointer-events: none; }
.donut-wrap { position: relative; width: 100%; max-width: 260px; aspect-ratio: 1; margin: 0 auto; }
.donut { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.d-bg, .d-seg { fill: none; stroke-width: 22; }
.d-bg { stroke: rgba(255, 255, 255, 0.05); }
.d-seg { stroke-linecap: butt; transition: stroke-dasharray 1.4s var(--ease); }
.d-mint { stroke: url(#dMint); filter: drop-shadow(0 0 10px rgba(232, 201, 138, 0.45)); }
.d-pool { stroke: url(#dPool); filter: drop-shadow(0 0 10px rgba(94, 240, 255, 0.45)); }
.js .tok-donut:not(.in) .d-seg { stroke-dasharray: 0 100; }
.donut-read { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut-read b { font: 900 40px/1 var(--serif); background: linear-gradient(180deg, #fff6dd, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.donut-read span { margin-top: 8px; font-size: 12px; color: var(--muted); }
.legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; position: relative; }
.legend li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 12px; align-items: start; }
.legend i, .flow-legend i { width: 14px; height: 14px; border-radius: 4px; margin-top: 6px; }
.lg-mint { background: linear-gradient(135deg, #fff1cc, #c9a462); box-shadow: 0 0 12px rgba(232, 201, 138, 0.5); }
.lg-pool { background: linear-gradient(135deg, #a9f6ff, #2bb8d6); box-shadow: 0 0 12px rgba(94, 240, 255, 0.5); }
.lg-team { background: transparent; border: 1.5px dashed rgba(255, 255, 255, 0.4); }
.lg-ref { background: linear-gradient(135deg, #ffb3bb, #ff5a68); box-shadow: 0 0 12px rgba(255, 90, 104, 0.45); }
.legend b { display: block; font: 800 30px/1 var(--mono); color: #fff; letter-spacing: -0.01em; }
.legend span { display: block; margin-top: 6px; font-weight: 700; font-size: 13px; color: var(--ink); white-space: nowrap; }
.legend small { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); }
.tok-side { display: grid; gap: 24px; min-width: 0; }
.flow-bar { display: flex; height: 58px; border-radius: 14px; overflow: hidden; gap: 3px; margin-bottom: 18px; }
.flow-bar span { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; font-size: 13px; font-weight: 700; color: #08131a; white-space: nowrap; }
.flow-bar b { font: 800 16px/1 var(--mono); }
.fb-pool { background: linear-gradient(180deg, #b9f8ff, #36c4df); }
.fb-ops { background: linear-gradient(180deg, #fff1cc, #c9a462); }
.fb-ref { background: linear-gradient(180deg, #ffc2c8, #ff5a68); }
.flow-legend { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; font-size: 13.5px; color: var(--ink2); }
.flow-legend li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 10px; }
.flow-legend i { width: 10px; height: 10px; margin-top: 7px; border-radius: 3px; }
.launch-steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; counter-reset: ls; }
.launch-steps li { position: relative; padding: 16px 14px; border-radius: 14px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); min-width: 0; }
.launch-steps li + li::before { content: "→"; position: absolute; left: -10px; top: 50%; transform: translate(-50%, -50%); color: var(--gold); font: 700 14px var(--mono); }
.launch-steps b { display: block; font: 800 22px/1.1 var(--mono); color: var(--gold2); }
.launch-steps span { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.lp-badge { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 13px 16px; border-radius: 12px; background: rgba(0, 0, 0, 0.35); border: 1px dashed rgba(232, 201, 138, 0.35); font-size: 13px; color: var(--muted); }
.lp-badge b { font: 800 15px/1 var(--mono); color: var(--gold2); }
.inv-calc-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.inv-calc-top b { font: 800 28px/1.1 var(--mono); color: #fff; font-variant-numeric: tabular-nums; }
.inv-calc-out { text-align: right; }
.inv-calc-out b { color: var(--gold2); font-size: 34px; text-shadow: 0 0 30px rgba(232, 201, 138, 0.35); }
.inv-calc-note { margin: 0; font-size: 13px; color: var(--muted); }
.inv-calc-note a { margin-left: 6px; white-space: nowrap; }

/* route / timeline */
.route { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; position: relative; }
.route::before {
  content: ""; position: absolute; left: 4%; right: 4%; top: 27px; height: 6px; border-radius: 6px;
  background: linear-gradient(90deg, transparent 0 46%, rgba(255, 255, 255, 0.6) 46% 54%, transparent 54%) 0 50% / 40px 2px repeat-x, #0e1220;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 30px rgba(94, 240, 255, 0.12);
}
.route li { position: relative; padding: 0 4px; }
.r-node {
  position: relative; z-index: 1;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  font: 800 16px/1 var(--mono); color: #15110a;
  background: linear-gradient(180deg, #fff1cc, var(--gold));
  box-shadow: 0 0 0 6px var(--bg), 0 0 0 7px rgba(232, 201, 138, 0.5), 0 0 40px rgba(232, 201, 138, 0.4);
}
.r-node.warn { color: #fff; background: linear-gradient(180deg, #ff6a78, #c4001c); box-shadow: 0 0 0 6px var(--bg), 0 0 0 7px rgba(255, 42, 61, 0.6), 0 0 40px rgba(255, 42, 61, 0.45); }
.r-time { margin: 22px 0 6px; font: 700 12px/1 var(--mono); color: var(--gold); letter-spacing: 0.08em; }
.route h3 { font: 900 22px/1.3 var(--serif); margin-bottom: 8px; }
.route p { margin: 0; font-size: 14px; color: var(--muted); }

/* legal memo */
.memo {
  position: relative;
  padding: 56px 56px 48px;
  border-radius: 8px;
  color: #1d1912;
  background:
    repeating-linear-gradient(180deg, transparent 0 33px, rgba(120, 90, 50, 0.08) 33px 34px),
    radial-gradient(120% 90% at 0% 0%, #fbf6ec, #efe6d4);
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.4) inset;
  transform: rotate(-0.4deg);
}
.memo::before { content: ""; position: absolute; left: 50%; top: -14px; width: 130px; height: 30px; margin-left: -65px; background: rgba(232, 201, 138, 0.55); transform: rotate(-2deg); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); }
.memo-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; padding-bottom: 22px; margin-bottom: 8px; border-bottom: 2px solid #1d1912; }
.memo-kicker { font: 700 12px/1.4 var(--mono); letter-spacing: 0.14em; color: #b0001a; margin-bottom: 12px; }
.memo h2 { font: 900 clamp(30px, 4.4vw, 52px)/1.1 var(--serif); color: #15110a; }
.memo-head p { margin: 10px 0 0; color: #5d5446; font-size: 15px; }
.memo-no { flex-shrink: 0; text-align: right; font: 600 12px/1.7 var(--mono); color: #6d6253; }
.table-wrap { overflow-x: auto; }
.rules-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.rules-table th, .rules-table td { padding: 15px 0; border-bottom: 1px dashed rgba(29, 25, 18, 0.25); vertical-align: top; text-align: left; }
.rules-table th { width: 160px; padding-right: 20px; font: 900 15px/1.6 var(--serif); color: #15110a; white-space: nowrap; }
.rules-table td { color: #3b342a; line-height: 1.75; }
.memo-sign { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-top: 30px; padding-right: 170px; font: 600 13px/1.4 var(--mono); color: #6d6253; }
.memo-sign .sig { font: 400 34px/1 var(--brush); color: #1d1912; transform: rotate(-4deg); }
.memo-stamp {
  position: absolute; right: 48px; bottom: 28px;
  width: 132px; height: 132px; border-radius: 50%;
  display: grid; place-content: center; text-align: center;
  color: #d0001f;
  border: 5px solid currentColor;
  box-shadow: inset 0 0 0 3px #efe6d4, inset 0 0 0 5px currentColor;
  transform: rotate(-14deg);
  opacity: 0.86;
  -webkit-mask-image: var(--grunge); mask-image: var(--grunge);
}
.memo-stamp span { font: 900 22px/1.1 var(--serif); letter-spacing: 0.08em; }
.memo-stamp small { margin-top: 4px; font: 700 12px/1 var(--sans); letter-spacing: 0.3em; }

/* FAQ */
.faq-wrap { max-width: 920px; }
.faqs { display: grid; gap: 12px; }
.faq { border-radius: 16px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); transition: background 0.3s, border-color 0.3s; }
.faq[open] { background: rgba(255, 255, 255, 0.045); border-color: rgba(232, 201, 138, 0.3); }
.faq summary { position: relative; list-style: none; cursor: pointer; padding: 20px 60px 20px 22px; font: 700 16px/1.5 var(--sans); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; width: 28px; height: 28px; margin-top: -14px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(232, 201, 138, 0.4); color: var(--gold); font: 400 20px/1 var(--mono); transition: transform 0.4s var(--ease); }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0; padding: 0 22px 22px; color: var(--ink2); font-size: 15px; }

/* footer */
.footer { padding: 30px 0 60px; border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(255, 42, 61, 0.03)); }
.risk-banner {
  display: flex; gap: 14px; align-items: center;
  margin: 26px 0 30px; padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}
.risk-k { flex-shrink: 0; padding: 5px 8px; border-radius: 5px; border: 1px solid rgba(255, 90, 104, 0.4); color: var(--red2); font: 700 12px/1 var(--sans); letter-spacing: 0.08em; }
.risk-banner p { margin: 0; font: 500 13.5px/1.6 var(--sans); color: var(--muted); }
.foot-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot-brand { max-width: 620px; }
.foot-brand b { font: 900 20px var(--serif); }
.foot-brand span { font: 700 12px var(--mono); color: var(--gold); margin-left: 6px; }
.foot-brand p { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; align-content: flex-start; font-size: 14px; }
.foot-links a { color: var(--ink2); }
.foot-links a:hover { color: var(--gold2); }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .memo.reveal.in { transform: rotate(-0.4deg); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .nav { display: none; }
  .topbar-act { margin-left: auto; }
  .hero-ui { grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; }
  .slides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tele-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tok-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .console { grid-template-columns: 1fr; }
  .gauge { max-width: 240px; }
  .mint-grid { grid-template-columns: 1fr; }
  .route { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .route::before { display: none; }
}
@media (max-width: 820px) {
  .hero { min-height: 0; padding: 92px 0 40px; justify-content: flex-start; }
  .hero-stage { bottom: auto; height: min(100svh, 860px); min-height: 640px; }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(4, 6, 12, 0.9) 0%, rgba(4, 6, 12, 0.55) 32%, transparent 46%, transparent 62%, rgba(4, 6, 12, 0.7) 82%, var(--bg) 100%);
  }
  .hero-ui { display: flex; flex-direction: column; gap: 0; }
  .hero-copy { display: contents; }
  .kicker { order: 1; align-self: flex-start; }
  .hero-title { order: 2; }
  .hero-tick { order: 3; }
  .quote-swap { order: 4; margin: 16px 0 0; }
  .hud { order: 5; margin-top: clamp(190px, 52vw, 320px); }
  .hero-specs { order: 6; margin: 18px 0 18px; }
  .hero-ui > .hero-copy .cta-row, .hero .cta-row { order: 7; }
  .scroll-cue { display: none; }
  .pp-car { right: 8%; bottom: 38%; width: 80vw; }
  .pp-city { bottom: 44%; }
  .pp-road { height: 44%; }
  .takeover { top: 43.5%; font-size: 13px; padding: 8px 14px 8px 11px; }
  .st1 { right: 4%; top: 12%; }
  .st2 { right: auto; left: 4%; top: 47%; }
  .st3 { right: 5%; top: 55%; }
  .st4 { right: auto; left: 8%; top: 63%; }
  .st5 { left: auto; right: 5%; top: 40%; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .wrap { padding: 0 16px; }
  .topbar { height: 58px; margin-bottom: -58px; }
  .brand-tick { display: none; }
  .brand-name { font-size: 16px; }
  .brand-mark { width: 26px; height: 26px; }
  .nav-mode { padding: 0 10px; height: 32px; }
  .pill-link { height: 32px; padding: 0 11px; }
  .topbar-act { gap: 8px; }
  .hero-title { font-size: clamp(52px, 16.4vw, 72px); margin-top: 16px; }
  .kicker { font-size: 10.5px; letter-spacing: 0.1em; padding: 6px 11px 6px 9px; }
  .q { padding-left: 14px; }
  .q p { font-size: 16.5px; }
  .hud { padding: 16px; border-radius: 20px; }
  .hud-level b { font-size: 44px; }
  .hud-speed b { font-size: 28px; }
  .hero-specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .hero-specs li { flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px; font-size: 11px; line-height: 1.35; }
  .hero-specs b { font-size: 14px; }
  .hero .cta-row .btn { flex: 1 1 100%; }
  .btn { min-height: 48px; padding: 0 18px; font-size: 14.5px; }
  .tape-wrap { padding: 26px 0 22px; }
  .t-a { font-size: 14px; padding: 11px 0; }
  .t-b { font-size: 11px; }
  .sec { padding: 72px 0; }
  .sec-head { margin-bottom: 30px; }
  .sec-head p { font-size: 14.5px; }
  .console { padding: 20px; gap: 18px; }
  .gauge-read b { font-size: 32px; }
  .addr-chip { width: 100%; }
  .tele-grid { gap: 10px; }
  .tok-donut { gap: 26px; padding: 22px; }
  .legend { grid-template-columns: 1fr; }
  .donut-wrap { max-width: 210px; }
  .legend b { font-size: 26px; }
  .flow-bar { height: 52px; }
  .flow-bar span { font-size: 0; gap: 0; }
  .flow-bar b { font-size: 14px; }
  .inv-calc-top b { font-size: 24px; }
  .launch-steps li { padding: 12px 10px; }
  .launch-steps b { font-size: 17px; }
  .inv-calc-out b { font-size: 28px; }
  .stat { padding: 13px; }
  .stat-v { font-size: 15px; }
  .slides { grid-template-columns: 1fr; gap: 16px; }
  .slide { padding: 24px 20px 22px; }
  .panel { padding: 20px; border-radius: 18px; }
  .seat-keys { gap: 7px; }
  .seat-chip { height: 56px; font-size: 18px; border-radius: 12px; }
  .mint-panel .cta-row .btn, .invite-panel .cta-row .btn { flex: 1 1 100%; }
  .summary-row { padding: 12px 13px; font-size: 13px; }
  .summary-row strong { font-size: 13.5px; }
  .summary-row:first-child strong { font-size: 16px; }
  .route { grid-template-columns: 1fr; row-gap: 28px; }
  .route li { display: grid; grid-template-columns: 60px minmax(0, 1fr); column-gap: 16px; }
  .route li .r-node { grid-row: span 3; }
  .r-time { margin: 4px 0 6px; }
  .memo { padding: 34px 20px 30px; transform: none; }
  .js .memo.reveal.in { transform: none; }
  .memo-head { flex-direction: column; gap: 10px; }
  .memo-no { text-align: left; }
  .rules-table th, .rules-table td { display: block; width: auto; padding: 0; border: 0; white-space: normal; }
  .rules-table th { padding-top: 14px; font-size: 14.5px; }
  .rules-table td { padding: 2px 0 14px; border-bottom: 1px dashed rgba(29, 25, 18, 0.25); font-size: 14px; }
  .memo-sign { padding-right: 100px; flex-direction: column; align-items: flex-start; }
  .memo-stamp { width: 96px; height: 96px; right: 16px; bottom: 22px; }
  .memo-stamp span { font-size: 16px; }
  .memo-stamp small { font-size: 10px; letter-spacing: 0.2em; }
  .faq summary { padding: 17px 54px 17px 18px; font-size: 15px; }
  .faq p { padding: 0 18px 18px; font-size: 14px; }
  .risk-banner { flex-direction: column; align-items: flex-start; padding: 14px; gap: 10px; }
  .stamp { font-size: 19px; }
  .stamp.round { font-size: 16px; }
  .sec-head h2 small { display: block; margin-top: 6px; font-size: 0.5em; }
}
@media (max-width: 380px) {
  .nav-mode span { display: none; }
  .hud-row { gap: 10px; }
  .hud-speed b { font-size: 24px; }
  .hud-ring { width: 54px; height: 54px; }
  .seat-chip { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.2s !important; }
  .tape-track { animation: none; }
  .js .reveal { transform: none; }
}
