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

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 18%, rgba(251, 191, 36, 0.16), transparent 24%),
        radial-gradient(circle at 82% 22%, rgba(96, 165, 250, 0.15), transparent 22%),
        linear-gradient(135deg, #040814 0%, #0b1226 52%, #0f172a 100%);
}

#splash-screen {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: grid;
    place-items: center;
    overflow: hidden;
    isolation: isolate;
    transition: opacity 0.42s ease, transform 0.42s ease, filter 0.42s ease;
}

.splash-grain,
.splash-glow,
.splash-orbit,
.splash-beam {
    position: absolute;
    pointer-events: none;
}

.splash-grain {
    inset: -20%;
    opacity: 0.08;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.28) 0 1px, transparent 1px),
        radial-gradient(circle at 75% 40%, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px),
        radial-gradient(circle at 40% 78%, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px);
    background-size: 180px 180px, 240px 240px, 220px 220px;
    mix-blend-mode: screen;
    animation: grainDrift 14s linear infinite;
}

.splash-glow {
    width: 54vw;
    aspect-ratio: 1;
    border-radius: 999px;
    filter: blur(22px);
    opacity: 0;
}

.splash-glow-left {
    top: -14%;
    left: -10%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.42) 0%, rgba(249, 115, 22, 0.12) 46%, transparent 72%);
    animation: glowFloatLeft 4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.splash-glow-right {
    right: -10%;
    bottom: -18%;
    background: radial-gradient(circle, rgba(125, 211, 252, 0.36) 0%, rgba(59, 130, 246, 0.1) 48%, transparent 72%);
    animation: glowFloatRight 4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.splash-orbit {
    top: 50%;
    left: 50%;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.82);
}

.splash-orbit-one {
    width: min(68vw, 760px);
    height: min(68vw, 760px);
    box-shadow: inset 0 0 60px rgba(255, 255, 255, 0.03);
    animation:
        orbitAppear 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards,
        orbitSpin 14s linear infinite;
}

.splash-orbit-two {
    width: min(46vw, 520px);
    height: min(46vw, 520px);
    border-color: rgba(251, 191, 36, 0.18);
    animation:
        orbitAppearAlt 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards,
        orbitSpinReverse 10s linear infinite;
}

.splash-beam {
    inset: auto;
    width: min(92vw, 980px);
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.04) 18%, rgba(251, 191, 36, 0.75) 50%, rgba(255, 255, 255, 0.04) 82%, transparent 100%);
    opacity: 0;
    box-shadow: 0 0 18px rgba(251, 191, 36, 0.42);
    animation: beamSweep 4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand-stage {
    position: relative;
    z-index: 2;
    width: min(100%, 980px);
    padding: 24px;
    display: grid;
    place-items: center;
}

.brand-word {
    position: relative;
    font-size: clamp(48px, 11vw, 136px);
    font-weight: 800;
    letter-spacing: -0.075em;
    line-height: 0.95;
    color: transparent;
    text-transform: none;
    background:
        linear-gradient(92deg, #ffffff 0%, #fef3c7 18%, #fbbf24 48%, #93c5fd 74%, #ffffff 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    opacity: 0;
    filter: blur(16px);
    transform: translateY(26px) scale(0.94);
    text-shadow: 0 0 36px rgba(251, 191, 36, 0.12);
    animation:
        wordReveal 1.45s cubic-bezier(0.22, 1, 0.36, 1) 0.36s forwards,
        wordFloat 2.2s ease-in-out 1.85s infinite,
        wordShimmer 4s ease-in-out 0.9s infinite;
    will-change: transform, opacity, filter, background-position;
}

.brand-word::before,
.brand-word::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.brand-word::before {
    color: rgba(255, 255, 255, 0.08);
    transform: translateY(10px) scale(1.02);
    filter: blur(14px);
}

.brand-word::after {
    color: rgba(125, 211, 252, 0.12);
    transform: translateY(-10px) scale(0.99);
    filter: blur(18px);
}

.fade-out {
    opacity: 0;
    transform: scale(1.025);
    filter: blur(10px);
}

@keyframes grainDrift {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(42px, -32px, 0);
    }
}

@keyframes glowFloatLeft {
    0% {
        opacity: 0;
        transform: translate3d(-6%, -6%, 0) scale(0.8);
    }
    35% {
        opacity: 1;
    }
    100% {
        opacity: 0.92;
        transform: translate3d(3%, 2%, 0) scale(1.08);
    }
}

@keyframes glowFloatRight {
    0% {
        opacity: 0;
        transform: translate3d(8%, 8%, 0) scale(0.84);
    }
    35% {
        opacity: 1;
    }
    100% {
        opacity: 0.84;
        transform: translate3d(-2%, -3%, 0) scale(1.05);
    }
}

@keyframes orbitAppear {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.72);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes orbitAppearAlt {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.68) rotate(12deg);
    }
    100% {
        opacity: 0.92;
        transform: translate(-50%, -50%) scale(1) rotate(12deg);
    }
}

@keyframes orbitSpin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes orbitSpinReverse {
    from {
        transform: translate(-50%, -50%) rotate(12deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(-348deg);
    }
}

@keyframes beamSweep {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scaleX(0.18);
        filter: blur(10px);
    }
    24% {
        opacity: 1;
        transform: translate(-50%, -50%) scaleX(0.82);
        filter: blur(0);
    }
    70% {
        opacity: 0.82;
        transform: translate(-50%, -50%) scaleX(1);
    }
    100% {
        opacity: 0.22;
        transform: translate(-50%, -50%) scaleX(1.06);
    }
}

@keyframes wordReveal {
    0% {
        opacity: 0;
        filter: blur(16px);
        transform: translateY(26px) scale(0.94);
    }
    55% {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0) scale(1);
    }
}

@keyframes wordFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-8px) scale(1.008);
    }
}

@keyframes wordShimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@media (max-width: 720px) {
    .splash-glow {
        width: 84vw;
    }

    .splash-orbit-one {
        width: 94vw;
        height: 94vw;
    }

    .splash-orbit-two {
        width: 66vw;
        height: 66vw;
    }

    .brand-stage {
        padding: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .splash-grain,
    .splash-glow,
    .splash-orbit,
    .splash-beam,
    .brand-word {
        animation: none !important;
    }

    .splash-glow,
    .splash-orbit,
    .splash-beam,
    .brand-word {
        opacity: 1;
        transform: none;
        filter: none;
    }

    .brand-word {
        background-position: 50% 50%;
    }
}
