/* ========================================
   NEURAL WORLDS - GLOBAL DESIGN SYSTEM
   Enhanced with dramatic effects
   ======================================== */

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

/* ========== CSS VARIABLES ========== */
:root {
    /* === Background === */
    --bg-primary: #050508;
    --bg-secondary: #0a0a12;
    --bg-card: rgba(10, 10, 18, 0.8);
    --bg-glass: rgba(10, 10, 18, 0.6);

    /* === Primary - Electric Cyan (BRIGHTER) === */
    --primary: #00ffff;
    --primary-rgb: 0, 255, 255;
    --primary-dark: #00cccc;
    --primary-glow: rgba(0, 255, 255, 0.6);

    /* === Secondary - Neon Purple === */
    --secondary: #a855f7;
    --secondary-rgb: 168, 85, 247;
    --secondary-dark: #9333ea;
    --secondary-glow: rgba(168, 85, 247, 0.6);

    /* === Accent - Matrix Green === */
    --accent: #00ff00;
    --accent-rgb: 0, 255, 0;
    --accent-glow: rgba(0, 255, 0, 0.6);

    /* === Hologram Blue === */
    --hologram: #00bfff;
    --hologram-rgb: 0, 191, 255;

    /* === Warning Orange === */
    --warning: #ff6b00;
    --warning-rgb: 255, 107, 0;

    /* === Text === */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    /* === Gradients === */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-glow: linear-gradient(135deg, var(--primary-glow) 0%, var(--secondary-glow) 100%);
    --gradient-dark: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    --gradient-hologram: linear-gradient(45deg, var(--primary), var(--hologram), var(--secondary));

    /* === Spacing === */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

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

    /* === Typography === */
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Orbitron', var(--font-sans);

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;
    --text-5xl: 3.5rem;
    --text-6xl: 4.5rem;

    /* === Shadows === */
    --shadow-glow-sm: 0 0 10px var(--primary-glow);
    --shadow-glow-md: 0 0 20px var(--primary-glow), 0 0 40px var(--primary-glow);
    --shadow-glow-lg: 0 0 30px var(--primary-glow), 0 0 60px var(--primary-glow), 0 0 90px var(--primary-glow);
    --shadow-glow-secondary: 0 0 20px var(--secondary-glow), 0 0 40px var(--secondary-glow);
    --shadow-glow-accent: 0 0 20px var(--accent-glow), 0 0 40px var(--accent-glow);

    /* === 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);
    --transition-slower: 800ms cubic-bezier(0.4, 0, 0.2, 1);

    /* === Z-Index === */
    --z-background: -1;
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-nav: 500;
    --z-modal: 600;
    --z-terminal: 700;
    --z-cursor: 9999;
    --z-loading: 10000;
}

/* ========== BASE STYLES ========== */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    cursor: none;
    /* Hide default cursor */
}

/* Noise overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: var(--z-background);
}

/* Scanlines */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.1) 2px,
            rgba(0, 0, 0, 0.1) 4px);
    pointer-events: none;
    z-index: var(--z-background);
    opacity: 0.3;
}

/* Selection */
::selection {
    background: var(--primary);
    color: var(--bg-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-glow-sm);
}

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

h1 {
    font-size: var(--text-5xl);
}

h2 {
    font-size: var(--text-4xl);
}

h3 {
    font-size: var(--text-3xl);
}

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

a:hover {
    text-shadow: var(--shadow-glow-sm);
}

code,
pre {
    font-family: var(--font-mono);
}

/* ========== UTILITY CLASSES ========== */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-glow {
    text-shadow: var(--shadow-glow-md);
}

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

.hidden {
    display: none !important;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: none;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s;
}

.btn:hover::before {
    transform: translateX(100%);
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-primary);
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow-md);
    transform: translateY(-3px) scale(1.02);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: rgba(var(--primary-rgb), 0.1);
    box-shadow: var(--shadow-glow-sm);
    transform: translateY(-3px);
}

/* ========== CARDS ========== */
.card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: var(--transition-base);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: var(--gradient-primary);
    border-radius: inherit;
    opacity: 0;
    z-index: -1;
    transition: var(--transition-base);
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
}

.card:hover::before {
    opacity: 0.5;
    filter: blur(15px);
}

/* ========== SECTION STYLES ========== */
.page-section {
    min-height: 100vh;
    padding: var(--space-4xl) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-title {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    font-family: var(--font-mono);
    color: var(--primary);
    font-size: var(--text-lg);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    :root {
        --text-5xl: 2.5rem;
        --text-4xl: 2rem;
        --text-3xl: 1.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --text-5xl: 2rem;
        --text-4xl: 1.75rem;
    }

    .container {
        padding: 0 var(--space-md);
    }

    body {
        cursor: auto;
    }
}