/* ============================================================
   KINETIC LEAN — Design System
   Premium athletic monochrome. Near-black surfaces, off-white
   type, a single high-voltage accent. No gradients, no glow.
   ============================================================ */

:root {
  /* Surfaces */
  --bg:           #0A0A0A;
  --bg-elev:      #111111;
  --bg-elev-2:    #161616;
  --line:         #222222;
  --line-strong:  #2E2E2E;

  /* Type */
  --ink:          #F2F0EA;
  --ink-2:        #C8C6BF;
  --ink-3:        #8A887F;
  --ink-4:        #5A5853;

  /* Accent — Volt: high-energy electric chartreuse */
  --accent:       #D6FF3F;
  --accent-2:     #B8E033;
  --accent-ink:   #0A0A0A;

  /* Semantic */
  --warn:         #E8B448;
  --error:        #E26A5A;

  /* Type scale (compact, marketing-grade) */
  --text-xs:   12px;
  --text-sm:   14px;
  --text-base: 16px;
  --text-lg:   18px;
  --text-xl:   22px;
  --text-2xl:  30px;
  --text-3xl:  44px;
  --text-4xl:  64px;
  --text-hero: 96px;

  /* Spacing */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  /* Radii — restrained */
  --r-1: 4px; --r-2: 8px; --r-3: 12px; --r-4: 20px; --r-pill: 999px;

  /* Layout */
  --container: 1240px;
  --gutter: 24px;

  /* Motion */
  --ease-out: cubic-bezier(.2,.7,.2,1);
  --ease-in-out: cubic-bezier(.65,0,.35,1);
  --t-fast: 120ms;
  --t-base: 240ms;
  --t-slow: 480ms;

  /* Fonts */
  --font-display: "Geist", "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body:    "Geist", "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono:    "Geist Mono", "JetBrains Mono", ui-monospace, monospace;
  --font-serif:   "Instrument Serif", "Times New Roman", serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: var(--text-base);
  line-height: 1.55;
  font-feature-settings: "ss01","cv11","tnum";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- Typography ---------- */
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(44px, 7vw, var(--text-hero)); letter-spacing: -0.035em; font-weight: 600; }
h2 { font-size: clamp(28px, 4vw, var(--text-3xl)); letter-spacing: -0.025em; }
h3 { font-size: var(--text-xl); letter-spacing: -0.015em; line-height: 1.2; }
h4 { font-size: var(--text-lg); letter-spacing: -0.01em; line-height: 1.25; }
p  { margin: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; background: var(--accent); border-radius: 50%;
}

.serif-accent { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

.mono { font-family: var(--font-mono); letter-spacing: 0; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
section { padding: var(--s-10) 0; }
@media (max-width: 768px) { section { padding: var(--s-9) 0; } }

.row { display: flex; gap: var(--s-5); }
.grid { display: grid; gap: var(--s-5); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  border-radius: var(--r-pill);
  transition: transform var(--t-fast) var(--ease-out),
              background var(--t-base) var(--ease-out),
              color var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out);
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.btn--primary:hover { background: var(--accent-2); border-color: var(--accent-2); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--ink); }

.btn--dark {
  background: var(--bg-elev);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--dark:hover { background: var(--bg-elev-2); border-color: var(--ink-3); }

.btn .arrow { transition: transform var(--t-base) var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

.btn--sm { padding: 9px 16px; font-size: 13px; }
.btn--lg { padding: 18px 28px; font-size: 16px; }

/* ---------- Cards & surfaces ---------- */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  padding: var(--s-6);
}
.card--soft { background: var(--bg-elev-2); }

.hr { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Utilities ---------- */
.muted { color: var(--ink-3); }
.dim   { color: var(--ink-2); }
.t-center { text-align: center; }
.tabular { font-variant-numeric: tabular-nums; }
.no-wrap { white-space: nowrap; }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-2);
  padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  background: rgba(255,255,255,0.02);
}
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,10,0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav__links {
  display: flex; gap: 28px; align-items: center;
}
.nav__links a {
  color: var(--ink-2); font-size: 14px; letter-spacing: -0.005em;
  transition: color var(--t-base) var(--ease-out);
}
.nav__links a:hover { color: var(--ink); }
.nav__actions { display: flex; gap: 12px; align-items: center; }
.nav__login { color: var(--ink-2); font-size: 14px; }
.nav__login:hover { color: var(--ink); }

.logo-mark { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark__svg { width: 28px; height: 28px; color: var(--ink); }
.logo-mark__word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
}
.logo-mark__word em {
  font-style: normal;
  color: var(--accent);
}

/* Mobile nav */
.nav__toggle { display: none; }
@media (max-width: 880px) {
  .nav__links, .nav__actions .nav__login, .nav__actions .btn { display: none; }
  .nav__toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  }
}

.mobile-drawer {
  position: fixed;
  top: 68px; right: 0; bottom: 0; left: 0;
  width: 100vw;
  height: calc(100vh - 68px);
  height: calc(100dvh - 68px);
  background: #0A0A0A;
  border-top: 1px solid var(--line);
  padding: var(--s-6) var(--gutter);
  z-index: 60;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--t-base) var(--ease-out), opacity var(--t-base) var(--ease-out);
  overflow-y: auto;
  display: block;
}
.mobile-drawer.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-drawer a {
  display: block; padding: 14px 0; border-bottom: 1px solid var(--line);
  font-size: 18px; letter-spacing: -0.01em;
}
.mobile-drawer .btn { margin-top: var(--s-5); width: 100%; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: var(--s-9) 0 var(--s-7);
  color: var(--ink-3);
  font-size: 14px;
}
.site-footer h5 {
  color: var(--ink-2); font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  margin: 0 0 var(--s-4); font-weight: 500;
}
.site-footer a { color: var(--ink-2); display: block; padding: 4px 0; }
.site-footer a:hover { color: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

.footer-legal {
  margin-top: var(--s-7); padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  font-size: 12px; line-height: 1.6; color: var(--ink-4);
}
.footer-legal p + p { margin-top: 10px; }

/* ---------- Animations ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

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