:root {
  color-scheme: dark;
  --bg: #070b14;
  --bg-alt: #0d1424;
  --card-bg: #111b2e;
  --accent-1: #34d399;
  --accent-2: #38bdf8;
  --btn-accent-1: #047857;
  --btn-accent-2: #0369a1;
  --accent-gradient: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 100%);
  --btn-gradient: linear-gradient(135deg, var(--btn-accent-1) 0%, var(--btn-accent-2) 100%);
  --text-main: #f3f6fb;
  --text-muted: #9fb0c9;
  --border-subtle: rgba(255, 255, 255, 0.11);
  --border-card-hover: rgba(52, 211, 153, 0.55);
  --focus-ring: #38bdf8;
  --radius-lg: 1.25rem;
  --radius-md: 0.875rem;
  --radius-full: 999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

body {
  min-block-size: 100dvh;
  background-color: var(--bg);
  color: var(--text-main);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.logo {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

:where(a:any-link, button):focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.container {
  inline-size: 100%;
  max-inline-size: 71.25rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* Navbar */
.navbar {
  position: sticky;
  inset-block-start: 0;
  z-index: 100;
  min-block-size: 4.5rem;
  display: flex;
  align-items: center;
  background-color: rgba(7, 11, 20, 0.82);
  backdrop-filter: blur(14px);
  border-block-end: 1px solid var(--border-subtle);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-block-size: 2.75rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
}

.logo-accent {
  color: var(--accent-1);
}

.logo-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border-radius: 0.375rem;
  background-color: rgba(52, 211, 153, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #6ee7b7;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-block-size: 2.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  color: #ffffff;
  background: var(--btn-gradient);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  }

  .btn .arrow {
    transition: transform 0.2s ease;
  }

  .btn:hover .arrow {
    transform: translateX(4px);
  }
}

.btn-nav {
  padding: 0.625rem 1.375rem;
  font-size: 0.9375rem;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.28);
}

.btn-nav:hover {
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

@media (prefers-reduced-motion: no-preference) {
  .btn-nav:hover {
    transform: translateY(-2px);
  }
}

.btn-large {
  min-block-size: 3.5rem;
  padding: 1rem 2.5rem;
  font-size: 1.0625rem;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.32);
}

.btn-large:hover {
  box-shadow: 0 12px 32px rgba(56, 189, 248, 0.42);
}

@media (prefers-reduced-motion: no-preference) {
  .btn-large:hover {
    transform: translateY(-3px) scale(1.02);
  }
}

/* Compositor-friendly entrance pulse (runs 2 cycles <= 5s on load) */
.pulse::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid rgba(52, 211, 153, 0.5);
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .pulse::before {
    animation: pulse-ring 2.2s ease-out 2;
  }
}

@keyframes pulse-ring {
  0% {
    opacity: 0.75;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.08, 1.24);
  }
}

/* Hero */
.hero {
  position: relative;
  padding-block: 7rem 6.5rem;
  overflow: hidden;
  text-align: center;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: center 42%;
  opacity: 0.34;
  pointer-events: none;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 35%, rgba(7, 11, 20, 0.48) 0%, rgba(7, 11, 20, 0.85) 75%),
    linear-gradient(180deg, rgba(7, 11, 20, 0.55) 0%, rgba(7, 11, 20, 0.68) 60%, var(--bg) 100%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  inset-block-start: -13rem;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  inline-size: min(58rem, 125vw);
  block-size: 56rem;
  background: radial-gradient(
    circle,
    rgba(16, 185, 129, 0.22) 0%,
    rgba(14, 165, 233, 0.12) 42%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-pitch-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 4rem 4rem;
  mask-image: radial-gradient(circle at 50% 35%, black 15%, transparent 72%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4375rem 1rem;
  margin-block-end: 1.75rem;
  border-radius: var(--radius-full);
  background-color: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(251, 191, 36, 0.46);
  color: #fde68a;
  font-size: 0.875rem;
  font-weight: 600;
}

.hero h1 {
  max-inline-size: 48.75rem;
  margin-block-end: 1.375rem;
  font-size: clamp(2.25rem, 1.25rem + 3.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  max-inline-size: 39rem;
  margin-block-end: 1.75rem;
  color: #cdd8e8;
  font-size: 1.125rem;
}

.sport-pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.625rem;
  margin-block-end: 2.125rem;
}

.sport-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-full);
  background-color: rgba(17, 27, 46, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-main);
  font-size: 0.875rem;
  font-weight: 500;
  backdrop-filter: blur(8px);
}

.hero-note {
  margin-block-start: 1.25rem;
  color: #b7c5da;
  font-size: 0.9rem;
}

/* Sports Arenas Gallery */
.arenas {
  padding-block: 5.5rem;
}

.arenas-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.arenas-grid > li {
  display: flex;
}

.arena-card {
  inline-size: 100%;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background-color: var(--card-bg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.arena-card:hover {
  border-color: var(--border-card-hover);
}

.arena-card > img {
  display: block;
  inline-size: 100%;
  block-size: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.arena-card > header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1.375rem 1.5rem 0;
}

.arena-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.1875rem 0.625rem;
  border-radius: var(--radius-full);
  background-color: rgba(52, 211, 153, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.arena-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.arena-card > p {
  padding: 0.5rem 1.5rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Features */
.features {
  background-color: var(--bg-alt);
  padding-block: 6.25rem;
  border-block-start: 1px solid var(--border-subtle);
  border-block-end: 1px solid var(--border-subtle);
}

.section-title {
  margin-block-end: 3.5rem;
  text-align: center;
  font-size: clamp(1.75rem, 1.25rem + 1.8vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
}

.features-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.features-grid > li {
  display: flex;
}

.feature-card {
  inline-size: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  background-color: var(--card-bg);
  border: 1px solid var(--border-subtle);
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.feature-card:hover {
  border-color: var(--border-card-hover);
}

@media (prefers-reduced-motion: no-preference) {
  .arena-card,
  .feature-card {
    transition:
      transform 0.25s ease,
      border-color 0.25s ease,
      opacity 0.5s ease var(--reveal-delay, 0ms),
      translate 0.5s ease var(--reveal-delay, 0ms);
  }

  .arena-card:hover,
  .feature-card:hover {
    transform: translateY(-6px);
  }

  .arena-card.reveal-pending,
  .feature-card.reveal-pending {
    opacity: 0;
    translate: 0 24px;
  }

  .arena-card.reveal-visible,
  .feature-card.reveal-visible {
    opacity: 1;
    translate: 0 0;
  }
}

.feature-icon {
  font-size: 2rem;
  line-height: 1;
  margin-block-end: 1.125rem;
}

.feature-card h3 {
  margin-block-end: 0.625rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Bottom CTA Banner */
.cta-banner {
  position: relative;
  padding-block: 6.875rem;
  text-align: center;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(16, 185, 129, 0.2),
    transparent 62%
  );
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-banner h2 {
  margin-block-end: 0.875rem;
  font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
}

.cta-subtitle {
  max-inline-size: 36rem;
  margin-block-end: 2.125rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

/* Footer */
.footer {
  border-block-start: 1px solid var(--border-subtle);
  padding-block: 2.5rem;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.logo-footer {
  font-size: 1.125rem;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Responsive Breakpoints */
@media (max-width: 56.25rem) {
  .arenas-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 35rem) {
  .hero {
    padding-block: 5rem 4.75rem;
  }

  .arenas,
  .features {
    padding-block: 4.5rem;
  }

  .cta-banner {
    padding-block: 5rem;
  }

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

  .btn-large {
    inline-size: 100%;
    max-inline-size: 22rem;
    padding-inline: 1.5rem;
  }
}

/* High contrast & Forced Colors Mode support */
@media (prefers-contrast: more) {
  :root {
    --text-muted: #d1dce9;
    --border-subtle: rgba(255, 255, 255, 0.35);
  }
}

@media (forced-colors: active) {
  .hero-bg-img,
  .hero-scrim {
    display: none;
  }

  .gradient-text {
    background: none;
    color: CanvasText;
  }

  .btn,
  .arena-card,
  .feature-card,
  .badge,
  .sport-pill,
  .logo-tag,
  .arena-tag {
    border: 1px solid ButtonText;
    background: Canvas;
    color: ButtonText;
    box-shadow: none;
  }

  .btn:hover {
    border-color: Highlight;
  }

  :where(a:any-link, button):focus-visible {
    outline: 3px solid Highlight;
  }
}
