/* ============================================================
   AAPA Design Tokens — CSS Custom Properties
   ============================================================
   Single source of truth for all design decisions.
   Every component references these tokens.
   ============================================================ */

:root {
  /* ── Color Palette ──────────────────────────────────────── */
  --color-primary: #0A4D8C;
  --color-primary-dark: #062D54;
  --color-primary-light: #1A6BBF;
  --color-primary-subtle: #E8F1FA;

  --color-secondary: #17A2B8;
  --color-secondary-dark: #0E7F91;
  --color-secondary-subtle: #E0F7FA;

  --color-accent: #46C2FF;
  --color-accent-dark: #2BA8E6;
  --color-accent-subtle: #E6F6FF;

  --color-success: #35C46A;
  --color-success-subtle: #E6F9ED;

  --color-danger: #F05656;
  --color-danger-subtle: #FDECEC;

  --color-warning: #F0A030;
  --color-warning-subtle: #FFF4E0;

  /* ── Surfaces ───────────────────────────────────────────── */
  --color-background: #F6F8FB;
  --color-surface: #FFFFFF;
  --color-surface-raised: #FAFBFC;
  --color-border: #E2E8F0;
  --color-border-light: #EDF2F7;

  /* ── Glass ──────────────────────────────────────────────── */
  --color-glass: rgba(255, 255, 255, 0.55);
  --color-glass-strong: rgba(255, 255, 255, 0.75);
  --color-glass-border: rgba(255, 255, 255, 0.40);
  --color-glass-dark: rgba(22, 32, 42, 0.85);

  /* ── Dark ───────────────────────────────────────────────── */
  --color-dark: #16202A;
  --color-dark-lighter: #1E2D3D;
  --color-dark-subtle: #2A3A4A;

  /* ── Text ───────────────────────────────────────────────── */
  --color-text: #223043;
  --color-text-muted: #738194;
  --color-text-light: #A0AEC0;
  --color-text-inverse: #FFFFFF;

  /* ── Gradients ──────────────────────────────────────────── */
  --gradient-primary: linear-gradient(135deg, #0A4D8C 0%, #062D54 100%);
  --gradient-primary-hover: linear-gradient(135deg, #1A6BBF 0%, #0A4D8C 100%);
  --gradient-hero-overlay: linear-gradient(135deg, rgba(6, 45, 84, 0.88), rgba(10, 25, 47, 0.92));
  --gradient-dark: linear-gradient(180deg, #16202A 0%, #0D1520 100%);

  /* ── Typography ─────────────────────────────────────────── */
  --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-secondary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Font Sizes — Fluid with clamp() */
  --text-hero: clamp(2rem, 5vw + 1rem, 4rem);
  --text-display: clamp(1.75rem, 3.5vw + 0.5rem, 2.625rem);
  --text-h3: clamp(1.25rem, 2vw + 0.5rem, 1.75rem);
  --text-h4: clamp(1.1rem, 1.5vw + 0.4rem, 1.375rem);
  --text-body: clamp(0.938rem, 0.5vw + 0.8rem, 1.125rem);
  --text-small: clamp(0.813rem, 0.3vw + 0.7rem, 0.875rem);
  --text-caption: clamp(0.688rem, 0.2vw + 0.6rem, 0.8rem);
  --text-badge: 0.6875rem;

  /* Font Weights */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;

  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  /* Letter Spacing */
  --tracking-tight: -0.02em;
  --tracking-normal: 0em;
  --tracking-wide: 0.01em;
  --tracking-wider: 0.06em;
  --tracking-widest: 0.1em;

  /* ── Spacing (8px base) ─────────────────────────────────── */
  --space-xs: 0.25rem;
  /* 4px  */
  --space-sm: 0.5rem;
  /* 8px  */
  --space-md: 1rem;
  /* 16px */
  --space-lg: 1.5rem;
  /* 24px */
  --space-xl: 2rem;
  /* 32px */
  --space-2xl: 3rem;
  /* 48px */
  --space-3xl: 4rem;
  /* 64px */
  --space-4xl: 6rem;
  /* 96px */
  --space-5xl: 8rem;
  /* 128px */

  /* Section Vertical Padding — fluid */
  --section-py: clamp(3rem, 6vw, 6rem);

  /* ── Border Radius ──────────────────────────────────────── */
  --radius-sm: 0.5rem;
  /* 8px  */
  --radius-md: 0.75rem;
  /* 12px */
  --radius-lg: 1rem;
  /* 16px */
  --radius-xl: 1.5rem;
  /* 24px */
  --radius-2xl: 2rem;
  /* 32px */
  --radius-pill: 999px;

  /* ── Shadows ────────────────────────────────────────────── */
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.03);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.10);
  --shadow-glow: 0 0 30px rgba(70, 194, 255, 0.15);
  --shadow-glow-primary: 0 0 30px rgba(10, 77, 140, 0.15);
  --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.04);

  /* ── Glassmorphism ──────────────────────────────────────── */
  --glass-blur: blur(30px);
  --glass-bg: rgba(255, 255, 255, 0.45);
  --glass-bg-strong: rgba(255, 255, 255, 0.70);
  --glass-border: 1px solid rgba(255, 255, 255, 0.40);
  --glass-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);

  /* ── Transitions & Apple/Framer Motion Easings ───────────── */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-apple-fluid: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-apple-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-apple-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-apple-snappy: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-apple-decel: cubic-bezier(0, 0, 0.2, 1);

  --duration-fast: 180ms;
  --duration-normal: 350ms;
  --duration-slow: 600ms;
  --duration-slower: 900ms;
  --duration-lux: 1200ms;

  /* ── Z-Index Scale ──────────────────────────────────────── */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;

  /* ── Container ──────────────────────────────────────────── */
  --container-max: 1320px;
  --container-padding: clamp(1.25rem, 3vw, 2rem);
}