:root {
    color-scheme: dark;

    --background: #090b0e;
    --surface: #111418;
    --surface-hover: #171b20;

    --border: #252a31;
    --border-light: #303740;

    --text: #f4f6f8;
    --muted: #8e98a5;

    --accent: #67d391;
    --accent-hover: #7ee3a3;

    --blue: #79b8ff;

    --radius: 16px;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--background);
}

body {
    margin: 0;
    min-height: 100vh;

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--text);

    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(70, 120, 110, 0.15),
            transparent 35%
        ),
        var(--background);
}

a {
    color: inherit;
}

.container {
    width: min(900px, calc(100% - 40px));
    margin: 0 auto;
    padding: 65px 0 40px;
}


/* Header */

.header {
    display: flex;
    align-items: center;
    gap: 18px;

    margin-bottom: 60px;
}

.logo {
    width: 54px;
    height: 54px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border-radius: 14px;

    font-size: 18px;
    font-weight: 700;

    color: #07120b;
    background: var(--accent);
}

.header h1 {
    margin: 0;

    font-size: 21px;
    letter-spacing: -0.02em;
}

.subtitle {
    margin: 4px 0 0;

    color: var(--muted);
    font-size: 14px;
}


/* Hero */

.hero {
    padding: 50px;

    text-align: center;

    border: 1px solid var(--border);
    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.025),
            transparent
        ),
        var(--surface);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 7px 12px;
    margin-bottom: 18px;

    border: 1px solid var(--border-light);
    border-radius: 999px;

    color: var(--muted);
    font-size: 13px;
}

.status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--accent);

    box-shadow:
        0 0 10px rgba(103, 211, 145, 0.6);
}

.hero h2 {
    margin: 0;

    font-size: clamp(40px, 7vw, 62px);
    letter-spacing: -0.05em;
}

.release-info {
    margin: 8px 0 28px;

    color: var(--muted);
}


/* Download */

.download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;

    min-width: 290px;

    padding: 15px 24px;

    border-radius: 12px;

    color: #07130b;
    background: var(--accent);

    text-decoration: none;

    transition:
        background 0.15s ease,
        transform 0.15s ease;
}

.download-button:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.download-button.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.download-button strong,
.download-button small {
    display: block;
}

.download-button strong {
    font-size: 15px;
}

.download-button small {
    margin-top: 2px;

    font-size: 12px;
    opacity: 0.7;
}

.download-icon {
    font-size: 26px;
    line-height: 1;
}

.requirements {
    margin: 17px 0 0;

    color: var(--muted);
    font-size: 12px;
}


/* Sections */

.release-notes,
.history {
    margin-top: 28px;
    padding: 30px;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: var(--surface);
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    margin-bottom: 23px;
}

.section-title h2 {
    margin: 0;

    font-size: 18px;
}

.section-title p {
    margin: 5px 0 0;

    color: var(--muted);
    font-size: 13px;
}

#notes-version {
    color: var(--muted);
    font-size: 13px;
}


/* Release notes */

.notes {
    color: #c5cbd3;

    font-size: 14px;
    line-height: 1.75;
}

.notes h3 {
    margin: 25px 0 8px;

    color: var(--text);
    font-size: 15px;
}

.notes h3:first-child {
    margin-top: 0;
}

.notes ul {
    margin: 8px 0;
    padding-left: 22px;
}

.notes li {
    margin: 5px 0;
}


/* Versions */

.versions-list {
    display: flex;
    flex-direction: column;
}

.version {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 18px 0;

    border-top: 1px solid var(--border);
}

.version:first-child {
    border-top: 0;
}

.version-main {
    min-width: 0;
}

.version-number {
    font-weight: 600;
}

.version-meta {
    margin-top: 5px;

    color: var(--muted);
    font-size: 12px;
}

.version-download {
    flex-shrink: 0;

    padding: 8px 13px;

    border: 1px solid var(--border-light);
    border-radius: 8px;

    color: #d8dde4;

    font-size: 13px;
    text-decoration: none;

    transition:
        background 0.15s ease,
        border-color 0.15s ease;
}

.version-download:hover {
    background: var(--surface-hover);
    border-color: #49515c;
}

.empty,
.loading,
.error {
    padding: 15px 0;

    color: var(--muted);
    font-size: 14px;
}


/* Footer */

footer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;

    padding-top: 35px;

    color: #626c77;
    font-size: 12px;
}

footer a {
    color: #77828e;
    text-decoration: none;
}

footer a:hover {
    color: var(--text);
}

.separator {
    opacity: 0.5;
}


/* Mobile */

@media (max-width: 600px) {

    .container {
        width: min(100% - 24px, 900px);
        padding-top: 30px;
    }

    .header {
        margin-bottom: 30px;
    }

    .hero {
        padding: 38px 20px;
    }

    .release-notes,
    .history {
        padding: 22px;
    }

    .download-button {
        width: 100%;
        min-width: 0;
    }

    .version {
        align-items: flex-start;
    }
}