/* ─── Design System ──────────────────────────────────────────── */
:root {
  --green-50: #f0fdf4;
  --green-100: #dcfce7;
  --green-200: #bbf7d0;
  --green-300: #86efac;
  --green-400: #4ade80;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;
  --green-800: #166534;
  --green-900: #14532d;

  --neutral-50: #fafafa;
  --neutral-100: #f5f5f4;
  --neutral-200: #e7e5e4;
  --neutral-300: #d6d3d1;
  --neutral-400: #a8a29e;
  --neutral-500: #78716c;
  --neutral-600: #57534e;
  --neutral-700: #44403c;
  --neutral-800: #292524;
  --neutral-900: #1c1917;

  --ink: var(--neutral-900);
  --ink-muted: var(--neutral-600);
  --surface: var(--neutral-50);
  --surface-card: #ffffff;
  --border: var(--neutral-200);

  --max-width: 1100px;
  --content-width: 720px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

/* ─── Reset ─────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--surface);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--green-600);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover,
a:focus-visible {
  color: var(--green-700);
}

/* ─── Navigation ────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--ink);
}

.nav-logo img {
  height: 28px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-muted);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--green-600);
  border-bottom-color: var(--green-400);
}

.nav-cta {
  background: var(--green-600);
  color: white !important;
  padding: 8px 20px !important;
  border-radius: var(--radius-full);
  border-bottom: none !important;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--green-700) !important;
  color: white !important;
  transform: translateY(-1px);
}

/* ─── Hero Section ──────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--neutral-50) 0%, var(--green-50) 50%, var(--neutral-50) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 10% 30%, rgba(22, 163, 74, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 500px 500px at 90% 70%, rgba(22, 163, 74, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
}

.hero-content {
  animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-100);
  color: var(--green-800);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw + 1rem, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero h1 .accent {
  display: block;
  background: linear-gradient(135deg, var(--green-600), var(--green-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .sub {
  font-size: 1.125rem;
  color: var(--ink-muted);
  max-width: 32em;
  margin-bottom: 32px;
  line-height: 1.7;
}

/* ─── Waitlist Form ─────────────────────────────────────────── */
.waitlist-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin-bottom: 20px;
}

.waitlist-form input[type="email"] {
  flex: 1;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  background: white;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.waitlist-form input[type="email"]:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

.waitlist-form input[type="email"]::placeholder {
  color: var(--neutral-400);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--green-600);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--green-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.form-status {
  font-size: 0.875rem;
  color: var(--ink-muted);
  min-height: 24px;
}

.form-status.success {
  color: var(--green-600);
}

.form-status.error {
  color: #dc2626;
}

.hero-social {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.hero-social .avatars {
  display: flex;
}

.hero-social .avatars span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid white;
  background: var(--green-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green-800);
  margin-right: -8px;
}

.hero-social .avatars span:last-child {
  margin-right: 0;
}

/* ─── Hero Visual ───────────────────────────────────────────── */
.hero-visual {
  animation: fadeIn 1s ease-out 0.3s both;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-mockup {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 3 / 4;
  background: linear-gradient(145deg, var(--green-100), var(--green-50));
  border-radius: 32px;
  border: 1px solid var(--green-200);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 20px 60px rgba(22, 163, 74, 0.15),
    0 4px 16px rgba(0, 0, 0, 0.06);
}

.mockup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green-300);
}

.mockup-dots {
  display: flex;
  gap: 4px;
}

.mockup-dots .mockup-dot:nth-child(1) { background: #ef4444; }
.mockup-dots .mockup-dot:nth-child(2) { background: #eab308; }
.mockup-dots .mockup-dot:nth-child(3) { background: #22c55e; }

.mockup-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green-700);
  letter-spacing: 0.05em;
}

.mockup-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mockup-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.mockup-row .emoji {
  font-size: 1.25rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-50);
  border-radius: var(--radius-sm);
}

.mockup-row .text {
  flex: 1;
}

.mockup-row .text .name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.mockup-row .text .meta {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.mockup-row .rank {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green-600);
  background: var(--green-100);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.mockup-cta {
  margin-top: auto;
  background: var(--green-600);
  color: white;
  text-align: center;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
}

/* ─── Section Shared Styles ─────────────────────────────────── */
.section {
  padding: 80px 24px;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--green-700);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section h2 {
  font-size: clamp(1.75rem, 3vw + 0.5rem, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section .section-sub {
  font-size: 1.0625rem;
  color: var(--ink-muted);
  max-width: 36em;
  line-height: 1.7;
  margin-bottom: 48px;
}

.centered {
  text-align: center;
}

.centered .section-sub {
  margin-left: auto;
  margin-right: auto;
}

/* ─── Features Grid ─────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--green-100);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

/* ─── Sports Section ────────────────────────────────────────── */
.sports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.sport-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.sport-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  border-color: var(--green-300);
}

.sport-card .emoji {
  font-size: 2rem;
  line-height: 1;
}

.sport-card .info {
  display: flex;
  flex-direction: column;
}

.sport-card .name {
  font-weight: 600;
  font-size: 0.9375rem;
}

.sport-card .count {
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

/* ─── CTA Section ───────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--green-800) 0%, var(--green-700) 100%);
  color: white;
  text-align: center;
  padding: 96px 24px;
}

.cta-section h2 {
  font-size: clamp(1.75rem, 3vw + 0.5rem, 2.5rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-section .sub {
  font-size: 1.0625rem;
  opacity: 0.85;
  max-width: 32em;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.cta-section .waitlist-form input[type="email"] {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.cta-section .waitlist-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.cta-section .waitlist-form input[type="email"]:focus {
  border-color: var(--green-300);
  box-shadow: 0 0 0 3px rgba(134, 239, 172, 0.25);
}

.cta-section .btn-primary {
  background: white;
  color: var(--green-800);
}

.cta-section .btn-primary:hover,
.cta-section .btn-primary:focus-visible {
  background: var(--green-100);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ─── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: var(--neutral-900);
  color: var(--neutral-400);
  padding: 64px 24px 40px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  margin-top: 12px;
  max-width: 28em;
}

.footer-brand img {
  height: 28px;
  width: auto;
}

.footer-column h4 {
  color: white;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-column a {
  color: var(--neutral-400);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-column a:hover,
.footer-column a:focus-visible {
  color: white;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--neutral-700);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
}

.footer-bottom nav {
  display: flex;
  gap: 16px;
}

.footer-bottom a {
  color: var(--neutral-500);
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: var(--neutral-300);
}

/* ─── Legal Pages ───────────────────────────────────────────── */
.legal-page {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 80px 24px;
}

.legal-page .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9375rem;
  color: var(--ink-muted);
  margin-bottom: 32px;
}

.legal-page .back-link:hover {
  color: var(--green-600);
}

.legal-page h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.legal-page .updated {
  color: var(--ink-muted);
  font-size: 0.875rem;
  margin-bottom: 40px;
}

.legal-page h2 {
  margin-top: 40px;
  font-size: 1.25rem;
  font-weight: 700;
}

.legal-page p,
.legal-page li {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--ink-muted);
}

.legal-page ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0;
}

.legal-page a {
  color: var(--green-600);
}

.legal-page a:hover {
  text-decoration: underline;
}

/* ─── Animations ────────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  /* Visible by default — animation is enhancement only */
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

html.js .fade-in {
  opacity: 0;
  transform: translateY(24px);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Mobile Menu ───────────────────────────────────────────── */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
}

.mobile-toggle svg {
  display: block;
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 56px 24px 64px;
    gap: 48px;
  }

  .hero-visual {
    order: -1;
  }

  .hero-mockup {
    max-width: 300px;
  }

  .waitlist-form {
    flex-direction: column;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
    gap: 12px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 12px 0;
    border-bottom: none;
  }

  .nav-cta {
    text-align: center;
  }

  .mobile-toggle {
    display: block;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .sports-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .section {
    padding: 60px 20px;
  }

  .cta-section {
    padding: 72px 20px;
  }
}

@media (max-width: 480px) {
  .sports-grid {
    grid-template-columns: 1fr;
  }

  .hero-social {
    flex-wrap: wrap;
  }
}

/* ─── Smooth scroll offset for anchor links ─────────────────── */
.anchor-offset {
  scroll-margin-top: 80px;
}