/* =========================================================
   Extreme HexaShield — Design Tokens
   مصدر واحد للألوان، المسافات، الطباعة، والحركة
   ========================================================= */

:root {
  /* ---- Color: brand ---- */
  --color-amber-400: #ffb04d;
  --color-amber-500: #ff8a1e;
  --color-amber-600: #ff5a0a;
  --color-cyan-400: #7ce7ff;
  --color-cyan-500: #2ea8ff;
  --color-blue-600: #1f8bff;
  --color-steel: #8b95a7;

  /* ---- Color: surfaces ---- */
  --color-bg-900: #070a12;
  --color-bg-800: #0b0f19;
  --color-bg-700: #11151f;
  --color-surface: #141a28;
  --color-surface-2: #1b2233;
  --color-border: #232c40;

  /* ---- Color: text ---- */
  --color-text: #eaf0fb;
  --color-text-muted: #9aa6bd;
  --color-text-dim: #8a96aa;

  /* ---- Color: semantic ---- */
  --color-success: #27c93f;
  --color-warning: #ffb04d;
  --color-danger: #ff5a0a;
  --color-info: #2ea8ff;

  /* ---- Gradients ---- */
  --gradient-amber: linear-gradient(135deg, #ffd27a 0%, #ff8a1e 45%, #ff5a0a 100%);
  --gradient-cyan: linear-gradient(135deg, #7ce7ff 0%, #1f8bff 100%);
  --gradient-mix: linear-gradient(120deg, #ff8a1e 0%, #ff5a0a 40%, #1f8bff 100%);
  --gradient-surface: linear-gradient(160deg, rgba(27,34,51,.9), rgba(11,15,25,.9));

  /* ---- Effects ---- */
  --glow-amber: 0 0 40px rgba(255,138,30,.35);
  --glow-cyan: 0 0 40px rgba(46,168,255,.30);
  --shadow-lg: 0 30px 80px -30px rgba(0,0,0,.8);
  --shadow-md: 0 16px 40px -20px rgba(0,0,0,.65);
  --shadow-sm: 0 8px 24px -12px rgba(0,0,0,.5);
  --ring-subtle: 0 0 0 1px rgba(255,255,255,.05);

  /* ---- Typography: families ---- */
  --font-family-ar: "Tajawal", "Cairo", system-ui, sans-serif;
  --font-family-display: "Cairo", "Tajawal", sans-serif;
  --font-family-mono: "Oxanium", ui-monospace, monospace;

  /* ---- Typography: scale ---- */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-md: 1.125rem;   /* 18px */
  --text-lg: 1.25rem;    /* 20px */
  --text-xl: 1.5rem;     /* 24px */
  --text-2xl: 2rem;      /* 32px */
  --text-3xl: 2.75rem;   /* 44px */
  --text-hero: clamp(2.25rem, 5.5vw, 4.25rem);

  /* ---- Typography: weight ---- */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;

  /* ---- Typography: line-height ---- */
  --leading-tight: 1.2;
  --leading-normal: 1.7;
  --leading-relaxed: 1.9;

  /* ---- Spacing scale (4px base) ---- */
  --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;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* ---- Layout ---- */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --container-max: 1180px;
  --nav-height: 76px;

  /* ---- Motion ---- */
  --motion-fast: 150ms;
  --motion-base: 250ms;
  --motion-slow: 400ms;
  --motion-slower: 700ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);

  /* ---- Z-index ---- */
  --z-base: 0;
  --z-nav: 100;
  --z-overlay: 200;
  --z-modal: 300;
  --z-toast: 400;

  /* ---- Aliases (backward-compatible with styles.css) ---- */
  --bg-900: var(--color-bg-900);
  --bg-800: var(--color-bg-800);
  --bg-700: var(--color-bg-700);
  --surface: var(--color-surface);
  --surface-2: var(--color-surface-2);
  --border: var(--color-border);
  --amber-400: var(--color-amber-400);
  --amber-500: var(--color-amber-500);
  --amber-600: var(--color-amber-600);
  --cyan-400: var(--color-cyan-400);
  --cyan-500: var(--color-cyan-500);
  --blue-600: var(--color-blue-600);
  --steel: var(--color-steel);
  --text: var(--color-text);
  --text-muted: var(--color-text-muted);
  --text-dim: var(--color-text-dim);
  --grad-amber: var(--gradient-amber);
  --grad-cyan: var(--gradient-cyan);
  --grad-mix: var(--gradient-mix);
  --grad-surface: var(--gradient-surface);
  --ring: var(--ring-subtle);
  --font-ar: var(--font-family-ar);
  --font-display: var(--font-family-display);
  --font-mono: var(--font-family-mono);
  --radius: var(--radius-md);
  --maxw: var(--container-max);
}
