/* custom logo - latin */
@font-face {
    font-family: 'be-font'; 
    src: url('../font/logo.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --void: #000512;
    --ground: #3498db;
    --mind: #cc0000;
    --signal: #c95b06;
    --text: #ffffff;
    
    /* Glass & Borders */
    --glass: rgba(255, 255, 255, 0.05);
    --glass-card: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(255, 255, 255, 0.1);
    --border-glass: rgba(255, 255, 255, 0.1);
    
    /* Accents */
    --neon-cyan: #0ff;
    --neon-magenta: #f0f;
    --term-green: #27c93f;
}

* { box-sizing: border-box; }

html, body {
    background-color: var(--void);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    scroll-behavior: smooth;

}

/* =========================================
   2. GLOBAL UTILITIES & SCROLLBAR
   ========================================= */
::-webkit-scrollbar {
    width: 12px;
}
::-webkit-scrollbar-track {
    background: var(--void);
    border-left: 1px solid rgba(255,255,255,0.05);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--ground), var(--void));
    border-radius: 6px;
    border: 3px solid var(--void); /* Creates padding effect */
    background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
    border: 2px solid var(--void); /* Expands slightly on hover */
    background: linear-gradient(180deg, var(--mind), var(--void));
}

.scanlines-fx {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 10;
    opacity: 0.3;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0),
        rgba(255,255,255,0) 50%,
        rgba(0,0,0,0.2) 50%,
        rgba(0,0,0,0.2)
    );
    background-size: 100% 4px;
}

.nav-active, .joffpoff-gradient {
    background-image: linear-gradient(90deg, #9929ea, #5808fb);
    background-clip: text;
    -webkit-background-clip: text; 
    color: transparent;
    -webkit-text-fill-color: transparent; 
    display: inline-block;
    font-weight: 800;
}
.nav-active:hover {
    background: none;                
    -webkit-text-fill-color: white;  
    color: white;
}

/* Background Canvases */
#reactor-canvas, #noise-canvas, #brain-canvas {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
}
#reactor-canvas { z-index: 0; }
#brain-canvas { z-index: -1; }
#noise-canvas { z-index: 0; opacity: 1; mix-blend-mode: overlay; }

section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}


/* =========================================
   3. NAVIGATION
   ========================================= */
.main-nav {
    position: fixed;
    top: 0; left: 0; width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0,5,18,0.9), rgba(0,5,18,0));
    transition: background 0.3s, backdrop-filter 0.3s;
}

.main-nav.scrolled {
    background: rgba(0, 5, 18, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-logo {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    color: white;
    font-size: 0.9rem;
    display: flex; align-items: center; gap: 10px;
    text-decoration: none;
}

.my-custom-logo {
    height: 50px;
    width: auto;
    display: block;
}

.binaurallogo { font-family: 'be-font', sans-serif; font-weight: 400; font-size: 1.1rem; letter-spacing: 2px; display: flex; align-items: center; gap: 2px; text-shadow: 0 0 20px rgba(0,255,170,0.3); text-decoration: none; }

.nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 40px;
}

.nav-link {
    text-decoration: none;
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}
.nav-link:hover { color: white; }
.nav-link::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0%; height: 1px; background: white; transition: width 0.3s;
}
.nav-link:hover::after { width: 100%; }

.btn-cta-nav {
    background: var(--text); 
    color: #000; 
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(201, 91, 6, 0.3);
}
.btn-cta-nav:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(201, 91, 6, 0.6);
    filter: brightness(1.2);
}

/* HAMBURGER MENU */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}
.hamburger-line {
    width: 100%;
    height: 2px;
    background: white;
    transition: all 0.3s;
}
.mobile-menu-btn.open .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.open .hamburger-line:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(7px, -8px); }

/* NEW POPUP STYLE MOBILE MENU - FIXED */
.mobile-menu-overlay {
    position: fixed;
    top: 90px;
    right: 20px;
    width: auto;
    min-width: 200px;
    background: rgba(0, 5, 18, 0.95);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    
    /* Initial State */
    transform: scale(0.9);
    opacity: 1;
    /* FIX: Ensure visibility toggles to trigger painting */
    visibility: hidden; 
    pointer-events: none;
    transform-origin: top right;
    
    /* Smooth Transition */
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.3s;
    will-change: transform, opacity;
}

.mobile-menu-overlay.active { 
    transform: scale(1);
    opacity: 1;
    visibility: visible;
    transition-delay: 0s; /* No delay when showing */
    pointer-events: all;
}

/* FIX: Force links to their own layer to prevent rendering glitches */
.mobile-link { 
    font-size: 1rem; 
    color: white; 
    text-decoration: none; 
    font-weight: 700; 
    letter-spacing: 1px; 
    transform: translateZ(0);
}


/* =========================================
   4. INDEX PAGE CONTENT
   ========================================= */
#hero {
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 20px;
    text-align: center;
    position: relative;
}

.hero-headline {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255,255,255,0.1);
    padding: 0 10px;
}

.hero-sub {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: 40px;
    padding: 0 20px;
}
.hero-sub strong { color: white; font-weight: 600; }

.reactor-core {
    position: relative;
    padding: 40px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.core-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
    z-index: 1;
    max-width: 90vw;
}

.generator-wrapper {
    position: relative;
    width: 360px;
    height: 315px;
    z-index: 10;
    margin: 0 auto;
    max-width: 100%;
}

.scanline-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 5;
    opacity: 0.3;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0),
        rgba(255,255,255,0) 50%,
        rgba(0,0,0,0.3) 50%,
        rgba(0,0,0,0.3)
    );
    background-size: 100% 4px;
}

.triangle-bg {
    width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(52, 152, 219, 0.15) 100%),
                linear-gradient(90deg, rgba(52, 152, 219, 0.15), rgba(204, 0, 0, 0.15));
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    position: absolute; z-index: 1; backdrop-filter: blur(4px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.wave-canvas {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2; clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    opacity: 0.8; pointer-events: none;
}

.triangle-border {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%, 50% 0%, 50% 2px, 99% 99%, 1% 99%, 50% 2px);
    background: linear-gradient(90deg, var(--ground), var(--mind));
    z-index: 6; opacity: 0.8; box-shadow: 0 0 30px var(--ground); pointer-events: none;
}
.triangle-border.iso-active { animation: border-throb 0.5s infinite; }
@keyframes border-throb { 0% { opacity: 0.6; filter: brightness(1); } 50% { opacity: 1; filter: brightness(2); } 100% { opacity: 0.6; filter: brightness(1); } }

.hud-labels { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    pointer-events: none; z-index: 5; 
    display: flex; flex-direction: column; justify-content: space-between; 
    padding: 45px 0 45px 0; box-sizing: border-box; 
}
.hud-top { text-align: center; font-size: 0.6rem; letter-spacing: 3px; color: rgba(255,255,255,0.9); font-weight: 700; text-shadow: 0 0 10px rgba(255,255,255,0.5); }

.hud-row-bottom { 
    display: flex; 
    align-items: flex-end; 
    padding: 0 45px; 
    width: 100%; 
}
.hud-text { font-size: 0.55rem; letter-spacing: 2px; font-weight: 700; text-transform: uppercase; }

.hud-left { 
    color: #3498db; text-shadow: 0 0 15px rgba(52, 152, 219, 0.8); 
    flex: 1; text-align: left;
}
.hud-right { 
    color: #ff5050; text-shadow: 0 0 15px rgba(204, 0, 0, 0.8); 
    flex: 1; text-align: right;
}
.hud-center { 
    color: rgba(255,255,255,0.7); text-align: center; margin-bottom: 5px; 
    width: auto;
}

.puck { 
    width: 28px; height: 28px; 
    background: white; border-radius: 50%; 
    position: absolute; transform: translate(-50%, -50%); 
    z-index: 100;
    box-shadow: 0 0 20px white, 0 0 40px var(--ground); 
    cursor: grab; transition: box-shadow 0.1s; 
}
.puck:active { cursor: grabbing; }
.puck.glitching { animation: glitch-shake 0.1s infinite; }
@keyframes glitch-shake { 0% { transform: translate(-51%, -49%) skew(2deg); } 25% { transform: translate(-49%, -51%) skew(-2deg); } 50% { transform: translate(-50%, -50%) skew(0deg); opacity: 0.8; } 75% { transform: translate(-52%, -48%) skew(1deg); } 100% { transform: translate(-50%, -50%); opacity: 1; } }

.volume-zone { position: absolute; bottom: -20px; left: 0; width: 100%; height: 40px; z-index: 50; cursor: col-resize; display: flex; align-items: center; justify-content: center; }
.volume-visuals { position: absolute; bottom: 20px; left: 2px; width: calc(100% - 4px); height: 4px; pointer-events: none; }
.volume-bar-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255,255,255,0.1); border-radius: 2px; }
.volume-bar-fill { position: absolute; top: 0; left: 0; width: 50%; height: 100%; background: linear-gradient(90deg, var(--ground), white); box-shadow: 0 0 10px var(--ground); border-radius: 2px; transition: width 0.1s; }
.volume-label { position: absolute; bottom: -30px; width: 100%; text-align: center; font-size: 0.6rem; color: rgba(255,255,255,0.5); letter-spacing: 2px; pointer-events: none; transition: opacity 0.5s; font-weight: 600;}

.grid-lines { position: absolute; width: 100%; height: 100%; z-index: 3; pointer-events: none; opacity: 0.15; }
.line-vert { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: white; }
.line-horz { position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: white; }

.readout { display: flex; justify-content: space-between; width: 340px; max-width: 90%; font-family: "SF Mono", "Roboto Mono", monospace; font-size: 0.75rem; color: rgba(255,255,255,0.4); letter-spacing: 1px; position: relative; z-index: 20; margin-bottom: 20px;}
.value { color: white; font-weight: bold; font-size: 0.9rem; display: inline-block; position: relative; }
.value.glitch-text { animation: text-flicker 0.05s infinite; text-shadow: 2px 0 var(--mind), -2px 0 var(--ground); }
.label { display: block; margin-bottom: 4px; font-size: 0.6rem; text-transform: uppercase;}
@keyframes text-flicker { 0% { opacity: 1; transform: translateX(0); } 50% { opacity: 0.8; transform: translateX(1px); } 100% { opacity: 1; transform: translateX(-1px); } }

.control-dock { margin-top: 50px; display: flex; flex-direction: column; align-items: center; gap: 24px; z-index: 102; }
.toggles-row { display: flex; gap: 30px; align-items: center; }
.presets-row { display: flex; gap: 12px; padding-bottom: 40px; flex-wrap: wrap; justify-content: center; max-width: 100%; }

.btn-play { width: 70px; height: 70px; border-radius: 50%; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.3); color: white; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s; position: relative; overflow: hidden; backdrop-filter: blur(5px); }
.btn-play:hover { background: white; color: black; box-shadow: 0 0 40px rgba(255,255,255,0.4); }
.btn-play svg { width: 24px; height: 24px; fill: currentColor; z-index: 2; }
.btn-play.playing { background: var(--ground); border-color: var(--ground); box-shadow: 0 0 30px rgba(52, 152, 219, 0.5); animation: pulse-ring 2s infinite; }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(52, 152, 219, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0); } }

.btn-preset { background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.7); padding: 10px 20px; border-radius: 8px; cursor: pointer; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; transition: all 0.2s; min-width: 90px; }
.btn-preset:hover { background: rgba(255,255,255,0.15); border-color: white; color: white; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.btn-preset:active { transform: scale(0.95); }

.switch-wrapper { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.switch-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.5); transition: color 0.3s; font-weight: 600; }
.toggle-switch { width: 40px; height: 22px; background: rgba(255,255,255,0.1); border-radius: 4px; position: relative; transition: background 0.3s, box-shadow 0.3s; overflow: hidden; border: 1px solid rgba(255,255,255,0.2); }
.toggle-knob { position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; background: white; border-radius: 2px; transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); z-index: 2; }

.switch-wrapper.active-joff .toggle-switch { background: var(--mind); box-shadow: 0 0 15px rgba(204,0,0,0.4); border-color: var(--mind); }
.switch-wrapper.active-joff .toggle-knob { left: 20px; }
.switch-wrapper.active-joff .switch-label { color: white; text-shadow: 0 0 10px var(--mind); }
.switch-wrapper.active-iso .toggle-switch { background: var(--ground); box-shadow: 0 0 15px rgba(52, 152, 219, 0.4); border-color: var(--ground); }
.switch-wrapper.active-iso .toggle-knob { left: 20px; }
.switch-wrapper.active-iso .switch-label { color: white; text-shadow: 0 0 10px var(--ground); }

.wave-separator {
    position: relative;
    width: 100%;
    height: 120px;
    margin-top: 40px;
    overflow: hidden;
    z-index: 5;
}
#separator-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

#logic {
    padding: 40px 20px;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.5));
    position: relative;
}

.section-headline {
    font-size: 2.5rem; font-weight: 800; color: white; margin-bottom: 20px; letter-spacing: -1px; text-align: center;
}
.section-sub {
    font-size: 1.1rem; color: rgba(255,255,255,0.8); max-width: 600px; line-height: 1.6; margin-bottom: 60px; text-align: center;
}

.btn-coming-soon {
    display: inline-block;
    margin-top: 40px;
    padding: 14px 28px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.6);
    color: #fff;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 30px;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
    font-weight: 600;
}

.hologram-container {
    width: 100%; max-width: 800px; height: 400px;
    background: rgba(20, 25, 40, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    position: relative; display: flex; align-items: flex-end; padding: 40px; box-sizing: border-box;
    box-shadow: 0 20px 80px rgba(0,0,0,0.5); overflow: hidden;
}

.chart-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 50px 50px; pointer-events: none; }
.chart-labels { position: absolute; bottom: 10px; left: 0; width: 100%; display: flex; justify-content: space-around; font-family: monospace; font-size: 0.7rem; color: rgba(255,255,255,0.3); text-transform: uppercase; letter-spacing: 1px; }
.comparison-line-static { position: absolute; left: 5%; width: 90%; bottom: 100px; height: 2px; background: rgba(255, 255, 255, 0.1); border-top: 1px dashed rgba(255,255,255,0.2); }
.static-label { position: absolute; left: 5%; bottom: 110px; font-family: monospace; font-size: 0.7rem; color: rgba(255,255,255,0.3); }

.dynamic-chart-svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.6)); opacity: 0; transform: translateY(20px); transition: opacity 1s, transform 1s; }
.dynamic-chart-svg.visible { opacity: 1; transform: translateY(0); }

/* UPDATED: ANIMATED CHART PATH */
.chart-path { 
    fill: none; 
    stroke: url(#gradientStroke); 
    stroke-width: 4; 
    stroke-linecap: round; 
    stroke-dasharray: 2000; 
    stroke-dashoffset: 2000; 
}
.visible .chart-path { 
    animation: graph-loop 6s infinite ease-in-out;
}

@keyframes graph-loop {
    0% { stroke-dashoffset: 2000; opacity: 0; } /* Start hidden/empty */
    10% { opacity: 1; } /* Fade in start */
    40% { stroke-dashoffset: 0; } /* Draw complete */
    70% { stroke-dashoffset: 0; opacity: 1; } /* Hold */
    90% { opacity: 0; } /* Fade out */
    100% { stroke-dashoffset: 2000; opacity: 0; } /* Reset */
}

.current-offering {
    margin-top: 80px;
    width: 100%;
    max-width: 800px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.offering-headline {
    font-size: 0.8rem; letter-spacing: 4px; color: var(--ground); font-weight: 800; text-transform: uppercase; margin-bottom: 20px;
}
.offering-sub {
    font-size: 1.3rem; margin-bottom: 30px; color: rgba(255,255,255,0.9); max-width: 600px; line-height: 1.6;
}
.offering-grid {
    display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; margin-top: 30px;
}
.feature-item {
    width: 180px; display: flex; flex-direction: column; align-items: center; gap: 15px;
}
.feature-icon {
    width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; justify-content: center; align-items: center;
    border: 1px solid rgba(255,255,255,0.2);
}
.feature-icon svg { width: 30px; height: 30px; stroke: white; fill: none; stroke-width: 2; }
.feature-title { font-size: 0.8rem; font-weight: 700; color: white; letter-spacing: 1px; }
.feature-desc { font-size: 0.75rem; color: rgba(255,255,255,0.7); }

.pulse-icon { animation: soft-pulse 2s infinite; }
@keyframes soft-pulse { 0% { transform: scale(1); box-shadow: 0 0 0 rgba(255,255,255,0); } 50% { transform: scale(1.05); box-shadow: 0 0 15px rgba(255,255,255,0.2); } 100% { transform: scale(1); box-shadow: 0 0 0 rgba(255,255,255,0); } }

.shake-icon { animation: soft-shake 3s infinite; }
@keyframes soft-shake { 0% { transform: rotate(0deg); } 90% { transform: rotate(0deg); } 92% { transform: rotate(-5deg); } 94% { transform: rotate(5deg); } 96% { transform: rotate(-5deg); } 98% { transform: rotate(5deg); } 100% { transform: rotate(0deg); } }

#extension {
    padding: 100px 20px;
    overflow: hidden;
}

.extension-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    align-items: center;
}

.ext-text { text-align: left; }

.siren-link {
    font-weight: 800; cursor: pointer; text-decoration: none; color: white !important;
    animation: siren-pulse 3s infinite ease-in-out;
    border-bottom: 2px solid transparent;
}
@keyframes siren-pulse {
    0% { color: #fff; text-shadow: 0 0 10px rgba(52, 152, 219, 0.8); border-bottom-color: #3498db; }
    50% { color: #fff; text-shadow: 0 0 10px rgba(204, 0, 0, 0.8); border-bottom-color: #cc0000; }
    100% { color: #fff; text-shadow: 0 0 10px rgba(52, 152, 219, 0.8); border-bottom-color: #3498db; }
}

.ext-badges { display: flex; gap: 10px; margin-top: 30px; align-items: center; flex-wrap: wrap;}
.icon-inline {
  vertical-align: middle; 
  width: 1.2em; 
  height: 1.2em;
}
.text-div-inline {
  display: inline-block; 
  vertical-align: middle;
}
.badge {
    padding: 8px 16px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; color: white; font-weight: 500; font-size: 0.75rem; display: flex; align-items: center; gap: 8px;
}
.badge-btn {
    padding: 8px 16px; background: white; color: black; border-radius: 20px; font-weight: 700; font-size: 0.75rem; cursor: pointer; transition: transform 0.2s; box-shadow: 0 0 15px rgba(255,255,255,0.4);
}
.badge-btn:hover { transform: scale(1.05); }

.browser-mockup {
    width: 100%; aspect-ratio: 16/10;
    background: #1e1e1e;
    border-radius: 12px;
    box-shadow: 0 50px 100px rgba(0,0,0,0.6);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s;
}
.browser-mockup:hover { transform: perspective(1000px) rotateY(0deg) rotateX(0deg); }

.browser-header { height: 30px; background: #2d2d2d; display: flex; align-items: center; padding: 0 12px; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.browser-content { height: 100%; background: #121212; position: relative; display: flex; }

/* Fake Spotify UI */
.sidebar { width: 20%; background: #000; border-right: 1px solid #333; }
.main-area { flex: 1; background: linear-gradient(to bottom, #222, #121212); padding: 20px; }
.fake-album { width: 150px; height: 150px; background: #333; margin-bottom: 20px; }
.fake-line { height: 10px; background: #333; margin-bottom: 10px; border-radius: 5px; }

/* Extension Overlay */
.extension-overlay {
    position: absolute; top: 20px; right: 20px; width: 240px; height: 320px;
    background: rgba(0, 5, 18, 0.95); border: 1px solid rgba(52, 152, 219, 0.5);
    backdrop-filter: blur(12px); border-radius: 10px; box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    padding: 20px; display: flex; flex-direction: column; align-items: center;
    animation: float-overlay 6s ease-in-out infinite; z-index: 20;
}
@keyframes float-overlay { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.overlay-header { width: 100%; display: flex; justify-content: space-between; margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; }
.overlay-dot { width: 6px; height: 6px; background: #27c93f; border-radius: 50%; box-shadow: 0 0 5px #27c93f; }

.overlay-tri { width: 80px; height: 70px; background: linear-gradient(to bottom, transparent, rgba(52, 152, 219, 0.3)); clip-path: polygon(50% 0, 0 100%, 100% 100%); margin-bottom: 20px; position: relative;}
.overlay-tri::after { content:''; position: absolute; inset:0; border-bottom: 2px solid #3498db; }

/* JOFFPOFF SECTION */
#joffpoffs {
    padding: 80px 20px;
    background: 
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
    url('../../images/joffpoff-section-2.webp'); 
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;            

}
.joff-icon {
    font-size: 2rem; margin-bottom: 20px;
    color: #fff;
    font-weight: 800;
    white-space: nowrap; 
}
.joff-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 600px; margin: 40px auto 0;
    text-align: center;
}
.joff-stat {
    background: rgba(255,255,255,0.1); padding: 20px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.1);
}
.joff-val { font-size: 1.5rem; font-weight: 800; color: white; margin-bottom: 5px; }
.joff-desc { font-size: 0.7rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1px; }

.joff-text {color:#ff0000;}
.poff-text {color:#009dff;}

/* ABOUT / CONTACT SECTION IN INDEX */
#about { padding: 80px 20px; text-align: center; max-width: 700px; margin: 0 auto; }
.text-block { font-size: 0.9rem; line-height: 1.8; color: rgba(255,255,255,0.6); margin-bottom: 20px; }
.link-plain { color: white; text-decoration: underline; cursor: pointer; }

/* FOOTER LAYOUT (GRID) */
footer {
    padding: 40px 60px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.8rem; color: rgba(255,255,255,0.8);
    display: grid; /* Grid for perfect centering */
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.footer-left { justify-self: start; display: flex; align-items: center; gap: 20px; }

.easter-egg-btn {
    width: 24px; height: 24px;
    position: relative; cursor: pointer; opacity: 0.5; transition: all 0.3s;
}
.easter-egg-btn:hover { opacity: 1; transform: scale(1.1); }
.egg-tri {
    width: 100%; height: 100%;
    background: cyan;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation: glitch-egg 2s infinite;
}
@keyframes glitch-egg {
    0% { clip-path: polygon(50% 0%, 0% 100%, 100% 100%); background: cyan; }
    20% { clip-path: polygon(50% 10%, 10% 90%, 90% 90%); background: magenta; }
    40% { clip-path: polygon(50% 0%, 0% 100%, 100% 100%); background: cyan; }
    100% { clip-path: polygon(50% 0%, 0% 100%, 100% 100%); background: cyan; }
}

/* Footer Center Funnel */
.footer-center {
    justify-self: center; /* True center */
}
.partner-link {
    width: 120px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 4px; display: flex; justify-content: center; align-items: center;
    font-size: 0.6rem; color: rgba(255,255,255,0.4); text-decoration: none; border: 1px dashed rgba(255,255,255,0.2); transition: all 0.2s;
}
.partner-link:hover { background: rgba(255,255,255,0.2); color: white; border-color: white; }

.footer-right { justify-self: end; display: flex; align-items: center; gap: 10px; }
.newsletter-input {
    background: transparent; border: none; border-bottom: 1px solid rgba(255,255,255,0.6);
    color: white; font-family: inherit; font-size: 0.75rem; padding: 4px;
    width: 150px; outline: none; transition: border-color 0.2s; opacity: 1;
}
.newsletter-input:focus { border-color: var(--ground); }
.newsletter-btn {
    background: transparent; border: 1px solid rgba(255,255,255,0.6); color: white;
    border-radius: 4px; padding: 4px 8px; font-size: 0.65rem; cursor: pointer;
    text-transform: uppercase; transition: all 0.2s; opacity: 1;
}
.newsletter-btn:hover { background: white; color: black; }

/* EASTER EGG MODAL */
#password-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); backdrop-filter: blur(10px);
    z-index: 2000; display: flex; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
#password-modal.open { opacity: 1; pointer-events: all; }
.modal-content {
    background: #0f172a; border: 1px solid rgba(255,255,255,0.1);
    padding: 40px; border-radius: 12px; text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}
.modal-input {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.2);
    color: white; padding: 10px; font-family: monospace; font-size: 1.2rem;
    text-align: center; margin: 20px 0; outline: none; width: 200px;
}
.modal-input:focus { border-color: var(--ground); }
.modal-close { position: absolute; top: 20px; right: 20px; cursor: pointer; color: #888; }

/* WHITE BODY BUTTON */
.btn-cta-white {
    background: #ffffff;
    color: #000000;
    padding: 14px 30px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    display: inline-block;
}
.btn-cta-white:hover {
    transform: scale(1.05);
    box-shadow: 0 0 35px rgba(255, 255, 255, 0.5);
    background: #f0f0f0;
}


/* =========================================
   5. PAGE SPECIFIC STYLES (Added for Consolidation)
   ========================================= */

/* --- ABOUT PAGE SPECIFICS --- */
.page-content { position: relative; z-index: 10; display: flex; flex-direction: column; align-items: center; }

#hero-section {
    min-height: 90vh; display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center; padding: 20px; position: relative;
}
.hero-headline.static { /* For non-gradient headlines */
    font-size: 3.5rem; font-weight: 800; letter-spacing: -1px; margin-bottom: 20px;
    color: #fff; max-width: 800px; line-height: 1.1; background: none; -webkit-text-fill-color: initial;
}
.scroll-prompt {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
    font-size: 0.85rem; letter-spacing: 3px; text-transform: uppercase; 
    color: #fff; font-weight: 700; text-shadow: 0 0 20px rgba(255,255,255,0.6);
    animation: float 2s infinite ease-in-out;
}
@keyframes float { 0%, 100% { transform: translate(-50%, 0); opacity: 0.6; } 50% { transform: translate(-50%, 10px); opacity: 1; } }

#brain-section { position: relative; width: 100%; min-height: 120vh; display: flex; flex-direction: column; align-items: center; padding-top: 100px; }

/* FIX: Default opacity to 1 to ensure visibility even if JS fails to add class */
.cards-container {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; max-width: 1100px; width: 90%; margin-top: 60px;
    opacity: 1; 
    transform: translateY(0); 
    transition: all 1s ease-out;
}
.cards-container.visible { opacity: 1; transform: translateY(0); }

.glass-card {
    background: var(--glass-card); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass); border-radius: 16px; padding: 40px;
    text-align: left; transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.glass-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.4); background: rgba(255,255,255,0.12); }
.card-icon {
    font-size: 1.5rem; color: white; margin-bottom: 20px;
    width: 50px; height: 50px; background: rgba(255,255,255,0.1);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.card-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 15px; color: white; }

.card-text { font-size: 0.95rem; line-height: 1.6; color: rgba(255,255,255,0.7); }
.highlight-text { color: var(--ground); font-weight: 600; }


/* --- HOW IT WORKS SPECIFICS --- */
.page-header { padding: 180px 20px 100px; text-align: center; position: relative; z-index: 10; }
.section-tag { font-family: monospace; color: var(--ground); letter-spacing: 2px; font-size: 0.8rem; margin-bottom: 20px; display: block; }
.page-headline {
    font-size: 3.5rem; font-weight: 800; letter-spacing: -2px; margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #aaa); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255,255,255,0.1);
}
.page-sub { font-size: 1.1rem; color: rgba(255,255,255,0.7); max-width: 600px; margin: 0 auto; line-height: 1.6; }

.mechanics-section { padding: 100px 20px; max-width: 1000px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,0.05); }
.mech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.mech-text h3 { font-size: 2rem; margin-bottom: 20px; letter-spacing: -1px; }
.mech-text p { color: rgba(255,255,255,0.7); line-height: 1.8; font-size: 1rem; margin-bottom: 30px; }

.visual-container {
    width: 100%; height: 300px; background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 12px;
    position: relative; overflow: hidden; display: flex; justify-content: center; align-items: center;
    box-shadow: 0 0 50px rgba(0,0,0,0.3);
}
.wave-line { position: absolute; width: 100%; height: 2px; top: 30%; background: var(--ground); opacity: 0.5; }
.wave-line.red { top: 70%; background: var(--mind); }
.phantom-pulse {
    width: 20px; height: 20px; background: white; border-radius: 50%;
    box-shadow: 0 0 30px white; animation: phantom-beat 1s infinite alternate;
}
@keyframes phantom-beat { 0% { transform: scale(1); opacity: 0.5; } 100% { transform: scale(2); opacity: 1; } }

.interface-showcase { background: linear-gradient(to bottom, transparent, rgba(0, 5, 18, 0.8)); padding: 100px 20px; text-align: center; }

/* FIX: Added width 100% to ensure grid fills parent */
.showcase-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 1000px; width: 100%; margin: 60px auto 0; }

/* FIX: Added width 100% and min-height to ensure placeholders are visible */
.screenshot-frame {
    aspect-ratio: 18/15; width: 100%; min-height: 300px;
    background: #111; border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px; position: relative; overflow: hidden; transition: transform 0.4s, box-shadow 0.4s;
}
.screenshot-frame:hover { transform: translateY(-10px); box-shadow: 0 20px 60px rgba(0,0,0,0.5); border-color: rgba(255,0,4,0.4); }
.placeholder-content {
    width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center;
    background: radial-gradient(circle at center, #1a1a1a, #000);
    display: none; /* Hidden by default, shown via JS on error */
}
/* --- LIGHTBOX STYLES --- */
.screenshot-img {
    cursor: zoom-in;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s; width: 100%; height: 100%;
}
.screenshot-img:hover {
    transform: scale(1.03);
    filter: brightness(1.1);
}
.image-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 5, 18, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000; /* Above nav */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.image-modal.active {
    opacity: 1;
    pointer-events: all;
    cursor: zoom-out;
}

.image-modal img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(52, 152, 219, 0.2);
    border: 1px solid rgba(255,255,255,0.1);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    user-select: none;
}
.image-modal.active img {
    transform: scale(1);
}

.modal-close-hint {
    position: absolute;
    bottom: 30px;
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: monospace;
}
.ph-icon { font-size: 2rem; margin-bottom: 10px; opacity: 0.5; }
.ph-text { font-family: monospace; color: #555; font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; }
.shot-caption { margin-top: 20px; font-size: 0.8rem; color: var(--ground); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.frequency-section { padding: 100px 20px; max-width: 800px; margin: 0 auto; }
.freq-list { display: flex; flex-direction: column; gap: 20px; margin-top: 60px; }
.freq-item {
    display: grid; grid-template-columns: 80px 1fr 100px;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05);
    padding: 25px; border-radius: 8px; align-items: center; transition: all 0.3s;
}
.freq-item:hover { background: rgba(255,255,255,0.08); transform: scale(1.02); border-color: rgba(255,255,255,0.2); }
.freq-name { font-weight: 800; color: white; letter-spacing: 1px; text-transform: uppercase; font-size: 0.9rem; }
.freq-desc { color: rgba(255,255,255,0.6); font-size: 0.9rem; padding: 0 20px; }
.freq-range { font-family: monospace; color: var(--ground); font-size: 0.8rem; text-align: right; }
.freq-item.gamma .freq-name, .freq-item.gamma .freq-range { color: var(--mind); }

.joff-section {
    text-align: center; padding: 120px 20px;
    background: radial-gradient(circle at center, rgba(153, 41, 234, 0.15) 0%, transparent 70%);
    border-top: 1px solid rgba(255,255,255,0.05); position: relative; overflow: hidden;
}
.joff-ring {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 300px; height: 300px; border-radius: 50%; border: 1px solid rgba(153, 41, 234, 0.2);
    pointer-events: none; animation: ripple 4s infinite;
}
@keyframes ripple { 0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.5; } 100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; } }

.joff-btn-vis {
    width: 120px; height: 120px; margin: 40px auto;
    background: rgba(0,0,0,0.5); border: 2px solid #9929ea; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; flex-direction: column;
    cursor: pointer; position: relative; transition: all 0.3s;
    box-shadow: 0 0 30px rgba(153, 41, 234, 0.3);
}
.joff-btn-vis::after {
    content: ''; position: absolute; inset: 5px; border-radius: 50%; border: 1px dashed rgba(153, 41, 234, 0.5);
    animation: spin 10s linear infinite;
}
.joff-btn-vis:hover { transform: scale(1.05); box-shadow: 0 0 60px rgba(153, 41, 234, 0.6); background: rgba(153, 41, 234, 0.1); }
.joff-icon-inner { font-size: 2rem; margin-bottom: 5px; color: #9929ea; text-shadow: 0 0 10px #9929ea; }
.joff-label-inner { font-size: 0.6rem; font-weight: 700; letter-spacing: 2px; color: white; }
@keyframes spin { 100% { transform: rotate(360deg); } }


/* --- CONTACT PAGE SPECIFICS --- */
.uplink-container {
    position: relative; z-index: 10; min-height: 100vh;
    display: flex; align-items: center; justify-content: center; padding: 120px 20px 60px;
}
.comm-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; max-width: 1100px; width: 100%; align-items: flex-start; }
.comm-info { display: flex; flex-direction: column; gap: 40px; }

.status-panel {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px; padding: 25px; font-family: "SF Mono", "Roboto Mono", monospace;
    font-size: 0.8rem; color: #ccc; min-height: 180px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5); position: relative; overflow: hidden;
    display: flex; flex-direction: column; justify-content: center; gap: 10px;
}
.status-header { font-size: 0.7rem; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; display: block; }
.status-item { display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 8px; margin-bottom: 5px; }
.status-label { color: rgba(255,255,255,0.6); }
.status-val { font-weight: 700; color: white; }
.status-val.online { color: var(--term-green); text-shadow: 0 0 10px rgba(39, 201, 63, 0.4); }

.uplink-form {
    background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px; padding: 40px; box-shadow: 0 20px 80px rgba(0,0,0,0.6);
    backdrop-filter: blur(10px); position: relative;
}
.uplink-form::before { content: ''; position: absolute; top: 0; left: 20px; width: 40px; height: 2px; background: var(--ground); box-shadow: 0 0 10px var(--ground); }
.uplink-form::after { content: ''; position: absolute; bottom: 0; right: 20px; width: 40px; height: 2px; background: var(--mind); box-shadow: 0 0 10px var(--mind); }

.form-group { margin-bottom: 25px; position: relative; }
.form-label {
    font-size: 0.7rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 2px;
    margin-bottom: 10px; display: block; font-weight: 700;
}
.form-input, .form-textarea {
    width: 100%; background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1);

    color: white; padding: 15px; font-family: inherit; font-size: 0.9rem;
    border-radius: 4px; transition: all 0.3s;
}
.form-input:focus, .form-textarea:focus {
    outline: none; border-color: var(--ground); background: rgba(52, 152, 219, 0.05);
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.1);
}
.form-textarea { min-height: 120px; resize: vertical; }

.btn-submit {
    width: 100%; padding: 16px; background: white; color: black; border: none;
    border-radius: 4px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px;
    cursor: pointer; transition: all 0.3s; margin-top: 10px;
    position: relative; overflow: hidden;
}
.btn-submit:hover { background: var(--ground); color: white; box-shadow: 0 0 30px rgba(52, 152, 219, 0.4); }
.btn-submit:active { transform: scale(0.98); }

.contact-methods { display: flex; gap: 20px; margin-top: 20px; }
.method-badge {
    display: flex; align-items: center; gap: 10px; font-size: 0.8rem; color: rgba(255,255,255,0.6);
    padding: 10px 15px; border: 1px dashed rgba(255,255,255,0.2); border-radius: 4px;
    transition: all 0.2s; cursor: pointer; text-decoration: none;
}
.method-badge:hover { border-color: white; color: white; background: rgba(255,255,255,0.05); }


/* =========================================
   Mobile adjustment
   ========================================= */
@media (max-width: 768px) {
    .extension-grid { grid-template-columns: 1fr; }
    .hero-headline { font-size: 2rem; }
    .main-nav { padding: 0 20px; }
    .nav-link, .btn-cta-nav, .nav-center { display: none; }
    .mobile-menu-btn { display: flex; }
    
    .offering-grid { gap: 20px; }
    .browser-mockup { display: none; } /* Hide mockup on mobile for space */
    
    /* COMPACT EXTENSION BADGES ON MOBILE */
    .ext-badges { gap: 6px; justify-content: flex-start; }
    .badge, .badge-btn { padding: 4px 10px; font-size: 0.55rem; }
    
    /* Fix HUD buttons on small screens */
    .presets-row {
        flex-wrap: nowrap; /* Don't drop to next line */
        gap: 5px;          /* Smaller gap between buttons */
    }

    .btn-preset {
        min-width: auto;   /* Allow shrinking below 90px */
        flex: 1;           /* Force them to share width equally */
        padding: 10px 4px;   /* Remove side padding so text fits */
    }

    /* MOBILE FOOTER (CLEANUP) */
    footer {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        padding: 40px 20px;
        text-align: center;
    }

    /* Hide unneeded elements */
    .footer-center, .footer-right {
        display: none;
    }

    /* Stack Copyright and Modal Button vertically */
    .footer-left {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
        justify-self: center; /* Override default grid behavior */
    }

    /* ORDERING: Modal button on top, Copyright on bottom */
    .easter-egg-btn { order: 1; }
    .footer-left span { order: 2; text-align: center; }

    
    /* Contact Mobile */
    .comm-grid { grid-template-columns: 1fr; gap: 40px; }
    
    /* About Mobile */
    .cards-container { grid-template-columns: 1fr; margin-top: 30px; }
    
    /* How it works mobile */
    .mech-grid, .showcase-grid { grid-template-columns: 1fr; }
    .freq-item { grid-template-columns: 1fr; text-align: center; gap: 10px; }
    .freq-range { text-align: center; }
}

/* =========================================
   6. CLEANUP UTILITY CLASSES (FROM INLINE)
   ========================================= */
.readout-left { text-align: left; }
.readout-right { text-align: right; }
.hidden { display: none; }
.text-left { text-align: left; }
.mb-30 { margin-bottom: 30px; }
.text-bold-white { color: white; font-weight: bold; }
.badge-white { background-color: #fff; color: #000; }
.fake-line-60 { width: 60%; }
.fake-line-40 { width: 40%; }
.fake-line-80 { width: 80%; }
.mt-40 { margin-top: 40px; }
.overlay-header-text { font-size: 0.6rem; color: #aaa; font-family: monospace; }
.overlay-mode-text { color: white; font-family: monospace; margin-bottom: 5px; }
.overlay-gamma-text { color: cyan; font-size: 0.8rem; }
.overlay-bar-bg { margin-top: 40px; width: 100%; height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; }
.overlay-bar-fill { width: 60%; height: 100%; background: #3498db; box-shadow: 0 0 10px #3498db; }
.overlay-verse-text { font-size: 0.6rem; color: #555; margin-top: 10px; font-family: monospace; }
.mission-header { color: white; font-size: 0.9rem; letter-spacing: 2px; margin-bottom: 20px; }
.modal-header-mono { font-family: monospace; letter-spacing: 2px; }
.modal-sub-text { color: #aaa; font-size: 0.8rem; }
.chart-label-highlight { color: #fff; text-shadow: 0 0 10px #f0f; }

/* How It Works Specifics */
.section-tag-dimmed { color: white; opacity: 0.5; }
.h3-large { font-size: 2rem; color: white; margin-bottom: 10px; }
.h3-center-large { text-align: center; font-size: 2rem; margin-bottom: 10px; }
.text-center { text-align: center; }
.h3-medium-spaced { font-size: 1.5rem; letter-spacing: 2px; }
.text-joff { color: #9929ea; }
.mt-20 { margin-top: 20px; }

/* About Page Specifics */
.mobile-version-tag { font-size: 0.7rem; color: #aaa; margin-top: 20px; }
.spacer-bottom { height: 100px; }
.text-red { color: #ff0000; }
.text-purple { color: #5808fb; }