/* ==========================================================================
   Design Tokens — iAI (شركة الذكاء الاصطناعي)
   ========================================================================== */
:root {
  /* Colors — exact palette from brand spec */
  --color-primary: #4A7B9D;        /* الأزرق المعدني الأساسي */
  --color-primary-dark: #3A6483;
  --color-navy: #0B192C;           /* كحلي داكن للنصوص والعناوين */
  --color-accent: #00B4D8;         /* أزرق سماوي مضيء للتفاعلات */
  --color-bg: #F8FAFC;             /* خلفية الصفحة */
  --color-surface: #FFFFFF;        /* خلفية البطاقات */
  --color-border: rgba(11, 25, 44, 0.08);
  --color-text: #0B192C;
  --color-text-muted: #5B6B7D;
  --color-text-inverse: #F8FAFC;
  --color-text-inverse-muted: rgba(248, 250, 252, 0.65);

  /* Gradients — derived from primary + accent (per brand palette) */
  --gradient-accent: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  --gradient-navy: linear-gradient(180deg, #0B192C 0%, #0E2038 100%);

  /* Typography */
  --font-ar: 'Cairo', 'Tahoma', sans-serif;
  --font-en: 'Inter', 'Segoe UI', sans-serif;

  --fs-display: clamp(2.4rem, 5vw + 1rem, 4.2rem);
  --fs-h1: clamp(2rem, 3.2vw + 1rem, 3rem);
  --fs-h2: clamp(1.6rem, 2vw + 1rem, 2.25rem);
  --fs-h3: clamp(1.2rem, 1vw + 1rem, 1.5rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-tiny: 0.75rem;

  --lh-tight: 1.2;
  --lh-normal: 1.6;
  --lh-relaxed: 1.85;

  /* Spacing — 8pt grid */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;
  --space-8: 8rem;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 999px;

  /* Shadows — soft & diffused */
  --shadow-sm: 0 4px 12px rgba(11, 25, 44, 0.04);
  --shadow-md: 0 10px 30px rgba(11, 25, 44, 0.06);
  --shadow-lg: 0 20px 50px rgba(11, 25, 44, 0.1);
  --shadow-glow: 0 0 0 1px rgba(0, 180, 216, 0.15), 0 8px 24px rgba(0, 180, 216, 0.12);

  /* Motion */
  --ease-standard: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 200ms;
  --duration-base: 300ms;
  --duration-slow: 500ms;

  /* Layout */
  --container-width: 1220px;
  --header-height: 76px;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 0ms;
    --duration-base: 0ms;
    --duration-slow: 0ms;
  }
}
