/* ============================================
   CSS VARIABLES
   Design System Tokens
   ============================================ */

:root {
  /* ============ Colors ============ */

  /* Primary Brand */
  --color-primary: #0066FF;
  --color-primary-light: #3385FF;
  --color-primary-dark: #0052CC;
  --color-primary-rgb: 0, 102, 255;

  /* Neutrals - Dark Theme */
  --color-bg-primary: #0A0A0F;
  --color-bg-secondary: #12121A;
  --color-bg-tertiary: #1A1A24;
  --color-bg-elevated: #22222E;

  /* Text Colors */
  --color-text-primary: #FFFFFF;
  --color-text-secondary: #B8B8C8;
  --color-text-tertiary: #717188;
  --color-text-inverse: #0A0A0F;

  /* Accent Colors */
  --color-accent: #00D4FF;
  --color-success: #00FF88;
  --color-warning: #FFB800;
  --color-error: #FF3366;

  /* Overlays & Borders */
  --color-overlay: rgba(0, 0, 0, 0.6);
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(255, 255, 255, 0.16);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #0066FF 0%, #00D4FF 100%);
  --gradient-overlay: linear-gradient(180deg, rgba(10, 10, 15, 0) 0%, rgba(10, 10, 15, 0.8) 100%);
  --gradient-mesh: radial-gradient(at 0% 0%, rgba(0, 102, 255, 0.2) 0%, transparent 50%),
                   radial-gradient(at 100% 0%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
                   radial-gradient(at 100% 100%, rgba(0, 102, 255, 0.1) 0%, transparent 50%);

  /* ============ Typography ============ */

  /* Font Families */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Font Sizes */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 1.875rem;    /* 30px */
  --text-4xl: 2.25rem;     /* 36px */
  --text-5xl: 3rem;        /* 48px */
  --text-6xl: 3.75rem;     /* 60px */
  --text-7xl: 4.5rem;      /* 72px */
  --text-8xl: 6rem;        /* 96px */

  /* Font Weights */
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
  --font-black: 900;

  /* Line Heights */
  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.5;
  --leading-relaxed: 1.75;
  --leading-loose: 2;

  /* Letter Spacing */
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;

  /* ============ Spacing ============ */

  --space-1: 0.25rem;     /* 4px */
  --space-2: 0.5rem;      /* 8px */
  --space-3: 0.75rem;     /* 12px */
  --space-4: 1rem;        /* 16px */
  --space-5: 1.25rem;     /* 20px */
  --space-6: 1.5rem;      /* 24px */
  --space-8: 2rem;        /* 32px */
  --space-10: 2.5rem;     /* 40px */
  --space-12: 3rem;       /* 48px */
  --space-16: 4rem;       /* 64px */
  --space-20: 5rem;       /* 80px */
  --space-24: 6rem;       /* 96px */
  --space-32: 8rem;       /* 128px */
  --space-40: 10rem;      /* 160px */
  --space-48: 12rem;      /* 192px */

  /* ============ Layout ============ */

  /* Container Widths */
  --container-xs: 640px;
  --container-sm: 768px;
  --container-md: 1024px;
  --container-lg: 1280px;
  --container-xl: 1440px;

  /* Section Padding */
  --section-padding-mobile: 4rem;
  --section-padding-tablet: 6rem;
  --section-padding-desktop: 8rem;

  /* Header Height */
  --header-height: 80px;
  --header-height-mobile: 64px;

  /* ============ 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-full: 9999px;

  /* ============ Shadows ============ */

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 40px rgba(0, 102, 255, 0.3);
  --shadow-glow-accent: 0 0 40px rgba(0, 212, 255, 0.3);

  /* Elevation Layers */
  --shadow-elevation-1: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-elevation-2: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-elevation-3: 0 8px 24px rgba(0, 0, 0, 0.16);
  --shadow-elevation-4: 0 16px 48px rgba(0, 0, 0, 0.24);

  /* ============ Transitions ============ */

  /* Duration */
  --duration-instant: 0ms;
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 350ms;
  --duration-slower: 500ms;

  /* Easing Functions */
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-smooth: cubic-bezier(0.65, 0, 0.35, 1);

  /* Combined Transitions */
  --transition-fast: var(--duration-fast) var(--ease-out);
  --transition-base: var(--duration-base) var(--ease-out);
  --transition-slow: var(--duration-slow) var(--ease-out);
  --transition-smooth: var(--duration-base) var(--ease-smooth);

  /* ============ Z-Index Layers ============ */

  --z-base: 0;
  --z-dropdown: 10;
  --z-sticky: 20;
  --z-fixed: 30;
  --z-overlay: 40;
  --z-modal: 50;
  --z-popover: 60;
  --z-tooltip: 70;
  --z-toast: 80;
  --z-preloader: 90;
  --z-max: 100;

  /* ============ Effects ============ */

  /* Blur */
  --blur-sm: 4px;
  --blur-md: 8px;
  --blur-lg: 16px;
  --blur-xl: 24px;

  /* Backdrop Blur */
  --backdrop-blur: blur(16px) saturate(180%);

  /* ============ Animation ============ */

  /* Keyframe Offsets */
  --delay-1: 100ms;
  --delay-2: 200ms;
  --delay-3: 300ms;
  --delay-4: 400ms;
  --delay-5: 500ms;
}

/* ============================================
   RESPONSIVE FONT SIZES (Fluid Typography)
   ============================================ */

@media (min-width: 768px) {
  :root {
    --text-5xl: 3.5rem;     /* 56px */
    --text-6xl: 4.5rem;     /* 72px */
    --text-7xl: 5.5rem;     /* 88px */
    --text-8xl: 7rem;       /* 112px */
  }
}

@media (min-width: 1024px) {
  :root {
    --text-6xl: 5rem;       /* 80px */
    --text-7xl: 6rem;       /* 96px */
    --text-8xl: 8rem;       /* 128px */
  }
}

/* ============================================
   LIGHT MODE (Optional - commented out)
   ============================================ */

/*
@media (prefers-color-scheme: light) {
  :root {
    --color-bg-primary: #FFFFFF;
    --color-bg-secondary: #F8F8FA;
    --color-bg-tertiary: #F0F0F4;
    --color-bg-elevated: #FFFFFF;

    --color-text-primary: #0A0A0F;
    --color-text-secondary: #4A4A5E;
    --color-text-tertiary: #8E8E9E;
    --color-text-inverse: #FFFFFF;

    --color-border: rgba(0, 0, 0, 0.08);
    --color-border-hover: rgba(0, 0, 0, 0.16);
  }
}
*/
