:root {
  --bg: #070814;
  --bg-2: #0e1024;
  --card: #12152e;
  --ink: #eef0ff;
  --muted: #8d92b8;
  --v: #7c5cff;
  --c: #22d3ee;
  --g: #34d399;
  --line: rgba(238, 240, 255, 0.09);
  --display: "Space Grotesk", system-ui, sans-serif;
  --sans: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
.grad { background: linear-gradient(90deg, var(--v), var(--c)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: linear-gradient(90deg, var(--v), var(--c)); z-index: 60; }
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 16px clamp(20px, 4vw, 56px); background: rgba(7, 8, 20, 0.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 20px; }
.logo { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--v); position: relative; display: inline-block; }
.logo::after { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--c); top: -5px; right: -4px; }
.nav nav { display: flex; gap: 30px; font-size: 14px; color: var(--muted); }
.nav nav a:hover { color: var(--ink); }
.nav-r { display: flex; gap: 8px; }
.cta, .ghost { border-radius: 10px; padding: 10px 16px; font-size: 14px; font-weight: 600; transition: transform 0.3s, background 0.3s; }
.cta { background: var(--ink); color: var(--bg); }
.ghost { border: 1px solid var(--line); }
.cta:hover, .ghost:hover { transform: translateY(-1px); }
.big { padding: 14px 22px; font-size: 15px; }

/* Hero */
.hero { height: 300vh; position: relative; }
.hero-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; perspective: 1400px; background: radial-gradient(ellipse at 50% 0%, rgba(124, 92, 255, 0.28), transparent 60%); }
.rings { position: absolute; left: 50%; top: 62%; width: 0; height: 0; }
.rings i { position: absolute; border: 1px solid rgba(124, 92, 255, 0.18); border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.rings i::after { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 14px var(--c); top: -4px; left: 50%; }
.rings i:nth-child(1) { width: 700px; height: 700px; }
.rings i:nth-child(2) { width: 1050px; height: 1050px; }
.rings i:nth-child(3) { width: 1400px; height: 1400px; }
.hero-head { position: absolute; left: 0; right: 0; top: 13vh; text-align: center; padding: 0 20px; will-change: transform, opacity; }
.chip { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; background: rgba(255, 255, 255, 0.03); }
.chip span { width: 6px; height: 6px; border-radius: 50%; background: var(--g); box-shadow: 0 0 10px var(--g); }
.hero h1 { margin-top: 22px; font-family: var(--display); font-weight: 700; font-size: clamp(42px, 6.2vw, 92px); line-height: 0.98; letter-spacing: -0.04em; }
.sub { margin: 20px auto 0; max-width: 520px; color: var(--muted); font-size: 18px; line-height: 1.55; }
.actions { margin-top: 28px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.stage { position: absolute; left: 50%; top: 56vh; width: min(1080px, 90vw); transform-style: preserve-3d; will-change: transform; }
.dash { display: grid; grid-template-columns: 56px 1fr; background: var(--bg-2); border: 1px solid rgba(124, 92, 255, 0.35); border-radius: 18px; overflow: hidden; box-shadow: 0 40px 120px -30px rgba(124, 92, 255, 0.55); }
.side { border-right: 1px solid var(--line); padding: 16px 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.side i { width: 22px; height: 22px; border-radius: 7px; background: var(--line); }
.side i.on { background: var(--v); }
.dash-main { padding: 18px; }
.dash-top { display: flex; justify-content: space-between; font-size: 13px; }
.dash-top span { color: var(--muted); border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; }
.kpis { margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.kpi small { color: var(--muted); font-size: 12px; }
.kpi strong { display: block; margin-top: 6px; font-family: var(--display); font-size: 26px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi em { font-style: normal; font-size: 12px; color: var(--g); }
.charts { margin-top: 10px; display: grid; grid-template-columns: 1.7fr 1fr; gap: 10px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.panel-h { display: flex; justify-content: space-between; font-size: 13px; }
.panel-h span { color: var(--muted); font-size: 11px; display: flex; align-items: center; gap: 6px; }
.panel-h i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.d1 { background: var(--v); } .d2 { background: var(--muted); margin-left: 8px; }
.line { width: 100%; height: 190px; margin-top: 8px; display: block; }
.grid line { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.l1 { fill: none; stroke: var(--v); stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.l2 { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 5 6; vector-effect: non-scaling-stroke; opacity: 0.6; }
.bars { list-style: none; margin-top: 14px; display: grid; gap: 16px; }
.bars li { font-size: 12px; color: var(--muted); }
.bars i { display: block; margin-top: 7px; height: 8px; border-radius: 6px; background: linear-gradient(90deg, var(--v), var(--c)); width: calc(var(--w) * var(--k, 0)); }
.float { position: absolute; display: flex; align-items: center; gap: 10px; background: rgba(18, 21, 46, 0.85); border: 1px solid rgba(255, 255, 255, 0.12); backdrop-filter: blur(10px); border-radius: 14px; padding: 12px 16px; font-size: 13px; font-weight: 500; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8); opacity: 0; white-space: nowrap; }
.f1 { left: -40px; top: 34%; }
.f2 { right: -40px; top: 12%; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.g { background: var(--g); box-shadow: 0 0 10px var(--g); }
.dot.v { background: var(--v); box-shadow: 0 0 10px var(--v); }

.ticker { border-block: 1px solid var(--line); padding: 22px 0; overflow: hidden; }
.ticker-track { display: flex; gap: 56px; width: max-content; animation: tick 28s linear infinite; }
.ticker span { font-family: var(--display); font-size: 20px; color: var(--muted); white-space: nowrap; }
.ticker span::before { content: "◎ "; color: var(--v); }
@keyframes tick { to { transform: translateX(-50%); } }

.section { padding: clamp(80px, 11vw, 150px) clamp(20px, 4vw, 56px); max-width: 1240px; margin: 0 auto; }
.kicker { font-size: 13px; color: var(--c); font-weight: 600; margin-bottom: 14px; }
.head h2 { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 5.4vw, 76px); line-height: 1; letter-spacing: -0.04em; }
.head.center { text-align: center; }

.bento { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px; min-height: 220px; display: flex; flex-direction: column; transition: border-color 0.4s, transform 0.4s; }
.tile:hover { border-color: rgba(124, 92, 255, 0.5); transform: translateY(-3px); }
.tile.big { grid-row: span 2; }
.tile.wide { grid-column: span 2; }
.tile h3 { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.tile p { margin-top: 8px; color: var(--muted); line-height: 1.55; font-size: 15px; }
.live { margin-top: auto; display: flex; align-items: baseline; gap: 12px; }
.live strong { font-family: var(--display); font-size: 84px; font-weight: 700; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.live small { color: var(--muted); }
.pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--g); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); animation: pulse 1.6s infinite; align-self: center; }
@keyframes pulse { to { box-shadow: 0 0 0 14px rgba(52, 211, 153, 0); } }
.switch { margin-top: auto; width: 64px; height: 36px; border-radius: 999px; border: 0; background: var(--line); position: relative; transition: background 0.3s; }
.switch i { position: absolute; top: 4px; left: 4px; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.switch.on { background: var(--v); }
.switch.on i { transform: translateX(28px); }
.funnel { margin-top: auto; display: grid; gap: 6px; }
.funnel i { height: 12px; border-radius: 6px; width: var(--w); background: linear-gradient(90deg, var(--v), var(--c)); opacity: 0.85; }
.quote { font-size: 18px !important; color: var(--ink) !important; line-height: 1.6 !important; margin-top: auto !important; padding-top: 18px; }

.explore { margin-top: 40px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: clamp(18px, 3vw, 32px); }
.tabs, .billing { display: inline-flex; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 4px; }
.tabs button, .billing button { border: 0; background: none; border-radius: 9px; padding: 9px 16px; font-size: 14px; font-weight: 600; color: var(--muted); transition: all 0.3s; }
.tabs button.on, .billing button.on { background: var(--v); color: #fff; }
.billing small { color: var(--g); }
.billing button.on small { color: #fff; }
.ex-top { margin-top: 24px; display: flex; align-items: flex-end; gap: 14px; }
.ex-top small { color: var(--muted); font-size: 13px; }
.ex-top strong { display: block; font-family: var(--display); font-size: 48px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ex-top em { font-style: normal; color: var(--g); font-weight: 600; padding-bottom: 10px; }
.ex-chart { margin-top: 18px; width: 100%; height: 260px; display: block; }

.head.center .billing { margin-top: 28px; }
.plans { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 30px; }
.plan.pop { border-color: var(--v); background: linear-gradient(180deg, rgba(124, 92, 255, 0.18), var(--card) 50%); }
.plan h3 { font-family: var(--display); font-size: 20px; }
.plan .amt { margin-top: 18px; font-family: var(--display); font-size: 54px; font-weight: 700; letter-spacing: -0.04em; }
.plan .amt small { font-family: var(--sans); font-size: 14px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.plan ul { list-style: none; margin: 22px 0 26px; display: grid; gap: 10px; font-size: 14px; color: var(--muted); }
.plan li::before { content: "✓ "; color: var(--c); }
.plan .cta, .plan .ghost { display: block; text-align: center; }

.footer { display: flex; justify-content: space-between; gap: 16px; padding: 28px clamp(20px, 4vw, 56px); border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer .brand { color: var(--ink); font-size: 18px; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .nav nav, .nav-r .ghost { display: none; }
  .hero-head { top: 11vh; }
  .sub { font-size: 16px; }
  .stage { top: 62vh; width: 92vw; }
  .dash { grid-template-columns: 1fr; }
  .side { display: none; }
  .dash-main { padding: 12px; }
  .kpi { padding: 10px; }
  .charts { grid-template-columns: 1fr; }
  .charts .panel:last-child { display: none; }
  .line { height: 150px; }
  .kpi strong { font-size: 20px; }
  .float { display: none; }
  .bento, .plans { grid-template-columns: 1fr; }
  .tile.big, .tile.wide { grid-row: auto; grid-column: auto; }
  .footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .hero { height: 100vh; }
  .ticker-track, .pulse { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
