:root {
    color-scheme: light dark;
    --bg: #f6f7f4;
    --panel: #ffffff;
    --panel-strong: #f0f3f7;
    --text: #192026;
    --muted: #5f6c76;
    --line: #d9dee2;
    --accent: #0b6b63;
    --accent-strong: #064d47;
    --accent-soft: #d8f1eb;
    --warm: #b65f2a;
    --shadow: 0 18px 60px rgba(18, 27, 38, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        linear-gradient(180deg, rgba(216, 241, 235, 0.65), rgba(246, 247, 244, 0) 360px),
        var(--bg);
    color: var(--text);
    font-family:
        Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
    padding: 22px 0;
}

.brand,
.site-header nav,
footer {
    display: flex;
    align-items: center;
}

.brand {
    gap: 10px;
    text-decoration: none;
    font-weight: 720;
    font-size: 18px;
}

.brand img {
    width: 34px;
    height: 34px;
}

.site-header nav {
    gap: 18px;
    color: var(--muted);
    font-size: 14px;
}

.site-header nav a,
.text-link,
footer a {
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

main {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    gap: 42px;
    align-items: center;
    min-height: min(710px, calc(100vh - 90px));
    padding: 42px 0 72px;
}

.hero-copy {
    max-width: 580px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--warm);
    font-size: 13px;
    font-weight: 760;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
p {
    overflow-wrap: anywhere;
}

h1 {
    margin: 0;
    font-size: clamp(48px, 8vw, 86px);
    line-height: 0.92;
    letter-spacing: 0;
}

h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.12;
    letter-spacing: 0;
}

.lede {
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.58;
}

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

.primary-button,
.secondary-button,
.download-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 6px;
    padding: 0 18px;
    font-weight: 720;
    text-decoration: none;
}

.primary-button {
    background: var(--accent);
    color: #ffffff;
}

.primary-button:hover,
.download-link:hover {
    background: var(--accent-strong);
}

.secondary-button {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
}

.hero-media {
    margin: 0;
    border: 1px solid rgba(25, 32, 38, 0.12);
    border-radius: 8px;
    background: #1d2229;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero-media img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    object-position: left top;
}

.downloads-section {
    padding: 54px 0 34px;
    border-top: 1px solid var(--line);
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1fr);
    gap: 22px;
    align-items: end;
    margin-bottom: 24px;
}

.section-heading .eyebrow {
    grid-column: 1 / -1;
    margin-bottom: -10px;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.download-card,
.status-panel,
.details-section > div {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.74);
}

.download-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 250px;
    padding: 20px;
}

.download-card header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.platform-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-weight: 820;
}

.download-card h3 {
    margin: 0;
    font-size: 21px;
}

.download-card p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.artifact-list {
    display: grid;
    gap: 10px;
    margin-top: auto;
}

.download-link {
    width: 100%;
    background: var(--accent);
    color: #ffffff;
}

.artifact-meta {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.status-panel {
    margin-bottom: 18px;
    padding: 18px 20px;
    color: var(--muted);
    line-height: 1.55;
}

.details-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 42px 0 70px;
}

.details-section > div {
    padding: 22px;
}

.details-section p {
    color: var(--muted);
    line-height: 1.58;
}

footer {
    justify-content: space-between;
    gap: 20px;
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
    padding: 26px 0 34px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #121619;
        --panel: #1b2024;
        --panel-strong: #20282d;
        --text: #eef3f2;
        --muted: #a8b4ba;
        --line: #303a40;
        --accent: #4fb7a6;
        --accent-strong: #7ed8ca;
        --accent-soft: #153c37;
        --warm: #e69a60;
        --shadow: 0 18px 60px rgba(0, 0, 0, 0.34);
    }

    .secondary-button,
    .download-card,
    .status-panel,
    .details-section > div {
        background: rgba(27, 32, 36, 0.84);
    }

    .primary-button,
    .download-link {
        color: #08231f;
    }
}

@media (max-width: 900px) {
    .hero,
    .section-heading,
    .details-section {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding-top: 24px;
    }

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

@media (max-width: 560px) {
    .site-header,
    footer {
        align-items: flex-start;
        flex-direction: column;
    }

    main,
    .site-header,
    footer {
        width: min(100% - 28px, 1160px);
    }

    h1 {
        font-size: 46px;
    }
}
