/* ============================================
   CSS CUSTOM PROPERTIES - DESIGN SYSTEM
   ============================================ */

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

    /* Primary palette */
    --color-primary: #6366F1;      /* Indigo */
    --color-secondary: #8b5cf6;    /* Purple */
    --color-accent: #06b6d4;       /* Cyan */

    /* Gradient */
    --gradient-primary: linear-gradient(135deg, #6366F1 0%, #8b5cf6 100%);
    --gradient-hero: linear-gradient(135deg, #6366F1 0%, #8b5cf6 50%, #06b6d4 100%);

    /* Text colors */
    --color-text-primary: #1f2937;    /* Dark gray */
    --color-text-secondary: #6b7280;  /* Medium gray */
    --color-text-light: #9ca3af;      /* Light gray */
    --color-text-white: #ffffff;

    /* Background colors */
    --color-bg-white: #ffffff;
    --color-bg-light: #f9fafb;
    --color-bg-gray: #f3f4f6;
    --color-bg-dark: #111827;

    /* Border colors */
    --color-border-light: #e5e7eb;
    --color-border-medium: #d1d5db;

    /* Status colors */
    --color-success: #10b981;
    --color-error: #ef4444;
    --color-warning: #f59e0b;

    /* Overlay */
    --overlay-dark: rgba(0, 0, 0, 0.5);
    --overlay-light: rgba(255, 255, 255, 0.9);


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

    /* Font family */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

    /* Font sizes - Desktop */
    --font-size-h1: 56px;
    --font-size-h2: 42px;
    --font-size-h3: 28px;
    --font-size-h4: 24px;
    --font-size-large: 20px;
    --font-size-body: 18px;
    --font-size-small: 16px;
    --font-size-xs: 14px;

    /* Font weights */
    --font-weight-regular: 400;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-black: 900;

    /* Line heights */
    --line-height-tight: 1.1;
    --line-height-snug: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.6;
    --line-height-loose: 1.8;


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

    /* Base spacing unit (8px system) */
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 40px;
    --space-6: 48px;
    --space-7: 56px;
    --space-8: 64px;
    --space-10: 80px;
    --space-12: 96px;
    --space-15: 120px;
    --space-20: 160px;

    /* Section padding */
    --section-padding: 120px 0;
    --section-padding-sm: 80px 0;

    /* Container widths */
    --container-max-width: 1200px;
    --container-narrow: 800px;
    --container-wide: 1400px;
    --container-padding: 24px;


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

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.25);

    /* Colored shadows for buttons */
    --shadow-primary: 0 10px 20px rgba(99, 102, 241, 0.3);
    --shadow-secondary: 0 10px 20px rgba(139, 92, 246, 0.3);


    /* ========== Border Radius ========== */

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;


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

    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    --transition-cubic: cubic-bezier(0.4, 0, 0.2, 1);


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

    --z-base: 1;
    --z-dropdown: 10;
    --z-sticky: 20;
    --z-fixed: 30;
    --z-modal-backdrop: 40;
    --z-modal: 50;
    --z-toast: 60;


    /* ========== Breakpoints (for reference in media queries) ========== */
    /* Use these values in @media queries:
       Mobile: 320px - 767px
       Tablet: 768px - 1023px
       Desktop: 1024px - 1439px
       Large: 1440px+
    */
}


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

@media (max-width: 1023px) {
    :root {
        --font-size-h1: 42px;
        --font-size-h2: 32px;
        --font-size-h3: 24px;
        --font-size-h4: 20px;
        --font-size-large: 18px;
        --font-size-body: 16px;

        --section-padding: 80px 0;
        --section-padding-sm: 60px 0;
    }
}

@media (max-width: 767px) {
    :root {
        --font-size-h1: 36px;
        --font-size-h2: 28px;
        --font-size-h3: 22px;
        --font-size-h4: 18px;
        --font-size-large: 18px;
        --font-size-body: 16px;

        --section-padding: 60px 0;
        --section-padding-sm: 40px 0;
        --container-padding: 20px;
    }
}


/* ========== Dark Mode Support (Optional) ========== */

@media (prefers-color-scheme: dark) {
    /* Uncomment to enable dark mode support */
    /*
    :root {
        --color-text-primary: #f9fafb;
        --color-text-secondary: #d1d5db;
        --color-bg-white: #1f2937;
        --color-bg-light: #111827;
        --color-bg-dark: #ffffff;
    }
    */
}


/* ========== Reduced Motion ========== */

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