/* --- LAPS Empire-Grade Visuals --- */

:root {
    --bg-deep: #020617; /* Slate 950 */
    --primary: #3b82f6;
    --glass-dark: rgba(2, 6, 23, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
}

body {
    background-color: var(--bg-deep);
    color: white;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
}

/* 1. Dynamic Nebula Background (Slow Drift) */
.nebula-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, #1e293b 0%, #020617 70%);
    background-size: 200% 200%;
    animation: space-pulse 15s ease infinite alternate;
}

@keyframes space-pulse {
    0% { background-position: 50% 50%; opacity: 0.8; }
    100% { background-position: 55% 55%; opacity: 1; }
}

/* 2. The Canvas (Starfield + Network) */
#hero-canvas {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none;
}

/* 3. Glassmorphism */
.glass-panel {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-nav {
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.hero-title {
    background: linear-gradient(to right, #ffffff 40%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 4. Timeline Layout */
.timeline-track {
    position: relative;
    padding: 4rem 0;
}

.timeline-track::before {
    content: '';
    position: absolute;
    left: 50%; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, #3b82f6, transparent);
    transform: translateX(-50%);
    z-index: 0;
    opacity: 0.3;
}

.timeline-step {
    display: flex; justify-content: center; align-items: center; margin-bottom: 8rem;
    position: relative; opacity: 0; transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.timeline-step.active { opacity: 1; transform: translateY(0); }
.timeline-content { width: 45%; position: relative; z-index: 10; }
.timeline-step:nth-child(odd) { justify-content: flex-start; }
.timeline-step:nth-child(even) { justify-content: flex-end; }

.timeline-node {
    position: absolute; left: 50%; width: 16px; height: 16px;
    background: #020617; border: 2px solid #3b82f6;
    transform: translateX(-50%) rotate(45deg); z-index: 5;
    box-shadow: 0 0 15px #3b82f6;
}

@media (max-width: 768px) {
    .timeline-track::before { left: 20px; }
    .timeline-step { justify-content: flex-start !important; padding-left: 60px; }
    .timeline-content { width: 100%; }
    .timeline-node { left: 20px; }
}

/* 5. Feature Cards & Hover Effects */
.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(255, 255, 255, 0.04);
}

.reveal { opacity: 0; transform: translateY(40px); transition: all 1s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* 6. 3D Perspective Utilities (For Hero Dashboard) */
.perspective-1000 { perspective: 1000px; }
.rotate-x-6 { transform: rotateX(12deg) scale(0.95); }
.group:hover .rotate-x-6 { transform: rotateX(0deg) scale(1); } /* Interactive lift */

/* 7. Grayscale Utilities (For Trust Ribbon) */
.grayscale { filter: grayscale(100%); }
.grayscale-0 { filter: grayscale(0%); }