* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    background: #000;
}

body {
    font-family: Arial, Helvetica, sans-serif;
}

canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.scene {
    position: fixed;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    pointer-events: none;
    z-index: 10;
}

.logo-wrap {
    position: relative;
    transform-style: preserve-3d;
    transition: transform .15s ease-out;
}

.logo {
    position: relative;

    font-size: clamp(48px, 10vw, 180px);
    font-weight: 800;

    letter-spacing: -0.085em;
    line-height: .9;

    color: transparent;

    height: 190px;

    background:
        linear-gradient(
            110deg,
            #ffffff 0%,
            #d9e7ff 12%,
            #6c9aff 30%,
            #ffffff 43%,
            #7e55ff 60%,
            #c9b7ff 72%,
            #548aff 88%,
            #ffffff 100%
        );

    background-size: 300% 300%;

    -webkit-background-clip: text;
    background-clip: text;

    filter:
        drop-shadow(0 0 4px rgba(130,170,255,.9))
        drop-shadow(0 0 15px rgba(70,90,255,.8))
        drop-shadow(0 0 45px rgba(80,40,255,.45))
        drop-shadow(0 0 100px rgba(20,70,255,.25));

    animation:
        logoGradient 6s ease-in-out infinite alternate,
        logoFloat 5s ease-in-out infinite;
}

.logo-text,
.logo-shine {
    display: block;
}

.logo-shine {
    position: absolute;
    inset: 0;

    color: transparent;

    background:
        linear-gradient(
            100deg,
            transparent 15%,
            rgba(255,255,255,.95) 48%,
            transparent 75%
        );

    background-size: 220% 100%;

    -webkit-background-clip: text;
    background-clip: text;

    filter: blur(1px);

    animation: shine 4s linear infinite;
}

.logo::after {
    content: "";

    position: absolute;

    left: 5%;
    right: 5%;
    bottom: -45%;

    height: 80%;

    background:
        radial-gradient(
            ellipse,
            rgba(50,90,255,.35),
            rgba(90,30,255,.12) 40%,
            transparent 72%
        );

    filter: blur(35px);

    z-index: -1;

    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGradient {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

@keyframes logoFloat {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-7px) scale(1.008);
    }
}

@keyframes shine {
    0% {
        background-position: -220% 0;
    }

    100% {
        background-position: 220% 0;
    }
}

@keyframes logoGlow {
    0%,
    100% {
        opacity: .45;
        transform: scale(.9);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.vignette {
    position: fixed;
    inset: 0;

    z-index: 20;
    pointer-events: none;

    background:
        radial-gradient(
            ellipse at center,
            transparent 25%,
            rgba(0,0,0,.2) 55%,
            rgba(0,0,0,.82) 100%
        );
}

.noise {
    position: fixed;
    inset: -50%;

    z-index: 30;
    pointer-events: none;

    opacity: .035;

    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

    animation: noiseMove .18s steps(2) infinite;
}

@keyframes noiseMove {
    0% {
        transform: translate(0,0);
    }

    25% {
        transform: translate(2%,-1%);
    }

    50% {
        transform: translate(-1%,2%);
    }

    75% {
        transform: translate(1%,1%);
    }

    100% {
        transform: translate(-2%,-1%);
    }
}

@media (max-width: 600px) {
    .logo {
        font-size: clamp(42px, 13vw, 90px);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}