/* Download page (/telecharger, /download): static, served by the Cloudflare
   bundle so it stays reachable while the origin is down. */
:root {
    --bg: #08080a;
    --surface: #121216;
    --surface-2: #17171c;
    --border: #222228;
    --text: #f4f4f6;
    --muted: #8c8893;
    --accent: #ff3347;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.dl-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 960px;
    margin: 0 auto;
    padding: 22px 20px;
}

.dl-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
}

.dl-logo strong { font-weight: 800; }

.dl-lang {
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
}

.dl-lang:hover { border-color: #3a3a44; color: var(--text); }

.dl-main {
    max-width: 960px;
    margin: 0 auto;
    padding: 28px 20px 64px;
}

.dl-hero { max-width: 620px; margin-bottom: 36px; }

.dl-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.05;
}

.dl-hero p { margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.55; }

.dl-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
}

.dl-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
}

.dl-card-head { display: flex; align-items: center; gap: 14px; }

.dl-card-icon {
    display: grid;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 14px;
    background: var(--surface-2);
    color: var(--text);
}

.dl-card-icon svg { width: 24px; height: 24px; }

.dl-card h2 { margin: 0; font-size: 1.2rem; font-weight: 700; letter-spacing: -.015em; }

.dl-badge {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(94, 222, 170, .12);
    color: #5ee5a2;
    font-size: .72rem;
    font-weight: 700;
}

.dl-card p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.55; }

.dl-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: .82rem; }

.dl-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    margin-top: auto;
    padding: 0 20px;
    border-radius: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: filter .15s ease, background .15s ease, border-color .15s ease;
}

.dl-button svg { width: 18px; height: 18px; }

.dl-button-primary { background: var(--accent); color: #fff; }
.dl-button-primary:hover { filter: brightness(1.1); }

.dl-button-secondary { border: 1px solid #2a2a31; background: transparent; color: var(--text); }
.dl-button-secondary:hover { border-color: #3a3a44; background: #16161b; }

.dl-section {
    margin-top: 40px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
}

.dl-section h2 { margin: 0 0 16px; font-size: 1.15rem; font-weight: 700; }

.dl-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 14px; }

.dl-steps li {
    position: relative;
    padding-left: 44px;
    color: #c9c6ce;
    line-height: 1.55;
    counter-increment: step;
}

.dl-steps li::before {
    content: counter(step);
    position: absolute;
    top: -2px;
    left: 0;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--text);
    font-size: .85rem;
    font-weight: 700;
}

.dl-steps strong { color: var(--text); }

.dl-note {
    margin: 18px 0 0;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--surface-2);
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.55;
}

.dl-note strong { color: var(--text); }

.dl-hash {
    display: block;
    margin-top: 6px;
    color: #6f6b76;
    font-family: ui-monospace, 'Consolas', monospace;
    font-size: .74rem;
    overflow-wrap: anywhere;
}

.dl-web { margin-top: 28px; color: var(--muted); font-size: .95rem; text-align: center; }
.dl-web a { color: var(--text); font-weight: 600; }

.dl-footer {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 20px 40px;
    border-top: 1px solid #16161b;
    color: #6f6b76;
    font-size: .82rem;
    text-align: center;
}

.dl-footer a { color: var(--muted); }

@media (max-width: 720px) {
    .dl-options { grid-template-columns: 1fr; }
    .dl-card, .dl-section { padding: 20px; }
}
