:root {
  --bg: #f3f5f8;
  --surface: #ffffff;
  --ink: #10131a;
  --ink-soft: #2b3342;
  --brand: #00328a;
  --brand-strong: #00256a;
  --accent: #7aa7ff;
  --border: #d6ddea;
  --radius: 0.4rem;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --max: 72rem;
  --font-main: "Barlow", "Arial", "Helvetica Neue", "Helvetica", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main);
  font-weight: 500;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.58;
  letter-spacing: 0.002em;
}

a {
  color: inherit;
}

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

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.slim {
  max-width: 68rem;
}

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -3rem;
  background: var(--brand);
  color: #fff;
  padding: 0.5rem 0.75rem;
  z-index: 1000;
  border-radius: 0.4rem;
}

.skip-link:focus-visible {
  top: 0.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 25;
  background: rgba(0, 50, 138, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 4.15rem;
}

.brand img {
  width: 10.5rem;
  height: auto;
}

.menu-toggle {
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  color: #fff;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-weight: 700;
}

.site-nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  display: none;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
  background: rgba(0, 37, 106, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.site-nav.is-open {
  display: flex;
}

.site-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.site-nav a:hover {
  color: #d6e5ff;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
}

.hero {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #000;
}

.hero-video,
.hero-overlay {
  inset: 0;
}

.hero-video {
  position: relative;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero-overlay {
  position: absolute;
  background: rgba(7, 13, 28, 0.46);
}

.hero-content {
  position: absolute;
  z-index: 1;
  color: #fff;
  left: 0;
  right: 0;
  bottom: 0;
  padding-block: 1.1rem 1.3rem;
}

h1,
h2,
h3 {
  line-height: 1.07;
  margin: 0 0 var(--space-3);
}

h1 {
  font-size: clamp(2rem, 8.2vw, 4rem);
  max-width: 16ch;
  text-transform: uppercase;
  font-weight: 900;
}

h2 {
  text-transform: uppercase;
  font-size: clamp(1.7rem, 4.8vw, 2.55rem);
  letter-spacing: 0.01em;
  font-weight: 800;
}

.leagues h2,
.seasonal h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 0.35rem;
}

.leagues h2::after,
.seasonal h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0.26rem;
  border-radius: 999px;
  background: #0d4fc8;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 0.83rem;
  border-radius: 0.35rem;
  border: 2px solid transparent;
  min-height: 2.2rem;
  padding-inline: 1.05rem;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--brand);
  color: #fff;
  min-width: 10.4rem;
}

.button-primary:hover {
  background: var(--brand-strong);
}

.button-secondary {
  background: var(--brand);
  color: #fff;
  min-width: 12.3rem;
}

.section {
  padding-block: 2.25rem;
}

.intro,
.why,
.leagues,
.seasonal {
  background: var(--surface);
}

.intro {
  border-top: 1px solid var(--border);
}

.intro p,
.why p,
.seasonal-copy {
  margin: 0 0 var(--space-3);
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.5vw, 1.1rem);
  line-height: 1.72;
  font-weight: 500;
}

.intro-cta {
  margin-top: var(--space-2);
}

.why {
  padding-top: 0.5rem;
}

.pill-grid {
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-2);
}

.pill-grid li {
  border: 1px solid #ccd7ea;
  background: #fff;
  color: #355189;
  border-radius: 0.35rem;
  text-align: center;
  padding: 0.52rem 0.75rem;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.leagues {
  padding-bottom: 1rem;
}

.league-grid {
  display: grid;
  gap: 1.6rem;
  margin-top: 1.1rem;
}

.league-card {
  background: #ffffff;
  border: 2px solid #c5d5f4;
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(0, 28, 84, 0.1);
  padding: 1rem 1rem 1.15rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.league-card::before {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  top: -2px;
  height: 0.55rem;
  border-radius: 0;
  background: #0d4fc8;
}

.league-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 16px 30px rgba(0, 28, 84, 0.16);
  border-color: #98b7ef;
}

.league-card h3 {
  font-size: clamp(1.2rem, 3.7vw, 1.9rem);
  margin: 0.7rem 0 0.32rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  line-height: 1.12;
}

.meta {
  margin: 0 0 0.9rem;
  color: #213152;
  font-weight: 600;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.seasonal {
  padding-top: 1rem;
}

.league-card .button-secondary {
  min-width: 13.2rem;
  border: 2px solid #0a4cc0;
  background: #0d5be0;
  box-shadow: 0 8px 16px rgba(10, 76, 192, 0.2);
}

.league-card .button-secondary:hover {
  background: #0f67ff;
  border-color: #0f67ff;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #fff;
}

.footer-wrap {
  padding-block: var(--space-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
}

.footer-wrap p {
  margin: 0;
  color: #495168;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button,
  .reveal {
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 48rem) {
  .menu-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    position: static;
    background: transparent;
    border: 0;
    padding: 0;
    flex-direction: row;
    align-items: center;
    gap: 1.35rem;
  }

  .pill-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .league-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.6rem 2rem;
  }
}
