/* DiecastR landing page. Tokens follow lib/ui/theme.dart. */

@font-face { font-family: Sora; src: url(fonts/Sora-Regular.ttf) format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Sora; src: url(fonts/Sora-SemiBold.ttf) format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: Sora; src: url(fonts/Sora-Bold.ttf) format('truetype'); font-weight: 700; font-display: swap; }

:root {
  --bg: #0E0F14;
  --bg-deep: #08090C;
  --surface: #171922;
  --surface-hi: #20232F;
  --outline: #2B2F3D;
  --text: #F5F4F1;
  --text2: #B5B8C4;
  --muted: #8D91A1;
  --accent: #FF6B1A;
  --accent-soft: #FF8A47;
  --on-accent: #1A0B02;
  --ok: #46D6A0;
  --fresh: #7DB2FF;
  --warn: #FFC247;
  --bad: #FF8F8F;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 Sora, system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; line-height: 1.05; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--on-accent); }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; justify-content: center; }
.flame { color: var(--accent); }

i[data-i] { display: inline-flex; width: 1em; height: 1em; flex: none; }
i[data-i] svg { width: 100%; height: 100%; }

/* ── logo ── */
.logo { display: inline-flex; align-items: baseline; font-weight: 700; font-size: 24px; letter-spacing: -0.04em; color: #fff; line-height: 1; }
.logo i { width: .27em; height: .27em; margin-left: .08em; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: pulse 2.4s ease-in-out infinite; }
.logo.sm { font-size: 17px; }
@keyframes pulse { 50% { box-shadow: 0 0 2px var(--accent); opacity: .75; } }

/* ── buttons ── */
.btn {
  --bx: 0px; --by: 0px;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  cursor: pointer; white-space: nowrap; position: relative; isolation: isolate;
  transform: translate(var(--bx), var(--by));
  transition: transform .35s var(--ease-out), background-color .25s, box-shadow .3s, border-color .25s, color .25s;
}
.btn i[data-i] { font-size: 1.15em; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 58px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 30px -10px rgba(255, 107, 26, .7), inset 0 1px 0 rgba(255,255,255,.3); overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease-out);
}
.btn-primary:hover { background: var(--accent-soft); box-shadow: 0 16px 40px -10px rgba(255, 107, 26, .9), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost { background: rgba(255,255,255,.04); color: var(--text); border: 1px solid var(--outline); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: #4a4f63; background: rgba(255,255,255,.08); }
.btn:active { transform: translate(var(--bx), var(--by)) scale(.97); }

/* ── top progress + nav ── */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--warn)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); box-shadow: 0 0 10px var(--accent); }

.nav {
  position: fixed; top: 12px; left: 50%; z-index: 50;
  width: min(calc(100% - 24px), 1180px); height: 60px; padding: 0 10px 0 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-radius: 999px; border: 1px solid transparent;
  transform: translate(-50%, 0); transition: transform .5s var(--ease-out), background-color .3s, border-color .3s, backdrop-filter .3s;
}
.nav.scrolled { background: rgba(14, 15, 20, .72); border-color: rgba(255,255,255,.07); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); }
.nav.hidden { transform: translate(-50%, -110px); }
.nav-links { display: flex; gap: 6px; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--text2); transition: color .2s, background-color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255,255,255,.06); }
.nav-cta { display: flex; gap: 8px; }

/* ── generic pieces ── */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.lead { color: var(--text2); font-size: clamp(16px, 1.4vw, 19px); max-width: 620px; }
section h2 { font-size: clamp(38px, 5.4vw, 72px); }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--outline); font-size: 13px; color: var(--text2); }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(70, 214, 160, .6); animation: ping 1.8s infinite; flex: none; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(70, 214, 160, .6); } 80%, 100% { box-shadow: 0 0 0 8px rgba(70, 214, 160, 0); } }

/* ── reveal on scroll ── */
.js [data-reveal] { opacity: 0; transform: translateY(40px); filter: blur(8px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out), filter 1s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal="scale"] { transform: translateY(60px) scale(.92); }
.js [data-reveal].in { opacity: 1; transform: none; filter: none; }

/* intro (hero, on load) */
.js .intro, .js .hero-title .w { opacity: 0; transform: translateY(30px); filter: blur(6px); }
.loaded .intro, .loaded .hero-title .w { animation: rise 1.1s var(--ease-out) var(--d, 0s) forwards; }
@keyframes rise { to { opacity: 1; transform: none; filter: none; } }

/* ══════════ HERO ══════════ */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 80px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.grid-bg {
  position: absolute; inset: -2px;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at var(--mx, 60%) var(--my, 40%), #000 10%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at var(--mx, 60%) var(--my, 40%), #000 10%, transparent 75%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.b1 { width: 620px; height: 620px; right: -120px; top: 4%; background: radial-gradient(circle, rgba(255, 107, 26, .55), transparent 65%); animation: drift 14s ease-in-out infinite alternate; }
.b2 { width: 520px; height: 520px; left: -200px; bottom: -160px; background: radial-gradient(circle, rgba(125, 178, 255, .35), transparent 65%); animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(-60px, 50px) scale(1.12); } }
.speedlines i { position: absolute; left: -30%; height: 1px; width: 30%; background: linear-gradient(90deg, transparent, rgba(255, 138, 71, .7), transparent); animation: streak 3.2s linear infinite; opacity: 0; }
.speedlines i:nth-child(1) { top: 18%; animation-delay: .2s; }
.speedlines i:nth-child(2) { top: 31%; animation-delay: 1.4s; width: 20%; }
.speedlines i:nth-child(3) { top: 47%; animation-delay: 2.3s; }
.speedlines i:nth-child(4) { top: 62%; animation-delay: .8s; width: 40%; }
.speedlines i:nth-child(5) { top: 74%; animation-delay: 2.9s; }
.speedlines i:nth-child(6) { top: 86%; animation-delay: 1.9s; width: 18%; }
.speedlines i:nth-child(7) { top: 9%;  animation-delay: 2.6s; width: 24%; }
.speedlines i:nth-child(8) { top: 55%; animation-delay: .4s; width: 16%; }
@keyframes streak { 0% { transform: translateX(0); opacity: 0; } 10% { opacity: 1; } 60% { opacity: .8; } 100% { transform: translateX(480%); opacity: 0; } }

.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-title { font-size: clamp(50px, 6.8vw, 104px); line-height: .95; letter-spacing: -0.055em; margin: 26px 0 26px; }
.hero-title .line { display: block; }
.hero-title .w { display: inline-block; }
.flame-word { position: relative; color: var(--accent); text-shadow: 0 0 60px rgba(255, 107, 26, .45); }
.swoosh { position: absolute; left: 0; right: 0; bottom: -.08em; width: 100%; height: .22em; overflow: visible; }
.swoosh path { fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.loaded .swoosh path { animation: draw 1s var(--ease-out) 1.1s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-sub { font-size: clamp(16px, 1.45vw, 19px); color: var(--text2); max-width: 540px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { display: flex; align-items: center; gap: 8px; margin-top: 22px; color: var(--muted); font-size: 14px; }
.hero-note i { color: var(--ok); }

.hero-visual { position: relative; display: flex; justify-content: center; perspective: 1400px; min-height: 640px; }
.hero-car { position: absolute; width: 120%; left: -12%; top: 50%; z-index: 0; opacity: .9; color: var(--accent); }
.tilt-in { position: relative; z-index: 1; perspective: 1400px; }
.js .tilt-in { opacity: 0; }
.loaded .tilt-in { animation: phoneIn 1.4s var(--ease-out) .3s both; }
@keyframes phoneIn { from { opacity: 0; transform: translateY(100px) scale(.88); } to { opacity: 1; transform: none; } }
.tilt { position: relative; transform-style: preserve-3d; transform: rotateX(var(--rx, 6deg)) rotateY(var(--ry, -14deg)); transition: transform .6s var(--ease-out); }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px;
  border-radius: 18px; background: rgba(23, 25, 34, .82); border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px -15px rgba(0,0,0,.7); font-size: 14px; transform: translateZ(80px);
  animation: bob 6s ease-in-out infinite;
}
.float-card > i { width: 38px; height: 38px; padding: 9px; border-radius: 12px; }
.float-card small { display: block; color: var(--muted); font-size: 12px; line-height: 1.2; }
.float-card b { font-weight: 600; white-space: nowrap; }
.fc1 { left: -96px; top: 120px; }
.fc1 > i { background: rgba(70, 214, 160, .14); color: var(--ok); }
.fc2 { right: -70px; bottom: 120px; animation-delay: -3s; }
.fc2 > i { background: rgba(255, 194, 71, .14); color: var(--warn); }
@keyframes bob { 50% { transform: translateZ(80px) translateY(-14px); } }

.scroll-hint { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid var(--outline); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--accent); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ══════════ PHONE MOCKUP ══════════ */
.phone {
  position: relative; width: 300px; height: 640px; border-radius: 48px; padding: 10px; flex: none;
  background: linear-gradient(150deg, #3a3e4c 0%, #15171e 30%, #0a0b0f 70%, #2a2d38 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.12), 0 60px 120px -30px rgba(0,0,0,.85), 0 0 0 1px #000, 0 0 100px -20px rgba(255, 107, 26, .3);
  font-size: 12px; line-height: 1.35; text-align: left;
}
.phone .screen { position: absolute; inset: 10px; border-radius: 38px; overflow: hidden; background: var(--bg); isolation: isolate; }
.island { position: absolute; top: 20px; left: 50%; z-index: 20; width: 86px; height: 25px; margin-left: -43px; border-radius: 20px; background: #000; }
.scr { position: absolute; inset: 0; padding: 14px 13px 0; display: flex; flex-direction: column; gap: 10px; }
.sbar { display: flex; justify-content: space-between; align-items: center; height: 26px; padding: 0 12px 0 16px; font-size: 13px; }
.sbar span { display: flex; gap: 5px; font-size: 14px; }
.sbar.light { color: #fff; }
.app-top { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 0; }
.app-icons { display: flex; gap: 14px; font-size: 18px; color: var(--text); }
.badge-wrap { position: relative; display: inline-flex; }
.badge-wrap em { position: absolute; top: -6px; right: -8px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px; background: var(--accent); color: var(--on-accent); font: 700 9px/15px Sora, sans-serif; text-align: center; font-style: normal; }
.badge-wrap em.y { background: var(--warn); color: #1A1200; }
.badge-wrap.dot::after { content: ""; position: absolute; top: -1px; right: -1px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile { padding: 10px 11px; border-radius: 16px; background: var(--surface); border: 1px solid var(--outline); }
.tile small { display: block; font-size: 8.5px; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.tile b { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 12.5px; font-weight: 600; }
.tile.hot { background: linear-gradient(135deg, rgba(255,107,26,.22), rgba(255,107,26,.08)); border-color: rgba(255,107,26,.45); }
.tile.hot small, .tile.hot i { color: var(--accent-soft); }
.chips { display: flex; gap: 6px; overflow: hidden; }
.chips span { flex: none; padding: 6px 11px; border-radius: 999px; background: var(--surface); font-size: 11px; color: var(--text2); }
.chips span.on { background: var(--text); color: var(--bg); font-weight: 600; }
.list-label { font-size: 9.5px; letter-spacing: .12em; color: var(--muted); font-weight: 600; padding: 0 2px; }
.rows { display: flex; flex-direction: column; gap: 6px; overflow: hidden; flex: 1; min-height: 0; }
.row { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px; padding: 7px 10px 7px 7px; border-radius: 16px; background: var(--surface); flex: none; }
.row .th { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--c) 45%, transparent), color-mix(in srgb, var(--c) 10%, #111) 80%); color: var(--c); padding: 4px; }
.row > div { min-width: 0; }
.row b { display: block; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row small { font-size: 9.5px; color: var(--muted); white-space: nowrap; }
.row small em { font-style: normal; font-weight: 700; letter-spacing: .02em; }
.row .pr { font-weight: 700; font-size: 14px; }
.st-new { color: var(--fresh); } .st-restock { color: var(--accent); } .st-in { color: var(--ok); }
.row.enter { animation: rowIn .8s var(--ease-out) both; }
@keyframes rowIn {
  0% { margin-top: -64px; opacity: 0; transform: scale(.94); box-shadow: 0 0 0 1px var(--accent) inset; }
  50% { opacity: 1; box-shadow: 0 0 0 1px var(--accent) inset, 0 0 24px -4px rgba(255,107,26,.6); }
  100% { margin-top: 0; transform: none; box-shadow: 0 0 0 1px transparent inset; }
}
.tabbar { margin: auto -13px 0; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; padding: 8px 14px 18px; background: linear-gradient(transparent, var(--bg) 30%); }
.tabbar span { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 9px; color: var(--muted); }
.tabbar span i { font-size: 17px; }
.tabbar span.on { color: var(--text); font-weight: 600; }
.tabbar .fab { width: 44px; height: 44px; margin: -18px auto 0; border-radius: 50%; background: var(--accent); color: var(--on-accent); justify-content: center; box-shadow: 0 0 0 5px var(--bg), 0 8px 20px -4px rgba(255,107,26,.7); }
.tabbar .fab i { font-size: 20px; }

/* hero toast */
.toast {
  position: absolute; left: 18px; right: 18px; top: 50px; z-index: 30; display: flex; gap: 10px; align-items: center;
  padding: 10px 12px; border-radius: 20px; background: rgba(40, 43, 55, .88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px -10px rgba(0,0,0,.8); border: 1px solid rgba(255,255,255,.08);
  transform: translateY(-140%) scale(.9); opacity: 0; transition: transform .7s var(--ease-out), opacity .4s;
}
.toast.show { transform: none; opacity: 1; }
.toast-icon { width: 34px; height: 34px; flex: none; border-radius: 10px; background: linear-gradient(145deg, #1B2030, #0A0C11); display: flex; align-items: center; justify-content: center; font: 700 17px Sora, sans-serif; color: #fff; letter-spacing: -0.04em; border: 1px solid #262C3D; }
.toast-icon i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin: 8px 0 0 1px; align-self: center; }
.toast-body small, .note small { display: block; font-size: 9.5px; color: var(--muted); }
.toast-body b, .note b { display: block; font-size: 12px; font-weight: 600; }
.toast-body span, .note span { display: block; font-size: 11px; color: var(--text2); }

/* ══════════ STORES + STATS ══════════ */
.stores { padding: 70px 0 110px; position: relative; }
.marquee { overflow: hidden; padding: 30px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-size: clamp(34px, 5vw, 64px); font-weight: 700; letter-spacing: -0.04em; padding: 0 .55em; color: transparent; -webkit-text-stroke: 1px #4a5068; transition: color .3s, -webkit-text-stroke-color .3s; display: inline-flex; align-items: center; }
.marquee-track span::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-left: 1.1em; box-shadow: 0 0 12px var(--accent); }
.marquee-track span:hover { color: var(--text); -webkit-text-stroke-color: transparent; }
@keyframes marquee { to { transform: translateX(-50%); } }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 50px; }
.stat { padding: 28px 24px; border-radius: 24px; background: linear-gradient(180deg, var(--surface), rgba(23,25,34,.4)); border: 1px solid var(--outline); }
.stat b { display: block; font-size: clamp(40px, 4.4vw, 60px); font-weight: 700; letter-spacing: -0.05em; line-height: 1; background: linear-gradient(180deg, #fff, #9aa0b4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat sup { font-size: .38em; letter-spacing: 0; margin-left: 4px; vertical-align: top; position: relative; top: .5em; }
.stat > span { display: block; margin-top: 12px; color: var(--text2); font-size: 14px; }

/* ══════════ STORY ══════════ */
.story { position: relative; height: calc(var(--steps) * 100vh + 40vh); }
.story-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.story-glow { position: absolute; width: 900px; height: 900px; right: -10%; top: 50%; margin-top: -450px; border-radius: 50%; background: radial-gradient(circle, var(--glow, rgba(255,107,26,.3)), transparent 60%); filter: blur(40px); transition: background 1s; pointer-events: none; }
.story-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.story-copy { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 34px; align-items: center; }
.rail { position: relative; height: 320px; width: 2px; margin-left: 10px; background: var(--outline); border-radius: 2px; display: flex; flex-direction: column; justify-content: space-between; align-items: center; }
.rail-fill { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--accent); transform-origin: 50% 0; transform: scaleY(var(--sp, 0)); box-shadow: 0 0 10px var(--accent); }
.rail i { position: relative; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--outline); transition: border-color .4s, background-color .4s, transform .4s var(--ease-out); }
.rail i.on { border-color: var(--accent); background: var(--accent); transform: scale(1.25); box-shadow: 0 0 14px var(--accent); }
.steps { position: relative; min-height: 420px; }
.step { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; pointer-events: none; }
.step > * { opacity: 0; transform: translateY(36px); filter: blur(6px); transition: opacity .6s var(--ease-out), transform .8s var(--ease-out), filter .6s; }
.step.up > * { transform: translateY(-36px); }
.step.on { pointer-events: auto; }
.step.on > * { opacity: 1; transform: none; filter: none; }
.step.on > :nth-child(2) { transition-delay: .06s; }
.step.on > :nth-child(3) { transition-delay: .12s; }
.step.on > :nth-child(4) { transition-delay: .18s; }
.step h2 { font-size: clamp(36px, 4.6vw, 64px); margin-bottom: 22px; }
.step p:not(.eyebrow) { color: var(--text2); font-size: clamp(15px, 1.3vw, 18px); max-width: 480px; }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chips-row li { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--outline); background: rgba(255,255,255,.03); font-size: 13px; color: var(--text2); }
.story-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.story-num { position: absolute; z-index: 0; font-size: 300px; font-weight: 700; letter-spacing: -0.08em; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.08); right: -20px; top: 50%; transform: translateY(-50%); overflow: hidden; height: 1em; }
.story-num span { display: block; transition: transform .8s var(--ease-out), opacity .5s; }
.story-num span.swap { transform: translateY(40%); opacity: 0; transition: none; }
.story-phone { transform: rotateY(var(--sry, -8deg)) rotateX(4deg); transition: transform 1s var(--ease-out); }
.story-visual { perspective: 1400px; }

.story-phone .scr { opacity: 0; transform: translateY(50px) scale(.94); filter: blur(10px); transition: opacity .55s var(--ease-out), transform .9s var(--ease-out), filter .6s var(--ease-out); pointer-events: none; }
.story-phone .scr.prev { transform: translateY(-40px) scale(.94); }
.story-phone .scr.on { opacity: 1; transform: none; filter: none; }
.sweep { position: absolute; inset: 10px; border-radius: 38px; z-index: 25; pointer-events: none; overflow: hidden; }
.sweep::before { content: ""; position: absolute; left: -10%; right: -10%; height: 40%; top: -45%; background: linear-gradient(180deg, transparent, rgba(255, 107, 26, .22), rgba(255,255,255,.18), transparent); }
.sweep.go::before { animation: sweep .9s var(--ease) forwards; }
@keyframes sweep { to { top: 110%; } }

/* stock rows cascade when screen becomes active */
.cascade .row { opacity: 0; transform: translateX(30px); transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); }
.on .cascade .row { opacity: 1; transform: none; }
.on .cascade .row:nth-child(2) { transition-delay: .07s; } .on .cascade .row:nth-child(3) { transition-delay: .14s; }
.on .cascade .row:nth-child(4) { transition-delay: .21s; } .on .cascade .row:nth-child(5) { transition-delay: .28s; }
.on .cascade .row:nth-child(6) { transition-delay: .35s; } .on .cascade .row:nth-child(7) { transition-delay: .42s; }

/* lock screen */
.scr-lock { background: radial-gradient(ellipse 120% 70% at 50% 100%, #3a1a08, transparent 60%), linear-gradient(180deg, #121521, #0a0b10 60%, #1a0e06); padding-left: 10px; padding-right: 10px; }
.lock-car { position: absolute; left: -10%; right: -10%; bottom: 40px; opacity: .55; color: var(--accent); }
.lock-time { text-align: center; color: #fff; margin-top: 10px; }
.lock-time small { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.8); }
.lock-time b { display: block; font-size: 68px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; margin-top: 2px; }
.notes { display: flex; flex-direction: column; gap: 7px; margin-top: 18px; }
.note { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 18px; background: rgba(40, 43, 55, .7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.06); opacity: 0; transform: translateY(-30px) scale(.9); transition: opacity .5s var(--ease-out), transform .7s var(--ease-out); }
.on .note { opacity: 1; transform: none; }
.on .note:nth-child(1) { transition-delay: .9s; } .on .note:nth-child(2) { transition-delay: .65s; }
.on .note:nth-child(3) { transition-delay: .4s; } .on .note:nth-child(4) { transition-delay: .15s; }

/* forecast */
.page-head { display: flex; align-items: center; gap: 10px; padding: 0 2px; }
.page-head b { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.page-head.big { justify-content: space-between; }
.page-head.big b { font-size: 24px; }
.page-head small { margin-left: auto; color: var(--muted); font-size: 10px; }
.round { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--outline); background: var(--surface); display: grid; place-items: center; font-size: 15px; }
.fc-hero { padding: 14px 16px; border-radius: 20px; background: linear-gradient(135deg, var(--accent), #C94A0A); color: var(--on-accent); }
.fc-hero small { font-size: 9px; letter-spacing: .12em; font-weight: 700; }
.fc-hero b { display: block; font-size: 28px; letter-spacing: -0.04em; line-height: 1.1; margin: 2px 0; }
.fc-hero span { font-size: 10.5px; font-weight: 600; }
.on .fc-hero { animation: popIn .8s var(--ease-out) both .1s; }
@keyframes popIn { from { transform: scale(.85); opacity: 0; } }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.days span { position: relative; display: flex; flex-direction: column; align-items: center; padding: 7px 0 10px; border-radius: 12px; background: var(--surface); font-weight: 700; font-size: 14px; }
.days small { font-size: 9px; font-weight: 400; color: var(--text2); }
.days span.on { background: var(--text); color: var(--bg); }
.days span.on small { color: var(--bg); }
.days i { position: absolute; bottom: 3px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.fc-rows { display: flex; flex-direction: column; gap: 6px; }
.fc-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 16px; background: var(--surface); }
.fc-row .ab { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-hi); font-size: 10px; font-weight: 700; }
.fc-row b { font-size: 12px; font-weight: 600; display: block; }
.fc-row small { font-size: 10px; color: var(--muted); }
.conf { text-align: right; }
.conf em { display: block; font-style: normal; font-size: 10px; font-weight: 700; margin-bottom: 4px; }
.conf span { display: flex; gap: 3px; }
.conf i { width: 13px; height: 4px; border-radius: 2px; background: var(--outline); position: relative; overflow: hidden; }
.conf i::after { content: ""; position: absolute; inset: 0; background: currentColor; transform: scaleX(0); transform-origin: 0; transition: transform .5s var(--ease-out); }
.conf.ok { color: var(--ok); } .conf.warn { color: var(--warn); } .conf.low { color: var(--text2); }
.on .conf.ok i::after, .on .conf.warn i:nth-child(-n+2)::after, .on .conf.low i:first-child::after { transform: scaleX(1); }
.on .fc-row:nth-child(1) i:nth-child(1)::after { transition-delay: .4s; } .on .fc-row:nth-child(1) i:nth-child(2)::after { transition-delay: .5s; } .on .fc-row:nth-child(1) i:nth-child(3)::after { transition-delay: .6s; }
.on .fc-row:nth-child(2) i:nth-child(1)::after { transition-delay: .6s; } .on .fc-row:nth-child(2) i:nth-child(2)::after { transition-delay: .7s; }
.on .fc-row:nth-child(3) i:nth-child(1)::after { transition-delay: .8s; } .on .fc-row:nth-child(3) i:nth-child(2)::after { transition-delay: .9s; }
.on .fc-row:nth-child(4) i:nth-child(1)::after { transition-delay: 1s; }
.headsup { margin-top: auto; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 18px; background: var(--surface); }
.headsup b { font-size: 11.5px; font-weight: 600; display: block; }
.headsup em { font-style: normal; font-size: 8px; padding: 2px 6px; margin-left: 4px; border-radius: 6px; background: rgba(255,107,26,.2); color: var(--accent-soft); letter-spacing: .06em; vertical-align: 1px; }
.headsup small { font-size: 9.5px; color: var(--muted); }
.switch { margin-left: auto; flex: none; width: 40px; height: 24px; border-radius: 12px; background: var(--surface-hi); position: relative; transition: background-color .4s .9s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: transform .4s var(--ease-out) .9s, background-color .4s .9s; }
.on .switch { background: var(--accent); }
.on .switch::after { transform: translateX(16px); background: #fff; }

/* scan */
.scan-photo { position: relative; height: 150px; border-radius: 22px; overflow: hidden; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 60%, #2E4F9E, #14192E 75%); color: var(--fresh); }
.scan-photo > div { width: 72%; }
.corner { position: absolute; width: 22px; height: 22px; border: 2.5px solid #fff; opacity: .9; }
.c1 { top: 14px; left: 14px; border-right: 0; border-bottom: 0; border-top-left-radius: 8px; }
.c2 { top: 14px; right: 14px; border-left: 0; border-bottom: 0; border-top-right-radius: 8px; }
.c3 { bottom: 14px; left: 14px; border-right: 0; border-top: 0; border-bottom-left-radius: 8px; }
.c4 { bottom: 14px; right: 14px; border-left: 0; border-top: 0; border-bottom-right-radius: 8px; }
.on .corner { animation: lockOn .6s var(--ease-out) both; }
@keyframes lockOn { from { transform: scale(1.8); opacity: 0; } }
.scanline { position: absolute; left: 0; right: 0; height: 40px; top: -40px; background: linear-gradient(180deg, transparent, rgba(255,107,26,.35)); border-bottom: 2px solid var(--accent); box-shadow: 0 6px 20px rgba(255,107,26,.6); }
.on .scanline { animation: scan 1.1s var(--ease) .25s 2 both; }
@keyframes scan { 0% { top: -40px; } 100% { top: 150px; } }
.ai-card { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 18px; border: 1px solid var(--accent); background: rgba(255,107,26,.06); }
.on .ai-card { animation: popIn .7s var(--ease-out) 1.2s both; }
.ai-ic { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(255,107,26,.15); color: var(--accent); font-size: 16px; }
.ai-card b { display: block; font-size: 11px; font-weight: 600; }
.ai-card small { font-size: 9.5px; color: var(--text2); }
.ai-card em { font-style: normal; color: var(--warn); font-weight: 700; }
.tags { display: flex; gap: 5px; align-items: center; }
.tags span { padding: 5px 9px; border-radius: 999px; background: var(--surface-hi); font-size: 10px; }
.tags em { font-style: normal; color: var(--accent); font-size: 10px; font-weight: 600; margin-left: 4px; }
.on .tags span { animation: popIn .5s var(--ease-out) both; }
.on .tags span:nth-child(1) { animation-delay: 1.4s; } .on .tags span:nth-child(2) { animation-delay: 1.5s; } .on .tags span:nth-child(3) { animation-delay: 1.6s; }
.seg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.seg2 span { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 10px; border-radius: 999px; border: 1px solid var(--outline); font-size: 11px; font-weight: 600; color: var(--text2); }
.seg2 span.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.field { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--outline); background: var(--surface); color: var(--text2); }
.field b { color: var(--text); font-size: 13px; }
.field small { margin-left: auto; font-size: 9px; color: var(--muted); }
.cta-btn { margin-top: auto; margin-bottom: 18px; padding: 14px; border-radius: 999px; background: var(--accent); color: var(--on-accent); text-align: center; font-weight: 700; font-size: 13px; }

/* market */
.seg3 { display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; border-radius: 999px; background: var(--surface); }
.seg3 span { text-align: center; padding: 8px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--text2); }
.seg3 span.on { background: var(--text); color: var(--bg); }
.mgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mcard { border-radius: 18px; background: var(--surface); overflow: hidden; padding-bottom: 8px; opacity: 0; transform: translateY(30px) scale(.94); transition: opacity .5s var(--ease-out), transform .7s var(--ease-out); }
.on .mcard { opacity: 1; transform: none; }
.on .mcard:nth-child(2) { transition-delay: .1s; } .on .mcard:nth-child(3) { transition-delay: .2s; } .on .mcard:nth-child(4) { transition-delay: .3s; }
.mimg { position: relative; height: 92px; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 60%, var(--c), color-mix(in srgb, var(--c) 30%, #0a0b10) 85%); }
.mimg > div { width: 74%; }
.mimg span { position: absolute; top: 7px; font-size: 7.5px; font-weight: 700; padding: 3px 7px; border-radius: 999px; }
.tag-w { left: 7px; background: var(--text); color: var(--bg); }
.tag-o { left: 7px; background: var(--accent); color: var(--on-accent); }
.tag-y { right: 7px; background: var(--warn); color: #1A1200; }
.mcard > b { display: block; padding: 7px 9px 0; font-size: 10.5px; font-weight: 600; line-height: 1.25; height: 34px; overflow: hidden; }
.mprice { display: flex; justify-content: space-between; align-items: baseline; padding: 0 9px; font-size: 15px; font-weight: 700; }
.mprice small { font-size: 9px; color: var(--warn); font-weight: 600; }
.mcard > small { padding: 0 9px; font-size: 9px; color: var(--muted); }

/* ══════════ TOOLS (horizontal) ══════════ */
.tools { position: relative; }
.tools-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 50px; }
.tools-head h2 { font-size: clamp(36px, 4.8vw, 64px); }
.track { display: flex; gap: 22px; padding: 0 max(var(--gutter), calc((100vw - var(--max)) / 2)); width: max-content; will-change: transform; perspective: 1200px; }
.tcard {
  --c: var(--accent);
  position: relative; width: 330px; height: 400px; flex: none; padding: 28px; border-radius: 30px; overflow: hidden;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 10%, var(--surface)), var(--surface) 45%, #12141b);
  border: 1px solid var(--outline); display: flex; flex-direction: column;
  transform: rotateY(var(--rot, 0deg)) scale(var(--sc, 1)); transition: border-color .3s;
}
.tcard:hover { border-color: color-mix(in srgb, var(--c) 60%, transparent); }
.tcard::before { content: ""; position: absolute; width: 260px; height: 260px; right: -90px; top: -90px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%); }
.tic { position: relative; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); }
.prem { position: absolute; top: 30px; right: 26px; font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: rgba(255,107,26,.15); color: var(--accent-soft); }
.tcard h3 { position: relative; font-size: 26px; margin: 26px 0 12px; }
.tcard p { position: relative; color: var(--text2); font-size: 15px; }
.tviz { position: relative; margin-top: auto; height: 90px; display: flex; align-items: flex-end; }
.tviz.th { font-size: 64px; font-weight: 700; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1.5px var(--warn); text-shadow: 0 0 30px rgba(255,194,71,.4); align-items: center; animation: flicker 3s infinite; }
@keyframes flicker { 0%, 100% { opacity: 1; } 92% { opacity: 1; } 94% { opacity: .4; } 96% { opacity: 1; } 97% { opacity: .6; } }
.tviz.wish { flex-wrap: wrap; gap: 6px; align-content: flex-end; }
.tviz.wish span { padding: 7px 12px; border-radius: 999px; background: rgba(255,107,26,.12); border: 1px solid rgba(255,107,26,.35); font-size: 13px; color: var(--accent-soft); }
.tviz.drop { gap: 14px; align-items: baseline; }
.tviz.drop s { color: var(--muted); font-size: 24px; }
.tviz.drop b { font-size: 48px; color: var(--ok); letter-spacing: -0.04em; }
.tviz.spark svg { width: 100%; height: 70px; overflow: visible; }
.tviz.spark path { fill: none; stroke: var(--fresh); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 6px var(--fresh)); }
.tviz.spark.in path, .tools.in .tviz.spark path { animation: draw 2s var(--ease-out) forwards; }
.tviz.sets { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; align-items: end; }
.tviz.sets i { height: 36px; border-radius: 8px; border: 1.5px dashed #444a5e; }
.tviz.sets i.y { border: 0; background: color-mix(in srgb, #B79CFF 60%, transparent); box-shadow: 0 0 12px -2px #B79CFF; }
.tviz.bars span { width: 100%; height: 70px; border-radius: 8px; position: relative; overflow: hidden; background: repeating-linear-gradient(90deg, #d9d9e0 0 3px, transparent 3px 6px, #d9d9e0 6px 7px, transparent 7px 11px, #d9d9e0 11px 15px, transparent 15px 17px); opacity: .7; }
.tviz.bars span::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--accent-soft); box-shadow: 0 0 12px 2px var(--accent); animation: bar 2s ease-in-out infinite alternate; }
@keyframes bar { from { top: 4px; } to { top: 64px; } }
.tviz.wid { flex-direction: column; align-items: flex-start; justify-content: flex-end; }
.tviz.wid b { font-size: 60px; line-height: 1; letter-spacing: -0.05em; color: var(--ok); }
.tviz.wid small { color: var(--text2); }
.tviz.match { align-items: center; gap: 10px; }
.tviz.match span { padding: 10px 16px; border-radius: 999px; background: var(--surface-hi); font-weight: 600; font-size: 14px; }
.tviz.match i { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--fresh) 0 6px, transparent 6px 12px); background-size: 24px 2px; animation: flow .8s linear infinite; }
@keyframes flow { to { background-position: 24px 0; } }
.tviz.radar { align-items: center; justify-content: center; }
.tviz.radar i { position: absolute; width: 90px; height: 90px; border-radius: 50%; border: 1px solid rgba(255,143,143,.4); background: conic-gradient(from 0deg, rgba(255,143,143,.4), transparent 30%); animation: spin 2.6s linear infinite; }
.tviz.radar b { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 10px var(--bad); animation: blink 2.6s infinite; }
.tviz.radar b:nth-of-type(1) { transform: translate(22px, -18px); }
.tviz.radar b:nth-of-type(2) { transform: translate(-26px, 6px); animation-delay: .9s; }
.tviz.radar b:nth-of-type(3) { transform: translate(10px, 26px); animation-delay: 1.7s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 0%, 100% { opacity: .2; } 20% { opacity: 1; } }
.tviz.rank { gap: 10px; align-items: flex-end; }
.tviz.rank span { flex: 1; border-radius: 12px 12px 4px 4px; display: flex; justify-content: center; padding-top: 8px; font-weight: 700; color: #1A1200; background: var(--warn); }
.tviz.rank span:nth-child(1) { height: 90px; order: 2; }
.tviz.rank span:nth-child(2) { height: 64px; order: 1; background: #cfd3dc; }
.tviz.rank span:nth-child(3) { height: 46px; order: 3; background: #d08a52; }

/* ══════════ SYNC ══════════ */
.sync { padding: 140px 0 120px; position: relative; }
.sync-head { max-width: 760px; }
.sync-head .lead { margin-top: 24px; }
.sync-stage { margin-top: 70px; display: grid; grid-template-columns: auto 1fr minmax(0, 1.7fr); align-items: center; gap: 0; }
.phone.mini { width: 230px; height: 490px; border-radius: 40px; padding: 8px; font-size: 11px; }
.phone.mini .screen { inset: 8px; border-radius: 32px; }
.phone.mini .island { top: 16px; width: 68px; height: 20px; margin-left: -34px; }
.cap { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; color: var(--text2); font-size: 14px; }
.cap i { color: var(--accent); }
.scr-track { align-items: stretch; }
.radar-big { position: relative; width: 120px; height: 120px; margin: 16px auto 4px; border-radius: 50%; border: 1px solid var(--outline); display: grid; place-items: center; background: radial-gradient(circle, transparent 30%, rgba(70,214,160,.05) 31%, transparent 32%, transparent 62%, rgba(70,214,160,.06) 63%, transparent 64%); }
.radar-big i { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(70,214,160,.45), transparent 28%); animation: spin 2.4s linear infinite; }
.radar-big .live-dot { width: 12px; height: 12px; }
.trk-status { text-align: center; }
.trk-status b { display: block; font-size: 13px; }
.trk-status small { font-size: 10px; color: var(--muted); }
.src-list { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.src-list span { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; border-radius: 10px; background: var(--surface); font-size: 10.5px; }
.src-list i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--outline); border-top-color: var(--accent); animation: spin .9s linear infinite; }
.src-list span.done i { animation: none; border: 0; background: var(--ok); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12'/%3E%3C/svg%3E"); box-shadow: inset 0 0 0 4px var(--surface); }

.wire { position: relative; height: 60px; margin: 0 -6px; min-width: 120px; }
.wire-line { position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: repeating-linear-gradient(90deg, #3b4052 0 8px, transparent 8px 16px); }
.packet { position: absolute; top: 50%; left: 0; width: 34px; height: 6px; margin-top: -3px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--accent)); box-shadow: 0 0 14px var(--accent); animation: packet 2.4s var(--ease) infinite; opacity: 0; }
.p2 { animation-delay: .8s; } .p3 { animation-delay: 1.6s; }
@keyframes packet { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 34px); opacity: 0; } }
.wire-label { position: absolute; left: 50%; top: 0; transform: translate(-50%, -60%); display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--outline); font-size: 12px; color: var(--text2); white-space: nowrap; }
.wire-label i { color: var(--fresh); }

.browser { border-radius: 18px; overflow: hidden; background: var(--bg); border: 1px solid var(--outline); box-shadow: 0 50px 100px -30px rgba(0,0,0,.8), 0 0 80px -30px rgba(125,178,255,.35); }
.b-bar { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 14px; background: #15171f; border-bottom: 1px solid var(--outline); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #3a3e4c; }
.dots i:nth-child(1) { background: #ff5f57; } .dots i:nth-child(2) { background: #febc2e; } .dots i:nth-child(3) { background: #28c840; }
.url { flex: 1; max-width: 340px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 6px; height: 26px; border-radius: 8px; background: var(--surface); font-size: 12px; color: var(--text2); }
.url i { font-size: 11px; color: var(--muted); }
.b-body { display: grid; grid-template-columns: 150px 1fr; min-height: 340px; }
.b-side { display: flex; flex-direction: column; gap: 4px; padding: 18px 12px; border-right: 1px solid var(--outline); }
.b-side .logo { margin: 0 8px 14px; }
.b-side span:not(.logo) { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: 13px; color: var(--text2); }
.b-side span.on { background: var(--surface); color: var(--text); font-weight: 600; }
.b-main { padding: 18px; min-width: 0; }
.b-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.b-head b { font-size: 20px; letter-spacing: -0.03em; }
.b-head small { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.b-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bcard { border-radius: 14px; background: var(--surface); overflow: hidden; transition: box-shadow .4s, transform .5s var(--ease-out); }
.bcard .bimg { height: 70px; display: grid; place-items: center; color: var(--c); background: radial-gradient(ellipse at 50% 60%, color-mix(in srgb, var(--c) 40%, transparent), color-mix(in srgb, var(--c) 8%, #0d0e13) 80%); }
.bcard .bimg > div { width: 70%; }
.bcard div.bt { padding: 8px 10px 10px; }
.bcard b { display: block; font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bcard small { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); }
.bcard small strong { color: var(--text); font-size: 12px; }
.bcard.ping { box-shadow: 0 0 0 1.5px var(--accent), 0 0 30px -6px var(--accent); transform: translateY(-3px); }

.sync-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 80px; }
.sync-points > div { padding: 26px; border-radius: 24px; border: 1px solid var(--outline); background: rgba(23,25,34,.5); }
.sync-points i { width: 44px; height: 44px; padding: 11px; border-radius: 14px; background: rgba(255,107,26,.12); color: var(--accent); }
.sync-points b { display: block; margin: 18px 0 6px; font-size: 18px; }
.sync-points span { color: var(--text2); font-size: 14.5px; }

/* ══════════ PRICING ══════════ */
.pricing { padding: 120px 0; position: relative; }
.center-head { text-align: center; display: flex; flex-direction: column; align-items: center; }
.center-head .lead { margin-top: 22px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 900px; margin: 60px auto 0; }
.plan { position: relative; padding: 36px; border-radius: 32px; background: var(--surface); border: 1px solid var(--outline); display: flex; flex-direction: column; overflow: hidden; }
.glow-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(400px circle at var(--gx, 50%) var(--gy, -20%), rgba(255,255,255,.07), transparent 50%); opacity: 0; transition: opacity .4s; }
.glow-card:hover::before { opacity: 1; }
.plan h3 { font-size: 22px; }
.price { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 4px; }
.price b { font-size: 60px; letter-spacing: -0.05em; line-height: 1; }
.price span { color: var(--muted); }
.alt-price { color: var(--text2); font-size: 14px; }
.plan ul { display: flex; flex-direction: column; gap: 13px; margin: 28px 0 34px; flex: 1; }
.plan li { display: flex; gap: 12px; color: var(--text2); font-size: 15px; line-height: 1.45; }
.plan li i { margin-top: 3px; color: var(--ok); }
.plan-pro { background: linear-gradient(170deg, rgba(255,107,26,.16), var(--surface) 40%); border-color: rgba(255,107,26,.5); box-shadow: 0 40px 100px -40px rgba(255,107,26,.5); }
.plan-pro li i { color: var(--accent); }
.plan-pro li { color: var(--text); }
.plan-pro::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; background: conic-gradient(from var(--ang, 0deg), transparent 0 70%, var(--accent) 80%, var(--warn) 85%, transparent 90%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: border 5s linear infinite; }
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes border { to { --ang: 360deg; } }
.ribbon { position: absolute; top: 34px; right: 30px; padding: 6px 12px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 700; }
.fine { text-align: center; margin-top: 30px; color: var(--muted); font-size: 13px; }

/* ══════════ FINAL ══════════ */
.final { position: relative; padding: 200px 0 160px; overflow: hidden; text-align: center; }
.final h2 { font-size: clamp(42px, 6.6vw, 96px); }
.final .lead { margin: 22px auto 0; }
.final .hero-ctas { justify-content: center; }
.final-road { position: absolute; left: 0; right: 0; top: 40px; height: 160px; pointer-events: none; }
.road-lines { position: absolute; left: 0; right: 0; bottom: 18px; height: 2px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.12) 0 40px, transparent 40px 80px); background-position: calc(var(--fp, 0) * -800px) 0; }
.final-car { position: absolute; bottom: 14px; width: 300px; left: 0; color: var(--accent); transform: translateX(calc(var(--fp, 0) * (100vw + 340px) - 320px)); }
.exhaust { position: absolute; left: 4px; bottom: 22px; }
.exhaust i { position: absolute; display: block; width: 90px; height: 2px; right: 0; background: linear-gradient(90deg, transparent, rgba(255,138,71,.8)); border-radius: 2px; }
.exhaust i:nth-child(1) { bottom: 10px; width: 140px; } .exhaust i:nth-child(2) { bottom: 26px; } .exhaust i:nth-child(3) { bottom: 44px; width: 60px; }
.final::before { content: ""; position: absolute; left: 50%; bottom: -300px; width: 1100px; height: 700px; margin-left: -550px; border-radius: 50%; background: radial-gradient(ellipse, rgba(255,107,26,.28), transparent 65%); filter: blur(30px); pointer-events: none; }
.final-inner { position: relative; }

/* ══════════ FOOTER ══════════ */
.footer { border-top: 1px solid var(--outline); padding: 50px 0 40px; background: var(--bg-deep); }
.foot-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; }
.foot-inner p { margin-top: 12px; color: var(--muted); font-size: 14px; }
.foot-inner nav { display: flex; gap: 26px; flex-wrap: wrap; }
.foot-inner nav a { color: var(--text2); font-size: 14px; cursor: pointer; transition: color .2s; }
.foot-inner nav a:hover { color: var(--accent); }
.foot-legal { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 40px; color: var(--muted); font-size: 12.5px; }

/* ══════════ NEON CAR ══════════ */
.car { display: block; width: 100%; height: auto; overflow: visible; }
.car .glow { filter: url(#ncglow); opacity: .9; }
.car .wheel { transform-box: fill-box; transform-origin: center; }
.car-spin .wheel, [data-spin] .wheel { animation: spin .5s linear infinite; }
[data-draw] .car path, [data-draw] .car circle { stroke-dasharray: 1; stroke-dashoffset: 1; }
.loaded [data-draw] .car path, .loaded [data-draw] .car circle { animation: draw 2.4s var(--ease-out) .5s forwards; }
[data-draw] .car .fill { opacity: 0; stroke-dasharray: none; stroke-dashoffset: 0; }
.loaded [data-draw] .car .fill { animation: fadeFill 1s ease 2.2s forwards; }
@keyframes fadeFill { to { opacity: .12; } }

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 1080px) {
  .fc1 { left: -40px; } .fc2 { right: -30px; }
  .sync-stage { grid-template-columns: auto 80px minmax(0, 1fr); }
  .b-body { grid-template-columns: 1fr; }
  .b-side { display: none; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero { padding-top: 110px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-ctas { justify-content: center; }
  .hero-sub { margin: 0 auto; }
  .hero-note { align-items: flex-start; text-align: left; font-size: 13px; }
  .hero-note i { margin-top: 3px; }
  .hero-visual { min-height: 0; margin-top: 30px; }
  .hero-visual .tilt { transform: rotateX(var(--rx, 6deg)) rotateY(var(--ry, -14deg)) scale(var(--hs, 1)); margin: calc(320px * (var(--hs, 1) - 1)) calc(150px * (var(--hs, 1) - 1)); }
  .float-card, .tilt { transform-style: flat; }
  .hero-car { width: 150%; left: -25%; top: 40%; }
  .stats { grid-template-columns: 1fr 1fr; }

  .story-grid { grid-template-columns: 1fr; gap: 0; height: 100%; grid-template-rows: 1fr auto; padding-top: 80px; padding-bottom: 24px; }
  .story-visual { order: -1; align-self: center; }
  .story-phone { transform: rotateY(var(--sry, -8deg)) rotateX(4deg) scale(var(--ps, .7)); margin: calc(320px * (var(--ps, .7) - 1)) calc(150px * (var(--ps, .7) - 1)); }
  .story-num { font-size: 160px; right: 0; }
  .story-copy { grid-template-columns: 1fr; gap: 0; }
  .rail { display: none; }
  .steps { min-height: 210px; }
  .step { justify-content: flex-start; text-align: center; align-items: center; }
  .step .eyebrow { margin-bottom: 8px; }
  .step h2 { font-size: clamp(28px, 7.4vw, 40px); margin-bottom: 10px; }
  .step h2 br { display: none; }
  .step p:not(.eyebrow) { font-size: 14.5px; }
  .chips-row { display: none; }

  .tcard { width: 280px; height: 360px; padding: 24px; }

  .sync-stage { grid-template-columns: 1fr; justify-items: center; gap: 0; }
  .wire { width: 60px; height: 110px; min-width: 0; margin: 10px 0; }
  .wire-line { left: 50%; right: auto; top: 0; bottom: 0; width: 2px; height: auto; margin: 0 0 0 -1px; background: repeating-linear-gradient(180deg, #3b4052 0 8px, transparent 8px 16px); }
  .packet { left: 50%; width: 6px; height: 30px; margin: 0 0 0 -3px; background: linear-gradient(180deg, transparent, var(--accent)); animation-name: packetV; }
  @keyframes packetV { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 30px); opacity: 0; } }
  .wire-label { left: 50%; top: 50%; transform: translate(14px, -50%); }
  .sync-browser { width: 100%; }
  .sync-points { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hide-sm { display: none; }
  .nav { height: 54px; padding-left: 18px; }
  .logo { font-size: 21px; }
  .btn-lg { height: 54px; padding: 0 22px; font-size: 15px; width: 100%; }
  .hero-ctas { width: 100%; flex-direction: column; }
  .float-card { display: none; }
  .stats { gap: 10px; }
  .stat { padding: 20px 16px; }
  .b-grid { grid-template-columns: 1fr 1fr; }
  .b-main { padding: 12px; }
  .plan { padding: 26px; }
  .ribbon { top: 26px; right: 22px; }
  .final { padding-top: 170px; }
  .final-car { width: 200px; }
  .foot-legal { flex-direction: column; }
}


@media (max-width: 900px) {
  .blob { filter: blur(50px); opacity: .4; }
  .b1 { width: 380px; height: 380px; right: -140px; } .b2 { width: 320px; height: 320px; }
  .story-glow { width: 520px; height: 520px; margin-top: -260px; filter: blur(24px); }
  .js [data-reveal], .js .intro, .js .hero-title .w, .step > *, .story-phone .scr { filter: none; }
  .story-phone .scr { transition: opacity .45s var(--ease-out), transform .7s var(--ease-out); }
  .float-card, .toast, .note, .nav.scrolled, .btn-ghost { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav.scrolled { background: rgba(14, 15, 20, .94); }
  .story-num { display: none; }
  .tcard { transform: none; }
  .tools-head { padding-right: var(--gutter); }
  .url { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js .intro, .js .hero-title .w { opacity: 1; transform: none; filter: none; }
}
