/* Season Sprint — landing page. THE FINALS-inspired theme, mirrors packages/web. */
:root {
  --bg: #0b0d12;
  --surface: #12151d;
  --surface-2: #171b25;
  --text: #d7dde7;
  --text-strong: #ffffff;
  --muted: #8b93a7;

  --primary: #ffd400;
  --accent: #4fd1ff;
  --success: #22d3a3;
  --danger: #ff3d7f;

  --ring: rgba(255, 212, 0, 0.45);
  --ring-strong: rgba(255, 212, 0, 0.8);
  --border: rgba(255, 212, 0, 0.18);

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";

  --maxw: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: radial-gradient(
      1200px 600px at 10% -10%,
      rgba(255, 212, 0, 0.08),
      transparent 60%
    ),
    radial-gradient(
      900px 500px at 100% 0%,
      rgba(79, 209, 255, 0.07),
      transparent 60%
    ),
    var(--bg);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

a {
  color: var(--text-strong);
  text-decoration: none;
}

img {
  display: block;
}

h1,
h2,
h3 {
  color: var(--text-strong);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #0b0d12;
  padding: 10px 14px;
  font-weight: 900;
  z-index: 100;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ── Buttons ── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid color-mix(in oklab, var(--primary) 36%, var(--surface));
  background: linear-gradient(180deg, #1e2430 0%, #131821 100%);
  color: var(--text-strong);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease,
    border-color 120ms ease, filter 120ms ease;
}
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45), 0 0 0 3px var(--ring);
  border-color: color-mix(in oklab, var(--primary) 52%, var(--surface));
}
.button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring), 0 10px 28px rgba(0, 0, 0, 0.5);
}
.button-lg {
  min-height: 52px;
  padding: 14px 26px;
  font-size: 15px;
}
.button-primary {
  background: linear-gradient(180deg, #ffd400 0%, #ffea00 100%);
  color: #0b0d12;
  border-color: var(--ring-strong);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 10px 30px rgba(255, 212, 0, 0.35);
}
.button-primary:hover {
  filter: saturate(1.05);
  box-shadow: 0 12px 34px rgba(255, 212, 0, 0.45), 0 0 0 3px var(--ring);
}
.button-ghost {
  background: transparent;
}
.button-ghost:hover {
  background: color-mix(in oklab, var(--surface) 90%, #000);
}

/* ── Header ── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  border-radius: 9px;
  box-shadow: 0 4px 16px rgba(206, 44, 48, 0.35);
}
.brand-name {
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-strong);
}
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav a:not(.button) {
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.nav a:not(.button):hover {
  color: var(--text-strong);
}

/* ── Hero ── */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 24px 72px;
}
.eyebrow {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 13px;
  margin: 0 0 14px;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.02;
  margin-bottom: 18px;
}
.hl {
  color: var(--primary);
  text-shadow: 0 0 36px rgba(255, 212, 0, 0.35);
}
.lede {
  color: var(--text);
  font-size: 18px;
  max-width: 46ch;
  margin: 0 0 28px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.cta-note {
  color: var(--muted);
  font-size: 13px;
  margin: 16px 0 0;
}

.hero-art {
  display: flex;
  justify-content: center;
}
.hero-shot {
  margin: 0;
  width: 100%;
  max-width: 460px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}
.hero-shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Sections ── */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 24px;
}
.section-title {
  font-size: clamp(24px, 3.4vw, 34px);
  text-align: center;
  margin-bottom: 40px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  transition: transform 140ms ease, border-color 140ms ease,
    box-shadow 140ms ease;
}
.feature:hover {
  transform: translateY(-3px);
  border-color: color-mix(in oklab, var(--primary) 42%, var(--surface));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.feature h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--primary);
}
.feature p {
  margin: 0;
  color: var(--text);
  font-size: 15px;
}

/* ── Showcase (device mockups) ── */
.section-showcase {
  text-align: center;
}
.showcase-lede {
  color: var(--muted);
  font-size: 16px;
  max-width: 54ch;
  margin: -24px auto 44px;
}
.showcase {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.browser {
  margin: 0;
  width: 100%;
  max-width: 760px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.browser-dots {
  display: inline-flex;
  gap: 6px;
  flex: none;
}
.browser-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a4150;
}
.browser-url {
  flex: 1;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  /* offset the dots so the url sits visually centred */
  margin-right: 52px;
}
.browser img {
  display: block;
  width: 100%;
  height: auto;
}
.phone {
  flex: none;
  margin: 0 0 -12px -64px;
  width: 196px;
  border-radius: 30px;
  border: 7px solid #20242e;
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
}
.phone img {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Platforms ── */
.platforms {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.platform {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  text-align: center;
  padding: 24px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 92%, #000);
  transition: transform 140ms ease, border-color 140ms ease,
    box-shadow 140ms ease;
}
.platform:hover {
  transform: translateY(-3px);
  border-color: var(--ring);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.platform-primary {
  border-color: var(--ring-strong);
  box-shadow: 0 0 0 1px rgba(255, 212, 0, 0.1),
    0 12px 30px rgba(255, 212, 0, 0.15);
}
.platform-soon {
  cursor: default;
  opacity: 0.6;
  border-style: dashed;
}
.platform-soon:hover {
  transform: none;
  border-color: var(--border);
  box-shadow: none;
}
.platform-soon .platform-note {
  color: var(--accent);
}
.platform-name {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-strong);
}
.platform-note {
  font-size: 12px;
  color: var(--muted);
}

/* ── Downloads page ── */
.downloads-head {
  text-align: center;
  padding-bottom: 8px;
}
.downloads-head h1 {
  font-size: clamp(34px, 5vw, 56px);
  margin-bottom: 16px;
}
.downloads-lede {
  margin-left: auto;
  margin-right: auto;
}
.downloads-lede a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.downloads-release {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 4px 0 0;
}
.downloads-section {
  padding-top: 24px;
}
.downloads {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.download-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 24px;
}
.dl-body {
  flex: 1;
}
.dl-name {
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 10px;
}
.dl-desc {
  margin: 0;
  color: var(--text);
  font-size: 14px;
}
.dl-meta {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.dl-install {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin: 14px 0 0;
}
.dl-install-cmd {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  color: var(--accent);
}
.dl-copy {
  flex: none;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.dl-copy:hover {
  border-color: var(--ring);
  color: var(--text-strong);
}
.dl-copy.is-copied {
  color: var(--success);
  border-color: var(--success);
}
.dl-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.dl-actions .button {
  align-self: stretch;
}
.dl-filename {
  color: var(--muted);
  font-size: 11px;
  word-break: break-all;
}
.download-card-soon {
  opacity: 0.6;
  border-style: dashed;
}
.dl-soon-note {
  align-self: flex-start;
  color: var(--accent);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.downloads-foot {
  max-width: 70ch;
  margin: 32px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.downloads-foot a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Final CTA ── */
.cta-band {
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(24px, 3.4vw, 34px);
  margin-bottom: 24px;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  max-width: var(--maxw);
  margin: 24px auto 0;
  padding: 28px 24px 48px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand-sm span {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.brand-sm img {
  border-radius: 7px;
}
.footer-nav {
  display: flex;
  gap: 20px;
}
.footer-nav a {
  color: var(--muted);
  font-size: 14px;
}
.footer-nav a:hover {
  color: var(--text-strong);
}
.footer-note {
  color: var(--muted);
  font-size: 13px;
  margin: 18px 0 0;
}
.footer-disclaimer {
  color: var(--muted);
  font-size: 12px;
  opacity: 0.8;
  max-width: 70ch;
  margin: 8px 0 0;
}

/* ── Responsive ── */
@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 40px 24px 56px;
  }
  .hero-art {
    order: -1;
  }
  .showcase {
    flex-direction: column;
    align-items: center;
  }
  .phone {
    margin: -52px 0 0;
    width: 172px;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .platforms {
    grid-template-columns: repeat(2, 1fr);
  }
  .downloads {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .nav a:not(.button) {
    display: none;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .platforms {
    grid-template-columns: 1fr 1fr;
  }
  .downloads {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 48px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
