:root {
    color-scheme: dark;
    --white: #f8fbff;
    --muted: rgba(248, 251, 255, 0.68);
    --cyan: #62fff3;
    --ice: #a9c8ff;
    --violet: #7d68ff;
    --deep: #050711;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    overflow: hidden;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 50% 112%, rgba(98, 255, 243, 0.2), transparent 31rem),
        radial-gradient(circle at 18% 22%, rgba(125, 104, 255, 0.16), transparent 24rem),
        linear-gradient(145deg, #050711 0%, #08101f 54%, #03040a 100%);
    color: var(--white);
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
}

body::before {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 82px 82px;
    mask-image: radial-gradient(circle at center, black 0%, transparent 72%);
    opacity: 0.45;
}

body::after {
    background: linear-gradient(90deg, transparent, rgba(98, 255, 243, 0.08), transparent);
    width: 32vw;
    transform: translateX(-45vw) skewX(-18deg);
    animation: lightSweep 6s 2.4s ease-in-out infinite;
}

#luna-field {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    animation: fadeIn 1.1s 1.4s ease forwards;
}

.intro {
    position: fixed;
    inset: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    background: var(--deep);
    animation: introExit 1.05s 2.05s cubic-bezier(0.77, 0, 0.18, 1) forwards;
}

.intro-orb {
    width: min(42vw, 220px);
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle at 36% 28%, #ffffff 0 6%, transparent 16%),
        radial-gradient(circle at 50% 50%, rgba(98, 255, 243, 0.98), rgba(125, 104, 255, 0.18) 54%, transparent 68%);
    box-shadow:
        0 0 35px rgba(98, 255, 243, 0.7),
        0 0 140px rgba(98, 255, 243, 0.42);
    transform: translateY(42vh) scale(0.32);
    animation: orbRise 2.05s cubic-bezier(0.2, 0.92, 0.28, 1) forwards;
}

.intro-line {
    position: absolute;
    bottom: 0;
    width: 2px;
    height: 0;
    background: linear-gradient(transparent, var(--cyan), transparent);
    box-shadow: 0 0 35px rgba(98, 255, 243, 0.95);
    animation: lineRise 1.65s 0.1s ease-out forwards;
}

.landing {
    position: relative;
    z-index: 2;
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 28px;
}

.domain {
    position: fixed;
    top: 28px;
    right: 32px;
    color: rgba(248, 251, 255, 0.78);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-decoration: none;
    text-transform: uppercase;
}

.centerpiece {
    display: grid;
    place-items: center;
    text-align: center;
    transform: translateY(22px);
    opacity: 0;
    animation: contentRise 1.15s 2.28s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.moon-system {
    position: relative;
    display: grid;
    width: min(52vw, 360px);
    aspect-ratio: 1;
    margin-bottom: clamp(26px, 5vw, 44px);
    place-items: center;
}

.moon-core {
    width: 31%;
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 25%, #ffffff 0 8%, transparent 20%),
        radial-gradient(circle, var(--cyan), #76a7ff 52%, rgba(125, 104, 255, 0.04) 72%);
    box-shadow:
        0 0 30px rgba(98, 255, 243, 0.9),
        0 0 100px rgba(98, 255, 243, 0.52),
        inset -16px -18px 28px rgba(23, 19, 80, 0.52);
    animation: pulse 3.8s ease-in-out infinite;
}

.orbit {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(248, 251, 255, 0.16);
    border-radius: 50%;
}

.orbit::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 18px var(--cyan);
}

.orbit-one {
    animation: orbitFlat 8s linear infinite;
}

.orbit-two {
    inset: 13%;
    transform: rotateX(65deg) rotateZ(24deg);
    animation: orbitTiltA 11s linear infinite;
}

.orbit-three {
    inset: 25%;
    transform: rotateY(68deg) rotateZ(-18deg);
    animation: orbitTiltB 6.5s linear infinite;
}

.kicker {
    margin: 0 0 16px;
    color: var(--cyan);
    font-size: clamp(0.78rem, 1.8vw, 0.96rem);
    font-weight: 800;
    letter-spacing: 0.42em;
    text-indent: 0.42em;
}

h1 {
    margin: 0;
    font-size: clamp(3.4rem, 12vw, 10.5rem);
    font-weight: 800;
    line-height: 0.86;
    letter-spacing: 0;
    text-shadow:
        0 0 24px rgba(98, 255, 243, 0.22),
        0 18px 70px rgba(0, 0, 0, 0.5);
}

.line {
    margin: 24px 0 0;
    color: var(--muted);
    font-size: clamp(0.98rem, 2vw, 1.22rem);
    font-weight: 600;
}

@keyframes orbRise {
    0% {
        transform: translateY(42vh) scale(0.32);
        opacity: 0;
    }

    44% {
        opacity: 1;
    }

    76% {
        transform: translateY(-2vh) scale(1);
    }

    100% {
        transform: translateY(0) scale(0.72);
        opacity: 0;
    }
}

@keyframes lineRise {
    0% {
        height: 0;
        opacity: 0;
    }

    35% {
        opacity: 1;
    }

    100% {
        height: 100vh;
        opacity: 0;
    }
}

@keyframes introExit {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

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

@keyframes fadeIn {
    to {
        opacity: 0.74;
    }
}

@keyframes orbitFlat {
    to {
        transform: rotate(360deg);
    }
}

@keyframes orbitTiltA {
    from {
        transform: rotateX(65deg) rotateZ(24deg);
    }

    to {
        transform: rotateX(65deg) rotateZ(-336deg);
    }
}

@keyframes orbitTiltB {
    from {
        transform: rotateY(68deg) rotateZ(-18deg);
    }

    to {
        transform: rotateY(68deg) rotateZ(342deg);
    }
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
        filter: saturate(1);
    }

    50% {
        transform: scale(1.08);
        filter: saturate(1.4);
    }
}

@keyframes lightSweep {
    0%,
    36% {
        transform: translateX(-45vw) skewX(-18deg);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    74%,
    100% {
        transform: translateX(145vw) skewX(-18deg);
        opacity: 0;
    }
}

@media (max-width: 640px) {
    .landing {
        padding: 22px;
    }

    .domain {
        top: 22px;
        right: 22px;
        font-size: 0.72rem;
    }

    .moon-system {
        width: min(72vw, 285px);
    }

    .line {
        max-width: 280px;
        line-height: 1.6;
    }
}
