/* Whitepaper Specific Styles */

.whitepaper-hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    text-align: center;
    color: var(--white);
}

.whitepaper-title {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--white);
}

.whitepaper-subtitle {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
}

.whitepaper-meta {
    display: flex;
    gap: 12px;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

/* Table of Contents */
.toc-section {
    padding: 60px 0;
    background: var(--gray-light);
}

.toc-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(10, 31, 68, 0.08);
}

.toc-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--orange);
}

.toc {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toc-item {
    padding: 12px 16px;
    color: var(--navy);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    display: block;
}

.toc-item:hover {
    background: var(--gray-light);
    color: var(--orange);
    padding-left: 24px;
}

/* Whitepaper Content */
.whitepaper-content {
    padding: 80px 0;
    background: var(--white);
}

.paper {
    max-width: 900px;
    margin: 0 auto;
}

.paper-section {
    margin-bottom: 80px;
    position: relative;
}

.section-number {
    position: absolute;
    left: -60px;
    top: 0;
    font-size: 48px;
    font-weight: 700;
    color: var(--orange);
    opacity: 0.3;
}

.paper-heading {
    font-size: 36px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--orange);
}

.paper-subheading {
    font-size: 24px;
    font-weight: 600;
    color: var(--navy);
    margin: 32px 0 16px 0;
}

.paper-text {
    font-size: 17px;
    line-height: 1.9;
    color: var(--gray-dark);
    margin-bottom: 20px;
    text-align: justify;
}

.paper-list {
    margin: 20px 0;
    padding-left: 24px;
}

.paper-list li {
    font-size: 17px;
    line-height: 1.8;
    color: var(--gray-dark);
    margin-bottom: 12px;
}

.paper-list li strong {
    color: var(--navy);
    font-weight: 600;
}

.paper-ordered-list {
    margin: 20px 0;
    padding-left: 24px;
    counter-reset: item;
}

.paper-ordered-list li {
    font-size: 17px;
    line-height: 1.8;
    color: var(--gray-dark);
    margin-bottom: 16px;
    list-style: none;
    counter-increment: item;
    position: relative;
}

.paper-ordered-list li::before {
    content: counter(item) ".";
    position: absolute;
    left: -24px;
    font-weight: 700;
    color: var(--orange);
}

/* Solution Grid */
.solution-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 32px 0;
}

.solution-item {
    background: var(--gray-light);
    padding: 28px;
    border-radius: 12px;
    border-left: 4px solid var(--orange);
}

.solution-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.solution-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
}

.solution-description {
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-dark);
}

/* Architecture Diagram */
.architecture-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin: 40px 0;
    padding: 40px;
    background: var(--gray-light);
    border-radius: 16px;
}

.arch-layer {
    background: var(--white);
    padding: 24px 32px;
    border-radius: 12px;
    text-align: center;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 4px 12px rgba(10, 31, 68, 0.08);
}

.arch-layer-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
}

.arch-layer-desc {
    font-size: 15px;
    color: var(--gray);
}

.arch-arrow {
    font-size: 32px;
    color: var(--orange);
    font-weight: 700;
}

/* Framework Grid */
.framework-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 32px 0;
}

.framework-item {
    background: var(--gray-light);
    padding: 28px;
    border-radius: 12px;
    border-top: 4px solid var(--orange);
}

.framework-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 12px;
}

.framework-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-dark);
}

/* Roadmap Timeline */
.roadmap-timeline {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin: 40px 0;
}

.roadmap-item {
    background: var(--gray-light);
    padding: 32px;
    border-radius: 12px;
    border-left: 6px solid var(--orange);
    position: relative;
}

.roadmap-phase {
    font-size: 24px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.roadmap-status {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.roadmap-status.completed {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.roadmap-status.in-progress {
    background: rgba(255, 107, 53, 0.15);
    color: var(--orange);
}

.roadmap-status.planned {
    background: rgba(10, 31, 68, 0.1);
    color: var(--navy);
}

.roadmap-list {
    list-style: none;
    padding: 0;
}

.roadmap-list li {
    padding: 10px 0 10px 28px;
    color: var(--gray-dark);
    position: relative;
    font-size: 16px;
}

.roadmap-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--orange);
    font-weight: 700;
}

/* Paper Signature */
.paper-signature {
    margin-top: 48px;
    padding: 32px;
    background: var(--gray-light);
    border-radius: 12px;
    text-align: center;
}

.paper-signature p {
    font-size: 16px;
    color: var(--navy);
    margin: 4px 0;
}

.paper-signature strong {
    font-size: 18px;
    font-weight: 700;
}

/* References */
.references {
    border-top: 2px solid var(--gray-light);
    padding-top: 40px;
}

.references-list {
    padding-left: 24px;
    counter-reset: reference;
}

.references-list li {
    font-size: 15px;
    line-height: 1.8;
    color: var(--gray-dark);
    margin-bottom: 12px;
    counter-increment: reference;
    list-style: none;
    position: relative;
}

.references-list li::before {
    content: "[" counter(reference) "]";
    position: absolute;
    left: -32px;
    font-weight: 600;
    color: var(--navy);
}

/* Responsive Whitepaper */
@media (max-width: 968px) {
    .whitepaper-title {
        font-size: 38px;
    }

    .section-number {
        position: static;
        display: block;
        margin-bottom: 8px;
    }

    .solution-grid,
    .framework-grid {
        grid-template-columns: 1fr;
    }

    .architecture-diagram {
        padding: 24px;
    }
}

@media (max-width: 640px) {
    .whitepaper-title {
        font-size: 32px;
    }

    .whitepaper-subtitle {
        font-size: 18px;
    }

    .paper-heading {
        font-size: 28px;
    }

    .paper-subheading {
        font-size: 20px;
    }

    .toc-container {
        padding: 24px;
    }

    .paper-text,
    .paper-list li,
    .paper-ordered-list li {
        font-size: 16px;
        text-align: left;
    }

    .roadmap-phase {
        font-size: 20px;
    }
}

/* Print Styles */
@media print {
    .nav,
    .cta,
    .footer,
    .toc-section {
        display: none;
    }

    .whitepaper-hero {
        background: white;
        color: black;
        border-bottom: 2px solid var(--navy);
    }

    .whitepaper-title,
    .whitepaper-subtitle,
    .whitepaper-meta {
        color: black;
    }

    .paper-section {
        page-break-inside: avoid;
    }

    .paper-heading {
        page-break-after: avoid;
    }
}

