:root {
  --bg: #05070d;
  --navy: #0a1630;
  --navy-mid: #12264a;
  --blue: #1b3a6b;
  --orange: #ff9e0d;
  --orange-bright: #ffc14a;
  --gold: #ffd23f;
  --green: #2f9e44;
  --red: #d62828;
  --foam: #f4f7fb;
  --mist: #a8b6cd;
  --line: rgba(255, 158, 13, 0.22);
  --font-display: "Bebas Neue", Impact, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--foam);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
}

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

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

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

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem clamp(1.25rem, 4vw, 3rem);
  background: linear-gradient(to bottom, rgba(5, 7, 13, 0.95), transparent);
  transition: background 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(5, 7, 13, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.logo img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
}

.logo-word {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0.82;
  transition: opacity 0.2s;
}

.nav a:hover {
  opacity: 1;
}

.nav-cta {
  padding: 0.55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  opacity: 1 !important;
  background: rgba(255, 158, 13, 0.1);
  color: var(--gold);
}

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 0;
  padding: 0.4rem;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--foam);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(6rem, 12vh, 8rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 7vh, 4.5rem);
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 45% at 50% 20%, rgba(255, 158, 13, 0.16), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(47, 158, 68, 0.12), transparent 55%),
    radial-gradient(ellipse 45% 35% at 15% 75%, rgba(27, 58, 107, 0.45), transparent 50%),
    linear-gradient(180deg, #070b16 0%, #0a1630 55%, #05070d 100%);
}

.hero-glow {
  position: absolute;
  inset: auto 10% -10% 10%;
  height: 40%;
  background: radial-gradient(ellipse at center, rgba(255, 158, 13, 0.18), transparent 70%);
  filter: blur(40px);
  animation: pulse-glow 6s ease-in-out infinite alternate;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(28px);
  animation: rise-in 1s var(--ease) 0.1s forwards;
}

.hero-logo {
  width: min(72vw, 340px);
  height: auto;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55));
  animation: logo-float 5s ease-in-out infinite alternate;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 0 0 1.75rem;
  max-width: 32rem;
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  color: var(--mist);
  opacity: 0;
  transform: translateY(16px);
  animation: rise-in 0.9s var(--ease) 0.35s forwards;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  opacity: 0;
  transform: translateY(16px);
  animation: rise-in 0.9s var(--ease) 0.5s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.45rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(90deg, var(--gold), var(--orange));
  color: #141008;
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--foam);
  background: rgba(255, 255, 255, 0.04);
}

.btn-ghost:hover {
  border-color: rgba(255, 158, 13, 0.5);
}

/* Sections */
.section {
  padding: clamp(4.5rem, 12vh, 7rem) clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.section-inner {
  max-width: 980px;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
}

.section h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.section-copy {
  margin: 0 0 2.5rem;
  max-width: 36rem;
  color: var(--mist);
}

/* Head to Head */
.h2h {
  background:
    radial-gradient(ellipse 60% 50% at 0% 0%, rgba(27, 58, 107, 0.35), transparent 55%),
    var(--bg);
}

.scoreboard {
  margin: 0 0 2.75rem;
  padding: 1.4rem 1.35rem 1.2rem;
  border: 1px solid rgba(255, 158, 13, 0.28);
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgba(18, 38, 74, 0.9), rgba(10, 22, 48, 0.95));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.scoreboard-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.team-name {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 0.25rem;
}

.team-score {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  letter-spacing: 0.03em;
  line-height: 1;
}

.team-score span {
  font-size: 0.55em;
  color: var(--mist);
}

.team-right {
  text-align: right;
}

.vs {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  opacity: 0.85;
}

.scoreboard-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.1rem;
  font-size: 0.82rem;
  color: var(--mist);
}

.ball-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.ball {
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ball-wicket {
  background: rgba(214, 40, 40, 0.25);
  border-color: rgba(214, 40, 40, 0.55);
  color: #ffb4a8;
}

.ball-live {
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #141008;
  border-color: transparent;
  animation: ball-pulse 1.4s ease-in-out infinite;
}

.ball-caption {
  margin: 0.85rem 0 0;
  font-size: 0.8rem;
  color: var(--mist);
}

.feature-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-rows li {
  display: grid;
  gap: 0.35rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 640px) {
  .feature-rows li {
    grid-template-columns: 180px 1fr;
    align-items: baseline;
    gap: 2rem;
  }
}

.feature-label {
  font-weight: 700;
  font-size: 1.02rem;
}

.feature-desc {
  color: var(--mist);
}

/* Tournaments */
.tournaments {
  background:
    radial-gradient(ellipse 55% 45% at 100% 10%, rgba(47, 158, 68, 0.16), transparent 55%),
    linear-gradient(180deg, #070b16, #05070d);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.25rem;
  }
}

.step-num {
  display: block;
  margin-bottom: 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--orange);
  opacity: 0.85;
}

.steps h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.steps p {
  margin: 0;
  color: var(--mist);
  font-size: 0.95rem;
}

/* Join / Reach out */
.join {
  background: linear-gradient(160deg, #12264a 0%, #05070d 70%);
}

.contact-form {
  max-width: 560px;
}

.field-label {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.interest-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.chip {
  cursor: pointer;
}

.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip span {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.25);
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.chip input:focus-visible + span {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.chip input:checked + span {
  border-color: transparent;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  color: #141008;
}

.field-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .field-grid {
    grid-template-columns: 1fr 1fr;
  }

  .field-full {
    grid-column: 1 / -1;
  }
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--mist);
}

.field label span {
  font-weight: 500;
  opacity: 0.7;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.3);
  color: var(--foam);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(168, 182, 205, 0.55);
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(255, 158, 13, 0.55);
}

.honey {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.contact-form .btn:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.form-note {
  min-height: 1.4em;
  margin: 0.9rem 0 0;
  font-size: 0.9rem;
  color: var(--gold);
}

.form-note.is-error {
  color: #ffb4a8;
}

.store-section {
  padding-top: clamp(2.5rem, 6vh, 3.5rem);
  padding-bottom: clamp(2.5rem, 6vh, 3.5rem);
}

.store-section .section-inner {
  display: flex;
  justify-content: center;
}

.store-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 560px;
}

.store-label {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--mist);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 168px;
  padding: 0.7rem 1.15rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #0a0c12;
  color: var(--foam);
  transition: transform 0.2s var(--ease), border-color 0.2s, background 0.2s;
}

.store-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 158, 13, 0.55);
  background: #12151f;
}

.store-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.store-icon-img {
  border-radius: 6px;
  object-fit: cover;
}

.store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}

.store-eyebrow {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--mist);
  letter-spacing: 0.02em;
}

.store-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Footer */
.site-footer {
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer .logo img {
  width: 40px;
  height: 40px;
}

.site-footer p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--mist);
  opacity: 0.75;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Mobile nav */
@media (max-width: 720px) {
  .menu-btn {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: 0 0 auto 0;
    top: 0;
    padding: 5rem 1.5rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    background: rgba(5, 7, 13, 0.98);
    transform: translateY(-110%);
    transition: transform 0.35s var(--ease);
  }

  .nav.is-open {
    transform: none;
  }
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes logo-float {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-10px);
  }
}

@keyframes pulse-glow {
  from {
    opacity: 0.55;
  }
  to {
    opacity: 1;
  }
}

@keyframes ball-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

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

  .hero-content,
  .lede,
  .cta-row,
  .reveal,
  .hero-logo,
  .hero-glow,
  .ball-live {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
}
