/* Whitepaper Specific Styles */

/* Whitepaper Header */
.whitepaper-header {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95), rgba(20, 20, 20, 0.95));
    position: relative;
    overflow: hidden;
}

.whitepaper-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
}

.whitepaper-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.wp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    color: #6366f1;
    margin-bottom: 2rem;
    font-weight: 600;
}

.wp-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
}

.wp-subtitle {
    font-size: 1.25rem;
    color: #a1a1aa;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.wp-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
}

.meta-label {
    color: #a1a1aa;
    font-size: 0.875rem;
}

.meta-value {
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Table of Contents */
.toc-section {
    padding: 4rem 0;
    background: rgba(5, 5, 5, 0.5);
}

.toc-container {
    max-width: 800px;
    margin: 0 auto;
}

.toc-title {
    text-align: center;
    margin-bottom: 2rem;
    color: white;
}

.toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.toc-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
}

.toc-item:hover {
    background: rgba(99, 102, 241, 0.05);
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

.toc-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.toc-text {
    font-weight: 500;
}

/* Whitepaper Content */
.whitepaper-content {
    padding: 4rem 0;
}

.wp-section {
    margin-bottom: 6rem;
    position: relative;
}

.section-number {
    position: absolute;
    left: -150px;
    top: 0;
    font-size: 8rem;
    font-weight: 800;
    color: rgba(99, 102, 241, 0.1);
    line-height: 1;
    pointer-events: none;
}

.wp-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: white;
    position: relative;
}

.wp-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.section-content {
    max-width: 800px;
}

.lead-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: #e5e5e5;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.wp-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #a1a1aa;
}

/* Highlight Boxes */
.highlight-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    margin: 2rem 0;
}

.highlight-box h4 {
    color: #6366f1;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.highlight-box p {
    color: #e5e5e5;
    margin: 0;
}

/* Vision Goals */
.vision-goals {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.goal-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.goal-item:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.2);
    background: rgba(99, 102, 241, 0.05);
}

.goal-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.goal-item h4 {
    color: white;
    margin-bottom: 1rem;
}

.goal-item p {
    color: #a1a1aa;
    font-size: 1rem;
}

/* Problems Grid */
.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.problem-card {
    background: rgba(245, 101, 101, 0.05);
    border: 1px solid rgba(245, 101, 101, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
}

.problem-card h4 {
    color: #f87171;
    margin-bottom: 0.75rem;
}

.problem-card p {
    color: #fca5a5;
    font-weight: 600;
    margin-bottom: 1rem;
}

.problem-impact {
    font-size: 0.9rem;
    color: #a1a1aa;
    font-style: italic;
}

.solution-preview {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    margin-top: 3rem;
}

.solution-preview h4 {
    color: #10b981;
    margin-bottom: 1rem;
}

.solution-preview p {
    color: #d1fae5;
    margin: 0;
}

/* Solution Features */
.solution-features {
    margin-top: 2rem;
}

.feature-detailed {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.feature-detailed:hover {
    border-color: rgba(99, 102, 241, 0.2);
    background: rgba(99, 102, 241, 0.02);
}

.feature-detailed h4 {
    color: white;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-detailed h4::before {
    content: '→';
    color: #6366f1;
    font-weight: 700;
    font-size: 1.5rem;
}

.feature-detailed p {
    color: #a1a1aa;
    margin: 0;
    line-height: 1.7;
}

/* Tokenomics */
.tokenomics-overview {
    margin-bottom: 3rem;
}

.token-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 1.5rem;
}

.stat-card h4 {
    color: #6366f1;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.stat-card p {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.allocation-section {
    margin: 3rem 0;
}

.allocation-grid {
    display: grid;
    gap: 1.5rem;
}

.allocation-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 1.5rem;
}

.allocation-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    position: relative;
    margin-bottom: 1rem;
    overflow: hidden;
}

.allocation-bar::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--percentage);
    background: var(--color);
    border-radius: 6px;
    transition: width 1s ease-in-out;
}

.percentage {
    position: absolute;
    right: 8px;
    top: -2px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.allocation-item h5 {
    color: white;
    margin-bottom: 0.5rem;
}

.allocation-item p {
    color: #a1a1aa;
    font-size: 0.95rem;
    margin: 0;
}

/* Fee Model */
.fee-model {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 2rem;
    margin-top: 3rem;
}

.fee-breakdown {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.fee-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0.75rem;
}

.fee-percentage {
    font-size: 1.5rem;
    font-weight: 700;
    color: #6366f1;
    min-width: 60px;
}

.fee-description h5 {
    color: white;
    margin-bottom: 0.25rem;
}

.fee-description p {
    color: #a1a1aa;
    font-size: 0.9rem;
    margin: 0;
}

/* Roadmap Phases */
.roadmap-phases {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.phase-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.phase-card.completed {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.05);
}

.phase-card.active {
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.05);
}

.phase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.phase-header h4 {
    color: white;
    margin: 0;
}

.phase-status {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.phase-card.completed .phase-status {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.phase-card.active .phase-status {
    background: rgba(99, 102, 241, 0.2);
    color: #6366f1;
}

.phase-card:not(.completed):not(.active) .phase-status {
    background: rgba(255, 255, 255, 0.1);
    color: #a1a1aa;
}

.phase-objectives {
    list-style: none;
    margin-bottom: 1.5rem;
}

.phase-objectives li {
    color: #e5e5e5;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.phase-objectives li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 600;
}

.phase-card:not(.completed) .phase-objectives li::before {
    content: '→';
    color: #6366f1;
}

.phase-timeline {
    color: #a1a1aa;
    font-size: 0.9rem;
}

/* Safety Features */
.safety-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.safety-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.safety-card:hover {
    transform: translateY(-5px);
    border-color: rgba(16, 185, 129, 0.2);
    background: rgba(16, 185, 129, 0.05);
}

.safety-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.safety-card h4 {
    color: white;
    margin-bottom: 1rem;
}

.safety-card p {
    color: #a1a1aa;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Audit Section */
.audit-section {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    margin-top: 3rem;
}

.audit-section h4 {
    color: #10b981;
    margin-bottom: 1.5rem;
}

.audit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.audit-item {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.audit-item h5 {
    color: white;
    margin-bottom: 0.5rem;
}

.audit-item p {
    color: #a1a1aa;
    font-size: 0.9rem;
    margin: 0;
}

/* Conclusion */
.conclusion-highlights {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.highlight-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 2rem;
}

.highlight-item h4 {
    color: white;
    margin-bottom: 1rem;
}

.highlight-item p {
    color: #a1a1aa;
    margin: 0;
    line-height: 1.7;
}

.final-statement {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 1rem;
    padding: 2.5rem;
    margin-top: 3rem;
    text-align: center;
}

.final-statement h4 {
    color: #6366f1;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.final-statement p {
    color: #e5e5e5;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.final-statement p:last-child {
    margin: 0;
    font-size: 1.2rem;
}

/* Whitepaper CTA */
.wp-cta {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 2rem;
    padding: 4rem 2rem;
    text-align: center;
    margin: 4rem 0;
}

.cta-content h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-content p {
    color: #a1a1aa;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Active nav link */
.nav-link.active {
    color: #6366f1 !important;
    font-weight: 600;
}

/* Responsive Design for Whitepaper */
@media (max-width: 1200px) {
    .section-number {
        display: none;
    }
}

@media (max-width: 768px) {
    .wp-title {
        font-size: 2.5rem;
    }
    
    .wp-meta {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .toc-grid {
        grid-template-columns: 1fr;
    }
    
    .vision-goals,
    .problems-grid,
    .safety-features {
        grid-template-columns: 1fr;
    }
    
    .token-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .wp-cta {
        padding: 2.5rem 1.5rem;
    }
    
    .phase-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .wp-title {
        font-size: 2rem;
    }
    
    .whitepaper-header {
        padding: 6rem 0 3rem;
    }
    
    .wp-section {
        margin-bottom: 4rem;
    }
    
    .token-stats {
        grid-template-columns: 1fr;
    }
}