/* ── Reset & Base ───────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --court-50: #eefcfc;
  --court-100: #d5f6f6;
  --court-200: #b0ecee;
  --court-300: #7adde1;
  --court-400: #3dc5cc;
  --court-500: #22a9b1;
  --court-600: #1f8895;
  --court-700: #206e79;
  --court-800: #225a64;
  --court-900: #214b55;
  --court-950: #103139;

  --match-500: #f59e0b;
  --rally-500: #10b981;

  --noir-950: #09090b;
  --noir-900: #18181b;
  --noir-700: #3f3f46;
  --noir-500: #71717a;
  --noir-300: #d4d4d8;
  --noir-200: #e4e4e7;
  --noir-100: #f4f4f5;
  --noir-50: #fafafa;
  --white: #ffffff;

  --font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --max-width: 1120px;
  --section-padding: 96px 24px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  color: var(--noir-900);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ── Utility ───────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--court-500);
  margin-bottom: 12px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--noir-950);
}

.section-subtitle {
  font-size: 18px;
  font-weight: 300;
  color: var(--noir-500);
  max-width: 560px;
}

/* ── Nav ───────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--noir-200);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__logo svg {
  width: 20px;
  height: 24px;
  color: var(--noir-950);
}

.nav__wordmark {
  font-size: 22px;
  color: var(--noir-950);
  letter-spacing: -0.5px;
}

.nav__wordmark span:first-child {
  font-weight: 300;
}

.nav__wordmark span:last-child {
  font-weight: 700;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--noir-500);
  transition: color 0.15s;
}

.nav__links a:hover {
  color: var(--noir-950);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white) !important;
  background: var(--court-500);
  border-radius: 6px;
  transition: background 0.15s;
}

.nav__cta:hover {
  background: var(--court-600);
}

.nav__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__hamburger svg {
  width: 24px;
  height: 24px;
  color: var(--noir-700);
}

/* ── Hero ──────────────────────────────────────── */
.hero {
  padding: 160px 24px 96px;
  text-align: center;
  background: linear-gradient(180deg, var(--court-50) 0%, var(--white) 100%);
}

.hero__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 32px;
}

.hero__logo svg {
  width: 48px;
  height: 58px;
  color: var(--noir-950);
}

.hero__wordmark {
  font-size: 56px;
  letter-spacing: -1px;
}

.hero__wordmark span:first-child {
  font-weight: 300;
}

.hero__wordmark span:last-child {
  font-weight: 700;
}

.hero__headline {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--noir-950);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero__sub {
  font-size: 20px;
  font-weight: 300;
  color: var(--noir-500);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font);
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
}

.btn--primary {
  background: var(--court-500);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--court-600);
}

.btn--outline {
  background: transparent;
  color: var(--noir-700);
  border: 1.5px solid var(--noir-300);
}

.btn--outline:hover {
  border-color: var(--noir-500);
  color: var(--noir-950);
}

.hero__supported-label {
  margin-top: 48px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--noir-300);
  margin-bottom: 10px;
}

.hero__sports {
  margin-top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--noir-500);
  letter-spacing: 0.5px;
}

.hero__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--court-400);
  flex-shrink: 0;
}

/* ── Features ─────────────────────────────────── */
.features {
  padding: var(--section-padding);
}

.features__header {
  text-align: center;
  margin-bottom: 64px;
}

.features__header .section-subtitle {
  margin: 0 auto;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  padding: 32px;
  border-radius: 12px;
  border: 1px solid var(--noir-200);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.feature-card:hover {
  border-color: var(--court-200);
  box-shadow: 0 4px 24px rgba(34, 169, 177, 0.08);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--court-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 22px;
}

.feature-card__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--noir-950);
}

.feature-card__desc {
  font-size: 15px;
  font-weight: 300;
  color: var(--noir-500);
  line-height: 1.6;
}

/* ── Screenshots (scroll-locked sticky) ───────── */

/* Outer wrapper — extra height creates the "locked" scroll distance */
.screenshots-scroll {
  height: 250vh;            /* 1 viewport to show + 1.5 viewports of scroll travel */
  position: relative;
}

/* Sticky panel — pins to viewport while user scrolls the wrapper */
.screenshots-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Background layers */
.screenshots__bg-light,
.screenshots__bg-dark {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.screenshots__bg-light {
  background: var(--noir-100);
}

.screenshots__bg-dark {
  background: var(--noir-950);
  opacity: 0;
}

/* Content sits above backgrounds */
.screenshots__content {
  position: relative;
  z-index: 1;
}

.screenshots__header {
  text-align: center;
  margin-bottom: 48px;
}

.screenshots__header .section-subtitle {
  margin: 0 auto;
}

.screenshots__gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.screenshot-frame {
  text-align: center;
}

.screenshot-stack {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.screenshot-stack img {
  width: 100%;
  display: block;
}

.screenshot-light {
  position: relative;
  z-index: 1;
}

.screenshot-dark {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
}

.screenshot-label {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--noir-500);
}

.screenshots__mode-label {
  text-align: center;
  margin-top: 32px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--noir-300);
}

/* ── Pricing ──────────────────────────────────── */
.pricing {
  padding: var(--section-padding);
}

.pricing__header {
  text-align: center;
  margin-bottom: 48px;
}

.pricing__header .section-subtitle {
  margin: 0 auto;
}

.pricing__card {
  max-width: 420px;
  margin: 0 auto;
  border: 2px solid var(--court-200);
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
  background: var(--white);
}

.pricing__badge {
  display: inline-block;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--court-50);
  color: var(--court-700);
  border-radius: 20px;
  margin-bottom: 20px;
}

.pricing__price {
  font-size: 56px;
  font-weight: 700;
  color: var(--noir-950);
  margin-bottom: 8px;
}

.pricing__period {
  font-size: 16px;
  font-weight: 300;
  color: var(--noir-500);
  margin-bottom: 32px;
}

.pricing__features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
}

.pricing__features li {
  padding: 10px 0;
  font-size: 15px;
  font-weight: 400;
  color: var(--noir-700);
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--noir-100);
}

.pricing__features li:last-child {
  border-bottom: none;
}

.pricing__check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--rally-500);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pricing__check svg {
  width: 12px;
  height: 12px;
  color: var(--white);
}

.pricing__card .btn {
  width: 100%;
  justify-content: center;
}

/* ── About ────────────────────────────────────── */
.about {
  padding: var(--section-padding);
  background: var(--noir-100);
}

.about__inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.about__inner .section-subtitle {
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.7;
}

/* ── Footer ───────────────────────────────────── */
.footer {
  padding: 48px 24px;
  background: var(--noir-950);
  color: var(--noir-300);
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__logo svg {
  width: 18px;
  height: 22px;
  color: var(--white);
}

.footer__logo-text {
  font-size: 18px;
  color: var(--white);
}

.footer__logo-text span:first-child {
  font-weight: 300;
}

.footer__logo-text span:last-child {
  font-weight: 700;
}

.footer__links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer__links a {
  font-size: 14px;
  color: var(--noir-500);
  transition: color 0.15s;
}

.footer__links a:hover {
  color: var(--white);
}

.footer__copy {
  width: 100%;
  text-align: center;
  padding-top: 32px;
  margin-top: 24px;
  border-top: 1px solid var(--noir-900);
  font-size: 13px;
  color: var(--noir-700);
}

/* ── Responsive ───────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --section-padding: 64px 20px;
  }

  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: block;
  }

  /* Mobile menu */
  .nav.open .nav__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--noir-200);
    padding: 24px;
    gap: 20px;
  }

  .hero {
    padding: 120px 20px 64px;
  }

  .hero__logo svg {
    width: 36px;
    height: 44px;
  }

  .hero__wordmark {
    font-size: 40px;
  }

  .hero__headline {
    font-size: 32px;
  }

  .hero__sub {
    font-size: 17px;
  }

  .hero__sports {
    gap: 12px;
    flex-wrap: wrap;
  }

  .features__grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 28px;
  }

  .screenshots-scroll {
    height: 220vh;
  }

  .screenshots__gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .pricing__card {
    padding: 32px 24px;
  }

  .pricing__price {
    font-size: 44px;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__links {
    flex-wrap: wrap;
    justify-content: center;
  }
}
