:root {
    color-scheme: dark;
    --background: #090909;
    --surface: #111111;
    --surface-raised: #171717;
    --text: #f7f4ec;
    --muted: #a3a098;
    --line: rgba(247, 244, 236, 0.14);
    --accent: #e6ff3f;
    --accent-ink: #101204;
    --danger: #ff573d;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--background);
    color: var(--text);
    font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 78% 12%, rgba(230, 255, 63, 0.08), transparent 23rem),
        var(--background);
}

a {
    color: inherit;
    text-underline-offset: 0.22em;
}

.page {
    min-height: 100vh;
    padding: 30px 20px 44px;
}

.shell {
    width: min(1080px, 100%);
    margin: 0 auto;
}

.topbar,
.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.topbar {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-size: 17px;
    font-weight: 780;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 21px;
    font-weight: 900;
}

.nav {
    display: flex;
    gap: 24px;
    font-size: 14px;
    font-weight: 650;
}

.nav a,
.footer a {
    color: var(--muted);
    text-decoration: none;
}

.nav a:hover,
.nav a:focus-visible,
.footer a:hover,
.footer a:focus-visible {
    color: var(--accent);
}

.hero {
    display: grid;
    min-height: 610px;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    align-items: center;
    gap: 48px;
    padding: clamp(60px, 9vw, 116px) 0;
    border-bottom: 1px solid var(--line);
}

h1,
h2,
p {
    margin-top: 0;
}

h1,
h2 {
    letter-spacing: -0.045em;
    line-height: 0.94;
}

.hero h1 {
    max-width: 650px;
    margin-bottom: 30px;
    font-size: clamp(70px, 10vw, 132px);
    font-weight: 850;
}

.lead {
    max-width: 620px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: clamp(18px, 2.2vw, 23px);
    line-height: 1.45;
}

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

.button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 22px;
    font-size: 15px;
    font-weight: 750;
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
}

.button.primary {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--accent-ink);
}

.button.secondary:hover,
.button.secondary:focus-visible {
    border-color: var(--accent);
}

.game-orbit {
    display: grid;
    place-items: center;
}

.timer-ring {
    display: grid;
    width: min(37vw, 390px);
    aspect-ratio: 1;
    place-items: center;
    border-radius: 50%;
    background: repeating-conic-gradient(
        from -2deg,
        var(--accent) 0deg 7deg,
        transparent 7deg 12deg
    );
    filter: drop-shadow(0 0 45px rgba(230, 255, 63, 0.12));
    animation: breathe 3.4s ease-in-out infinite;
}

.timer-ring::before {
    position: absolute;
    width: calc(min(37vw, 390px) - 28px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--background);
    content: "";
}

.game-button {
    z-index: 1;
    display: grid;
    width: 76%;
    aspect-ratio: 1;
    place-content: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    background: linear-gradient(145deg, #242424, #0f0f0f);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.12),
        0 28px 60px rgba(0, 0, 0, 0.55);
    text-align: center;
}

.game-button span {
    font-size: clamp(35px, 5vw, 57px);
    font-weight: 900;
    letter-spacing: -0.06em;
}

.game-button small {
    margin-top: 5px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.2em;
}

.support {
    display: grid;
    grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.45fr);
    gap: 52px;
    padding: 72px 0;
    border-bottom: 1px solid var(--line);
}

.section-number,
.feature-index {
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.support h2 {
    margin-bottom: 0;
    font-size: clamp(42px, 6vw, 72px);
}

.support-content {
    max-width: 700px;
    font-size: clamp(18px, 2.2vw, 23px);
}

.support-content p:last-child {
    margin-bottom: 0;
}

.support-content a,
.document-body a {
    color: var(--accent);
}

.muted,
.meta {
    color: var(--muted);
}

.features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid var(--line);
}

.features article {
    min-height: 310px;
    padding: 46px 34px 46px 0;
}

.features article + article {
    padding-left: 34px;
    border-left: 1px solid var(--line);
}

.features h2 {
    margin: 60px 0 18px;
    font-size: clamp(26px, 3vw, 38px);
}

.features p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 16px;
}

.document {
    display: grid;
    grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
    gap: 70px;
    padding: clamp(64px, 9vw, 110px) 0 90px;
    border-bottom: 1px solid var(--line);
}

.document-header {
    align-self: start;
    position: sticky;
    top: 32px;
}

.document h1 {
    margin: 14px 0 24px;
    font-size: clamp(58px, 8vw, 94px);
}

.meta {
    font-size: 14px;
}

.document-body {
    max-width: 680px;
}

.document-body > p:first-child {
    color: var(--text);
    font-size: clamp(20px, 2.4vw, 25px);
}

.document-body h2 {
    margin: 48px 0 15px;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.05;
}

.document-body p {
    color: var(--muted);
    font-size: 17px;
}

.footer {
    padding-top: 24px;
    color: var(--muted);
    font-size: 13px;
}

@keyframes breathe {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.015);
    }
}

@media (max-width: 760px) {
    .page {
        padding: 22px 18px 36px;
    }

    .hero {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 66px;
        padding: 68px 0 78px;
    }

    .hero h1 {
        font-size: clamp(64px, 21vw, 96px);
    }

    .game-orbit {
        order: -1;
    }

    .timer-ring {
        width: min(82vw, 340px);
    }

    .timer-ring::before {
        width: calc(min(82vw, 340px) - 26px);
    }

    .support,
    .document {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .features article {
        min-height: auto;
        padding: 38px 0;
    }

    .features article + article {
        padding-left: 0;
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .features h2 {
        margin-top: 36px;
    }

    .document-header {
        position: static;
    }
}

@media (max-width: 460px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav {
        width: 100%;
        justify-content: space-between;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
