body {
    background-color: #020617;
    color: #f8fafc;
    overflow-x: hidden;
}

.bg-grid {
    background-size: 50px 50px;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
}

.nav-pill {
    background: rgba(2, 6, 23, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.spotlight-card {
    position: relative;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.spotlight-card::before {
    content: "";
    position: absolute;
    height: 100%; width: 100%;
    top: 0; left: 0;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.06), transparent 40%);
    opacity: 0; transition: opacity 0.5s; pointer-events: none; z-index: 2;
}

.spotlight-card::after {
    content: "";
    position: absolute;
    height: 100%; width: 100%;
    top: 0; left: 0;
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(139, 92, 246, 0.15), transparent 40%);
    opacity: 0; transition: opacity 0.5s; z-index: 1; pointer-events: none;
}

.spotlight-card:hover::before, .spotlight-card:hover::after { opacity: 1; }

.typing-effect {
    overflow: hidden; 
    white-space: nowrap; 
    border-right: 2px solid #8b5cf6; 
    animation: typing 3.5s steps(40, end), blink-caret .75s step-end infinite;
    max-width: 0;
    animation-fill-mode: forwards;
}
@keyframes typing { from { max-width: 0 } to { max-width: 100% } }
@keyframes blink-caret { from, to { border-color: transparent } 50% { border-color: #8b5cf6; } }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #020617; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 10px; }

.chat-chip {
    background: rgba(56, 189, 248, 0.05);
    border: 1px solid rgba(56, 189, 248, 0.2);
    color: #7dd3fc;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.chat-chip:hover {
    background: rgba(56, 189, 248, 0.15);
    box-shadow: 0 0 15px rgba(56,189,248,0.2);
    transform: translateY(-1px);
}

.fade-in-up { opacity: 0; animation: fadeInUp 0.8s ease-out forwards; }

/* Stranger Things Particles Background */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: float-particle linear infinite;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ÓE Logo Animation - Character by Character */
.oe-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-direction: column;
    gap: 15px;
}

.oe-square {
    width: 70px;
    height: 70px;
    background: white;
    color: black;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    z-index: 10;
    box-shadow: 0 0 25px rgba(255,255,255,0.2);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.oe-text-container {
    display: flex;
    gap: 2px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    min-height: 2.5rem;
}

.oe-char {
    display: inline-block;
    color: white;
    opacity: 0;
    transform: translateY(20px);
    animation: none;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.oe-char.typing {
    animation: typeChar 0.1s ease-out forwards;
}

.oe-char.visible {
    opacity: 1;
    transform: translateY(0);
}

.oe-char.dissolving {
    animation: dissolveChar 0.5s ease-out forwards;
}

@keyframes typeChar {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.5);
        filter: blur(10px);
    }
    50% {
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes dissolveChar {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
    50% {
        opacity: 0.5;
        transform: translateY(-10px) scale(1.2);
        filter: blur(3px);
    }
    100% {
        opacity: 0;
        transform: translateY(-30px) scale(0.5);
        filter: blur(10px);
    }
}

.oe-container.expanded .oe-square {
    transform: translateX(0);
}