body {
    background-color: #020408;
    color: #F8FAFC;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* The Living Line */
.living-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 2px;
    overflow: hidden;
    background: linear-gradient(to bottom,
        transparent,
        #1E2230 10%,
        #1E2230 90%,
        transparent
    );
    z-index: 0;
    pointer-events: none;
}

.living-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, transparent, #3B82F6, transparent);
    animation: drop 8s ease-in-out infinite;
    filter: blur(2px);
}

@media (prefers-reduced-motion: reduce) {
    .living-line::after {
        animation: none;
        display: none;
    }

    .animate-float,
    .animate-flow,
    .animate-pulse-slow,
    .animate-grow-bar,
    .animate-scroll-logs,
    .animate-stream {
        animation: none;
    }
}

@keyframes drop {
    0% { top: -200px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* Card Glow Effect on Hover */
.feature-card {
    background: #0A0C12;
    border: 1px solid #1E2230;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.feature-card:hover {
    border-color: #3B82F6;
    transform: translateY(-4px);
    box-shadow: 0 10px 40px -10px rgba(59, 130, 246, 0.15);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transition: left 0.5s;
}

.feature-card:hover::before {
    left: 100%;
}

/* Glass Panel */
.glass-panel {
    background: rgba(10, 12, 18, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Syntax Highlighting */
.token-key { color: #7EE787; }
.token-str { color: #A5D6FF; }
.token-num { color: #D2A8FF; }
.token-kw  { color: #FF7B72; }
.token-comment { color: #8B949E; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #020408; }
::-webkit-scrollbar-thumb { background: #1E2230; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #3B82F6; }

#three-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    opacity: 0.4;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.dashed-flow {
    stroke-dasharray: 4 4;
    animation: flow 1s linear infinite;
}
