:root {
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.5);
    --bg-dark: #020617;
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
}

/* Global Reset & Base */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
}

/* Background Systems */
.bg-grid {
    background-image: 
        linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    position: relative;
}

.hero-mesh {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1400px;
    height: 600px;
    background: radial-gradient(circle at 50% 10%, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
    filter: blur(80px);
}

/* Components */
.glass-nav {
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    background: rgba(15, 23, 42, 0.7);
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -20px rgba(99, 102, 241, 0.3);
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Animations */
.active-cursor::after {
    content: "|";
    color: #6366f1;
    font-weight: bold;
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-float-subtle {
    animation: float 5s ease-in-out infinite;
}

/* Utilities */
.mono { font-family: 'JetBrains Mono', monospace; }
.opacity-0 { opacity: 0; transition: opacity 0.5s ease; }

::selection {
    background: var(--primary);
    color: white;
}
