/* ============================================================
   SATR DESIGN TOKENS — single source of truth
   Import FIRST in every page, then base → layout → components.
   Pages must NOT redefine :root tokens inline anymore.
   Values below are locked: tweak by adding tokens, not by
   overriding per-page.
   ============================================================ */
:root {
  /* ── Surfaces ── */
  --bg-base: #080e1a;
  --bg-deep: #050a13;
  --bg-surface: #111827;
  --bg-surface-2: #1a2438;
  --bg-hover: #1e2d45;
  --bg-glass: rgba(17, 24, 39, 0.85);
  --bg-overlay: rgba(0, 0, 0, 0.7);
  --surface-glass: linear-gradient(180deg, rgba(23, 33, 53, 0.86), rgba(14, 21, 37, 0.94));

  /* ── Text ── */
  --text-primary: #f2f7ff;
  --text-secondary: #93a6c1;
  --text-muted: #617795;

  /* ── Brand ── */
  --primary: #00d68f;
  --primary-bright: #21f0a8;
  --primary-dim: rgba(0, 214, 143, 0.15);
  --primary-glow: rgba(0, 214, 143, 0.35);
  --primary-dark: #00a86b;
  --accent-gradient: linear-gradient(135deg, #21f0a8 0%, #00d68f 45%, #38bdf8 130%);
  --ring-primary: 0 0 0 1px rgba(0, 214, 143, 0.32), 0 0 24px -8px rgba(0, 214, 143, 0.55);

  /* ── Accents ── */
  --blue: #38bdf8;
  --violet: #a78bfa;
  --orange: #fb923c;
  --red: #f87171;

  /* ── Borders ── */
  --border: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.04);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* ── Radii ── */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-2xl: 30px;
  --radius-full: 9999px;

  /* ── Spacing scale ── */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;

  /* ── Typography ── */
  --font-sans: 'Tajawal', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Fira Code', 'Cascadia Code', 'JetBrains Mono', Consolas, monospace;
  --text-xs: 0.72rem;
  --text-sm: 0.82rem;
  --text-base: 0.95rem;
  --text-lg: 1.1rem;
  --text-xl: 1.3rem;
  --text-2xl: 1.8rem;
  --leading-normal: 1.65;
  --leading-tight: 1.35;

  /* ── Motion ── */
  --transition: 0.2s ease;
  --transition-fast: 0.15s ease;
  --transition-slow: 0.35s ease;

  /* ── Elevation ── */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-pop: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-float: 0 24px 60px -24px rgba(0, 0, 0, 0.85), 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 4px 16px var(--primary-glow);

  /* ── Layers ── */
  --z-drawer: 1150;
  --z-overlay: 1100;
  --z-toast: 9999;
  --z-modal: 1000;
  --z-bottom-nav: 999;
  --z-sticky: 100;

  /* ── Runtime-tinted defaults (learn pages override via JS) ── */
  --tech-color: #00d68f;
  --tech-rgb: 0, 214, 143;
}

/* Motion safety: respect users who prefer less animation */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
