/* ============================================================================
   Foundation: Global Variables & Base Elements
   ========================================================================= */

:root {
    /* Legacy gradients & accents */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --dark-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --light-gradient: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    --accent-purple: #667eea;
    --accent-pink: #f093fb;
    --accent-orange: #fcb69f;
    --accent-green: #22c55e;

    /* Premium 2025 palette - Clear Alternating Backgrounds */
    --color-bg-primary: #1F2335;           /* Lighter primary */
    --color-bg-secondary: #181C28;         /* Darker secondary - clear contrast */
    --color-bg-elevated: #262B40;          /* Elevated cards/modals */
    --color-bg-glass: rgba(26, 30, 46, 0.6);  /* Glass effect */
    --color-brand-primary: #4F8EF7;        /* Vibrant blue */
    --color-brand-cyan: #22D3EE;           /* Brighter cyan */
    --color-brand-purple: #A855F7;         /* Vivid purple */
    --color-brand-pink: #EC4899;           /* Vibrant pink */
    --color-success: #10B981;
    --color-warning: #F59E0B;
    --color-error: #EF4444;
    --color-info: #4F8EF7;
    --color-text-primary: #F8FAFC;         /* Softer white */
    --color-text-secondary: #CBD5E1;       /* Better readability */
    --color-text-tertiary: #94A3B8;
    --color-text-inverse: #1F2937;
    --color-border: rgba(255, 255, 255, 0.10);
    --color-border-strong: rgba(255, 255, 255, 0.18);
    --color-border-subtle: rgba(255, 255, 255, 0.05);

    /* Legacy neutrals */
    --text-primary: #1a1a2e;
    --text-secondary: #4a5568;
    --text-light: #718096;
    --text-white: #ffffff;
    --bg-primary: #ffffff;
    --bg-secondary: #f7fafc;
    --bg-dark: #1a1a2e;

    /* Premium shadows - Subtle depth without glow */
    --glow-blue: 0 0 12px rgba(79, 142, 247, 0.12);
    --glow-cyan: 0 0 12px rgba(34, 193, 224, 0.12);
    --glow-purple: 0 0 12px rgba(139, 92, 246, 0.12);
    --glow-pink: 0 0 12px rgba(219, 112, 147, 0.12);
    --glow-white: 0 0 12px rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 10px 24px rgba(0, 0, 0, 0.20), 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 40px rgba(0, 0, 0, 0.24), 0 8px 16px rgba(0, 0, 0, 0.14);
    --shadow-2xl: 0 24px 56px rgba(0, 0, 0, 0.28), 0 12px 24px rgba(0, 0, 0, 0.16);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #3B82F6 0%, #A855F7 100%);
    --gradient-secondary: linear-gradient(135deg, #06B6D4 0%, #3B82F6 100%);
    --gradient-accent: linear-gradient(135deg, #A855F7 0%, #EC4899 100%);
    --gradient-mesh: radial-gradient(at 27% 37%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
                     radial-gradient(at 97% 21%, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
                     radial-gradient(at 52% 99%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
                     radial-gradient(at 10% 29%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);

    /* Typography - Professional Scale (Inter + Space Grotesk) */
    --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    --font-family-headings: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    --font-size-xs: 0.8125rem;      /* 13px - increased from 12px */
    --font-size-sm: 0.9375rem;      /* 15px - increased from 14px */
    --font-size-base: 1rem;         /* 16px */
    --font-size-lg: 1.125rem;       /* 18px */
    --font-size-xl: 1.25rem;        /* 20px */
    --font-size-2xl: 1.5rem;        /* 24px */
    --font-size-3xl: 2rem;          /* 32px */
    --font-size-4xl: 2.5rem;        /* 40px */
    --font-size-5xl: 3rem;          /* 48px */
    --font-size-6xl: 4rem;          /* 64px */
    --font-size-xl-2: 1.375rem;
    --font-size-2xl-2: 1.75rem;
    --font-size-3xl-2: 2.25rem;
    --font-size-4xl-2: 3rem;
    --font-size-5xl-2: 4rem;
    --font-size-6xl-2: 5rem;
    --line-height-tight: 1.25;      /* Better readability for headings */
    --line-height-normal: 1.6;
    --line-height-relaxed: 1.75;    /* Improved from 1.8 */

    /* Premium spacing & radii - More generous */
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-2xl: 28px;
    --radius-full: 9999px;
    --space-xs: 0.375rem;       /* 6px */
    --space-sm: 0.625rem;       /* 10px */
    --space-md: 1rem;           /* 16px */
    --space-base: 1.25rem;      /* 20px */
    --space-lg: 2rem;           /* 32px */
    --space-xl: 2.5rem;         /* 40px */
    --space-2xl: 3.5rem;        /* 56px */
    --space-3xl: 5rem;          /* 80px */
    --space-4xl: 6rem;          /* 96px */

    /* Unified card system */
    --card-surface-bg: rgba(31, 35, 53, 0.85);
    --card-surface-bg-hover: rgba(38, 43, 64, 0.95);
    --card-surface-border: rgba(255, 255, 255, 0.12);
    --card-surface-border-hover: rgba(79, 142, 247, 0.45);
    --card-surface-radius: 20px;
    --card-surface-padding-block: 2.25rem;
    --card-surface-padding-inline: 2rem;
    --card-surface-shadow: 0 18px 40px rgba(8, 12, 24, 0.45);
    --card-surface-shadow-hover: 0 25px 55px rgba(8, 12, 24, 0.55);
    --card-surface-blur: 22px;
    --card-surface-transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --card-heading-size: 1.375rem;
    --card-heading-weight: 600;
    --card-subheading-size: 0.95rem;
    --card-body-size: 1rem;
    --card-body-line-height: 1.65;
    --card-icon-size: 52px;
    --card-icon-radius: 16px;
    --card-icon-bg: rgba(79, 142, 247, 0.15);
    --card-icon-color: var(--color-brand-cyan);
    --card-highlight-size: 2.25rem;
    --card-highlight-weight: 700;
    --card-grid-gap: 1.75rem;

    /* Motion & layers */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-top: 10000;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--color-bg-primary);
    overscroll-behavior: auto;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-normal);
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    overflow-x: hidden;
    overscroll-behavior-y: auto;
    -webkit-overflow-scrolling: touch;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-headings);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: var(--font-weight-extrabold);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

h2 {
    font-size: clamp(1.875rem, 4vw, 3.5rem);
    line-height: 1.2;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: var(--font-weight-semibold);
    line-height: 1.3;
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.875rem);
    font-weight: var(--font-weight-semibold);
    line-height: 1.4;
}

h5 {
    font-size: 1.125rem;
    font-weight: var(--font-weight-medium);
    line-height: 1.5;
}

h6 {
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
    line-height: 1.5;
}

p {
    font-size: 1.0625rem;  /* 17px - slightly reduced for better balance */
    line-height: 1.7;
    font-weight: var(--font-weight-regular);
    font-family: var(--font-family-primary);
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

[data-lucide] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2em;
    height: 1.2em;
    color: inherit;
    stroke: currentColor;
}

[data-lucide] svg {
    width: 100%;
    height: 100%;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

[data-lucide] path {
    stroke: currentColor;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}
