.download-page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 120px 24px 60px;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.download-content {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

.download-title {
    text-align: center;
    margin-bottom: 32px;
    font-family: 'Cormorant Garamond', serif;
    font-style: normal;
    font-weight: 500;
    color: #0f172a;
    font-size: clamp(2.5rem, 6vw, 4rem);
    letter-spacing: -0.01em;
}

.os-toggle {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 48px;
    position: relative;
    z-index: 2;
}

.os-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    border: 1.5px solid rgba(15, 23, 42, 0.2);
    background: #ffffff;
    color: #0f172a;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.os-toggle-btn:first-child {
    border-radius: 50px 0 0 50px;
    border-right: none;
}

.os-toggle-btn:last-child {
    border-radius: 0 50px 50px 0;
}

.os-toggle-btn:hover {
    background: rgba(37, 99, 255, 0.08);
}

.os-toggle-btn.active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.os-toggle-btn:first-child.active {
    border-right: none;
}

.os-toggle-btn:last-child.active {
    border-left: 1.5px solid #0f172a;
}

.os-toggle-btn svg {
    flex-shrink: 0;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    position: relative;
    z-index: 2;
}

.download-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 20px;
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    color: #0f172a;
    opacity: 0.68;
}

.download-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
    opacity: 1;
}

.download-card--primary {
    grid-column: 1 / -1;
    padding: 48px 44px;
    gap: 20px;
    opacity: 1;
    background: linear-gradient(135deg, #ffffff, #f8fbff);
    border: 1px solid rgba(37, 99, 255, 0.18);
    box-shadow: 0 8px 32px rgba(37, 99, 255, 0.1);
}

.download-card--primary:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 48px rgba(37, 99, 255, 0.18);
}

.download-card-name {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
}

.download-card--primary .download-card-name {
    font-size: 2rem;
    letter-spacing: -0.01em;
}

.download-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 48px;
    justify-content: center;
    color: #0f172a;
}

.download-card--primary .download-card-info {
    min-height: 60px;
}

.download-card-version {
    font-family: 'Cormorant Garamond', serif;
    font-style: normal;
    font-weight: 600;
    font-size: 1.3rem;
    line-height: 1.2;
    background: linear-gradient(90deg, #2563ff, #7b3dff, #ff4a6a);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.download-card--primary .download-card-version {
    font-size: 2rem;
}

.download-card-stage-badge {
    display: inline-block;
    margin-left: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    background: #0f172a;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    vertical-align: middle;
    -webkit-text-fill-color: #ffffff;
}

.download-stage-banner {
    margin: -16px auto 32px;
    max-width: 600px;
    padding: 10px 20px;
    border-radius: 8px;
    background: #0f172a;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    position: relative;
    z-index: 2;
}

.download-card-meta {
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(15, 23, 42, 0.6);
}

.download-card-spinner {
    display: flex;
    align-items: center;
    gap: 8px;
}

.download-card-spinner .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(15, 23, 42, 0.15);
    border-top-color: #2563ff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.download-card-error {
    font-size: 0.9rem;
    color: rgba(15, 23, 42, 0.6);
}

.btn-download {
    display: block;
    text-align: center;
    padding: 12px 24px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: #ffffff;
    background: #0f172a;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
}

.btn-download:hover {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.2);
}

.download-card--primary .btn-download {
    padding: 16px 32px;
    font-size: 1.05rem;
    align-self: flex-start;
}

.btn-download.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .download-grid {
        grid-template-columns: 1fr;
    }
    .download-card--primary {
        grid-column: auto;
        padding: 32px 26px;
    }
    .download-card--primary .download-card-name {
        font-size: 1.6rem;
    }
    .download-card--primary .download-card-version {
        font-size: 1.7rem;
    }
    .download-card--primary .btn-download {
        align-self: stretch;
    }
}
