/* ── download/index.html ──
 * Przeniesione 10.09.2026 z bloku <style> w tresci strony. Styl w tresci nie da sie
 * buforowac osobno ani wspoldzielic, a przede wszystkim wymusza furtke unsafe-inline
 * w CSP — czyli politykę, ktora nie chroni przed wstrzyknietym stylem. */

:root {
    --bg-primary: #000000;
    --bg-secondary: #101012;
    --bg-card: rgba(226, 232, 240, 0.035);
    --accent: #28aab1;
    --accent-glow: rgba(40, 170, 177, 0.3);
    --accent-light: #49b8c4;
    --text-primary: #f2f3f5;
    --text-secondary: #9a9ca1;
    --text-muted: #6b6d73;
    --border: #26262a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.brand {
    color: var(--text-primary);
    font-weight: 600;
}

/* ── Page content ── */
.page {
    flex: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem;
    width: 100%;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 3.30rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.page-header h1 .gradient {
    background: linear-gradient(100deg, #6f7681 0%, #aab3bd 18%, #ffffff 32%, #e6ebf0 42%, #8d959f 60%, #6f7681 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ── Download grid ── */
.download-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.download-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(40, 170, 177, 0.18), transparent 60%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.download-card::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transition: width 0.4s ease, left 0.4s ease;
}

.download-card:hover {
    border-color: rgba(40, 170, 177, 0.55);
    transform: translateY(-6px);
    box-shadow: 0 0 24px rgba(40, 170, 177, 0.098), 0 12px 36px rgba(40, 170, 177, 0.063);
}

.download-card:hover::before { opacity: 1; }

.download-card:hover::after {
    width: 80%;
    left: 10%;
}

.download-card:hover .download-icon {
    transform: scale(1.08) translateY(-2px);
    filter: var(--filtr-ikony-jasniej) drop-shadow(0 0 18px rgba(160, 205, 212, 0.55));
}

.download-card:hover .card-cta {
    color: var(--accent-light);
    letter-spacing: 0.08em;
}

.download-card:active {
    transform: scale(0.98) translateY(-2px);
    transition: all 0.08s ease;
}

.download-icon {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    filter: var(--filtr-ikony) drop-shadow(0 0 12px rgba(160, 205, 212, 0.3));
    transition: transform 0.35s ease, filter 0.35s ease;
}

.download-card h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.download-card .version {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.download-card .arch {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.card-cta {
    margin-top: auto;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease, letter-spacing 0.3s ease;
}

/* ── Info section ── */
.info-section {
    max-width: 700px;
    margin: 0 auto 2rem;
    text-align: center;
}

.info-section h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.info-section p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
}

.info-section a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
}

.info-section a:hover {
    text-decoration: underline;
}

.requirements {
    max-width: 700px;
    margin: 0 auto 3rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem 2rem;
}

.requirements h3 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.requirements ul {
    list-style: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.requirements li {
    padding: 0.2rem 0;
}

.requirements li::before {
    content: '✓ ';
    color: var(--text-primary);
    font-weight: 700;
}

/* ── Footer ── */
footer {
    border-top: 1px solid var(--border);
    padding: 3rem 2rem;
    color: var(--text-muted);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.footer-brand { display: flex; align-items: center; gap: 0.6rem; }
.footer-logo { width: 80px; height: auto; border-radius: 0; filter: drop-shadow(0 0 10px rgba(160, 205, 212, 0.3)); }
.footer-links { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-size: 1rem; font-weight: 500; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent-light); }
.footer-download { color: #f2f3f5 !important; font-weight: 600 !important; }
.footer-download:hover { color: var(--accent-light) !important; }
.footer-copy { font-size: 0.85rem; color: var(--text-muted); }

footer a { color: var(--accent); text-decoration: none; }

.release-notes {
    margin-top: 1.6rem;
    text-align: center;
}

.release-notes a {
    color: var(--text-muted);
    font-size: 0.78rem;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: color 0.2s;
}

.release-notes a:hover { color: var(--text-secondary); }

/* ── Responsive ── */
@media (max-width: 768px) {
    .download-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .download-card { padding: 2rem 1.5rem; }
    .download-icon { width: 90px; height: 90px; }
}

@media (max-width: 640px) {
    .page-header h1 { font-size: 2.40rem; }
}
