
a,
a:visited {
	color: inherit;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
	transition: color 0.15s ease;
	cursor: pointer;
}

a:hover,
a:focus-visible {
	color: #73a7ff;
}

a:active {
	color: #73a7ff;
}

:root {
    color-scheme: dark;

    --bg: #0b0d11;
    --surface: #13161c;
    --surface-2: #191d25;
    --surface-3: #222733;

    --text: #f5f7fb;
    --text-2: #c4c9d3;
    --muted: #818895;

    --blue: #4d8dff;

    --windows: #4d8dff;
    --macos: #c7d0ff;
    --linux: #f2a33b;

    --border: rgba(255, 255, 255, 0.075);

    --page-radius: 24px;
    --item-radius: 18px;
    --icon-radius: 14px;
    --button-radius: 12px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

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

    color: var(--text);

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

    background:
        radial-gradient(
            circle at 15% 15%,
            color-mix(
                in srgb,
                var(--blue) 10%,
                transparent
            ),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            var(--bg),
            color-mix(
                in srgb,
                var(--surface-2) 40%,
                var(--bg)
            )
        );

    background-attachment: fixed;

    overflow-x: hidden;
}

body::before,
body::after {
    content: "";

    position: fixed;

    width: 600px;
    height: 600px;

    border-radius: 50%;

    pointer-events: none;

    filter: blur(140px);

    opacity: .4;

    z-index: -1;

    animation:
        ambient-drift
        16s
        ease-in-out
        infinite
        alternate;
}

body::before {
    left: -390px;
    top: 10%;

    background:
        color-mix(
            in srgb,
            var(--blue) 13%,
            transparent
        );
}

body::after {
    right: -420px;
    bottom: -300px;

    background:
        color-mix(
            in srgb,
            var(--blue) 9%,
            transparent
        );

    animation-delay: -8s;
}

@keyframes ambient-drift {
    from {
        transform:
            translate3d(-20px, -15px, 0)
            scale(1);
    }

    to {
        transform:
            translate3d(25px, 20px, 0)
            scale(1.08);
    }
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
}


/* =========================================================
   PAGE
========================================================= */

.page {
    width: min(1180px, 100%);
    min-height: 100vh;

    margin: 0 auto;

    padding:
        26px
        32px
        32px;

    display: flex;
    flex-direction: column;
}


/* =========================================================
   HEADER
========================================================= */

.topbar {
    min-height: 50px;

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

    margin-bottom: 50px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;

    color: var(--text);

    text-decoration: none;

    font-size: 17px;
    font-weight: 750;

    letter-spacing: -.02em;
}

.brand-logo {
    display: block;

    width: auto;
    height: 38px;

    max-width: 180px;

    object-fit: contain;

    transform: translateZ(0);
    backface-visibility: hidden;

    filter:
        drop-shadow(
            0 0 14px
            color-mix(
                in srgb,
                var(--blue) 30%,
                transparent
            )
        );

    transition:
        transform .25s ease,
        filter .25s ease;
}

.brand:hover .brand-logo {
    transform:
        translateZ(0)
        scale(1.035);

    filter:
        drop-shadow(
            0 0 22px
            color-mix(
                in srgb,
                var(--blue) 45%,
                transparent
            )
        );
}

.version {
    padding: 7px 11px;

    border-radius: 999px;

    color: var(--muted);

    background:
        rgba(255, 255, 255, .025);

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

    font-size: 12px;
}


/* =========================================================
   CONTENT
========================================================= */

.content {
    flex: 1;

    display: flex;
    align-items: center;
    justify-content: center;
}

.download-page {
    width: 100%;
    max-width: 950px;

    text-align: center;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    margin-bottom: 40px;
}

.hero-logo-wrapper {
    width: fit-content;
    max-width: min(420px, 80vw);

    margin:
        0
        auto
        25px;

    will-change: transform;

    animation:
        hero-float
        5s
        ease-in-out
        infinite;
}

.hero-logo {
    display: block;

    width: auto;
    height: 92px;

    max-width: min(420px, 80vw);

    object-fit: contain;

    transform: translateZ(0);
    backface-visibility: hidden;

    filter:
        drop-shadow(
            0 0 27px
            color-mix(
                in srgb,
                var(--blue) 28%,
                transparent
            )
        )
        drop-shadow(
            0 20px 45px
            rgba(0, 0, 0, .35)
        );
}

@keyframes hero-float {
    0%,
    100% {
        transform:
            translate3d(0, 0, 0);
    }

    50% {
        transform:
            translate3d(0, -4px, 0);
    }
}

.hero h1 {
    margin: 0;

    font-size:
        clamp(38px, 7vw, 66px);

    line-height: .95;

    letter-spacing: -.055em;
}

.hero p {
    max-width: 650px;

    margin:
        19px
        auto
        0;

    color: var(--text-2);

    font-size: 15px;

    line-height: 1.7;
}


/* =========================================================
   MAIN CARD
========================================================= */

.card {
    --current-glow: var(--blue);

    position: relative;

    --radius: var(--page-radius);

    padding: 36px;

    border-radius: var(--radius);

    box-shadow:
        inset 0 0 0 1px
        color-mix(
            in srgb,
            var(--current-glow) 15%,
            var(--border)
        ),

        0 0 55px
        color-mix(
            in srgb,
            var(--current-glow) 8%,
            transparent
        ),

        0 30px 100px
        rgba(0, 0, 0, .34),

        inset 0 1px
        rgba(255, 255, 255, .045);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, .035),
            rgba(255, 255, 255, .012)
        ),
        color-mix(
            in srgb,
            var(--surface) 94%,
            transparent
        );

    backdrop-filter: blur(24px);

    overflow: hidden;

    isolation: isolate;

    transition:
        box-shadow .35s ease;
}

.card[data-os="windows"] {
    --current-glow: var(--windows);
}

.card[data-os="macos"] {
    --current-glow: var(--macos);
}

.card[data-os="linux"] {
    --current-glow: var(--linux);
}

.card::before {
    content: "";

    position: absolute;

    width: 460px;
    height: 460px;

    top: -330px;
    left: 50%;

    transform:
        translateX(-50%);

    border-radius: 50%;

    background:
        color-mix(
            in srgb,
            var(--current-glow) 9%,
            transparent
        );

    filter: blur(70px);

    pointer-events: none;
}

.card::after {
    content: "";

    position: absolute;

    top: 0;
    left: 12%;

    width: 76%;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,

            color-mix(
                in srgb,
                var(--current-glow) 50%,
                white 5%
            ),

            transparent
        );

    opacity: .65;

    pointer-events: none;
}


/* =========================================================
   STEPS
========================================================= */

.step {
    display: none;

    position: relative;

    z-index: 2;

    animation:
        step-enter
        .3s
        cubic-bezier(
            .2,
            .8,
            .2,
            1
        );
}

.step.active {
    display: block;
}

@keyframes step-enter {
    from {
        opacity: 0;

        transform:
            translate3d(0, 12px, 0)
            scale(.985);
    }

    to {
        opacity: 1;

        transform:
            translate3d(0, 0, 0)
            scale(1);
    }
}

.question {
    margin: 0;

    font-size:
        clamp(22px, 3vw, 30px);

    letter-spacing: -.035em;
}

.description {
    max-width: 650px;

    margin:
        11px
        auto
        30px;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.6;
}


/* =========================================================
   OS GRID
========================================================= */

.os-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 15px;
}

.os-card {
    --os-glow: var(--blue);

    position: relative;

    min-height: 205px;

    padding: 25px;

    border: 0;

    border-radius: var(--item-radius);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, .025),
            rgba(255, 255, 255, .01)
        ),
        var(--surface-2);

    color: var(--text);

    cursor: pointer;

    text-align: left;

    overflow: hidden;

    isolation: isolate;

    box-shadow:
        inset 0 0 0 1px
        rgba(255, 255, 255, .075),

        0 7px 25px
        rgba(0, 0, 0, .14);

    transition:
        transform .22s
        cubic-bezier(
            .2,
            .8,
            .2,
            1
        ),

        box-shadow .22s ease,

        background .22s ease;
}

.os-card[data-os="windows"] {
    --os-glow: var(--windows);
}

.os-card[data-os="macos"] {
    --os-glow: var(--macos);
}

.os-card[data-os="linux"] {
    --os-glow: var(--linux);
}

.os-card::before {
    content: "";

    position: absolute;

    width: 270px;
    height: 270px;

    right: -175px;
    bottom: -175px;

    border-radius: 50%;

    background:
        color-mix(
            in srgb,
            var(--os-glow) 19%,
            transparent
        );

    filter: blur(36px);

    opacity: .45;

    pointer-events: none;

    transition:
        transform .35s ease,
        opacity .35s ease;
}

.os-card:hover {
    transform:
        translate3d(0, -7px, 0);

    box-shadow:
        inset 0 0 0 1px
        color-mix(
            in srgb,
            var(--os-glow) 40%,
            transparent
        ),

        0 0 35px
        color-mix(
            in srgb,
            var(--os-glow) 22%,
            transparent
        ),

        0 22px 45px
        rgba(0, 0, 0, .28);
}

.os-card:hover::before {
    transform: scale(1.4);

    opacity: .85;
}

.os-icon {
    position: relative;

    width: 52px;
    height: 52px;

    margin-bottom: 28px;

    display: grid;
    place-items: center;

    border-radius: var(--icon-radius);

    color: var(--os-glow);

    background:
        radial-gradient(
            circle at 50% 45%,
            color-mix(
                in srgb,
                var(--os-glow) 25%,
                transparent
            ),
            transparent 72%
        ),
        rgba(255, 255, 255, .04);

    box-shadow:
        inset 0 0 0 1px
        color-mix(
            in srgb,
            var(--os-glow) 25%,
            transparent
        ),

        0 0 24px
        color-mix(
            in srgb,
            var(--os-glow) 18%,
            transparent
        );

    font-size: 22px;

    overflow: hidden;

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.os-card:hover .os-icon {
    transform:
        scale(1.08)
        translate3d(0, -1px, 0);

    box-shadow:
        inset 0 0 0 1px
        color-mix(
            in srgb,
            var(--os-glow) 40%,
            transparent
        ),

        0 0 35px
        color-mix(
            in srgb,
            var(--os-glow) 35%,
            transparent
        );
}


/* =========================================================
   PLATFORM ICONS
========================================================= */

.os-icon svg,
.download-icon svg {
    display: block;

    width: 65%;
    height: 65%;

    overflow: visible;

    fill: currentColor;

    color: currentColor;

    filter:
        drop-shadow(
            0 0 7px
            color-mix(
                in srgb,
                currentColor 35%,
                transparent
            )
        );
}


/* Windows 11-inspired icon */
.windows-icon {
    width: 29px !important;
    height: 29px !important;
}

.windows-icon rect {
    fill: currentColor;
}


/* Single-colour bitten Apple */
.apple-icon {
    width: 31px !important;
    height: 31px !important;
}

.apple-icon path {
    fill: currentColor;
}


/* Tux */
.linux-icon {
    width: 34px !important;
    height: 34px !important;
}

.linux-icon path,
.linux-icon ellipse,
.linux-icon circle {
    fill: currentColor;
}

.os-name {
    display: block;

    font-size: 20px;
    font-weight: 750;

    letter-spacing: -.02em;
}

.os-detail {
    display: block;

    margin-top: 7px;

    color: var(--muted);

    font-size: 13px;
}


/* =========================================================
   ARCHITECTURE
========================================================= */

.arch-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 15px;
}

.arch-card {
    --os-glow: var(--blue);

    position: relative;

    min-height: 145px;

    padding: 24px;

    border: 0;

    border-radius: var(--item-radius);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, .025),
            rgba(255, 255, 255, .01)
        ),
        var(--surface-2);

    color: var(--text);

    cursor: pointer;

    text-align: left;

    overflow: hidden;

    isolation: isolate;

    box-shadow:
        inset 0 0 0 1px
        rgba(255, 255, 255, .075),

        0 7px 23px
        rgba(0, 0, 0, .13);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.arch-card::before {
    content: "";

    position: absolute;

    width: 190px;
    height: 190px;

    right: -120px;
    bottom: -120px;

    border-radius: 50%;

    background:
        color-mix(
            in srgb,
            var(--os-glow) 15%,
            transparent
        );

    filter: blur(30px);

    opacity: .4;

    pointer-events: none;

    transition:
        transform .3s ease,
        opacity .3s ease;
}

.arch-card:hover {
    transform:
        translate3d(0, -5px, 0);

    box-shadow:
        inset 0 0 0 1px
        color-mix(
            in srgb,
            var(--os-glow) 40%,
            transparent
        ),

        0 0 28px
        color-mix(
            in srgb,
            var(--os-glow) 17%,
            transparent
        ),

        0 18px 35px
        rgba(0, 0, 0, .25);
}

.arch-card:hover::before {
    transform: scale(1.45);

    opacity: .75;
}

.arch-name {
    display: block;

    font-size: 22px;
    font-weight: 750;

    letter-spacing: -.025em;
}

.arch-description {
    display: block;

    max-width: 190px;

    margin-top: 8px;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.45;
}

.recommended {
    position: absolute;

    top: 15px;
    right: 15px;

    padding:
        5px
        9px;

    border-radius: 999px;

    background:
        color-mix(
            in srgb,
            var(--os-glow) 14%,
            transparent
        );

    box-shadow:
        inset 0 0 0 1px
        color-mix(
            in srgb,
            var(--os-glow) 25%,
            transparent
        );

    color:
        color-mix(
            in srgb,
            var(--os-glow) 70%,
            white
        );

    font-size: 9px;
    font-weight: 800;

    letter-spacing: .06em;

    text-transform: uppercase;
}


/* =========================================================
   DOWNLOAD SCREEN
========================================================= */

.download-screen {
    --os-glow: var(--blue);

    padding:
        20px
        10px
        5px;
}

.download-screen.windows {
    --os-glow: var(--windows);
}

.download-screen.macos {
    --os-glow: var(--macos);
}

.download-screen.linux {
    --os-glow: var(--linux);
}

.download-icon {
    width: 90px;
    height: 90px;

    margin:
        0
        auto
        25px;

    display: grid;
    place-items: center;

    border-radius: var(--icon-radius);

    color: var(--os-glow);

    background:
        radial-gradient(
            circle at 50% 45%,
            color-mix(
                in srgb,
                var(--os-glow) 28%,
                transparent
            ),
            transparent 72%
        ),
        var(--surface-3);

    box-shadow:
        inset 0 0 0 1px
        color-mix(
            in srgb,
            var(--os-glow) 28%,
            transparent
        ),

        0 0 45px
        color-mix(
            in srgb,
            var(--os-glow) 30%,
            transparent
        ),

        0 18px 40px
        rgba(0, 0, 0, .25);

    font-size: 34px;

    animation:
        download-pulse
        2.8s
        ease-in-out
        infinite;
}

.download-status-icon {
    width: 65%;
    height: 65%;
    overflow: visible;
    fill: none;
}

.download-arrow {
    transform-origin: center;
}

.download-check {
    opacity: 0;
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
    transform-origin: center;
}

.download-icon.is-complete .download-arrow {
    animation: download-arrow-to-check 520ms cubic-bezier(.2, .8, .2, 1) both;
}

.download-icon.is-complete .download-check {
    animation: download-check-draw 650ms cubic-bezier(.2, .8, .2, 1) 260ms both;
}

@keyframes download-arrow-to-check {
    35% {
        transform: translateY(4px);
        opacity: 1;
    }

    100% {
        transform: translateY(-3px) scale(.72);
        opacity: 0;
    }
}

@keyframes download-check-draw {
    0% {
        opacity: 0;
        stroke-dashoffset: 30;
        transform: scale(.78);
    }

    1% {
        opacity: 1;
    }

    100% {
        opacity: 1;
        stroke-dashoffset: 0;
        transform: scale(1);
    }
}

@keyframes download-pulse {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.025);
    }
}

.download-screen h2 {
    margin: 0;

    font-size: 31px;

    letter-spacing: -.035em;
}

.download-screen p {
    max-width: 520px;

    margin:
        10px
        auto
        28px;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.6;
}


/* =========================================================
   DOWNLOAD BUTTON
========================================================= */

.download-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    width: min(420px, 100%);

    padding:
        16px
        27px;

    border: 0;

    border-radius: var(--button-radius);

    background:
        linear-gradient(
            135deg,
            color-mix(
                in srgb,
                var(--os-glow) 92%,
                white
            ),
            var(--os-glow)
        );

    color: white;

    cursor: pointer;

    font-size: 15px;
    font-weight: 800;

    box-shadow:
        0 0 25px
        color-mix(
            in srgb,
            var(--os-glow) 28%,
            transparent
        ),

        0 0 55px
        color-mix(
            in srgb,
            var(--os-glow) 15%,
            transparent
        ),

        0 12px 30px
        rgba(0, 0, 0, .3);

    transition:
        transform .2s ease,
        filter .2s ease,
        box-shadow .2s ease;
}

.download-button:hover {
    transform:
        translate3d(0, -4px, 0);

    filter:
        brightness(1.08)
        saturate(1.08);

    box-shadow:
        0 0 35px
        color-mix(
            in srgb,
            var(--os-glow) 45%,
            transparent
        ),

        0 0 80px
        color-mix(
            in srgb,
            var(--os-glow) 20%,
            transparent
        ),

        0 16px 38px
        rgba(0, 0, 0, .35);
}

.download-button:active {
    transform:
        translate3d(0, -1px, 0);
}

.download-screen.macos .download-button {
    background:
        linear-gradient(
            135deg,
            #e8ecff,
            #b9c7ff
        );

    color: #101217;

    box-shadow:
        0 0 28px
        rgba(189, 201, 255, .42),

        0 0 65px
        rgba(189, 201, 255, .18),

        0 12px 30px
        rgba(0, 0, 0, .3);
}

.download-screen.macos .download-button:hover {
    background:
        linear-gradient(
            135deg,
            #f1f3ff,
            #c7d2ff
        );

    color: #080a0e;
}


/* =========================================================
   PROGRESS
========================================================= */

.download-progress {
    width: min(420px, 100%);

    height: 7px;

    margin:
        25px
        auto
        0;

    overflow: hidden;

    border-radius: 999px;

    background:
        rgba(255, 255, 255, .07);

    box-shadow:
        inset 0 1px 3px
        rgba(0, 0, 0, .35);
}

.download-progress-bar {
    width: 0%;
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            var(--os-glow),
            color-mix(
                in srgb,
                var(--os-glow) 65%,
                white
            )
        );

    box-shadow:
        0 0 18px
        color-mix(
            in srgb,
            var(--os-glow) 65%,
            transparent
        );

    transition:
        width .15s ease;
}

.download-meta {
    margin-top: 15px;

    color: var(--muted);

    font-size: 12px;
}

.download-fallback {
    display: inline-block;

    margin-top: 18px;

    color: var(--text-2);

    font-size: 13px;

    text-decoration: none;
}

.download-fallback:hover {
    color: var(--text);

    text-decoration: underline;
}


/* =========================================================
   BACK
========================================================= */

.back {
    display: block;

    margin:
        28px
        auto
        0;

    padding:
        8px
        12px;

    border: 0;

    background: transparent;

    color: var(--muted);

    cursor: pointer;

    font-size: 13px;

    transition:
        color .15s ease,
        transform .15s ease;
}

.back:hover {
    color: var(--text);

    transform:
        translate3d(-3px, 0, 0);
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    margin-top: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    color: var(--muted);

    font-size: 12px;
}

.footer a {
    color: var(--text-2);

    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 760px) {

    :root {
        --page-radius: 20px;
        --item-radius: 15px;
        --icon-radius: 12px;
        --button-radius: 11px;
    }

    body::before,
    body::after {
        width: 350px;
        height: 350px;

        filter: blur(90px);
    }

    .page {
        padding:
            18px
            14px
            28px;
    }

    .topbar {
        margin-bottom: 36px;
    }

    .brand-logo {
        height: 34px;
        max-width: 150px;
    }

    .hero {
        margin-bottom: 28px;
    }

    .hero-logo-wrapper {
        margin-bottom: 21px;
    }

    .hero-logo {
        height: 70px;
        max-width: 75vw;
    }

    .hero p {
        font-size: 14px;
    }

    .card {
        padding:
            22px
            15px;
    }

    .os-grid,
    .arch-grid {
        grid-template-columns: 1fr;
    }

    .os-card {
        min-height: 135px;

        padding: 21px;
    }

    .os-icon {
        width: 45px;
        height: 45px;

        margin-bottom: 17px;
    }

    .arch-card {
        min-height: 120px;

        padding: 21px;
    }

    .download-button {
        width: 100%;
    }

    .download-screen h2 {
        font-size: 26px;
    }

    .footer {
        width: 100%;
        margin-top: 28px;
        padding: 14px 2px 0;
        justify-content: space-between;
        gap: 10px;
        border-top: 1px solid var(--border);
        font-size: 12px;
    }

    .footer-separator {
        display: none;
    }

    .footer .verUpdate {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .footer a {
        min-height: 40px;
        padding: 0 10px;
        display: inline-flex;
        flex: 0 0 auto;
        align-items: center;
        border: 1px solid var(--border);
        border-radius: 8px;
        background: var(--surface-2);
        white-space: nowrap;
    }

    .footer a:active {
        background: var(--surface-3);
    }
}

@media (max-width: 430px) {

    .topbar {
        justify-content: space-between;
        gap: 8px;
    }

    .topbar > p {
        min-width: 0;
        margin: 0;
        gap: 8px !important;
        font-size: 15px !important;
    }

    .brand-logo {
        max-width: 112px;
    }

    .version {
        flex: 0 0 auto;
        padding: 6px 8px;
        font-size: 10px;
    }

    .hero h1 {
        font-size: 37px;
    }

    .hero p {
        font-size: 13px;
    }

    .question {
        font-size: 21px;
    }

    .card {
        padding:
            19px
            12px;
    }

    .footer {
        gap: 6px;
        font-size: 11px;
    }

    .footer a {
        min-height: 38px;
        padding: 0 8px;
        font-size: 12px;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}
