/* Design System - Tokens, Reset, and Base Styles */

:root {
    /* Colors - Premium Space + Neon */
    --bg-deep: #020204;
    --bg-surface: #0a0a0c;
    --bg-card: rgba(15, 15, 20, 0.6);
    
    --accent-primary: #00d4ff; /* Cyan Neon */
    --accent-secondary: #8b5cf6; /* Purple Neon */
    --accent-tertiary: #ec4899; /* Pink Neon */
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(10, 10, 15, 0.7);
    --glass-blur: blur(12px);

    /* Spacing - 8px Grid */
    --space-1: 0.25rem; /* 4px */
    --space-2: 0.5rem;  /* 8px */
    --space-3: 0.75rem; /* 12px */
    --space-4: 1rem;    /* 16px */
    --space-6: 1.5rem;  /* 24px */
    --space-8: 2rem;    /* 32px */
    --space-12: 3rem;   /* 48px */
    --space-16: 4rem;   /* 64px */
    --space-24: 6rem;   /* 96px */
    --space-32: 8rem;   /* 128px */

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Fluid Typography */
    --fs-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --fs-sm: clamp(0.875rem, 0.8rem + 0.3vw, 1rem);
    --fs-base: clamp(1rem, 0.95rem + 0.35vw, 1.125rem);
    --fs-lg: clamp(1.125rem, 1.05rem + 0.5vw, 1.25rem);
    --fs-xl: clamp(1.25rem, 1.15rem + 0.7vw, 1.5rem);
    --fs-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
    --fs-3xl: clamp(2rem, 1.7rem + 2vw, 3rem);
    --fs-4xl: clamp(2.5rem, 2rem + 4vw, 4.5rem);
    --fs-display: clamp(3rem, 2.5rem + 6vw, 6rem);

    /* Radii */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Shadows & Glows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --glow-primary: 0 0 20px rgba(0, 212, 255, 0.3);
    --glow-secondary: 0 0 20px rgba(139, 92, 246, 0.3);

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

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

#gradient-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    display: block;
}

/* Base Layout */
main {
    width: 100%;
    position: relative;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

section {
    padding: var(--space-24) 0;
    position: relative;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

/* Accessibility */
:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Utility Classes */
.text-accent { color: var(--accent-primary); }
.text-gradient {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
}

.section-title {
    font-size: var(--fs-3xl);
    margin-bottom: var(--space-12);
    text-align: center;
}

.section-title span {
    display: block;
    font-size: var(--fs-sm);
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--accent-primary);
    margin-bottom: var(--space-2);
}
