/* ============================================================================
   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;

    /* Modern 2025 palette */
    --color-bg-primary: #0F1419;
    --color-bg-secondary: #16191F;
    --color-bg-elevated: #1C2128;
    --color-bg-glass: rgba(26, 31, 58, 0.6);
    --color-brand-primary: #3B82F6;
    --color-brand-cyan: #06B6D4;
    --color-brand-purple: #A855F7;
    --color-brand-pink: #EC4899;
    --color-success: #10B981;
    --color-warning: #F59E0B;
    --color-error: #EF4444;
    --color-info: #3B82F6;
    --color-text-primary: #F9FAFB;
    --color-text-secondary: #9CA3AF;
    --color-text-tertiary: #6B7280;
    --color-text-inverse: #1F2937;
    --color-border: rgba(255, 255, 255, 0.1);
    --color-border-strong: rgba(255, 255, 255, 0.2);
    --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;

    /* Shadows & glows */
    --glow-blue: 0 0 24px rgba(59, 130, 246, 0.4);
    --glow-cyan: 0 0 24px rgba(6, 182, 212, 0.4);
    --glow-purple: 0 0 24px rgba(168, 85, 247, 0.4);
    --glow-pink: 0 0 24px rgba(236, 72, 153, 0.4);
    --glow-white: 0 0 24px rgba(255, 255, 255, 0.3);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.6);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.7);

    /* 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 */
    --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-family-display: 'Playfair Display', 'Merriweather', Georgia, serif;
    --font-family-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    --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.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 4rem;
    --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.2;
    --line-height-normal: 1.6;
    --line-height-relaxed: 1.8;

    /* Spacing & radii */
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 0.75rem;
    --space-base: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 5rem;

    /* 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.125rem;
    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;
}
