/* ====================================
   WHITEPAPER DOWNLOAD SECTION
   Two-card layout for technical and functional whitepapers
   ==================================== */

/* Reveal Animation */
.whitepaper-section .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whitepaper-section.animated .reveal {
    opacity: 1;
    transform: translateY(0);
}

.whitepaper-section.animated .reveal:nth-child(1) {
    transition-delay: 0.1s;
}

.whitepaper-section.animated .reveal:nth-child(2) {
    transition-delay: 0.2s;
}

.whitepaper-section.animated .whitepaper-grid .reveal:nth-child(1) {
    transition-delay: 0.3s;
}

.whitepaper-section.animated .whitepaper-grid .reveal:nth-child(2) {
    transition-delay: 0.5s;
}

.whitepaper-section {
    position: relative;
    padding: 120px 24px;
    background: transparent;
    overflow: hidden;
}

.whitepaper-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Section Header */
.whitepaper-section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    text-align: center;
    margin: 0 0 16px 0;
}

.whitepaper-section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary, #94A3B8);
    text-align: center;
    margin: 0 auto 64px;
    max-width: 680px;
    line-height: 1.6;
}

/* Grid Layout */
.whitepaper-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 48px;
}

/* Card Styling */
.whitepaper-card {
    position: relative;
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 20px 60px -20px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(59, 130, 246, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.whitepaper-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Technical Card Theme */
.technical-card::before {
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
}

.technical-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow:
        0 30px 80px -20px rgba(59, 130, 246, 0.3),
        0 0 0 1px rgba(59, 130, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
}

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

/* Functional Card Theme */
.functional-card::before {
    background: linear-gradient(90deg, #8b5cf6 0%, #a78bfa 100%);
}

.functional-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow:
        0 30px 80px -20px rgba(139, 92, 246, 0.3),
        0 0 0 1px rgba(139, 92, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
}

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

/* Badge */
.card-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
    width: fit-content;
}

.technical-badge {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

.functional-badge {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #a78bfa;
}

/* Card Title */
.whitepaper-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.5vw, 1.8rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: white;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

/* Audience */
.whitepaper-audience {
    font-size: 0.95rem;
    color: var(--text-secondary, #94A3B8);
    margin: 0 0 24px 0;
    font-weight: 500;
}

/* Features List */
.whitepaper-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
    flex-grow: 1;
}

.whitepaper-features li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary, #94A3B8);
    line-height: 1.6;
}

.whitepaper-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.technical-card .whitepaper-features li::before {
    background: #60a5fa;
}

.functional-card .whitepaper-features li::before {
    background: #a78bfa;
}

/* Download Button */
.whitepaper-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid;
    width: 100%;
    text-align: center;
}

.technical-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: rgba(59, 130, 246, 0.5);
    color: white;
    box-shadow:
        0 8px 24px rgba(59, 130, 246, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.technical-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow:
        0 12px 32px rgba(59, 130, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.functional-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border-color: rgba(139, 92, 246, 0.5);
    color: white;
    box-shadow:
        0 8px 24px rgba(139, 92, 246, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.functional-btn:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    transform: translateY(-2px);
    box-shadow:
        0 12px 32px rgba(139, 92, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.whitepaper-download-btn:active {
    transform: translateY(0);
}

/* Download Icon Animation */
.download-icon {
    transition: transform 0.3s ease;
}

.whitepaper-download-btn:hover .download-icon {
    transform: translateY(3px);
}

/* --- RESPONSIVE --- */

/* Tablet */
@media (max-width: 900px) {
    .whitepaper-section {
        padding: 80px 24px;
    }

    .whitepaper-section-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }

    .whitepaper-section-subtitle {
        font-size: 1rem;
        margin-bottom: 48px;
    }

    .whitepaper-grid {
        gap: 24px;
    }

    .whitepaper-card {
        padding: 2rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .whitepaper-section {
        padding: 60px 20px;
    }

    .whitepaper-section-title {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
        margin-bottom: 12px;
    }

    .whitepaper-section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 40px;
        padding: 0 10px;
    }

    .whitepaper-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 32px;
    }

    .whitepaper-card {
        padding: 1.5rem;
    }

    .whitepaper-title {
        font-size: clamp(1.3rem, 2.2vw, 1.6rem);
        margin-bottom: 10px;
    }

    .whitepaper-audience {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .whitepaper-features {
        margin-bottom: 24px;
    }

    .whitepaper-features li {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .whitepaper-download-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        gap: 8px;
    }

    .download-icon {
        width: 18px;
        height: 18px;
    }
}

/* Small Mobile */
@media (max-width: 400px) {
    .whitepaper-section {
        padding: 50px 16px;
    }

    .whitepaper-card {
        padding: 1.25rem;
    }

    .card-badge {
        font-size: 10px;
        padding: 5px 10px;
    }

    .card-badge svg {
        width: 14px;
        height: 14px;
    }

    .whitepaper-title {
        font-size: clamp(1.2rem, 2vw, 1.4rem);
    }

    .whitepaper-audience {
        font-size: 0.85rem;
    }

    .whitepaper-features li {
        font-size: 0.85rem;
        padding-left: 20px;
    }

    .whitepaper-download-btn {
        padding: 11px 16px;
        font-size: 0.85rem;
    }
}
