/* BoloGoal marketing site — design system.
   Ported from docs/initial/source/website (inline styles → tokens + classes).
   Deliberate departures from the design reference are listed in docs/CHANGELOG.md. */

/* ───────────────────── Tokens ───────────────────── */
:root {
  /* Dark palette */
  --bg: #060912;          /* page, hero, AI, contact; text on green */
  --bg-2: #080D1A;        /* stats bar, organizer panel, about */
  --bg-card: #0B1020;     /* cards, store badges */
  --bg-card-hover: #0E1526;
  --bg-foot: #040710;
  --line: #141E30;
  --line-strong: #1E2C44;
  --line-foot: #0C1424;
  --ink: #F0F5FF;
  --ink-soft: #8894B0;
  /* Replaces the design's #4A5875 / #2E3D55 / #1E2C44 text colours, which fell below
     WCAG AA (2.8:1 / 1.8:1 / 1.4:1). #6C7EA2 is ≥ 4.6:1 on every dark background. */
  --ink-mute: #6C7EA2;
  --ink-hero: rgba(240, 245, 255, 0.62);   /* was 0.5 / 0.55 over the hero photo */

  /* Light palette (How It Works + scout panel) */
  --light-bg: #F4F1EA;
  --light-ink: #0D1018;
  --light-soft: #4A5470;
  --light-ghost: #DDD7C9;  /* decorative step numerals only (aria-hidden) */
  --light-green: #007A52;

  /* Accents */
  --green: #00E87A;
  --green-hover: #5CFFAE;
  --green-focus: #00A850;
  --green-glow: 0 8px 28px rgba(0, 232, 122, 0.25);
  --slate-dot: #3A5080;
  --slate-btn: #1E2C44;
  --slate-btn-hover: #2A3B5C;
  --dark-btn-hover: #1E2839;

  /* Type */
  --display: 'Barlow Condensed', sans-serif;
  --sans: 'DM Sans', sans-serif;
  --mono: 'DM Mono', monospace;

  --nav-h: 72px;
}

/* ───────────────────── Global (from global.css) ───────────────────── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body { margin: 0; background: var(--bg); overflow-y: auto; -webkit-font-smoothing: antialiased; font-family: var(--sans); color: var(--ink-soft); }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }
input, textarea, select, button { font-family: var(--sans); }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.75); } }
a { color: var(--green); }
a:hover { color: var(--green-hover); }
p { text-wrap: pretty; }
img { max-width: 100%; }
::selection { background: rgba(0, 232, 122, 0.28); }
a, button, input, textarea, select { transition: color .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease, filter .15s ease, opacity .15s ease, transform .12s ease; }
a:active, button:active { transform: translateY(1px); }
a:focus-visible, button:focus-visible { outline: 2px solid rgba(0, 232, 122, 0.55); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ───────────────────── Shared pieces ───────────────────── */
.logo { font-family: var(--display); font-weight: 900; letter-spacing: -0.01em; line-height: 1; text-decoration: none; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo__bolo { color: var(--green); }
/* The "O" in GOAL is a football (assets/img/ball.svg). Barlow Condensed caps are 0.71em tall and the ball
   fills 58/64 of its viewBox, so 0.8em tall, dropped 0.05em, lines the ball up with the cap height and baseline. */
.logo__ball { display: inline-block; width: auto; height: 0.8em; margin: 0 -0.005em; vertical-align: -0.05em; }

.eyebrow { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 18px; }
.eyebrow--green { color: var(--green); }
.eyebrow--light { color: var(--light-green); }

.h2 { font-family: var(--display); font-size: clamp(44px, 5vw, 72px); font-weight: 800; color: var(--ink); margin: 0 0 24px; text-transform: uppercase; letter-spacing: -0.025em; line-height: 0.92; }

.body-lg { font-size: 16px; color: var(--ink-soft); line-height: 1.75; margin: 0 0 20px; font-weight: 300; }
.body-lg:last-child { margin-bottom: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 28px; border-radius: 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.05em; text-decoration: none; width: fit-content; border: none; cursor: pointer; }
.btn--green { background: var(--green); color: var(--bg); }
.btn--green:hover { color: var(--bg); filter: brightness(1.12); box-shadow: var(--green-glow); }
.btn--slate { background: var(--slate-btn); color: var(--ink); }
.btn--slate:hover { color: var(--ink); background: var(--slate-btn-hover); }
.btn--dark { background: var(--light-ink); color: var(--ink); }
.btn--dark:hover { color: var(--ink); background: var(--dark-btn-hover); }
.btn--ghost { background: transparent; border: 1.5px solid rgba(240, 245, 255, 0.2); color: var(--ink); font-weight: 500; letter-spacing: 0; }
.btn--ghost:hover { color: var(--ink); border-color: rgba(240, 245, 255, 0.5); background: rgba(240, 245, 255, 0.06); }
.btn--lg { padding: 14px 36px; border-radius: 7px; letter-spacing: 0.06em; }
.btn--lg.btn--ghost { letter-spacing: 0; }
.btn--block { width: 100%; padding: 14px; border-radius: 7px; letter-spacing: 0.06em; }

.section { padding: 110px 120px; }
.split { display: flex; gap: 100px; align-items: flex-start; }
.split > * { flex: 1; min-width: 0; }

/* ───────────────────── Nav ───────────────────── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 200; display: flex; align-items: center; padding: 0 72px; height: var(--nav-h);
  background: rgba(6, 9, 18, 0); border-bottom: 1px solid rgba(240, 245, 255, 0.07); box-shadow: none;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s; }
.nav.scrolled, .nav.menu-open { background: rgba(6, 9, 18, 0.82); border-bottom-color: var(--line); box-shadow: 0 2px 24px rgba(0, 0, 0, 0.5); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.nav .logo { font-size: 36px; }
.nav__menu { flex: 1; display: flex; justify-content: center; gap: 40px; }
.nav__menu a { color: var(--ink-hero); font-size: 14px; font-weight: 400; text-decoration: none; letter-spacing: 0.01em; }
.nav__menu a:hover { color: var(--ink); }
.nav__menu .nav__menu-cta { display: none; }
.nav__cta { padding: 11px 26px; }
.nav__toggle { display: none; margin-left: 16px; width: 40px; height: 40px; padding: 0; background: transparent; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.nav__toggle:hover { border-color: var(--ink-mute); }
.nav__toggle-bars, .nav__toggle-bars::before, .nav__toggle-bars::after { display: block; width: 16px; height: 1.5px; background: currentColor; border-radius: 1px; transition: transform .2s ease, background .2s ease; }
.nav__toggle-bars { position: relative; }
.nav__toggle-bars::before, .nav__toggle-bars::after { content: ''; position: absolute; left: 0; }
.nav__toggle-bars::before { top: -5px; }
.nav__toggle-bars::after { top: 5px; }
.nav.menu-open .nav__toggle-bars { background: transparent; }
.nav.menu-open .nav__toggle-bars::before { transform: translateY(5px) rotate(45deg); }
.nav.menu-open .nav__toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }

/* Legal / 404 pages: static nav, no transparency */
.nav--solid { position: sticky; background: var(--bg); border-bottom-color: var(--line); }

/* ───────────────────── Hero ───────────────────── */
.hero { position: relative; min-height: 100vh; min-height: 100svh; background: var(--bg); overflow: hidden; display: flex; flex-direction: column; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.28; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 9, 18, 0.5) 0%, rgba(6, 9, 18, 0.97) 100%); }
.hero__spacer { height: var(--nav-h); flex-shrink: 0; }
.hero__content { position: relative; z-index: 5; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 60px 160px 100px; }
.hero__eyebrow { font-family: var(--mono); font-size: 10px; color: var(--green); letter-spacing: 0.24em; text-transform: uppercase; margin-bottom: 24px; }
.hero h1 { font-family: var(--display); font-size: clamp(48px, 7.5vw, 108px); font-weight: 900; line-height: 0.9; letter-spacing: -0.025em; color: var(--ink); margin: 0 0 30px; text-transform: uppercase; max-width: 960px; text-wrap: balance; }
.hero h1 span { color: var(--green); }
.hero__sub { font-size: 18px; color: var(--ink-hero); max-width: 500px; line-height: 1.65; margin: 0 0 44px; font-weight: 300; }
.hero__ctas { display: flex; gap: 14px; align-items: center; }

/* ───────────────────── Stats bar (hidden until real figures) ───────────────────── */
.stats { background: var(--bg-2); display: flex; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats__cell { flex: 1; padding: 32px 0; text-align: center; border-right: 1px solid var(--line); }
.stats__cell:last-child { border-right: none; }
.stats__num { font-family: var(--display); font-size: 56px; font-weight: 800; color: var(--green); line-height: 1; letter-spacing: -0.02em; }
.stats__label { font-size: 11px; color: var(--ink-mute); margin-top: 7px; font-family: var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }

/* ───────────────────── AI analysis ───────────────────── */
.ai { background: var(--bg); border-top: 1px solid var(--line); }
.ai__intro { position: sticky; top: 100px; }
.ai .h2 { font-weight: 900; }
.ai__intro .body-lg:last-of-type { margin-bottom: 32px; }
.ai__chips { display: flex; flex-direction: column; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line-strong); border-radius: 6px; padding: 12px 20px; width: fit-content; max-width: 100%; }
.chip span { font-family: var(--mono); font-size: 11px; color: var(--ink-mute); letter-spacing: 0.1em; text-transform: uppercase; }
.chip svg { flex-shrink: 0; }
.chip__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; animation: pulse 2s ease-in-out infinite; }

.store-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; background: var(--bg-card); border: 1px solid var(--line-strong); border-radius: 8px; padding: 10px 18px; text-decoration: none; }
.store-badge:hover { border-color: var(--ink-mute); background: var(--bg-card-hover); }
.store-badge__pre { font-size: 9px; color: var(--ink-mute); font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase; line-height: 1; }
.store-badge__name { font-size: 14px; color: var(--ink); font-weight: 600; line-height: 1.3; letter-spacing: 0.01em; }

.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.metric { background: var(--bg-2); border: 1px solid var(--line); padding: 28px 28px 24px; }
.metric h3 { font-family: var(--display); font-size: 38px; font-weight: 800; color: var(--green); line-height: 1; letter-spacing: -0.02em; margin: 0 0 8px; }
.metric p { font-size: 13px; color: var(--ink-soft); line-height: 1.55; margin: 0; }

/* ───────────────────── How it works (light) ───────────────────── */
.how { background: var(--light-bg); }
.how__head { text-align: center; margin-bottom: 80px; }
.how__head .eyebrow { margin-bottom: 14px; }
.how .h2 { color: var(--light-ink); margin: 0; }
.steps { display: flex; gap: 56px; }
.step { flex: 1; }
.step__num { font-family: var(--display); font-size: clamp(64px, 6.2vw, 88px); font-weight: 900; color: var(--light-ghost); line-height: 1; letter-spacing: -0.03em; margin-bottom: 20px; }
.step h3 { font-family: var(--display); font-size: 30px; font-weight: 700; color: var(--light-ink); margin: 0 0 12px; text-transform: uppercase; letter-spacing: 0.01em; }
.step p { font-size: 15px; color: var(--light-soft); line-height: 1.7; margin: 0; }

/* ───────────────────── Audience split ───────────────────── */
.audience { display: flex; min-height: 560px; }
.panel { flex: 1; padding: 80px 60px; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
.panel:last-child { border-right: none; }
.panel .eyebrow { letter-spacing: 0.2em; margin-bottom: 20px; }
.panel h2 { font-family: var(--display); font-size: clamp(40px, 3.7vw, 52px); font-weight: 800; color: var(--ink); margin: 0 0 18px; line-height: 0.95; text-transform: uppercase; letter-spacing: -0.015em; }
.panel__sub { font-size: 15px; color: var(--ink-soft); line-height: 1.7; margin: 0 0 32px; max-width: 340px; }
.bullets { list-style: none; margin: 0 0 40px; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.bullets li { display: flex; align-items: center; gap: 13px; font-size: 14px; color: var(--ink-soft); }
.bullets li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.panel--players { background: var(--bg); }
.panel--organizers { background: var(--bg-2); }
.panel--organizers .bullets li::before { background: var(--slate-dot); }
.panel--scouts { background: var(--light-bg); }
.panel--scouts h2 { color: var(--light-ink); }
.panel--scouts .panel__sub, .panel--scouts .bullets li { color: var(--light-soft); }
.panel--scouts .bullets li::before { background: var(--light-green); }

/* ───────────────────── About ───────────────────── */
.about { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about .split { gap: 80px; align-items: center; }
.about .eyebrow { margin-bottom: 14px; }
.about__photo { position: relative; overflow: hidden; border-radius: 2px; }
.about__photo img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; opacity: 0.6; display: block; }
.about__photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(6, 9, 18, 0.5) 0%, transparent 60%); }

/* ───────────────────── Contact ───────────────────── */
.contact { background: var(--bg); border-top: 1px solid var(--line); }
.contact .h2 { font-size: clamp(48px, 5.6vw, 80px); font-weight: 900; }
.contact__sub { font-size: 16px; color: var(--ink-soft); line-height: 1.7; margin: 0 0 44px; font-weight: 300; max-width: 400px; }
.contact__info { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.contact__info li { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--ink-soft); }
.contact__info a { color: var(--ink-soft); text-decoration: none; overflow-wrap: anywhere; }
.contact__info a:hover { color: var(--green); }
.contact__icon { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* Mail card — stands in for the design's contact form (no forms; email only) */
.contact__card { background: var(--bg-card); border: 1px solid var(--line); border-radius: 8px; padding: 44px 48px; }
.contact__card h3 { font-family: var(--display); font-size: 28px; font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: 0.01em; margin: 0 0 12px; }
.contact__card > p { font-size: 15px; color: var(--ink-soft); line-height: 1.6; margin: 0 0 28px; }
.routes { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.routes__label { font-size: 11px; color: var(--ink-mute); font-family: var(--mono); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 7px; }
.route { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 6px; padding: 14px 16px; font-size: 14px; color: var(--ink); text-decoration: none; }
.route span { color: var(--ink-mute); transition: color .15s ease, transform .15s ease; }
.route:hover { color: var(--ink); border-color: var(--green-focus); box-shadow: 0 0 0 3px rgba(0, 232, 122, 0.10); }
.route:hover span { color: var(--green); transform: translateX(2px); }

/* ───────────────────── Footer ───────────────────── */
footer { background: var(--bg-foot); padding: 56px 80px 36px; border-top: 1px solid var(--line-foot); }
.footer__top { display: flex; gap: 80px; margin-bottom: 48px; }
.footer__brand { flex: 2; }
.footer__brand .logo { display: inline-block; font-size: 32px; margin-bottom: 14px; }
.footer__tag { font-size: 13px; color: var(--ink-mute); line-height: 1.7; max-width: 240px; margin: 0; }
.footer__col { flex: 1; }
.footer__col h4 { font-family: var(--mono); font-size: 10px; font-weight: 400; color: var(--ink-mute); letter-spacing: 0.15em; text-transform: uppercase; margin: 0 0 18px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer__col a { font-size: 13px; color: var(--ink-mute); text-decoration: none; }
.footer__col a:hover { color: var(--green); }
.footer__bot { border-top: 1px solid var(--line-foot); padding-top: 26px; display: flex; justify-content: space-between; align-items: center; gap: 8px 24px; flex-wrap: wrap; font-size: 12px; color: var(--ink-mute); font-family: var(--mono); }

/* ───────────────────── 404 ───────────────────── */
.notfound { min-height: calc(100vh - var(--nav-h)); display: flex; flex-direction: column; justify-content: center; background: var(--bg-2); }
.notfound h1 { font-family: var(--display); font-size: clamp(48px, 5vw, 72px); font-weight: 900; color: var(--ink); margin: 0 0 16px; text-transform: uppercase; letter-spacing: -0.025em; line-height: 0.92; max-width: 760px; }
.notfound .contact__sub { max-width: 520px; margin-bottom: 32px; }
.notfound__ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ───────────────────── Responsive (not in the design; desktop reference is ≥1440px) ───────────────────── */
@media (max-width: 1240px) {
  .section { padding: 96px 64px; }
  .split { gap: 64px; }
  .about .split { gap: 56px; }
  .nav { padding: 0 40px; }
  .hero__content { padding: 60px 96px 100px; }
  .panel { padding: 72px 40px; }
  footer { padding: 56px 64px 36px; }
  .footer__top { gap: 48px; }
}

@media (max-width: 1100px) {
  .nav__toggle { display: inline-flex; order: 3; }
  .nav__cta { margin-left: auto; }
  .nav__menu { display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 40px 24px;
    background: rgba(6, 9, 18, 0.97); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5); }
  .nav.menu-open .nav__menu { display: flex; }
  .nav__menu a { padding: 14px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav__menu a:last-child { border-bottom: none; }
}

@media (max-width: 980px) {
  .split, .about .split { flex-direction: column; align-items: stretch; gap: 56px; }
  .ai__intro { position: static; }
  .steps { flex-direction: column; gap: 48px; }
  .how__head { margin-bottom: 56px; }
  .audience { flex-direction: column; min-height: 0; }
  .panel { border-right: none; border-bottom: 1px solid var(--line); padding: 72px 64px; }
  .panel:last-child { border-bottom: none; }
  .panel__sub { max-width: 520px; }
  .hero__content { padding: 48px 40px 88px; }
  .footer__top { flex-wrap: wrap; gap: 40px 48px; }
  .footer__brand { flex: 1 1 100%; }
  .footer__col { flex: 1 1 140px; }
}

@media (max-width: 600px) {
  .section { padding: 72px 20px; }
  .nav { padding: 0 20px; }
  .nav .logo { font-size: 30px; }
  .nav__cta { display: none; }
  .nav__toggle { margin-left: auto; }
  .nav__menu { padding: 8px 20px 20px; }
  .nav__menu .nav__menu-cta { display: block; color: var(--green); font-weight: 500; }
  .hero__content { padding: 40px 20px 72px; }
  .hero__sub { font-size: 16px; margin-bottom: 36px; }
  .hero__ctas { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; }
  .hero__ctas .btn { width: 100%; }
  .metrics { grid-template-columns: 1fr; }
  .metric { padding: 24px 22px 20px; }
  .metric h3 { font-size: 34px; }
  .chip { padding: 12px 16px; }
  .panel { padding: 64px 20px; }
  .contact__card { padding: 32px 22px; }
  footer { padding: 48px 20px 32px; }
}
