:root {
  --bg: #07182a;
  --bg-2: #0a1f33;
  --surface: #12304d;
  --surface-2: #1b4066;
  --text: #f3f6fa;
  --dim: #8fa3bc;
  --line: rgba(243, 246, 250, 0.1);
  --accent: #2f7fe0;
  --accent-bright: #56a2ff;
  --felt: #0f4c86;
  --gutter: clamp(16px, 4vw, 56px);
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color-scheme: dark; }
html.lenis, html.lenis body { height: auto; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #fff; }

.eyebrow {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-bright);
}
.dim { color: var(--dim); }
.big {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.lede { color: var(--dim); font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.5; max-width: 36ch; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 600; font-size: 1rem;
  background: var(--accent); color: #fff;
  padding: 0.95rem 1.5rem; border-radius: 14px;
  box-shadow: 0 10px 30px -10px rgba(47, 127, 224, 0.7);
  transition: transform 0.4s var(--ease), background 0.3s;
}
.btn:hover { transform: translateY(-2px); background: var(--accent-bright); }
.btn-ghost { background: transparent; border: 1px solid rgba(243, 246, 250, 0.2); box-shadow: none; }
.btn-ghost:hover { background: rgba(243, 246, 250, 0.06); }
.btn-small { padding: 0.6rem 1rem; font-size: 0.9rem; border-radius: 11px; }
.btn-block { width: 100%; margin-top: auto; }

/* NAV */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter);
  transition: background 0.4s, backdrop-filter 0.4s, transform 0.5s var(--ease);
}
.nav.scrolled { background: rgba(7, 24, 42, 0.72); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav.hide { transform: translateY(-100%); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; letter-spacing: 0.06em; }
.brand-mark { width: 26px; height: 24px; color: var(--accent-bright); }
.nav-links { display: flex; gap: 32px; font-size: 0.95rem; color: var(--dim); }
.nav-links a:hover { color: var(--text); }
@media (max-width: 720px) { .nav-links { display: none; } }

/* HERO */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 40px;
  padding: 120px var(--gutter) 60px;
  background: radial-gradient(120% 80% at 70% 10%, #0f3a66 0%, var(--bg) 60%);
}
.lamp {
  position: absolute; left: 50%; top: -30vh; width: 110vw; height: 90vh; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(86, 162, 255, 0.28), transparent 62%);
  filter: blur(20px); pointer-events: none;
}
.hero-mark {
  position: absolute; right: -8vw; bottom: -18vh; width: 70vw; height: 64vw; color: rgba(86, 162, 255, 0.06);
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 2; }
.hero-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(4rem, 12vw, 11rem); line-height: 0.86; letter-spacing: -0.055em;
  margin: 18px 0 28px;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-title .line > span { display: inline-block; }
.hero-title .line:last-child > span { color: var(--accent-bright); }
.hero-sub { color: var(--dim); font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.5; max-width: 34ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-phone { position: relative; z-index: 2; display: flex; justify-content: center; perspective: 1400px; }
.hero-phone .phone { transform: rotateY(-14deg) rotateX(6deg) rotateZ(2deg); }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 110px; }
  .hero-phone { margin-top: 20px; }
  .hero-phone .phone { transform: none; }
}

/* PHONE + APP UI (recreated from the live app) */
.phone {
  position: relative; width: min(330px, 78vw); aspect-ratio: 9 / 19.3;
  border-radius: 46px; padding: 11px;
  background: linear-gradient(145deg, #2a3647, #0c1622);
  box-shadow: 0 60px 120px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 92px; height: 26px; transform: translateX(-50%); background: #000; border-radius: 20px; z-index: 5; }
.screen {
  position: absolute; inset: 11px; border-radius: 36px; overflow: hidden;
  background: var(--bg-2); padding: 56px 16px 16px;
  display: flex; flex-direction: column; gap: 12px; font-size: 13px;
}
.swap { opacity: 0; transform: translateY(18px) scale(0.98); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.swap.is-on { opacity: 1; transform: none; }
.app-top { display: flex; justify-content: space-between; align-items: center; }
.app-mark { width: 22px; height: 20px; color: var(--accent-bright); }
.app-loc { font-size: 10px; letter-spacing: 0.08em; color: var(--dim); }
.app-search { background: var(--surface); border-radius: 12px; padding: 11px 14px; color: var(--dim); }
.chips { display: flex; gap: 6px; }
.chip { border: 1px solid rgba(243, 246, 250, 0.18); border-radius: 999px; padding: 5px 11px; font-size: 11px; color: var(--dim); }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.t-card { background: var(--surface); border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.t-banner { height: 62px; }
.felt-a { background: radial-gradient(circle at 70% 30%, #f5c542 0 9px, transparent 10px), radial-gradient(circle at 30% 60%, #fff 0 8px, transparent 9px), linear-gradient(135deg, #0f5a9e, #0a3563); }
.felt-b { background: radial-gradient(circle at 40% 40%, #d6353a 0 9px, transparent 10px), radial-gradient(circle at 62% 58%, #111 0 8px, transparent 9px), linear-gradient(135deg, #12664a, #0a3a2c); }
.t-body { display: flex; gap: 12px; padding: 12px; align-items: flex-start; }
.t-body b { display: block; font-family: var(--display); font-size: 14px; }
.t-body small { display: block; color: var(--dim); font-size: 11px; margin: 3px 0 7px; }
.t-rack { display: grid; grid-template-columns: repeat(3, 6px); gap: 3px; padding-top: 3px; }
.t-rack i { width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--accent-bright); }
.t-rack i:first-child { background: var(--accent-bright); }
.t-tags { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.tag { font-size: 10px; border: 1px solid rgba(86, 162, 255, 0.5); color: var(--accent-bright); border-radius: 999px; padding: 3px 8px; }
.tag.solid { background: #0b1a2a; color: var(--text); border-color: rgba(243, 246, 250, 0.25); font-weight: 600; letter-spacing: 0.04em; }
.fee { color: var(--accent-bright); font-weight: 600; font-size: 11px; }
.app-tabs { margin-top: auto; display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 12px; font-size: 10px; color: var(--dim); }
.app-tabs .on { color: var(--accent-bright); }

.d-banner { height: 140px; margin: -56px -16px 0; }
.d-body { display: flex; flex-direction: column; gap: 10px; }
.d-title { font-family: var(--display); font-size: 20px; letter-spacing: -0.02em; }
.d-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.d-grid div { background: var(--surface); border-radius: 12px; padding: 10px; }
.d-grid small { display: block; color: var(--dim); font-size: 10px; }
.d-grid b { font-family: var(--display); font-size: 15px; }
.bar { height: 6px; border-radius: 6px; background: var(--surface); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 6px; }
.field { display: flex; justify-content: space-between; background: var(--surface); border-radius: 12px; padding: 12px 14px; margin-top: 8px; }
.field small { color: var(--dim); }
.field span { font-family: var(--display); font-weight: 600; }
.pay { display: flex; flex-direction: column; gap: 8px; }
.pay-opt { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.pay-opt i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--dim); flex-shrink: 0; }
.pay-opt.on { border-color: var(--accent); background: rgba(47, 127, 224, 0.1); }
.pay-opt.on i { border-color: var(--accent-bright); box-shadow: inset 0 0 0 3px var(--bg-2); background: var(--accent-bright); }
.pay-opt b { display: block; font-size: 13px; }
.pay-opt small { color: var(--dim); font-size: 11px; }
.note { font-size: 11px; color: var(--dim); background: rgba(47, 127, 224, 0.08); border-radius: 10px; padding: 10px; }
.match { background: var(--surface); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 5px; border: 1px solid var(--line); }
.match > div { display: flex; justify-content: space-between; font-weight: 500; }
.match em { font-style: normal; font-family: var(--display); font-weight: 700; }
.match .out { color: var(--dim); }
.match small { color: var(--dim); font-size: 10px; }
.match.live { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.match.live small { color: var(--accent-bright); }

.toast {
  display: flex; gap: 10px; align-items: center;
  background: rgba(18, 48, 77, 0.92); backdrop-filter: blur(10px);
  border: 1px solid rgba(86, 162, 255, 0.35); border-radius: 16px; padding: 12px 14px;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.6);
}
.toast b { display: block; font-family: var(--display); font-size: 14px; }
.toast small { color: var(--dim); font-size: 11px; }
.toast-mark { width: 22px; height: 20px; color: var(--accent-bright); flex-shrink: 0; }
.float-a { position: absolute; left: max(-10px, calc(50% - 250px)); bottom: 16%; animation: floaty 5s ease-in-out infinite; }
.toast.in-phone { margin-top: auto; }
@keyframes floaty { 50% { transform: translateY(-12px); } }
@media (max-width: 900px) { .float-a { left: 4%; bottom: 6%; } }

/* MARQUEE */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; background: var(--bg-2); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; font-family: var(--display); font-size: clamp(1.2rem, 2.4vw, 2rem); font-weight: 600; color: var(--dim); }
.marquee-track span::after { content: "△"; margin-left: 48px; color: var(--accent); font-size: 0.7em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* PLAYERS */
.players { position: relative; }
.players-pin {
  height: 100svh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px;
  padding: 90px var(--gutter) 40px;
}
.steps { position: relative; margin-top: 24px; min-height: 340px; }
.step { position: absolute; inset: 0; opacity: 0; transform: translateY(30px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.step.is-on { opacity: 1; transform: none; }
.step-n { font-family: var(--display); color: var(--accent-bright); font-weight: 600; }
.step h2 { font-family: var(--display); font-size: clamp(2.2rem, 4.8vw, 4.2rem); line-height: 1; letter-spacing: -0.035em; margin: 14px 0 20px; }
.step p { color: var(--dim); font-size: 1.15rem; line-height: 1.55; max-width: 38ch; }
.players-phone { display: flex; justify-content: center; perspective: 1400px; }
.players-phone .phone { transform: rotateY(-10deg) rotateX(4deg); }
@media (max-width: 900px) {
  .players-pin { grid-template-columns: 1fr; gap: 10px; padding-top: 80px; }
  .steps { min-height: 230px; }
  .step h2 { font-size: 2rem; margin: 8px 0 10px; }
  .step p { font-size: 1rem; }
  .players-phone .phone { width: min(240px, 60vw); transform: none; }
  .players-phone .screen { font-size: 11px; }
}

/* BRACKET */
.bracket-sec { padding: 120px var(--gutter); display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 60px; align-items: center; }
.bracket-head .big { margin: 16px 0 22px; }
.bracket { width: 100%; height: auto; color: rgba(86, 162, 255, 0.45); overflow: visible; }
.bracket rect { fill: var(--surface); stroke: rgba(243, 246, 250, 0.1); }
.bracket text { fill: var(--text); }
.bracket .champ rect { fill: var(--accent); stroke: var(--accent-bright); }
.bracket .champ text { font-weight: 700; }
@media (max-width: 900px) { .bracket-sec { grid-template-columns: 1fr; padding-block: 80px; } }

/* HALLS */
.halls { padding: 120px var(--gutter); background: linear-gradient(180deg, var(--bg), #061423); }
.halls-head .big { margin: 16px 0 60px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.feature { background: var(--bg); padding: 34px 30px 40px; min-height: 260px; display: flex; flex-direction: column; transition: background 0.4s; }
.feature:hover { background: var(--bg-2); }
.f-n { font-family: var(--display); color: var(--accent-bright); font-weight: 600; margin-bottom: auto; }
.feature h3 { font-family: var(--display); font-size: 1.5rem; letter-spacing: -0.02em; margin: 40px 0 12px; }
.feature p { color: var(--dim); line-height: 1.55; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr; } .feature { min-height: 0; } }

/* SCOREBOARD */
.scoreboard { padding: 120px var(--gutter); display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.sb-copy .big { margin: 16px 0 22px; }
.sb-copy .btn { margin-top: 30px; }
.sb-demo { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); min-height: 320px; }
.sb-side { background: var(--bg-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; cursor: pointer; user-select: none; }
.sb-side.two { background: #0c2a44; }
.sb-side small { font-family: var(--display); letter-spacing: 0.14em; color: var(--accent-bright); font-weight: 600; }
.sb-side.two small { color: #4fd1c5; }
.sb-score { font-family: var(--display); font-size: clamp(5rem, 10vw, 9rem); line-height: 1; display: inline-block; }
.sb-mid { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 22px; background: #06131f; color: var(--dim); gap: 6px; }
.sb-mid b { color: var(--text); font-family: var(--display); font-size: 1.6rem; }
@media (max-width: 900px) { .scoreboard { grid-template-columns: 1fr; padding-block: 80px; } }

/* STORY */
.story { position: relative; padding: 140px var(--gutter); text-align: center; overflow: hidden; }
.story-mark { position: absolute; left: 50%; top: 50%; width: 520px; height: 480px; transform: translate(-50%, -50%); color: rgba(86, 162, 255, 0.07); }
.story-text { position: relative; font-family: var(--display); font-weight: 600; font-size: clamp(1.8rem, 3.6vw, 3.2rem); line-height: 1.15; letter-spacing: -0.03em; max-width: 26ch; margin: 0 auto; }
.story-text .w { opacity: 0.15; }

/* CTA */
.cta { padding: 140px var(--gutter) 160px; text-align: center; background: radial-gradient(90% 70% at 50% 100%, #0f3a66, var(--bg) 70%); }
.cta-title { font-family: var(--display); font-weight: 700; font-size: clamp(4.5rem, 14vw, 13rem); line-height: 0.9; letter-spacing: -0.06em; margin-bottom: 20px; }
.cta .lede { margin: 0 auto; }
.cta .hero-ctas { justify-content: center; }

.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 30px var(--gutter); border-top: 1px solid var(--line); color: var(--dim); font-size: 0.9rem; }
.footer nav { display: flex; gap: 24px; }
.footer a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .players-pin { height: auto; }
  .steps { min-height: 0; }
  .step { position: static; margin-bottom: 36px; }
  .players .swap:not([data-screen="0"]) { display: none; }
}
