:root {
    --navy: #0B1B32;
    --navy-light: #1A2D4C;
    --teal: #00F2FF;
    --teal-glow: rgba(0, 242, 255, 0.4);
    --silver: #A5A9B4;
    --white: #FFFFFF;
    --black: #050A14;
    --glass: rgba(11, 27, 50, 0.7);
    --glass-border: rgba(0, 242, 255, 0.2);
}

/* Accessibility Skip Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--teal);
    color: var(--navy);
    padding: 1rem;
    z-index: 2000;
}
.skip-link:focus { top: 0; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--black);
    color: var(--silver);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Outfit', sans-serif; color: var(--white); margin-bottom: 1rem; line-height: 1.2; }
.text-center { text-align: center; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

/* Buttons & Interactive */
.btn-primary, .btn-secondary, .btn-outline {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    border: none;
}
.btn-primary { background: var(--teal); color: var(--navy); box-shadow: 0 0 20px var(--teal-glow); }
.btn-primary:hover { box-shadow: 0 0 40px var(--teal); transform: translateY(-3px); }

.btn-secondary { background: var(--navy-light); color: var(--teal); border: 2px solid var(--teal); }
.btn-secondary:hover { background: var(--teal); color: var(--navy); }

.btn-outline { background: transparent; border: 2px solid var(--silver); color: var(--white); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }

.btn-full { width: 100%; text-align: center; }
.btn-lg { padding: 1.25rem 2.5rem; font-size: 1.2rem; }

/* Header */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(5, 10, 20, 0.85); backdrop-filter: blur(15px);
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.25rem 5%; border-bottom: 1px solid var(--glass-border);
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-bam { background: var(--teal); color: var(--navy); padding: 2px 8px; font-weight: 900; border-radius: 4px; }
.logo-text { color: var(--white); font-weight: 700; font-size: 1.1rem; }

.nav-links { display: flex; gap: 1.5rem; align-items: center; transition: 0.3s; }
.nav-links a { color: var(--white); font-size: 0.85rem; font-weight: 600; text-decoration: none; }
.nav-links a:hover { color: var(--teal); }

.mobile-nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.5rem; cursor: pointer; }

/* Hero */
/* Award-Winning Hero Layout */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: #050a14;
}

#hero-canvas {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2;
    background: radial-gradient(circle at 20% 50%, rgba(5,10,20,0.8), transparent 70%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 10;
    padding-top: 80px;
}

.hero-main-content {
    animation: fadeIn 1s ease-out;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 1.05;
    margin-bottom: 2rem;
    font-weight: 900;
    text-transform: none;
    letter-spacing: -2px;
}

.highlight-main { color: var(--teal); }
.highlight-alt { color: var(--white); text-decoration: underline thickness(4px) var(--teal); text-underline-offset: 8px; }

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    margin-bottom: 3.5rem;
    line-height: 1.6;
    color: var(--silver);
    max-width: 650px;
}

/* Sidebar Tickers */
.hero-stats-sidebar {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    border-left: 4px solid var(--teal);
}

.stat-ticker {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ticker-label {
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--teal);
    letter-spacing: 2px;
}

.ticker-val {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -1px;
}

.sidebar-badge {
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--silver);
    letter-spacing: 1px;
}

.sidebar-seal {
    width: 45px;
    filter: brightness(0) invert(1);
    opacity: 0.5;
}

/* Animations Core */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-active {
    opacity: 1;
    transform: translate(0);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse-thin {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.pulse-text { animation: pulse-thin 2s infinite; }
/* Sections General */
section { padding: 120px 0; position: relative; }
.alt-bg { background: rgba(11, 27, 50, 0.4); }
.glass-panel { background: var(--glass); backdrop-filter: blur(20px); border: 1px solid var(--glass-border); padding: 40px; border-radius: 12px; }

/* Mission */
.mission-section { padding: 100px 0; background: var(--black); border-bottom: 1px solid var(--glass-border); }
.mission-body { font-size: 1.8rem; color: var(--white); max-width: 900px; margin: 0 auto; line-height: 1.4; font-family: 'Outfit'; }

/* Founder Section Detailed */
.badge-label { color: var(--teal); text-transform: uppercase; font-weight: 800; font-size: 0.8rem; letter-spacing: 2px; margin-bottom: 10px; }
.founder-section-detailed h2 { font-size: 3rem; margin-bottom: 2rem; }
.founder-key-list { list-style: none; margin: 2rem 0; }
.founder-key-list li { margin-bottom: 1rem; padding-left: 2rem; position: relative; }
.founder-key-list li::before { content: '→'; color: var(--teal); position: absolute; left: 0; font-weight: bold; }

/* Programs Grid */
.programs-grid-detailed { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.prog-card { background: var(--glass); border: 1px solid var(--glass-border); padding: 40px 30px; border-radius: 8px; transition: 0.3s; border-bottom: 4px solid transparent; }
.prog-card:hover { border-bottom-color: var(--teal); transform: translateY(-10px); background: rgba(0, 242, 255, 0.05); }
.prog-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.prog-card h3 { font-size: 1.25rem; color: var(--teal); margin-bottom: 1rem; }
.prog-card p { font-size: 0.95rem; line-height: 1.5; }

/* Dashboard UI - Neural Foundry 2.0 */
.v-visualizer { 
    position: relative; 
    min-height: 480px; 
    background: #050a14; 
    overflow: hidden; 
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.v-hud-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2;
    pointer-events: none;
    font-family: monospace;
    font-size: 0.6rem;
    color: rgba(0, 242, 255, 0.2);
}

.v-grid {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(0, 242, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 242, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
}

.v-axis-x { position: absolute; bottom: 80px; left: 0; width: 100%; height: 1px; background: rgba(0, 242, 255, 0.1); }
.v-axis-y { position: absolute; left: 50%; top: 0; width: 1px; height: 100%; background: rgba(0, 242, 255, 0.1); }

.v-data-corner { position: absolute; padding: 10px; text-transform: uppercase; letter-spacing: 1px; opacity: 0.5; }
.v-tl { top: 10px; left: 10px; border-left: 2px solid var(--teal); border-top: 2px solid var(--teal); }
.v-tr { top: 10px; right: 10px; border-right: 2px solid var(--teal); border-top: 2px solid var(--teal); }

/* Realistic Robot Arm */
.robot-arm-container { 
    height: 380px; 
    position: relative; 
    z-index: 5;
    display: flex; 
    justify-content: center; 
    align-items: flex-end; 
    padding-bottom: 60px; 
}

.robot-base { 
    width: 80px; 
    height: 25px; 
    background: linear-gradient(to bottom, #1A2D4C, #0B1B32); 
    border: 2px solid var(--silver); 
    border-radius: 4px 4px 0 0;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
    z-index: 10; 
}

.robot-joint { 
    width: 36px; 
    height: 36px; 
    border-radius: 50%; 
    background: radial-gradient(circle at 30% 30%, var(--silver), #1A2D4C); 
    border: 2px solid var(--teal); 
    position: absolute; 
    z-index: 20; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
}

.robot-joint::after { 
    content: ''; 
    width: 10px; 
    height: 10px; 
    border-radius: 50%; 
    background: var(--teal); 
    box-shadow: 0 0 10px var(--teal);
    animation: pulse 2s infinite;
}

.robot-segment { 
    background: linear-gradient(90deg, #2c4a7c, #1A2D4C, #2c4a7c); 
    border: 1px solid rgba(255,255,255,0.1); 
    position: absolute; 
    transform-origin: bottom center; 
    z-index: 15;
    box-shadow: inset 2px 0 5px rgba(0,0,0,0.3);
}

.seg-1 { width: 18px; height: 140px; bottom: 85px; }
.seg-2 { width: 14px; height: 110px; bottom: 225px; }

.seg-piston {
    position: absolute;
    width: 4px;
    height: 80%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.1);
    bottom: 10%;
}

.robot-end-effector {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--teal);
    border-radius: 2px;
    z-index: 25;
    transform: translateX(-10px);
}

.ee-scanner {
    width: 40px;
    height: 40px;
    border: 1px dashed var(--teal);
    border-radius: 50%;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: rotateHUD 4s linear infinite;
}

@keyframes rotateHUD { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

.joint-1 { bottom: 75px; left: 50%; transform: translateX(-18px); }
.joint-2 { bottom: 215px; left: 50%; transform: translateX(-18px); }

.status-scan-line { position: absolute; left: 0; width: 100%; height: 2px; opacity: 0.3; }
.scan-sharp { background: var(--teal); animation: scanAnim 3s infinite linear; }
.scan-faint { background: rgba(255,255,255,0.2); animation: scanAnim 7s infinite linear reverse; }

@keyframes scanAnim { 0% { top: -2px; } 100% { top: 100%; } }

.diagnostic-grid {
    display: flex;
    justify-content: space-between;
    font-family: monospace;
    font-size: 0.7rem;
    color: rgba(0, 242, 255, 0.4);
    letter-spacing: 1px;
}

.system-readout {
    position: relative;
    z-index: 5;
}

#status-text { 
    display: block;
    font-family: 'Outfit'; 
    font-weight: 800; 
    font-size: 0.85rem; 
    letter-spacing: 2px; 
    color: var(--white); 
    margin-bottom: 5px;
    text-transform: uppercase;
}

.system-log {
    font-family: monospace;
    font-size: 0.7rem;
    color: var(--silver);
    opacity: 0.6;
    height: 35px;
    overflow: hidden;
}

.hex-pulse-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(0,242,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,242,255,0.02) 1px, transparent 1px);
    background-size: 10px 10px;
    pointer-events: none;
    z-index: 1;
    animation: hexPulse 4s infinite alternate;
}

@keyframes hexPulse {
    0% { opacity: 0.3; }
    100% { opacity: 0.8; }
}

.aligned { 
    border-color: var(--teal); 
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.1); 
    animation: alignedFlicker 0.2s 3;
}

@keyframes alignedFlicker {
    0% { background: rgba(0, 242, 255, 0.1); }
    100% { background: rgba(0, 0, 0, 0.4); }
}
/* Stamp & Result Visibility */
.stamp-box { min-height: 200px; display: flex; justify-content: center; align-items: center; }
.stamp-image { max-width: 140px; filter: drop-shadow(0 0 20px var(--teal-glow)); }
.btn-stamp { width: 100%; margin-top: 20px; padding: 1rem; background: var(--navy-light); border: 2px solid var(--teal); color: var(--teal); font-weight: 900; font-size: 1.1rem; cursor: pointer; transition: 0.3s; border-radius: 4px; }
.btn-stamp:hover { background: var(--teal); color: var(--navy); box-shadow: 0 0 30px var(--teal); }
.score-display { font-size: 6rem; font-weight: 900; color: var(--white); text-shadow: 0 0 30px var(--teal); }

/* Foundry Section */
.foundry-section { padding: 0; overflow: hidden; }
.foundry-img { height: 600px; background-size: cover; background-position: center; }
.foundry-info { padding: 80px 5%; display: flex; flex-direction: column; justify-content: center; }
.foundry-features { margin-top: 2rem; }
.feature { margin-bottom: 1.5rem; font-size: 1.1rem; border-left: 3px solid var(--teal); padding-left: 15px; }
.highlight { color: var(--teal); font-weight: bold; margin-right: 10px; }

/* Stats */
.stat-card { padding: 40px; border: 1px solid var(--glass-border); border-radius: 8px; position: relative; overflow: hidden; }
.stat-card::before { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 4px; background: var(--teal); }
.stat-num { font-size: 4rem; font-weight: 900; color: var(--teal); display: block; line-height: 1; margin-bottom: 10px; }

/* Partners & Membership */
.membership-box { border-left: 5px solid var(--teal); }
.check-list, .small-list { list-style: none; margin: 1.5rem 0; }
.check-list li, .small-list li { margin-bottom: 0.8rem; padding-left: 1.5rem; position: relative; }
.check-list li::before, .small-list li::before { content: '✓'; color: var(--teal); position: absolute; left: 0; font-weight: bold; }

/* Donations */
.donation-grid { 
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 4rem 0; 
}
.donation-option { padding: 45px 30px; transition: 0.4s; text-align: center; }
.donation-option:hover { transform: translateY(-5px); border-color: var(--teal); background: rgba(0, 242, 255, 0.05); }
.donation-option .amount { font-size: 3.5rem; color: var(--teal); font-weight: 900; display: block; margin-bottom: 10px; }

/* Footer */
.site-footer { background: var(--navy); padding: 80px 0 40px; border-top: 1px solid var(--glass-border); }
.footer-top { padding-bottom: 60px; border-bottom: 1px solid var(--glass-border); }
.footer-trust ul { list-style: none; margin-top: 1rem; }
.footer-trust li { color: var(--silver); margin-bottom: 0.5rem; font-size: 0.9rem; pointer-events: none; }
.footer-bottom { padding-top: 30px; font-size: 0.8rem; opacity: 0.6; }
.footer-bottom a { color: var(--teal); text-decoration: none; }

/* Animations */
@keyframes pulseGlow { 0% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.05); opacity: 1; } 100% { transform: scale(1); opacity: 0.8; } }
.pulse { animation: pulseGlow 2s infinite ease-in-out; }

.hidden { display: none !important; }

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .programs-grid-detailed { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .programs-grid-detailed, .stats-grid, .donation-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 3rem; }
    
    .nav-links { 
        display: none; 
        opacity: 0;
        pointer-events: none;
    }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(5, 10, 20, 0.95);
        backdrop-filter: blur(20px);
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 2px solid var(--teal);
        opacity: 1;
        pointer-events: all;
    }

    .mobile-nav-toggle { display: block; }
    .hero { min-height: 100vh; height: auto; padding: 100px 5% 60px; text-align: center; }
    .hero-container { grid-template-columns: 1fr; gap: 40px; }
    .hero-main-content { text-align: center; }
    .hero-title { font-size: clamp(2.4rem, 10vw, 3rem); margin-bottom: 2rem; }
    .hero-subtitle { font-size: 1.1rem; margin: 0 auto 3.5rem; }
    .hero-actions { flex-direction: column; width: 100%; gap: 1rem; align-items: center; }
    .hero-actions .btn-primary, .hero-actions .btn-outline { width: 100%; max-width: 350px; text-align: center; }

    .hero-stats-sidebar { 
        padding: 30px; 
        border-left: none; 
        border-top: 4px solid var(--teal); 
        margin-top: 20px;
    }
    .stat-ticker .ticker-val { font-size: 1.8rem; }
    
    .dashboard-assembly { grid-template-columns: 1fr; gap: 20px; }
    .v-visualizer { min-height: 450px; height: auto; padding-bottom: 20px; }
    .score-display { font-size: 3.5rem; }
    
    .donation-grid { grid-template-columns: 1fr; gap: 25px; margin: 3rem 0; }
    .donation-option { padding: 35px 20px; margin-bottom: 0; }
    .donation-option .amount { font-size: 2.8rem; }
}
