:root {
    --gold: #FFD700;
    --dark-gold: #B8860B;
    --purple: #4B0082;
    --light-purple: #9370DB;
    --deep-purple: #8A2BE2;
    --white: #FFFFFF;
    --black: #000000;
    --bg-dark: #0a0a0f;
    --bg-section: #12121a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--purple) 50%, var(--bg-dark) 100%);
    background-attachment: fixed;
    color: var(--white);
    line-height: 1.6;
    min-height: 100vh;
}

/* Navigation */
.nav-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    z-index: 1000;
    padding: 15px 0;
}

.nav-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--gold);
    font-weight: bold;
    font-size: 20px;
}

.nav-logo-img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--gold);
}

/* Whitepaper Container */
.whitepaper-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 100px 20px 40px;
}

/* Header */
.whitepaper-header {
    text-align: center;
    padding: 60px 0;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 20px;
    margin-bottom: 60px;
}

.header-logo {
    width: 150px;
    height: 150px;
    margin-bottom: 30px;
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.5));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.whitepaper-header h1 {
    font-size: 48px;
    color: var(--gold);
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.whitepaper-header h2 {
    font-size: 24px;
    color: var(--light-purple);
    margin-bottom: 20px;
}

.version {
    color: var(--white);
    opacity: 0.7;
    font-style: italic;
}

/* Sections */
.section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.section h2 {
    font-size: 36px;
    color: var(--gold);
    margin-bottom: 30px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.section h3 {
    font-size: 24px;
    color: var(--light-purple);
    margin-top: 30px;
    margin-bottom: 15px;
}

.section h4 {
    font-size: 20px;
    color: var(--white);
    margin-top: 20px;
    margin-bottom: 10px;
}

.section p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.section ul, .section ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.section li {
    margin-bottom: 10px;
    opacity: 0.9;
}

/* Keywords */
.keywords {
    background: rgba(255, 215, 0, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    font-style: italic;
}

/* Table of Contents */
.toc ol {
    counter-reset: toc-counter;
    list-style: none;
    padding-left: 0;
}

.toc li {
    counter-increment: toc-counter;
    margin-bottom: 15px;
}

.toc li::before {
    content: counter(toc-counter) ". ";
    color: var(--gold);
    font-weight: bold;
}

.toc a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.toc a:hover {
    color: var(--gold);
}

/* Code Blocks */
.code-block {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--gold);
    border-radius: 10px;
    padding: 20px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    color: var(--gold);
    margin: 20px 0;
}

.code-container {
    margin: 20px 0;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

th {
    background: rgba(255, 215, 0, 0.1);
    color: var(--gold);
    font-weight: bold;
}

tr.highlight {
    background: rgba(255, 215, 0, 0.2);
}

tr:hover {
    background: rgba(255, 215, 0, 0.1);
}

.tokenomics-table {
    overflow-x: auto;
}

/* Comparison Table */
.comparison-table {
    margin: 20px 0;
}

/* Roadmap Phases */
.roadmap-phase {
    background: rgba(255, 215, 0, 0.05);
    border-left: 4px solid var(--gold);
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
}

.roadmap-phase h3 {
    color: var(--gold);
    margin-top: 0;
}

/* Team Members */
.team-member {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 3px solid var(--light-purple);
}

.team-member h3 {
    margin-top: 0;
}

/* Notes */
.note {
    font-style: italic;
    color: var(--light-purple);
    margin-top: 10px;
}

/* Welcome */
.welcome {
    font-size: 24px;
    color: var(--gold);
    text-align: center;
    margin: 40px 0;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

/* Legal Section */
.legal {
    background: rgba(255, 0, 0, 0.05);
    border: 2px solid rgba(255, 0, 0, 0.3);
}

.disclaimer {
    font-size: 12px;
    line-height: 1.8;
    opacity: 0.8;
    font-style: italic;
}

/* Contact List */
.contact-list {
    list-style: none;
    padding-left: 0;
}

.contact-list li {
    margin-bottom: 15px;
}

.contact-list a {
    color: var(--gold);
    text-decoration: none;
}

.contact-list a:hover {
    text-decoration: underline;
}

/* Footer */
.whitepaper-footer {
    text-align: center;
    padding: 60px 20px;
    margin-top: 60px;
}

.footer-logo {
    width: 100px;
    height: 100px;
    margin-bottom: 30px;
    opacity: 0.8;
}

.quote {
    font-size: 20px;
    font-style: italic;
    color: var(--gold);
    margin-bottom: 10px;
}

.attribution {
    margin-bottom: 30px;
    opacity: 0.8;
}

.end-note {
    font-style: italic;
    opacity: 0.7;
    margin-bottom: 20px;
}

.emojis {
    font-size: 36px;
    letter-spacing: 10px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gold);
    color: var(--black);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: none;
    z-index: 999;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .whitepaper-header h1 {
        font-size: 32px;
    }

    .whitepaper-header h2 {
        font-size: 18px;
    }

    .section {
        padding: 20px;
    }

    .section h2 {
        font-size: 28px;
    }

    .section h3 {
        font-size: 20px;
    }

    .nav-links {
        display: none;
    }

    table {
        font-size: 14px;
    }

    th, td {
        padding: 10px;
    }
}