:root {
    --bg: #08111f;
    --bg-strong: rgba(4, 9, 18, 0.9);
    --panel: rgba(8, 17, 31, 0.62);
    --panel-strong: rgba(5, 11, 20, 0.84);
    --line: rgba(169, 255, 204, 0.22);
    --line-strong: rgba(169, 255, 204, 0.45);
    --text: #f5ffe8;
    --muted: rgba(225, 241, 211, 0.78);
    --acid: #a4ff92;
    --mint: #7af7cf;
    --gold: #ffe48e;
    --gold-soft: rgba(255, 228, 142, 0.12);
    --rose: #ff9077;
    --shadow: 0 28px 90px rgba(0, 0, 0, 0.4);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background:
        radial-gradient(circle at 15% 15%, rgba(145, 255, 175, 0.1), transparent 25%),
        radial-gradient(circle at 85% 18%, rgba(255, 228, 142, 0.08), transparent 30%),
        linear-gradient(180deg, #08111f 0%, #040b14 42%, #02070d 100%);
    color: var(--text);
    font-family: "Space Grotesk", system-ui, sans-serif;
    overflow: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(2, 8, 14, 0.05), rgba(2, 8, 14, 0.4) 65%, rgba(0, 0, 0, 0.72)),
        radial-gradient(circle at center, transparent 48%, rgba(0, 0, 0, 0.45));
    z-index: 1;
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

#scene {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    display: block;
    cursor: grab;
}

#scene:active {
    cursor: grabbing;
}

.backdrop-glow {
    position: fixed;
    width: 34vw;
    height: 34vw;
    border-radius: 50%;
    filter: blur(72px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

.backdrop-glow-left {
    left: -8vw;
    top: 10vh;
    background: rgba(111, 255, 176, 0.14);
}

.backdrop-glow-right {
    right: -8vw;
    bottom: 8vh;
    background: rgba(255, 190, 106, 0.12);
}

.shell {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: grid;
    grid-template-rows: 1fr auto;
    padding: 22px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    align-items: end;
    gap: 28px;
    min-height: calc(100vh - 84px);
}

.hero-copy,
.control-rail,
.footer-bar {
    background: linear-gradient(180deg, rgba(7, 16, 28, 0.32), rgba(7, 16, 28, 0.55));
    border: 1px solid var(--line);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
}

.hero-copy {
    align-self: start;
    width: min(620px, 100%);
    padding: clamp(22px, 3vw, 36px);
    border-radius: 28px;
    animation: rise-in 720ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--mint);
    font-size: 12px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    max-width: 8ch;
    font-family: "Syne", sans-serif;
    font-size: clamp(4rem, 10vw, 7.8rem);
    line-height: 0.88;
    letter-spacing: -0.06em;
    text-wrap: balance;
}

.lede {
    max-width: 34rem;
    margin: 20px 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.18rem);
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.action {
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 14px 22px;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.action:hover,
.action:focus-visible {
    transform: translateY(-1px);
    outline: none;
}

.action-primary {
    color: #07111f;
    background: linear-gradient(135deg, var(--acid), var(--gold));
    box-shadow: 0 14px 40px rgba(169, 255, 146, 0.25);
}

.action-secondary {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-line {
    margin: 18px 0 0;
    min-height: 1.6em;
    color: var(--gold);
    font-size: 0.98rem;
}

.control-rail {
    align-self: end;
    justify-self: end;
    width: min(460px, 100%);
    padding: 24px;
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(5, 12, 22, 0.5), rgba(5, 12, 22, 0.76));
    animation: rise-in 900ms cubic-bezier(0.2, 0.8, 0.2, 1) 90ms both;
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.stat {
    padding: 14px 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-label {
    display: block;
    color: var(--muted);
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.stat-value {
    display: block;
    margin-top: 8px;
    font-family: "Syne", sans-serif;
    font-size: clamp(1.6rem, 4vw, 2.35rem);
    line-height: 1;
}

.control-group {
    margin-top: 18px;
}

.control-group label {
    display: block;
    margin-bottom: 12px;
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--mint);
}

.control-slider {
    width: 100%;
    appearance: none;
    height: 12px;
    border-radius: 999px;
    background:
        linear-gradient(90deg, rgba(255, 144, 119, 0.72), rgba(255, 228, 142, 0.8) 50%, rgba(164, 255, 146, 0.85));
    outline: none;
}

.control-slider::-webkit-slider-thumb {
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f8ffe8;
    border: 2px solid #07111f;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.control-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f8ffe8;
    border: 2px solid #07111f;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.control-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.82rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-label {
    margin: 0;
    color: var(--gold);
    font-size: 0.76rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.detail-copy {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 22px;
    background: rgba(4, 9, 18, 0.55);
}

.footer-copy {
    margin: 0;
    color: var(--muted);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-links a {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 160ms ease, color 160ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--gold);
    border-color: currentColor;
    outline: none;
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 1080px) {
    .shell {
        padding: 16px;
    }

    .hero {
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: 16px;
        min-height: auto;
        padding-top: 18px;
    }

    .hero-copy,
    .control-rail {
        width: 100%;
    }

    .footer-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    html,
    body {
        overflow-y: auto;
    }

    #scene {
        position: fixed;
        min-height: 100svh;
    }

    .shell {
        min-height: 100svh;
        padding: 14px;
    }

    .hero h1 {
        font-size: clamp(3.2rem, 18vw, 5rem);
    }

    .stat-row,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .control-meta {
        font-size: 0.78rem;
    }

    .footer-links {
        gap: 10px 14px;
    }
}
