

:root {
    --accent: #b14dff;
    --accent-dark: #5f00ff;
}

body.vexnode-reveal header,
body.vexnode-reveal main,
body.vexnode-reveal footer {
    animation: siteFocusReveal 1.4s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes siteFocusReveal {
    from { 
        opacity: 0; 
        filter: blur(20px) brightness(0.5); 
        transform: scale(0.98); 
    }
    to { 
        opacity: 1; 
        filter: blur(0) brightness(1); 
        transform: scale(1); 
    }
}
body.vexnode-reveal {
    background-color: var(--bg-dark) !important; 
}

body:not(.vexnode-lock) #intro {
    display: none !important;
}

#intro {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    perspective: 1000px; 
}

.intro-particles {
    position: absolute;
    inset: -10%; 
    background-image: radial-gradient(white 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.05;
    animation: particleDrift 30s linear infinite, particlePulse 5s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes particleDrift {
    from { background-position: 0 0; }
    to { background-position: 80px 80px; }
}

@keyframes particlePulse {
    0% { transform: scale(1); opacity: 0.05; }
    50% { transform: scale(1.02); opacity: 0.08; }
    100% { transform: scale(1); opacity: 0.05; }
}

.logo {
    font-size: clamp(50px, 12vw, 90px);
    font-weight: 900;
    color: #fff;
    letter-spacing: -3px;
    position: relative;
    z-index: 2;
    text-shadow: 0 0 20px rgba(177, 77, 255, 0.3);
    opacity: 0; 
    animation: logoEnter 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards; 
    animation-delay: 0.5s;
}

.logo::after {
    content: 'VEXNODE';
    position: absolute;
    left: 0; top: 0;
    z-index: -1;
    filter: blur(25px);
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.8;
}

@keyframes logoEnter {
    from { opacity: 0; transform: scale(0.8) translateY(20px) translateZ(-50px); filter: blur(15px); }
    to { opacity: 1; transform: scale(1) translateY(0) translateZ(0); filter: blur(0); }
}

.welcome {
    color: rgba(255,255,255,0.5); 
    margin-top: 15px;
    font-size: 1.2em;
    letter-spacing: 1px;
    text-align: center;
    opacity: 0; 
    animation: textEnter 1s ease forwards; 
    animation-delay: 1.5s; 
}

.enter-btn {
    margin-top: 50px;
    padding: 18px 45px;
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 4px;
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    opacity: 0; 
    animation: buttonEnter 1s ease forwards; 
    animation-delay: 2s;
}

.enter-btn:hover {
    background: var(--accent);
    color: white;
    box-shadow: 0 0 30px var(--accent-dark);
}

@keyframes textEnter {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes buttonEnter {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.transition-layer {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    pointer-events: none;
    display: flex;
    flex-direction: column;
}

.t-bar {
    flex: 1;
    width: 100%;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, var(--accent-dark), var(--bg-dark));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.t-bar.active {
    animation: slideInOut 1.4s cubic-bezier(0.85, 0, 0.15, 1) forwards;
}

@keyframes slideInOut {
    0% { transform: translateX(-100%); }
    45% { transform: translateX(0); }
    55% { transform: translateX(0); }
    100% { transform: translateX(100%); }
}