/* TrackChief Design Tokens
   Dark-first motorsport brand. Cyan/electric-blue accents only.
   Typography: Rajdhani (display), Space Grotesk (body), IBM Plex Mono (data). */

:root {
  /* ---- Type scale ---- */
  --text-xs:   clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  --text-3xl:  clamp(2.5rem, 1.4rem + 4vw, 4.75rem);
  --text-hero: clamp(2.75rem, 1.2rem + 6vw, 6.5rem);

  /* ---- Spacing (4px base) ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* ---- Content widths ---- */
  --content-narrow: 720px;
  --content-default: 1120px;
  --content-wide: 1280px;

  /* ---- Radius ---- */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* ---- Transitions ---- */
  --transition-interactive: 200ms cubic-bezier(0.16, 1, 0.3, 1);

  /* ---- Fonts ---- */
  --font-display: 'Rajdhani', 'Inter', system-ui, sans-serif;
  --font-body:    'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', 'JetBrains Mono', ui-monospace, monospace;

  /* ---- Colors (dark-first) ----
     Near-black surfaces + electric cyan primary.
     Only one accent hue — cyan — plus subtle warning/success for utility. */

  --color-bg:              #08090b;   /* near-black canvas */
  --color-bg-2:            #0b0d10;   /* subtly lifted */
  --color-surface:         #0f1216;   /* card base */
  --color-surface-2:       #14181e;   /* elevated card */
  --color-surface-3:       #1a1f26;   /* hovered / highest */
  --color-surface-inset:   #0a0c0f;
  --color-border:          #1f242c;
  --color-border-strong:   #2a313b;
  --color-divider:         #171b21;

  --color-text:            #f2f5f8;
  --color-text-muted:      #a3adb8;
  --color-text-faint:      #6a7480;
  --color-text-inverse:    #08090b;

  --color-primary:         #00e5ff;   /* electric cyan */
  --color-primary-strong:  #22f0ff;
  --color-primary-dim:     #0aa9bc;
  --color-primary-glow:    rgba(0, 229, 255, 0.35);
  --color-primary-soft:    rgba(0, 229, 255, 0.10);
  --color-primary-border:  rgba(0, 229, 255, 0.28);

  --color-accent-blue:     #4d9fff;   /* deep electric blue, secondary only */
  --color-warning:         #ffb547;
  --color-success:         #4ade80;
  --color-danger:          #ff5d73;

  /* ---- Shadows / glow ---- */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.35);
  --shadow-md: 0 6px 24px rgba(0,0,0,.45);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.55);
  --glow-primary: 0 0 0 1px rgba(0,229,255,.18), 0 8px 32px rgba(0,229,255,.10);

  /* ---- Grid noise for surfaces ---- */
  --hairline: 1px solid var(--color-border);
}

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