:root {
  color-scheme: dark;
  --bg: #050b1a;
  --bg-2: #081227;
  --surface: rgb(255 255 255 / .04);
  --surface-2: rgb(255 255 255 / .07);
  --line: rgb(148 190 255 / .14);
  --line-2: rgb(148 190 255 / .24);
  --text: #eaf1ff;
  --muted: #9aaacb;
  --dim: #6b7a9c;
  --blue: #2f6bff;
  --cyan: #38d6f0;
  --teal: #5ba3b9;
  --yellow: #ffcc33;
  --fav: #34d399;
  --con: #fb7185;
  --abs: #a5b4fc;
  --grad: linear-gradient(100deg, #6aa8ff 0%, #38d6f0 55%, #8cf5d8 100%);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 0 rgb(255 255 255 / .05) inset, 0 20px 60px -20px rgb(0 0 0 / .6), 0 8px 24px -12px rgb(10 40 120 / .5);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --container: 1180px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
  @media (prefers-reduced-motion: reduce) { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .92em; color: var(--cyan); }

.sprite { position: absolute; }
svg use { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

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

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.glass {
  background: linear-gradient(160deg, rgb(255 255 255 / .08), rgb(255 255 255 / .02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 15px/1 var(--font); border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s, border-color .2s, box-shadow .2s, translate .2s;
  & svg { width: 18px; height: 18px; }
  &:active { translate: 0 1px; }
}
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-primary {
  color: #04122e;
  background: linear-gradient(100deg, #7fb4ff, #38d6f0);
  box-shadow: 0 10px 30px -10px rgb(56 214 240 / .7), 0 1px 0 rgb(255 255 255 / .5) inset;
  &:hover { box-shadow: 0 14px 40px -10px rgb(56 214 240 / .9), 0 1px 0 rgb(255 255 255 / .5) inset; }
}
.btn-ghost {
  color: var(--text); background: var(--surface); border-color: var(--line-2);
  &:hover { background: var(--surface-2); border-color: rgb(148 190 255 / .4); }
}

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background-color .3s, border-color .3s;
  border-bottom: 1px solid transparent;
  &.is-scrolled {
    background: rgb(5 11 26 / .72);
    border-color: var(--line);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
  }
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 19px/1 var(--display); letter-spacing: -.01em;
  & b { font-weight: 700; color: var(--cyan); margin-left: 1px; }
  & img { filter: drop-shadow(0 6px 18px rgb(47 107 255 / .45)); }
}
.nav {
  display: flex; gap: 4px; margin-left: auto;
  & a {
    padding: 8px 14px; border-radius: 999px; color: var(--muted); font-size: 14.5px; font-weight: 500;
    transition: color .2s, background-color .2s;
    &:hover { color: var(--text); background: var(--surface); }
  }
}
.nav .nav-cta { display: none; }
.menu-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--text); cursor: pointer;
  place-items: center;
  & svg { width: 22px; height: 22px; }
}

.hero {
  position: relative; isolation: isolate; overflow-x: clip;
  padding: calc(var(--header-h) + 64px) 0 96px;
  min-height: min(100svh, 980px);
  display: flex; align-items: center;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.grid-floor {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgb(120 170 255 / .08) 1px, transparent 1px),
    linear-gradient(90deg, rgb(120 170 255 / .08) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%);
}
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.glow-a { width: 620px; height: 620px; left: 48%; top: -120px; background: radial-gradient(circle, #2f6bff, transparent 65%); }
.glow-b { width: 520px; height: 520px; left: -160px; bottom: -200px; background: radial-gradient(circle, #0fb5d4, transparent 65%); opacity: .35; }

.hero-inner { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 10px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface);
  color: var(--muted); font-size: 13.5px; font-weight: 500;
  & .dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--fav);
    box-shadow: 0 0 0 4px rgb(52 211 153 / .18);
    @media (prefers-reduced-motion: no-preference) { animation: pulse 2s ease-in-out infinite; }
  }
}
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); margin: 22px 0 20px; font-weight: 700; }
.lead { color: var(--muted); font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-points {
  list-style: none; padding: 0; margin: 34px 0 0;
  display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 14.5px;
  & li { display: inline-flex; align-items: center; gap: 8px; }
  & svg { width: 18px; height: 18px; color: var(--fav); }
}

.hero-visual { position: relative; }
.stage { position: relative; aspect-ratio: 1 / .99; width: 100%; max-width: 600px; margin-inline: auto; }
.orbit {
  position: absolute; border: 1px dashed rgb(120 170 255 / .22); border-radius: 50%;
  left: 50%; top: 50%; translate: -50% -50%;
}
.orbit-1 { width: 108%; aspect-ratio: 1; }
.orbit-2 { width: 78%; aspect-ratio: 1; border-style: solid; border-color: rgb(56 214 240 / .1); }
@media (prefers-reduced-motion: no-preference) {
  .orbit-1 { animation: spin 60s linear infinite; }
}

.tv {
  position: absolute; left: 0; top: 4%; width: 88%;
  padding: 18px 20px 20px; border-radius: 22px;
  background: linear-gradient(160deg, rgb(20 40 90 / .78), rgb(8 18 42 / .88));
  border-color: rgb(120 170 255 / .25);
}
.tv-top { display: flex; align-items: center; gap: 12px; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.live {
  display: inline-flex; align-items: center; gap: 6px; color: #fecdd3; font-weight: 600;
  padding: 4px 9px; border-radius: 999px; background: rgb(251 113 133 / .14); border: 1px solid rgb(251 113 133 / .3);
  & i { width: 7px; height: 7px; border-radius: 50%; background: var(--con); }
  @media (prefers-reduced-motion: no-preference) { & i { animation: pulse 1.4s ease-in-out infinite; } }
}
.tv-clock { margin-left: auto; font-family: var(--display); font-size: 13px; color: var(--text); letter-spacing: .04em; }
.tv-materia {
  margin: 16px 0 14px; padding: 14px 16px; border-radius: 14px; background: rgb(255 255 255 / .04); border: 1px solid var(--line);
  & small { display: block; color: var(--yellow); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
  & strong { display: block; font: 600 clamp(15px, 1.8vw, 19px)/1.25 var(--display); margin: 4px 0 4px; }
  & span { color: var(--muted); font-size: 12.5px; line-height: 1.4; display: block; }
}
.tv-results { display: grid; gap: 9px; }
.res {
  display: grid; grid-template-columns: 78px 26px 1fr; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted);
  & b { font: 700 15px/1 var(--display); color: var(--text); text-align: right; }
}
.track { height: 9px; border-radius: 999px; background: rgb(255 255 255 / .06); overflow: hidden; }
.track i {
  display: block; height: 100%; border-radius: inherit; transform-origin: left; scale: var(--p, 0) 1;
  transition: scale .6s cubic-bezier(.2, .8, .2, 1);
}
.res-fav .track i { background: linear-gradient(90deg, #10b981, #6ee7b7); box-shadow: 0 0 14px rgb(52 211 153 / .6); }
.res-con .track i { background: linear-gradient(90deg, #e11d48, #fda4af); }
.res-abs .track i { background: linear-gradient(90deg, #6366f1, #c7d2fe); }
.tv-seats { display: grid; grid-template-columns: repeat(15, 1fr); gap: 6px; margin-top: 16px; }
.tv-seats span {
  aspect-ratio: 1; border-radius: 50%; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .1);
  transition: background-color .35s, box-shadow .35s, border-color .35s;
  &.v-fav { background: var(--fav); border-color: transparent; box-shadow: 0 0 10px rgb(52 211 153 / .7); }
  &.v-con { background: var(--con); border-color: transparent; box-shadow: 0 0 10px rgb(251 113 133 / .6); }
  &.v-abs { background: var(--abs); border-color: transparent; box-shadow: 0 0 10px rgb(165 180 252 / .5); }
}
.tv-stamp {
  position: absolute; right: 18px; top: 66px;
  font: 700 13px/1 var(--display); letter-spacing: .14em; text-transform: uppercase;
  color: #052e1f; background: linear-gradient(100deg, #6ee7b7, #34d399);
  padding: 9px 14px; border-radius: 10px; rotate: -6deg;
  box-shadow: 0 10px 30px -8px rgb(52 211 153 / .8);
  opacity: 0; scale: .6;
  transition: opacity .35s, scale .45s cubic-bezier(.3, 1.6, .5, 1);
  &.is-on { opacity: 1; scale: 1; }
}

.tablet {
  position: absolute; right: 0; bottom: 0; width: 38%;
  padding: 14px; border-radius: 22px;
  background: linear-gradient(160deg, rgb(26 48 104 / .9), rgb(10 20 46 / .94));
  border-color: rgb(120 170 255 / .3);
  display: grid; gap: 8px;
  @media (prefers-reduced-motion: no-preference) { animation: float 7s ease-in-out infinite; }
}
.tablet-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 4px;
  & .avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #7fb4ff, #38d6f0); flex: none; }
  & b { display: block; font-size: 12.5px; }
  & small { display: block; color: var(--muted); font-size: 11px; line-height: 1.2; }
}
.tablet-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; border-radius: 10px; font-size: 12.5px; font-weight: 600;
  border: 1px solid var(--line-2); color: var(--muted); background: rgb(255 255 255 / .03);
  transition: background-color .3s, color .3s, box-shadow .3s, border-color .3s;
  & svg { width: 15px; height: 15px; opacity: 0; transition: opacity .3s; }
  &.t-fav.is-pressed {
    background: var(--fav); color: #052e1f; border-color: transparent; box-shadow: 0 8px 24px -6px rgb(52 211 153 / .8);
    & svg { opacity: 1; }
  }
}
.tablet-ok {
  font-size: 11px; color: var(--fav); text-align: center; height: 14px; line-height: 14px;
  opacity: 0; transition: opacity .3s;
  &.is-on { opacity: 1; }
}

.beam {
  position: absolute; left: 20%; top: 63%; width: 41%; height: 20%; overflow: visible; pointer-events: none;
  & path { fill: none; stroke: rgb(56 214 240 / .55); stroke-width: 1.6; stroke-dasharray: 4 7; vector-effect: non-scaling-stroke; }
  @media (prefers-reduced-motion: no-preference) { & path { animation: dash 1.6s linear infinite; } }
}

.demo-toggle {
  position: absolute; right: 4px; top: -6px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: rgb(8 18 42 / .8); color: var(--muted); border: 1px solid var(--line-2);
  transition: color .2s, border-color .2s;
  & svg { width: 16px; height: 16px; }
  &:hover { color: var(--text); border-color: rgb(148 190 255 / .45); }
}

