/* ============================================
   ARKSPAN — DESIGN TOKENS
   Structure modeled on tesla.com:
   light-only canvas, black type, one red accent,
   two-tier navigation, full-bleed sections, zero radius.
   ============================================ */
:root {
  /* ---- Brand ---- */
  /* Tesla red. Sampled directly from tesla.com's favicon assets
   (196/152/120/32px all resolve to rgb(201,0,0)). Single accent. */
  --tesla-red: #c90000;
  --accent: #c90000;
  --accent-hover: #a80000;
  --accent-light: #fbeaea;
  --accent-muted: rgba(201, 0, 0, 0.08);
  --accent-glow: rgba(201, 0, 0, 0.22);

  /* ---- Canvas ---- */
  --bg-primary: #ffffff;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f4f4f4;
  --bg-band: #f4f4f4;
  --bg-dark: #000000;
  --bg-card: #ffffff;
  --bg-input: #ffffff;
  --bg-elevated: #ffffff;
  --scrim: rgba(0, 0, 0, 0.42);

  /* ---- Ink ---- */
  --text-primary: #000000;
  --text-secondary: #39393c;
  --text-muted: #6e6e73;
  --text-inverse: #ffffff;
  --text-on-media: #ffffff;

  /* ---- Lines ---- */
  --border: #d0d0d0;
  --border-light: #e3e3e3;
  --border-dark: #b4b4b8;
  --border-input: #a2a2a6;
  --border-focus: var(--accent);

  /* ---- Elevation (Tesla stays flat — shadows are reserved for overlays) ---- */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 34px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.18);
  --shadow-accent: 0 4px 20px rgba(201, 0, 0, 0.20);
  --shadow-accent-lg: 0 10px 34px rgba(201, 0, 0, 0.28);

  /* ---- Radius: Tesla is square. Keep small radius for controls only. ---- */
  --radius-sm: 2px;
  --radius-md: 2px;
  --radius-lg: 0px;
  --radius-xl: 0px;
  --radius-full: 9999px;

  /* ---- Type — Arkspan's own voice, not a borrowed system face ---- */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue',
    Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', ui-monospace, monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.75rem;
  --text-4xl: 2.125rem;
  --text-5xl: 2.75rem;
  --text-6xl: 3.5rem;

  /* Display scale — oversized, confident, firm weight */
  --display-sm: clamp(1.75rem, 3vw, 2.25rem);
  --display-md: clamp(2rem, 4vw, 3rem);
  --display-lg: clamp(2.25rem, 4.8vw, 3.75rem);
  --display-xl: clamp(2.75rem, 7vw, 5.5rem);

  --leading-tight: 1.15;
  --leading-headline: 1.12;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;

  --tracking-tight: -0.02em;
  --tracking-display: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.01em;
  --tracking-nav: 0.08em;

  /* ---- Space ---- */
  --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;
  --section-pad: clamp(4rem, 8vw, 7rem);
  --band-pad: clamp(3rem, 6vw, 5.5rem);

  /* ---- Chrome ---- */
  --nav-primary-h: 40px;
  --nav-secondary-h: 52px;
  --header-height: 60px;
  --max-width: 1200px;
  --max-width-wide: 1440px;
  --max-width-narrow: 760px;
  --viewport-section: 100vh;

  /* ---- Motion ---- */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 600ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.4, 0.64, 1);
}

/* Single colour system — one canvas, one accent, no inversion. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}