/* ==========================================================================
   CSS Custom Properties (Silicon Valley Elite Dark Mode)
   ========================================================================== */
:root {
    --bg-base: #000000;
    --bg-surface: #0a0a0c;
    --bg-card: rgba(15, 15, 18, 0.6);
    --bg-glass: rgba(255, 255, 255, 0.015);
    
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-card: rgba(255, 255, 255, 0.04);
    
    --text-primary: #EDEDED;
    --text-secondary: #8A8F98;
    --text-muted: #4e525a;
    
    --accent-glow: rgba(59, 130, 246, 0.15);
    --accent-highlight: #3b82f6; 
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --ease-apple: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: all 0.6s var(--ease-apple);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* Custom Cursor Rules */
body {
    background-color: var(--bg-base);
    font-family: var(--font-body);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
}

}

::selection { background: rgba(255,255,255,0.1); color: white; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.mt-4 { margin-top: 1rem; } .mt-8 { margin-top: 2rem; }

/* Custom Cursor removed */

/* ==========================================================================
   Live Tactical HUD
   ========================================================================== */
.hud-status {
    position: fixed;
    bottom: 2rem; left: 2rem;
    z-index: 9000;
    display: flex; align-items: center; gap: 0.5rem;
    font-family: monospace; font-size: 0.75rem; letter-spacing: 0.05em;
    color: var(--text-muted);
    pointer-events: none;
}
.hud-text { opacity: 0.5; }

/* Noise Overlay removed */

/* ==========================================================================
   Typography Rigor & Scramble
   ========================================================================== */
h1, h2, h3, h4, h5, .logo { font-family: var(--font-heading); letter-spacing: -0.04em; }

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1; margin-bottom: 2rem; font-weight: 500;
    background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    min-height: 4.5rem; /* Prevent layout shift during scramble */
}
.scramble-text { font-variant-numeric: tabular-nums; }

h2 { font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.1; margin-bottom: 1.5rem; font-weight: 500; letter-spacing: -0.03em; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; font-weight: 500; color: var(--text-primary); }
p { color: var(--text-secondary); }
.subtitle { font-size: clamp(1.1rem, 2vw, 1.25rem); max-width: 650px; font-weight: 400; line-height: 1.6; margin: 0 auto; color: var(--text-secondary); }
.highlight { color: var(--text-primary); font-weight: 500; }

/* ==========================================================================
   Ambient Backgrounds
   ========================================================================== */
#bg-canvas { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -2; pointer-events: none; background: radial-gradient(circle at top, rgba(16, 24, 40, 0.8), #000000 60%); }
.ambient-light { position: absolute; top: -20vh; left: 50%; transform: translateX(-50%); width: 60vw; height: 60vh; background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.25) 0%, rgba(0,0,0,0) 70%); z-index: -1; pointer-events: none; }

/* ==========================================================================
   Trust Micro-copy & Pulse Dots
   ========================================================================== */
.trust-microcopy { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.pulse-dot { width: 6px; height: 6px; border-radius: 50%; animation: pulseDot 2s infinite; }
.pulse-dot.green { background: #10B981; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
.pulse-dot.red { background: #ef4444; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); animation: pulseDotRed 2s infinite; }

@keyframes pulseDot { 0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); } 70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); } 100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }
@keyframes pulseDotRed { 0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); } 70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); } 100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }

/* ==========================================================================
   Pulse Button
   ========================================================================== */
@keyframes breathing { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.1); } 70% { box-shadow: 0 0 0 15px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }

.btn-primary {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    background: #ffffff; color: #000000; padding: 1.2rem 3rem; font-size: 1rem; font-weight: 600;
    border-radius: 100px; border: none; overflow: hidden; transition: var(--transition-smooth);
    font-family: var(--font-body); box-shadow: 0 4px 14px 0 rgba(255, 255, 255, 0.15);
    animation: breathing 3s infinite var(--ease-apple);
}
.btn-primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 6px 20px rgba(255, 255, 255, 0.23); animation-play-state: paused; }

.founder-link { font-size: 0.85rem; color: var(--text-secondary); text-decoration: underline; text-decoration-color: var(--border-glass); text-underline-offset: 4px; transition: var(--transition-smooth);}
.founder-link:hover { color: white; text-decoration-color: white; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.glass-nav { position: fixed; top: 0; left: 0; width: 100%; z-index: 100; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border-glass); }
.nav-container { padding: 1.5rem 5%; display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.25rem; letter-spacing: -0.05em; color: white; }
.logo span { color: var(--text-secondary); }
.btn-nav { display: inline-flex; color: white; font-size: 0.85rem; font-weight: 500; padding: 0.5rem 1.2rem; border-radius: 100px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); transition: var(--transition-smooth); }
.btn-nav:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); }

/* ==========================================================================
   Sections & Layout
   ========================================================================== */
section { padding: 8rem 0; position: relative; }
.section-hero { min-height: 90vh; display: flex; flex-direction: column; justify-content: center; text-align: center; position: relative; padding-top: 6rem; }
.badge { display: inline-flex; padding: 0.3rem 0.8rem; background: rgba(255,255,255,0.03); border: 1px solid var(--border-glass); border-radius: 100px; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-secondary); margin: 0 auto 2rem auto; }

/* ==========================================================================
   Bento Grid & 3D Cards
   ========================================================================== */
.bento-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 4rem; perspective: 1000px; }

.bento-item {
    background: var(--bg-card); border: 1px solid var(--border-card); border-radius: 20px;
    padding: 3rem; position: relative; overflow: hidden;
    transition: transform 0.1s linear, border-color 0.5s; 
    /* 3D Transform is handled by JS inline styles, but transition eases leaving */
    display: flex; flex-direction: column; min-height: 380px;
}

/* Spotlight Hover */
.bento-item::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.04), transparent 40%);
    opacity: 0; transition: opacity 0.5s; pointer-events: none; z-index: 1;
}

.bento-item:hover::before { opacity: 1; }
.bento-item:hover { border-color: rgba(255, 255, 255, 0.1); box-shadow: 0 20px 50px rgba(0,0,0,0.8); }

.bento-item h3 { margin-bottom: 0.5rem; z-index: 2; position: relative; }
.bento-item p { font-size: 0.95rem; z-index: 2; position: relative; max-width: 400px; }

/* Dashboards CSS removed for brevity since they are identical to before... */
.micro-dash { background: rgba(0, 0, 0, 0.4); border: 1px solid var(--border-glass); border-radius: 12px; padding: 1.5rem; margin-bottom: 2.5rem; transition: var(--transition-smooth); box-shadow: inset 0 1px 1px rgba(255,255,255,0.02); }
.bento-item:hover .micro-dash { border-color: rgba(255,255,255,0.1); background: rgba(0, 0, 0, 0.6); }

.dash-badge { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: #10B981; border: 1px solid rgba(16, 185, 129, 0.2); padding: 0.3rem 0.6rem; border-radius: 20px; background: rgba(16, 185, 129, 0.05); }
.dash-code { margin-top: 1rem; font-family: monospace; font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }
.m-label { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em;}
.m-value { font-size: 1rem; font-weight: 600; font-family: var(--font-heading);}
.bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 40px;}
.bar { flex: 1; background: var(--border-card); border-radius: 4px 4px 0 0; transition: var(--transition-smooth); }
.bar.h-40 { height: 40%; } .bar.h-60 { height: 60%; } .bar.h-80 { height: 80%; } .bar.h-100 { height: 100%; }
.bar.highlight { background: var(--accent-highlight); box-shadow: 0 0 15px rgba(59,130,246,0.4); }
.bento-item:hover .bar.h-40 { height: 60%; } .bento-item:hover .bar.h-80 { height: 100%; }
.center-flex { display: flex; justify-content: center; align-items: center; padding: 2rem 0; }
.error-circle { width: 120px; height: 120px; border-radius: 50%; border: 2px solid var(--border-glass); border-top-color: #10B981; display: flex; flex-direction: column; justify-content: center; align-items: center; box-shadow: 0 0 30px rgba(16, 185, 129, 0.05); }
.bento-item:hover .error-circle { box-shadow: 0 0 40px rgba(16, 185, 129, 0.15); }
.error-val { font-size: 1.5rem; font-weight: 600; font-family: var(--font-heading); color: white;}
.error-txt { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; margin-top: 4px;}
.lock-dash { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; padding: 2rem 1.5rem;}
.encrypted-text { color: var(--border-glass); font-size: 0.8rem; line-height: 2; width: 100%; text-align: center; filter: blur(2px);}
.secure-badge { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--text-primary); color: black; font-weight: 600; font-size: 0.8rem; padding: 0.4rem 1rem; border-radius: 4px; box-shadow: 0 4px 15px rgba(0,0,0,0.5); }


/* ==========================================================================
   Founder's Modal
   ========================================================================== */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.9); backdrop-filter: blur(10px);
    z-index: 100000; display: flex; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }

.modal-content {
    background: #000; border: 1px solid var(--border-glass); width: 100%; max-width: 600px;
    height: 100vh; max-height: 80vh; border-radius: 12px; display: flex; flex-direction: column;
    transform: translateY(20px); transition: transform 0.4s var(--ease-apple);
}
.modal-overlay.active .modal-content { transform: translateY(0); }

.modal-header { padding: 1.5rem; display: flex; justify-content: space-between; border-bottom: 1px solid var(--border-glass);}
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; transition: color 0.3s;}
.modal-close:hover { color: white; }

.modal-body { padding: 3rem 2rem; overflow-y: auto; color: var(--text-secondary); font-size: 1rem; line-height: 1.8;}
.modal-body h2 { color: white; margin-bottom: 2rem; }
.modal-body p { margin-bottom: 1.5rem; }


/* ==========================================================================
   Footer
   ========================================================================== */
footer { border-top: 1px solid var(--border-glass); padding: 3rem 0; margin-top: 5rem; }
.footer-content { display: flex; justify-content: space-between; align-items: center; }
.footer-contacts { display: flex; flex-direction: row; align-items: center; gap: 2rem; }
.footer-content p, .footer-content a { font-size: 0.85rem; color: var(--text-muted); }
.footer-content a { transition: var(--transition-smooth); }
.footer-content a:hover { color: var(--text-primary); }


/* ==========================================================================
   Toast Notification (Email Copy)
   ========================================================================== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(15, 15, 18, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    padding: 1rem 2rem;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s var(--ease-apple), opacity 0.4s var(--ease-apple);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
}
.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}


/* ==========================================================================
   Animations
   ========================================================================== */
.fade-in-up { opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease-apple), transform 1s var(--ease-apple); }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }
.stagger-1 { transition-delay: 100ms; } .stagger-2 { transition-delay: 200ms; } .stagger-3 { transition-delay: 300ms; } .stagger-4 { transition-delay: 400ms; }

/* Responsive */
@media (max-width: 900px) {
    section { padding: 4rem 0; }
    .section-hero { min-height: unset; padding-top: 8rem; padding-bottom: 4rem; }
    h1 { font-size: 2.25rem; } h2 { font-size: 1.75rem; }
    .bento-grid { grid-template-columns: 1fr; gap: 1rem; margin-top: 2rem; }
    .bento-item { padding: 2rem; min-height: 250px; }
    .hud-status { display: none; } /* Hide on mobile to keep clean */
}
