/* Base layer: tokens, reset, typography, buttons, pills, scroll reveal.
   Skip link and navigation live in nav.css.
   Colors follow the Gymate brand assets (assets/gymate-logo.png, gymate-banner.png):
   electric lime on near-black. Dark-only by design: the logo and banner are
   drawn on #0B0D0C, so the page background matches them exactly. */
:root {
  color-scheme: dark;
  --bg: #0B0D0C;
  --bg-2: #111412;
  --surface: #1A1E1B;
  --surface-2: #151916;
  --border: #2C332D;
  --hairline: rgba(44, 51, 45, 0.7);
  --text: #F2F5F0;
  --text-2: #9AA39B;
  --text-3: #6B736C;
  /* Brand lime. Use it as a fill (with --on-primary text) or as text/strokes on dark;
     both pass AA by a wide margin (~16:1). The triplet feeds translucent tints. */
  --primary: #C6FF3D;
  --primary-rgb: 198 255 61;
  --primary-dark: #A9E01E;
  --primary-light: #D7FF7A;
  --on-primary: #0B0D0C;
  --accent: #F59E0B;
  --success: #10B981;

  --r-card: 20px;
  --r-btn: 12px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  --font-display: 'Barlow Condensed', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 760px; }
.muted { color: var(--text-2); }

/* ----- Typography ----- */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}
.display--md { font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: 1; }
.display--sm { font-size: clamp(1.8rem, 3.5vw, 2.4rem); line-height: 1; margin-bottom: 10px; }
.lead { font-size: 1.125rem; color: var(--text-2); max-width: 540px; margin-top: 20px; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 16px;
}
.text-gradient {
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ----- Buttons & pills ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--r-btn);
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 10px 30px rgb(var(--primary-rgb) / 0.25); }
.btn--primary:hover { background: var(--primary-dark); }
.btn--ghost { border-color: var(--border); color: var(--text); }
.btn--ghost:hover { background: var(--surface); }
.btn--sm { padding: 9px 18px; font-size: 0.9rem; }
.btn:focus-visible, a:focus-visible, summary:focus-visible, button:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 3px;
}

.pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.pill--accent { background: rgba(245, 158, 11, 0.15); color: #FCD34D; }
.pill--primary { background: rgb(var(--primary-rgb) / 0.12); color: var(--primary); }

/* ----- Scroll reveal: only hidden when JS is present to reveal it (see <head>) ----- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
