/* ============================================================================
   MIXLY — base.css  ·  tokens, reset, type, buttons, primitives
   Dark, athletic, "Nike-adjacent". Volt is a spotlight, not the wallpaper.
   ========================================================================== */

:root {
  /* — Accent (Volt) — */
  --accent:        #CCFF00;
  --accent-2:      #E5FF5E;
  --accent-dark:   #8FB800;   /* the "lip" under volt buttons */
  --accent-glow:   rgba(204,255,0,0.22);
  --accent-rgb:    204,255,0;

  /* — Surfaces (neutral dark grey, NOT olive) — */
  --bg-0:      #050505;
  --bg-1:      #0A0A0A;
  --bg-2:      #111111;
  --surface:   #181818;
  --surface-2: #222222;
  --surface-3: #2E2E2E;

  /* — Text (warm ivory, never pure white) — */
  --text:    #F5F5F3;
  --text-2:  #A8A8A4;
  --text-3:  #8A8A86;

  /* — Lines — */
  --line:    rgba(245,245,243,0.06);
  --line-2:  rgba(245,245,243,0.12);

  /* — Status — */
  --success: #7BD88F;
  --warn:    #FFB547;
  --error:   #FF5247;

  /* — Shape — */
  --r-sm: 10px;
  --r:    14px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* — Motion — */
  --ease:       cubic-bezier(0.2, 0, 0, 1);
  --ease-bounce:cubic-bezier(0.34, 1.56, 0.64, 1);
  --fast: 140ms;
  --base: 240ms;
  --slow: 420ms;

  /* — Motion intensity (driven by Tweaks: 0 = calm, 1 = maximal) — */
  --motion: 1;

  /* — Type — */
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* — Layout — */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --nav-h: 68px;
}

/* — Material Symbols Rounded (sport icons, matched to the app) — */
.material-symbols-rounded {
  font-family: 'Material Symbols Rounded';
  font-weight: 500;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}
.sport-ms { font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24; }

* , *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg-1);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }
::selection { background: var(--accent); color: #0A0A0A; }

/* — Brand lockup (shared by main nav, footer, and sub-page nav) — */
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); }
.brand .mark { width: 34px; height: auto; color: var(--accent); }
.brand .word { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 23px; letter-spacing: -0.02em; }

/* — Type primitives — */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-2);
}
.eyebrow .dot { color: var(--accent); }

h1, h2, h3 { margin: 0; font-family: var(--font-display); }

.display {
  font-weight: 900;
  font-style: italic;
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.volt { color: var(--accent); }
.muted { color: var(--text-2); }

/* — Section scaffolding — */
.section { padding: clamp(72px, 11vh, 132px) 0; position: relative; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  line-height: 0.98;
  font-size: clamp(34px, 5.2vw, 64px);
}
.section-sub {
  margin-top: 20px;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--text-2);
  max-width: 60ch;
  text-wrap: pretty;
}

/* ============================================================================
   Buttons — stacked-shadow "physical lip" from the app
   ========================================================================== */
.btn {
  --lip: #8FB800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  padding: 0 26px;
  border: 0;
  border-radius: 16px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--fast) var(--ease), background var(--fast) var(--ease),
              box-shadow var(--base) var(--ease);
  will-change: transform;
}
.btn:active { transform: translateY(1px) scale(0.98); }

.btn-primary {
  background: var(--accent);
  color: #0A0A0A;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.35),
    inset 0 -2px 0 rgba(0,0,0,0.18),
    0 2px 0 var(--accent-dark),
    0 6px 18px -4px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-2);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.4),
    inset 0 -2px 0 rgba(0,0,0,0.18),
    0 2px 0 var(--accent-dark),
    0 10px 30px -6px var(--accent-glow);
}

.btn-secondary {
  background: #F5F5F3;
  color: #0A0A0A;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.6),
    inset 0 -2px 0 rgba(0,0,0,0.18),
    0 2px 0 #B8B8B4,
    0 6px 16px -4px rgba(0,0,0,0.4);
}
.btn-secondary:hover { background: #fff; }

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line-2);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    inset 0 -2px 0 rgba(0,0,0,0.25),
    0 2px 0 rgba(0,0,0,0.35);
}
.btn-ghost:hover { background: var(--surface-2); border-color: rgba(var(--accent-rgb),0.4); }

.btn-sm { height: 44px; padding: 0 18px; font-size: 13px; border-radius: 12px; }

/* — Chips / pills — */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 14px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line-2);
  font-size: 13px; font-weight: 600; color: var(--text-2);
}
.chip .live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

/* — Cards — */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.card.featured {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border-color: var(--line-2);
}

/* — Reveal default state (JS toggles .is-in) — */
[data-reveal] {
  opacity: 0;
  transform: translateY(calc(24px * var(--motion)));
  transition: opacity 560ms var(--ease), transform 560ms var(--ease);
  transition-delay: var(--rd, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* When the document is hidden, transitions/animations freeze at frame 0 and
   would strand reveal content invisible. Collapse all timing so every element
   jumps to its settled state. Removed instantly when the doc becomes visible. */
html.is-render-frozen *, html.is-render-frozen *::before, html.is-render-frozen *::after {
  transition-duration: 0s !important;
  transition-delay: 0s !important;
  animation-duration: 0s !important;
  animation-delay: 0s !important;
}

/* — Focus — */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* — Utility — */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
