:root {
    color-scheme: dark;
    --background: #080704;
    --surface: #12100b;
    --surface-deep: #0b0a07;
    --gold: #e9ad22;
    --gold-soft: #d7c28d;
    --border: #71500e;
    --text: #efe7d4;
    --muted: #b7aa8c;
    --success: #42d990;
    font-family: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 0%, rgba(141, 91, 5, .18), transparent 35rem),
        linear-gradient(180deg, #080704, #050503);
}

a { color: var(--gold); }

.downloads-shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0 72px;
}

.downloads-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.downloads-header h1,
.installation h2 { margin: 5px 0 8px; font-size: clamp(2rem, 5vw, 3.4rem); }
.downloads-header p { max-width: 650px; margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.6; }
.downloads-header nav { display: flex; gap: 18px; white-space: nowrap; }
.downloads-header nav a { padding: 8px 0; text-underline-offset: 4px; }
.eyebrow { margin: 0; color: var(--gold); font-size: .78rem; font-weight: 700; letter-spacing: .18em; }

.notice { margin: 24px 0 0; padding: 14px 16px; border: 1px solid var(--border); border-radius: 8px; background: #171107; }
.notice--warning { color: #ffd77a; }

.download-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 32px;
}

.download-card,
.installation {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(24, 21, 14, .98), rgba(10, 9, 6, .98));
    box-shadow: 0 24px 70px rgba(0, 0, 0, .3);
}

.download-card { display: flex; flex-direction: column; padding: 28px; }
.download-card--premium { border-color: #bd8413; box-shadow: 0 24px 70px rgba(108, 70, 0, .17); }
.card-heading { display: flex; align-items: center; gap: 16px; }
.product-mark { display: grid; width: 54px; height: 54px; place-items: center; flex: 0 0 auto; border: 1px solid var(--border); border-radius: 10px; color: #151006; background: var(--gold); font-weight: 800; }
.product-type { margin: 0 0 4px; color: var(--gold); font-size: .75rem; font-weight: 700; letter-spacing: .12em; }
.download-card h2 { margin: 0; font-size: 1.6rem; }
.download-card > p { min-height: 78px; color: var(--muted); font-size: 1rem; line-height: 1.6; }

dl { margin: 8px 0 24px; border-top: 1px solid #392a0f; }
dl div { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid #392a0f; }
dt { color: var(--muted); }
dd { margin: 0; text-align: right; }

.button {
    display: block;
    margin-top: auto;
    padding: 14px 18px;
    border: 1px solid var(--gold);
    border-radius: 8px;
    color: #171005;
    background: var(--gold);
    font-family: inherit;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}
.button:hover,
.button:focus-visible { background: #ffd05d; outline: 2px solid #ffe5a6; outline-offset: 2px; }
.button--secondary { color: var(--gold); background: transparent; }
.button--secondary:hover,
.button--secondary:focus-visible { color: #171005; background: var(--gold); }

details { margin-top: 18px; color: var(--muted); }
summary { cursor: pointer; color: var(--gold-soft); }
details code { display: block; margin-top: 10px; padding: 10px; overflow-wrap: anywhere; border-radius: 6px; color: var(--success); background: #050503; font: .8rem/1.5 Consolas, monospace; }

.installation { display: grid; grid-template-columns: .8fr 1.2fr; gap: 42px; margin-top: 22px; padding: 30px; }
.installation h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.installation ol { margin: 0; padding-left: 22px; color: var(--muted); line-height: 1.7; }
.installation li + li { margin-top: 8px; }
.installation code { color: var(--gold-soft); }
.security-note { grid-column: 1 / -1; margin: 0; padding-top: 20px; border-top: 1px solid #392a0f; color: var(--muted); }
.security-note strong { color: var(--text); }

@media (max-width: 760px) {
    .downloads-shell { width: min(100% - 22px, 680px); padding-top: 28px; }
    .downloads-header { align-items: flex-start; flex-direction: column; }
    .download-grid { grid-template-columns: 1fr; }
    .download-card > p { min-height: 0; }
    .installation { grid-template-columns: 1fr; gap: 14px; }
    .security-note { grid-column: auto; }
}
