html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    font-family: "Roboto", system-ui, sans-serif;
    background: #020617;
}

button {
    font: inherit;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
}

body::after {
    content: "";
    position: fixed;
    inset: -20%;
    z-index: -2;
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.12), transparent 28%),
        radial-gradient(circle at 82% 14%, rgba(56, 189, 248, 0.16), transparent 26%),
        radial-gradient(circle at 50% 82%, rgba(15, 118, 110, 0.16), transparent 28%);
    filter: blur(56px);
    animation: lights-drift 18s ease-in-out infinite alternate;
}

.bg-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
    background-size: 120px 120px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent 82%);
}

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

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

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

@keyframes lights-drift {
    from {
        transform: translate3d(-2%, -1%, 0) scale(1);
    }

    to {
        transform: translate3d(2%, 1%, 0) scale(1.06);
    }
}

@media (prefers-reduced-motion: reduce) {
    body::before,
    body::after {
        animation: none;
    }
}
