/* ==========================================================================
   Landing page
   Tokens from theme.css only. Every animation here is switched off by the
   prefers-reduced-motion rule at the bottom of theme.css.
   ========================================================================== */

/* ---- Hero ----------------------------------------------------------------- */

.hero-land {
  position: relative;
  padding: var(--space-7) 0 var(--space-6);
  overflow: hidden;
  isolation: isolate;
}
.hero-land::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 120%;
  z-index: -1;
  background:
    radial-gradient(600px 380px at 78% 30%, rgba(241, 93, 44, 0.16), transparent 70%),
    radial-gradient(700px 480px at 12% 10%, rgba(4, 86, 71, 0.7), transparent 70%);
  filter: blur(8px);
}
.hero-land__grid {
  display: grid;
  gap: var(--space-6);
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) {
  .hero-land__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: var(--space-7);
  }
}
.hero-land__title {
  font-size: clamp(40px, 7.4vw, 76px);
  line-height: 1.06; /* three lines: room for the "y" and "g" descenders */
  letter-spacing: -0.045em;
  margin: var(--space-2) 0 var(--space-4);
}
.hero-land__title span {
  background: linear-gradient(100deg, var(--brand-orange-hi), var(--brand-orange) 60%, #ffb26b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-land__lead {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--muted);
  max-width: 46ch;
  margin: 0 0 var(--space-5);
}
.hero-land__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.hero-land__text > * {
  animation: rise var(--dur-slow) var(--ease-out) both;
}
.hero-land__text > :nth-child(2) {
  animation-delay: 80ms;
}
.hero-land__text > :nth-child(3) {
  animation-delay: 160ms;
}
.hero-land__text > :nth-child(4) {
  animation-delay: 240ms;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

/* ---- The pitch ------------------------------------------------------------ */

.hero-land__art {
  position: relative;
  animation: rise 0.9s var(--ease-out) 120ms both;
}
.pitch {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.35));
}
.pitch__turf {
  fill: #06382f;
}
.pitch__lines * {
  fill: none;
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 1.6;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.pitch.is-drawn .pitch__lines * {
  animation: draw 1.4s var(--ease-out) forwards;
}
.pitch.is-drawn .pitch__lines :nth-child(2) {
  animation-delay: 0.15s;
}
.pitch.is-drawn .pitch__lines :nth-child(3) {
  animation-delay: 0.3s;
}
.pitch.is-drawn .pitch__lines :nth-child(n + 4) {
  animation-delay: 0.45s;
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
.pitch__spot {
  fill: rgba(255, 255, 255, 0.6);
}
.pitch__player {
  opacity: 0;
  animation: pop 0.4s var(--ease-spring) forwards;
  animation-delay: calc(0.9s + var(--i) * 60ms);
}
.pitch__player--us {
  fill: var(--brand-orange);
  stroke: #ffd2c2;
  stroke-width: 1.5;
}
.pitch__player--them {
  fill: #eef8f4;
  stroke: rgba(3, 32, 28, 0.6);
  stroke-width: 1.5;
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.2);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.pitch__player {
  transform-box: fill-box;
  transform-origin: center;
}
.pitch__ball {
  fill: #fff;
  stroke: #0b1a17;
  stroke-width: 1.5;
}
.pitch__trail {
  fill: none;
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 2 5;
}
.pitch__glow {
  opacity: 0;
}
.pitch__glow.is-on {
  animation: flash 0.9s ease-out;
}
@keyframes flash {
  0% {
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* ---- Headline numbers ----------------------------------------------------- */

.site-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin: var(--space-6) 0 0;
}
@media (min-width: 720px) {
  .site-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.site-stats > div {
  padding: var(--space-4);
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: var(--highlight);
}
.site-stats dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}
.site-stats dd {
  margin: var(--space-1) 0 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

/* ---- Sections ------------------------------------------------------------- */

.land-section {
  padding: var(--space-6) 16px;
}
.land-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  margin-bottom: var(--space-4);
}
.land-section__head h2 {
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -0.03em;
}
.land-section__head p {
  margin: 0;
}
.land-more {
  font-weight: 700;
}

/* ---- Tournament cards ----------------------------------------------------- */

.tgroup + .tgroup {
  margin-top: var(--space-5);
}
.tgroup__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 var(--space-3);
}
.tgrid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.tcard {
  position: relative;
  display: grid;
  gap: var(--space-3);
  align-content: start;
  min-height: 210px;
  padding: var(--space-5);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--glass));
  border: 1px solid var(--line);
  box-shadow: var(--highlight), var(--shadow);
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  animation: rise var(--dur-slow) var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 60ms);
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) ease, box-shadow var(--dur) ease;
}
.tcard:hover {
  text-decoration: none;
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--highlight), var(--shadow-lg);
}
.tcard::after {
  content: "";
  position: absolute;
  inset: auto -30% -60% auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(70, 220, 170, 0.12), transparent 65%);
  pointer-events: none;
}
.tcard--live::after,
.tcard--ongoing::after {
  background: radial-gradient(circle, rgba(241, 93, 44, 0.2), transparent 65%);
}
.tcard--finished::after {
  background: radial-gradient(circle, rgba(240, 198, 90, 0.14), transparent 65%);
}
.tcard__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}
.tcard__season {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--faint);
}
.tcard__name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  padding-right: var(--space-5);
}
.tcard__facts {
  display: grid;
  gap: var(--space-1);
  font-size: 14px;
  color: var(--muted);
}
.tcard__fact i {
  font-style: normal;
  color: var(--faint);
}
.tcard__champion {
  font-size: 14px;
}
.tcard__meta {
  font-size: 13px;
}
.tcard__go {
  position: absolute;
  right: var(--space-5);
  bottom: var(--space-5);
  font-size: 20px;
  color: var(--faint);
  transition: transform var(--dur) var(--ease-out), color var(--dur) ease;
}
.tcard:hover .tcard__go {
  transform: translateX(4px);
  color: var(--brand-orange-hi);
}
.tcard--skeleton {
  background: linear-gradient(90deg, var(--surface), var(--surface-2), var(--surface));
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

.phase {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--line-strong);
  color: var(--muted);
}
.phase--upcoming {
  color: var(--mint);
  border-color: rgba(70, 220, 170, 0.45);
  background: rgba(70, 220, 170, 0.1);
}
.phase--live,
.phase--ongoing {
  color: var(--brand-orange-hi);
  border-color: rgba(241, 93, 44, 0.5);
  background: rgba(241, 93, 44, 0.12);
}
.phase--live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-orange);
  animation: pulse 1.4s ease-in-out infinite;
}
.phase--finished {
  color: var(--gold);
  border-color: rgba(240, 198, 90, 0.45);
  background: rgba(240, 198, 90, 0.1);
}

/* ---- Hall of Fame teaser -------------------------------------------------- */

.hof-teaser {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5);
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(240, 198, 90, 0.14), rgba(10, 58, 52, 0.6));
  border: 1px solid rgba(240, 198, 90, 0.35);
  color: var(--text);
  text-decoration: none;
}
.hof-teaser:hover {
  text-decoration: none;
  border-color: rgba(240, 198, 90, 0.6);
}
.hof-teaser > span:nth-child(2) {
  display: grid;
  gap: 2px;
}
.hof-teaser__icon {
  font-size: 40px;
}
.hof-teaser__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
}
.hof-teaser__go {
  font-size: 22px;
  color: var(--gold);
}

/* A gaming tournament, marked on its card. */
.phase--game {
  color: var(--brand-orange-hi);
  border-color: rgba(241, 93, 44, 0.45);
  background: rgba(241, 93, 44, 0.1);
}
