/* ============================================
   METACOGNATE — Design Tokens
   ============================================ */

:root {
  /* --- Color Palette --- */
  /* Backgrounds */
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: #151d2e;
  --bg-card-hover: #1a2438;
  --bg-surface: #1e293b;
  --bg-overlay: rgba(10, 14, 23, 0.92);

  /* Accent — Cyan/Teal (primary interactive) */
  --accent: #00e5c7;
  --accent-dim: #00b89e;
  --accent-glow: rgba(0, 229, 199, 0.15);
  --accent-glow-strong: rgba(0, 229, 199, 0.35);

  /* Accent — Amber (warnings, alerts, "active exploit") */
  --amber: #f59e0b;
  --amber-dim: #d97706;
  --amber-glow: rgba(245, 158, 11, 0.15);

  /* Accent — Red (errors, danger) */
  --red: #ef4444;
  --red-dim: #dc2626;
  --red-glow: rgba(239, 68, 68, 0.12);

  /* Accent — Ice Blue (The Architects) */
  --ice-blue: #c0d8f0;
  --ice-blue-dim: #8fb5d9;
  --ice-blue-glow: rgba(192, 216, 240, 0.12);

  /* Accent — Purple (rhetorical tactics) */
  --purple: #a78bfa;
  --purple-dim: #8b5cf6;
  --purple-glow: rgba(167, 139, 250, 0.15);

  /* Text */
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #0a0e17;

  /* Borders */
  --border: #1e293b;
  --border-hover: #334155;
  --border-accent: rgba(0, 229, 199, 0.3);

  /* Success / Correct */
  --success: #22c55e;
  --success-glow: rgba(34, 197, 94, 0.15);

  /* --- Typography --- */
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  /* Scale (fluid-ish) */
  --text-xs: 0.75rem;
  /* 12px */
  --text-sm: 0.875rem;
  /* 14px */
  --text-base: 1rem;
  /* 16px */
  --text-lg: 1.125rem;
  /* 18px */
  --text-xl: 1.25rem;
  /* 20px */
  --text-2xl: 1.5rem;
  /* 24px */
  --text-3xl: 1.875rem;
  /* 30px */
  --text-4xl: 2.25rem;
  /* 36px */
  --text-5xl: 3rem;
  /* 48px */
  --text-6xl: 3.75rem;
  /* 60px */

  --leading-tight: 1.2;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  /* --- Spacing --- */
  --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;

  /* --- Borders & Radius --- */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* --- Shadows --- */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px var(--accent-glow);

  /* --- Transitions --- */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 400ms ease;

  /* --- Z-index scale --- */
  --z-base: 1;
  --z-card: 10;
  --z-sticky: 100;
  --z-modal: 1000;
  --z-overlay: 900;

  /* --- Max widths --- */
  --max-width-content: 1100px;
  --max-width-narrow: 720px;
  --max-width-wide: 1320px;

  /* --- Cyberpunk accents --- */
  --scanline-opacity: 0.03;
  --glow-spread: 0 0 40px rgba(0, 229, 199, 0.08);
}