/* ============================================
   ADHD DAO - Matrix Theme Stylesheet
   ============================================ */

/* CSS Variables */
:root {
    /* Colors */
    --primary: #bbf168;
    --primary-dark: #9ed145;
    --primary-light: #d4f7a0;
    --primary-glow: rgba(187, 241, 104, 0.5);
    --secondary: #0d0d0d;
    --background: #000000;
    --surface: #0a0a0a;
    --surface-light: #111111;
    --text: #e0e0e0;
    --text-muted: #888888;
    --accent: #d9f772;
    --warning: #ffcc00;
    --error: #ff3366;
    
    /* Typography */
    --font-display: 'Orbitron', monospace;
    --font-body: 'Rajdhani', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
    
    /* Spacing */
    --section-padding: 120px 0;
    --container-max: 1200px;
    
    /* Animation */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Effects */
    --glow-sm: 0 0 10px var(--primary-glow);
    --glow-md: 0 0 20px var(--primary-glow);
    --glow-lg: 0 0 40px var(--primary-glow);
    --border-glow: 0 0 10px var(--primary-glow), inset 0 0 10px rgba(187, 241, 104, 0.1);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--background);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

body {
    font-family: var(--font-body);
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Matrix Rain Canvas */
#matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Section */
.section {
    padding: var(--section-padding);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-tag {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--primary);
    letter-spacing: 3px;
    display: block;
    margin-bottom: 16px;
    text-shadow: var(--glow-sm);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: 2px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.highlight {
    color: var(--primary);
    text-shadow: var(--glow-sm);
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 0;
    transition: all var(--transition-base);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(187, 241, 104, 0.1);
}

.navbar.scrolled {
    padding: 8px 0;
    background: rgba(0, 0, 0, 0.95);
    border-bottom-color: rgba(187, 241, 104, 0.2);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 24px;
    color: var(--text);
}

.logo-icon-wrapper {
    width: 55px;
    height: 55px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-icon {
    width: 190px;
    height: 190px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px var(--primary-glow));
    animation: pulse-glow 2s ease-in-out infinite;
    transition: all var(--transition-base);
}

.logo:hover .logo-icon {
    filter: drop-shadow(0 0 20px var(--primary-glow)) drop-shadow(0 0 35px var(--primary));
}

@keyframes pulse-glow {
    0%, 100% { filter: drop-shadow(0 0 5px var(--primary-glow)); }
    50% { filter: drop-shadow(0 0 15px var(--primary-glow)) drop-shadow(0 0 25px var(--primary-glow)); }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 16px;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 1px;
    position: relative;
    transition: all var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    box-shadow: var(--glow-sm);
    transition: width var(--transition-base);
}

.nav-link:hover {
    color: var(--primary);
    text-shadow: var(--glow-sm);
}

.nav-link:hover::after {
    width: 100%;
}

/* CTA Button */
.cta-button, .primary-button {
    position: relative;
    padding: 12px 28px;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--background);
    background: var(--primary);
    border: none;
    cursor: pointer;
    overflow: hidden;
    transition: all var(--transition-base);
    text-transform: uppercase;
}

.cta-button:hover, .primary-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-md);
}

.glow-button {
    position: relative;
}

.glow-button::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--primary), var(--accent), var(--primary));
    background-size: 200% 200%;
    z-index: -1;
    filter: blur(10px);
    opacity: 0;
    transition: opacity var(--transition-base);
    animation: gradient-rotate 3s linear infinite;
}

.glow-button:hover::before {
    opacity: 1;
}

@keyframes gradient-rotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.button-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.glow-button:hover .button-glow {
    opacity: 1;
}

.secondary-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--primary);
    background: transparent;
    border: 2px solid var(--primary);
    cursor: pointer;
    transition: all var(--transition-base);
    text-transform: uppercase;
}

.secondary-button:hover {
    background: rgba(187, 241, 104, 0.1);
    box-shadow: var(--border-glow);
    transform: translateY(-2px);
}

.secondary-button .arrow-icon {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-base);
}

.secondary-button:hover .arrow-icon {
    transform: translateX(4px);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--primary);
    transition: all var(--transition-base);
    transform-origin: center;
}

/* Hamburger to X animation */
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.mobile-menu-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Mobile Nav Links */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--surface);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
        padding: 80px 40px;
        transition: right 0.3s ease;
        z-index: 1001;
        border-left: 1px solid rgba(187, 241, 104, 0.2);
        display: flex;
    }

    .nav-links.mobile-open {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(187, 241, 104, 0.1);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-link {
        display: block;
        padding: 20px;
        font-size: 18px;
        color: var(--text);
    }

    .nav-link:hover {
        background: rgba(187, 241, 104, 0.05);
    }

    .nav-link::after {
        display: none;
    }

    /* Show CTA button in navbar on mobile */
    .navbar .cta-button {
        display: none;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 24px 60px;
    position: relative;
}

.hero-content {
    max-width: 900px;
}

/* Glitch Effect */
.glitch-wrapper {
    position: relative;
}

.glitch {
    font-family: var(--font-display);
    font-size: clamp(48px, 12vw, 120px);
    font-weight: 900;
    letter-spacing: 8px;
    color: var(--text);
    position: relative;
    text-shadow: var(--glow-sm);
    animation: glitch-skew 4s infinite linear alternate-reverse;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    color: var(--primary);
    animation: glitch-effect 3s infinite linear alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
    transform: translate(-2px, 2px);
}

.glitch::after {
    color: var(--accent);
    animation: glitch-effect 2s infinite linear alternate-reverse;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
    transform: translate(2px, -2px);
}

@keyframes glitch-effect {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-3px, 3px); }
    40% { transform: translate(-3px, -3px); }
    60% { transform: translate(3px, 3px); }
    80% { transform: translate(3px, -3px); }
}

@keyframes glitch-skew {
    0%, 100% { transform: skew(0deg); }
    25% { transform: skew(0.5deg); }
    75% { transform: skew(-0.5deg); }
}

.hero-subtitle {
    font-family: var(--font-mono);
    font-size: clamp(16px, 3vw, 24px);
    color: var(--primary);
    margin: 24px 0;
    min-height: 36px;
}

.cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-description {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.primary-button.large {
    padding: 18px 40px;
    font-size: 16px;
}

/* Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    color: var(--primary);
    text-shadow: var(--glow-sm);
    display: block;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--primary), transparent);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 12px;
    letter-spacing: 2px;
    animation: float 2s ease-in-out infinite;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--primary);
    border-radius: 13px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* ============================================
   ABOUT SECTION
   ============================================ */

/* ============================================
   Thesis Modal/Popup
   ============================================ */

.thesis-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.thesis-modal.active {
    opacity: 1;
    visibility: visible;
}

.thesis-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
}

.thesis-modal-content {
    position: relative;
    width: 90%;
    max-width: 850px;
    max-height: 85vh;
    background: linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
    border: 1px solid rgba(187, 241, 104, 0.2);
    border-radius: 20px;
    overflow: hidden;
    transform: scale(0.9) translateY(30px);
    transition: transform 0.4s ease;
    box-shadow: 
        0 0 60px rgba(187, 241, 104, 0.1),
        0 30px 60px rgba(0, 0, 0, 0.5);
}

.thesis-modal.active .thesis-modal-content {
    transform: scale(1) translateY(0);
}

.thesis-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(187, 241, 104, 0.1);
    border: 1px solid rgba(187, 241, 104, 0.3);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.thesis-modal-close svg {
    width: 20px;
    height: 20px;
    stroke: var(--primary);
}

.thesis-modal-close:hover {
    background: var(--primary);
    transform: rotate(90deg);
}

.thesis-modal-close:hover svg {
    stroke: var(--background);
}

.thesis-modal-header {
    padding: 50px 60px 30px;
    text-align: center;
    border-bottom: 1px solid rgba(187, 241, 104, 0.1);
}

.thesis-modal-header .section-tag {
    display: block;
    margin-bottom: 15px;
}

.thesis-modal-header h2 {
    font-family: var(--font-display);
    font-size: 32px;
    color: var(--text);
    letter-spacing: 2px;
}

.thesis-modal-header h2 .highlight {
    color: var(--primary);
}

.thesis-modal-body {
    padding: 40px 60px 50px;
    max-height: calc(85vh - 180px);
    overflow-y: auto;
}

/* Custom scrollbar for modal */
.thesis-modal-body::-webkit-scrollbar {
    width: 6px;
}

.thesis-modal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.thesis-modal-body::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.thesis-modal-body p {
    color: var(--text);
    font-size: 16px;
    line-height: 1.95;
    margin-bottom: 24px;
    text-align: justify;
}

.thesis-modal-body strong {
    color: var(--primary);
    font-weight: 600;
}

.thesis-modal-body em {
    color: var(--text-muted);
    font-style: italic;
}

.thesis-modal-body blockquote {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--primary);
    text-align: center;
    padding: 35px 20px;
    margin: 35px 0;
    border-top: 1px solid rgba(187, 241, 104, 0.2);
    border-bottom: 1px solid rgba(187, 241, 104, 0.2);
    letter-spacing: 3px;
    text-transform: uppercase;
    background: rgba(187, 241, 104, 0.03);
}

.thesis-principles {
    display: flex;
    justify-content: center;
    gap: 35px;
    flex-wrap: wrap;
    margin-top: 40px;
    padding-top: 35px;
    border-top: 1px solid rgba(187, 241, 104, 0.15);
}

.thesis-principles span {
    color: var(--text-muted);
    font-size: 14px;
    letter-spacing: 0.5px;
}

.thesis-principles strong {
    color: var(--primary);
    font-family: var(--font-display);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Body scroll lock when modal is open */
body.modal-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .thesis-modal-content {
        width: 95%;
        max-height: 90vh;
        border-radius: 16px;
    }
    
    .thesis-modal-header {
        padding: 40px 25px 25px;
    }
    
    .thesis-modal-header h2 {
        font-size: 22px;
    }
    
    .thesis-modal-body {
        padding: 25px;
        max-height: calc(90vh - 150px);
    }
    
    .thesis-modal-body p {
        font-size: 14px;
        line-height: 1.85;
        text-align: left;
        margin-bottom: 18px;
    }
    
    .thesis-modal-body blockquote {
        font-size: 16px;
        padding: 25px 15px;
        letter-spacing: 2px;
    }
    
    .thesis-principles {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .thesis-modal-close {
        top: 15px;
        right: 15px;
        width: 38px;
        height: 38px;
    }
}

/* ============================================
   About Section
   ============================================ */

.about {
    background: linear-gradient(180deg, var(--background) 0%, var(--surface) 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

.about-card {
    background: var(--surface-light);
    border: 1px solid rgba(187, 241, 104, 0.1);
    padding: 40px 32px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}

.about-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(187, 241, 104, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.about-card:hover {
    border-color: rgba(187, 241, 104, 0.3);
    transform: translateY(-8px);
    box-shadow: var(--glow-sm), 0 20px 40px rgba(0, 0, 0, 0.3);
}

.about-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
}

.card-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--primary);
    stroke-width: 1.5;
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

.about-card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.about-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
}

/* ============================================
   SCIENCE SECTION
   ============================================ */

.science {
    background: var(--surface);
    overflow: hidden;
}

.science-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Brain Visualization */
.science-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 500px;
}

.brain-visualization {
    width: 100%;
    max-width: 550px;
    height: 500px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#neural-canvas {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Ambient glow behind brain */
.brain-visualization::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 380px;
    background: radial-gradient(ellipse at center, rgba(187, 241, 104, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: ambient-pulse 4s ease-in-out infinite;
}

@keyframes ambient-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* Science Steps */
.science-steps {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.step {
    display: flex;
    gap: 24px;
    padding: 24px;
    background: var(--surface-light);
    border-left: 3px solid var(--primary);
    transition: all var(--transition-base);
}

.step:hover {
    background: rgba(187, 241, 104, 0.05);
    border-left-width: 5px;
    transform: translateX(8px);
}

.step-number {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    text-shadow: var(--glow-sm);
    line-height: 1;
}

.step-content h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.step-content p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
}

/* ============================================
   TOKEN SECTION
   ============================================ */

.token {
    background: linear-gradient(180deg, var(--surface) 0%, var(--background) 100%);
}

.token-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: center;
}

.token-visual {
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.token-3d {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    animation: token-rotate 10s linear infinite;
}

@keyframes token-rotate {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.token-face {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    backface-visibility: hidden;
    border: 4px solid var(--primary);
    box-shadow: var(--glow-md), inset 0 0 30px rgba(187, 241, 104, 0.2);
}

.token-face.front {
    background: linear-gradient(135deg, var(--surface-light) 0%, var(--background) 100%);
}

.token-face.back {
    background: linear-gradient(135deg, var(--background) 0%, var(--surface-light) 100%);
    transform: rotateY(180deg);
}

.token-symbol {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 900;
    color: var(--primary);
    text-shadow: var(--glow-md);
}

.token-icon {
    font-size: 64px;
    color: var(--primary);
    text-shadow: var(--glow-md);
}

.token-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    filter: blur(30px);
    animation: token-glow-pulse 3s ease-in-out infinite;
}

@keyframes token-glow-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.token-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.token-stat {
    background: var(--surface-light);
    border: 1px solid rgba(187, 241, 104, 0.1);
    padding: 24px;
    text-align: center;
    transition: all var(--transition-base);
}

.token-stat:hover {
    border-color: var(--primary);
    box-shadow: var(--border-glow);
}

.token-stat-value {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    text-shadow: var(--glow-sm);
    display: block;
    margin-bottom: 8px;
}

.token-stat-label {
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.token-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-size: 15px;
}

.feature-icon {
    color: var(--primary);
    text-shadow: var(--glow-sm);
}

/* ============================================
   STAKEHOLDERS SECTION
   ============================================ */

.stakeholders {
    background: var(--background);
}

.stakeholder-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.stakeholder-card {
    background: var(--surface-light);
    border: 1px solid rgba(187, 241, 104, 0.1);
    padding: 40px 32px;
    position: relative;
    transition: all var(--transition-base);
}

.stakeholder-card:hover {
    border-color: rgba(187, 241, 104, 0.3);
    transform: translateY(-8px);
    box-shadow: var(--glow-sm), 0 20px 40px rgba(0, 0, 0, 0.3);
}

.stakeholder-card.featured {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(187, 241, 104, 0.05) 0%, var(--surface-light) 100%);
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--background);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 16px;
    letter-spacing: 1px;
}

.card-header {
    margin-bottom: 24px;
}

.card-icon-large {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
}

.card-icon-large svg {
    width: 100%;
    height: 100%;
    stroke: var(--primary);
    stroke-width: 1.5;
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

.card-tag {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--primary);
    letter-spacing: 2px;
}

.stakeholder-card h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.stakeholder-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 32px;
}

.card-button {
    width: 100%;
    padding: 14px 24px;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--background);
    background: var(--primary);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
}

.card-button:hover {
    box-shadow: var(--glow-md);
}

/* ============================================
   TEAM SECTION
   ============================================ */

.team {
    background: linear-gradient(180deg, var(--background) 0%, var(--surface) 100%);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.team-card {
    background: var(--surface-light);
    border: 1px solid rgba(187, 241, 104, 0.1);
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition-base);
}

.team-card:hover {
    border-color: rgba(187, 241, 104, 0.3);
    transform: translateY(-8px);
    box-shadow: var(--glow-sm), 0 20px 40px rgba(0, 0, 0, 0.3);
}

.team-avatar {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--background);
}

.avatar-ring {
    position: absolute;
    inset: -4px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    opacity: 0;
    transition: all var(--transition-base);
}

.team-card:hover .avatar-ring {
    opacity: 1;
    animation: ring-rotate 10s linear infinite;
}

@keyframes ring-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.team-card h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.team-role {
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 16px;
}

.team-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.team-socials {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.social-link {
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(187, 241, 104, 0.3);
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    transition: all var(--transition-base);
}

.social-link:hover {
    background: var(--primary);
    color: var(--background);
    border-color: var(--primary);
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta {
    padding: 160px 0;
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    opacity: 0.3;
}

.cta-grid {
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--primary) 1px, transparent 1px),
        linear-gradient(90deg, var(--primary) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% { transform: perspective(1000px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(1000px) rotateX(60deg) translateY(60px); }
}

.cta-content {
    position: relative;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: 2px;
}

.cta-text {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.cta-buttons {
    margin-bottom: 48px;
}

.cta-socials {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.social-btn {
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(187, 241, 104, 0.3);
    color: var(--text);
    transition: all var(--transition-base);
}

.social-btn svg {
    width: 20px;
    height: 20px;
}

.social-btn:hover {
    background: var(--primary);
    color: var(--background);
    border-color: var(--primary);
    box-shadow: var(--glow-sm);
    transform: translateY(-4px);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--surface);
    border-top: 1px solid rgba(187, 241, 104, 0.1);
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 16px;
    max-width: 280px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: var(--primary);
}

.footer-column a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
    margin-bottom: 12px;
    transition: all var(--transition-fast);
}

.footer-column a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid rgba(187, 241, 104, 0.1);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-legal {
    display: flex;
    gap: 32px;
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color var(--transition-fast);
}

.footer-legal a:hover {
    color: var(--primary);
}

/* ============================================
   SOUND TOGGLE
   ============================================ */

.sound-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: var(--surface-light);
    border: 1px solid rgba(187, 241, 104, 0.3);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: all var(--transition-base);
}

.sound-toggle:hover {
    border-color: var(--primary);
    box-shadow: var(--glow-sm);
}

.sound-toggle svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary);
    stroke-width: 2;
}

.sound-toggle .sound-off {
    display: none;
}

.sound-toggle.muted .sound-on {
    display: none;
}

.sound-toggle.muted .sound-off {
    display: block;
}

/* ============================================
   WALLET CONNECTION
   ============================================ */

.wallet-connected {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wallet-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: wallet-pulse 2s ease-in-out infinite;
}

.wallet-balance {
    display: block;
    font-size: 11px;
    color: var(--primary);
    margin-top: 2px;
    font-weight: 500;
}

@keyframes wallet-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
    50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
}

/* Wallet Notification */
.wallet-notification {
    position: fixed;
    top: 100px;
    right: 24px;
    padding: 16px 24px;
    background: var(--surface-light);
    border: 1px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    box-shadow: var(--glow-sm);
}

.wallet-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.wallet-notification.success {
    border-color: #4ade80;
}

.wallet-notification.success .notification-icon {
    color: #4ade80;
}

.wallet-notification.error {
    border-color: #f87171;
}

.wallet-notification.error .notification-icon {
    color: #f87171;
}

.notification-icon {
    font-size: 18px;
    font-weight: bold;
}

.notification-text {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text);
}

/* Wallet Dropdown */
.wallet-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.wallet-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 280px;
    background: var(--surface);
    border: 1px solid rgba(187, 241, 104, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), var(--glow-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1001;
}

.wallet-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.wallet-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: var(--surface);
    border-left: 1px solid rgba(187, 241, 104, 0.3);
    border-top: 1px solid rgba(187, 241, 104, 0.3);
    transform: rotate(45deg);
}

.dropdown-item {
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dropdown-item.wallet-info {
    background: rgba(187, 241, 104, 0.05);
}

.dropdown-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dropdown-address {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--primary);
    word-break: break-all;
}

.voting-power {
    font-size: 12px;
    color: var(--text-muted);
    background: rgba(187, 241, 104, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
}

/* ============================================
   FLOATING BALANCE PANEL
   ============================================ */

.balance-panel {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 280px;
    background: var(--surface);
    border: 1px solid rgba(187, 241, 104, 0.3);
    padding: 20px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), var(--glow-sm);
}

.balance-panel.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.balance-panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(187, 241, 104, 0.1);
}

.panel-icon {
    color: var(--primary);
    font-size: 20px;
    text-shadow: var(--glow-sm);
}

.panel-title {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text);
}

.balance-panel-amount {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    text-shadow: var(--glow-sm);
    margin-bottom: 16px;
}

.balance-panel-amount .token-symbol {
    font-size: 18px;
    opacity: 0.8;
}

.balance-panel-voting {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(187, 241, 104, 0.08);
    padding: 12px 14px;
    margin-bottom: 12px;
}

.voting-label {
    font-size: 13px;
    color: var(--text-muted);
}

.voting-value {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
}

.balance-panel-ratio {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    font-family: var(--font-mono);
}

/* Adjust sound toggle position */
.sound-toggle {
    bottom: 24px;
    right: 24px;
}

@media (max-width: 768px) {
    .balance-panel {
        left: 16px;
        right: 16px;
        width: auto;
    }
}

.dropdown-divider {
    height: 1px;
    background: rgba(187, 241, 104, 0.1);
}

.disconnect-btn {
    width: 100%;
    padding: 14px 18px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    color: #f87171;
    font-family: var(--font-body);
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.disconnect-btn:hover {
    background: rgba(248, 113, 113, 0.1);
}

.disconnect-icon {
    font-size: 16px;
}

/* ============================================
   ANIMATIONS
   ============================================ */

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .science-content,
    .token-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .science-visual {
        order: -1;
    }
    
    .token-visual {
        order: -1;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stakeholder-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .cta-button {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .stat-divider {
        width: 60px;
        height: 1px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .brain-visualization {
        width: 280px;
        height: 280px;
    }
    
    .neural-network {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 80px 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .token-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .token-features {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}


