/* ===========================================================
   S3 ATHLETIC PERFORMANCE — DESIGN TOKENS
   Palette: ink black / charcoal / gold gradient / bone / track red
   Type: Oswald (display, scoreboard energy) + Inter (body) + JetBrains Mono (data)
   Signature: timing-gate brackets ⟦ ⟧ used as the structural motif
              throughout, echoing the FreeLap photocell gates S3
              actually trains with — not a decorative numeral system.
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --ink: #0b0b0a;
  --panel: #171613;
  --panel-raised: #1f1d18;
  --gold-a: #c9962f;
  --gold-b: #f0cb6e;
  --bone: #f3efe4;
  --stone: #a39c8c;
  --track-red: #b4231e;
  --line: #2c2a24;

  --gold-grad: linear-gradient(120deg, var(--gold-a), var(--gold-b) 55%, var(--gold-a));

  --display: 'Oswald', sans-serif;
  --body: 'Inter', sans-serif;
  --mono: 'JetBrains Mono', monospace;

  --wrap: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

h1, h2, h3, h4 {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
  font-weight: 600;
}

.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-b);
}

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

/* ---------- Timing-gate bracket motif ---------- */
.gate {
  position: relative;
  padding-left: 18px;
}
.gate::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 8px;
  border: 2px solid var(--gold-a);
  border-right: none;
}
.gate-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--stone);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 64px 0 28px;
}
.gate-divider::before, .gate-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

/* ---------- Header / nav ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 10, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--wrap);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}
.brand img { height: 40px; width: 40px; }
.nav-links {
  display: flex;
  gap: 32px;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-links a { color: var(--stone); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--gold-b); }
.nav-cta {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 20px;
  border: 1px solid var(--gold-a);
  color: var(--gold-b);
  transition: all 0.2s;
}
.nav-cta:hover { background: var(--gold-a); color: var(--ink); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: block;
    background: none;
    border: 1px solid var(--line);
    color: var(--bone);
    font-family: var(--mono);
    padding: 8px 12px;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 15px 28px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.btn-primary { background: var(--gold-grad); color: var(--ink); font-weight: 700; }
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--bone); }
.btn-ghost:hover { border-color: var(--gold-a); color: var(--gold-b); }

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
  margin-top: 96px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.footer-grid h4 {
  font-size: 0.85rem;
  color: var(--gold-b);
  margin-bottom: 14px;
}
.footer-grid a, .footer-grid p { color: var(--stone); font-size: 0.92rem; }
.footer-grid a { display: block; margin-bottom: 8px; }
.footer-grid a:hover { color: var(--gold-b); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--stone);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 32px;
}

/* ---------- Utility ---------- */
.section { padding: 96px 0; }
.section-tight { padding: 56px 0; }
.center { text-align: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}
