/* ============================================================
   Downloads Page — Redesign
   ============================================================ */

/* ── Scroll-Reveal Animations ── */
@keyframes revealUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

.reveal { opacity: 0; will-change: transform, opacity; }
.reveal.is-visible {
    animation: revealUp 0.8s cubic-bezier(0.16,1,0.3,1) forwards;
}

.reveal-stagger > * { opacity: 0; will-change: transform, opacity; }
.reveal-stagger.is-visible > * {
    animation: revealUp 0.7s cubic-bezier(0.16,1,0.3,1) forwards;
}
.reveal-stagger.is-visible > *:nth-child(1) { animation-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { animation-delay: 100ms; }
.reveal-stagger.is-visible > *:nth-child(3) { animation-delay: 200ms; }
.reveal-stagger.is-visible > *:nth-child(4) { animation-delay: 300ms; }
.reveal-stagger.is-visible > *:nth-child(5) { animation-delay: 400ms; }


/* ── Hero Typography ── */
.we-download h1 {
    letter-spacing: -0.02em !important;
}

/* ── Constrain width on large monitors ── */
.we-download > .container-fluid {
    max-width: 1400px;
}


/* ── Product Quick Nav ── */
.dl-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 40px 0 10px;
}
.dl-nav a {
    color: #888;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    padding: 6px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.dl-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
}


/* ── Scroll anchor offset for sticky header ── */
#omniscope, #display, #nobelutbake, #false-color, #color-remap {
    scroll-margin-top: 100px;
}


/* ── Kill legacy left borders ── */
.we-download__product::before {
    display: none !important;
}


/* ── Product Cards ── */
.we-download__product {
    background: #161618 !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 16px !important;
    padding: 40px !important;
    margin: 30px 0 0 0 !important;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
}

/* Top accent line per product */
.we-download__product::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    pointer-events: none;
}

.we-download__product.nobe-omni-scope::after {
    background: linear-gradient(90deg, #fba443, #e94d1b);
}
.we-download__product.nobe-display::after {
    background: linear-gradient(90deg, #a300dc, #ff0094);
}
.we-download__product.nobe-lutbake::after {
    background: linear-gradient(90deg, #f7931e, #f7643c);
}
.we-download__product.false-color::after {
    background: linear-gradient(90deg, #f80198, #2c296b);
}
.we-download__product.nobe-color-remap::after {
    background: linear-gradient(90deg, #f006b0, #01c2f2);
}

.we-download__product:hover {
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}


/* ── Product Header ── */
.we-download__product-top {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 16px;
}

/* Changelog as pill badge */
.we-download__product-top .changelog {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 6px 14px !important;
    margin: 0 0 0 auto !important;
    font-size: 13px !important;
    color: #888 !important;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.we-download__product-top .changelog:hover {
    color: #ccc !important;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Kill the legacy divider line and position hacks */
.we-download__product-top .changelog::before {
    display: none !important;
}
.we-download__product-top .changelog::after {
    width: 14px !important;
    height: 14px !important;
    position: static !important;
    transform: none !important;
    flex-shrink: 0;
    opacity: 0.5;
}


/* ── Description Area ── */
.we-download__product-middle {
    margin: 20px 0 28px 0 !important;
}
.we-download__product-middle p {
    color: #777;
    font-size: 14px;
    margin: 0;
}
.we-download__product-middle h4 {
    color: #bbb !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    margin: 4px 0 0 0 !important;
    max-width: none !important;
}


/* ── Platform Download Links ── */
.we-download__product-bottom {
    margin-top: 0;
}

.we-download__product-bottom h4 {
    color: #888 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 30px 0 20px 0 !important;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.we-download__product-bottom .row > div {
    margin-bottom: 8px;
}

/* Platform label */
.we-download__product-bottom span {
    color: #ccc;
    font-size: 14px;
    font-weight: 500;
}
.we-download__product-bottom span img {
    height: 22px !important;
    margin-right: 10px !important;
    opacity: 0.7;
}

/* Download links — white text, subtle bordered boxes */
.we-download__product-bottom a {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    font-size: 13px !important;
    color: #ccc !important;
    text-decoration: none !important;
    padding: 7px 14px;
    margin: 14px 0 6px 0 !important;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    transition: all 0.3s ease;
}
.we-download__product-bottom a::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' x2='12' y1='15' y2='3'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
    opacity: 0.5;
}
.we-download__product-bottom a:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff !important;
    transform: translateY(-1px);
}
.we-download__product-bottom a:hover::before {
    opacity: 0.8;
}

.we-download__product-bottom p {
    color: #555;
    font-size: 12px;
    margin: 4px 0 0 0;
}


/* ── Older Versions Section ── */
.we-download__product-bottom.dl-older h4 {
    margin-bottom: 12px !important;
    padding-top: 16px;
}
.we-download__product-bottom.dl-older p {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0 !important;
    color: #666;
    font-size: 13px;
}
.we-download__product-bottom.dl-older a {
    display: inline !important;
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    color: #999 !important;
    font-size: 13px !important;
    text-decoration: underline !important;
    transition: color 0.2s ease;
}
.we-download__product-bottom.dl-older a::before {
    display: none !important;
}
.we-download__product-bottom.dl-older a:hover {
    color: #ccc !important;
    transform: none !important;
    background: none !important;
}


/* ── Smooth Scroll ── */
html { scroll-behavior: smooth; }


/* ── Responsive ── */
@media (max-width: 767px) {
    .we-download__product {
        padding: 24px !important;
        border-radius: 12px !important;
    }
    .we-download__product:hover {
        transform: none !important;
    }
    .we-download__product-top {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }
    .we-download__product-top .changelog {
        margin: 0 !important;
    }
}
