*{margin:0;padding:0;box-sizing:border-box}
:root{
    --bronze-900:#312E81;--bronze-800: #1E1E24;--bronze-700:#4F46E5;--bronze-600: #312E81;--bronze-400:#A5B4FC;--bronze-100:#FDF8F3;--bronze-50:#FFFCF9;
    --gray-900: #1E1E24;--gray-800: #2A2A32;--gray-700: #3A3A44;--gray-600: #4A4A54;
    --gray-500: #6E6E78;--gray-400: #9A9AA2;--gray-300: #DDDDE2;--gray-200: #ECECEF;
    --gray-100: #F2F2F4;--gray-50: #FBFCFB;--white:#FFFFFF;
    --success:#10B981;--info:#3B82F6;
    --gradient-bronze:linear-gradient(135deg,var(--bronze-700) 0%,var(--bronze-400) 100%);
    --shadow-lg:0 10px 15px -3px rgba(0,0,0,0.1);--shadow-xl:0 20px 25px -5px rgba(0,0,0,0.1);
    --shadow-bronze:0 10px 40px -10px rgba(99,102,241,0.4);
    --radius-md:10px;--radius-lg:16px;--radius-xl:24px;--radius-full:9999px;
}
html{scroll-behavior:smooth}
[hidden]{display:none!important}
body{font-family:'DM Sans',-apple-system,sans-serif;background:var(--gray-50);color:var(--gray-900);line-height:1.6;min-height:100vh}

/* Main */
.dl-main{padding:46px 10px 4px}
.dl-container{max-width:920px;margin:0 auto}

/* Header */
.dl-header{text-align:center;margin-bottom:28px}
.page-badge{display:inline-flex;align-items:center;gap:8px;padding:8px 16px;background:var(--white);border:1px solid var(--gray-200);border-radius:var(--radius-full);font-size:13px;font-weight:600;color:var(--gray-600);margin-bottom:16px}
.page-badge svg{width:15px;height:15px;color:var(--bronze-600)}
.page-title{font-size:48px;font-weight:800;color:var(--gray-900);margin-bottom:14px;letter-spacing:-1.2px}
.page-subtitle{font-size:17px;color:var(--gray-500);max-width:560px;margin:0 auto}

.dl-message{max-width:640px;margin:20px auto 0;padding:12px 18px;background:var(--tertiary-fallback,#FFFBEB);border:1px solid #FDE68A;color:#92400E;border-radius:var(--radius-md);font-size:14px;text-align:center}

/* Detect card */
.dl-detect-card{position:relative;margin:0 auto 64px;padding:44px 48px;background:var(--white);border:1px solid var(--gray-200);border-radius:var(--radius-xl);box-shadow:var(--shadow-xl);overflow:hidden}
.dl-detect-card::before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:var(--gradient-bronze)}

.dl-detect-loading{display:flex;flex-direction:column;align-items:center;gap:16px;padding:40px 0;color:var(--gray-500);font-size:15px}
.dl-spinner{width:36px;height:36px;border-radius:50%;border:3px solid var(--gray-200);border-top-color:var(--bronze-600);animation:dlSpin 0.8s linear infinite}
@keyframes dlSpin{to{transform:rotate(360deg)}}

.dl-detect-ready{display:flex;flex-direction:column;align-items:center;text-align:center}
.dl-detect-icon{width:72px;height:72px;border-radius:var(--radius-lg);background:var(--gray-900);color:var(--white);display:flex;align-items:center;justify-content:center;margin-bottom:20px;box-shadow:var(--shadow-lg)}
.dl-detect-icon svg{width:38px;height:38px}
.dl-detect-eyebrow{font-size:13px;font-weight:600;text-transform:uppercase;letter-spacing:0.08em;color:var(--bronze-600);margin-bottom:6px}
.dl-detect-os{font-size:32px;font-weight:800;color:var(--gray-900);letter-spacing:-0.5px;margin-bottom:8px}
.dl-detect-meta{font-size:14px;color:var(--gray-500);margin-bottom:28px;font-family:var(--font-mono, 'JetBrains Mono', monospace)}

.dl-detect-actions{display:flex;flex-direction:column;align-items:center;gap:14px;width:100%;max-width:380px}
.dl-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;width:100%;padding:16px 28px;border-radius:var(--radius-md);font-size:16px;font-weight:700;cursor:pointer;transition:all 0.2s ease;border:none;text-decoration:none}
.dl-btn svg{width:20px;height:20px}
.dl-btn-primary{background:var(--gradient-bronze);color:var(--white);box-shadow:var(--shadow-bronze)}
.dl-btn-primary:hover{transform:translateY(-2px);box-shadow:0 14px 30px -8px rgba(99,102,241,0.5)}
.dl-btn-ghost{background:transparent;color:var(--gray-500);font-size:14px;font-weight:600;padding:4px;width:auto}
.dl-btn-ghost:hover{color:var(--bronze-700);text-decoration:underline}

.dl-countdown{width:100%;max-width:380px;margin-top:28px}
.dl-countdown-track{height:6px;border-radius:var(--radius-full);background:var(--gray-100);overflow:hidden;margin-bottom:12px}
.dl-countdown-fill{height:100%;width:0;border-radius:var(--radius-full);background:var(--gradient-bronze)}
.dl-countdown p{font-size:13px;color:var(--gray-500);text-align:center}
.dl-countdown strong{color:var(--gray-800)}

.dl-link-btn{background:none;border:none;padding:0;font:inherit;font-weight:700;color:var(--bronze-700);cursor:pointer;text-decoration:underline}
.dl-link-btn:hover{color:var(--bronze-900)}

.dl-started{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:24px;font-size:14px;color:var(--success)}
.dl-started svg{width:18px;height:18px}

.dl-detect-error,.dl-detect-unsupported{display:flex;flex-direction:column;align-items:center;gap:14px;padding:20px 0;text-align:center;color:var(--gray-600)}
.dl-detect-error svg{width:32px;height:32px;color:#D97706}
.dl-detect-unsupported svg{width:32px;height:32px;color:var(--bronze-600)}
.dl-detect-error p,.dl-detect-unsupported p{max-width:420px;font-size:15px}

/* macOS Gatekeeper notice */
.dl-mac-notice{max-width:920px;margin:0 auto 40px;padding:28px 32px;background:#FFFBEB;border:1px solid #FDE68A;border-radius:var(--radius-xl)}
.dl-mac-notice-head{display:flex;gap:16px;align-items:flex-start;margin-bottom:22px}
.dl-mac-notice-head>i{width:22px;height:22px;color:#B45309;flex-shrink:0;margin-top:2px}
.dl-mac-notice-head h2{font-size:18px;font-weight:800;color:var(--gray-900);margin-bottom:6px}
.dl-mac-notice-head p{font-size:14px;color:var(--gray-600);line-height:1.6}
.dl-mac-notice-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:28px}
.dl-mac-method h3{font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:0.04em;color:#B45309;margin-bottom:12px}
.dl-mac-steps{list-style:decimal;padding-left:20px;display:flex;flex-direction:column;gap:8px}
.dl-mac-steps li{font-size:14px;line-height:1.6;color:var(--gray-700)}
.dl-mac-steps strong{color:var(--gray-900)}
.dl-mac-note{margin-top:14px;font-size:12.5px;color:var(--gray-500);font-style:italic}
.dl-mac-method p{font-size:14px;color:var(--gray-600);margin-bottom:10px}
.dl-mac-code{display:flex;align-items:center;gap:8px;background:var(--gray-900);border-radius:var(--radius-md);padding:12px 14px}
.dl-mac-code code{flex:1;color:#E5E7EB;font-family:var(--font-mono, 'JetBrains Mono', monospace);font-size:12.5px;overflow-x:auto;white-space:nowrap}
.dl-mac-copy{flex-shrink:0;background:rgba(255,255,255,0.12);color:#fff;border:none;border-radius:6px;padding:6px 12px;font-size:12px;font-weight:700;cursor:pointer;transition:background 0.15s}
.dl-mac-copy:hover{background:rgba(255,255,255,0.22)}

@media(max-width:760px){
    .dl-mac-notice-grid{grid-template-columns:1fr}
}

/* All platforms grid */
.dl-all-title{font-size:22px;font-weight:800;color:var(--gray-900);margin-bottom:20px;text-align:center}
.dl-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.dl-grid:empty::after{content:"Couldn't load the download links right now — please refresh the page.";grid-column:1/-1;display:block;text-align:center;padding:32px;color:var(--gray-500);font-size:14px;border:1px dashed var(--gray-300);border-radius:var(--radius-lg)}

.dl-card{background:var(--white);border:1px solid var(--gray-200);border-radius:var(--radius-lg);padding:28px 24px;transition:0.2s ease}
.dl-card:hover{border-color:var(--bronze-300, #C4B5FD);box-shadow:var(--shadow-lg)}
.dl-card.is-detected{border-color:var(--bronze-500, #6366F1);box-shadow:0 0 0 3px rgba(99,102,241,0.12)}

.dl-card-icon{width:44px;height:44px;border-radius:var(--radius-md);background:var(--gray-900);color:var(--white);display:flex;align-items:center;justify-content:center;margin-bottom:16px}
.dl-card-icon svg{width:24px;height:24px}

.dl-card-title-row{display:flex;align-items:center;gap:8px;margin-bottom:16px}
.dl-card-title-row h3{font-size:17px;font-weight:700;color:var(--gray-900)}
.dl-card-badge{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:0.04em;color:var(--bronze-700);background:var(--bronze-100);padding:3px 9px;border-radius:var(--radius-full)}

.dl-card-archs{display:flex;flex-direction:column;gap:8px}
.dl-card-arch-btn{display:flex;align-items:center;justify-content:space-between;padding:11px 14px;border-radius:var(--radius-md);background:var(--gray-50);border:1px solid var(--gray-200);color:var(--gray-700);font-size:13.5px;font-weight:600;text-decoration:none;transition:0.15s}
.dl-card-arch-btn svg{width:15px;height:15px;color:var(--gray-400)}
.dl-card-arch-btn:hover{background:var(--gray-100);border-color:var(--gray-300);color:var(--gray-900)}
.dl-card-arch-btn.is-match{background:var(--bronze-100);border-color:var(--bronze-300,#C4B5FD);color:var(--bronze-800)}
.dl-card-arch-btn.is-match svg{color:var(--bronze-600)}

.dl-footnote{text-align:center;margin-top:28px;font-size:13.5px;color:var(--gray-500)}
.dl-footnote a{color:var(--bronze-700);text-decoration:none;font-weight:600}
.dl-footnote a:hover{text-decoration:underline}

/* Responsive */
@media(max-width:900px){
    .dl-grid{grid-template-columns:1fr}
    .dl-detect-card{padding:36px 28px}
}
@media(max-width:600px){
    .dl-main{padding:100px 20px 60px}
    .page-title{font-size:34px}
    .dl-detect-card{padding:28px 20px;margin-bottom:48px}
    .dl-detect-os{font-size:26px}
}

/* ── Nav wrapping fix for long translations ── */
#header .nav-link,
#header .nav-item > a {
  white-space: nowrap;
}
#header .nav {
  font-size: clamp(12px, 1.1vw, 15px);
  flex-wrap: nowrap;
}
#header .header-inner {
  flex-wrap: nowrap;
  align-items: center;
}
.header-actions {
  flex-shrink: 0;
  white-space: nowrap;
}
