/* =====================================================================
   DESIGN TOKENS - Single Source of Truth
   All CSS variables for colors, typography, spacing, and animations
   ===================================================================== */

:root {
    /* ==========================================
       COLOR SYSTEM - Light Theme (Premium SaaS)
       ========================================== */

    /* Primary Colors */
    --color-primary: #1a1a2e;
    --color-primary-hover: #2d2d4a;
    --color-primary-rgb: 26, 26, 46;

    /* Background Colors */
    --color-bg: #ffffff;
    --color-bg-alt: #f8f9fa;
    --color-bg-elevated: rgba(26, 26, 46, 0.03);
    --color-bg-hover: rgba(26, 26, 46, 0.06);

    /* Text Colors - Improved contrast */
    --color-text: #1a1a2e;
    --color-text-muted: rgba(26, 26, 46, 0.7);
    --color-text-subtle: rgba(26, 26, 46, 0.5);
    --color-text-inverse: #ffffff;

    /* Border Colors - More visible */
    --color-border: rgba(26, 26, 46, 0.08);
    --color-border-hover: rgba(26, 26, 46, 0.15);
    --color-border-focus: rgba(26, 26, 46, 0.4);

    /* Accent Colors */
    --color-accent: rgba(26, 26, 46, 0.9);
    --color-accent-blue: #0066cc;
    --color-accent-green: #10b981;
    --color-accent-red: #ff6b6b;

    /* Header (Dark) */
    --color-header-bg: #151d31;
    --color-header-text: #ffffff;
    --color-header-border: rgba(255, 255, 255, 0.1);

    /* ==========================================
       TYPOGRAPHY SYSTEM
       ========================================== */

    /* Font Family */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-family-mono: 'Courier New', monospace;

    /* Type Scale */
    --text-xs: 0.75rem;     /* 12px */
    --text-sm: 0.875rem;    /* 14px */
    --text-base: 0.9375rem; /* 15px */
    --text-md: 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: 4rem;       /* 64px */

    /* Line Heights */
    --leading-none: 1;
    --leading-tight: 1.1;
    --leading-snug: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 1.8;

    /* Letter Spacing */
    --tracking-tighter: -0.03em;
    --tracking-tight: -0.015em;
    --tracking-normal: 0;
    --tracking-wide: 0.025em;
    --tracking-wider: 0.05em;

    /* Font Weights */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;

    /* ==========================================
       SPACING SYSTEM (8px base)
       ========================================== */

    --space-0: 0;
    --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 */

    /* ==========================================
       LAYOUT
       ========================================== */

    /* Container Widths */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1120px;
    --container-2xl: 1200px;

    /* Header */
    --header-height: 64px;

    /* Border Radius - Sharper, modern values */
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 6px;
    --radius-xl: 8px;
    --radius-2xl: 12px;
    --radius-full: 9999px;

    /* ==========================================
       SHADOWS - Crisper, tighter values
       ========================================== */

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-2xl: 0 12px 32px rgba(0, 0, 0, 0.16);

    /* ==========================================
       TRANSITIONS & ANIMATIONS
       ========================================== */

    /* Easing Functions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Durations - Snappier transitions */
    --duration-fast: 120ms;
    --duration-normal: 180ms;
    --duration-slow: 250ms;
    --duration-slower: 350ms;

    /* ==========================================
       Z-INDEX SCALE
       ========================================== */

    --z-dropdown: 100;
    --z-sticky: 500;
    --z-fixed: 900;
    --z-backdrop: 998;
    --z-modal: 999;
    --z-header: 1000;
    --z-mobile-menu: 1001;
    --z-tooltip: 1100;
}

/* ==========================================
   BREAKPOINT REFERENCE (use in media queries)
   ------------------------------------------
   Mobile: < 480px
   Mobile Large: 480px - 639px
   Tablet: 640px - 767px
   Tablet Large: 768px - 1023px
   Desktop: 1024px - 1279px
   Desktop Large: >= 1280px
   ========================================== */
