/* ==========================================================================
   SportGala — marketing pages (home, about, guide)
   ========================================================================== */

/* ---------- Ball cursor ---------- */
.ball-cursor-on,
.ball-cursor-on * { cursor: none !important; }
.ball-cursor-on input,
.ball-cursor-on textarea { cursor: text !important; }

#ball-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 0;
  height: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  will-change: transform;
}
#ball-cursor.is-visible { opacity: 1; }
#ball-cursor.is-text { opacity: 0; }

#ball-cursor .ball-body {
  position: absolute;
  width: 34px;
  height: 34px;
  left: -17px;
  top: -17px;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#ball-cursor .ball-spin { width: 100%; height: 100%; }
#ball-cursor .ball-spin svg { width: 100%; height: 100%; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35)); }
#ball-cursor .ball-shadow {
  position: absolute;
  width: 26px;
  height: 8px;
  left: -13px;
  top: 16px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.45), transparent);
  transition: transform 0.18s ease;
}
#ball-cursor.is-hover .ball-body { transform: scale(1.35); }
#ball-cursor.is-hover .ball-shadow { transform: scale(1.3); }
#ball-cursor.is-kick .ball-body { transform: scale(0.8, 0.72); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 72px;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  isolation: isolate;
}
@media (min-width: 960px) { .hero { padding: 40px 0; } }

.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-lines { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(163, 230, 53, 0.06); }
.hero-glow {
  position: absolute;
  width: 900px;
  height: 900px;
  right: -260px;
  top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(closest-side, rgba(22, 163, 74, 0.28), rgba(22, 163, 74, 0.08) 55%, transparent);
}

.hero-grid {
  display: grid;
  gap: 32px;
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 48px; }
}

.hero-copy .eyebrow { font-family: var(--font-body); font-size: 11px; letter-spacing: 0.12em; line-height: 1.6; }
.hero-copy .eyebrow::before { width: 14px; }
.hero-title {
  font-family: var(--font-head);
  letter-spacing: 0.01em;
  margin: 16px 0 20px;
  font-size: clamp(40px, 6.2vw, 72px);
  font-weight: 800;
  line-height: 0.92;
  text-transform: uppercase;
}
.hero-title em {
  font-style: normal;
  color: transparent;
  background: linear-gradient(90deg, var(--accent), #4ade80);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero-lead { max-width: 520px; color: var(--muted); font-size: 18px; }
@media (min-width: 768px) { .hero-lead { font-size: 20px; } }

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

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-stats li { display: grid; gap: 2px; }
.hero-stats strong { font-family: var(--font-head); font-size: 34px; font-weight: 800; line-height: 1; color: var(--text); }
.hero-stats span { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* Stage with the footballer */
.hero-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  order: -1;
}
@media (min-width: 960px) { .hero-stage { order: 0; max-width: 560px; } }

.stage-ring {
  position: absolute;
  width: 88%;
  aspect-ratio: 1;
  top: 4%;
  border-radius: 50%;
  border: 2px dashed rgba(163, 230, 53, 0.22);
  background: radial-gradient(closest-side, rgba(22, 163, 74, 0.3), rgba(11, 18, 32, 0) 70%);
  animation: ring-spin 60s linear infinite;
}
@keyframes ring-spin { to { transform: rotate(360deg); } }

.footballer {
  position: relative;
  width: min(100%, 300px);
  height: auto;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.45));
  -webkit-mask-image: linear-gradient(to bottom, #000 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 90%, transparent 100%);
}
@media (min-width: 600px) { .footballer { width: min(100%, 380px); } }
@media (min-width: 960px) { .footballer { width: 100%; max-width: 440px; } }

.footballer .lid {
  transform-box: fill-box;
  transform-origin: 50% 0;
  transform: scaleY(0);
  transition: transform 0.08s ease-in;
}
.footballer .lid.is-closed { transform: scaleY(1); }

.float-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(17, 26, 46, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.float-chip svg { color: var(--accent); }
.chip-a { top: 12%; left: 0; }
.chip-b { top: 38%; right: -4px; animation-delay: -2s; }
.chip-c { bottom: 16%; left: 4%; animation-delay: -4s; }
@media (max-width: 480px) {
  .chip-b { right: 0; }
  .float-chip { font-size: 12px; padding: 6px 10px; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.stage-hint {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}
.stage-hint svg { color: var(--accent); }
@media (pointer: fine) { .stage-hint { display: inline-flex; } }

.hero-ball {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 44px;
  height: 44px;
  display: none;
  pointer-events: none;
  filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.35));
}
.hero-ball.is-on { display: block; }
.hero-ball svg { width: 100%; height: 100%; }

/* ---------- Features ---------- */
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.feature-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.feature-card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature-card:hover { border-color: rgba(163, 230, 53, 0.4); transform: translateY(-4px); }
.feature-card h3 { font-size: 26px; text-transform: uppercase; margin: 18px 0 8px; }
.feature-card p { color: var(--muted); }
.feature-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(163, 230, 53, 0.12);
  color: var(--accent);
}
.feature-icon svg { width: 24px; height: 24px; }

/* ---------- Formations strip ---------- */
.formation-strip {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) { .formation-strip { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .formation-strip { grid-template-columns: repeat(5, 1fr); } }

.formation-card {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.formation-card:hover { transform: translateY(-4px); border-color: rgba(163, 230, 53, 0.4); }
.formation-card svg { width: 100%; height: auto; border-radius: 6px; }
.formation-card figcaption {
  margin-top: 12px;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.04em;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  padding: 36px 24px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 90% 20%, rgba(163, 230, 53, 0.25), transparent 50%),
    linear-gradient(135deg, #14532d, #0f3d22);
  border: 1px solid rgba(163, 230, 53, 0.25);
}
.cta-band h2 { font-size: clamp(36px, 5vw, 56px); text-transform: uppercase; }
.cta-band p { color: #c7e8cf; margin-top: 8px; font-size: 18px; }
@media (min-width: 768px) {
  .cta-band { flex-direction: row; align-items: center; justify-content: space-between; padding: 56px; }
}

/* ---------- Page banner (about, guide) ---------- */
.page-banner {
  position: relative;
  overflow: hidden;
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 85% 0%, rgba(22, 163, 74, 0.25), transparent 55%),
    var(--bg);
}
@media (min-width: 768px) { .page-banner { padding: 112px 0 88px; } }
.page-banner h1 {
  margin: 14px 0 18px;
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.95;
}
.page-banner h1 em { font-style: normal; color: var(--accent); }
.page-banner p { max-width: 640px; color: var(--muted); font-size: 18px; }
@media (min-width: 768px) { .page-banner p { font-size: 20px; } }

/* ---------- About ---------- */
.split {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.split h2 { font-size: clamp(36px, 5vw, 56px); text-transform: uppercase; margin: 12px 0 18px; }
.split p { color: var(--muted); font-size: 17px; }
.split p + p { margin-top: 14px; }

.mission-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(163, 230, 53, 0.25);
  background: linear-gradient(160deg, #14532d, var(--surface) 70%);
}
.mission-card blockquote {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
}
.mission-card blockquote em { font-style: normal; color: var(--accent); }
.mission-card p { margin-top: 18px; color: #c7e8cf; }
.mission-card-alt { background: linear-gradient(160deg, var(--surface-2), var(--surface) 70%); border-color: var(--line-2); }
.mission-card-alt p { color: var(--muted); }
@media (max-width: 899px) { .mission-card-alt { order: 1; } }

.value-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .value-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .value-grid { grid-template-columns: repeat(4, 1fr); } }
.value-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.value-card h3 { font-size: 24px; text-transform: uppercase; margin: 16px 0 8px; }
.value-card p { color: var(--muted); font-size: 15px; }

.offer-list { display: grid; gap: 12px; }
.offer-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.offer-list li svg { flex: none; margin-top: 3px; color: var(--accent); }
.offer-list strong { display: block; color: var(--text); }
.offer-list span { color: var(--muted); font-size: 15px; }

.audience {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.audience span {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03);
  font-size: 14px;
  font-weight: 600;
}

.contact-card {
  display: grid;
  gap: 20px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: center;
  justify-items: center;
}
.contact-card h2 { font-size: clamp(32px, 4vw, 48px); text-transform: uppercase; }
.contact-card p { color: var(--muted); max-width: 520px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Guide ---------- */
.guide-toc {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.guide-toc a {
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.guide-toc a:hover { color: var(--accent); border-color: var(--accent); }

.steps { display: grid; gap: 20px; }
.step {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  scroll-margin-top: calc(var(--nav-h) + 16px);
}
@media (min-width: 860px) {
  .step { grid-template-columns: 1fr 1.1fr; gap: 48px; padding: 36px; }
  .step:nth-child(even) .step-visual { order: -1; }
}
.step-num {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.step h2 { font-size: clamp(30px, 4vw, 44px); text-transform: uppercase; margin: 8px 0 12px; }
.step p { color: var(--muted); }
.step ul { margin-top: 16px; display: grid; gap: 10px; }
.step li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); font-size: 15px; }
.step li svg { flex: none; margin-top: 3px; color: var(--accent); }
.kbd {
  display: inline-block;
  min-width: 24px;
  padding: 1px 7px;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--bg);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  text-align: center;
  color: var(--text);
}

.step-visual {
  position: relative;
  aspect-ratio: 100 / 64;
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid var(--line-2);
  background: #16a34a repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 10%, transparent 10% 20%);
}
.step-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- Copyright note (about) ---------- */
.legal-note {
  display: grid;
  gap: 20px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
@media (min-width: 768px) { .legal-note { grid-template-columns: auto 1fr; padding: 36px; gap: 28px; } }
.legal-note h2 { font-size: clamp(30px, 4vw, 40px); text-transform: uppercase; margin-bottom: 12px; }
.legal-note p { color: var(--muted); }
.legal-note p + p { margin-top: 10px; }
.legal-note p:first-of-type { color: var(--text); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 10px; max-width: 820px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s ease;
}
.faq-item[open] { border-color: rgba(163, 230, 53, 0.4); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-weight: 600;
  font-size: 17px;
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(163, 230, 53, 0.12);
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 20px 18px; color: var(--muted); }

/* ---------- Phones in landscape: hero side by side ---------- */
@media (orientation: landscape) and (max-height: 520px) and (min-width: 600px) {
  .hero { min-height: 0; padding: 28px 0 40px; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 24px; }
  .hero-stage { order: 0; max-width: 300px; }
  .footballer { width: 100%; }
  .hero-stats { margin-top: 24px; padding-top: 18px; }
  .float-chip { display: none; }
}
