:root {
    --bg-void: #020204;
    --text-white: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.4);
    --accent-glow: rgba(255, 255, 255, 0.15);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --discord-blue: #5865F2;
    --success: #00ff9d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
}

body {
    background-color: var(--bg-void);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- Utilities --- */
.noise-overlay {
    position: fixed;
    inset: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idHJhbnNwYXJlbnQiLz48ZmlsdGVyIGlkPSJub2lzZSI+PGZlVHVyYnVsZW5jZSB0eXBlPSJmcmFjdGFsTm9pc2UiIGJhc2VGcmVxdWVuY3k9IjAuNjUiIG51bU9jdGF2ZXM9IjMiIHN0aXRjaFRpbGVzPSJzdGl0Y2giLz48L2ZpbHRlcj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSIjMDAwMDAwIiBvcGFjaXR5PSIwLjA0IiBmaWx0ZXI9InVybCgjbm9pc2UpIi8+PC9zdmc+');
    opacity: 0.5;
    pointer-events: none;
    z-index: 1;
}

.vignette {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, transparent 30%, #000 120%);
    pointer-events: none;
    z-index: 2;
}

/* --- Intro Sequence (Netflix Style) --- */
.intro-overlay {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.intro-logo {
    width: 150px;
    height: 150px;
    margin-bottom: 32px;
    opacity: 0;
    transform: scale(0);
    animation: zoomInLogo 2s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.3s;
}

.intro-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 50px rgba(88, 101, 242, 0.8));
}

.intro-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    letter-spacing: 0.4em;
    font-weight: 700;
    color: #fff;
    opacity: 0;
    transform: scale(0.8);
    animation: revealTitle 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 1.5s;
    text-align: center;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
}

@keyframes zoomInLogo {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-10deg);
        filter: blur(20px);
    }

    50% {
        opacity: 1;
        filter: blur(0px);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: blur(0px);
    }
}

@keyframes revealTitle {
    to {
        opacity: 1;
        transform: translateY(0);
        letter-spacing: 0.2em;
    }
}

/* --- Backgrounds --- */
canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

#blocks {
    opacity: 0.6;
}

/* --- UI Layer --- */
.ui-layer {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

/* Centered Brand Header */
.brand-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
    opacity: 0;
}

.brand-logo-large {
    width: 56px;
    height: 56px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(88, 101, 242, 0.6));
}

.brand-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #fff;
    text-shadow: 0 0 20px rgba(88, 101, 242, 0.3);
}

/* Hero Center */
.hero-center {
    text-align: center;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-line {
    display: block;
    font-size: 4rem;
    letter-spacing: -0.02em;
    opacity: 0;
}

.hero-line.highlight {
    font-weight: 700;
    background: linear-gradient(to right, #fff, #5865F2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(88, 101, 242, 0.3);
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-dim);
    max-width: 400px;
    margin: 0 auto 48px;
    font-weight: 300;
    opacity: 0;
}

.cta-container {
    opacity: 0;
    display: flex;
    justify-content: center;
    width: 100%;
}

.primary-cta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 48px;
    background: rgba(88, 101, 242, 0.1);
    border: 1px solid rgba(88, 101, 242, 0.3);
    color: #fff;
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.primary-cta:hover {
    background: var(--discord-blue);
    border-color: var(--discord-blue);
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(88, 101, 242, 0.3);
}

.cta-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-20deg);
    animation: sheen 4s infinite;
}

@keyframes sheen {

    40%,
    100% {
        left: 150%;
    }
}

/* Status Deck */
.status-deck {
    position: absolute;
    bottom: 50px;
    display: flex;
    align-items: center;
    gap: 32px;
    background: rgba(255, 255, 255, 0.02);
    padding: 12px 24px;
    border-radius: 100px;
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(10px);
    pointer-events: auto;
    opacity: 0;
}

.status-divider {
    width: 1px;
    height: 16px;
    background: var(--border-subtle);
}

.status-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-dim);
    transition: color 0.3s;
}

.status-pill:hover {
    color: #fff;
}

.status-value {
    color: #fff;
    font-weight: 500;
}

.pulse-green {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--success);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}

/* --- Cursor --- */
.cursor-dot {
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    position: fixed;
    z-index: 9998;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s;
}

/* Mobile Tweaks */
@media (max-width: 768px) {
    .hero-line {
        font-size: 2.5rem;
    }

    .brand-name {
        font-size: 1.4rem;
    }

    .brand-logo-large {
        width: 40px;
        height: 40px;
    }

    .status-deck {
        bottom: 30px;
        width: 90%;
        justify-content: center;
        gap: 20px;
    }
}