:root {
    --bg-main: #060913;
    --bg-surface: #0b1120;
    --bg-panel: rgba(15, 23, 42, 0.7);
    --bg-card: rgba(15, 23, 42, 0.85);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-cyan: #06b6d4;
    --neon-emerald: #10b981;
    --neon-crimson: #f43f5e;
    --amber-warning: #f59e0b;
    --accent-purple: #8b5cf6;
    --border-light: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(6, 182, 212, 0.3);
}

[data-theme="light"] {
    --bg-main: #f8fafc;
    --bg-surface: #f1f5f9;
    --bg-panel: rgba(255, 255, 255, 0.7);
    --bg-card: rgba(255, 255, 255, 0.85);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --border-light: rgba(0, 0, 0, 0.12);
    --border-highlight: rgba(6, 182, 212, 0.4);
}

[data-theme="light"] .glass-nav {
    background: rgba(248, 250, 252, 0.85);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Ambient Glowing Orbs */
body::before, body::after {
    content: '';
    position: fixed;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    z-index: -2;
    filter: blur(150px);
    opacity: 0.15;
    pointer-events: none;
}

body::before {
    top: -200px;
    left: -200px;
    background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
}

body::after {
    bottom: -200px;
    right: -200px;
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
    font-weight: 700;
}

code, .font-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* Background Effects */
@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 0.18; }
    50% { transform: scale(1.1); opacity: 0.25; }
    100% { transform: scale(1); opacity: 0.18; }
}

.bg-glow {
    position: fixed;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -2;
    opacity: 0.18;
    pointer-events: none;
    animation: pulseGlow 8s ease-in-out infinite alternate;
}

.bg-glow.top-left {
    top: -20vw;
    left: -20vw;
    background: radial-gradient(circle, var(--accent-cyan), transparent 70%);
}

.bg-glow.bottom-right {
    bottom: -20vw;
    right: -20vw;
    background: radial-gradient(circle, var(--accent-purple), transparent 70%);
    animation-delay: -4s;
}

.noise-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
    opacity: 0.03;
    z-index: -1;
    pointer-events: none;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-light);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
    transform-style: preserve-3d;
}

.card.glass-panel:hover {
    box-shadow: 0 20px 50px rgba(6, 182, 212, 0.2), inset 0 0 20px rgba(6, 182, 212, 0.05);
    border-color: var(--border-highlight);
}

.glass-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(6, 9, 19, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
}

@font-face {
    font-family: 'TR2N';
    src: url('TR2N.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

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

.logo {
    font-family: 'TR2N', sans-serif;
    font-size: 2.2rem;
    font-weight: normal;
    color: transparent;
    -webkit-text-stroke: 1px #ff1744;
    text-shadow: 0 0 5px rgba(255, 23, 68, 0.6), 0 0 10px rgba(255, 23, 68, 0.2);
    text-decoration: none;
    letter-spacing: 3px;
    transition: text-shadow 0.3s ease, -webkit-text-stroke 0.3s ease;
}

.logo:hover {
    text-shadow: 0 0 10px rgba(255, 23, 68, 0.8), 0 0 20px rgba(255, 23, 68, 0.5);
    -webkit-text-stroke: 1px #ff4569;
}

#splashScreen {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: #000000;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s;
}

#splashScreen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.splash-logo {
    font-family: 'TR2N', sans-serif;
    font-size: 5rem;
    font-weight: normal;
    color: transparent;
    -webkit-text-stroke: 2px #ff1744;
    text-shadow: 0 0 5px rgba(255, 23, 68, 0.6), 0 0 15px rgba(255, 23, 68, 0.3);
    letter-spacing: 5px;
    animation: splashFlicker 2s forwards;
    text-align: center;
    max-width: 90vw;
    margin-bottom: 10vh; /* Moved up a little */
}

@keyframes splashFlicker {
    0% { opacity: 0; transform: scale(0.9); }
    10% { opacity: 1; text-shadow: 0 0 5px rgba(255, 23, 68, 0.6), 0 0 15px rgba(255, 23, 68, 0.3); }
    15% { opacity: 0.2; }
    20% { opacity: 1; transform: scale(1.02); }
    25% { opacity: 0.5; }
    30% { opacity: 1; transform: scale(1); }
    100% { opacity: 1; transform: scale(1); }
}

.logo-icon {
    color: var(--accent-cyan);
    font-size: 1.2rem;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

/* Typography & Badges */
.text-gradient {
    background: linear-gradient(135deg, var(--accent-cyan), var(--neon-emerald));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: rgba(6, 182, 212, 0.12);
    color: var(--accent-cyan);
    border: 1px solid var(--border-highlight);
}

.badge-emerald {
    background: rgba(16, 185, 129, 0.12);
    color: var(--neon-emerald);
    border-color: rgba(16, 185, 129, 0.3);
}

.badge-crimson {
    background: rgba(244, 63, 94, 0.12);
    color: var(--neon-crimson);
    border-color: rgba(244, 63, 94, 0.3);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: white;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(6, 182, 212, 0.6), 0 0 20px rgba(139, 92, 246, 0.4);
}

.btn-emerald {
    background: linear-gradient(135deg, var(--neon-emerald), #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-emerald:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.6), 0 0 20px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px) scale(1.05);
}

/* Hero Section */
.hero {
    max-width: 1240px;
    margin: 120px auto 60px;
    padding: 0 24px;
    text-align: left;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin: 20px 0;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 32px;
}

.stat-ticker {
    grid-column: span 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 24px;
    margin-top: 40px;
    text-align: center;
}

/* Scroll Reveal */
[data-reveal] {
    opacity: 0;
    transform: translateY(50px) scale(0.95) rotateX(-5deg);
    transition: opacity 0.9s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.9s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center top;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0);
}

.stat-box {
    text-align: center;
    padding: 16px;
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: var(--accent-cyan);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Calculator Section */
.calc-section {
    max-width: 1100px;
    margin: 60px auto;
    padding: 40px;
    border: 1px solid var(--border-highlight);
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 24px;
}

.calc-output {
    background: rgba(6, 182, 212, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 14px;
    padding: 24px;
    text-align: center;
}

.calc-output .yield-val {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--neon-emerald);
    font-family: 'Outfit', sans-serif;
}

/* Feature Grid */
.features-section {
    padding: 80px 24px;
    max-width: 1240px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.section-title h2 {
    font-size: 2.4rem;
    margin-bottom: 12px;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.card {
    padding: 32px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--border-highlight);
}

.card .icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(6, 182, 212, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--accent-cyan);
}

/* Domain Matrix Tabs */
.domain-matrix {
    max-width: 1240px;
    margin: 0 auto;
    padding: 60px 24px;
}

.domain-tabs {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    padding-bottom: 16px;
    margin-bottom: 32px;
}

.tab-btn {
    padding: 10px 20px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background: rgba(6, 182, 212, 0.15);
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 32px;
    font-size: 0.95rem;
}

.comparison-table th, .comparison-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.comparison-table th {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-light);
    padding: 60px 24px 40px;
    max-width: 1240px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    margin-bottom: 16px;
    font-size: 1rem;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--accent-cyan);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        margin-top: 100px;
    }
    .hero-content {
        align-items: center;
    }
    .hero p {
        margin: 20px auto;
    }
    .hero h1 {
        font-size: 3rem;
    }
    .calc-grid {
        grid-template-columns: 1fr;
    }
    .stat-ticker {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 16px;
    }
    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .splash-logo {
        font-size: 3rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .stat-ticker {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.4rem; }
    .calc-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .process-row { flex-direction: column; align-items: center; gap: 40px; }
    .process-row::before { top: 80px; bottom: 80px; left: 50%; width: 6px; height: auto; transform: translateX(-50%); }
}

/* Infographic Integrated Styles */

/* Circular Process Nodes */
.process-row { display: flex; justify-content: space-between; position: relative; max-width: 1000px; margin: 0 auto; padding: 20px 0; }
.process-row::before { content: ''; position: absolute; top: 80px; left: 100px; right: 100px; height: 6px; background: var(--border-highlight); z-index: 1; }
.process-step { display: flex; flex-direction: column; align-items: center; width: 200px; text-align: center; position: relative; z-index: 2; }
.process-circle { width: 120px; height: 120px; border-radius: 50%; border: 6px solid var(--accent-cyan); background: var(--bg-surface); display: flex; align-items: center; justify-content: center; font-size: 3.5rem; position: relative; box-shadow: 0 10px 25px rgba(6, 182, 212, 0.2); transition: transform 0.3s ease; z-index: 2; }
.process-circle:hover { transform: scale(1.05); }
.process-badge { position: absolute; bottom: 0; left: -5px; width: 32px; height: 32px; background: var(--accent-cyan); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.1rem; border: 3px solid var(--bg-surface); box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.process-content { margin-top: 20px; }
.process-content h3 { margin: 0 0 10px 0; font-size: 1.1rem; color: var(--text-primary); font-family: 'JetBrains Mono', monospace; font-weight: 700; }
.process-content p { margin: 0; font-size: 0.85rem; color: var(--text-secondary); line-height: 1.4; }

/* Tokenomics Split Bar */
.split-bar-container { height: 30px; background: var(--bg-surface); border-radius: 15px; display: flex; overflow: hidden; margin: 20px 0; box-shadow: inset 0 2px 4px 0 rgba(0,0,0,0.1); border: 1px solid var(--border-light); }
.split-segment { display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: bold; color: white; text-shadow: 0 1px 2px rgba(0,0,0,0.5); transition: opacity 0.2s; }
.split-segment:hover { opacity: 0.85; cursor: default; }
.worker-color { background: linear-gradient(45deg, #0077ff, #0055cc); }
.referrer-color { background: linear-gradient(45deg, #6200ea, #4500b5); }
.grand-color { background: linear-gradient(45deg, #ff0055, #cc0044); }
.treasury-color { background: linear-gradient(45deg, #00c853, #009624); }
