/* --- UNIVERSAL RESET & SMOOTH SCROLL --- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

/* --- LOGO SECTION - CENTERED & ANIMATED --- */
#logo {
    transition: transform 0.5s ease-in-out, filter 0.5s ease-in-out; 
    cursor: pointer;
    position: relative;
    width: 560px; 
    max-width: 80vw; 
    display: block;      
    margin: 40px auto;   
    text-align: center;  
}

#logo:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(45, 212, 191, 0.4));
}

#logo img {
    width: 100%;
    height: auto;
    display: inline-block;
}

/* --- WHITEPAPER CONTAINER --- */
.whitepaper-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 10;
}

/* --- THE GLASS BOX (CONTENT) --- */
.whitepaper-content {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 60px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    line-height: 1.8;
    color: #cbd5e1;
}

/* --- TABLE OF CONTENTS (STRICT VERTICAL) --- */
.whitepaper-toc {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0 60px 0;
}

.whitepaper-toc h3 {
    margin-top: 0;
    font-size: 1.4rem;
    color: #ffffff;
    border-bottom: 2px solid #2dd4bf;
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.whitepaper-toc ul {
    /* FORCE VERTICAL LAYOUT */
    display: flex !important;
    flex-direction: column !important;
    list-style: none !important;
    padding-left: 0 !important;
    gap: 5px !important;
}

.whitepaper-toc li {
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

.whitepaper-toc a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 1.05rem;
    display: block;
    padding: 10px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.whitepaper-toc a:hover {
    color: #2dd4bf;
    background: rgba(45, 212, 191, 0.08);
    padding-left: 25px;
}

/* --- TYPOGRAPHY --- */
.whitepaper-content h1 {
    font-size: 2.5rem;
    color: #ffffff;
    text-align: center;
    margin-bottom: 10px;
}

.whitepaper-content .subtitle {
    text-align: center; 
    font-size: 1.2rem; 
    color: #2dd4bf; 
    margin-bottom: 40px;
}

.whitepaper-content h2 {
    color: #f8fafc;
    margin-top: 50px;
    margin-bottom: 15px;
    border-left: 4px solid #14b8a6;
    padding-left: 15px;
    font-size: 1.8rem;
}

.whitepaper-content h3 {
    font-size: 1.2rem;
    color: #2dd4bf;
    margin-top: 30px;
}

.whitepaper-content p {
    margin-bottom: 20px;
}

.whitepaper-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
    list-style: disc;
}

/* --- MISC ELEMENTS --- */
.whitepaper-table {
    background: rgba(30, 41, 59, 0.5);
    padding: 20px;
    border-radius: 8px;
    border: 1px dashed #334155;
    font-family: monospace;
    text-align: center;
    margin: 30px 0;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .whitepaper-content {
        padding: 30px 20px;
    }
    .whitepaper-content h1 {
        font-size: 1.8rem;
    }
    #logo {
        width: 100%;
    }
}