/* Downloads page — matches partners / homepage glass theme */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    overflow-x: clip;
}

body.downloads-page-body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #050505;
    color: #f5f5f5;
    padding: 0;
    min-height: 100vh;
    overflow-x: clip;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.downloads-page-body .downloads-page {
    position: relative;
    max-width: min(920px, 100%);
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 32px) clamp(40px, 5vw, 56px);
    box-sizing: border-box;
}

body.downloads-page-body #headerContainer {
    width: 100%;
}

.downloads-hero {
    position: relative;
    z-index: 1;
    margin: 0 0 clamp(24px, 3.5vw, 32px);
    padding: clamp(28px, 5vw, 44px) 0 clamp(24px, 4vw, 32px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.downloads-hero-title {
    margin: 0 0 10px;
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #fff;
    line-height: 1.1;
}

.downloads-hero-lead {
    margin: 0;
    max-width: 42rem;
    font-size: clamp(15px, 2.2vw, 17px);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.52);
}

.downloads-jump-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.downloads-jump-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.downloads-jump-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
}

.downloads-loading {
    display: flex;
    justify-content: center;
    padding: 48px 0;
}

.downloads-loading[hidden],
.downloads-list[hidden],
.downloads-empty[hidden],
.downloads-jump-nav[hidden] {
    display: none !important;
}

.downloads-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 255, 255, 0.12);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: downloads-spin 0.7s linear infinite;
}

@keyframes downloads-spin {
    to {
        transform: rotate(360deg);
    }
}

.downloads-empty {
    color: rgba(255, 255, 255, 0.45);
    text-align: center;
    padding: 40px 16px;
}

.downloads-list {
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 3vw, 28px);
}

.dl-product {
    position: relative;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.02) 100%);
    overflow: hidden;
    scroll-margin-top: 88px;
}

.dl-product::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--dl-accent, #667eea);
}

.dl-product-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}

.dl-product-media {
    position: relative;
    background: #080808;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.dl-product-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.dl-product-body {
    padding: clamp(18px, 3vw, 24px);
}

.dl-product-name {
    margin: 0 0 6px;
    font-size: clamp(20px, 3vw, 24px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}

.dl-product-tagline {
    margin: 0 0 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
}

.dl-product-desc {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.72);
    white-space: pre-wrap;
}

.dl-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}

.dl-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.78);
}

.dl-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.dl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

.dl-btn:hover {
    transform: translateY(-1px);
}

.dl-btn-primary {
    background: var(--dl-accent, #667eea);
    color: #fff;
}

.dl-btn-primary:hover {
    filter: brightness(1.08);
}

.dl-btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
}

.dl-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dl-notes {
    margin: 12px 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.42);
    line-height: 1.45;
}

.dl-release-block {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.dl-release-title {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.dl-release-notes {
    margin: 8px 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    white-space: pre-wrap;
}

.dl-faq {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.dl-faq-heading {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
}

.dl-faq-item {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 8px;
    overflow: hidden;
}

.dl-faq-item:last-child {
    margin-bottom: 0;
}

.dl-faq-q {
    cursor: pointer;
    list-style: none;
    padding: 11px 14px;
    font-size: 14px;
    font-weight: 650;
    color: rgba(255, 255, 255, 0.9);
}

.dl-faq-q::-webkit-details-marker {
    display: none;
}

.dl-faq-q::after {
    content: '+';
    float: right;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
}

.dl-faq-item[open] .dl-faq-q::after {
    content: '–';
}

.dl-faq-a {
    margin: 0;
    padding: 0 14px 14px;
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.62);
    white-space: pre-wrap;
}

.downloads-page-footer {
    margin-top: clamp(36px, 5vw, 48px);
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
