/* Landing Page Overhaul Styles */
:root {
    --neon-blue: #00f3ff;
    --neon-purple: #bd00ff;
    --neon-gold: #ffd700;
    --bg-dark: #050505;
}

body {
    margin: 0;
    overflow: hidden;
    /* Prevent scroll until entered */
    background: var(--bg-dark);
    font-family: 'Orbitron', 'Fira Code', sans-serif;
    color: white;
}

/* Canvas Background */
#warp-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0;
    animation: fadeIn 2s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Main Content Overlay */
.landing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    /* Allow click-through to canvas if needed, but we have buttons */
    z-index: 10;
}

/* Glitch Typography */
.mega-title {
    font-size: 8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 10px;
    margin: 0;
    position: relative;
    text-shadow:
        0 0 10px var(--neon-blue),
        0 0 20px var(--neon-blue),
        0 0 40px var(--neon-blue);
    animation: pulseGlow 3s infinite alternate;
    pointer-events: auto;
}

.mega-title::before,
.mega-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    overflow: hidden;
    clip-path: inset(0 0 0 0);
}

.mega-title::before {
    left: 2px;
    text-shadow: -2px 0 var(--neon-purple);
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.mega-title::after {
    left: -2px;
    text-shadow: 2px 0 var(--neon-gold);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.subtitle {
    font-size: 1.5rem;
    letter-spacing: 5px;
    color: #aaa;
    margin-top: 1rem;
    text-transform: uppercase;
    opacity: 0;
    animation: slideUp 1s 1s forwards;
}

/* Enter Button */
.enter-btn {
    pointer-events: auto;
    margin-top: 4rem;
    padding: 1.5rem 4rem;
    font-size: 1.5rem;
    background: transparent;
    color: var(--neon-gold);
    border: 2px solid var(--neon-gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    opacity: 0;
    animation: slideUp 1s 2s forwards;
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
}

.enter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--neon-gold);
    transition: left 0.3s;
    z-index: -1;
}

.enter-btn:hover {
    color: black;
    box-shadow: 0 0 30px var(--neon-gold);
}

.enter-btn:hover::before {
    left: 0;
}

/* Animations */
@keyframes pulseGlow {
    from {
        text-shadow: 0 0 10px var(--neon-blue);
    }

    to {
        text-shadow: 0 0 30px var(--neon-blue), 0 0 60px var(--neon-purple);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes glitch-anim-1 {
    0% {
        clip-path: inset(20% 0 80% 0);
    }

    20% {
        clip-path: inset(60% 0 10% 0);
    }

    40% {
        clip-path: inset(40% 0 50% 0);
    }

    60% {
        clip-path: inset(80% 0 5% 0);
    }

    80% {
        clip-path: inset(10% 0 70% 0);
    }

    100% {
        clip-path: inset(30% 0 20% 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip-path: inset(10% 0 60% 0);
    }

    20% {
        clip-path: inset(30% 0 20% 0);
    }

    40% {
        clip-path: inset(70% 0 10% 0);
    }

    60% {
        clip-path: inset(20% 0 50% 0);
    }

    80% {
        clip-path: inset(50% 0 30% 0);
    }

    100% {
        clip-path: inset(0% 0 80% 0);
    }
}