/* ==========================================================================
   Design Tokens — "Midnight Aurora" Theme
   Distinctive, production-grade design system
   ========================================================================== */

:root {
  /* ========================================================================
     Colors — Deep, confident palette with luminous accents
     ======================================================================== */

  /* Primary — Rich Midnight */
  --color-primary: #0C1B33;
  --color-primary-light: #162D50;
  --color-primary-dark: #060E1A;
  --color-primary-rgb: 12, 27, 51;

  /* Accent — Vivid Blue */
  --color-accent: #3B82F6;
  --color-accent-hover: #2563EB;
  --color-accent-light: rgba(59, 130, 246, 0.08);
  --color-accent-rgb: 59, 130, 246;

  /* Secondary — Aurora Teal */
  --color-secondary: #06D6A0;
  --color-secondary-hover: #05B588;
  --color-secondary-light: rgba(6, 214, 160, 0.08);
  --color-secondary-rgb: 6, 214, 160;

  /* Accent Gradient */
  --gradient-accent: linear-gradient(135deg, #3B82F6 0%, #06D6A0 100%);
  --gradient-accent-reverse: linear-gradient(135deg, #06D6A0 0%, #3B82F6 100%);
  --gradient-hero: linear-gradient(160deg, #060E1A 0%, #0C1B33 30%, #162D50 60%, #1E3A5F 100%);
  --gradient-glow: radial-gradient(ellipse at 30% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 60%);
  --gradient-surface: linear-gradient(180deg, #FFFFFF 0%, #F0F4F8 100%);

  /* Backgrounds */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F0F4F8;
  --bg-tertiary: #E2E8F0;
  --bg-dark: #0C1B33;
  --bg-dark-lighter: #162D50;
  --bg-dark-card: rgba(255, 255, 255, 0.04);

  /* Text */
  --text-primary: #0C1B33;
  --text-secondary: #475569;
  --text-tertiary: #94A3B8;
  --text-on-dark: #FFFFFF;
  --text-on-dark-muted: rgba(255, 255, 255, 0.65);

  /* Status */
  --color-success: #22C55E;
  --color-success-light: rgba(34, 197, 94, 0.1);
  --color-warning: #F59E0B;
  --color-warning-light: rgba(245, 158, 11, 0.1);
  --color-error: #EF4444;
  --color-error-light: rgba(239, 68, 68, 0.1);

  /* ========================================================================
     Borders & Shadows — Layered depth system
     ======================================================================== */

  --border: #E2E8F0;
  --border-hover: #CBD5E1;
  --border-subtle: rgba(0, 0, 0, 0.04);
  --border-accent: rgba(59, 130, 246, 0.2);

  --shadow-xs: 0 1px 2px rgba(12, 27, 51, 0.03);
  --shadow-sm: 0 1px 3px rgba(12, 27, 51, 0.04), 0 1px 2px rgba(12, 27, 51, 0.02);
  --shadow-md: 0 4px 6px -1px rgba(12, 27, 51, 0.05), 0 2px 4px -2px rgba(12, 27, 51, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(12, 27, 51, 0.06), 0 4px 6px -4px rgba(12, 27, 51, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(12, 27, 51, 0.08), 0 8px 10px -6px rgba(12, 27, 51, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(12, 27, 51, 0.15);
  --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.15);
  --shadow-glow-teal: 0 0 40px rgba(6, 214, 160, 0.12);

  --card-shadow: var(--shadow-sm);
  --card-shadow-hover: var(--shadow-xl);
  --mega-menu-shadow: 0 20px 60px rgba(12, 27, 51, 0.12), 0 0 1px rgba(12, 27, 51, 0.08);

  /* ========================================================================
     Typography — Distinctive font pairing
     ======================================================================== */

  --font-display: 'Bricolage Grotesque', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Outfit', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Type Scale — Musical thirds */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.75rem;
  --text-5xl: 3.75rem;
  --text-6xl: 5rem;

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

  /* Line Heights */
  --lh-tight: 1.05;
  --lh-snug: 1.2;
  --lh-normal: 1.5;
  --lh-relaxed: 1.65;
  --lh-loose: 1.8;

  /* Letter Spacing */
  --ls-tight: -0.03em;
  --ls-snug: -0.015em;
  --ls-normal: 0;
  --ls-wide: 0.04em;
  --ls-wider: 0.08em;

  /* ========================================================================
     Spacing — Harmonic scale
     ======================================================================== */

  --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-14: 3.5rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-28: 7rem;
  --space-32: 8rem;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4.5rem;
  --space-3xl: 7rem;
  --space-section: 6rem;

  /* ========================================================================
     Radius — Organic yet precise
     ======================================================================== */

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 100px;

  /* ========================================================================
     Transitions & Easings
     ======================================================================== */

  --transition-fast: 150ms ease;
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);

  /* ========================================================================
     Z-index
     ======================================================================== */

  --z-base: 1;
  --z-dropdown: 50;
  --z-sticky: 80;
  --z-header: 100;
  --z-mega-menu: 150;
  --z-overlay: 200;
  --z-modal: 300;
  --z-toast: 400;
  --z-tooltip: 500;

  /* ========================================================================
     Container
     ======================================================================== */

  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --max-width: 1280px;
  --container-wide: 1440px;

  /* ========================================================================
     Component Tokens
     ======================================================================== */

  --header-height: 80px;
  --header-height-scrolled: 64px;
  --sidebar-width: 350px;
  --nav-item-gap: 0.25rem;
}
