:root {
  --ink: #12201b;
  --muted: #5b6962;
  --line: #dbe4dd;
  --paper: #f8faf7;
  --panel: #ffffff;
  --green: #126a45;
  --green-dark: #0a3f2d;
  --lime: #b8d84b;
  --red: #d9483b;
  --gold: #f4b63e;
  --blue: #2b65c9;
  --shadow: 0 18px 50px rgba(18, 32, 27, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 72px);
  background: rgba(248, 250, 247, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 45%, rgba(255,255,255,0.85) 46%, rgba(255,255,255,0.85) 54%, transparent 55%),
    var(--red);
  box-shadow: inset -5px -4px 0 rgba(0, 0, 0, 0.1);
}

.nav {
  gap: 22px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.nav a:hover {
  color: var(--green);
}

.hero {
  position: relative;
  min-height: 72vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
  padding: clamp(42px, 7vw, 88px) clamp(18px, 5vw, 72px);
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(9, 64, 45, 0.94), rgba(18, 106, 69, 0.86)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='760' viewBox='0 0 1200 760'%3E%3Crect width='1200' height='760' fill='%23115d3d'/%3E%3Cg opacity='.28' fill='none' stroke='%23ffffff' stroke-width='3'%3E%3Cellipse cx='600' cy='380' rx='510' ry='270'/%3E%3Cellipse cx='600' cy='380' rx='310' ry='150'/%3E%3Cpath d='M72 380h1056M600 110v540'/%3E%3C/g%3E%3Cg opacity='.14'%3E%3Ccircle cx='166' cy='128' r='4' fill='%23fff'/%3E%3Ccircle cx='1014' cy='588' r='4' fill='%23fff'/%3E%3Ccircle cx='942' cy='134' r='3' fill='%23fff'/%3E%3Ccircle cx='286' cy='634' r='3' fill='%23fff'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70px;
  background: linear-gradient(0deg, var(--paper), rgba(248, 250, 247, 0));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button,
.controls button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  background: var(--lime);
  color: var(--green-dark);
}

.button.secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.36);
}

.hero-art {
  position: relative;
  z-index: 1;
  min-height: 420px;
}

.pitch {
  position: absolute;
  inset: 12% 30%;
  border-radius: 999px;
  background: linear-gradient(180deg, #d7b073, #b98a55);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.24);
  transform: rotate(-11deg);
}

.crease {
  position: absolute;
  left: 41%;
  width: 18%;
  height: 3px;
  background: rgba(255, 255, 255, 0.92);
  transform: rotate(-11deg);
}

.crease-top {
  top: 30%;
}

.crease-bottom {
  bottom: 30%;
}

.ball,
.ball-trail {
  position: absolute;
  border-radius: 50%;
}

.ball {
  right: 16%;
  top: 25%;
  width: 62px;
  height: 62px;
  background:
    linear-gradient(90deg, transparent 45%, rgba(255,255,255,.9) 46%, rgba(255,255,255,.9) 54%, transparent 55%),
    var(--red);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
}

.ball-trail {
  right: 21%;
  top: 31%;
  width: 210px;
  height: 16px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.58));
  transform: rotate(-19deg);
  filter: blur(2px);
}

.stats-band,
.control-section,
.timeline-section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  transform: translateY(-28px);
  background: var(--line);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.stats-band article {
  min-height: 116px;
  padding: 22px;
  background: var(--panel);
}

.stats-band span {
  display: block;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
}

.stats-band p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.control-section,
.timeline-section {
  padding: 54px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.section-heading .eyebrow {
  color: var(--green);
}

.result-count {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.controls {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) minmax(140px, 0.7fr) minmax(150px, 0.7fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 22px;
}

.controls label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.controls input,
.controls select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.controls button {
  background: var(--green);
  color: #fff;
}

.match-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.match-card {
  display: grid;
  min-height: 270px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 22px rgba(18, 32, 27, 0.06);
}

.match-meta,
.teams,
.winner-row {
  display: flex;
  align-items: center;
}

.match-meta {
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.format-pill {
  padding: 5px 9px;
  border-radius: 999px;
  background: #e8f2dc;
  color: var(--green-dark);
}

.teams {
  gap: 10px;
  margin: 22px 0 12px;
  font-size: 1.25rem;
  font-weight: 800;
}

.versus {
  color: var(--red);
  font-size: 0.86rem;
}

.venue {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.winner-row {
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.winner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
}

.player {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  padding: 18px;
  border-left: 5px solid var(--blue);
  background: #fff;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 8px 22px rgba(18, 32, 27, 0.05);
}

.timeline-year {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--green);
}

.timeline-item h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

footer {
  padding: 28px 18px 38px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-art {
    min-height: 260px;
    order: -1;
  }

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

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

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .hero {
    min-height: auto;
    padding-top: 30px;
  }

  .stats-band,
  .match-grid,
  .controls {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.whatsapp-popup {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.9);
  box-shadow: none;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 220ms ease, transform 220ms ease;
  z-index: 9999;
  padding: 16px;
}

.whatsapp-popup.visible {
  opacity: 1;
  transform: translateY(0);
}

.popup-link {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}

.popup-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.popup-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

@media (max-width: 640px) {
  .whatsapp-popup {
    padding: 8px;
  }

  .popup-close {
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
  }
}
