/* ==========================================================================
   RBXfun — landing page
   ========================================================================== */
:root {
  --bg: #eef2f8;
  --bg-2: #e5ebf5;
  --fg: #0f1530;
  --body: #3a4466;
  --muted: #6b7593;
  --faint: #9aa3bd;
  --card: #ffffff;
  --line: #dde4ef;
  --line-2: #cdd6e5;
  --edge: #d2dae8;
  --primary: #19a64b;
  --primary-hi: #2bc760;
  --primary-shade: #0d7a34;
  --gold: #ffc933;
  --gold-shade: #c48d00;
  --red: #ff5a52;
  --blue: #3d8bff;
  --purple: #8e67ff;
  --stud: #ffffff;
  --stud-line: #d5ddea;
  --glass: rgba(238, 242, 248, 0.74);
  --ring: rgba(43, 199, 96, 0.35);

  --sky-top: #3a94ff;
  --sky-mid: #86c3ff;
  --sky-low: #e0efff;
  --plate: #aab6ca;
  --plate-line: rgba(255, 255, 255, 0.55);
  --plate-stud: rgba(255, 255, 255, 0.28);
  --cloud: #ffffff;
  --cloud-op: 0.95;
  --city: #a9c9f2;
  --city-win: rgba(255, 255, 255, 0.45);
  --brick-wall: #8b4a33;
  --brick-side: #6e3826;
  --brick-mortar: #6a3423;
  --roof: #4a261a;
  --cornice: #3a1d13;
  --curb: #b6bfcf;
  --interior-light: rgba(255, 210, 140, 0.08);
  --lamp-glow: rgba(255, 232, 163, 0);

  --t-bg: #0b1220;
  --t-panel: #111b2e;
  --t-panel2: #0e1728;
  --t-line: #1e2a44;
  --t-text: #e8eef9;
  --t-muted: #7e8aa5;
  --t-up: #4ed8be;
  --t-down: #f26d7e;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --display: 'Fredoka', ui-rounded, system-ui, sans-serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --wrap: 1200px;
  --header-h: 68px;
  color-scheme: light;
}

html[data-theme='dark'] {
  --bg: #0b1122;
  --bg-2: #0f1730;
  --fg: #eef2ff;
  --body: #c2c9e0;
  --muted: #8a93b3;
  --faint: #5b6487;
  --card: #141b31;
  --line: #243050;
  --line-2: #2d3860;
  --edge: #060a15;
  --primary: #17a047;
  --primary-hi: #2bc760;
  --primary-shade: #0a5f28;
  --stud: #141b31;
  --stud-line: #2a3558;
  --glass: rgba(11, 17, 34, 0.72);

  --sky-top: #040a1d;
  --sky-mid: #0e2155;
  --sky-low: #24427f;
  --plate: #283252;
  --plate-line: rgba(170, 185, 230, 0.16);
  --plate-stud: rgba(170, 185, 230, 0.08);
  --cloud: #c9d6ff;
  --cloud-op: 0.12;
  --city: #13204a;
  --city-win: #ffd36b;
  --brick-wall: #5e3022;
  --brick-side: #46231a;
  --brick-mortar: #3f1d13;
  --roof: #2c160f;
  --cornice: #22100a;
  --curb: #3a4566;
  --interior-light: rgba(255, 190, 110, 0.18);
  --lamp-glow: rgba(255, 220, 130, 0.35);
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.01em; line-height: 1.05; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 8px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

/* ---------- primitives ---------- */
.studs {
  background-image: radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.9) 0 7px, transparent 7.5px),
    radial-gradient(circle at 50% 54%, rgba(22, 27, 46, 0.09) 0 7px, transparent 7.5px);
  background-size: 28px 28px;
}
html[data-theme='dark'] .studs {
  background-image: radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.07) 0 7px, transparent 7.5px),
    radial-gradient(circle at 50% 54%, rgba(0, 0, 0, 0.3) 0 7px, transparent 7.5px);
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -2px 0 rgba(0, 0, 0, 0.04), 0 4px 0 var(--edge), 0 10px 24px rgba(20, 30, 60, 0.06);
}
html[data-theme='dark'] .panel { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 4px 0 var(--edge), 0 12px 26px rgba(0, 0, 0, 0.3); }

.studs-top { position: relative; }
.studs-top::before {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  top: -7px;
  height: 7px;
  pointer-events: none;
  background: radial-gradient(ellipse 8px 7px at 50% 100%, var(--stud-color, var(--stud)) 88%, transparent 96%) 0 0 / 26px 7px repeat-x;
  filter: drop-shadow(0 -1px 0 var(--stud-line-c, var(--stud-line)));
}

.btn {
  --b: var(--card);
  --b-shade: var(--edge);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  border: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  white-space: nowrap;
  background: var(--b);
  color: var(--fg);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.22), inset 0 -2px 0 rgba(0, 0, 0, 0.1), 0 4px 0 var(--b-shade);
  transition: transform 0.12s var(--ease), box-shadow 0.12s var(--ease), filter 0.2s;
}
.btn:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.22), inset 0 -2px 0 rgba(0, 0, 0, 0.1), 0 5px 0 var(--b-shade); }
.btn:active { transform: translateY(3px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.22), 0 1px 0 var(--b-shade); }
.btn-primary { --b: var(--primary); --b-shade: var(--primary-shade); color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.22); }
.btn-gold { --b: var(--gold); --b-shade: var(--gold-shade); color: #3a2700; }
.btn-ghost { border: 1px solid var(--line-2); }
.btn-sm { height: 40px; padding: 0 15px; font-size: 15px; border-radius: 12px; }
.btn-lg { height: 56px; padding: 0 26px; font-size: 19px; border-radius: 16px; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--card);
  box-shadow: 0 3px 0 var(--edge);
  transition: transform 0.12s var(--ease);
}
.icon-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--edge); }
.icon-btn .i-sun { display: none; }
html[data-theme='dark'] .icon-btn .i-sun { display: block; }
html[data-theme='dark'] .icon-btn .i-moon { display: none; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}
.eyebrow::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: currentColor; box-shadow: 0 2px 0 var(--primary-shade); }
html[data-theme='dark'] .hl-gold { background: none; color: var(--gold); }
.hl-gold {
  background: linear-gradient(180deg, transparent 58%, rgba(255, 201, 51, 0.55) 58% 92%, transparent 92%);
  padding: 0 0.06em;
}

/* ---------- intro ---------- */
.intro { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: grid; place-items: center; animation: intro-out 0.55s var(--ease) 1.65s forwards; }
.intro-studs { position: absolute; inset: 0; -webkit-mask-image: radial-gradient(ellipse at center, #000 10%, transparent 65%); mask-image: radial-gradient(ellipse at center, #000 10%, transparent 65%); }
.intro-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.intro-logo { animation: intro-logo 0.7s cubic-bezier(0.3, 1.5, 0.6, 1) 0.1s both; }
.intro-logo svg { animation: block-spin 1.4s var(--ease) 0.25s both; }
.intro-word { margin-top: 16px; font-family: var(--display); font-weight: 700; font-size: 46px; letter-spacing: -0.02em; color: var(--line-2); animation: intro-word 0.6s 0.5s forwards; }
.intro-word span { color: inherit; }
.intro-bar { margin-top: 18px; width: 190px; height: 12px; padding: 2px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--bg-2); overflow: hidden; }
.intro-bar span { display: block; height: 100%; border-radius: 4px; background: var(--primary); animation: load-bar 1.3s var(--ease) 0.2s both; }
html[data-intro='off'] .intro { display: none; }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }
@keyframes intro-logo { from { opacity: 0; transform: scale(0.6); } }
@keyframes intro-word { to { color: var(--fg); } }
@keyframes load-bar { from { width: 4%; } to { width: 100%; } }
@keyframes block-spin { from { transform: perspective(300px) rotateY(-180deg); } to { transform: perspective(300px) rotateY(0); } }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: background-color 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
.site-header.scrolled { background: var(--glass); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.header-row { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand-word { font-family: var(--display); font-weight: 700; font-size: 25px; letter-spacing: -0.02em; }
.brand-word span { color: var(--primary); }
.logo-mark { filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.12)); }
.brand:hover .logo-mark { animation: logo-hop 0.5s var(--ease); }
@keyframes logo-hop { 40% { transform: translateY(-4px) rotate(-6deg); } }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 14.5px; color: var(--body); transition: background-color 0.2s, color 0.2s; }
.nav a:hover { background: rgba(127, 140, 180, 0.14); color: var(--fg); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.live-pill { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--body); }
.live-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--primary-hi); box-shadow: 0 0 0 0 var(--ring); animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(43, 199, 96, 0.55); } 80%, 100% { box-shadow: 0 0 0 8px rgba(43, 199, 96, 0); } }
.menu-btn { display: none; }
.mobile-nav { display: none; }

/* ==========================================================================
   SCENE (hero world → cafe monitor)
   ========================================================================== */
.scene { position: relative; }
html[data-scene='anim'] .scene { height: 290vh; }
.scene-sticky { position: relative; }
html[data-scene='anim'] .scene-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.scene-stage { position: relative; height: 100%; }
.scene-card {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  will-change: clip-path;
  isolation: isolate;
}
html[data-scene='anim'] .scene-card { position: absolute; inset: 0; min-height: 0; }

.world-sky { position: absolute; inset: 0; background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 44%, var(--sky-low) 70%); transition: background 0.5s; }
.stars { position: absolute; inset: 0 0 35%; opacity: 0; transition: opacity 0.6s;
  background-image: radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 28% 32%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 44% 12%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 61% 26%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 78% 9%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 88% 34%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 6% 40%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 52% 44%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 35% 6%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 70% 48%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 94% 52%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 20% 52%, #fff 50%, transparent 51%);
  animation: twinkle 4s ease-in-out infinite alternate; }
@keyframes twinkle { to { filter: brightness(0.6); } }
html[data-theme='dark'] .stars { opacity: 0.85; }
.sun, .moon { position: absolute; right: 9%; top: 12%; width: 110px; height: 110px; border-radius: 28px; transition: opacity 0.6s, transform 0.6s var(--ease); }
.sun { background: radial-gradient(circle at 35% 30%, #fff8d0, #ffd54a 60%, #ffbf1f); box-shadow: 0 0 0 18px rgba(255, 224, 120, 0.25), 0 0 0 42px rgba(255, 224, 120, 0.12), 0 0 120px 30px rgba(255, 210, 90, 0.4); transform: rotate(12deg); animation: sun-spin 40s linear infinite; }
@keyframes sun-spin { to { transform: rotate(372deg); } }
.moon { opacity: 0; background: radial-gradient(circle at 70% 30%, transparent 30px, #e9eeff 31px); border-radius: 50%; box-shadow: 0 0 80px 10px rgba(200, 215, 255, 0.25); width: 90px; height: 90px; }
html[data-theme='dark'] .sun { opacity: 0; transform: translateY(40px); }
html[data-theme='dark'] .moon { opacity: 1; }

.skyline-wrap { position: absolute; left: 0; right: 0; bottom: 28%; height: 34%; opacity: 0.85; -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.18) 0, rgba(0,0,0,.18) 38%, #000 62%); mask-image: linear-gradient(90deg, rgba(0,0,0,.18) 0, rgba(0,0,0,.18) 38%, #000 62%); }
.skyline-wrap svg { width: 100%; height: 100%; }
.beacon { fill: #ff5a52; animation: beacon 1.6s steps(2) infinite; }
@keyframes beacon { 50% { fill: transparent; } }
html[data-theme='light'] .win-blink { animation: none; }
.win-blink { animation: win 5s steps(2) infinite; }
@keyframes win { 50% { fill: transparent; } }

.cloud { position: absolute; color: var(--cloud); opacity: var(--cloud-op); animation: cloud-drift 60s linear infinite alternate; will-change: transform; filter: drop-shadow(0 6px 0 rgba(120, 160, 220, 0.25)); }
html[data-theme='dark'] .cloud { filter: none; }
.cloud svg { width: 100%; height: auto; }
.cloud.c1 { width: 220px; left: 4%; top: 14%; }
.cloud.c2 { width: 150px; left: 38%; top: 8%; animation-duration: 80s; animation-direction: alternate-reverse; }
.cloud.c3 { width: 120px; left: 62%; top: 30%; animation-duration: 50s; }
.cloud.c4 { width: 180px; left: 82%; top: 42%; animation-duration: 70s; animation-direction: alternate-reverse; }
@keyframes cloud-drift { from { transform: translateX(-5vw); } to { transform: translateX(6vw); } }

.world-ground { position: absolute; inset: 72% 0 0; overflow: hidden; perspective: 560px; perspective-origin: 50% 0; }
.world-plate {
  position: absolute;
  top: 0;
  left: -60%;
  right: -60%;
  height: 340%;
  transform-origin: 50% 0;
  transform: rotateX(64deg);
  background-color: var(--plate);
  background-image: radial-gradient(circle at 50% 50%, var(--plate-stud) 0 9px, transparent 10px), linear-gradient(var(--plate-line) 2px, transparent 2px), linear-gradient(90deg, var(--plate-line) 2px, transparent 2px);
  background-size: 72px 72px;
  background-position: 36px 36px, 0 0, 0 0;
  animation: plate-roll 6s linear infinite;
}
@keyframes plate-roll { to { background-position: 36px 108px, 0 72px, 0 0; } }
.world-haze { position: absolute; left: 0; right: 0; top: 66%; height: 9%; background: linear-gradient(180deg, transparent, var(--sky-low) 55%, transparent); opacity: 0.75; pointer-events: none; }

/* props */
.hero-props { position: absolute; right: max(2vw, calc((100vw - 1320px) / 2)); bottom: 28%; width: min(46vw, 640px); aspect-ratio: 640 / 450; z-index: 2; }
.prop-cafe { position: absolute; inset: 0; }
.prop-cafe svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 24px 22px rgba(10, 20, 50, 0.25)); }
.prop-atm { position: absolute; width: 10.5%; left: -8%; bottom: -2%; }
.prop-lamp { position: absolute; width: 5%; left: -16%; bottom: -1%; }
.prop-plant { position: absolute; width: 10%; bottom: -5%; }
.prop-plant.p1 { left: 2%; }
.prop-plant.p2 { left: 49%; }
.prop-av { position: absolute; bottom: -16%; display: flex; flex-direction: column; align-items: center; }
.prop-av.av1 { left: 61%; width: 15%; }
.prop-av.av2 { left: 28%; width: 12%; bottom: -14%; }
.prop-av.av3 { left: 86%; width: 12%; bottom: -17%; }
.prop-av svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 10px 6px rgba(10, 20, 50, 0.22)); }
.av-bob { animation: av-bob 3.2s ease-in-out infinite; }
.av2 .av-bob { animation-delay: -1.1s; }
.av3 .av-bob { animation-delay: -2s; }
@keyframes av-bob { 50% { transform: translateY(-3px); } }
.av-wave { transform-box: fill-box; transform-origin: 20% 8%; animation: av-wave 1.4s ease-in-out infinite; }
@keyframes av-wave { 0%, 100% { transform: rotate(-150deg); } 50% { transform: rotate(-118deg); } }

.chat {
  position: absolute;
  bottom: 104%;
  white-space: nowrap;
  padding: 6px 11px;
  border-radius: 12px;
  background: #fff;
  color: #1b1e27;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.12);
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.chat::after { content: ''; position: absolute; left: 50%; bottom: -6px; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: #fff; }
.chat.swap { opacity: 0; transform: translateY(6px) scale(0.9); }
.trade-pop {
  position: absolute;
  left: 46%;
  top: 40%;
  padding: 5px 10px;
  border-radius: 10px;
  background: rgba(11, 18, 32, 0.88);
  color: #e8eef9;
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}
.trade-pop.go { animation: pop-up 2.4s var(--ease) forwards; }
.trade-pop b { color: var(--t-up); }
.trade-pop b.sell { color: var(--t-down); }
@keyframes pop-up { 0% { opacity: 0; transform: translateY(10px) scale(0.9); } 12% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-30px); } }

/* cafe micro-animations */
.neon { animation: neon 4s infinite; }
.neon-b { animation-delay: -1.3s; }
.neon-c { animation-delay: -2.6s; animation-duration: 5.5s; }
@keyframes neon { 0%, 18%, 22%, 62%, 64%, 100% { opacity: 1; } 20%, 63% { opacity: 0.35; } }
.cafe-chart { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw 3.2s ease-in-out infinite; }
@keyframes draw { 50%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -60; } }
.patron { animation: patron 3s ease-in-out infinite; }
@keyframes patron { 50% { transform: translateY(1.5px); } }
.spot { opacity: 0; transition: opacity 0.6s; }
html[data-theme='dark'] .spot { opacity: 1; }
.door-light { animation: door 6s ease-in-out infinite; }
@keyframes door { 50% { opacity: 0.6; } }
.atm-screen { animation: door 2.4s ease-in-out infinite; }
.lamp-bulb { fill: #fff2c2; }
html[data-theme='light'] .lamp-bulb { fill: #d9dfe9; }

/* coins */
.coins { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.scene-coin, .scene-bill { position: absolute; left: var(--x); top: var(--y); width: var(--s, 50px); }
.scene-coin > span, .scene-bill > span { display: block; animation: coin-drop 0.9s cubic-bezier(0.3, 1.45, 0.6, 1) both; animation-delay: calc(1.9s + var(--i, 0) * 0.11s); }
html[data-intro='off'] .scene-coin > span, html[data-intro='off'] .scene-bill > span { animation-delay: calc(0.2s + var(--i, 0) * 0.11s); }
.scene-coin > span > span, .scene-bill > span > span { display: block; animation: coin-float 6s ease-in-out infinite; }
.scene-coin svg { width: 100%; height: auto; filter: drop-shadow(0 10px 10px rgba(120, 80, 0, 0.25)); }
.scene-bill svg { filter: drop-shadow(0 6px 6px rgba(0, 60, 20, 0.2)); }
@keyframes coin-drop { from { opacity: 0; transform: translateY(-110px) scale(0.6) rotate(-30deg); } }
@keyframes coin-float { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-12px) rotate(5deg); } }

/* hero copy */
.hero-copy {
  position: absolute;
  z-index: 4;
  left: max(24px, calc((100vw - var(--wrap)) / 2));
  top: calc(var(--header-h) + clamp(28px, 8vh, 96px));
  width: min(560px, 44vw);
}
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 34px;
  padding: 0 14px 0 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.82);
  color: #1d2846;
  font-weight: 700;
  font-size: 13.5px;
  box-shadow: 0 3px 0 rgba(20, 50, 110, 0.15);
  transition: transform 0.2s var(--ease);
}
html[data-theme='dark'] .eyebrow-pill { background: rgba(20, 27, 49, 0.85); color: var(--fg); box-shadow: 0 3px 0 rgba(0, 0, 0, 0.4); }
.eyebrow-pill:hover { transform: translateY(-2px); }
.eyebrow-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary-hi); animation: ping 1.8s infinite; }
.eyebrow-pill .arrow { color: var(--primary); }
.hero-title { margin-top: 20px; font-size: clamp(48px, 6.6vw, 92px); font-weight: 700; line-height: 0.98; letter-spacing: -0.025em; color: #0f1530; }
html[data-theme='dark'] .hero-title { color: #fff; }
.hero-title .ln { display: block; overflow: hidden; padding: 0.04em 0 0.08em; margin-bottom: -0.08em; }
.hero-title .ln > span { display: inline-block; animation: rise 0.9s var(--ease) both; animation-delay: calc(1.75s + var(--l, 0) * 0.1s); }
html[data-intro='off'] .hero-title .ln > span { animation-delay: calc(0.05s + var(--l, 0) * 0.1s); }
.hero-title .ln:nth-child(2) > span { --l: 1; }
.hero-title .ln:nth-child(3) > span { --l: 2; }
.hero-title .hl {
  color: var(--primary);
  text-shadow: 0 4px 0 var(--primary-shade);
  -webkit-text-stroke: 0;
}
html[data-theme='dark'] .hero-title .hl { color: #3fdc6a; }
@keyframes rise { from { transform: translateY(105%); } }
.hero-sub { margin-top: 18px; max-width: 500px; font-size: clamp(16px, 1.25vw, 18.5px); font-weight: 500; color: #1d2846; line-height: 1.55; }
html[data-theme='dark'] .hero-sub { color: rgba(238, 242, 255, 0.86); }
.hero-ctas { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-facts li { padding: 6px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.6); font-size: 13.5px; color: #1d2846; backdrop-filter: blur(6px); }
html[data-theme='dark'] .hero-facts li { background: rgba(20, 27, 49, 0.6); color: var(--body); }
.hero-facts b { font-family: var(--display); font-weight: 700; }
.fade-in { animation: fade-up 0.8s var(--ease) both; }
.hero-sub, .hero-ctas, .hero-facts, .eyebrow-pill { animation: fade-up 0.8s var(--ease) both; animation-delay: 2s; }
.hero-ctas { animation-delay: 2.1s; }
.hero-facts { animation-delay: 2.2s; }
.eyebrow-pill { animation-delay: 1.7s; }
html[data-intro='off'] .hero-sub, html[data-intro='off'] .hero-ctas, html[data-intro='off'] .hero-facts, html[data-intro='off'] .eyebrow-pill { animation-delay: 0.3s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } }

.scroll-hint { position: absolute; z-index: 4; left: 50%; bottom: 22px; width: 28px; height: 44px; margin-left: -14px; border-radius: 14px; border: 2.5px solid rgba(255, 255, 255, 0.85); }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 5px; height: 9px; margin-left: -2.5px; border-radius: 3px; background: #fff; animation: wheel 1.6s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-3px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* after copy + monitor */
.scene-after { text-align: center; }
html[data-scene='anim'] .scene-after { position: absolute; left: 0; right: 0; top: calc(var(--header-h) + 2vh); z-index: 6; opacity: 0; pointer-events: none; }
.scene-after .eyebrow { justify-content: center; }
.after-title { margin-top: 8px; font-size: clamp(30px, 3.4vw, 48px); font-weight: 700; }
.after-title span { color: var(--primary); }
.scene-after p { margin: 8px auto 0; max-width: 680px; color: var(--muted); font-size: 16px; }

.monitor { position: relative; z-index: 5; }
html[data-scene='anim'] .monitor {
  --mon-top: calc(var(--header-h) + 2vh + clamp(150px, 19vh, 186px));
  position: absolute;
  left: 50%;
  top: var(--mon-top);
  width: var(--mon-w);
  transform: translateX(-50%);
  --mon-w: min(66vw, calc((100vh - var(--mon-top) - 110px) * 1.714), 1060px);
}
.monitor-screen { position: relative; width: 100%; aspect-ratio: 960 / 560; z-index: 2; }
html[data-scene='anim'] .monitor-screen { opacity: 0; border-radius: 8px; overflow: hidden; }
.bezel {
  position: absolute;
  inset: -16px -16px -44px;
  border-radius: 24px;
  background: linear-gradient(180deg, #1e2333, #141824);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 0 #0b0e16, 0 40px 80px -20px rgba(10, 20, 50, 0.45);
  z-index: 1;
}
.bezel-logo { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; font-family: var(--display); font-weight: 700; font-size: 14px; color: #8a93b3; }
.bezel-led { position: absolute; right: 22px; bottom: 19px; width: 6px; height: 6px; border-radius: 50%; background: #3fdc6a; box-shadow: 0 0 8px #3fdc6a; }
.stand { position: absolute; left: 50%; top: calc(100% + 44px); transform: translateX(-50%); width: 18%; z-index: 0; }
.stand span { display: block; margin: 0 auto; width: 34%; height: 54px; background: linear-gradient(90deg, #171b27, #2a3042 50%, #171b27); }
.stand i { display: block; height: 14px; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #2a3042, #171b27); box-shadow: 0 5px 0 #0b0e16; }
html[data-scene='anim'] .bezel, html[data-scene='anim'] .stand { opacity: 0; }

/* ==========================================================================
   TERMINAL
   ========================================================================== */
.term {
  width: 960px;
  height: 560px;
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  display: flex;
  flex-direction: column;
  background: var(--t-bg);
  color: var(--t-text);
  font-size: 13px;
  font-family: var(--sans);
  overflow: hidden;
}
.term-top { height: 46px; flex: none; display: flex; align-items: center; gap: 16px; padding: 0 14px; border-bottom: 1px solid var(--t-line); background: var(--t-panel2); }
.term-brand { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; color: var(--t-muted); }
.term-brand b { color: var(--t-text); }
.t-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--t-up); box-shadow: 0 0 8px var(--t-up); }
.t-sep { opacity: 0.5; }
.term-tabs { display: flex; gap: 6px; margin-left: 8px; overflow: hidden; }
.term-tabs button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px 0 5px; border-radius: 9px; border: 1px solid var(--t-line); background: transparent; color: var(--t-muted); font-family: var(--mono); font-size: 12px; font-weight: 700; transition: background-color 0.2s, color 0.2s; }
.term-tabs button svg { border-radius: 6px; }
.term-tabs button.on, .term-tabs button:hover { background: var(--t-panel); color: var(--t-text); border-color: #2c3b5e; }
.term-tabs .chg { font-size: 11px; }
.term-wallet { margin-left: auto; display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px; border-radius: 9px; border: 1px solid var(--t-line); font-family: var(--mono); font-weight: 700; font-size: 13px; }
.term-wallet small { color: var(--t-muted); font-size: 11px; }
.term-wallet.flash { animation: flash 0.5s; }
@keyframes flash { 30% { background: rgba(78, 216, 190, 0.18); } }
.term-body { flex: 1; display: flex; min-height: 0; }
.term-chart { flex: 1; display: flex; flex-direction: column; min-width: 0; border-right: 1px solid var(--t-line); }
.tc-head { display: flex; align-items: center; gap: 20px; padding: 12px 16px; border-bottom: 1px solid var(--t-line); }
.tc-icon svg { border-radius: 10px; }
.tc-name { display: flex; flex-direction: column; line-height: 1.2; margin-left: -10px; }
.tc-name b { font-family: var(--mono); font-size: 15px; }
.tc-name small { color: var(--t-muted); font-size: 11.5px; }
.tc-stat { display: flex; flex-direction: column; line-height: 1.25; }
.tc-stat small { color: var(--t-muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; }
.tc-stat b { font-family: var(--mono); font-size: 13.5px; }
.up { color: var(--t-up); }
.down { color: var(--t-down); }
.tc-tf { margin-left: auto; display: flex; gap: 3px; padding: 3px; border-radius: 9px; background: var(--t-panel); }
.tc-tf button { border: 0; background: transparent; color: var(--t-muted); font-family: var(--mono); font-size: 11.5px; padding: 3px 8px; border-radius: 6px; }
.tc-tf button.on { background: #22304f; color: var(--t-text); }
.tc-canvas { position: relative; flex: 1; min-height: 0; margin: 10px 64px 6px 12px; }
.tc-canvas svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tc-last { position: absolute; right: -60px; padding: 2px 6px; border-radius: 4px; font-family: var(--mono); font-size: 11px; font-weight: 700; background: var(--t-up); color: #04231c; transform: translateY(-50%); transition: top 0.25s var(--ease); }
.tc-last.dn { background: var(--t-down); color: #2b070c; }
.tc-float { position: absolute; left: 0; top: 0; pointer-events: none; }
.tc-float span { position: absolute; white-space: nowrap; font-family: var(--mono); font-weight: 700; font-size: 13px; animation: float-up 1.3s var(--ease) forwards; }
@keyframes float-up { from { opacity: 0; transform: translateY(6px); } 15% { opacity: 1; } to { opacity: 0; transform: translateY(-46px); } }
.tc-curve { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--t-line); font-size: 12px; color: var(--t-muted); }
.tc-curve .bar { flex: 1; height: 10px; border-radius: 6px; background: var(--t-panel); overflow: hidden; border: 1px solid var(--t-line); }
.tc-curve .bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, #2bc760, #4ed8be); transition: width 0.4s var(--ease); background-size: 200% 100%; }
.tc-curve b { font-family: var(--mono); color: var(--t-text); min-width: 42px; }
.grad-note { font-size: 11px; }
.grad-note.done { color: var(--gold); font-weight: 700; }

.term-side { width: 270px; flex: none; display: flex; flex-direction: column; gap: 10px; padding: 12px; background: var(--t-panel2); min-height: 0; }
.ts-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 11px; background: var(--t-panel); border: 1px solid var(--t-line); }
.ts-tabs button { height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--t-muted); font-weight: 700; font-size: 13px; }
.ts-tabs button.on.buy { background: var(--t-up); color: #04231c; }
.ts-tabs button.on.sell { background: var(--t-down); color: #2b070c; }
.ts-amount { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border-radius: 11px; background: var(--t-panel); border: 1px solid var(--t-line); }
.ts-amount span { color: var(--t-muted); font-size: 12px; }
.ts-amount input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--t-text); font-family: var(--mono); font-weight: 700; font-size: 15px; text-align: right; }
.ts-amount small { color: var(--t-muted); font-family: var(--mono); font-size: 11px; }
.ts-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.ts-chips button { height: 28px; border-radius: 8px; border: 1px solid var(--t-line); background: transparent; color: var(--t-muted); font-family: var(--mono); font-size: 12px; font-weight: 700; }
.ts-chips button.on { border-color: #33466f; color: var(--t-text); background: var(--t-panel); }
.ts-go { height: 44px; border: 0; border-radius: 12px; font-family: var(--display); font-weight: 700; font-size: 17px; transition: transform 0.1s, box-shadow 0.1s; }
.ts-go.buy { background: var(--t-up); color: #04231c; box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.3), 0 4px 0 #1f8f7a; }
.ts-go.sell { background: var(--t-down); color: #2b070c; box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.3), 0 4px 0 #a8404e; }
.ts-go:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3); }
.ts-go:disabled { opacity: 0.45; cursor: default; }
.ts-pos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 10px; border-radius: 11px; background: var(--t-panel); border: 1px solid var(--t-line); }
.ts-pos div { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.ts-pos small { color: var(--t-muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; }
.ts-pos b { font-family: var(--mono); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; }
.ts-feed-h { font-size: 11px; color: var(--t-muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.ts-feed { list-style: none; margin: 0; padding: 0; flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 4px; }
.ts-feed li { display: grid; grid-template-columns: 18px 1fr auto auto; align-items: center; gap: 7px; padding: 4px 6px; border-radius: 7px; font-family: var(--mono); font-size: 11.5px; background: rgba(255, 255, 255, 0.02); animation: row-drop 0.4s var(--ease); }
.ts-feed li.you { background: rgba(255, 201, 51, 0.1); }
.ts-feed li .n { color: var(--t-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ts-feed li .tm { color: var(--t-muted); font-size: 10px; }
@keyframes row-drop { from { opacity: 0; transform: translateY(-10px) scale(0.98); } }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.ticker { position: relative; z-index: 6; overflow: hidden; background: #0b1220; border-block: 1px solid #1e2a44; padding: 12px 0; }
.ticker-track { display: flex; gap: 34px; width: max-content; animation: marquee 50s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.tk { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 13.5px; color: #e8eef9; white-space: nowrap; }
.tk svg { border-radius: 7px; }
.tk b { font-weight: 700; }
.tk .up, .tk .down { font-weight: 700; }
@keyframes marquee { to { transform: translateX(-50%); } }

.section { position: relative; padding: clamp(80px, 11vw, 140px) 0; }
.section-tint { background: var(--bg-2); }
.section-tint::before { content: ''; position: absolute; inset: 0; opacity: 0.45; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, #000, transparent 30%, transparent 70%, #000); mask-image: linear-gradient(180deg, #000, transparent 30%, transparent 70%, #000); }
.section-tint::before { background-image: radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.9) 0 7px, transparent 7.5px), radial-gradient(circle at 50% 54%, rgba(22, 27, 46, 0.07) 0 7px, transparent 7.5px); background-size: 28px 28px; }
html[data-theme='dark'] .section-tint::before { background-image: radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.05) 0 7px, transparent 7.5px), radial-gradient(circle at 50% 54%, rgba(0, 0, 0, 0.25) 0 7px, transparent 7.5px); }
.section > .wrap { position: relative; }
.sec-head { max-width: 680px; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }
.sec-head.split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.sec-head.split .sec-sub { max-width: 420px; margin: 0; }
.sec-title { margin-top: 12px; font-size: clamp(36px, 4.6vw, 60px); font-weight: 700; letter-spacing: -0.02em; }
.sec-sub { margin-top: 16px; font-size: 18px; color: var(--muted); max-width: 580px; }
.sec-head.center .sec-sub { margin-inline: auto; }
.fineprint { margin-top: 18px; color: var(--faint); font-size: 13px; }
.center { text-align: center; }

[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal].shown { opacity: 1; transform: none; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { padding: 22px 22px 26px; display: flex; flex-direction: column; transition: transform 0.3s var(--ease); }
.step:hover { transform: translateY(-6px); }
.step-art { height: 150px; margin: -6px -6px 14px; border-radius: 12px; background: linear-gradient(180deg, var(--sky-mid), var(--sky-low)); position: relative; overflow: hidden; display: grid; place-items: end center; }
html[data-theme='dark'] .step-art { background: linear-gradient(180deg, #0e2155, #24427f); }
.step-art::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 26px; background-color: var(--plate); background-image: linear-gradient(90deg, var(--plate-line) 2px, transparent 2px); background-size: 26px 100%; }
.step-art > * { position: relative; z-index: 1; }
.step-n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--primary); color: #fff; font-family: var(--display); font-weight: 700; box-shadow: 0 3px 0 var(--primary-shade); }
.step h3 { margin-top: 14px; font-size: 22px; font-weight: 700; }
.step p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.art-row { display: flex; align-items: flex-end; justify-content: center; gap: 4px; margin-bottom: 14px; }
.art-pop { animation: art-pop 2.8s var(--ease) infinite; }
@keyframes art-pop { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-14px) rotate(8deg); } }
.art-bars { display: flex; align-items: flex-end; gap: 6px; height: 90px; margin-bottom: 16px; }
.art-bars i { width: 14px; border-radius: 3px; background: var(--t-up); box-shadow: 0 3px 0 #1f8f7a; animation: bar-grow 2.4s var(--ease) infinite alternate; transform-origin: bottom; }
.art-bars i.dn { background: var(--t-down); box-shadow: 0 3px 0 #a8404e; }
@keyframes bar-grow { from { transform: scaleY(0.55); } }

/* pulse */
.pulse { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 16px; border-radius: 24px; background: var(--t-bg); border: 1px solid var(--t-line); box-shadow: 0 6px 0 #05080f, 0 30px 60px -20px rgba(10, 20, 50, 0.4); color: var(--t-text); }
.pulse-col { background: var(--t-panel2); border: 1px solid var(--t-line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.pc-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--t-line); }
.pc-head i { width: 4px; height: 30px; border-radius: 2px; }
.bar-blue { background: var(--blue); }
.bar-gold { background: var(--gold); }
.bar-green { background: var(--t-up); }
.pc-head div { display: flex; flex-direction: column; line-height: 1.25; }
.pc-head b { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.06em; font-size: 13px; }
.pc-head small { color: var(--t-muted); font-size: 12px; }
.pc-head .count { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--t-muted); padding: 2px 8px; border-radius: 6px; background: var(--t-panel); }
.pulse-col ul { list-style: none; margin: 0; padding: 0; height: 430px; overflow: hidden; }
.pr { display: grid; grid-template-columns: 44px 1fr auto; gap: 4px 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--t-line); animation: row-drop 0.5s var(--ease); transition: background-color 0.3s; }
.pr:hover { background: rgba(255, 255, 255, 0.025); }
.pr .ic { grid-row: span 2; }
.pr .ic svg { border-radius: 11px; }
.pr .nm { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.pr .nm b { font-family: var(--mono); font-size: 14px; }
.pr .nm small { color: var(--t-muted); font-size: 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pr .mc { text-align: right; font-family: var(--mono); font-weight: 700; font-size: 14px; color: var(--t-up); }
.pr .meta { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; color: var(--t-muted); }
.pr .curve { flex: 1; height: 5px; border-radius: 3px; background: var(--t-panel); overflow: hidden; min-width: 40px; }
.pr .curve i { display: block; height: 100%; background: var(--blue); border-radius: 3px; transition: width 0.6s var(--ease); }
.pr.mid .curve i { background: var(--gold); }
.pr.grad .curve i { background: var(--t-up); }
.pr .age { text-align: right; font-family: var(--mono); font-size: 11px; color: var(--t-muted); }
.pr .grad-badge { font-size: 10px; font-weight: 800; color: #04231c; background: var(--t-up); border-radius: 4px; padding: 1px 5px; }
.pr.bump { background: rgba(78, 216, 190, 0.07); }

/* bento */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(210px, auto); gap: 22px; }
.tile { margin: 0; overflow: hidden; }
.tile-shot { position: relative; padding: 0; }
.tile-shot.big { grid-column: span 2; grid-row: span 2; }
.tile-shot.wide { grid-column: span 2; }
.tile-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile-shot:hover img { transform: scale(1.05); }
.tile-shot figcaption { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: rgba(11, 18, 32, 0.72); backdrop-filter: blur(10px); color: #fff; font-weight: 600; font-size: 14px; }
.tag { flex: none; font-family: var(--mono); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; padding: 3px 7px; border-radius: 6px; background: var(--gold); color: #3a2700; }
.tile-feat.span2 { grid-column: span 2; justify-content: center; }
.tile-feat { padding: 22px; display: flex; flex-direction: column; overflow: visible; }
.tf-art { height: 92px; display: flex; align-items: flex-end; gap: 6px; margin-bottom: 14px; }
.tile-feat h3 { font-size: 21px; }
.tile-feat p { margin-top: 6px; color: var(--muted); font-size: 15px; }

/* leaderboard */
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); justify-content: center; align-items: end; gap: 18px; margin-bottom: 34px; }
.pod { display: flex; flex-direction: column; align-items: center; text-align: center; }
.pod .av svg { width: 92px; height: auto; overflow: visible; }
.pod.first .av svg { width: 112px; }
.pod .av { position: relative; z-index: 2; }
.pod .ped { width: 160px; margin-top: -63px; }
.pod .ped svg { width: 100%; height: auto; }
.pod .who { margin-top: 10px; font-family: var(--display); font-weight: 700; font-size: 18px; }
.pod .bag { font-family: var(--mono); font-weight: 700; color: var(--primary); }
.pod .rank { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; font-family: var(--display); font-weight: 700; color: #3a2700; margin-bottom: 8px; }
.lb { max-width: 760px; margin: 0 auto; padding: 8px; }
.lb-row { display: grid; grid-template-columns: 34px 40px 1fr auto auto; gap: 14px; align-items: center; padding: 10px 14px; border-radius: 12px; }
.lb-row + .lb-row { border-top: 1px solid var(--line); border-radius: 0; }
.lb-row .r { font-family: var(--display); font-weight: 700; color: var(--muted); font-size: 17px; }
.lb-row .nm { font-weight: 700; }
.lb-row .nm small { display: block; font-weight: 500; color: var(--muted); font-size: 12.5px; }
.lb-row .best { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.lb-row .pn { font-family: var(--mono); font-weight: 700; color: var(--primary); text-align: right; min-width: 92px; }
.lb-row svg { border-radius: 10px; }

/* faq */
.faq-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 60px; align-items: start; }
.faq { display: flex; flex-direction: column; gap: 14px; }
.faq details { padding: 0; border-radius: 16px; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font-family: var(--display); font-weight: 600; font-size: 19px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--bg-2); color: var(--primary); font-size: 22px; line-height: 1; transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 22px; color: var(--muted); }

/* cta */
.cta-sec { padding: 20px 0 clamp(80px, 10vw, 120px); }
.cta { position: relative; overflow: hidden; border-radius: 32px; padding: clamp(40px, 6vw, 72px); min-height: 380px; display: flex; align-items: center; background: linear-gradient(135deg, #17a047, #0d7a34); box-shadow: 0 8px 0 #085a26, 0 40px 80px -30px rgba(13, 122, 52, 0.6); color: #fff; }
.cta-studs { position: absolute; inset: 0; opacity: 0.25; background-image: radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.5) 0 9px, transparent 9.5px), radial-gradient(circle at 50% 56%, rgba(0, 0, 0, 0.2) 0 9px, transparent 9.5px); background-size: 34px 34px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%); }
.cta-copy { position: relative; z-index: 2; max-width: 520px; }
.cta h2 { font-size: clamp(40px, 5vw, 64px); text-shadow: 0 4px 0 rgba(0, 0, 0, 0.18); }
.cta p { margin: 14px 0 28px; font-size: 18px; color: rgba(255, 255, 255, 0.88); }
.cta-crowd { position: absolute; right: 4%; bottom: 0; display: flex; align-items: flex-end; gap: 0; z-index: 1; }
.cta-crowd svg { overflow: visible; filter: drop-shadow(0 10px 8px rgba(0, 0, 0, 0.25)); }
.cta-crowd .ped-row { display: flex; align-items: flex-end; }
.cta-coin { position: absolute; z-index: 1; animation: coin-float 5s ease-in-out infinite; }
.cta-coin svg { filter: drop-shadow(0 8px 8px rgba(0, 0, 0, 0.25)); }
.cta-coin.k1 { right: 40%; top: 14%; }
.cta-coin.k2 { right: 6%; top: 10%; animation-delay: -1.6s; }
.cta-coin.k3 { right: 30%; bottom: 10%; animation-delay: -3s; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 44px 0 30px; }
.foot-row { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot-brand p { margin-top: 8px; color: var(--muted); font-size: 14.5px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; }
.foot-links a { color: var(--body); font-weight: 600; font-size: 14.5px; }
.foot-links a:hover { color: var(--primary); }
.foot-legal { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; color: var(--faint); font-size: 13px; }
.foot-legal p:first-child { max-width: 760px; }

/* ==========================================================================
   STATIC SCENE (mobile / reduced motion)
   ========================================================================== */
html[data-scene='static'] .scene-after { padding: 80px 16px 30px; }
html[data-scene='static'] .monitor { width: min(1060px, 100% - 32px); margin: 0 auto 90px; }
html[data-scene='static'] .bezel { inset: -12px -12px -36px; border-radius: 20px; }
html[data-scene='static'] .monitor-screen { border-radius: 8px; overflow: hidden; }
html[data-scene='static'] .stand { top: calc(100% + 36px); }
html[data-scene='static'] .monitor { margin-bottom: 130px; }

@media (max-width: 1100px) {
  .nav a { padding: 8px 8px; font-size: 14px; }
  .live-pill { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 34px 22px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile-shot.big { grid-column: span 2; grid-row: span 1; }
}

@media (max-width: 899px) {
  :root { --header-h: 62px; }
  .nav { display: none; }
  .menu-btn { display: grid; }
  .header-actions .btn-sm { display: none; }
  .mobile-nav { position: absolute; top: 100%; left: 12px; right: 12px; display: grid; gap: 2px; padding: 8px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 4px 0 var(--edge), 0 20px 40px rgba(0, 0, 0, 0.15); opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity 0.2s, transform 0.2s var(--ease); }
  .mobile-nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .mobile-nav a { padding: 12px 14px; border-radius: 10px; font-weight: 600; }
  .mobile-nav a:hover { background: var(--bg-2); }
  .site-header { background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

  .scene-card { min-height: 0; padding-bottom: 0; display: flex; flex-direction: column; }
  .hero-copy { position: relative; left: auto; top: auto; width: auto; padding: calc(var(--header-h) + 34px) 16px 0; }
  .hero-title { font-size: clamp(44px, 13vw, 72px); }
  .hero-props { position: relative; right: auto; bottom: auto; width: min(78vw, 540px); margin: 70px auto 0; left: 4vw; order: 2; }
  .world-ground { inset: auto 0 0; top: auto; height: 130px; }
  .scene-card { padding-bottom: 100px; }
  .world-ground + .world-haze { display: none; }
  .chat { font-size: 11px; padding: 4px 8px; }
  .av2 .chat { display: none; }
  .scene-coin:nth-child(-n + 3) { display: none; }
  .skyline-wrap { bottom: 24%; height: 26%; }
  .sun, .moon { width: 54px; height: 54px; top: 76px; right: 5%; border-radius: 16px; }
  .sun { box-shadow: 0 0 0 10px rgba(255, 224, 120, 0.25), 0 0 60px 16px rgba(255, 210, 90, 0.35); }
  .moon { border-radius: 50%; }
  .scroll-hint { display: none; }
  .scene-coin { --s: 38px !important; }
  .scene-bill { display: none; }
  .world-haze { display: none; }

  .term { position: relative; width: 100%; height: auto; transform: none !important; }
  .term-top { flex-wrap: wrap; height: auto; padding: 10px; gap: 8px; }
  .term-tabs { order: 3; width: 100%; margin: 0; overflow-x: auto; }
  .term-body { flex-direction: column; }
  .term-chart { border-right: 0; border-bottom: 1px solid var(--t-line); }
  .tc-head { flex-wrap: wrap; gap: 10px 16px; }
  .tc-name { margin-left: 0; }
  .tc-tf { display: none; }
  .tc-canvas { height: 220px; flex: none; margin-right: 58px; }
  .term-side { width: auto; }
  .ts-feed { max-height: 150px; }
  html[data-scene='static'] .monitor-screen { aspect-ratio: auto; }
  html[data-scene='static'] .bezel, html[data-scene='static'] .stand { display: none; }
  html[data-scene='static'] .monitor { width: calc(100% - 24px); margin-bottom: 70px; }
  html[data-scene='static'] .monitor-screen { border: 1px solid var(--t-line); border-radius: 18px; box-shadow: 0 6px 0 #05080f; }

  .sec-head.split { display: block; }
  .sec-head.split .sec-sub { margin-top: 16px; }
  .pulse { grid-template-columns: 1fr; padding: 10px; }
  .pulse-col ul { height: 290px; }
  .faq-wrap { grid-template-columns: 1fr; gap: 0; }
  .cta { flex-direction: column; align-items: flex-start; padding-bottom: 220px; }
  .cta-crowd { right: 50%; transform: translateX(50%) scale(0.8); transform-origin: bottom center; }
  .cta-coin.k1 { right: 8%; top: auto; bottom: 40%; }
  .foot-legal { flex-direction: column; }
}

@media (max-width: 600px) {
  .steps, .bento { grid-template-columns: 1fr; }
  .tile-shot.big, .tile-shot.wide, .tile-feat.span2 { grid-column: auto; }
  .podium { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .pod .av svg { width: 64px; }
  .pod.first .av svg { width: 78px; }
  .pod .who { font-size: 14px; }
  .pod .ped { width: 96px; margin-top: -40px; }
  .pod .bag { font-size: 12px; }
  .lb-row { grid-template-columns: 26px 36px 1fr auto; gap: 10px; }
  .lb-row .best { display: none; }
  .hero-facts li { font-size: 12.5px; }
  .btn-lg { height: 52px; font-size: 17px; padding: 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .intro { display: none; }
  [data-reveal] { opacity: 1; transform: none; }
}

.hero-copy::before { content: ''; position: absolute; inset: -60px -80px -40px -120px; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 40% 50%, var(--hero-scrim) 0%, transparent 68%); }
:root { --hero-scrim: rgba(225, 240, 255, 0.55); }
html[data-theme='dark'] { --hero-scrim: rgba(4, 10, 29, 0.6); }


/* 2026-10-21: Trench County content (same materials as everything above) */
.video-panel { padding: 10px; max-width: 1000px; margin: 0 auto; }
.section-intro .sec-head { margin-bottom: 36px; }

/* the town: one big in-game shot with a list of places beside it (cycles by itself until you pick one) */
.town-switch { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; padding: 14px; }
.town-view { position: relative; margin: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 8.6; background: #0b1220; }
.town-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.45s var(--ease), transform 6s linear; }
.town-view img.fade { opacity: 0; }
.town-view figcaption { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: rgba(11, 18, 32, 0.74); backdrop-filter: blur(10px); color: #fff; font-size: 14px; }
.town-view figcaption b { font-family: var(--display); font-size: 16px; white-space: nowrap; }
.town-view figcaption span:last-child { color: rgba(255, 255, 255, 0.78); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.town-tabs { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.town-tab { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; align-items: center; padding: 6px 10px 6px 6px; border-radius: 12px; border: 2px solid var(--line); background: var(--card); color: var(--fg); text-align: left; font: inherit; cursor: pointer; box-shadow: 0 3px 0 var(--edge); overflow: hidden; transition: transform 0.15s var(--ease), border-color 0.2s, box-shadow 0.2s; }
.town-tab:hover { transform: translateY(-1px); }
.town-tab:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--edge); }
.town-tab img { width: 72px; height: 44px; object-fit: cover; border-radius: 8px; }
.town-tab b { display: block; font-family: var(--display); font-size: 15px; line-height: 1.2; }
.town-tab small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.town-tab.on { border-color: var(--primary); box-shadow: 0 3px 0 var(--primary-shade); }
.town-prog { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--primary); }
.town-tab.on .town-prog { animation: townProg var(--town-ms, 5000ms) linear forwards; }
.town-switch.paused .town-tab.on .town-prog, .town-switch.picked .town-prog { animation: none; width: 0; }
@keyframes townProg { to { width: 100%; } }
.town-feats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.town-feats .tile-feat { padding: 16px; }
.town-feats .tf-art { height: 54px; margin-bottom: 8px; }
.town-feats .tf-art svg { height: 54px; width: auto; }
.town-feats .tile-feat h3 { font-size: 17px; }
.town-feats .tile-feat p { font-size: 13.5px; margin-top: 4px; }
@media (max-width: 1060px) {
  .town-switch { grid-template-columns: 1fr; }
  .town-tabs { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .town-tab { flex: 0 0 230px; scroll-snap-align: start; }
  .town-feats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .town-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .town-view figcaption span:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) { .town-tab.on .town-prog { animation: none; } }
.video-panel video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 12px; background: #000; }
