/* =====================================================
   AGIL — Amateur Golfers International League
   Monochrome premium minimalism
   ===================================================== */

:root {
  --black: #0a0a0a;
  --black-2: #111111;
  --graphite: #1a1a1a;
  --graphite-2: #232323;
  --line: #2a2a2a;
  --line-light: #e6e6e6;
  --grey-1: #6b6b6b;
  --grey-2: #9a9a9a;
  --grey-3: #cfcfcf;
  --paper: #f5f5f4;
  --paper-2: #fafafa;
  --white: #ffffff;

  --radius: 4px;
  --radius-lg: 12px;

  --font-display: "Space Grotesk", "Inter", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --container: 1240px;
  --pad: clamp(20px, 4vw, 48px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*::selection { background: var(--black); color: var(--white); }

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

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--black);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }
ul, ol { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
  width: 100%;
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-1);
  padding: 6px 0;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  margin-bottom: 24px;
}

.section--dark .eyebrow {
  color: var(--grey-3);
  border-color: var(--line);
}

.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  text-wrap: balance;
}

.section__title--xl {
  font-size: clamp(44px, 8vw, 96px);
  letter-spacing: -0.03em;
}

.section__lead {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--grey-1);
  max-width: 720px;
  text-wrap: pretty;
}

.section--dark .section__lead { color: var(--grey-3); }

.section__head {
  margin-bottom: clamp(40px, 6vw, 72px);
  max-width: 920px;
}

/* =====================================================
   BUTTONS
   ===================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 16px 28px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
  cursor: pointer;
}

.btn--sm  { padding: 10px 18px; font-size: 12px; }
.btn--lg  { padding: 20px 36px; font-size: 15px; }

.btn--solid {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.btn--solid:hover {
  background: var(--graphite-2);
  border-color: var(--graphite-2);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}
.btn--outline:hover {
  background: var(--black);
  color: var(--white);
}

.section--dark .btn--outline {
  color: var(--white);
  border-color: var(--white);
}
.section--dark .btn--outline:hover {
  background: var(--white);
  color: var(--black);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--black);
  border-bottom: 1.5px solid var(--black);
  padding-bottom: 4px;
  transition: all 0.2s var(--ease);
}
.link-arrow:hover { gap: 6px; }

/* =====================================================
   HEADER
   ===================================================== */

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,10,10,0.7);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.3s var(--ease);
}

.header--scrolled {
  background: rgba(10,10,10,0.92);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  color: var(--white);
}
.logo__mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.logo__sub {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--grey-3);
  margin-top: 4px;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 28px;
}
.nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--grey-3);
  letter-spacing: 0.02em;
  transition: color 0.2s;
  position: relative;
}
.nav a:hover { color: var(--white); }
.nav a::after {
  content: "";
  position: absolute;
  bottom: -6px; left: 0;
  width: 0; height: 1px;
  background: var(--white);
  transition: width 0.25s var(--ease);
}
.nav a:hover::after { width: 100%; }

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Lang switcher */
.lang { position: relative; }
.lang__btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--grey-3);
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  transition: all 0.2s;
}
.lang__btn:hover { color: var(--white); border-color: rgba(255,255,255,0.4); }
.lang__btn svg { transition: transform 0.2s; }
.lang.is-open .lang__btn svg { transform: rotate(180deg); }

.lang__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--black-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}
.lang.is-open .lang__menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.lang__menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--grey-3);
  border-radius: 2px;
  transition: all 0.15s;
}
.lang__menu button:hover {
  background: var(--graphite);
  color: var(--white);
}
.lang__menu button.is-active {
  color: var(--white);
  background: var(--graphite-2);
}

/* Burger (mobile) */
.burger {
  display: none;
  width: 40px; height: 40px;
  position: relative;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
}
.burger span {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 1.5px;
  background: var(--white);
  transform: translateX(-50%);
  transition: all 0.25s var(--ease);
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 19px; }
.burger span:nth-child(3) { top: 24px; }
body.menu-open .burger span:nth-child(1) { top: 19px; transform: translateX(-50%) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { top: 19px; transform: translateX(-50%) rotate(-45deg); }

/* =====================================================
   HERO
   ===================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
  padding-top: 100px;
  padding-bottom: 80px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.65) 0%, rgba(10,10,10,0.85) 60%, rgba(10,10,10,0.95) 100%),
    url("../img/hero.jpg") center/cover no-repeat;
  filter: contrast(1.05);
}

.hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  opacity: 0.6;
}

.hero__inner {
  position: relative;
  z-index: 2;
}

.hero__eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--grey-2);
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  display: inline-block;
  padding-right: 80px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 9vw, 124px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
  text-wrap: balance;
}

.hero__subtitle {
  font-size: clamp(16px, 1.7vw, 20px);
  color: var(--grey-3);
  max-width: 620px;
  line-height: 1.5;
  margin-bottom: 48px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 80px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 760px;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 28px;
}
.hero__stats li { padding-right: 16px; }
.stat__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.stat__label {
  font-size: 12px;
  color: var(--grey-2);
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.6), transparent);
  animation: scrollPulse 2.4s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: translate(-50%, 0); }
  50%      { opacity: 1; transform: translate(-50%, 8px); }
}

/* =====================================================
   SECTIONS
   ===================================================== */

.section {
  padding: clamp(72px, 11vw, 160px) 0;
  position: relative;
}

.section--light {
  background: var(--paper);
  color: var(--black);
}

.section--dark {
  background: var(--black);
  color: var(--white);
}

/* =====================================================
   GRIDS
   ===================================================== */

.grid {
  display: grid;
  gap: 24px;
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 960px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* =====================================================
   ABOUT — cards
   ===================================================== */

.card {
  padding: 40px 32px;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--black);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.18);
}

.card__num {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--grey-2);
  margin-bottom: 32px;
}

.card__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  text-wrap: balance;
}

.card__text {
  font-size: 15px;
  color: var(--grey-1);
  line-height: 1.6;
}

/* Partners strip */
.partners-strip {
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line-light);
}
.partners-strip__title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-1);
  margin-bottom: 28px;
  text-align: center;
}
.partners-strip__items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}
.partners-strip__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  transition: all 0.25s var(--ease);
  text-align: center;
}
.partners-strip__item:hover {
  border-color: var(--black);
  background: var(--white);
}
.partners-strip__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.02em;
}
.partners-strip__desc { font-size: 13px; color: var(--grey-1); }

@media (max-width: 600px) {
  .partners-strip__items { grid-template-columns: 1fr; }
}

/* =====================================================
   HOW — steps
   ===================================================== */

.steps {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.step {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: start;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease);
  position: relative;
}

.step:hover {
  background: rgba(255,255,255,0.02);
}

.step__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1;
  opacity: 0.85;
}

.step__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.8vw, 32px);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  color: var(--white);
}

.step__text {
  font-size: 16px;
  color: var(--grey-3);
  max-width: 720px;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .step { grid-template-columns: 1fr; gap: 12px; padding: 28px 0; }
  .step__num { font-size: 32px; }
}

/* =====================================================
   MARKER
   ===================================================== */

.marker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.marker__features {
  margin: 32px 0;
  display: grid;
  gap: 14px;
}
.marker__features li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid var(--line-light);
  font-size: 15px;
  color: var(--graphite);
}
.marker__features li:last-child { border-bottom: 1px solid var(--line-light); }
.marker__features li::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--black);
  margin-top: 8px;
  border-radius: 50%;
}

.marker__visual {
  display: flex;
  justify-content: center;
}

.phone-mock {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4/5;
  background: var(--black);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-light);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.25);
}
.phone-mock img { width: 100%; height: 100%; object-fit: cover; }

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

/* =====================================================
   TOURNAMENTS
   ===================================================== */

.tournaments { gap: 0; }

.t-card {
  padding: 36px 28px;
  border: 1px solid var(--line);
  border-right: none;
  background: transparent;
  transition: all 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-height: 280px;
}
.t-card:last-child { border-right: 1px solid var(--line); }

.t-card:hover {
  background: rgba(255,255,255,0.04);
  transform: translateY(-2px);
}

.t-card--accent {
  background: var(--white);
  color: var(--black);
}
.t-card--accent:hover { background: var(--white); }

.t-card__rank {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--grey-2);
}
.t-card--accent .t-card__rank { color: var(--grey-1); }

.t-card__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  flex: 1;
}

.t-card__text {
  font-size: 14px;
  color: var(--grey-3);
  line-height: 1.55;
}
.t-card--accent .t-card__text { color: var(--grey-1); }

@media (max-width: 960px) {
  .t-card { border-right: 1px solid var(--line); border-bottom: none; }
  .t-card:nth-child(odd) { border-right: none; }
  .t-card:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .t-card, .t-card:nth-child(odd) { border: 1px solid var(--line); }
}

/* =====================================================
   RANKINGS / DIVISIONS
   ===================================================== */

.divisions { margin-bottom: clamp(40px, 5vw, 64px); }

.division {
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  transition: all 0.3s var(--ease);
  overflow: hidden;
}

.division::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--black);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.division:hover::before { transform: scaleX(1); }
.division:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.18);
}

.division__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.01em;
}

.division__hcp {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--grey-1);
  padding: 8px 14px;
  border: 1px solid var(--line-light);
  border-radius: 99px;
  align-self: flex-start;
}

.division__text {
  font-size: 14px;
  color: var(--grey-1);
  line-height: 1.55;
}

.ranking-extra {
  border-top: 1px solid var(--line-light);
  padding-top: clamp(40px, 5vw, 64px);
}

.info-block__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.info-block__text { font-size: 15px; color: var(--grey-1); line-height: 1.6; }

/* =====================================================
   FINALS
   ===================================================== */

.section--finals {
  position: relative;
  overflow: hidden;
}
.finals__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.78) 35%, rgba(10,10,10,0.95) 100%),
    url("../img/finals.jpg") center/cover no-repeat;
  pointer-events: none;
}
.finals__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.06), transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(255,255,255,0.04), transparent 60%);
}

.section--finals .container { position: relative; z-index: 1; }

.section--finals .section__head { text-align: center; margin-left: auto; margin-right: auto; }
.section--finals .section__lead { margin-left: auto; margin-right: auto; }

.finals__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(32px, 6vw, 80px);
  padding: clamp(32px, 4vw, 56px) 0;
  margin-bottom: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.finals__meta-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}
.finals__meta-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-2);
}
.finals__meta-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.02em;
  color: var(--white);
}

.finals__meta-divider {
  width: 1px;
  height: 56px;
  background: var(--line);
}

.f-card {
  padding: 36px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.02);
  transition: all 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.f-card:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-3px);
}

.f-card__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.f-card__text { font-size: 14px; color: var(--grey-3); line-height: 1.55; }

/* =====================================================
   PARTNERS / AUDIENCES
   ===================================================== */

.audience {
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.3s var(--ease);
}
.audience:hover {
  transform: translateY(-4px);
  border-color: var(--black);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.18);
}
.audience:hover .audience__photo img { transform: scale(1.04); }

.audience__photo {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--black);
}
.audience__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.audience__body {
  padding: 32px 28px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  flex: 1;
}

.audience__title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.audience__text {
  font-size: 15px;
  color: var(--grey-1);
  line-height: 1.55;
  flex: 1;
}

/* =====================================================
   FAQ
   ===================================================== */

.faq { max-width: 920px; }
.faq__list { border-top: 1px solid var(--line-light); }

.faq__item {
  border-bottom: 1px solid var(--line-light);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(16px, 1.6vw, 19px);
  letter-spacing: -0.005em;
  list-style: none;
  color: var(--black);
}
.faq__item summary::-webkit-details-marker { display: none; }

.faq__icon {
  position: relative;
  width: 22px; height: 22px;
  flex-shrink: 0;
}
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  background: var(--black);
  top: 50%; left: 50%;
  transition: transform 0.3s var(--ease);
}
.faq__icon::before {
  width: 14px; height: 1.5px;
  transform: translate(-50%, -50%);
}
.faq__icon::after {
  width: 1.5px; height: 14px;
  transform: translate(-50%, -50%);
}
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) scaleY(0); }

.faq__answer {
  padding: 0 0 24px;
  font-size: 15px;
  color: var(--grey-1);
  line-height: 1.7;
  max-width: 800px;
}

/* =====================================================
   FINAL CTA
   ===================================================== */

.cta {
  background: var(--black);
  color: var(--white);
  padding: clamp(80px, 12vw, 160px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "AGIL";
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(160px, 28vw, 360px);
  letter-spacing: -0.04em;
  color: rgba(255,255,255,0.04);
  pointer-events: none;
  line-height: 1;
}

.cta__inner { position: relative; z-index: 1; }

.cta__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}
.cta__lead {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--grey-3);
  margin-bottom: 36px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

/* =====================================================
   FOOTER
   ===================================================== */

.footer {
  background: var(--black-2);
  color: var(--grey-3);
  padding: 80px 0 32px;
  border-top: 1px solid var(--line);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--white);
}
.footer__tagline {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-2);
}

.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 4px;
}
.footer__col a, .footer__lang {
  font-size: 14px;
  color: var(--grey-3);
  transition: color 0.2s;
  text-align: left;
  padding: 0;
  display: inline-block;
  width: fit-content;
}
.footer__col a:hover, .footer__lang:hover { color: var(--white); }
.footer__lang.is-active { color: var(--white); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--grey-2);
}
.footer__bottom a { color: var(--grey-2); transition: color 0.2s; }
.footer__bottom a:hover { color: var(--white); }

@media (max-width: 960px) {
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* =====================================================
   REVEAL / SCROLL ANIMATIONS
   ===================================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll { animation: none; }
}

/* =====================================================
   MOBILE MENU
   ===================================================== */

@media (max-width: 1024px) {
  .nav {
    position: fixed;
    inset: 68px 0 0 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    background: var(--black);
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    z-index: 99;
  }
  body.menu-open .nav { transform: translateX(0); }
  .nav a { font-size: 22px; color: var(--white); }
  .nav a::after { display: none; }
  .burger { display: block; }
  .header__actions .btn { display: none; }
}

@media (max-width: 600px) {
  .hero__stats { grid-template-columns: 1fr; gap: 16px; padding-top: 20px; }
  .hero__stats li { padding: 14px 0; border-top: 1px solid rgba(255,255,255,0.08); }
  .hero__stats li:first-child { border-top: none; }
  .finals__meta { flex-direction: column; gap: 24px; }
  .finals__meta-divider { width: 56px; height: 1px; }
  .lang { display: none; }
  .header__inner { gap: 12px; }
}

/* small text helpers */
.no-scroll { overflow: hidden; }

/* =====================================================
   IMAGE BANNERS / SECTION VISUALS
   ===================================================== */

.banner {
  margin-top: clamp(48px, 6vw, 80px);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--black);
  border: 1px solid var(--line-light);
  aspect-ratio: 21/9;
}
.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.02) saturate(0.9);
}

.banner--tall { aspect-ratio: 16/9; margin-bottom: clamp(40px, 5vw, 64px); margin-top: 0; }

.section--dark .banner { border-color: var(--line); }

@media (max-width: 600px) {
  .banner { aspect-ratio: 4/3; }
}

/* How — world-map background */

.section--how { position: relative; overflow: hidden; }
.how__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.6) 50%, rgba(10,10,10,0.95) 100%),
    url("../img/world-map.jpg") center/cover no-repeat;
  pointer-events: none;
  opacity: 0.7;
}
.section--how .container { position: relative; z-index: 1; }

/* Finals — trophy + features layout */

.finals__layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: stretch;
}
.finals__trophy {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--black);
  border: 1px solid var(--line);
  aspect-ratio: 4/5;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
}
.finals__trophy img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.finals__features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-content: center;
}

@media (max-width: 900px) {
  .finals__layout { grid-template-columns: 1fr; }
  .finals__trophy { max-width: 480px; margin: 0 auto; aspect-ratio: 1/1; }
}

/* CTA — flag background */

.cta {
  background:
    linear-gradient(180deg, rgba(10,10,10,0.78) 0%, rgba(10,10,10,0.92) 100%),
    url("../img/flag.jpg") center/cover no-repeat;
}

/* OG / favicon — improve marker visual size on small screens */
@media (max-width: 600px) {
  .phone-mock { aspect-ratio: 4/5; max-width: 320px; }
}

/* =====================================================
   LEADERBOARD v3 — TV broadcast scoreboard
   ===================================================== */

.lb {
  margin-top: clamp(48px, 6vw, 80px);
  position: relative;
}

/* --- HEADER (above the panel, on light bg) --- */

.lb__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.lb__head-title { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.lb__head-title .eyebrow { margin-bottom: 4px; padding: 4px 0; }
.lb__title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.lb__head-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.lb__live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-1);
}
.lb__live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #2a8b2a;
  position: relative;
  flex-shrink: 0;
}
.lb__live-dot::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: #2a8b2a;
  opacity: 0.4;
  animation: livePulse 2s ease-out infinite;
}
@keyframes livePulse {
  0%   { transform: scale(0.6); opacity: 0.6; }
  100% { transform: scale(2.2); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .lb__live-dot::before { animation: none; }
}
.lb__tag {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 6px 10px;
  border: 1.5px solid var(--black);
  border-radius: 2px;
  color: var(--black);
}

/* --- PANEL (broadcast scoreboard graphic) --- */

.lb__panel {
  position: relative;
  background:
    linear-gradient(180deg, #0d0d0d 0%, #050505 100%);
  color: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 48px -24px rgba(0,0,0,0.5);
  isolation: isolate;
}
.lb__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at top, black, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at top, black, transparent 75%);
}
.lb__bug {
  position: absolute;
  top: 14px;
  right: 18px;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: rgba(255,255,255,0.32);
  pointer-events: none;
  z-index: 2;
}

/* --- ROW LAYOUT --- */

.lb__row {
  display: grid;
  grid-template-columns:
    66px                  /* POS */
    minmax(0, 1fr)        /* player */
    140px                 /* form */
    78px                  /* mvmt */
    78px;                 /* pts */
  align-items: center;
  gap: 18px;
  padding: 14px clamp(18px, 2.4vw, 28px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
  z-index: 1;

  /* fly-in cascade — triggered when .lb gains .is-visible */
  opacity: 0;
  transform: translateX(48px);
  transition:
    opacity 0.55s var(--ease) calc(var(--i, 0) * 65ms),
    transform 0.55s var(--ease) calc(var(--i, 0) * 65ms);
  will-change: opacity, transform;
}
.lb.is-visible .lb__row { opacity: 1; transform: none; }
.lb__row:last-of-type { border-bottom: none; }
.lb__row:hover:not(.lb__row--head) {
  background: rgba(255,255,255,0.04);
}

.lb__row--head {
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  padding-top: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  transform: translateY(-12px);
}
.lb.is-visible .lb__row--head { transform: translateY(0); }

/* --- POS column --- */

.lb__c--pos { display: flex; align-items: center; }
.lb__pos {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: rgba(255,255,255,0.55);
  min-width: 28px;
}

/* Top-3 — POS in a solid white square block (broadcast cut indicator) */
.lb__row--top .lb__pos {
  background: var(--white);
  color: var(--black);
  font-size: 18px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  min-width: 0;
}

/* --- PLAYER column --- */

.lb__c--player {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.lb__flag {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 1px;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.18);
}
.lb__pinfo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.lb__pname {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lb__phcp {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.lb__row--top .lb__pname { font-weight: 700; }

/* --- FORM column --- */

.lb__c--form { display: flex; justify-content: flex-start; }
.lb__form {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 26px;
  width: 100%;
  max-width: 130px;
}
.lb__form-bar {
  flex: 1;
  background: rgba(255,255,255,0.85);
  border-radius: 1px;
  height: var(--h, 60%);
  min-width: 4px;
  transition: height 0.5s var(--ease) calc(0.3s + var(--i, 0) * 65ms);
}
.lb__row .lb__form-bar { height: 0; }
.lb.is-visible .lb__row .lb__form-bar { height: var(--h, 60%); }
.lb__row--top .lb__form-bar { background: var(--white); }
.lb__row:not(.lb__row--top) .lb__form-bar { background: rgba(255,255,255,0.7); }

/* --- MVMT chips --- */

.lb__c--mvmt { display: flex; justify-content: flex-end; }

.lb__chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 4px 9px;
  border-radius: 2px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.lb__chip--up   { background: rgba(94, 207, 94, 0.18);  color: #7be07b; }
.lb__chip--down { background: rgba(255, 110, 110, 0.18); color: #ff8a8a; }
.lb__chip--flat { background: rgba(255,255,255,0.10);    color: rgba(255,255,255,0.55); }

/* --- PTS column --- */

.lb__c--pts {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--white);
}
.lb__row--head .lb__c--pts {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: rgba(255,255,255,0.45);
}
.lb__row:not(.lb__row--top):not(.lb__row--head) .lb__c--pts {
  color: rgba(255,255,255,0.85);
}

/* --- CUT line (between pos 3 and 4) --- */

.lb__cut {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px clamp(18px, 2.4vw, 28px);
  background:
    linear-gradient(90deg,
      rgba(255,255,255,0) 0%,
      rgba(255,255,255,0.06) 50%,
      rgba(255,255,255,0) 100%);
  border-top: 1px dashed rgba(255,255,255,0.18);
  border-bottom: 1px dashed rgba(255,255,255,0.18);
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  position: relative;
  z-index: 1;

  opacity: 0;
  transform: scaleX(0.92);
  transform-origin: center;
  transition:
    opacity 0.5s var(--ease) calc(var(--i, 0) * 65ms),
    transform 0.5s var(--ease) calc(var(--i, 0) * 65ms);
}
.lb.is-visible .lb__cut { opacity: 1; transform: scaleX(1); }

.lb__cut::before {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.18);
}
.lb__cut::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.18);
}

/* --- FOOTER (below panel, on light bg) --- */

.lb__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0 0;
  margin-top: 14px;
  font-size: 11px;
  color: var(--grey-1);
  font-variant-numeric: tabular-nums;
  flex-wrap: wrap;
  letter-spacing: 0.04em;
}
.lb__count {
  font-family: var(--font-display);
  font-weight: 600;
}
.lb__updated {
  color: var(--grey-2);
}

.lb__note {
  margin-top: 10px;
  font-size: 11px;
  color: var(--grey-2);
  line-height: 1.5;
}

/* --- RESPONSIVE --- */

@media (max-width: 1024px) {
  .lb__row {
    grid-template-columns:
      52px
      minmax(0, 1fr)
      110px
      66px
      66px;
    gap: 14px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .lb__bug { font-size: 8px; top: 10px; right: 14px; }
}

@media (max-width: 720px) {
  .lb__row {
    grid-template-columns:
      44px
      minmax(0, 1fr)
      62px
      66px;
    gap: 10px;
  }
  .lb__c--form { display: none; }
  .lb__row--head .lb__c--form { display: none; }
  .lb__pname { font-size: 14px; }
  .lb__phcp { font-size: 9px; }
  .lb__c--pts { font-size: 19px; }
  .lb__pos { font-size: 19px; }
  .lb__row--top .lb__pos { font-size: 16px; width: 32px; height: 32px; }
}

@media (max-width: 480px) {
  .lb__row {
    grid-template-columns:
      36px
      minmax(0, 1fr)
      52px
      58px;
    gap: 8px;
    padding: 12px 12px;
  }
  .lb__flag { width: 18px; height: 13px; }
  .lb__pname { font-size: 13px; }
  .lb__c--pts { font-size: 16px; }
  .lb__pos { font-size: 16px; }
  .lb__chip { font-size: 10px; padding: 3px 6px; }
  .lb__title { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .lb__row,
  .lb__cut {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .lb__form-bar { transition: none !important; }
  .lb.is-visible .lb__row .lb__form-bar { height: var(--h, 60%); }
  .lb__row .lb__form-bar { height: var(--h, 60%); }
}
