.download-page {
    --download-bg: #f3f7f4;
    --download-card: #fff;
    --download-row: #f6f9f7;
    --download-ink: #152e21;
    --download-muted: #52675b;
    --download-border: #e0eae3;
    --download-accent: #176640;
    --download-action: #e4f3e9;
    background: var(--download-bg);
    color: var(--download-ink);
}

[data-bs-theme="dark"] .download-page {
    --download-bg: #0d1b15;
    --download-card: #15261d;
    --download-row: #192e23;
    --download-ink: #e7f6ec;
    --download-muted: #acc5b6;
    --download-border: #2a4334;
    --download-accent: #b4f0c9;
    --download-action: #244a34;
}

.download-hero {
    background:
        radial-gradient(ellipse at 80% 25%, #207a50 0%, transparent 55%),
        linear-gradient(120deg, #0d3525 15%, #125638 100%);
    color: #fff;
    overflow: hidden;
}

.download-hero-inner {
    display: grid;
    align-items: center;
    grid-template-columns: minmax(0, 1.25fr) minmax(250px, .75fr);
    min-height: 355px;
    gap: clamp(1rem, 5vw, 5rem);
    padding-block: 3rem 4.5rem;
}

.download-hero h1 {
    color: #fff;
    font-size: clamp(2.25rem, 4.65vw, 4.6rem);
    font-weight: 750;
    letter-spacing: -.065em;
    line-height: 1.1;
    margin: 0;
    text-wrap: balance;
}

[dir="rtl"] .download-hero h1 { letter-spacing: normal; line-height: 1.25; }

.download-hero p {
    color: #d6ede0;
    font-size: clamp(.98rem, 1.5vw, 1.13rem);
    line-height: 1.7;
    margin: 1.25rem 0 1.55rem;
    max-width: 36rem;
}

.download-jump { display: flex; flex-wrap: wrap; gap: .55rem; }
.download-jump a {
    background: #c3ffda14;
    border: 1px solid #b8e5cb4a;
    border-radius: 100px;
    color: #edfff5;
    font-size: .82rem;
    font-weight: 600;
    padding: .46rem .78rem;
    text-decoration: none;
    transition: background .2s ease;
}
.download-jump a:hover { background: #d0ffe135; color: #fff; }

.download-illustration {
    aspect-ratio: 1 / 1;
    display: grid;
    isolation: isolate;
    margin-inline: auto;
    max-width: 325px;
    place-items: center;
    position: relative;
    width: 100%;
}

.download-orbit { border: 1px solid #c4ffdf36; border-radius: 50%; position: absolute; }
.download-orbit-outer { inset: 2%; border-style: dashed; }
.download-orbit-inner { inset: 17%; background: radial-gradient(#9af8c51f, transparent 72%); }

.download-illustration-brand {
    background: linear-gradient(145deg, #f0fff5, #c0eed2);
    border: 1px solid #e5ffeb;
    border-radius: 26%;
    box-shadow: 0 22px 55px #062b1ad0, 0 0 52px #90f9b642;
    display: grid;
    place-items: center;
    position: relative;
    width: 37%;
    aspect-ratio: 1 / 1;
}
.download-illustration-brand img { width: 71%; height: auto; }
.download-illustration-icon {
    align-items: center;
    background: #1d683f;
    border: 1px solid #a8e5c465;
    border-radius: 26%;
    box-shadow: 0 10px 25px #082c1b80;
    display: flex;
    justify-content: center;
    width: 17%;
    aspect-ratio: 1 / 1;
    position: absolute;
}
.download-illustration-icon img { filter: invert(93%) sepia(19%) saturate(430%) hue-rotate(80deg); width: 53%; height: 53%; }
.download-illustration-mobile { top: 9%; left: 16%; transform: rotate(-9deg); }
.download-illustration-desktop { top: 17%; right: 10%; transform: rotate(10deg); }
.download-illustration-browser { bottom: 13%; left: 11%; transform: rotate(5deg); }
.download-illustration-tv { bottom: 7%; right: 16%; transform: rotate(-7deg); }

.download-catalogue { position: relative; margin-top: -1.5rem; padding-bottom: clamp(2.5rem, 6vw, 5.5rem); }
.download-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.75rem, 2vw, 1.35rem); }
.download-group {
    background: var(--download-card);
    border: 1px solid var(--download-border);
    border-radius: 1.35rem;
    box-shadow: 0 16px 45px #1633260b;
    padding: clamp(1rem, 2.5vw, 1.65rem);
    scroll-margin-top: 1.25rem;
}
.download-group h2 { color: var(--download-ink); font-size: 1.25rem; font-weight: 700; margin: 0 0 .95rem; }
.download-platforms { display: grid; gap: .55rem; list-style: none; margin: 0; padding: 0; }
.download-platform {
    align-items: center;
    background: var(--download-row);
    border: 1px solid var(--download-border);
    border-radius: .9rem;
    color: var(--download-ink);
    display: flex;
    gap: .75rem;
    min-height: 4.2rem;
    padding: .56rem .65rem;
    text-decoration: none;
    transition: border-color .2s ease, background .2s ease;
}
.download-platform-available:hover { background: var(--download-action); border-color: var(--download-accent); color: var(--download-ink); }
.download-platform-icon {
    align-items: center;
    background: #e2f1e7;
    border-radius: .65rem;
    display: flex;
    flex: 0 0 2.9rem;
    height: 2.9rem;
    justify-content: center;
}
.download-platform-icon img { display: block; object-fit: contain; }
[data-download-platform="macos"] .download-platform-icon img,
[data-download-platform="fire-tv"] .download-platform-icon img { width: 34px; }
.download-platform-info { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.download-platform-info strong, .download-platform-info small { display: block; }
.download-platform-info small { color: var(--download-muted); font-size: .78rem; }
.download-platform-action {
    align-items: center;
    background: var(--download-action);
    border-radius: .6rem;
    color: var(--download-accent);
    display: inline-flex;
    flex-shrink: 0;
    font-size: .78rem;
    font-weight: 700;
    gap: .35rem;
    padding: .45rem .58rem;
    text-align: center;
}
.download-platform-action svg { flex: 0 0 17px; }

.download-support {
    align-items: center;
    border-bottom: 1px solid var(--download-border);
    display: flex;
    flex-wrap: wrap;
    gap: .55rem 1rem;
    justify-content: space-between;
    padding: 1.4rem .35rem .9rem;
}
.download-support h2 { color: var(--download-muted); font-size: .95rem; margin: 0; font-weight: 600; }
.download-support a { color: var(--download-accent); font-size: .9rem; font-weight: 700; text-underline-offset: .2em; }
.download-page a:focus-visible { outline: 2px solid var(--download-accent); outline-offset: 3px; }
.download-hero a:focus-visible { outline-color: #bdf8d3; }

@media (max-width: 991.98px) {
    .download-platform { gap: .5rem; }
    .download-platform-action { max-width: 45%; }
}

@media (max-width: 767.98px) {
    .download-hero-inner { grid-template-columns: 1fr; gap: 0; min-height: auto; padding-block: 2.4rem 2.9rem; }
    .download-hero h1 { text-wrap: initial; }
    .download-illustration { display: none; }
    .download-groups { grid-template-columns: minmax(0, 1fr); }
}

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