/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Outfit', sans-serif;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    position: relative;
}

/* ===== Radial Gradient Background ===== */
.bg-glow {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 55% 55% at 50% 50%,
            rgba(20, 40, 100, 0.85) 0%,
            rgba(12, 24, 68, 0.7) 25%,
            rgba(6, 12, 40, 0.5) 50%,
            rgba(2, 4, 18, 0.3) 70%,
            rgba(0, 0, 0, 1) 100%);
}

/* ===== Cursor Flashlight ===== */
.cursor-light {
    position: fixed;
    top: 0;
    left: 0;
    width: 350px;
    height: 350px;
    margin-left: -175px;
    margin-top: -175px;
    border-radius: 50%;
    background: radial-gradient(circle,
            rgba(60, 100, 200, 0.18) 0%,
            rgba(40, 70, 160, 0.08) 35%,
            transparent 70%);
    pointer-events: none;
    z-index: 3;
    will-change: transform;
    transition: none;
}

/* ===== Container ===== */
.container {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* ===== Logo Text ===== */
.logo {
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 900;
    letter-spacing: 0.12em;
    color: #e0e8ff;
    position: relative;
    text-shadow:
        0 0 20px rgba(80, 120, 220, 0.6),
        0 0 60px rgba(60, 90, 180, 0.35),
        0 0 120px rgba(40, 60, 140, 0.2);
    user-select: none;
    will-change: opacity;
    animation: breathe 4s ease-in-out infinite;
}

/* Subtle sheen sweep — GPU accelerated with translate */
.logo::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg,
            transparent 30%,
            rgba(160, 190, 255, 0.18) 50%,
            transparent 70%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    will-change: transform;
    animation: sheen 5s ease-in-out infinite;
}

/* ===== Tagline ===== */
.tagline {
    margin-top: 1rem;
    font-size: clamp(0.85rem, 2vw, 1.25rem);
    font-weight: 300;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(160, 185, 255, 0.55);
    animation: fadeUp 1.5s ease-out both;
    animation-delay: 0.4s;
}

/* ===== Particles ===== */
.particles {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(120, 160, 255, 0.25);
    will-change: transform, opacity;
    backface-visibility: hidden;
    animation: float linear infinite;
    opacity: 0;
}

/* ===== Animations ===== */

/* Breathe: only animate opacity (cheap) instead of text-shadow (expensive repaint) */
@keyframes breathe {

    0%,
    100% {
        opacity: 0.85;
    }

    50% {
        opacity: 1;
    }
}

/* Sheen: use translateX (GPU composited) instead of background-position */
@keyframes sheen {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

@keyframes float {
    0% {
        transform: translate3d(0, 0, 0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translate3d(30px, -100vh, 0);
        opacity: 0;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}