#download {
    scroll-margin-top: 0;
    padding-top: 1rem;
}

#download .cta-panel {
    padding: clamp(2.25rem, 5vw, 3.5rem) 1.5rem;
}

#download .cta-title {
    font-size: clamp(2.15rem, 4.6vw, 3.5rem);
}

#download .cta-copy {
    margin-bottom: 1.5rem;
}

.hero-install-choice {
    display: inline-flex;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(186, 212, 255, 0.28);
    border-radius: 999px;
    background: rgba(13, 29, 53, 0.88);
    color: #f4f9ff;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.hero-install-choice--primary {
    border-color: rgba(105, 215, 255, 0.65);
    background: linear-gradient(120deg, #168de8, #6255ef);
}

.browser-recommendation-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.19);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.hero-install-choice--backup {
    border-style: dashed;
}

.hero-install-choice:hover,
.hero-install-choice:focus-visible {
    border-color: #9deaff;
    filter: brightness(1.12);
}

.hero-install-choice:focus-visible {
    outline: 2px solid #9deaff;
    outline-offset: 4px;
}

.hero-install-choice img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
}

.download-options {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    width: min(100%, 920px);
    margin: 0 auto;
    text-align: left;
}

.download-options--cn {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(100%, 1060px);
}

.download-option {
    display: flex;
    min-width: 0;
    min-height: 110px;
    flex-direction: column;
    justify-content: center;
    gap: 0.45rem;
    padding: 1.1rem 1.25rem;
    border: 1px solid rgba(186, 212, 255, 0.23);
    border-radius: 19px;
    background: rgba(6, 18, 39, 0.72);
    color: #f4f9ff;
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.download-option--primary {
    border-color: rgba(105, 215, 255, 0.65);
    background: linear-gradient(135deg, rgba(19, 108, 194, 0.72), rgba(15, 45, 99, 0.76));
}

.download-option--backup {
    border-style: dashed;
}

.download-option:hover,
.download-option:focus-visible {
    border-color: #81e3ff;
    background-color: rgba(31, 64, 112, 0.86);
    transform: translateY(-2px);
}

.download-option:focus-visible,
.download-dialog a:focus-visible,
.download-dialog button:focus-visible {
    outline: 2px solid #9deaff;
    outline-offset: 4px;
}

.download-option strong {
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.25;
}

.download-option strong span {
    display: inline-block;
    margin-left: 0.25rem;
    color: #a9eeff;
}

.download-option > span {
    color: #b8c8dd;
    font-size: 0.86rem;
    line-height: 1.35;
}

.download-option > .browser-recommendation-badge {
    align-self: flex-start;
    color: #e7faff;
    font-size: 0.7rem;
}

.download-option > .download-option__heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #f4f9ff;
}

.download-option__heading img {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 50%;
    background: #fff;
}

.download-dialog {
    width: min(94vw, 900px);
    max-height: min(98dvh, 900px);
    padding: 0;
    border: 1px solid rgba(137, 190, 245, 0.3);
    border-radius: 24px;
    background: #0d1b32;
    color: #eef6ff;
    box-shadow: 0 30px 85px rgba(0, 0, 0, 0.58);
}

.download-dialog::backdrop {
    background: rgba(2, 7, 18, 0.76);
}

.download-dialog__panel {
    position: relative;
    padding: clamp(1.4rem, 3vw, 2rem);
}

.download-dialog__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(166, 196, 232, 0.28);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    color: #d4e2f2;
    font: inherit;
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
}

.download-dialog__eyebrow {
    margin: 0 0 0.55rem;
    color: #8cdfff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.download-dialog h2 {
    margin: 0 2rem 0.85rem 0;
    color: #ffffff;
    font-size: clamp(1.4rem, 4vw, 1.85rem);
    line-height: 1.3;
}

.download-dialog__lead {
    margin: 0;
    color: #cbd9e9;
    line-height: 1.7;
}

.download-dialog__official {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 1.1rem 0 1.5rem;
}

.download-dialog__official a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0.55rem 0.9rem;
    border: 1px solid rgba(111, 205, 245, 0.42);
    border-radius: 11px;
    color: #d5f4ff;
    font-weight: 650;
    text-decoration: none;
}

.download-dialog__official a:hover {
    background: rgba(70, 175, 225, 0.14);
}

.download-dialog__official .download-dialog__official-choice--primary {
    border-color: #69d7ff;
    background: rgba(31, 124, 206, 0.28);
}

.download-dialog__official img {
    width: 22px;
    height: 22px;
    margin-right: 0.5rem;
    border-radius: 50%;
    background: #fff;
}

.download-dialog__official span {
    margin-left: 0.4rem;
}

.download-dialog__details {
    padding-top: 1rem;
    border-top: 1px solid rgba(177, 208, 243, 0.17);
    color: #c0d0e2;
    line-height: 1.68;
}

.download-dialog__details h3 {
    margin: 0.7rem 0 0.35rem;
    color: #f0f7ff;
    font-size: 1rem;
}

.download-dialog__details p {
    margin: 0.3rem 0 1rem;
}

.download-dialog__details ol {
    margin: 0.55rem 0 1rem;
    padding-left: 1.55rem;
}

.download-dialog__details li + li {
    margin-top: 0.45rem;
}

.download-dialog__details code {
    padding: 0.05rem 0.3rem;
    border-radius: 5px;
    background: rgba(180, 220, 255, 0.12);
    color: #e6f7ff;
    font-size: 0.92em;
    overflow-wrap: anywhere;
}

.download-dialog__copy {
    margin: 0 0.2rem;
    padding: 0.2rem 0.55rem;
    border: 1px solid rgba(111, 205, 245, 0.42);
    border-radius: 7px;
    background: rgba(70, 175, 225, 0.12);
    color: #d5f4ff;
    font: inherit;
    font-size: 0.85rem;
    cursor: pointer;
}

.download-dialog__copy-status:not(:empty) {
    display: block;
    margin-top: 0.25rem;
    color: #9deaff;
    font-size: 0.85rem;
}

.download-dialog__update-note {
    color: #9cacc1;
    font-size: 0.88rem;
}

.download-dialog__download {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    margin-top: 1.2rem;
    padding: 0.65rem 1rem;
    border-radius: 12px;
    background: #6bd7f8;
    color: #082039;
    font-weight: 750;
    text-decoration: none;
}

.download-dialog__download:hover {
    background: #a0ebff;
}

@media (max-width: 760px) {
    .download-options,
    .download-options--cn {
        grid-template-columns: 1fr;
        width: min(100%, 430px);
    }

    .download-option {
        min-height: 88px;
    }
}

@media (max-width: 620px) {
    .hero-actions--install .hero-install-choice {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .download-option {
        transition: none;
    }
}
