@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600&family=Space+Mono:wght@400;700&display=swap');

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

:root {
    --void: #140d08;
    --sky-mid: #251708;
    --sky-edge: #0d0805;
    --spice: #c9711f;
    --spice-glow: #eea24f;
    --sand-light: #ecd7ab;
    --sand-muted: #a5876a;
    --dune-far: #2c1c10;
    --dune-near: #180f08;
    --moon: #f0e2c4;
}

html,
body {
    height: 100%;
    background: var(--void);
    overflow: hidden;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.scene {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(to bottom, var(--sky-edge) 0%, var(--sky-mid) 45%, #1a0f06 75%, var(--sky-edge) 100%);
}

.stars {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1.5px 1.5px at 8% 15%, var(--sand-light), transparent),
        radial-gradient(1px 1px at 18% 30%, var(--sand-light), transparent),
        radial-gradient(1.5px 1.5px at 27% 12%, var(--sand-light), transparent),
        radial-gradient(1px 1px at 36% 22%, var(--sand-light), transparent),
        radial-gradient(1.5px 1.5px at 47% 8%, var(--sand-light), transparent),
        radial-gradient(1px 1px at 58% 18%, var(--sand-light), transparent),
        radial-gradient(1.5px 1.5px at 68% 10%, var(--sand-light), transparent),
        radial-gradient(1px 1px at 76% 25%, var(--sand-light), transparent),
        radial-gradient(1.5px 1.5px at 85% 14%, var(--sand-light), transparent),
        radial-gradient(1px 1px at 93% 28%, var(--sand-light), transparent),
        radial-gradient(1px 1px at 12% 40%, var(--sand-light), transparent),
        radial-gradient(1px 1px at 62% 34%, var(--sand-light), transparent);
    opacity: 0.55;
    animation: twinkle 5s ease-in-out infinite alternate;
}

@keyframes twinkle {
    from {
        opacity: 0.35;
    }

    to {
        opacity: 0.7;
    }
}

.moon {
    position: absolute;
    top: 9%;
    left: 50%;
    transform: translateX(-50%);
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 35%, var(--moon), var(--spice) 130%);
    box-shadow: 0 0 60px 10px rgba(201, 113, 31, 0.35);
    opacity: 0.9;
}

.dunes {
    position: absolute;
    left: -5%;
    width: 110%;
    bottom: 0;
}

.dunes-far {
    height: 30%;
    background: var(--dune-far);
    clip-path: polygon(0% 60%, 12% 45%, 26% 58%, 40% 38%, 55% 55%, 70% 40%, 85% 56%, 100% 42%, 100% 100%, 0% 100%);
}

.dunes-near {
    height: 20%;
    background: var(--dune-near);
    clip-path: polygon(0% 70%, 15% 50%, 30% 68%, 48% 45%, 65% 65%, 82% 48%, 100% 62%, 100% 100%, 0% 100%);
}

.wormsign {
    position: absolute;
    bottom: 6%;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
}

.ring {
    position: absolute;
    left: 50%;
    top: 50%;
    border: 1px solid var(--spice);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    animation: ripple 4.5s ease-out infinite;
}

.r1 {
    animation-delay: 0s;
}

.r2 {
    animation-delay: 1.5s;
}

.r3 {
    animation-delay: 3s;
}

@keyframes ripple {
    0% {
        width: 10px;
        height: 10px;
        opacity: 0.6;
    }

    80% {
        width: 520px;
        height: 520px;
        opacity: 0;
    }

    100% {
        width: 520px;
        height: 520px;
        opacity: 0;
    }
}

.drift {
    position: absolute;
    height: 1px;
    width: 140px;
    background: linear-gradient(90deg, transparent, var(--sand-muted), transparent);
    opacity: 0.4;
    animation: blow linear infinite;
}

.d1 {
    top: 30%;
    animation-duration: 9s;
}

.d2 {
    top: 52%;
    animation-duration: 13s;
    animation-delay: -4s;
}

.d3 {
    top: 68%;
    animation-duration: 11s;
    animation-delay: -7s;
}

@keyframes blow {
    from {
        transform: translateX(-160px);
    }

    to {
        transform: translateX(110vw);
    }
}

.content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
}

.eyebrow {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--spice-glow);
    margin-bottom: 22px;
}

h1 {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: clamp(1.7rem, 4.5vw, 2.8rem);
    line-height: 1.35;
    color: var(--sand-light);
    max-width: 680px;
}

h1 span {
    display: block;
    color: var(--spice-glow);
}

.desc {
    margin-top: 20px;
    max-width: 460px;
    color: var(--sand-muted);
    font-size: 15px;
    line-height: 1.75;
}

.status {
    margin-top: 32px;
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.18em;
    color: var(--spice-glow);
    border: 1px solid var(--spice);
    background: rgba(201, 113, 31, 0.08);
    padding: 9px 18px;
    border-radius: 3px;
}

.endpoint {
    margin-top: 14px;
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    color: var(--sand-muted);
    letter-spacing: 0.04em;
}

@media (prefers-reduced-motion: reduce) {

    .stars,
    .ring,
    .drift {
        animation: none;
    }
}

.back {
    margin-top: 32px;
    padding: 16px 32px;
    border-radius: 32px;
    background: white;
    color: black;
    border: none;
    font-weight: bolder;
    cursor: pointer;
    transition: 0.2s;
    font-size: 16px;
}

.back:hover {
    background: black;
    color: white;
}