/**
 * Bonzi Design System
 * Single source of truth for bonzivista.org styling
 *
 * Source files: index.html (dark), faq.html (light/manifesto)
 * Skill doc: src/fronts/web/skills/bonzi-web-design.skill/SKILL.md
 *
 * Color Palette:
 * - Purple: #7C3AED (primary accent)
 * - Purple Light: #A78BFA (hover states)
 * - Purple Dark: #5B21B6 (gradients)
 * - Black: #0A0A0A (dark bg)
 * - White: #FFFFFF (light bg)
 * - Gray: #71717A (body text)
 * - Gray Light: #F4F4F5 (light backgrounds)
 * - Gold: #d4af37 (connect button, links)
 * - Green: #10B981 (success/solutions ONLY)
 * - Red: #DC2626 (error/warning ONLY)
 *
 * Rules:
 * - Sharp corners on all cards/boxes (no border-radius)
 * - Red/green for STATUS only, never decorative
 * - 60-70% prose, 20-25% boxes, 5-10% accents
 */

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
    --purple: #7C3AED;
    --purple-light: #A78BFA;
    --purple-dark: #5B21B6;
    --white: #FFFFFF;
    --black: #0A0A0A;
    --gray: #71717A;
    --gray-light: #F4F4F5;
    --gold: #d4af37;
    --red: #DC2626;
    --red-light: #FEE2E2;
    --green: #10B981;
    --green-light: #D1FAE5;
}

/* ========================================
   BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--white);
    color: var(--black);
    line-height: 1.6;
}

/* ========================================
   DARK MODE
   ======================================== */
body.dark-mode {
    background: #0A0A0A;
    color: #FFFFFF;
}

body.dark-mode .gray-text,
body.dark-mode .faq-answer {
    color: #A1A1AA;
}

body.dark-mode .faq-answer strong,
body.dark-mode .list-brutal li strong {
    color: #FFFFFF;
}

body.dark-mode .highlight-box {
    background: #1F1F23;
    border-left-color: var(--purple);
}

body.dark-mode .solution-box {
    background: #0D2818;
    border-left-color: var(--green);
}

body.dark-mode .solution-box strong {
    color: #6EE7B7;
}

body.dark-mode .solution-box .accountability {
    color: #34D399;
    border-top-color: rgba(16, 185, 129, 0.3);
}

body.dark-mode .comparison-grid .problem {
    background: #2D1F1F;
    color: #FCA5A5;
}

body.dark-mode .comparison-grid .solution {
    background: #1F2D1F;
    color: #6EE7B7;
}

body.dark-mode .toc-list a {
    color: #FFFFFF;
}

body.dark-mode .category-title {
    color: var(--purple-light);
    border-bottom-color: var(--purple-light);
}

body.dark-mode .competitor-table td {
    border-bottom-color: #27272A;
}

body.dark-mode .competitor-table tr:nth-child(even) {
    background: #1F1F23;
}

body.dark-mode .faq-question {
    color: #FFFFFF;
}

body.dark-mode .nav-connect-btn {
    background: var(--gold);
    color: var(--black);
}

/* ========================================
   NAVIGATION
   ======================================== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

body.dark-mode nav {
    background: rgba(10,10,10,0.95);
    border-bottom-color: rgba(255,255,255,0.05);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 20px;
    color: var(--purple);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-logo-img {
    width: 28px;
    height: 28px;
}

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-link {
    color: var(--gray);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s;
}

.nav-link:hover {
    color: var(--purple);
    background: rgba(124, 58, 237, 0.08);
}

.nav-link.active {
    color: var(--purple);
    background: rgba(124, 58, 237, 0.1);
}

.nav-link.gated {
    color: var(--gold);
}

.nav-link.gated:hover {
    background: rgba(212, 175, 55, 0.1);
}

.nav-divider {
    width: 1px;
    height: 20px;
    background: rgba(0,0,0,0.1);
    margin: 0 8px;
}

body.dark-mode .nav-divider {
    background: rgba(255,255,255,0.1);
}

body.dark-mode .nav-link {
    color: #A1A1AA;
}

body.dark-mode .nav-link:hover {
    color: var(--purple-light);
    background: rgba(124, 58, 237, 0.15);
}

.nav-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-lang-select {
    background: transparent;
    border: 1px solid rgba(0,0,0,0.1);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

body.dark-mode .nav-lang-select {
    border-color: rgba(255,255,255,0.1);
    color: #FFFFFF;
    background: transparent;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    stroke: var(--gray);
}

.theme-toggle:hover svg {
    stroke: var(--purple);
}

body.dark-mode .theme-toggle svg {
    stroke: #A1A1AA;
}

.icon-sun { display: none; }
body.dark-mode .icon-moon { display: none; }
body.dark-mode .icon-sun { display: block; }

.nav-connect-btn {
    background: var(--black);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 0;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-connect-btn:hover {
    background: var(--purple);
    transform: translateY(-1px);
}

/* Connected state - wallet address shown */
.nav-connect-btn.connected {
    background: var(--purple);
    color: var(--white);
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.nav-connect-btn.connected:hover {
    background: var(--purple-dark);
}

/* Dark mode connected state */
body.dark-mode .nav-connect-btn.connected {
    background: var(--gold);
    color: var(--black);
}

body.dark-mode .nav-connect-btn.connected:hover {
    background: #c4a030;
}

/* Dropdown menus */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 0;
    padding: 8px 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: var(--gray);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.15s;
}

.nav-dropdown-menu a:hover {
    background: rgba(124, 58, 237, 0.08);
    color: var(--purple);
}

body.dark-mode .nav-dropdown-menu {
    background: #1F1F23;
    border-color: rgba(255,255,255,0.08);
}

body.dark-mode .nav-dropdown-menu a {
    color: #A1A1AA;
}

body.dark-mode .nav-dropdown-menu a:hover {
    background: rgba(124, 58, 237, 0.15);
    color: var(--purple-light);
}

/* ========================================
   HERO SECTION
   ======================================== */
.page-hero {
    padding: 160px 40px 60px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.page-hero h1 {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--black);
}

body.dark-mode .page-hero h1 {
    color: var(--white);
}

.warning-label {
    display: inline-block;
    background: #FEE2E2;
    color: #DC2626;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 6px 16px;
    border-radius: 4px;
    margin-bottom: 24px;
}

body.dark-mode .warning-label {
    background: rgba(239, 68, 68, 0.2);
    color: #FCA5A5;
}

.page-intro {
    font-size: 18px;
    color: var(--gray);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

body.dark-mode .page-intro {
    color: #A1A1AA;
}

.page-intro strong {
    color: var(--black);
}

body.dark-mode .page-intro strong {
    color: var(--white);
}

/* ========================================
   SLAP SECTION (Black Background)
   ======================================== */
.slap-section {
    background: var(--black);
    color: var(--white);
    padding: 80px 40px;
}

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

.slap-section h2 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--purple-light);
    margin-bottom: 32px;
}

.slap-text {
    font-size: 20px;
    line-height: 1.8;
    color: #D4D4D8;
}

.slap-text em {
    color: var(--purple-light);
    font-style: normal;
}

.slap-text strong {
    color: var(--white);
}

.stat-callout {
    background: var(--purple);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
}

/* Stats grid in slap section */
.carnage-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid #27272A;
}

.carnage-stat {
    text-align: center;
}

.carnage-stat .number {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--purple-light);
    line-height: 1;
}

.carnage-stat .label {
    display: block;
    font-size: 13px;
    color: #71717A;
    margin-top: 8px;
}

.carnage-stat .source {
    display: block;
    font-size: 10px;
    color: #52525B;
    margin-top: 4px;
}

/* ========================================
   CONTENT SECTIONS
   ======================================== */
.content-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 40px 80px;
}

.category-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--purple);
    margin-bottom: 40px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--purple);
}

.faq-item {
    margin-bottom: 48px;
}

.faq-question {
    font-size: 20px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 16px;
    line-height: 1.3;
}

.faq-answer {
    font-size: 16px;
    color: var(--gray);
    line-height: 1.8;
}

.faq-answer strong {
    color: var(--black);
}

.faq-answer em {
    color: var(--purple);
    font-style: normal;
    font-weight: 500;
}

/* ========================================
   BOX STYLES (Three-Box System)
   ======================================== */

/* Technical Box - "HOW IT WORKS" - Most common */
.technical-box,
.brutal-box {
    background: var(--black);
    color: var(--white);
    padding: 24px 28px;
    margin: 20px 0;
    font-size: 15px;
    line-height: 1.7;
    border-left: 4px solid var(--purple);
    position: relative;
}

.technical-box::before {
    content: "HOW IT WORKS";
    position: absolute;
    top: -10px;
    left: 16px;
    background: var(--purple);
    color: white;
    padding: 4px 12px;
    font-weight: bold;
    font-size: 10px;
    letter-spacing: 1px;
}

.brutal-box {
    border-left-color: var(--red);
}

.brutal-box em,
.technical-box em {
    color: var(--purple-light);
}

/* Feature Box - "KEY FEATURE" */
.feature-box {
    background: #F5EEF8;
    border-left: 4px solid var(--purple);
    padding: 24px 28px;
    margin: 20px 0;
    font-size: 15px;
    line-height: 1.7;
    position: relative;
}

.feature-box::before {
    content: "KEY FEATURE";
    position: absolute;
    top: -10px;
    left: 16px;
    background: var(--purple);
    color: white;
    padding: 4px 12px;
    font-weight: bold;
    font-size: 10px;
    letter-spacing: 1px;
}

body.dark-mode .feature-box {
    background: rgba(124, 58, 237, 0.15);
}

/* Highlight Box - Simple purple border */
.highlight-box {
    background: var(--gray-light);
    border-left: 3px solid var(--purple);
    padding: 20px 24px;
    margin: 20px 0;
    font-size: 15px;
}

/* Solution Box - Green/success */
.solution-box {
    background: #ECFDF5;
    border-left: 4px solid var(--green);
    padding: 24px 28px;
    margin: 20px 0;
    font-size: 15px;
    line-height: 1.7;
}

.solution-box strong {
    color: #065F46;
}

.solution-box .accountability {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(16, 185, 129, 0.3);
    font-size: 13px;
    color: #047857;
}

/* Advantage Box - RARE, gold accent */
.advantage-box {
    background: var(--gray-light);
    border-left: 4px solid var(--gold);
    padding: 24px 28px;
    margin: 20px 0;
    font-size: 15px;
    line-height: 1.7;
    position: relative;
}

.advantage-box::before {
    content: "ADVANTAGE";
    position: absolute;
    top: -10px;
    left: 16px;
    background: var(--black);
    color: var(--gold);
    padding: 4px 12px;
    font-weight: bold;
    font-size: 10px;
    letter-spacing: 1px;
}

body.dark-mode .advantage-box {
    background: #1F1F23;
}

/* ========================================
   COMPARISON GRID
   ======================================== */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 24px 0;
}

.comparison-grid .problem {
    background: #FEE2E2;
    color: #991B1B;
    padding: 20px;
    border-radius: 0;
    font-size: 14px;
}

.comparison-grid .solution {
    background: #D1FAE5;
    color: #065F46;
    padding: 20px;
    border-radius: 0;
    font-size: 14px;
}

.comparison-grid .problem strong,
.comparison-grid .solution strong {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   LISTS
   ======================================== */
.list-brutal {
    margin: 16px 0 16px 24px;
}

.list-brutal li {
    margin-bottom: 12px;
    color: var(--gray);
}

.list-brutal li strong {
    color: var(--black);
}

body.dark-mode .list-brutal li {
    color: #A1A1AA;
}

body.dark-mode .list-brutal li strong {
    color: #FFFFFF;
}

/* ========================================
   STAT HIGHLIGHTS
   ======================================== */
.stat-highlight {
    display: inline-block;
    background: var(--purple);
    color: white;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
}

/* ========================================
   MARKET BOX (Purple gradient)
   ======================================== */
.market-box {
    background: linear-gradient(135deg, var(--purple-dark), var(--purple));
    color: var(--white);
    padding: 32px;
    margin: 24px 0;
    border-radius: 0;
}

.market-box h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
    margin-bottom: 16px;
}

.market-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.market-stat {
    text-align: center;
}

.market-stat .value {
    font-size: 28px;
    font-weight: 800;
    display: block;
}

.market-stat .label {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 4px;
}

/* ========================================
   QUOTE BLOCK
   ======================================== */
.manifesto-quote {
    background: linear-gradient(135deg, var(--purple-dark), var(--purple));
    color: var(--white);
    padding: 48px;
    margin: 60px 0;
    text-align: center;
    border-radius: 0;
}

.manifesto-quote blockquote {
    font-size: 28px;
    font-weight: 300;
    line-height: 1.4;
    max-width: 600px;
    margin: 0 auto 24px;
}

.manifesto-quote cite {
    font-size: 14px;
    opacity: 0.8;
    font-style: normal;
}

/* ========================================
   TABLES
   ======================================== */
.competitor-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
}

.competitor-table th {
    background: var(--black);
    color: var(--white);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
}

.competitor-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-light);
}

.competitor-table tr:nth-child(even) {
    background: var(--gray-light);
}

/* ========================================
   TABLE OF CONTENTS
   ======================================== */
.toc-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px 60px;
}

.toc-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gray);
    margin-bottom: 20px;
}

.toc-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 32px;
}

.toc-list a {
    color: var(--black);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid transparent;
    transition: all 0.2s;
}

.toc-list a:hover {
    color: var(--purple);
    border-bottom-color: var(--purple);
}

.toc-list a::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--purple);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    background: var(--black);
    color: var(--white);
    padding: 32px 24px;
    text-align: center;
    font-size: 13px;
}

footer a {
    color: var(--white);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.footer-main {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 12px;
}

.footer-sponsor,
.footer-credit,
.footer-support {
    color: #71717A;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.footer-sep {
    color: #71717A;
}

.footer-legal {
    font-size: 12px;
    color: #71717A;
}

.footer-legal a {
    color: #71717A;
    text-decoration: none;
}

.footer-legal a:hover {
    color: var(--white);
}

.sponsor-logo {
    color: var(--white);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn-primary {
    display: inline-block;
    background: var(--purple);
    color: var(--white);
    padding: 14px 28px;
    border-radius: 0;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--purple-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--purple);
    padding: 14px 28px;
    border-radius: 0;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s;
    border: 2px solid var(--purple);
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(124, 58, 237, 0.1);
}

body.dark-mode .btn-secondary {
    color: var(--purple-light);
    border-color: var(--purple-light);
}

.btn-gold {
    background: var(--gold);
    color: var(--black);
}

.btn-gold:hover {
    background: #E5C158;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

/* ========================================
   CARDS
   ======================================== */
.card {
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 0;
    padding: 24px;
    transition: all 0.2s;
}

.card:hover {
    border-color: var(--purple);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.1);
}

body.dark-mode .card {
    background: #1F1F23;
    border-color: rgba(255,255,255,0.08);
}

/* ========================================
   WIN98 EASTER EGG POPUP
   ======================================== */
.win98-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #c0c0c0;
    border: 2px outset #ffffff;
    box-shadow: 2px 2px 0 #808080, 0 20px 60px rgba(0,0,0,0.4);
    font-family: 'Segoe UI', Tahoma, sans-serif;
    z-index: 10000;
    min-width: 320px;
    max-width: 400px;
}

.win98-popup .title-bar {
    background: linear-gradient(90deg, #000080, #1084d0);
    color: white;
    padding: 4px 8px;
    font-weight: bold;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.win98-popup .title-bar .title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.win98-popup .close-btn {
    background: #c0c0c0;
    border: 2px outset #ffffff;
    width: 16px;
    height: 14px;
    font-size: 10px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.win98-popup .close-btn:hover {
    background: #d4d4d4;
}

.win98-popup .close-btn:active {
    border-style: inset;
}

.win98-popup .content {
    padding: 16px 20px;
    font-size: 12px;
    line-height: 1.5;
    color: #000000;
}

.win98-popup .content p {
    margin-bottom: 12px;
}

.win98-popup .buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 12px 20px 16px;
}

.win98-popup .btn-98 {
    background: #c0c0c0;
    border: 2px outset #ffffff;
    padding: 4px 24px;
    font-size: 11px;
    cursor: pointer;
    min-width: 75px;
}

.win98-popup .btn-98:hover {
    background: #d4d4d4;
}

.win98-popup .btn-98:active {
    border-style: inset;
}

.win98-popup .btn-98.primary {
    font-weight: bold;
}

.win98-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
}

/* Progress bar for Win98 popup */
.win98-progress {
    background: #ffffff;
    border: 1px inset #808080;
    height: 16px;
    margin: 12px 0;
    overflow: hidden;
}

.win98-progress-bar {
    background: #000080;
    height: 100%;
    width: 0%;
    transition: width 0.3s;
}

/* ========================================
   STATUS INDICATORS (Use sparingly!)
   ======================================== */
.status-success {
    color: var(--green);
}

.status-error {
    color: var(--red);
}

.badge-success {
    background: rgba(39, 174, 96, 0.1);
    color: var(--green);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.badge-error {
    background: rgba(231, 76, 60, 0.1);
    color: var(--red);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.badge-pending {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

/* ========================================
   TOKEN GATE SECTION
   ======================================== */
.token-gate {
    background: var(--gray-light);
    border: 2px dashed rgba(124, 58, 237, 0.3);
    border-radius: 0;
    padding: 32px;
    text-align: center;
    margin: 24px 0;
}

body.dark-mode .token-gate {
    background: #1F1F23;
    border-color: rgba(124, 58, 237, 0.4);
}

.token-gate h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--purple);
    margin-bottom: 16px;
}

.token-gate p {
    color: var(--gray);
    margin-bottom: 20px;
}

body.dark-mode .token-gate p {
    color: #A1A1AA;
}

/* ========================================
   LEADERBOARD
   ======================================== */
.leaderboard {
    margin: 24px 0;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

body.dark-mode .leaderboard-item {
    border-bottom-color: rgba(255,255,255,0.05);
}

.leaderboard-rank {
    font-size: 20px;
    width: 40px;
    text-align: center;
}

.leaderboard-info {
    flex: 1;
}

.leaderboard-name {
    font-weight: 600;
    color: var(--black);
}

body.dark-mode .leaderboard-name {
    color: var(--white);
}

.leaderboard-stats {
    font-size: 13px;
    color: var(--gray);
}

body.dark-mode .leaderboard-stats {
    color: #A1A1AA;
}

.leaderboard-points {
    font-weight: 700;
    font-size: 18px;
    color: var(--purple);
}

/* ========================================
   PERKS TIERS
   ======================================== */
.perks-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 24px 0;
}

.perk-card {
    background: var(--gray-light);
    border-radius: 0;
    padding: 20px;
    border-left: 4px solid var(--purple);
}

body.dark-mode .perk-card {
    background: #1F1F23;
}

.perk-card.locked {
    opacity: 0.5;
    border-left-color: var(--gray);
}

.perk-points {
    font-size: 12px;
    font-weight: 700;
    color: var(--purple);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.perk-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.perk-desc {
    font-size: 13px;
    color: var(--gray);
}

body.dark-mode .perk-desc {
    color: #A1A1AA;
}

/* ========================================
   SOUND TOGGLE (Bottom Right)
   ======================================== */
.sound-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: var(--purple);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
    transition: background 0.2s, box-shadow 0.2s;
}

.sound-toggle:hover {
    background: var(--purple-dark);
    box-shadow: 0 6px 24px rgba(124, 58, 237, 0.5);
}

.sound-toggle svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.sound-toggle.muted {
    background: #71717A;
    box-shadow: 0 4px 20px rgba(113, 113, 122, 0.3);
}

.sound-toggle .sound-on { display: block; }
.sound-toggle .sound-off { display: none; }
.sound-toggle.muted .sound-on { display: none; }
.sound-toggle.muted .sound-off { display: block; }

/* Sound hint emojis above toggle */
.sound-hint {
    position: fixed;
    bottom: 80px;
    right: 24px;
    width: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 999;
    animation: hint-pulse 2s ease-in-out infinite;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.sound-hint.hidden {
    opacity: 0;
}

.sound-hint .emoji {
    font-size: 18px;
    line-height: 1.2;
    display: block;
    width: 100%;
    text-align: center;
}

.sound-hint .arrow {
    font-size: 12px;
    color: var(--purple);
    margin-top: 4px;
    display: block;
    width: 100%;
    text-align: center;
}

@keyframes hint-pulse {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(-4px); opacity: 0.8; }
}

/* ========================================
   RESPONSIVE DESIGN SYSTEM

   Breakpoints:
   - 1440px: Ultra-wide / large monitors
   - 1024px: Tablet landscape / small desktop
   - 768px:  Tablet portrait
   - 480px:  Mobile
   ======================================== */

/* --- LARGE SCREEN CONTAINMENT (1440px+) ---
   Prevents ultra-wide stretching on large monitors
   Content stays readable, doesn't span full width */

.container,
.content-container,
.page-hero,
.slap-content,
.toc-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Full-width sections still have contained content */
.slap-section .slap-content,
.manifesto-quote blockquote {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Cards and grids max out at readable widths */
.carnage-stats,
.market-stats,
.perks-grid,
.comparison-grid {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* --- ULTRA-WIDE (1440px+) ---
   Typography scaling for large screens */
@media (min-width: 1440px) {
    html {
        font-size: 18px; /* Slight scale-up for readability */
    }

    .page-hero h1 {
        font-size: 64px;
    }

    .slap-text {
        font-size: 22px;
    }

    .manifesto-quote blockquote {
        font-size: 32px;
    }
}

/* --- TABLET LANDSCAPE / SMALL DESKTOP (1024px) --- */
@media (max-width: 1024px) {
    .page-hero h1 {
        font-size: 48px;
        letter-spacing: -1.5px;
    }

    .carnage-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .market-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- TABLET PORTRAIT (768px) --- */
@media (max-width: 768px) {
    html {
        font-size: 16px; /* Reset to base */
    }

    nav {
        padding: 8px 12px;
    }

    .nav-links {
        display: none; /* Show hamburger menu instead */
    }

    .page-hero {
        padding: 120px 24px 40px;
    }

    .page-hero h1 {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .page-intro {
        font-size: 16px;
    }

    .slap-section {
        padding: 60px 24px;
    }

    .slap-text {
        font-size: 18px;
    }

    .carnage-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .carnage-stat .number {
        font-size: 28px;
    }

    .content-container {
        padding: 40px 24px 60px;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .market-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .manifesto-quote {
        padding: 32px 24px;
    }

    .manifesto-quote blockquote {
        font-size: 20px;
    }

    .competitor-table {
        font-size: 12px;
    }

    .competitor-table th,
    .competitor-table td {
        padding: 8px 12px;
    }

    .toc-container {
        padding: 0 24px 40px;
    }

    .toc-list {
        grid-template-columns: 1fr;
    }

    .perks-grid {
        grid-template-columns: 1fr;
    }

    /* Boxes need less padding on mobile */
    .technical-box,
    .brutal-box,
    .feature-box,
    .highlight-box,
    .solution-box,
    .advantage-box {
        padding: 20px;
    }

    /* Buttons stack on mobile */
    .btn-group {
        flex-direction: column;
        gap: 12px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
}

/* --- MOBILE (480px) --- */
@media (max-width: 480px) {
    .page-hero {
        padding: 100px 16px 32px;
    }

    .page-hero h1 {
        font-size: 28px;
    }

    .slap-section {
        padding: 40px 16px;
    }

    .slap-text {
        font-size: 16px;
    }

    .carnage-stats {
        grid-template-columns: 1fr;
    }

    .carnage-stat .number {
        font-size: 24px;
    }

    .content-container {
        padding: 32px 16px 48px;
    }

    .faq-question {
        font-size: 18px;
    }

    .faq-answer {
        font-size: 15px;
    }

    .manifesto-quote {
        padding: 24px 16px;
    }

    .manifesto-quote blockquote {
        font-size: 18px;
    }

    /* Nav stays minimal */
    nav {
        padding: 8px 12px;
    }

    .nav-logo {
        font-size: 18px;
    }

    .nav-connect-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* --- TOUCH DEVICES --- */
@media (hover: none) {
    .btn-primary:hover,
    .btn-secondary:hover,
    .nav-connect-btn:hover {
        transform: none;
    }
}

/* --- UTILITY CLASSES --- */
.container {
    width: 100%;
    padding-left: 24px;
    padding-right: 24px;
}

.container-narrow {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.container-wide {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* Hide/show at breakpoints */
.hide-mobile { display: block; }
.show-mobile { display: none; }

@media (max-width: 768px) {
    .hide-mobile { display: none; }
    .show-mobile { display: block; }
}

/* ========================================
   GLOSSARY TOOLTIPS
   Plain text for newcomers, technical depth on hover.
   Usage: <span class="term" data-tip="DEX - Decentralized Exchange on Ethereum">trading platform</span>
   ======================================== */
.term {
    border-bottom: 1px dotted #71717A;
    cursor: help;
    position: relative;
    display: inline;
}
.term:hover::after,
.term:focus::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 0;
    background: #1F1F23;
    color: #FAFAFA;
    border: 1px solid #7C3AED;
    padding: 6px 10px;
    font-size: 11px;
    line-height: 1.3;
    white-space: normal;
    width: max-content;
    max-width: 200px;
    z-index: 1000;
    pointer-events: none;
}
.term:hover::before,
.term:focus::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 12px;
    border: 4px solid transparent;
    border-top-color: #7C3AED;
    z-index: 1001;
    pointer-events: none;
}
/* Light mode */
body:not(.dark-mode) .term:hover::after,
body:not(.dark-mode) .term:focus::after {
    background: #FFFFFF;
    color: #0A0A0A;
    border-color: #7C3AED;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
