/* ============================================================
   Pitcha — feuille de style
   Palette ancrée dans le pitch de nuit sous les projecteurs :
   fond quasi noir à peine teinté de vert, herbe vive, lueur ambre
   de floodlight, blanc craie pour les lignes de terrain.
   ============================================================ */

:root {
  --bg: #0A100D;
  --bg-alt: #0F1712;
  --teal: #1A9E94;
  --mint: #38D1B8;
  --teal-dark: #0A6B6B;
  --floodlight: #FFC94A;
  --chalk: #F4F6F1;
  --muted: #8A9A90;
  --line: rgba(244, 246, 241, 0.10);
  --line-strong: rgba(244, 246, 241, 0.18);

  --display: "Big Shoulders Display", sans-serif;
  --body: "Work Sans", sans-serif;

  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--chalk);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0; color: var(--muted); }
.lead { font-size: 1.08rem; max-width: 46ch; }

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

/* Texture de fond très subtile, façon grain de pelouse filmée la nuit */
.pitch-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-image:
    radial-gradient(circle at 20% 15%, rgba(26, 158, 148, 0.06), transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(255, 201, 74, 0.045), transparent 45%);
}

/* ---------- Boutons ---------- */
.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px 9px 14px;
  background: #000;
  border: 1px solid rgba(244, 246, 241, 0.25);
  border-radius: 10px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.btn-store:hover { transform: translateY(-1px); border-color: rgba(244, 246, 241, 0.5); }
.btn-store svg { width: 26px; height: 26px; fill: #fff; flex-shrink: 0; }
.btn-store .store-lines { display: flex; flex-direction: column; line-height: 1.05; }
.btn-store .store-small { font-size: 0.62rem; color: #d8dcda; font-weight: 400; }
.btn-store .store-big { font-size: 1.02rem; color: #fff; font-weight: 600; font-family: var(--body); letter-spacing: -0.01em; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 3px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--teal);
  color: #06170D;
}
.btn-primary:hover { transform: translateY(-1px); background: #38D1B8; }

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--chalk);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

.btn-text {
  color: var(--muted);
  padding: 13px 6px;
}
.btn-text:hover { color: var(--chalk); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 16, 13, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--chalk);
}
.logo.small { font-size: 1.15rem; }
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a { color: var(--muted); font-size: 0.94rem; }
.nav-links a:hover { color: var(--chalk); }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 80px; position: relative; z-index: 1; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.kicker {
  font-size: 0.95rem;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 14px;
}
h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  color: var(--chalk);
  margin-bottom: 22px;
}
.hero-wordmark {
  font-size: clamp(4.5rem, 11vw, 8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.9;
  color: var(--chalk);
  margin-bottom: 26px;
}
.accent { color: var(--teal); }
.hero-copy .lead { margin-bottom: 34px; color: #C7D2CB; }
.hero-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 420px;
}
.pitch-lines {
  position: absolute;
  inset: 0;
  color: var(--line-strong);
  opacity: 0.7;
}
.pitch-lines svg { width: 100%; height: 100%; }

.player-card {
  position: relative;
  width: 240px;
  padding: 20px;
  background: linear-gradient(155deg, #0F3D38, #081F1C);
  border: 1px solid rgba(26, 158, 148, 0.35);
  clip-path: polygon(0 14px, 14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.card-top { display: flex; justify-content: space-between; margin-bottom: 22px; }
.tag-pos, .tag-div {
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  padding: 3px 9px;
  border: 1px solid rgba(244, 246, 241, 0.3);
  color: var(--chalk);
}
.tag-div { border-color: var(--floodlight); color: var(--floodlight); }
.card-avatar {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #2F5B41, #12281B);
  margin: 0 auto 18px;
  border: 1px solid rgba(244, 246, 241, 0.2);
}
.card-name-block { text-align: center; margin-bottom: 20px; }
.card-name-line {
  width: 70%; height: 11px; margin: 0 auto 8px;
  background: rgba(244, 246, 241, 0.5); border-radius: 2px;
}
.card-sub-line {
  width: 45%; height: 7px; margin: 0 auto;
  background: rgba(244, 246, 241, 0.22); border-radius: 2px;
}
.card-bar {
  height: 6px; background: rgba(244, 246, 241, 0.12);
  border-radius: 3px; overflow: hidden; margin-bottom: 12px;
}
.card-bar-fill {
  width: 62%; height: 100%;
  background: linear-gradient(90deg, var(--floodlight), #FFE29A);
}
.card-foot {
  display: flex; justify-content: space-between;
  font-size: 0.72rem; color: var(--muted);
  font-weight: 600; letter-spacing: 0.01em;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Statement ---------- */
.statement {
  padding: 64px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.statement p {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  color: var(--chalk);
  max-width: 22ch;
  line-height: 1.2;
}

/* ---------- Features ---------- */
.features { padding: 100px 0; }
.features h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--chalk);
  max-width: 18ch;
  margin-bottom: 64px;
}
.feature-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 40px;
  align-items: start;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}
.feature-row:last-child { border-bottom: 1px solid var(--line); }
.feature-row.reverse { direction: rtl; }
.feature-row.reverse .feature-body,
.feature-row.reverse .feature-tag { direction: ltr; }

.feature-tag {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--tag-color);
  letter-spacing: 0.01em;
}
.feature-body h3 {
  font-size: 1.4rem;
  color: var(--chalk);
  margin-bottom: 12px;
  font-weight: 700;
}
.feature-body p { max-width: 56ch; }

/* ---------- Ranked ladder ---------- */
.ranked {
  padding: 100px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ranked-inner {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.ranked h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  color: var(--chalk);
  margin: 14px 0 22px;
}
.ranked .lead { color: #C7D2CB; }

.ladder {
  display: flex;
  flex-direction: column-reverse;
  gap: 6px;
}
.rung {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--chalk);
  background: rgba(26, 158, 148, 0.10);
  border-left: 3px solid var(--teal);
  padding: 10px 16px;
  width: calc(58% + (var(--i) * 3.4%));
  animation: slide-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--i) * 0.045s);
}
.rung.dim {
  background: rgba(244, 246, 241, 0.04);
  border-left-color: var(--line-strong);
  color: var(--muted);
}
.rung.active {
  background: rgba(255, 201, 74, 0.12);
  border-left-color: var(--floodlight);
  color: var(--floodlight);
}

@keyframes slide-in {
  from { opacity: 0; transform: translateX(-14px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ---------- Audience ---------- */
.audience { padding: 100px 0; }
.audience-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 48px;
}
.audience-block h3 {
  font-size: 1.3rem;
  color: var(--chalk);
  margin-bottom: 14px;
}
.audience-block p { max-width: 42ch; }
.divider-vert {
  width: 1px;
  background: var(--line-strong);
}

/* ---------- CTA ---------- */
.cta {
  padding: 110px 0 100px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.cta-inner { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.cta h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--chalk);
  max-width: 16ch;
}
.fine-print { font-size: 0.85rem; color: var(--muted); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--muted); font-size: 0.88rem; }
.footer-links a:hover { color: var(--chalk); }
.footer-copy { color: var(--muted); font-size: 0.85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-inner, .ranked-inner { grid-template-columns: 1fr; }
  .hero-visual { height: 340px; order: -1; margin-bottom: 8px; }
  .audience-inner { grid-template-columns: 1fr; }
  .divider-vert { display: none; }
  .feature-row { grid-template-columns: 60px 1fr; gap: 20px; }
  .nav-links { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  html { scroll-behavior: auto; }
}
