/* ===========================
   OnSport AI — design tokens
   =========================== */
:root {
  --bg: #07080A;
  --bg-press: #0D0F12;
  --bg-card: #14171B;
  --bg-light: #F2F3F5;
  --bg-hero: #000000;

  --text: #FFFFFF;
  --text-2: #E4E6EA;
  --text-3: #B4B9C1;
  --text-body: #9BA1AB;
  --text-meta: #80868F;

  --ink: #0B0D10;
  --ink-2: #3F444C;
  --ink-body: #5B616B;
  --ink-placeholder: #6B7079;

  --line: rgba(255, 255, 255, 0.08);
  --rule: rgba(255, 255, 255, 0.1);
  --field-line: #858B94;

  --btn-light-hover: #D9DCE1;
  --btn-dark-hover: #2A2E35;

  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --section-pad: clamp(96px, 11vw, 144px);
  --block-gap: clamp(40px, 5vw, 64px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; background: var(--bg); }
body {
  color: #F4F5F7;
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, video { display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--text); }
input, textarea, button { font: inherit; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
::selection { background: #FFFFFF; color: var(--ink); }
[id] { scroll-margin-top: 88px; }

a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 3px;
  border-radius: 999px;
}
.section--light a:focus-visible, .section--light button:focus-visible { outline-color: var(--ink); }
input:focus-visible, textarea:focus-visible { outline: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.container { max-width: 1200px; margin: 0 auto; }
.section { padding: var(--section-pad) 24px; }
.section--flush-top { padding-top: 0; }
.section--light { background: var(--bg-light); color: var(--ink); }
.section--light a:hover { color: var(--ink); }
.mono { font-family: var(--mono); }

/* ---------- Type ---------- */
.h2 {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.035em;
}
.h2--spaced { margin-bottom: 24px; }
.lead {
  margin: 0;
  color: var(--text-body);
  font-size: 19px;
  line-height: 1.65;
}
.lead--bright { color: var(--text-3); }
.label {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-body);
  margin-bottom: 16px;
}
.label--white { color: var(--text); }

/* Heading + paragraph block where the paragraph wraps at the heading's width */
.intro {
  position: relative;
  display: grid;
  gap: 24px;
  width: fit-content;
  max-width: 100%;
}
.intro__head { min-width: 0; }
.intro__body { width: 0; min-width: 100%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; font-weight: 600; }
.btn--lg { height: 48px; padding: 0 24px; font-size: 15px; font-weight: 600; }
.btn--light { background: #FFFFFF; color: var(--ink); }
.btn--light:hover { background: var(--btn-light-hover); color: var(--ink); }
.btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  padding: 0 22px;
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.4); color: #FFFFFF; }
.btn--dark { background: var(--ink); color: #FFFFFF; }
.btn--dark:hover { background: var(--btn-dark-hover); color: #FFFFFF; }

/* ---------- Logo ---------- */
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo__icon { height: 28px; width: auto; }
.logo__word { height: 20px; width: auto; }

/* ---------- 0. Nav ---------- */
.nav-wrap {
  position: fixed;
  top: 16px; left: 0; right: 0;
  z-index: 50;
  padding: 0 16px;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  max-width: 1120px;
  height: 60px;
  margin: 0 auto;
  padding: 0 10px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--rule);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  transition: background 240ms ease, box-shadow 240ms ease;
}
.nav.is-scrolled {
  background: rgba(14, 16, 19, 0.72);
  box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}
.nav__links a { padding: 8px 14px; border-radius: 999px; transition: background 160ms ease, color 160ms ease; }
.nav__links a:hover { background: rgba(255, 255, 255, 0.08); color: #FFFFFF; }
@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav { padding-left: 18px; }
}

/* ---------- 1. Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-hero);
}
.hero__video {
  position: absolute;
  top: -40px; left: -40px;
  width: calc(100% + 80px);
  height: calc(100% + 80px);
  object-fit: cover;
  filter: blur(10px);
  transform: scale(1.04);
}
.hero__shade { position: absolute; inset: 0; background: rgba(3, 4, 6, 0.75); pointer-events: none; }
.hero__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 45%, rgba(3, 4, 6, 0) 0%, rgba(3, 4, 6, 0.55) 100%),
    linear-gradient(180deg, rgba(7, 8, 10, 0) 65%, var(--bg) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 140px 24px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero__title {
  margin: 0;
  color: #FFFFFF;
  font-weight: 500;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 15ch;
}
.hero__sub {
  margin: 28px 0 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}
.hero__strip {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.6);
}
.video-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 14px 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}
.video-toggle:hover { background: rgba(255, 255, 255, 0.12); color: #FFFFFF; }
.video-toggle__icon {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  letter-spacing: 0;
}

/* ---------- 2. Where we work ---------- */
.regions, .photos { list-style: none; margin: 0; padding: 0; }
.regions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
  margin-top: var(--block-gap);
}
.region {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
}
.region__map { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.region__map img {
  position: absolute;
  height: auto;
  max-width: none;
  opacity: 0.22;
}
.region__map::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 75% 70% at 50% 45%, rgba(7, 8, 10, 0) 50%, rgba(7, 8, 10, 0.85) 100%);
}
.region__name {
  position: relative;
  display: block;
  padding: 0 28px 24px;
  margin-top: -8px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
  margin-top: 24px;
}
.photo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 18px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--bg-card);
  border: 1px solid var(--line);
}
.photo__img {
  position: absolute;
  /* Extra room above and below so the scroll drift never shows an edge */
  top: -24px; left: 0;
  width: 100%;
  height: calc(100% + 48px);
  object-fit: cover;
  z-index: -2;
  filter: grayscale(1) brightness(0.85) contrast(1.08);
  will-change: transform;
}
.photo__img--bright { filter: grayscale(1) brightness(1.15) contrast(1.05); }
.photo::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 8, 10, 0.15) 0%, rgba(7, 8, 10, 0.35) 30%, rgba(7, 8, 10, 0.82) 58%, rgba(7, 8, 10, 0.97) 100%);
}
.photo__text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 24px 22px;
  min-height: clamp(180px, calc(330px - 10vw), 240px);
}
.photo__title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}
.photo__text p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.6; }

/* ---------- 3. Data partnership ---------- */
.data-panel {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: var(--bg-press);
  border: 1px solid var(--line);
  padding: clamp(40px, 6vw, 80px);
}
.data-panel__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
}

/* ---------- 4. Who's behind it ---------- */
.team__head { max-width: 100%; margin-bottom: var(--block-gap); }
.stats {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: var(--ink);
  box-shadow: 0 40px 80px -40px rgba(11, 13, 16, 0.45);
}
.stats__dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 14px 14px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}
.stats__row {
  position: relative;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
}
.stat {
  flex: 1 1 220px;
  min-width: 0;
  padding: clamp(24px, 2.6vw, 36px);
  /* Negative margin hides the divider on whichever column starts a row */
  border-left: 1px solid var(--line);
  margin-left: -1px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.stat__num {
  font-size: clamp(64px, 6.4vw, 96px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
  color: #FFFFFF;
}
.stat__label { margin: 0; color: var(--text-3); font-size: 15px; line-height: 1.5; }
.stats__edge {
  position: relative;
  height: 3px;
  background: linear-gradient(90deg, rgba(11, 13, 16, 0), var(--ink) 50%, rgba(11, 13, 16, 0));
  opacity: 0.8;
}
.bios {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  /* One column until all three cards fit side by side, so no card is left alone on a row */
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 980px) {
  .bios { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.bio {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px;
  border-radius: 20px;
  background: #FFFFFF;
  border: 1px solid rgba(11, 13, 16, 0.06);
}
.bio__head { display: flex; align-items: center; gap: 16px; }
.bio__photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.bio__name { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: -0.02em; color: var(--ink); }
.bio__title { margin: 4px 0 0; font-size: 14px; line-height: 1.4; color: var(--ink-body); }
.bio__text { margin: 0; font-size: 15px; line-height: 1.65; color: var(--ink-2); }
@media (max-width: 520px) {
  .stat { border-left: 0; margin-left: 0; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: 0; }
}

/* ---------- 5. What it changes ---------- */
.changes__title { margin-bottom: var(--block-gap); }
.change {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 16px clamp(32px, 4vw, 64px);
  align-items: start;
  padding: clamp(32px, 4vw, 48px) 0;
  border-top: 1px solid var(--rule);
}
.change:last-child { border-bottom: 1px solid var(--rule); }
.change__label {
  /* Nudges the label so the tops of its capitals line up with the smaller text in the other two columns */
  padding-top: 1.5px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}
.change__head {
  margin: 0;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--text-2);
}
.change__body {
  margin: 0;
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.65;
}

/* ---------- 6. Why this matters ---------- */
.section--press {
  position: relative;
  overflow: hidden;
  background: var(--bg-press);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.press__dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 20% 50%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 20% 50%, #000 0%, transparent 75%);
}
.two-col {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 40px clamp(40px, 6vw, 80px);
  align-items: start;
}
.two-col--center { align-items: center; }
.press__copy {
  margin: 0;
  max-width: 480px;
  color: var(--text-body);
  font-size: 17px;
  line-height: 1.65;
}
.quote {
  margin: 0;
  padding: clamp(28px, 3.5vw, 44px);
  border-radius: 24px;
  border: 1px solid var(--rule);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 40px 80px -40px rgba(255, 255, 255, 0.18);
}
.quote__meta { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.quote__source {
  font-size: 13px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}
.quote__date { font-size: 11px; letter-spacing: 0.12em; color: var(--text-meta); }
.quote__body {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.55;
  letter-spacing: -0.01em;
}
.quote__body p { margin: 0; }
.quote__second { color: #C3C7CE; }
.quote__caption {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}
.quote__caption span { color: var(--text-body); }
.quote__caption a { color: #FFFFFF; font-weight: 500; }
.quote__caption a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 7. Get started ---------- */
.demo { overflow-x: clip; }
.demo__title {
  margin: 0 0 24px;
  font-size: clamp(32px, 3.8vw, 52px);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.04em;
}
.demo__copy { margin: 0; max-width: 420px; color: var(--ink-body); font-size: 17px; line-height: 1.65; }

.glass {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 28px;
  padding: clamp(24px, 3vw, 40px);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.5) 100%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  backdrop-filter: blur(28px) saturate(160%);
  box-shadow: 0 40px 80px -40px rgba(20, 22, 26, 0.35), inset 0 1px 0 rgba(255, 255, 255, 1);
}
.glass__line {
  position: absolute;
  top: 0; left: 40px; right: 40px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(11, 13, 16, 0), rgba(11, 13, 16, 0.5) 70%, rgba(11, 13, 16, 0));
}

.form { display: flex; flex-wrap: wrap; gap: 20px 16px; }
.form[hidden] { display: none; }

/* Notched outline field: label always sits in the notch */
.field { position: relative; display: block; flex: 1 1 220px; min-width: 0; padding-top: 8px; }
.field--full { flex-basis: 100%; }
.field__outline {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0 10px;
  min-width: 0;
  pointer-events: none;
  border: 1px solid var(--field-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.field__outline legend {
  padding: 0 6px;
  font-size: 13px;
  line-height: 16px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color 160ms ease;
}
.field:hover .field__outline { border-color: var(--ink); }
.field:focus-within .field__outline {
  border: 2px solid var(--ink);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 4px rgba(11, 13, 16, 0.12);
}
.field:focus-within .field__outline legend { color: var(--ink); margin-left: -1px; }
.field.is-invalid .field__outline { border-color: #B3261E; }
.field.is-invalid:focus-within .field__outline { box-shadow: 0 0 0 4px rgba(179, 38, 30, 0.14); }

.field__input {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 56px;
  padding: 0 17px;
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 14px;
  outline: none;
  color: var(--ink);
  caret-color: var(--ink);
  font-size: 16px;
  line-height: 24px;
  -webkit-appearance: none;
  appearance: none;
}
.field__input--multi { height: auto; min-height: 128px; padding: 14px 17px; resize: vertical; }
.field__input::placeholder { color: var(--ink-placeholder); opacity: 1; }

.form__errors { flex: 1 1 100%; display: flex; flex-direction: column; gap: 4px; }
.form__errors[hidden] { display: none; }
.form__error { margin: 0; font-size: 14px; line-height: 1.5; color: #B3261E; }
.form__error a { color: var(--ink); text-decoration: underline; }

.btn--submit {
  flex: 1 1 100%;
  margin-top: 8px;
  height: 54px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 12px 32px -14px rgba(0, 0, 0, 0.8);
}
.btn--submit[disabled] { opacity: 0.7; cursor: progress; }

.demo__done { padding: 24px 8px; }
.demo__done:focus { outline: none; }
.demo__done .label { margin-bottom: 12px; }
.demo__done-title { margin: 0; font-size: 24px; font-weight: 500; letter-spacing: -0.025em; line-height: 1.3; }

/* ---------- 8. Footer ---------- */
.footer { padding: 56px 24px 40px; }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; color: var(--text-body); }
.footer__copy { font-size: 13px; color: var(--text-meta); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .photo__img { transform: none !important; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
