@font-face {
    font-family: 'SF Arabic';
    src: url('fonts/sf-arabic-regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'SF Arabic';
    src: url('fonts/sf-arabic-medium.ttf') format('truetype');
    font-weight: 500 600;
    font-display: swap;
}
@font-face {
    font-family: 'SF Arabic';
    src: url('fonts/sf-arabic-heavy.ttf') format('truetype');
    font-weight: 700 900;
    font-display: swap;
}
:root {
    color-scheme: dark;
    font-family: 'SF Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-synthesis: none;
    --text: #f5f5f7;
    --secondary: #a4a4ac;
    --muted: #82828b;
    --line: rgba(255, 255, 255, .085);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; background: #090a0c; }
html[dir='rtl'] { direction: rtl; }
html[dir='ltr'] { direction: ltr; }
body {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 48px 28px 30px;
    color: var(--text);
    background: radial-gradient(ellipse at 50% 0, #26272c 0, #121316 48%, #090a0c 85%);
    font-size: 14px;
    line-height: 1.6;
    text-align: start;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid #e0e0e5; outline-offset: 5px; }
::selection { background: #ffffff38; color: #fff; }
h1, h2, h3, p { margin: 0; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.filled-icon { fill: currentColor; stroke: none; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.skip-link { position: fixed; inset-block-start: -80px; inset-inline-start: 24px; z-index: 10; padding: 10px 20px; background: #36363c; border: 1px solid #ffffff38; border-radius: 20px; }
.skip-link:focus { inset-block-start: 12px; }
.glass-backdrop { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.glass-orbit {
    position: absolute;
    border: 1px solid #ffffff0c;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffffff03, transparent 35%, #ffffff04 65%, #ffffff01);
    box-shadow: inset 1px 1px 2px #ffffff0a, 12px 25px 75px #00000030;
}
.orbit-back { width: 1100px; height: 640px; top: -440px; left: -340px; transform: rotate(-35deg); filter: blur(1px); }
.orbit-front { width: 900px; height: 620px; bottom: -370px; right: -510px; transform: rotate(-35deg); filter: blur(2px); }
.page-shell { position: relative; width: 100%; max-width: 960px; margin: auto; view-transition-name: download-screen; }
.page-shell.is-device-view { max-width: 620px; }
.download-app {
    position: relative;
    padding: 34px;
    border: 1px solid #ffffff19;
    border-top-color: #ffffff2d;
    border-radius: 32px;
    background: linear-gradient(125deg, #ffffff06, transparent 35%, #ffffff02 100%), rgba(28, 29, 33, .66);
    box-shadow: 0 35px 100px #00000058, 0 6px 20px #00000025, inset 0 1px 0 #ffffff0a, inset 0 -1px 0 #ffffff03;
    backdrop-filter: blur(42px) saturate(115%);
    -webkit-backdrop-filter: blur(42px) saturate(115%);
}
.app-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.app-brand { display: flex; align-items: center; gap: 15px; min-width: 0; }
.app-icon { width: 58px; height: 58px; flex-shrink: 0; }
.app-brand h1 { font-size: 29px; font-weight: 600; line-height: 1.25; letter-spacing: -.8px; }
.app-brand p { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 11px; line-height: 1.5; color: var(--secondary); margin-top: 5px; }
.meta-dot { color: #ffffff40; }
.language-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 13px;
    min-height: 37px;
    background: linear-gradient(180deg, #ffffff0c, #ffffff04);
    border: 1px solid #ffffff14;
    border-top-color: #ffffff25;
    border-radius: 30px;
    box-shadow: inset 0 1px 0 #ffffff04, 0 2px 5px #00000012;
    color: #d8d8dd;
    font-size: 11px;
    transition: background .18s, border-color .18s;
    flex-shrink: 0;
}
.language-button svg { width: 15px; height: 15px; opacity: .8; }
.language-button:hover { background: #ffffff12; border-color: #ffffff2c; }
.app-intro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); padding-top: 26px; margin-top: 27px; margin-bottom: 26px; }
.intro-copy { min-width: 0; }
.app-intro h2 { font-size: 23px; line-height: 1.45; font-weight: 500; letter-spacing: -.35px; }
.app-intro p { font-size: 12px; color: var(--secondary); margin-top: 5px; }
.version-filter { position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid #ffffff10; border-radius: 22px; background: #00000020; flex-shrink: 0; }
.version-filter-indicator { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 0; width: var(--filter-width, 0px); transform: translateX(var(--filter-offset, 0px)); border: 1px solid #ffffff1b; border-top-color: #ffffff2b; border-radius: 18px; background: linear-gradient(180deg, #ffffff15, #ffffff09); box-shadow: inset 0 1px 0 #ffffff05, 0 2px 5px #00000015; opacity: 0; pointer-events: none; transition: transform .34s cubic-bezier(.22, 1, .36, 1), width .34s cubic-bezier(.22, 1, .36, 1); view-transition-name: version-switch; }
.version-filter button { position: relative; z-index: 1; border: 1px solid transparent; border-radius: 18px; background: transparent; color: var(--muted); padding: 6px 14px; min-height: 33px; font-size: 11px; white-space: nowrap; transition: background .18s, color .18s, border-color .18s; }
.version-filter button[aria-pressed='true'] { color: var(--text); background: linear-gradient(180deg, #ffffff15, #ffffff09); border-color: #ffffff1b; border-top-color: #ffffff2b; box-shadow: inset 0 1px 0 #ffffff05, 0 2px 5px #00000015; }
.version-filter[data-slider-ready] .version-filter-indicator { opacity: 1; }
.version-filter[data-slider-ready] button[aria-pressed='true'] { background: transparent; border-color: transparent; box-shadow: none; }
.version-filter button:not(:disabled):hover { color: var(--text); background-color: #ffffff08; }
.version-filter button:disabled { opacity: .45; }
.download-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.is-device-view .download-groups { grid-template-columns: minmax(0, 1fr); }
.group-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 4px; margin-bottom: 11px; }
.group-heading h2 { font-size: 12px; font-weight: 500; color: #d6d6dc; }
.group-heading > span { color: var(--muted); font-size: 10px; }
.platform-list {
    border: 1px solid #ffffff0d;
    border-top-color: #ffffff13;
    border-radius: 22px;
    background: linear-gradient(135deg, #ffffff03, #ffffff00 65%), #0b0c0e35;
    box-shadow: inset 0 1px 2px #0000000c, 0 1px 0 #ffffff03;
    overflow: hidden;
}
.platform-row { padding: 20px 18px 15px; }
.platform-row:not([hidden]) ~ .platform-row:not([hidden]) { border-top: 1px solid var(--line); }
.platform-main { display: grid; grid-template-columns: 43px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.platform-icon {
    width: 43px;
    height: 45px;
    display: grid;
    place-items: center;
    color: #eeeef2;
    background: linear-gradient(145deg, #ffffff0a, #ffffff02);
    border: 1px solid #ffffff0c;
    border-top-color: #ffffff14;
    border-radius: 13px;
    box-shadow: inset 0 1px 0 #ffffff04;
}
.platform-icon svg { width: 24px; height: 24px; }
[data-platform='windows'] .platform-icon svg { width: 20px; height: 20px; }
[data-platform='android'] .platform-icon svg { width: 27px; height: 27px; }
.platform-info { min-width: 0; }
.platform-info h3 { font-size: 17px; line-height: 1.4; font-weight: 500; letter-spacing: -.3px; text-align: start; }
.platform-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 10px; color: var(--secondary); line-height: 1.6; margin-top: 3px; }
.platform-meta > :first-child { font-size: 9px; letter-spacing: .3px; }
.download-button {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 14px;
    border: 1px solid #ffffff1c;
    border-top-color: #ffffff38;
    border-radius: 25px;
    background: linear-gradient(180deg, #ffffff19 0, #ffffff0c 100%);
    box-shadow: inset 0 1px 0 #ffffff0b, 0 3px 7px #00000015;
    color: #f8f8fa;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    transition: background .18s, border-color .18s, box-shadow .18s;
}
.download-button svg { width: 13px; height: 13px; }
.download-button:hover { background: linear-gradient(180deg, #ffffff27, #ffffff16); border-color: #ffffff38; box-shadow: inset 0 1px 0 #ffffff0b, 0 3px 10px #00000025; }
.download-button:active { background: #ffffff10; box-shadow: inset 0 1px 5px #00000020; }
.download-button.is-unavailable { min-width: 81px; color: var(--muted); background: #ffffff03; border-color: #ffffff08; box-shadow: none; }
.platform-details { margin-inline-start: 53px; margin-top: 9px; direction: inherit; text-align: start; }
.platform-details summary { display: inline-flex; align-items: center; gap: 4px; list-style: none; font-size: 10px; color: var(--muted); cursor: pointer; min-height: 27px; padding: 2px 0; transition: color .25s; }
.platform-details summary::-webkit-details-marker { display: none; }
.platform-details summary::marker { content: ''; }
.platform-details summary svg { width: 12px; height: 12px; transition: transform .32s cubic-bezier(.22, 1, .36, 1); }
.platform-details summary:hover { color: #d1d1d8; }
.platform-details[data-expanded='true'] summary, .platform-details:not([data-expanded])[open] summary { color: #d1d1d8; }
.platform-details[data-expanded='true'] summary svg, .platform-details:not([data-expanded])[open] summary svg { transform: rotate(180deg); }
.requirements-content { color: var(--secondary); font-size: 11px; line-height: 1.85; margin: 5px 0 3px; padding: 9px 11px; border: 1px solid #ffffff09; border-radius: 10px; background: linear-gradient(135deg, #ffffff04, #ffffff01); overflow-wrap: anywhere; direction: inherit; text-align: start; }
.requirements-content > p { direction: inherit; text-align: start; unicode-bidi: normal; }
.package-type { margin-top: 5px; color: var(--muted); font-size: 10px; }
.connection-notes { display: grid; gap: 7px; padding: 20px 3px 0; }
.connection-note { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); }
.connection-note > svg { width: 14px; height: 14px; margin-top: 3px; }
.connection-note p { font-size: 11px; line-height: 1.9; }
.page-footer { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 9px; padding: 24px 7px 0; text-align: center; }
.footer-logo { display: block; width: 42px; height: 43px; object-fit: contain; opacity: .85; }
.powered-by { color: #8e8e97; font-size: 10px; line-height: 1.6; letter-spacing: .3px; }
.powered-by span { color: #c5c5cc; font-weight: 500; }
/* Error screens use the same compact glass window. */
.error-shell { max-width: 600px; }
.error-shell .download-app { padding: 29px 32px 36px; }
.error-shell .app-brand { gap: 11px; }
.error-shell .app-icon { width: 42px; height: 42px; }
.error-shell .brand-name { display: block; font-size: 23px; font-weight: 600; line-height: 1.25; letter-spacing: -.6px; }
.error-shell .app-brand p { font-size: 10px; margin-top: 3px; }
.error-content { text-align: center; padding: 35px 0 0; margin-top: 25px; border-top: 1px solid var(--line); }
.error-symbol { width: 60px; height: 60px; display: grid; place-items: center; margin: 0 auto 18px; border: 1px solid #ffffff1a; border-top-color: #ffffff30; background: linear-gradient(145deg, #ffffff13, #ffffff04); border-radius: 20px; box-shadow: inset 0 1px 0 #ffffff08, 0 5px 20px #00000020; }
.error-symbol svg { width: 25px; height: 25px; color: #d0d0d8; }
.error-code { font-size: 12px; color: var(--muted); letter-spacing: 2px; margin-bottom: 8px; }
.error-content h1 { font-size: 26px; font-weight: 500; line-height: 1.5; letter-spacing: -.4px; }
.error-description { max-width: 355px; margin: 12px auto 25px; font-size: 12px; line-height: 1.95; color: var(--secondary); }
.error-actions { display: flex; align-items: center; justify-content: center; gap: 10px; }
.error-actions .download-button { min-height: 41px; padding-inline: 19px; font-size: 12px; }
.error-actions .button-secondary { background: #ffffff04; border-color: #ffffff12; color: var(--secondary); box-shadow: none; }
.error-actions .button-secondary:hover { background: #ffffff0b; color: var(--text); }
[dir='ltr'] .platform-info h3 { font-size: 16px; }
[dir='ltr'] .platform-main { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 9px; }
[dir='ltr'] .platform-icon { width: 40px; }
[dir='ltr'] .download-button { padding-inline: 12px; font-size: 10px; }
[dir='ltr'] .platform-details { margin-inline-start: 49px; }
@media (min-width: 1500px) {
    .page-shell { max-width: 1000px; }
    .download-app { padding: 38px; }
    .platform-row { padding-inline: 22px; }
}
@media (max-width: 800px) {
    body { padding: 36px 24px 26px; }
    .page-shell { max-width: 550px; }
    .page-shell.is-device-view { max-width: 550px; }
    .download-app { padding: 30px; }
    .download-groups { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .platform-row { padding: 19px 20px 14px; }
    .platform-main { grid-template-columns: 45px minmax(0, 1fr) auto; gap: 12px; }
    .platform-icon { width: 45px; height: 46px; }
    .platform-details { margin-inline-start: 57px; }
    .platform-info h3 { font-size: 18px; }
    .platform-meta { font-size: 11px; }
    .platform-meta > :first-child { font-size: 10px; }
    .download-button { min-height: 37px; padding-inline: 15px; }
    .connection-notes { padding-top: 21px; }
    .group-heading h2 { font-size: 13px; }
    [dir='ltr'] .platform-main { grid-template-columns: 45px minmax(0, 1fr) auto; gap: 12px; }
    [dir='ltr'] .platform-icon { width: 45px; }
    [dir='ltr'] .platform-details { margin-inline-start: 57px; }
    [dir='ltr'] .platform-info h3 { font-size: 17px; }
    .error-shell { max-width: 550px; }
}
@media (max-width: 480px) {
    body { padding: 24px 14px max(22px, env(safe-area-inset-bottom)); align-items: flex-start; }
    .page-shell { margin-block: auto; }
    .download-app { padding: 24px 18px 20px; border-radius: 29px; }
    .app-brand { gap: 11px; }
    .app-icon { width: 48px; height: 48px; }
    .app-brand h1 { font-size: 24px; letter-spacing: -.7px; }
    .app-brand p { gap: 6px; font-size: 9px; margin-top: 5px; }
    .language-button { padding: 7px 10px; gap: 5px; font-size: 10px; min-height: 33px; }
    .language-button svg { width: 13px; height: 13px; }
    .app-header { gap: 8px; }
    .app-intro { margin-top: 23px; padding-top: 21px; margin-bottom: 23px; }
    .app-intro h2 { font-size: 22px; }
    .app-intro p { font-size: 11px; margin-top: 4px; }
    .download-groups { gap: 22px; }
    .group-heading { padding-inline: 3px; margin-bottom: 10px; }
    .group-heading h2 { font-size: 12px; }
    .group-heading > span { font-size: 9px; }
    .platform-list { border-radius: 20px; }
    .platform-row { padding: 17px 14px 12px; }
    .platform-main { grid-template-columns: 39px minmax(0, 1fr) auto; gap: 9px; }
    .platform-icon { width: 39px; height: 42px; border-radius: 12px; }
    .platform-icon svg { width: 23px; height: 23px; }
    .platform-info h3 { font-size: 16px; letter-spacing: -.35px; }
    .platform-meta { gap: 5px; font-size: 9px; margin-top: 4px; }
    .platform-meta > :first-child { font-size: 9px; }
    .download-button { min-height: 34px; padding: 6px 11px; gap: 5px; font-size: 10px; }
    .download-button svg { width: 12px; height: 12px; }
    .download-button.is-unavailable { min-width: 68px; }
    .platform-details { margin-inline-start: 48px; margin-top: 5px; }
    .platform-details summary { font-size: 9px; min-height: 25px; }
    .requirements-content { font-size: 10px; }
    .package-type { font-size: 9px; }
    .connection-notes { padding-inline: 2px; padding-top: 18px; gap: 6px; }
    .connection-note { gap: 7px; }
    .connection-note p { font-size: 10px; line-height: 1.9; }
    .connection-note > svg { width: 13px; height: 13px; margin-top: 3px; }
    .page-footer { padding-top: 21px; gap: 8px; }
    .footer-logo { width: 36px; height: 37px; }
    .powered-by { font-size: 9px; }
    .orbit-front { opacity: .5; }
    [dir='ltr'] .platform-main { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 8px; }
    [dir='ltr'] .platform-icon { width: 36px; }
    [dir='ltr'] .platform-info h3 { font-size: 14px; }
    [dir='ltr'] .platform-meta { font-size: 9px; gap: 4px; }
    [dir='ltr'] .download-button { font-size: 9px; padding-inline: 10px; }
    [dir='ltr'] .platform-details { margin-inline-start: 44px; }
    .error-shell .download-app { padding: 24px 21px 29px; }
    .error-shell .brand-name { font-size: 22px; }
    .error-shell .app-brand p { font-size: 9px; }
    .error-content { margin-top: 23px; padding-top: 30px; }
    .error-content h1 { font-size: 24px; }
    .error-description { font-size: 11px; }
    .error-actions .download-button { font-size: 11px; padding-inline: 16px; }
}
@media (max-width: 359px) {
    body { padding-inline: 10px; }
    .download-app { padding-inline: 14px; }
    .app-brand { gap: 9px; }
    .app-brand h1 { font-size: 22px; }
    .app-icon { width: 43px; height: 43px; }
    .language-button { font-size: 9px; padding-inline: 8px; }
    .language-button svg { display: none; }
    .platform-row { padding-inline: 12px; }
    .platform-info h3 { font-size: 15px; }
    .platform-main { grid-template-columns: 35px minmax(0, 1fr) auto; gap: 8px; }
    .platform-icon { width: 35px; height: 39px; }
    .platform-details { margin-inline-start: 43px; }
    .platform-meta { font-size: 8px; gap: 4px; }
    [dir='ltr'] .platform-info h3 { font-size: 13px; }
    [dir='ltr'] .platform-meta { font-size: 8px; }
    [dir='ltr'] .download-button { font-size: 8px; padding-inline: 8px; }
}
@media (prefers-reduced-transparency: reduce) {
    .download-app { background: #1c1d21; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}
::view-transition-group(download-screen), ::view-transition-group(version-switch) { animation-duration: .34s; animation-timing-function: cubic-bezier(.22, 1, .36, 1); }
::view-transition-old(download-screen) { animation: version-fade-out .14s ease-out both; }
::view-transition-new(download-screen) { animation: version-fade-in .3s ease-out both; }
@keyframes version-fade-out { to { opacity: 0; } }
@keyframes version-fade-in { from { opacity: 0; } }
