:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
}

/* Advantage Design Language */
.bg-glow-blue { background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%); }
.bg-glow-indigo { background: radial-gradient(circle, rgba(79, 70, 229, 0.1) 0%, transparent 70%); }

.text-gradient {
    background: linear-gradient(to bottom, #fff, #52525b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(59, 130, 246, 0.3);
}

.nav-blur {
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.source-link {
    font-size: 10px; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.1em; color: #3b82f6; text-decoration: none; transition: opacity 0.2s;
}
.source-link:hover { opacity: 0.7; }

/* Snappy Tab Switching (Zero Lag) */
.tab-content { display: none; }
.tab-content.active { display: block; }
.nav-link.active { color: var(--primary); font-weight: 700; }

/* Snappy FAQ */
.faq-answer { display: none; }
.faq-answer.active { display: block; }
.faq-icon { transform: rotate(0deg); }
.faq-icon.active { transform: rotate(180deg); }

/* Snappy Modals */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(5px);
    justify-content: center; align-items: center; z-index: 1000; display: none; padding: 1rem;
}
.modal-overlay.active { display: flex; }
.modal-content {
    background: #0c0c0c; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 1.5rem;
    width: 100%; max-width: 600px; max-height: 85vh; overflow-y: auto;
}

/* Unified Node Chains */
.step-node { position: relative; }
.step-node::after {
    content: ''; position: absolute; left: 50%; top: 100%;
    width: 2px; height: 2rem; background: rgba(255, 255, 255, 0.1);
}
.step-node:last-child::after { display: none; }

/* NEW: Efficiency Infographic Styles */
.stream-line {
    background: linear-gradient(to bottom, #3b82f6 0%, #1d4ed8 50%, #3b82f6 100%);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}
.efficiency-line {
    background: linear-gradient(to bottom, #10b981 0%, #059669 50%, #10b981 100%);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}
.node-glow { box-shadow: 0 0 30px rgba(59, 130, 246, 0.3); }
.failure-node { border: 1px solid #ef4444; background: rgba(239, 68, 68, 0.1); }
.efficiency-node { border: 1px solid #10b981; background: rgba(16, 185, 129, 0.1); }

.hydration-drop { animation: drop-flow 3s infinite ease-in-out; }
@keyframes drop-flow {
    0% { transform: translateY(-20px); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(0px); opacity: 0; }
}

.animate-pulse-slow { animation: pulse-blue 4s infinite ease-in-out; }
@keyframes pulse-blue {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

.geo-label { font-family: monospace; font-size: 10px; color: #3b82f6; letter-spacing: 1px; }
.time-chip { font-family: monospace; font-size: 9px; padding: 2px 8px; border-radius: 4px; text-transform: uppercase; }

.hydration-bridge {
    position: absolute; height: 1px; z-index: 5; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(to right, transparent, rgba(59, 130, 246, 0.4), transparent);
    font-family: 'JetBrains Mono', monospace; font-size: 7px; color: rgba(59, 130, 246, 0.6); white-space: nowrap; pointer-events: none;
}
.code-particle { animation: flow-left 5s infinite linear; }
@keyframes flow-left { 0% { transform: translateX(100%); opacity: 0; } 50% { opacity: 1; } 100% { transform: translateX(-100%); opacity: 0; } }

.scan-line { animation: scan-vertical 3s infinite ease-in-out; position: absolute; width: 100%; height: 2px; background: rgba(59, 130, 246, 0.5); }
@keyframes scan-vertical { 0%, 100% { top: 0%; opacity: 0; } 50% { top: 100%; opacity: 1; } }


/* =========================================
   HYDRATION INFOGRAPHIC CSS
   ========================================= */
.phone-frame { 
    box-shadow: 0 0 60px rgba(57, 255, 20, 0.15), inset 0 0 15px rgba(57, 255, 20, 0.08); 
}
.data-tag { 
    font-family: monospace; font-size: 8px; background: #000; 
    border: 1px solid rgba(57, 255, 20, 0.4); padding: 2px 8px; 
    border-radius: 4px; color: #39FF14; white-space: nowrap; text-transform: uppercase;
}

/* Animated Code Beams */
.code-beam {
    position: absolute; height: 1px; font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 10px; font-weight: 900; white-space: nowrap; overflow: hidden;
    letter-spacing: 2px; display: flex; align-items: center; z-index: 5; pointer-events: none;
}
.code-beam-green {
    background: linear-gradient(90deg, transparent, rgba(57, 255, 20, 0.6), transparent);
    color: #39FF14; text-shadow: 0 0 12px #39FF14;
}
.code-beam-blue {
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.6), transparent);
    color: #00F5FF; text-shadow: 0 0 12px #00F5FF;
}

@keyframes scroll-code { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.code-text { display: inline-block; animation: scroll-code 5s linear infinite; }
.code-text-fast { display: inline-block; animation: scroll-code 2s linear infinite; }

/* Glowing Custody Nodes */
.custody-node {
    padding: 8px 16px; border-radius: 14px; background: rgba(0, 0, 0, 0.95);
    border: 1.5px solid rgba(57, 255, 20, 0.7); display: flex; flex-direction: column;
    align-items: center; justify-content: center; position: absolute; z-index: 30;
    box-shadow: 0 0 25px rgba(57, 255, 20, 0.5); gap: 2px; overflow: hidden;
}
.node-label {
    font-family: monospace; font-size: 8px; font-weight: 800; color: #39FF14;
    text-transform: uppercase; line-height: 1.2; white-space: nowrap;
}

/* Typography & Visuals */
.main-title {
    font-size: 3rem; font-weight: 900; text-transform: uppercase; letter-spacing: -0.05em;
    background: linear-gradient(to bottom, #fff 70%, rgba(255,255,255,0.4));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-align: center;
}
.subtitle-box {
    display: inline-block; border: 1.5px solid #00E5FF; padding: 8px 24px;
    border-radius: 6px; font-size: 1.1rem; font-weight: 800; color: #00E5FF;
    text-transform: uppercase; letter-spacing: 0.4em; text-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
    background: rgba(0, 229, 255, 0.08);
}
.mini-code-stream {
    width: 50px; height: 6px; overflow: hidden; background: rgba(57, 255, 20, 0.15);
    border-radius: 2px; margin-top: 2px;
}
.product-bottle { filter: drop-shadow(0 0 20px rgba(255,255,255,0.1)); }

/* Green QR & Scan lines */
@keyframes qr-pulse {
    from { filter: drop-shadow(0 0 2px #39FF14); opacity: 0.8; }
    to { filter: drop-shadow(0 0 8px #39FF14); opacity: 1; }
}
.qr-label-glow { animation: qr-pulse 2s infinite alternate; }

.scan-line-green { 
    animation: scan-vertical 2.5s infinite ease-in-out; 
    position: absolute; width: 100%; height: 2px; 
    background: #39FF14; box-shadow: 0 0 15px #39FF14; 
}

/* Background Data Streams (Efficiency Tab) */
.data-stream-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

.data-stream {
    position: absolute;
    white-space: nowrap;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: flow-across linear infinite;
}

@keyframes flow-across {
    0% { transform: translateX(120vw); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateX(-100vw); opacity: 0; }
}


/* =========================================
   ADVANTAGE TAB SPECIFIC STYLES
   ========================================= */

/* Infographic Timeline Styles */
.timeline-item { position: relative; padding-left: 2rem; border-left: 1px solid rgba(255,255,255,0.1); }
.timeline-dot { position: absolute; left: -5px; top: 0; width: 9px; height: 9px; border-radius: 50%; background: #3b82f6; box-shadow: 0 0 10px #3b82f6; }
.legacy-bar { height: 8px; background: rgba(255,255,255,0.05); border-radius: 4px; position: relative; overflow: hidden; }
.legacy-fill { height: 100%; background: #ef4444; opacity: 0.3; }
.trak-dot { width: 12px; height: 12px; background: #3b82f6; border-radius: 2px; box-shadow: 0 0 15px #3b82f6; display: inline-block; }

/* Smartphone Ease Illustration */
.ease-container { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3rem 2rem; border: 1px dashed rgba(59, 130, 246, 0.3); border-radius: 2rem; background: rgba(59, 130, 246, 0.02); }
.phone-mockup { width: 80px; height: 150px; border: 3px solid rgba(255,255,255,0.1); border-radius: 12px; position: relative; display: flex; align-items: center; justify-content: center; background: #000; }
.phone-mockup::after { content: ''; width: 20px; height: 2px; background: rgba(255,255,255,0.1); position: absolute; top: 10px; border-radius: 2px; }
.phone-screen { width: 90%; height: 85%; background: #3b82f6; border-radius: 4px; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.phone-screen::before { content: ''; position: absolute; width: 100%; height: 2px; background: white; top: 0; animation: scan-phone 2s linear infinite; }
@keyframes scan-phone { 0% { top: 0; } 100% { top: 100%; } }

.label-mockup { width: 60px; height: 60px; background: white; border-radius: 8px; padding: 6px; display: flex; align-items: center; justify-content: center; }
.pain-point-item { border-left: 2px solid #ef4444; padding-left: 1.5rem; margin-bottom: 2rem; }
.ai-chip-gradient { background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%); }


/* =========================================
   CHAIN OF CUSTODY & COMPLIANCE STYLES
   ========================================= */

.heavy-title { font-family: 'Space Grotesk', sans-serif; font-weight: 900; line-height: 0.85; letter-spacing: -0.06em; text-transform: uppercase; }
.data-mono-xs { font-family: 'JetBrains Mono', monospace; font-size: 10px; text-transform: uppercase; }

/* Pure CSS Entry Animation (Replaces JS Observers) */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.animate-on-load { animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

/* CoC Tab Styles */
.tech-grid-coc { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px); background-size: 60px 60px; pointer-events: none; z-index: 0; }
.flow-node { background: rgba(10, 12, 18, 0.4); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 32px; padding: 2.5rem; position: relative; transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.flow-node:hover { border-color: rgba(59, 130, 246, 0.3); background: rgba(10, 12, 18, 0.6); transform: scale(1.02); }
.node-icon-box { width: 80px; height: 80px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 2rem; margin-bottom: 2rem; position: relative; }
.node-status-tag { position: absolute; top: -10px; right: -10px; background: #3b82f6; color: white; font-size: 9px; font-weight: 900; padding: 4px 10px; border-radius: 6px; letter-spacing: 1px; box-shadow: 0 0 20px rgba(59, 130, 246, 0.4); }
.hydration-core-ring { width: 140px; height: 140px; border-radius: 50%; border: 1px dashed rgba(59, 130, 246, 0.3); display: flex; align-items: center; justify-content: center; position: relative; animation: rotate 20s linear infinite; }
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.wall-barrier { border-left: 4px solid #ef4444; background: linear-gradient(90deg, rgba(239, 68, 68, 0.1) 0%, transparent 100%); padding: 1.5rem; margin: 2rem 0; position: relative; overflow: hidden; }

/* Compliance Tab Styles */
.global-nexus-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(circle at 50% 50%, rgba(0, 210, 255, 0.1) 0%, transparent 70%); }
.world-map-svg { width: 100%; height: 100%; opacity: 0.3; filter: drop-shadow(0 0 15px rgba(0, 210, 255, 0.4)); }
.radar-beam { position: absolute; top: 50%; left: 50%; width: 150vw; height: 150vw; background: conic-gradient(from 0deg, transparent 0deg, rgba(0, 210, 255, 0.1) 20deg, transparent 40deg); transform: translate(-50%, -50%); animation: radar-spin 10s linear infinite; }
@keyframes radar-spin { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
.glass-panel-heavy { background: rgba(5, 10, 15, 0.8); backdrop-filter: blur(20px); border: 1px solid rgba(0, 210, 255, 0.1); border-radius: 32px; padding: 3rem; position: relative; z-index: 10; }
.guardrail-card { background: rgba(0, 210, 255, 0.03); border: 1px solid rgba(0, 210, 255, 0.1); border-radius: 12px; padding: 1rem; display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.shield-hex { position: absolute; width: 340px; height: 340px; border: 2px solid rgba(0, 210, 255, 0.3); border-radius: 40px; transform: rotate(45deg); box-shadow: 0 0 50px rgba(0, 210, 255, 0.1); animation: glow-pulse 4s ease-in-out infinite; }
@keyframes glow-pulse { 0%, 100% { opacity: 0.4; transform: rotate(45deg) scale(1); } 50% { opacity: 0.8; transform: rotate(45deg) scale(1.05); } }
.mobile-mockup-heavy { width: 320px; height: 640px; background: #000; border: 12px solid #0a1015; border-radius: 48px; position: relative; box-shadow: 0 80px 150px rgba(0,0,0,1), 0 0 40px rgba(0, 210, 255, 0.2); z-index: 50; }
.scanner-viewport-heavy { height: 45%; background: radial-gradient(circle at center, #111 0%, #000 100%); position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.scan-glow-heavy { position: absolute; inset: 0; background: linear-gradient(transparent, rgba(0, 210, 255, 0.1), transparent); animation: scan-vertical 3s ease-in-out infinite; }