.download-page {
    --download-bg: #0b1627;
    --download-surface: #111f34;
    --download-ink: #f5f8fc;
    --download-muted: #a9bad0;
    color: var(--download-ink);
    background: var(--download-bg);
}

.download-page__hero {
    position: relative;
    height: max(0px, calc(100svh - var(--site-header-height, 5.25rem)));
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 38%, rgba(59, 135, 229, .21), transparent 31rem),
        linear-gradient(145deg, #0a1423 0%, #0d1c30 58%, #122844 100%);
}

.download-page__hero::before {
    position: absolute;
    inset: 0;
    content: "";
    opacity: .28;
    background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 3.5rem 3.5rem;
    mask-image: linear-gradient(to bottom, #000, transparent 84%);
    pointer-events: none;
}

.download-page__hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(25rem, 1.1fr);
    gap: clamp(1rem, 4vw, 5rem);
    align-items: center;
    height: 100%;
    padding-block: clamp(1.5rem, 4vh, 3rem);
}

.download-page__copy { max-width: 38rem; }

.download-page__versions-heading p {
    margin: 0 0 1.2rem;
    color: #7ebcff;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .16em;
}

.download-page h1 {
    max-width: 18ch;
    margin: 0;
    font-size: clamp(2.2rem, 3.25vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -.04em;
}

.download-page__lede {
    max-width: 37rem;
    margin: 1.7rem 0 0;
    color: var(--download-muted);
    font-size: clamp(1rem, 1.5vw, 1.17rem);
    line-height: 1.7;
}

.download-page__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 2.2rem;
}

.download-page__primary {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    min-height: 3.75rem;
    padding: .85rem 1rem .85rem 1.15rem;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: .8rem;
    color: #fff;
    background: #1474dc;
    box-shadow: 0 .8rem 2.2rem rgba(0, 85, 184, .28);
    font-size: 1rem;
    font-weight: 790;
    text-decoration: none;
    transition: transform .2s var(--ease), background .2s, box-shadow .2s;
}

.download-page__primary:hover {
    background: #2588ed;
    box-shadow: 0 1rem 2.6rem rgba(0, 85, 184, .36);
    transform: translateY(-.14rem);
}

.download-page__windows-icon {
    display: grid;
    width: 1.65rem;
    height: 1.65rem;
    place-items: center;
}

.download-page__windows-icon[hidden] { display: none; }
.download-page__windows-icon svg, .download-page__system-icon svg { width: 100%; height: 100%; fill: currentColor; }
.download-page__primary-arrow { margin-left: .35rem; font-size: 1.15rem; }

.download-page__other {
    display: inline-flex;
    gap: .45rem;
    align-items: center;
    margin-left: .25rem;
    color: #b8c8da;
    font-size: .83rem;
    font-weight: 650;
    text-decoration-color: rgba(184, 200, 218, .5);
    text-underline-offset: .25rem;
}

.download-page__other:hover { color: #fff; text-decoration-color: currentColor; }

.download-page__illustration {
    position: relative;
    width: min(100%, 48rem);
    margin: 0;
    justify-self: end;
    filter: drop-shadow(0 2rem 2.4rem rgba(0, 0, 0, .22));
}

.download-page__illustration::after {
    position: absolute;
    right: 9%;
    bottom: 12%;
    left: 9%;
    height: 9%;
    border-radius: 50%;
    content: "";
    background: rgba(0, 0, 0, .22);
    filter: blur(1.5rem);
    transform: perspective(12rem) rotateX(68deg);
    z-index: -1;
}

.download-page__illustration picture, .download-page__illustration img { width: 100%; }

.download-page__versions {
    scroll-margin-top: calc(var(--site-header-height, 5.25rem) + 1rem);
    padding-block: clamp(5rem, 9vw, 8rem);
    border-top: 1px solid rgba(255, 255, 255, .08);
    background: var(--download-surface);
}

.download-page__versions-heading {
    display: grid;
    grid-template-columns: 12rem 1fr;
    gap: 1.25rem;
    align-items: end;
    margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.download-page__versions-heading p { margin: 0 0 .35rem; }

.download-page__versions h2 {
    max-width: 17ch;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.25rem, 4.5vw, 4rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -.045em;
}

.download-page__list { margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .2); list-style: none; }

.download-page__list li {
    display: grid;
    grid-template-columns: minmax(12rem, .8fr) minmax(15rem, 1fr) auto;
    gap: 1.5rem;
    align-items: center;
    min-height: 6.3rem;
    padding-block: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.download-page__system { display: flex; gap: .9rem; align-items: center; }
.download-page__system strong { font-size: 1rem; font-weight: 720; }

.download-page__system-icon {
    display: grid;
    flex: 0 0 auto;
    width: 1.35rem;
    height: 1.35rem;
    place-items: center;
    color: #8fc5ff;
    font: 700 1.45rem/1 system-ui, sans-serif;
}

.download-page__system-icon--web { border: 1px solid currentColor; border-radius: 50%; font-size: .8rem; }
.download-page__details { color: var(--download-muted); font-size: .9rem; line-height: 1.5; }

.download-page__list a {
    display: inline-flex;
    gap: .55rem;
    align-items: center;
    justify-self: end;
    color: #fff;
    font-size: .86rem;
    font-weight: 720;
    text-decoration-color: rgba(255, 255, 255, .5);
    text-underline-offset: .28rem;
}

.download-page__list a:hover { color: #8fc5ff; text-decoration-color: currentColor; }
.download-page__unavailable { justify-self: end; color: #8193a9; font-size: .8rem; }

@media (max-width: 62rem) {
    .download-page__hero-inner { grid-template-columns: minmax(0, 1fr) minmax(19rem, .85fr); }
}

@media (max-width: 48rem) {
    .download-page__hero-inner { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); gap: .75rem; padding-block: clamp(1.25rem, 4vh, 2.25rem); }
    .download-page__copy { max-width: none; }
    .download-page__illustration { width: min(100%, 34rem); height: 100%; justify-self: center; }
    .download-page__illustration picture, .download-page__illustration img { height: 100%; object-fit: contain; }
    .download-page__versions-heading { grid-template-columns: 1fr; gap: .8rem; }
    .download-page__list li { grid-template-columns: 1fr auto; gap: .5rem 1rem; }
    .download-page__details { grid-column: 1; }
    .download-page__list :is(a, .download-page__unavailable) { grid-column: 2; grid-row: 1 / span 2; }
}

@media (max-width: 32rem) {
    .download-page h1 { font-size: clamp(2rem, 10vw, 2.75rem); }
    .download-page__primary { width: 100%; justify-content: center; }
    .download-page__list li { grid-template-columns: 1fr; gap: .65rem; align-items: start; padding-block: 1.4rem; }
    .download-page__details, .download-page__list :is(a, .download-page__unavailable) { grid-column: 1; grid-row: auto; justify-self: start; }
}

@media (prefers-contrast: more) {
    .download-page__list, .download-page__list li { border-color: rgba(255, 255, 255, .5); }
    .download-page__details, .download-page__other { color: #d9e4f1; }
}
