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

:root {
    --bg-color: #000000;
    --accent-purple: #8A2BE2;
    --accent-pink: #FF007F;
    --gradient-primary: linear-gradient(135deg, #8A2BE2, #FF007F);
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --border-color: rgba(138, 43, 226, 0.3);
    --glass-bg: rgba(10, 5, 20, 0.4);
    --glass-blur: blur(24px);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body { font-family: var(--font-body); background-color: var(--bg-color); color: var(--text-secondary); line-height: 1.6; min-height: 100vh; position: relative; overflow-x: hidden; }

/* Subtle 5% grain texture overlay */
body::before {
    content: ""; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    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.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05; pointer-events: none; z-index: 9999;
}

h1, h2, h3, h4, h5, h6, .logo-text, .section-title { font-family: var(--font-heading); color: var(--text-primary); font-weight: 700; letter-spacing: -0.02em; }

.app-container { max-width: 1400px; margin: 0 auto; position: relative; z-index: 1; }

.nav-bar, .crypto-card, .stat-card, .feature-card, .chart-container, .roadmap-copy, .cookie-banner, .pulse-container {
    background: var(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    border: 0.5px solid var(--border-color); border-radius: 16px;
}

/* Nav Bar */
.nav-bar { position: sticky; top: 1rem; z-index: 1000; padding: 1rem 2rem; margin: 0 2rem; }
.nav-content { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 0.75rem; }
.logo-icon { width: 40px; height: 40px; background: var(--gradient-primary); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; font-weight: 700; color: var(--bg-color); font-family: var(--font-heading); }
.logo-text { font-size: 1.5rem; color: var(--accent-pink); text-transform: uppercase; letter-spacing: 0.1em; display: inline-block; animation: cyber-pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.nav-menu { display: flex; list-style: none; gap: 2.5rem; }
.nav-item a { color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; letter-spacing: 0.05em; text-transform: uppercase; transition: color 0.3s ease; }
.nav-item:hover a, .nav-item.active a { color: var(--accent-pink); }
.nav-actions { display: flex; align-items: center; gap: 1.5rem; }
.lang-switch { display: inline-flex; border: 0.5px solid var(--border-color); border-radius: 8px; overflow: hidden; background: transparent; }
.lang-btn { padding: 0.4rem 0.75rem; color: var(--text-secondary); background: transparent; border: none; cursor: pointer; font-size: 0.8rem; font-family: var(--font-body); }
.lang-btn[aria-pressed="true"] { color: var(--bg-color); background: var(--accent-purple); font-weight: 600; }
.lang-switch #lang-en, #lang-de { display: none; }

/* Centered Hero Section */
.hero-section { padding: 10rem 2rem 8rem; min-height: 90vh; display: flex; align-items: center; justify-content: center; }
.hero-content-centered { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 1000px; margin: 0 auto; width: 100%; }
.hero-content-centered .hero-title { font-size: 5.5rem; line-height: 1.1; margin-bottom: 1.5rem; color: var(--text-primary); }
.hero-content-centered .highlight { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; filter: drop-shadow(0 0 15px rgba(138, 43, 226, 0.4)); }
.hero-content-centered .hero-subtitle { font-size: 1.3rem; color: var(--text-secondary); margin-bottom: 3.5rem; max-width: 600px; font-weight: 300; }

/* 3D Visual Centerpiece: Glass Logo */
.hero-visual-centered { margin-bottom: 4rem; perspective: 1200px; transition: transform 0.1s cubic-bezier(0.2, 0.8, 0.2, 1); z-index: 10; }
.glass-sphere {
    width: 250px; height: 250px; border-radius: 50%;
    background: rgba(138, 43, 226, 0.05); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 0, 127, 0.2);
    box-shadow: inset 0 0 40px rgba(138, 43, 226, 0.2), 0 0 60px rgba(255, 0, 127, 0.15);
    display: flex; align-items: center; justify-content: center; transform-style: preserve-3d;
    animation: levitate 6s ease-in-out infinite, slow-rotate 15s linear infinite; position: relative; overflow: hidden;
}
.glass-sphere::after {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at center, transparent 30%, rgba(255, 0, 127, 0.15) 45%, rgba(138, 43, 226, 0.25) 55%, transparent 70%);
    opacity: 0.8;
}
@keyframes levitate { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-30px); } }
@keyframes slow-rotate { 0% { transform: rotateY(0deg) rotateZ(0deg); } 100% { transform: rotateY(360deg) rotateZ(10deg); } }

/* Centered CTA Buttons */
.hero-buttons-centered { display: flex; gap: 2rem; justify-content: center; }
.btn-primary, .btn-secondary { padding: 1rem 2.5rem; border-radius: 50px; font-family: var(--font-heading); font-weight: 600; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.1em; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.btn-primary.glow-hover { background: var(--gradient-primary); color: #fff; border: none; box-shadow: 0 0 15px rgba(138, 43, 226, 0.3); }
.btn-primary.glow-hover:hover { box-shadow: 0 0 30px rgba(255, 255, 255, 0.8), 0 0 60px rgba(255, 0, 127, 0.5); transform: scale(1.05); }
.btn-secondary.ghost-border { background: transparent; color: var(--text-primary); border: 1px solid var(--accent-pink); backdrop-filter: blur(4px); }
.btn-secondary.ghost-border:hover { background: rgba(255, 0, 127, 0.1); box-shadow: 0 0 20px rgba(255, 0, 127, 0.3); transform: scale(1.05); }

/* Market Pulse Section */
.market-pulse-section { padding: 6rem 2rem; max-width: 1400px; margin: 0 auto; }
.pulse-container { padding: 4rem 3rem; display: flex; flex-direction: column; gap: 3rem; }
.pulse-header .section-title { margin-bottom: 0; text-align: center; }
.pulse-chart-wrapper { width: 100%; height: 250px; position: relative; border-top: 0.5px solid var(--border-color); border-bottom: 0.5px solid var(--border-color); padding: 2rem 0; }
#pulseChart { width: 100%; height: 100%; filter: drop-shadow(0 0 12px rgba(255, 0, 127, 0.5)); }
.pulse-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.pulse-stat { text-align: center; }
.pulse-stat .stat-label { color: var(--text-secondary); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.pulse-stat .stat-value { font-family: var(--font-heading); font-size: 2.2rem; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: 700; }

/* Section Titles */
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 4rem; text-transform: uppercase; letter-spacing: 0.1em; }
.section-title::after { content: ''; display: block; width: 60px; height: 2px; background: var(--gradient-primary); margin: 1.5rem auto 0; box-shadow: 0 0 10px var(--accent-pink); }

/* Features */
.features-section, .about-section, .tokenomics-section, .roadmap-section { padding: 6rem 2rem; max-width: 1400px; margin: 0 auto; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
/* WebGL & Overlays */
#webgl-container { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -3; pointer-events: none; }

.feature-overlay-card {
    position: absolute;
    width: 320px;
    padding: 2rem;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--accent-pink);
    border-radius: 16px;
    color: var(--text-primary);
    text-align: center;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.4s ease, border-color 0.4s ease;
    box-shadow: 0 0 30px rgba(255, 0, 127, 0.2);
}

.feature-overlay-card.active {
    opacity: 1;
    pointer-events: auto;
}

.feature-overlay-card h3 { margin-bottom: 1rem; color: var(--accent-pink); text-transform: uppercase; letter-spacing: 0.1em; font-size: 1.2rem; }
.feature-overlay-card p { font-size: 0.95rem; color: var(--text-secondary); }

/* Features legacy (hide if needed, but we removed from HTML) */

/* About & Roadmap container */
.roadmap-container { max-width: 900px; margin: 0 auto; }
.roadmap-copy { padding: 3rem; }
.roadmap-copy p { margin-bottom: 1.5rem; font-size: 1.1rem; color: var(--text-secondary); }
.roadmap-copy p:last-child { margin-bottom: 0; }
.roadmap-copy strong { color: var(--accent-pink); font-weight: 600; }

/* Tokenomics */
.tokenomics-content { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.chart-container { padding: 2rem; }
.tokenomics-list { display: flex; flex-direction: column; gap: 1.5rem; }
.tokenomics-item { display: flex; align-items: center; gap: 1.5rem; padding: 1rem; border-bottom: 0.5px solid var(--border-color); }
.tokenomics-item:last-child { border-bottom: none; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.tokenomics-item:nth-child(1) .dot { background: var(--accent-purple); box-shadow: 0 0 8px var(--accent-purple); }
.tokenomics-item:nth-child(2) .dot { background: #b026c2; box-shadow: 0 0 8px #b026c2; }
.tokenomics-item:nth-child(3) .dot { background: var(--accent-pink); box-shadow: 0 0 8px var(--accent-pink); }
.tokenomics-item:nth-child(4) .dot { background: rgba(255, 0, 127, 0.7); }
.tokenomics-item:nth-child(5) .dot { background: rgba(138, 43, 226, 0.5); }
.item-content h4 { margin-bottom: 0.25rem; font-size: 1.1rem; letter-spacing: 0.05em; color: var(--text-primary); }

/* Minimalist Footer */
.minimal-footer { border-top: 0.5px solid var(--border-color); padding: 6rem 2rem 3rem; margin-top: 6rem; display: flex; flex-direction: column; align-items: center; gap: 2rem; }
.mig-pulse-logo { font-family: var(--font-heading); font-size: 2.5rem; font-variant: small-caps; letter-spacing: 0.2em; font-weight: 700; display: inline-block; animation: cyber-pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
@keyframes cyber-pulse { 0%, 100% { filter: drop-shadow(0 0 5px rgba(255, 0, 127, 0.3)); transform: scale(1); } 50% { filter: drop-shadow(0 0 30px rgba(138, 43, 226, 1)) drop-shadow(0 0 15px rgba(255, 0, 127, 0.8)); transform: scale(1.03); } }
.footer-socials { display: flex; gap: 3rem; }
.footer-socials a { color: var(--text-secondary); transition: color 0.4s ease, transform 0.4s ease, filter 0.4s ease; display: flex; align-items: center; justify-content: center; }
.footer-socials a:hover { color: var(--accent-pink); transform: translateY(-4px); filter: drop-shadow(0 0 8px var(--accent-pink)); }
.footer-copyright { color: var(--text-secondary); font-size: 0.85rem; letter-spacing: 0.05em; margin-top: 2rem; }

/* Cookie Banner */
.cookie-banner { position: fixed; left: 2rem; right: 2rem; bottom: 2rem; z-index: 2000; max-width: 1400px; margin: 0 auto; }
.cookie-content { padding: 1.5rem 2rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.cookie-btn.accept { background: var(--gradient-primary); color: #fff; border: none; padding: 0.8rem 1.5rem; border-radius: 8px; font-family: var(--font-heading); font-weight: 600; cursor: pointer; text-transform: uppercase; letter-spacing: 0.05em; transition: all 0.3s ease; }
.cookie-btn.accept:hover { box-shadow: 0 0 15px var(--accent-pink); }
.cookie-link { color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; border-bottom: 1px solid transparent; transition: all 0.3s ease; }
.cookie-link:hover { color: var(--accent-pink); border-color: var(--accent-pink); }

@media (max-width: 968px) { .nav-bar { margin: 0 1rem; } .tokenomics-content { grid-template-columns: 1fr; } .nav-menu { display: none; } }
@media (max-width: 600px) { .nav-bar { margin: 0; top: 0; border-radius: 0 0 16px 16px; border-top: none; border-left: none; border-right: none; } .hero-content-centered .hero-title { font-size: 3.5rem; } .hero-content-centered .hero-subtitle { font-size: 1.1rem; } .hero-buttons-centered { flex-direction: column; gap: 1rem; } .section-title { font-size: 2rem; } .cookie-banner { left: 1rem; right: 1rem; bottom: 1rem; } .cookie-content { flex-direction: column; align-items: flex-start; gap: 1rem; } }

/* Reveal Elements */
.reveal-element { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); will-change: opacity, transform; }
.reveal-element.revealed { opacity: 1; transform: translateY(0); }

/* Background Parallax Orbs */
.parallax-bg-element { position: fixed; border-radius: 50%; filter: blur(140px); z-index: 0; pointer-events: none; transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.bg-orb-1 { top: -10%; left: 10%; width: 40vw; height: 40vw; background: rgba(138, 43, 226, 0.08); }
.bg-orb-2 { bottom: -10%; right: 5%; width: 35vw; height: 35vw; background: rgba(255, 0, 127, 0.08); }
.bg-orb-3 { top: 40%; left: 60%; width: 25vw; height: 25vw; background: rgba(138, 43, 226, 0.05); }

/* Matrix Canvas Overlay */
#matrixCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}
