<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta name="referrer" content="no-referrer-when-downgrade">
    <title>GenuVerity - Fact Checking Traced to Primary Sources</title>
    <meta name="description"
        content="GenuVerity is building the future of fact-checking. Transparent, accountable, and deeply sourced verification with every claim traced to its origin.">

    <!-- PWA Meta Tags -->
    <meta name="theme-color" content="#050A14">
    <meta name="mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
    <link rel="icon" type="image/svg+xml" href="favicon.svg">
    <link rel="icon" type="image/png" href="favicon.png">
    <link rel="apple-touch-icon" href="favicon.png">
    <link rel="manifest" href="/manifest.json">

    <!-- Open Graph -->
    <meta property="og:title" content="GenuVerity - Fact Checking Traced to Primary Sources">
    <meta property="og:description"
        content="The future of fact-checking. Every claim traced to primary sources. Transparent verification you can follow.">
    <meta property="og:type" content="website">
    <meta property="og:url" content="https://genuverity7.vercel.app">

    <!-- Dependencies -->
    <script src="https://unpkg.com/lucide@latest"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/gsap.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/ScrollTrigger.min.js"></script>
    <!-- MotionPathPlugin removed - unused, saves 12 KiB -->
    <script src="js/reports-data.js?v=1766995800"></script>
    <script src="js/chart-previews.js?v=1767469700" defer></script>
    <script src="js/shared-components.js" defer></script>
    <link rel="stylesheet" href="css/shared-components.css?v=1766995800">
    <!-- Unified Search & Carousel -->
    <script src="js/unified-search.js?v=1735862500" defer></script>
    <!-- Vercel Analytics -->
    <script defer src="/_vercel/insights/script.js"></script>

    <!-- Fonts (preconnect for faster loading) -->
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">

    <!-- Service Worker Kill Switch -->
    <!-- Aggressive Cache Busting & SW Cleanup -->
    <script>
        (async function () {
            // 1. Service Worker Kill Switch
            if ('serviceWorker' in navigator) {
                const registrations = await navigator.serviceWorker.getRegistrations();
                for (let registration of registrations) {
                    console.log('Force unregistering SW:', registration);
                    await registration.unregister();
                }
            }

            // 2. Build ID Check (Force Reload on New Deploy)
            try {
                const response = await fetch('/build-id.json?t=' + Date.now()); // Bypass cache for the check itself
                if (response.ok) {
                    const data = await response.json();
                    const serverBuildId = data.buildId;
                    const localBuildId = localStorage.getItem('gv_build_id');

                    if (serverBuildId && serverBuildId !== localBuildId) {
                        console.log(`New build detected (Server: ${serverBuildId}, Local: ${localBuildId}). Reloading...`);
                        localStorage.setItem('gv_build_id', serverBuildId);

                        // Clear all caches
                        if ('caches' in window) {
                            const names = await caches.keys();
                            await Promise.all(names.map(name => caches.delete(name)));
                        }

                        // Force reload from server
                        window.location.reload(true);
                    }
                }
            } catch (e) {
                console.warn('Build ID check failed:', e);
            }
        })();
    </script>
    <style>
        /* === CORE VARIABLES (Darker theme from reports.html) === */
        :root {
            --bg-primary: #050A14;
            --bg-secondary: #0a0f1a;
            --bg-tertiary: #0d1424;
            --bg-card: #111827;
            --border-color: rgba(59, 130, 246, 0.15);
            --border-glow: rgba(59, 130, 246, 0.4);
            --text-primary: #ffffff;
            --text-secondary: #a0aec0;
            --text-muted: #64748b;
            --accent-blue: #3b82f6;
            --accent-cyan: #06b6d4;
            --accent-green: #10b981;
            --accent-amber: #f59e0b;
            --accent-red: #ef4444;
            --verdict-true: #10b981;
            --verdict-false: #ef4444;
            --verdict-mixed: #f59e0b;
        }

        /* === RESET & BASE === */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
            overflow-x: hidden;
            width: 100%;
            overscroll-behavior-x: none;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: var(--bg-primary);
            color: var(--text-primary);
            min-height: 100vh;
            line-height: 1.6;
            overflow-x: hidden;
            width: 100%;
            overscroll-behavior-x: none;
            position: relative;
        }

        /* === BACKGROUND EFFECTS === */
        .bg-grid {
            position: fixed;
            inset: 0;
            background-image:
                linear-gradient(rgba(59, 130, 246, 0.02) 1px, transparent 1px),
                linear-gradient(90deg, rgba(59, 130, 246, 0.02) 1px, transparent 1px);
            background-size: 60px 60px;
            pointer-events: none;
            z-index: 0;
        }

        .bg-glow {
            position: fixed;
            top: -300px;
            left: 50%;
            transform: translateX(-50%);
            width: 1200px;
            height: 1200px;
            background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, rgba(6, 182, 212, 0.03) 30%, transparent 60%);
            pointer-events: none;
            z-index: 0;
        }

        /* Scroll Progress Line (managed by shared-components.js) */

        /* Removed orphaned block */

        @keyframes cta-pulse {
            0% {
                transform: scale(1);
                box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
            }

            50% {
                transform: scale(1.03);
                box-shadow: 0 0 15px 5px rgba(59, 130, 246, 0.2);
            }

            100% {
                transform: scale(1);
                box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
            }
        }

        .pulsing-cta {
            animation: cta-pulse 2s infinite ease-in-out;
        }

        @keyframes join-glow {
            0% {
                box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
            }

            50% {
                box-shadow: 0 0 50px rgba(59, 130, 246, 0.8), 0 0 25px rgba(6, 182, 212, 0.5);
            }

            100% {
                box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
            }
        }

        .lens-glass-glow {
            animation: join-glow 1.5s infinite alternate ease-in-out;
            border-color: #3b82f6 !important;
        }

        .navbar-logo {
            font-size: 1.5rem;
            font-weight: 700;
            display: flex;
            align-items: center;
        }

        .navbar-logo .navbar-logo-wrapper {
            /* Wrapper for the Icon */
        }

        /* Removed placeholders */

        .navbar-badge {
            padding: 4px 10px;
            background: rgba(6, 182, 212, 0.1);
            border: 1px solid rgba(6, 182, 212, 0.3);
            border-radius: 12px;
            font-size: 0.7rem;
            font-weight: 600;
            color: var(--accent-cyan);
            letter-spacing: 0.5px;
        }

        .navbar-right {
            display: flex;
            align-items: center;
            gap: 16px;
            justify-content: flex-end;
        }

        /* === PREMIUM BUTTONS === */
        .btn-premium-glass {
            position: relative;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 20px;
            background: rgba(59, 130, 246, 0.1);
            border: 1px solid rgba(59, 130, 246, 0.3);
            border-radius: 50px;
            /* Pill shape */
            color: #fff;
            font-size: 0.9rem;
            font-weight: 600;
            text-decoration: none;
            overflow: hidden;
            transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
            backdrop-filter: blur(4px);
            box-shadow: 0 0 15px rgba(59, 130, 246, 0.1);
        }

        .btn-premium-glass::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.5s;
        }

        .btn-premium-glass:hover {
            background: rgba(59, 130, 246, 0.25);
            border-color: rgba(59, 130, 246, 0.6);
            transform: translateY(-2px);
            box-shadow: 0 0 25px rgba(59, 130, 246, 0.3);
        }

        .btn-premium-glass:hover::before {
            left: 100%;
        }

        /* Variant: Cyan/Secondary */
        .btn-premium-glass.cyan {
            background: rgba(6, 182, 212, 0.1);
            border-color: rgba(6, 182, 212, 0.3);
            box-shadow: 0 0 15px rgba(6, 182, 212, 0.1);
        }

        .btn-premium-glass.cyan:hover {
            background: rgba(6, 182, 212, 0.25);
            border-color: rgba(6, 182, 212, 0.6);
            box-shadow: 0 0 25px rgba(6, 182, 212, 0.3);
        }

        /* Hamburger Menu */
        .navbar-hamburger {
            display: none;
            flex-direction: column;
            justify-content: center;
            gap: 5px;
            width: 32px;
            height: 32px;
            background: none;
            border: none;
            cursor: pointer;
            padding: 4px;
        }

        .navbar-hamburger span {
            display: block;
            width: 100%;
            height: 2px;
            background: var(--text-primary);
            border-radius: 2px;
            transition: all 0.3s;
        }

        .navbar-hamburger.active span:nth-child(1) {
            transform: rotate(45deg) translate(5px, 5px);
        }

        .navbar-hamburger.active span:nth-child(2) {
            opacity: 0;
        }

        .navbar-hamburger.active span:nth-child(3) {
            transform: rotate(-45deg) translate(5px, -5px);
        }

        /* Mobile Menu */
        .mobile-menu {
            display: none;
            position: fixed;
            top: 64px;
            right: 16px;
            width: 220px;
            background: rgba(5, 10, 20, 0.98);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            z-index: 999;
            padding: 8px;
            flex-direction: column;
            gap: 4px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        }

        .mobile-menu.active {
            display: flex;
        }

        .mobile-menu a {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 14px;
            background: transparent;
            border: none;
            border-radius: 8px;
            color: var(--text-primary);
            text-decoration: none;
            font-size: 0.9rem;
            font-weight: 500;
            transition: all 0.2s;
        }

        .mobile-menu a:hover {
            background: var(--bg-tertiary);
        }

        @media (max-width: 768px) {
            .navbar {
                padding: 0 8px 0 16px;
                /* Less padding on right to push hamburger closer */
                grid-template-columns: 60px 1fr 48px;
                /* Tighter right column */
            }

            .navbar-brand {
                justify-self: start;
            }

            .navbar-center {
                display: flex !important;
                opacity: 1 !important;
                pointer-events: all !important;
                width: 100% !important;
            }

            /* navbar-search-container styles now in shared-components.css */

            .navbar-right {
                display: none;
            }

            .navbar-hamburger {
                display: flex;
                justify-self: end;
                margin-right: -4px;
                /* Slight negative margin to offset internal padding */
            }

            .hero-search,
            .hero-motto-badge {
                display: none !important;
            }

            .hero-compact {}

            .hero-title {
                font-size: 2.2rem;
                margin-bottom: 12px;
            }

            .hero-logo-text {
                font-size: 2.2rem;
            }

            .hero-radar-bg {
                width: 140px;
                height: 140px;
                margin-left: -70px;
                margin-top: -70px;
            }
        }

        /* === MAIN CONTAINER === */
        .main-container {
            position: relative;
            z-index: 1;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        /* === COMPACT HERO === */
        .hero-compact {
            text-align: center;
            padding: 84px 24px 20px;
            width: 100%;
        }

        .hero-title {
            font-size: 3rem;
            font-weight: 800;
            line-height: 1.1;
            margin-bottom: 16px;
            letter-spacing: -0.02em;
            display: flex;
            justify-content: center;
        }

        .hero-title .hero-logo-wrapper {
            /* Wrapper already defined in CSS */
        }

        /* Override colors for Hero context if needed */
        .hero-title .genu {
            color: var(--text-primary);
        }

        .hero-title .verity {
            color: var(--accent-blue);
        }

        /* === 11F-A HERO LOGO: Radar + Typewriter + Polygraph === */
        .hero-logo-wrapper {
            position: relative;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 20px 30px;
        }

        .hero-logo-text {
            font-size: 3rem;
            font-weight: 800;
            letter-spacing: -0.02em;
            display: inline-flex;
            position: relative;
            z-index: 2;
            white-space: nowrap;
        }

        .hero-logo-text span:not(.hero-cursor) {
            display: inline-block;
            opacity: 0;
        }

        .hero-cursor {
            display: inline-block;
            width: 3px;
            height: 1.1em;
            background: var(--accent-blue);
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            z-index: 10;
            opacity: 1;
        }

        .hero-radar-bg {
            position: absolute;
            width: 180px;
            height: 180px;
            left: 50%;
            top: 50%;
            margin-left: -90px;
            margin-top: -90px;
            border-radius: 50%;
            background: conic-gradient(from 0deg, transparent 0deg, rgba(59, 130, 246, 0.15) 30deg, transparent 60deg);
            animation: heroRadarSweep 2s linear infinite, heroRadarPulse 4s ease-in-out infinite;
            z-index: 0;
        }

        @keyframes heroRadarSweep {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        @keyframes heroRadarPulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }

        .hero-polygraph-svg {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 35px;
            overflow: visible;
            z-index: 1;
        }

        .hero-polygraph-line {
            fill: none;
            stroke: var(--accent-blue);
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
            filter: drop-shadow(0 0 4px rgba(59, 130, 246, 0.6));
        }

        .hero-polygraph-line-glow {
            fill: none;
            stroke: rgba(59, 130, 246, 0.3);
            stroke-width: 6;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .hero-motto-badge {
            display: flex;
            justify-content: center;
            margin-bottom: 24px;
        }

        .motto-text {
            display: inline-block;
            padding: 8px 24px;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            font-size: 0.9rem;
            font-weight: 600;
            letter-spacing: 0.2em;
            color: var(--accent-cyan);
            background: rgba(6, 182, 212, 0.05);
        }

        /* === INLINE SEARCH BOX === */
        .hero-search {
            display: flex;
            align-items: center;
            gap: 12px;
            max-width: 500px;
            margin: 0 auto;
            padding: 14px 20px;
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 14px;
            cursor: pointer;
            transition: all 0.3s;
        }

        .hero-search:hover {
            border-color: var(--accent-cyan);
            box-shadow: 0 0 20px rgba(6, 182, 212, 0.15);
        }

        .hero-search i {
            color: var(--accent-cyan);
            flex-shrink: 0;
        }

        .hero-search-input {
            flex: 1;
            background: transparent;
            border: none;
            color: var(--text-secondary);
            font-size: 1rem;
            font-family: inherit;
            outline: none;
            cursor: pointer;
        }

        /* === NEXUS SEARCH v2 (Opaque Glass) === */
        .nexus-search-wrapper {
            position: relative;
            display: flex;
            justify-content: center;
            width: 100%;
        }

        /* navbar-search-container styles moved to shared-components.css */

        .navbar-search-container.active {
            border-color: var(--accent-cyan);
            background: rgba(5, 10, 20, 0.95);
            /* Deep opaque */
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
        }

        .navbar-search-input {
            background: transparent;
            border: none;
            color: var(--text-primary);
            font-size: 0.95rem;
            width: 100%;
            outline: none;
            margin-left: 10px;
            font-family: 'Inter', sans-serif;
        }

        /* Nexus Dropdown v2 */
        .nexus-dropdown {
            position: absolute;
            top: 56px;
            left: 0;
            right: 0;
            /* High Fidelity Opaque Glass */
            background: rgba(10, 15, 30, 0.85);
            backdrop-filter: blur(40px);
            -webkit-backdrop-filter: blur(40px);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 16px;
            padding: 16px;
            opacity: 0;
            transform: translateY(-15px) scale(0.98);
            pointer-events: none;
            transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
            z-index: 1001;
            max-height: 450px;
            overflow-y: auto;
        }

        .nexus-dropdown.open {
            opacity: 1;
            transform: translateY(0) scale(1);
            pointer-events: auto;
        }

        /* === THEMATIC ZIG-ZAG LAYOUT === */
        .thematic-section {
            padding: 120px 0;
            position: relative;
            background: linear-gradient(to bottom, transparent, rgba(5, 10, 20, 0.8));
        }

        .feature-block {
            display: flex;
            align-items: center;
            justify-content: space-between;
            max-width: 1200px;
            margin: 0 auto 150px;
            padding: 0 40px;
            perspective: 1000px;
            /* For 3D elements */
        }

        .feature-block.reverse {
            flex-direction: row-reverse;
        }

        .feature-text {
            flex: 1;
            max-width: 500px;
            z-index: 2;
        }

        .feature-text h2 {
            font-size: 2.5rem;
            margin-bottom: 20px;
            background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
            -webkit-background-clip: text;
            background-clip: text;
            /* Standard property */
            -webkit-text-fill-color: transparent;
        }

        .feature-text p {
            font-size: 1.1rem;
            line-height: 1.6;
            color: var(--text-secondary);
            margin-bottom: 30px;
        }

        .feature-graphic {
            flex: 1;
            height: 400px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }

        /* === 3D GRAPHICS (CSS-ONLY) === */

        /* === LOGO ANIMATIONS (V12 - Security Scan) === */
        /* Global Logo Colors (Footer & Navbar) */
        .logo-genu {
            color: #ffffff !important;
        }

        .logo-verity {
            color: var(--accent-blue) !important;
        }

        /* G-E Navbar Logo - Glow Pulse Style */
        .g-icon-nav {
            font-family: 'Inter', sans-serif;
            font-size: 1.5rem;
            color: white;
            font-weight: 800;
            position: relative;
            z-index: 2;
            line-height: 1;
        }

        .navbar-logo-wrapper {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 44px;
            height: 44px;
        }

        .ss-nav {
            position: absolute;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            pointer-events: none;
        }

        /* G-E: Glow effect */
        .ss-nav::after {
            content: '';
            position: absolute;
            width: 50px;
            height: 50px;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            border-radius: 50%;
            background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 60%);
            animation: navGlowPulse 4s ease-in-out infinite;
            z-index: 0;
        }

        /* G-E: Ring */
        .ss-nav::before {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: 50%;
            border: 1.5px solid rgba(59, 130, 246, 0.4);
            z-index: 1;
        }

        /* G-E: Radar sweep */
        .nav-radar-sweep {
            position: absolute;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: conic-gradient(from 0deg, transparent 0deg, rgba(59, 130, 246, 0.35) 40deg, transparent 80deg);
            animation: radarSweep 2s linear infinite;
            z-index: 0;
        }

        @keyframes navGlowPulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }

        @keyframes radarSweep {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        /* Hero Full Wordmark Wrapper */
        .hero-logo-wrapper {
            position: relative;
            display: inline-block;
            padding: 10px 20px;
        }

        /* V12 #6 Security Scan Base */
        .ss-hero {
            position: absolute;
            inset: -10px;
            border-radius: 50px;
            pointer-events: none;
            /* Green Ring REMOVED per user request */
        }

        .ss-hero::before {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: 50px;
            background: conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(59, 130, 246, 0.15) 30deg, transparent 60deg);
            animation: sweep-30 4s ease-in-out infinite alternate;
        }

        /* Footer Logo Wrapper (Scaled Down Hero V12) */
        .footer-logo-wrapper {
            position: relative;
            display: inline-block;
            padding: 8px 16px;
            margin-bottom: 8px;
        }

        .ss-footer {
            position: absolute;
            inset: -6px;
            border-radius: 40px;
            pointer-events: none;
        }

        .ss-footer::before {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: 40px;
            background: conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(59, 130, 246, 0.1) 30deg, transparent 60deg);
            animation: sweep-30 4s ease-in-out infinite alternate;
        }

        @keyframes sweep-30 {
            from {
                transform: rotate(-20deg);
            }

            to {
                transform: rotate(20deg);
            }
        }

        /* 1. Shield */
        .shield-3d {
            width: 200px;
            height: 240px;
            transform-style: preserve-3d;
            animation: float 6s ease-in-out infinite;
        }

        .shield-layer {
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(59, 130, 246, 0.1));
            border: 2px solid var(--accent-cyan);
            clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
            box-shadow: 0 0 30px rgba(6, 182, 212, 0.2);
            backdrop-filter: blur(5px);
        }

        .shield-layer:nth-child(2) {
            transform: translateZ(20px) scale(0.9);
            border-color: var(--accent-blue);
        }

        .shield-layer:nth-child(3) {
            transform: translateZ(40px) scale(0.8);
            background: rgba(6, 182, 212, 0.1);
        }

        /* 2. Data Grid */
        .grid-3d {
            width: 300px;
            height: 200px;
            transform: rotateX(60deg) rotateZ(45deg);
            transform-style: preserve-3d;
        }

        .data-bar {
            position: absolute;
            bottom: 0;
            width: 30px;
            background: linear-gradient(to top, var(--accent-blue), var(--accent-cyan));
            opacity: 0.8;
            transform-origin: bottom;
            box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
        }

        /* 3. Globe Node */
        .globe-3d {
            width: 200px;
            height: 200px;
            border-radius: 50%;
            border: 1px solid rgba(255, 255, 255, 0.1);
            position: relative;
            transform-style: preserve-3d;
            animation: rotateGlobe 20s linear infinite;
        }

        .globe-ring {
            position: absolute;
            inset: 0;
            border-radius: 50%;
            border: 1px solid var(--accent-cyan);
            border-left-color: transparent;
            border-right-color: transparent;
        }

        @keyframes float {

            0%,
            100% {
                transform: translateY(0);
            }

            50% {
                transform: translateY(-20px);
            }
        }

        @keyframes rotateGlobe {
            0% {
                transform: rotateY(0);
            }

            100% {
                transform: rotateY(360deg);
            }
        }

        .hero-search-input::placeholder {
            color: var(--text-muted);
        }

        .search-hint {
            font-size: 0.75rem;
            color: var(--text-muted);
            background: rgba(255, 255, 255, 0.05);
            padding: 4px 8px;
            border-radius: 6px;
            font-family: 'JetBrains Mono', monospace;
        }

        /* === VIEW TOGGLE & LIST VIEW === */
        .view-toggle {
            display: flex;
            padding: 4px;
        }

        .view-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 12px;
            /* Premium Glass Styling */
            background: rgba(59, 130, 246, 0.1);
            border: 1px solid rgba(59, 130, 246, 0.3);
            backdrop-filter: blur(4px);
            box-shadow: 0 0 15px rgba(59, 130, 246, 0.1);
            color: #fff;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        }

        .view-btn:hover {
            background: rgba(59, 130, 246, 0.25);
            border-color: rgba(59, 130, 246, 0.6);
            transform: translateY(-2px);
            box-shadow: 0 0 25px rgba(59, 130, 246, 0.3);
            color: #fff;
        }

        .view-btn.active {
            /* Active state matches default glass but slightly more opaque/white */
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.2);
            box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
            color: white;
        }

        .list-section {
            display: none;
            max-width: 800px;
            margin: 0 auto;
            padding: 40px 20px;
            position: relative;
            z-index: 10;
        }

        .list-section.active {
            display: block;
        }

        .carousel-section.hidden {
            display: none;
        }

        .list-item {
            display: flex;
            gap: 20px;
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 24px;
            margin-bottom: 16px;
            cursor: pointer;
            transition: all 0.2s;
            align-items: center;
        }

        .list-item:hover {
            border-color: var(--accent-cyan);
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        }

        .list-item-content {
            flex: 1;
        }

        .list-item-title {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 8px;
        }

        .list-item-meta {
            display: flex;
            gap: 12px;
            font-size: 0.8rem;
            color: var(--text-muted);
            margin-bottom: 12px;
        }

        .list-item-excerpt {
            font-size: 0.95rem;
            color: var(--text-secondary);
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .list-item-icon {
            width: 48px;
            height: 48px;
            background: var(--bg-tertiary);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--accent-cyan);
            flex-shrink: 0;
        }

        @media (max-width: 768px) {
            .view-toggle {
                top: auto;
                bottom: 20px;
                right: 20px;
            }

            .list-item {
                flex-direction: column;
                align-items: flex-start;
                gap: 12px;
            }

            .list-item-icon {
                width: 36px;
                height: 36px;
            }
        }

        .carousel-section {
            position: relative;
            z-index: 1;
            padding: 40px 0 20px;
            overflow: hidden;
            width: 100%;
        }

        .carousel-container {
            perspective: 1200px;
            perspective-origin: 50% 50%;
            transform-style: preserve-3d;
            height: 480px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            width: 100%;
            margin: 0 auto;
            cursor: grab;
            touch-action: pan-y pinch-zoom;
        }

        .carousel-container:active {
            cursor: grabbing;
        }

        .carousel-track {
            position: relative;
            width: 100%;
            height: 100%;
            transform-style: preserve-3d;
        }

        .carousel-card {
            position: absolute;
            width: 360px;
            height: 440px;
            left: 50%;
            top: 50%;
            margin-left: -180px;
            margin-top: -220px;
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 20px;
            overflow: hidden;
            cursor: pointer;
            transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
            backface-visibility: hidden;
            transform-style: preserve-3d;
            pointer-events: auto;
            user-select: none;
        }

        .carousel-card:hover {
            border-color: var(--accent-cyan);
        }

        .carousel-card.active {
            z-index: 10;
            border-color: var(--accent-cyan);
            box-shadow:
                0 0 0 1px var(--accent-cyan),
                0 0 60px rgba(6, 182, 212, 0.3),
                0 30px 80px rgba(0, 0, 0, 0.5);
        }

        /* Card Preview - Chart Area */
        .card-preview {
            width: 100%;
            height: 200px;
            position: relative;
            overflow: hidden;
            background: var(--bg-secondary);
            border-bottom: 1px solid var(--border-color);
        }

        /* Chart container fills the preview */
        .chart-container {
            width: 100%;
            height: 100%;
            padding: 20px;
            display: flex;
            align-items: flex-end;
            justify-content: center;
        }

        /* Bar chart */
        .chart-bars {
            display: flex;
            align-items: flex-end;
            gap: 8px;
            height: 100%;
            width: 100%;
            padding-top: 20px;
        }

        .chart-bars .bar {
            flex: 1;
            border-radius: 4px 4px 0 0;
            transition: height 0.6s ease-out;
        }

        /* Line chart */
        .chart-line {
            width: 100%;
            height: 100%;
            position: relative;
        }

        .chart-line svg {
            width: 100%;
            height: 100%;
        }

        .chart-line path {
            fill: none;
            stroke-width: 3;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .chart-line .area {
            stroke: none;
            opacity: 0.2;
        }

        /* Donut chart */
        .chart-donut {
            width: 120px;
            height: 120px;
            position: relative;
        }

        .chart-donut svg {
            width: 100%;
            height: 100%;
            transform: rotate(-90deg);
        }

        .chart-donut circle {
            fill: none;
            stroke-width: 12;
        }

        .chart-donut .donut-label {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-family: 'JetBrains Mono', monospace;
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--text-primary);
        }

        /* Network/scatter chart */
        .chart-network {
            width: 100%;
            height: 100%;
            position: relative;
        }

        .chart-network .node {
            position: absolute;
            border-radius: 50%;
            animation: pulse 2s ease-in-out infinite;
        }

        .chart-network .line {
            position: absolute;
            height: 1px;
            transform-origin: left center;
            opacity: 0.3;
        }

        @keyframes pulse {

            0%,
            100% {
                transform: scale(1);
                opacity: 0.8;
            }

            50% {
                transform: scale(1.1);
                opacity: 1;
            }
        }

        /* Horizontal bar chart */
        .chart-hbars {
            display: flex;
            flex-direction: column;
            gap: 12px;
            width: 100%;
            padding: 10px 0;
        }

        .chart-hbars .hbar-row {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .chart-hbars .hbar-label {
            font-size: 0.65rem;
            color: var(--text-muted);
            width: 50px;
            text-align: right;
            flex-shrink: 0;
        }

        .chart-hbars .hbar {
            height: 16px;
            border-radius: 4px;
            transition: width 0.8s ease-out;
        }

        /* Timeline chart */
        .chart-timeline {
            display: flex;
            align-items: center;
            width: 100%;
            height: 100%;
            padding: 20px 0;
        }

        .chart-timeline .timeline-line {
            flex: 1;
            height: 3px;
            background: var(--border-color);
            position: relative;
        }

        .chart-timeline .timeline-point {
            position: absolute;
            width: 14px;
            height: 14px;
            border-radius: 50%;
            top: 50%;
            transform: translateY(-50%);
            border: 2px solid var(--bg-card);
        }

        /* Card Content */
        .card-content {
            padding: 24px;
            display: flex;
            flex-direction: column;
            gap: 12px;
            height: calc(100% - 200px);
        }

        .card-tag {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            border-radius: 8px;
            font-size: 0.7rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.03em;
            width: fit-content;
        }

        .card-title {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--text-primary);
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .card-excerpt {
            font-size: 0.85rem;
            color: var(--text-secondary);
            line-height: 1.5;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            flex: 1;
        }

        .card-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding-top: 12px;
            border-top: 1px solid var(--border-color);
        }

        .card-meta {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 0.75rem;
            color: var(--text-muted);
        }

        .card-meta span {
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .card-cta {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 16px;
            background: var(--accent-blue);
            border-radius: 8px;
            color: white;
            font-size: 0.8rem;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.3s;
        }

        .card-cta:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
        }

        /* More Reports Card - Special styling */
        .more-reports-card .more-reports-preview {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
            border-bottom: 1px solid rgba(6, 182, 212, 0.3);
        }

        .more-reports-card .more-reports-icon {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: rgba(6, 182, 212, 0.15);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 12px;
            border: 2px solid rgba(6, 182, 212, 0.3);
        }

        .more-reports-card .more-reports-count {
            font-size: 2rem;
            font-weight: 700;
            color: var(--accent-cyan);
            font-family: var(--font-mono);
        }

        .more-reports-card .card-cta {
            background: var(--accent-cyan);
        }

        .more-reports-card .card-cta:hover {
            box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
        }

        .carousel-dot.more-dot {
            background: var(--accent-cyan);
            opacity: 0.5;
        }

        .carousel-dot.more-dot.active {
            background: var(--accent-cyan);
            opacity: 1;
            box-shadow: 0 0 10px var(--accent-cyan);
        }

        /* Carousel Navigation */
        .carousel-nav {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 20px;
            margin-top: 30px;
        }

        .carousel-nav-btn {
            width: 50px;
            height: 50px;
            border: 1px solid var(--border-color);
            border-radius: 50%;
            background: var(--bg-card);
            color: var(--text-secondary);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
        }

        .carousel-nav-btn:hover {
            border-color: var(--accent-cyan);
            color: var(--accent-cyan);
            transform: scale(1.05);
        }

        .carousel-nav-btn:active {
            transform: scale(0.95);
        }

        .carousel-dots {
            display: flex;
            gap: 8px;
        }

        .carousel-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: var(--border-color);
            cursor: pointer;
            transition: all 0.3s;
        }

        .carousel-dot.active {
            background: var(--accent-cyan);
            transform: scale(1.2);
        }

        .carousel-dot:hover:not(.active) {
            background: var(--text-muted);
        }

        /* Carousel counter */
        .carousel-counter {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.9rem;
            color: var(--text-muted);
            text-align: center;
            margin-top: 16px;
        }

        .carousel-counter .current {
            color: var(--accent-cyan);
            font-weight: 600;
        }

        /* Tag Colors */
        .tag-red {
            background: rgba(239, 68, 68, 0.15);
            color: #ef4444;
        }

        .tag-amber {
            background: rgba(245, 158, 11, 0.15);
            color: #f59e0b;
        }

        .tag-green {
            background: rgba(16, 185, 129, 0.15);
            color: #10b981;
        }

        .tag-blue {
            background: rgba(59, 130, 246, 0.15);
            color: #3b82f6;
        }

        .tag-russia {
            background: rgba(0, 57, 166, 0.15);
            color: #4a7dcc;
        }

        .tag-china {
            background: rgba(222, 41, 16, 0.15);
            color: #ef6b5b;
        }

        /* === CONSTITUTIONAL SECTION === */
        .constitutional-section {
            padding: 80px 24px;
            text-align: center;
            background: var(--bg-primary);
        }

        .section-label {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 6px 12px;
            background: rgba(59, 130, 246, 0.1);
            color: var(--accent-blue);
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
            margin-bottom: 24px;
        }

        .section-title {
            font-size: 2.5rem;
            font-weight: 800;
            margin-bottom: 16px;
            line-height: 1.2;
        }

        .section-desc {
            font-size: 1.1rem;
            color: var(--text-secondary);
            max-width: 700px;
            margin: 0 auto 60px;
            line-height: 1.7;
        }

        .principles-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 24px;
            text-align: left;
            max-width: 1000px;
            margin: 0 auto;
        }

        .principle-card {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            padding: 24px;
            display: flex;
            gap: 20px;
            transition: all 0.3s;
        }

        .principle-card:hover {
            border-color: var(--accent-blue);
            transform: translateY(-2px);
        }

        .principle-number {
            width: 40px;
            height: 40px;
            background: rgba(59, 130, 246, 0.1);
            color: var(--accent-blue);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .principle-content h4 {
            color: white;
            margin-bottom: 8px;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }

        .principle-content p {
            font-size: 0.9rem;
            color: var(--text-secondary);
            line-height: 1.6;
            margin-bottom: 0;
        }

        /* Coming Soon Badge */
        .badge-coming-soon {
            font-size: 0.65rem;
            padding: 2px 8px;
            background: rgba(245, 158, 11, 0.15);
            color: #f59e0b;
            border: 1px solid rgba(245, 158, 11, 0.3);
            border-radius: 12px;
            font-weight: 600;
            letter-spacing: 0.5px;
            white-space: nowrap;
        }

        /* Flow Diagram */
        .flow-diagram {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 16px;
            flex-wrap: wrap;
            margin-top: 60px;
        }

        .flow-step {
            text-align: center;
            width: 120px;
        }

        .flow-icon {
            width: 56px;
            height: 56px;
            margin: 0 auto 12px;
            background: var(--bg-tertiary);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--accent-blue);
        }

        .flow-step:last-child .flow-icon {
            background: rgba(16, 185, 129, 0.1);
            color: var(--accent-green);
            border-color: var(--accent-green);
        }

        .flow-label {
            display: block;
            font-weight: 700;
            font-size: 0.85rem;
            color: white;
            margin-bottom: 4px;
        }

        .flow-sublabel {
            display: block;
            font-size: 0.75rem;
            color: var(--text-secondary);
        }

        .flow-arrow {
            color: var(--border-color);
        }



        /* === FOOTER === */
        .footer {
            position: relative;
            z-index: 1;
            text-align: center;
            padding: 40px;
            border-top: 1px solid var(--border-color);
        }

        .footer-brand {
            font-size: 1.25rem;
            font-weight: 700;
            margin-bottom: 8px;
        }

        .footer p {
            color: var(--text-muted);
            font-size: 0.85rem;
        }

        .footer-links {
            display: flex;
            justify-content: center;
            gap: 24px;
            margin-top: 16px;
        }

        .footer-link {
            color: var(--text-secondary);
            text-decoration: none;
            font-size: 0.85rem;
            transition: color 0.2s;
        }

        .footer-link:hover {
            color: var(--accent-cyan);
        }

        /* === SEARCH OVERLAY (from unified-search.js) === */
        .search-overlay {
            position: fixed;
            inset: 0;
            background: rgba(5, 10, 20, 0.95);
            backdrop-filter: blur(20px);
            z-index: 2000;
            display: none;
            align-items: flex-start;
            justify-content: center;
            padding: 120px 24px 24px;
        }

        .search-overlay.active {
            display: flex;
        }

        .search-container {
            width: 100%;
            max-width: 700px;
        }

        .search-input-wrapper {
            display: flex;
            align-items: center;
            gap: 16px;
            padding: 18px 24px;
            background: var(--bg-card);
            border: 1px solid var(--border-glow);
            border-radius: 16px;
            margin-bottom: 24px;
        }

        .search-input-large {
            flex: 1;
            background: transparent;
            border: none;
            color: var(--text-primary);
            font-size: 1.25rem;
            font-family: inherit;
            outline: none;
        }

        .search-input-large::placeholder {
            color: var(--text-muted);
        }

        /* === RESPONSIVE === */
        @media (max-width: 1024px) {
            .benefits-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        /* === NAVBAR EXTENSIONS === */
        .navbar-center {
            display: flex;
            justify-content: center;
            transition: opacity 0.3s ease;
        }

        /* DESKTOP ONLY: Hide navbar search initially (hero has search) */
        /* JS adds .scrolled class when user scrolls down */
        @media (min-width: 769px) {
            .navbar-center {
                opacity: 0;
                pointer-events: none;
            }

            /* Show when scrolled (JS adds this class) */
            .navbar-center.scrolled {
                opacity: 1;
                pointer-events: auto;
            }
        }

        /* MOBILE: Search always visible (handled by existing @media max-width: 768px with !important) */

        /* navbar-search-container styles moved to shared-components.css */
        .navbar-search-container {
            padding: 0 16px;
            gap: 10px;
            transition: all 0.3s ease;
        }

        .navbar-search-input {
            background: transparent;
            border: none;
            color: var(--text-primary);
            font-size: 0.85rem;
            width: 100%;
            font-family: var(--font-display);
        }

        .navbar-logo {
            font-size: 1.5rem;
            font-weight: 700;
        }

        @media (max-width: 768px) {
            .navbar {
                padding: 0 20px;
            }

            .hero-compact {
                padding: 72px 20px 16px;
                overflow-x: hidden;
            }

            .feature-block {
                flex-direction: column !important;
                text-align: center;
                margin-bottom: 80px;
                gap: 40px;
                padding: 0 24px;
            }

            .feature-text {
                max-width: 100%;
                margin: 0 auto;
            }

            .feature-graphic {
                width: 100%;
                display: flex;
                justify-content: center;
                transform: scale(0.85);
                /* Scale down for mobile */
                pointer-events: none; /* Don't block form clicks */
            }

            .hero-title {
                font-size: 2rem;
            }

            .hero-search {
                margin: 0 auto;
                width: 100%;
                max-width: 100%;
            }

            .search-hint {
                display: none;
            }

            .carousel-section {
                padding: 20px 0 20px;
            }

            .carousel-container {
                height: 400px;
                width: 100%;
                margin: 0 auto;
            }

            .carousel-card {
                width: 300px;
                height: 380px;
                left: 50%;
                margin-left: -150px;
                margin-top: -190px;
            }

            .card-preview {
                height: 160px;
            }

            .card-content {
                height: calc(100% - 160px);
                padding: 16px;
                gap: 8px;
            }

            .card-title {
                font-size: 1rem;
            }

            .card-excerpt {
                font-size: 0.8rem;
            }



            /* === REDESIGNED MOBILE GRID (2x2) === */
            .benefits-grid,
            .principles-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 12px;
            }

            .principle-card {
                padding: 16px 12px;
                text-align: center;
                display: flex;
                flex-direction: column;
                align-items: center;
            }

            .principle-number {
                margin: 0 auto 12px;
                background: rgba(59, 130, 246, 0.1);
                border-radius: 50%;
                width: 40px;
                height: 40px;
                display: flex;
                align-items: center;
                justify-content: center;
            }

            .principle-content h4 {
                font-size: 0.85rem;
                margin-bottom: 6px;
                display: flex;
                flex-direction: column;
                align-items: center;
                gap: 4px;
            }

            /* Badge adjustment for small grid */
            .badge-coming-soon {
                font-size: 0.55rem;
                padding: 2px 6px;
                margin-left: 0;
            }

            .principle-content p {
                font-size: 0.7rem;
                line-height: 1.4;
                color: var(--text-muted);
            }


            /* === REDESIGNED FLOW (Horizontal Stepper) === */
            .flow-diagram {
                display: flex;
                flex-direction: row;
                flex-wrap: wrap;
                align-items: center;
                justify-content: center;
                gap: 20px;
                width: 100%;
                margin-top: 40px;
                position: relative;
                padding: 0 20px;
            }

            /* Hide connecting line on mobile wrap */
            .flow-diagram::after {
                display: none;
            }

            .flow-step {
                width: calc(50% - 20px);
                margin-bottom: 20px;
                display: flex;
                flex-direction: column;
                align-items: center;
                position: relative;
                z-index: 1;
            }

            .flow-icon {
                width: 40px;
                height: 40px;
                margin: 0 auto 8px;
                background: var(--bg-primary);
                /* Hide line behind */
                border-radius: 50%;
                /* Circle */
                font-size: 1rem;
            }

            .flow-icon svg {
                width: 18px !important;
                height: 18px !important;
            }

            .flow-label {
                font-size: 0.65rem;
                color: var(--text-secondary);
                text-align: center;
                white-space: normal;
                line-height: 1.2;
                max-width: 60px;
            }

            /* Hide Desktop Elements */
            .flow-arrow,
            .flow-sublabel {
                display: none;
            }
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        /* Truth Movement (Notify) */
        .notify-section {
            padding: 80px 24px;
            text-align: center;
            background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-card) 100%);
            border-top: 1px solid var(--border-color);
        }

        .notify-title {
            font-size: 2rem;
            font-weight: 800;
            color: white;
            margin-bottom: 12px;
        }

        .notify-discount {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 6px 16px;
            background: rgba(16, 185, 129, 0.1);
            color: var(--accent-green);
            border-radius: 8px;
            font-size: 0.9rem;
            margin-bottom: 32px;
        }

        .notify-form {
            max-width: 500px;
            margin: 0 auto;
            text-align: left;
        }

        .notify-input,
        .notify-textarea {
            width: 100%;
            padding: 14px;
            background: var(--bg-deep);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            color: white;
            font-family: var(--font-display);
            margin-bottom: 16px;
        }

        .notify-textarea {
            height: 100px;
            resize: none;
        }

        .notify-optional {
            font-size: 0.85rem;
            color: var(--text-secondary);
            margin-bottom: 8px;
            display: block;
        }

        .btn-glow {
            width: 100%;
            padding: 16px;
            background: var(--accent-blue);
            color: white;
            border: none;
            border-radius: 8px;
            font-weight: 700;
            font-size: 1rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            transition: background 0.2s;
        }

        .btn-glow:hover {
            background: #2563eb;
        }
    </style>
</head>

<body>
    <!-- Background Effects -->
    <div class="bg-grid"></div>
    <div class="bg-glow"></div>

    <!-- Search Overlay -->
    <div class="search-overlay" id="searchOverlay">
        <div class="search-container">
            <div class="search-input-wrapper">
                <i data-lucide="search" style="width:24px;height:24px;"></i>
                <input type="text" id="searchInput" class="search-input-large"
                    placeholder="Search investigative reports..." autocomplete="off">
            </div>
            <div id="searchResults"></div>
        </div>
    </div>

    <!-- MAGNIFYING LENS (Focus Element) -->
    <!-- Removed fixed SVG path, using direct ScrollTrigger pinning instead -->
    <div id="truth-lens"
        style="position: fixed; top: 50%; left: 50%; width: 60px; height: 60px; z-index: 50; pointer-events: none; opacity: 0; transform: translate(-50%, -50%);">
        <!-- Glass -->
        <div class="lens-glass"
            style="width: 100%; height: 100%; border: 3px solid #06b6d4; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.1), rgba(6,182,212,0.05)); box-shadow: 0 0 20px rgba(6,182,212,0.4), inset 0 0 10px rgba(6,182,212,0.2); transition: border-color 0.3s ease;">
        </div>
        <!-- Handle -->
        <div
            style="position: absolute; bottom: -15px; right: -15px; width: 4px; height: 30px; background: #06b6d4; transform: rotate(-45deg); border-radius: 2px;">
        </div>
    </div>

    <!-- MAIN CONTENT WRAPPER -->
    <div class="content-wrapper" style="position: relative; z-index: 1;">
        <!-- Navbar -->
        <div id="navbar-placeholder" data-page-type="home"></div>
        <!-- Mobile Menu -->
        <div class="mobile-menu" id="mobileMenu">
            <a href="request-report.html">
                <i data-lucide="file-plus" style="width:20px;height:20px;"></i>
                Request Investigation
            </a>
            <a href="#notify" onclick="toggleMobileMenu()">
                <i data-lucide="bell" style="width:20px;height:20px;"></i>
                Get Early Access
            </a>
        </div>

        <!-- Main Content -->
        <main class="main-container">
            <!-- Compact Hero -->
            <section class="hero-compact">
                <h1 class="hero-title">
                    <div class="hero-logo-wrapper">
                        <div class="hero-radar-bg"></div>
                        <div class="hero-logo-text">
                            <span class="genu">G</span><span class="genu">e</span><span class="genu">n</span><span class="genu">u</span><span class="verity">V</span><span class="verity">e</span><span class="verity">r</span><span class="verity">i</span><span class="verity">t</span><span class="verity">y</span><span class="hero-cursor"></span>
                        </div>
                        <svg class="hero-polygraph-svg" viewBox="0 0 200 30" preserveAspectRatio="none">
                            <path class="hero-polygraph-line-glow" d="M0,15 L20,15 L25,15 L30,5 L35,25 L40,10 L45,20 L50,15 L70,15 L75,15 L80,3 L85,27 L90,8 L95,22 L100,15 L200,15"/>
                            <path class="hero-polygraph-line" d="M0,15 L20,15 L25,15 L30,5 L35,25 L40,10 L45,20 L50,15 L70,15 L75,15 L80,3 L85,27 L90,8 L95,22 L100,15 L200,15"/>
                        </svg>
                    </div>
                </h1>
                <div class="hero-motto-badge">
                    <span class="motto-text">
                        <span class="slam-word" style="display:inline-block; opacity:0;">TRUTH</span>
                        <span class="slam-word" style="display:inline-block; opacity:0;">IS</span>
                        <span class="slam-word" style="display:inline-block; opacity:0;">NOW.</span>
                    </span>
                </div>
                <!-- Inline Search Box -->
                <div class="hero-search">
                    <i data-lucide="search" style="width:20px;height:20px;"></i>
                    <input type="text" class="hero-search-input" placeholder="Search report database..."
                        onfocus="this.removeAttribute('readonly');">
                    <span class="search-hint">ENTER ↵</span>
                </div>

                <!-- Intelligence Nexus (Cards + List Toggle) -->
                <div id="intelligence-nexus"
                    style="position: relative; width: 100%; max-width: 1400px; margin: 0 auto;">
                    <!-- View Toggle -->
                    <style>
                        .view-toggle-container {
                            position: absolute;
                            top: 0;
                            right: 40px;
                            z-index: 100;
                            display: flex;
                            align-items: center;
                            gap: 12px;
                        }

                        .carousel-section,
                        .list-section {
                            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
                        }

                        @media (max-width: 768px) {
                            .view-toggle-container {
                                right: 20px;
                                top: -10px;
                            }
                        }
                    </style>
                    <div class="view-toggle-container">
                        <button class="view-btn active" id="viewToggleBtn" aria-label="Toggle View">
                            <i data-lucide="list"></i>
                        </button>
                    </div>

                    <!-- 3D Carousel Section -->
                    <div class="carousel-section" id="carouselSection">
                        <div class="carousel-container">
                            <div class="carousel-track" id="carouselTrack">
                                <!-- Cards Injected JS -->
                            </div>
                        </div>

                        <div class="carousel-nav">
                            <button class="carousel-nav-btn" onclick="navigateCarousel(-1)">
                                <i data-lucide="chevron-left"></i>
                            </button>
                            <div class="carousel-dots" id="carouselDots">
                                <!-- Dots JS -->
                            </div>
                            <button class="carousel-nav-btn" onclick="navigateCarousel(1)">
                                <i data-lucide="chevron-right"></i>
                            </button>
                        </div>

                        <div class="carousel-counter">
                            <span class="current" id="currentIndex">1</span> / <span class="total"
                                id="totalCount">45</span>
                            <div style="margin-top:4px; font-size:0.7em; opacity:0.6;">SWIPE TO NAVIGATE</div>
                        </div>
                    </div>

                    <!-- List View Section (Hidden by default, swapped via JS) -->
                    <section class="list-section" id="listView"
                        style="display:none; padding: 40px 20px; max-width: 1200px; margin: 0 auto;">
                        <!-- List Items Injected JS -->
                    </section>
                </div>
            </section>

            <!-- THEMATIC ZIG-ZAG LAYOUT -->
            <section class="thematic-section">
                <!-- Feature 1: Verification (Graphic Right) -->
                <div class="feature-block trigger-1">
                    <div class="feature-text">
                        <h2>Verified Truth</h2>
                        <p>In an era of deepfakes and misinformation, GenuVerity stands as the immutable layer of trust.
                            Our consensus verification engine cross-references thousands of primary sources instantly.
                        </p>
                        <a href="methodology.html" class="btn-premium-glass">
                            <i data-lucide="book-open" style="width:16px;height:16px;"></i>
                            Explore Methodology
                        </a>
                    </div>
                    <div class="feature-graphic" id="graphic-1">
                        <div class="shield-3d">
                            <div class="shield-layer"></div>
                            <div class="shield-layer"></div>
                            <div class="shield-layer"></div>
                        </div>
                    </div>
                </div>

                <!-- Feature 2: Data Intelligence (Graphic Left) -->
                <div class="feature-block reverse trigger-2">
                    <div class="feature-text">
                        <h2>Living Data</h2>
                        <p>Static reports are obsolete. Our intelligence dossiers live and breathe with the market.
                            Watch numbers update in real-time as new SEC filings and government data sets are released.
                        </p>
                    </div>
                    <div class="feature-graphic" id="graphic-2">
                        <div class="grid-3d">
                            <!-- Random Data Bars -->
                            <div class="data-bar" style="left:20px; height:80px; animation: float 3s infinite;"></div>
                            <div class="data-bar" style="left:60px; height:120px; animation: float 4s infinite 0.5s;">
                            </div>
                            <div class="data-bar" style="left:100px; height:60px; animation: float 2.5s infinite 1s;">
                            </div>
                            <div class="data-bar"
                                style="left:140px; height:150px; animation: float 3.5s infinite 0.2s;"></div>
                            <div class="data-bar" style="left:180px; height:90px; animation: float 4.5s infinite 0.7s;">
                            </div>
                        </div>
                    </div>
                </div>

                <!-- Feature 3: Global Network (Graphic Right) -->
                <div class="feature-block trigger-3">
                    <div class="feature-text">
                        <h2>Global Nexus</h2>
                        <p>From Washington to Tokyo, our network of automated sentinels monitors policy shifts 24/7. We
                            don't just report news; we analyze the systemic ripple effects across the globe.</p>
                    </div>
                    <div class="feature-graphic" id="graphic-3">
                        <div class="globe-3d">
                            <div class="globe-ring" style="transform: rotateY(0deg);"></div>
                            <div class="globe-ring" style="transform: rotateY(45deg);"></div>
                            <div class="globe-ring" style="transform: rotateY(90deg);"></div>
                            <div class="globe-ring" style="transform: rotateX(90deg);"></div>
                        </div>
                    </div>
                </div>
            </section>


            <!-- BENEFITS / PROCESS REDESIGN (Zig Zag) -->
            <section class="thematic-section" style="padding-top: 0;">

                <!-- Block 4: The Process (Zig) -->
                <div class="feature-block reverse trigger-4">
                    <div class="feature-text">
                        <h2>The Verification Engine</h2>
                        <p>Our proprietary "Truth Core" processes thousands of documents per second. From AI-driven
                            analysis to human-verified consensus, see how we distill chaos into clarity.</p>
                        <div style="display:flex; gap:16px; margin-top:20px;">
                            <div class="flow-step">
                                <div class="flow-icon"><i data-lucide="scan-search" style="width:20px;"></i></div>
                                <span class="flow-label">Scan</span>
                            </div>
                            <div class="flow-step">
                                <div class="flow-icon"><i data-lucide="cpu" style="width:20px;"></i></div>
                                <span class="flow-label">Analyze</span>
                            </div>
                            <div class="flow-step">
                                <div class="flow-icon"><i data-lucide="check-circle" style="width:20px;"></i></div>
                                <span class="flow-label">Verify</span>
                            </div>
                        </div>
                    </div>
                    <div class="feature-graphic" id="graphic-4" style="perspective:1000px;">
                        <!-- 3D Process Node -->
                        <div class="globe-3d"
                            style="width:180px; height:180px; animation-duration:10s; border-color: rgba(59,130,246,0.2);">
                            <div class="globe-ring" style="border-color: var(--accent-blue);"></div>
                            <div class="globe-ring"
                                style="transform: rotateX(90deg); border-color: var(--accent-blue);"></div>
                            <div
                                style="position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-weight:800; color:white; text-shadow:0 0 10px var(--accent-blue);">
                                CORE</div>
                        </div>
                    </div>
                </div>

                <!-- Block 5: Join Movement (Zag) -->
                <div class="feature-block trigger-5" id="notify" style="scroll-margin-top: 100px;">
                    <div class="feature-text">
                        <h2>Join the Truth Movement</h2>
                        <p>Be a founding member of the next generation of fact-checking. Secure your spot in the beta
                            and get exclusive access to our "Deep Dive" dossiers.</p>

                        <form class="notify-form" onsubmit="handleContactSubmit(event)" id="contactForm"
                            style="margin-top:20px; text-align:left; max-width:100%;">
                            <div class="notify-fields" style="flex-direction: column; gap: 12px;">
                                <!-- Email -->
                                <input type="email" class="notify-input" id="notify-email" placeholder="Email Address"
                                    required style="width:100%;">

                                <!-- Use Case -->
                                <input type="text" class="notify-input" id="notify-usecase"
                                    placeholder="How do you plan on using GenuVerity?" style="width:100%;">

                                <!-- Source -->
                                <select class="notify-input" id="notify-source"
                                    style="width:100%; cursor:pointer; color: #94a3b8;">
                                    <option value="" disabled selected>How did you hear about us?</option>
                                    <option value="twitter">Twitter / X</option>
                                    <option value="youtube">YouTube</option>
                                    <option value="tiktok">TikTok</option>
                                    <option value="linkedin">LinkedIn</option>
                                    <option value="google">Google</option>
                                    <option value="chatgpt">ChatGPT</option>
                                    <option value="claude">Claude</option>
                                    <option value="grok">Grok</option>
                                    <option value="gemini">Gemini</option>
                                    <option value="friend">Friend / Colleague</option>
                                    <option value="newsletter">Newsletter</option>
                                    <option value="other">Other</option>
                                </select>
                            </div>
                            <button type="submit" class="btn-premium-glass cyan pulsing-cta"
                                style="margin-top:20px; width:100%; justify-content:center;">
                                <i data-lucide="zap" style="width:18px;"></i>
                                Claim My Spot
                            </button>
                        </form>
                        <div id="contactSuccess" style="display:none; color: var(--accent-green); margin-top: 16px;">
                            TRANSMISSION RECEIVED. WELCOME.
                        </div>
                    </div>
                    <div class="feature-graphic" id="graphic-5">
                        <!-- 3D Mail Icon / Portal -->
                        <div class="shield-3d" style="animation-duration: 4s;">
                            <div class="shield-layer"
                                style="clip-path: none; border-radius: 12px; background: rgba(16, 185, 129, 0.1); border-color: #10b981;">
                            </div>
                            <div class="shield-layer"
                                style="clip-path: none; border-radius: 12px; transform: translateZ(20px) scale(0.9); border-color: #10b981;">
                            </div>
                            <div
                                style="position:absolute; inset:0; display:flex; align-items:center; justify-content:center;">
                                <i data-lucide="mail-check" style="width:64px; height:64px; color:#10b981;"></i>
                            </div>
                        </div>
                    </div>
                </div>

            </section>



            <!-- Algorithmic Objectivity -->
            <section class="constitutional-section" id="how-it-works">
                <div class="section-label">
                    <i data-lucide="cpu" style="width:14px;height:14px;"></i>
                    What Makes Us Different
                </div>
                <h2 class="section-title">Algorithmic Objectivity</h2>
                <p class="section-desc">
                    GenuVerity continuously monitors breaking news, viral claims, and contested topics. When
                    misinformation
                    spreads, our AI generates comprehensive fact-checks in real time—verified against primary sources.
                </p>

                <div class="principles-grid">
                    <div class="principle-card">
                        <div class="principle-number"><i data-lucide="zap" style="width:18px;height:18px;"></i></div>
                        <div class="principle-content">
                            <h4>Always-On Verification <span class="badge-coming-soon">COMING SOON</span></h4>
                            <p>No waiting for fact-checkers to catch up. GenuVerity detects viral claims as they emerge.
                            </p>
                        </div>
                    </div>
                    <div class="principle-card">
                        <div class="principle-number"><i data-lucide="scale" style="width:18px;height:18px;"></i></div>
                        <div class="principle-content">
                            <h4>Just the Facts</h4>
                            <p>Algorithms don't have political leanings. Every report follows the evidence—wherever it
                                leads.</p>
                        </div>
                    </div>
                    <div class="principle-card">
                        <div class="principle-number"><i data-lucide="eye" style="width:18px;height:18px;"></i></div>
                        <div class="principle-content">
                            <h4>Full Transparency</h4>
                            <p>See exactly how conclusions were reached. Every source is linked, every logical step
                                documented.</p>
                        </div>
                    </div>
                    <div class="principle-card">
                        <div class="principle-number"><i data-lucide="target" style="width:18px;height:18px;"></i></div>
                        <div class="principle-content">
                            <h4>Origin Tracing</h4>
                            <p>We identify when and where disinformation first appeared—pinpointing bot injections.</p>
                        </div>
                    </div>
                </div>

                <!-- Flow Pipeline -->
                <div class="flow-diagram">
                    <div class="flow-step">
                        <div class="flow-icon"><i data-lucide="radar" style="width:24px;height:24px;"></i></div>
                        <span class="flow-label">Viral Claim</span>
                        <span class="flow-sublabel">Found</span>
                    </div>
                    <div class="flow-arrow"><i data-lucide="chevron-right"></i></div>
                    <div class="flow-step">
                        <div class="flow-icon"><i data-lucide="search" style="width:24px;height:24px;"></i></div>
                        <span class="flow-label">Sources</span>
                        <span class="flow-sublabel">Fetched</span>
                    </div>
                    <div class="flow-arrow"><i data-lucide="chevron-right"></i></div>
                    <div class="flow-step">
                        <div class="flow-icon"><i data-lucide="cpu" style="width:24px;height:24px;"></i></div>
                        <span class="flow-label">AI Analysis</span>
                        <span class="flow-sublabel">Weighed</span>
                    </div>
                    <div class="flow-arrow"><i data-lucide="chevron-right"></i></div>
                    <div class="flow-step">
                        <div class="flow-icon"><i data-lucide="check-circle" style="width:24px;height:24px;"></i></div>
                        <span class="flow-label">Verdict</span>
                        <span class="flow-sublabel">Published</span>
                    </div>
                </div>

                <div style="text-align: center; margin-top: 32px;">
                    <a href="methodology.html" class="btn-premium-glass">
                        <i data-lucide="book-open" style="width:16px;height:16px;"></i>
                        Read The Standard
                    </a>
                </div>
            </section>

        </main>

        <!-- Footer -->
        <div id="footer-placeholder"></div>
        <script>
            // Form Handling
            async function handleContactSubmit(e) {
                e.preventDefault();
                const btn = e.target.querySelector('button');
                const originalHTML = btn.innerHTML;
                const successMsg = document.getElementById('contactSuccess');
                const form = document.getElementById('contactForm');
                const emailInput = document.getElementById('notify-email');
                const usecaseInput = document.getElementById('notify-usecase');

                btn.disabled = true;
                btn.innerHTML = `Encrypting...`;

                try {
                    const response = await fetch('/api/waitlist', {
                        method: 'POST',
                        headers: {
                            'Content-Type': 'application/json'
                        },
                        body: JSON.stringify({
                            email: emailInput.value,
                            usecase: usecaseInput ? usecaseInput.value : "",
                            source: document.getElementById('notify-source').value || ""
                        })
                    });

                    const data = await response.json();

                    if (data.success) {
                        btn.innerHTML = `Sent`;
                        form.reset();
                        setTimeout(() => {
                            form.style.display = 'none';
                            successMsg.style.display = 'block';
                        }, 800);
                    } else {
                        throw new Error(data.detail || data.message || 'Submission failed');
                    }
                } catch (error) {
                    console.error('Error:', error);
                    btn.innerHTML = originalHTML;
                    btn.disabled = false;
                    alert('Submission failed. Please try again.');
                }
            }

            // Use shared reports data from js/reports-data.js
            const reports = [...REPORTS_DATA].sort((a, b) => b.id - a.id);

            let currentCardIndex = 0;
            const totalCards = reports.length;
            let wasDragging = false;

            // Initialize after shared components are ready
            window.addEventListener('gv:componentsReady', () => {
                const navSearchContainer = document.getElementById('navSearchContainer');
                const navInput = navSearchContainer.querySelector('input');
                const heroSearch = document.querySelector('.hero-search');
                const heroInput = heroSearch.querySelector('input');

                lucide.createIcons();
                initCarousel();
                initSwipeGestures();
                initKeyboardNav();

                // Update placeholder with report count
                const searchInput = document.querySelector('.hero-search-input');
                if (searchInput) {
                    searchInput.placeholder = `Search ${totalCards} investigative reports...`;
                }
            });

            // Toggle mobile menu
            function toggleMobileMenu() {
                const menu = document.getElementById('mobileMenu');
                const hamburger = document.querySelector('.navbar-hamburger');
                menu.classList.toggle('active');
                hamburger.classList.toggle('active');
            }

            // Close mobile menu when clicking outside
            document.addEventListener('click', (e) => {
                const menu = document.getElementById('mobileMenu');
                const hamburger = document.querySelector('.navbar-hamburger');
                if (menu && menu.classList.contains('active') &&
                    !menu.contains(e.target) && !hamburger.contains(e.target)) {
                    menu.classList.remove('active');
                    hamburger.classList.remove('active');
                }
            });

            // Chart rendering via shared module (js/chart-previews.js)
            // Generate carousel cards
            function initCarousel() {
                const track = document.getElementById('carouselTrack');
                const dotsContainer = document.getElementById('carouselDots');

                reports.forEach((report, index) => {
                    const card = document.createElement('div');
                    card.className = 'carousel-card';
                    card.dataset.index = index;

                    // Generate chart from report data using shared module
                    const chartHTML = ChartPreviews.generateChart(report);

                    card.innerHTML = `
                    <div class="card-preview">
                        ${chartHTML}
                    </div>
                    <div class="card-content">
                        <span class="card-tag ${report.tagClass}">
                            <i data-lucide="${report.icon}" style="width:12px;height:12px;"></i>
                            ${report.category}
                        </span>
                        <h3 class="card-title">${report.title}</h3>
                        <p class="card-excerpt">${report.excerpt}</p>
                        <div class="card-footer">
                            <div class="card-meta">
                                <span><i data-lucide="calendar" style="width:12px;height:12px;"></i> ${report.date}</span>
                                <span><i data-lucide="clock" style="width:12px;height:12px;"></i> ${report.readTime}</span>
                            </div>
                            <a href="/${report.slug}" class="card-cta" onclick="event.stopPropagation();">
                                Read <i data-lucide="arrow-right" style="width:14px;height:14px;"></i>
                            </a>
                        </div>
                    </div>
                `;

                    // Add click handler
                    card.addEventListener('click', (e) => {
                        if (e.target.closest('.card-cta')) return;
                        if (wasDragging) {
                            wasDragging = false;
                            return;
                        }
                        const cardIndex = parseInt(card.dataset.index);
                        if (cardIndex !== currentCardIndex) {
                            e.stopPropagation();
                            goToCard(cardIndex);
                        } else {
                            window.location.href = '/' + report.slug;
                        }
                    });

                    track.appendChild(card);

                    // Create dot
                    const dot = document.createElement('div');
                    dot.className = 'carousel-dot';
                    dot.dataset.index = index;
                    dot.addEventListener('click', () => goToCard(index));
                    dotsContainer.appendChild(dot);
                });

                // Update total count
                document.getElementById('totalCount').textContent = totalCards;

                updateCarousel();
                lucide.createIcons();
            }

            // Update carousel positions
            function updateCarousel() {
                const cards = document.querySelectorAll('.carousel-card');
                const dots = document.querySelectorAll('.carousel-dot');

                cards.forEach((card, index) => {
                    const offset = index - currentCardIndex;
                    const absOffset = Math.abs(offset);

                    const translateX = offset * 280;
                    const translateZ = absOffset === 0 ? 0 : -150 - (absOffset * 50);
                    const rotateY = offset * -25;
                    const scale = absOffset === 0 ? 1 : Math.max(0.7, 1 - (absOffset * 0.15));
                    const opacity = absOffset > 3 ? 0 : Math.max(0.3, 1 - (absOffset * 0.25));

                    card.style.transform = `translateX(${translateX}px) translateZ(${translateZ}px) rotateY(${rotateY}deg) scale(${scale})`;
                    card.style.opacity = opacity;

                    if (absOffset === 0) {
                        card.style.zIndex = 100;
                    } else {
                        card.style.zIndex = Math.max(10, 90 - (absOffset * 5));
                    }

                    card.style.pointerEvents = opacity > 0 ? 'auto' : 'none';

                    if (absOffset === 0) {
                        card.classList.add('active');
                    } else {
                        card.classList.remove('active');
                    }
                });

                dots.forEach((dot, index) => {
                    dot.classList.toggle('active', index === currentCardIndex);
                });

                document.getElementById('currentIndex').textContent = currentCardIndex + 1;
            }

            // Navigate carousel
            let isAnimating = false;

            function navigateCarousel(direction) {
                if (isAnimating) return;

                const newIndex = currentCardIndex + direction;
                if (newIndex >= 0 && newIndex < totalCards) {
                    currentCardIndex = newIndex;
                    updateCarousel();

                    // Lock navigation for the duration of the transition (500ms)
                    // This prevents "double-swipes" or event ghosting from skipping cards
                    isAnimating = true;
                    setTimeout(() => { isAnimating = false; }, 500);
                }
            }

            // Go to specific card
            function goToCard(index) {
                if (isAnimating) return;

                if (index >= 0 && index < totalCards) {
                    currentCardIndex = index;
                    updateCarousel();

                    isAnimating = true;
                    setTimeout(() => { isAnimating = false; }, 500);
                }
            }

            // Swipe gestures + wheel scroll
            function initSwipeGestures() {
                const container = document.querySelector('.carousel-container');
                let startX = 0;
                let isDragging = false;
                let lastWheelTime = 0;
                let isTouch = false;

                // Mouse wheel scroll
                container.addEventListener('wheel', (e) => {
                    // Prevent wheel scroll if we just touched (stops momentum scrolling from skipping cards)
                    if (isTouch) return;

                    e.preventDefault();
                    const now = Date.now();
                    if (now - lastWheelTime < 150) return;
                    lastWheelTime = now;

                    const delta = Math.abs(e.deltaX) > Math.abs(e.deltaY) ? e.deltaX : e.deltaY;

                    if (delta > 10) {
                        navigateCarousel(1);
                    } else if (delta < -10) {
                        navigateCarousel(-1);
                    }
                }, { passive: false });

                // Touch swipe
                container.addEventListener('touchstart', (e) => {
                    isTouch = true;
                    startX = e.touches[0].clientX;
                    isDragging = true;
                }, { passive: true });

                container.addEventListener('touchend', (e) => {
                    if (!isDragging) return;
                    isDragging = false;
                    const endX = e.changedTouches[0].clientX;
                    const diff = startX - endX;

                    // Threshold 35px: Sensitive enough for short swipes
                    if (Math.abs(diff) > 35) {
                        e.preventDefault(); // Prevent click-throughs
                        wasDragging = true;
                        navigateCarousel(diff > 0 ? 1 : -1);
                        // Keep 'wasDragging' true until animation lock clears (500ms)
                        setTimeout(() => { wasDragging = false; }, 500);
                    }

                    // Reset touch flag after a delay to allow mouse emulation AND momentum to pass safely
                    setTimeout(() => { isTouch = false; }, 800);
                }, { passive: false });

                // Mouse drag
                let hasDragged = false;

                container.addEventListener('mousedown', (e) => {
                    if (isTouch) return; // Ignore if touch active
                    startX = e.clientX;
                    isDragging = true;
                    hasDragged = false;
                    container.style.cursor = 'grabbing';
                });

                document.addEventListener('mousemove', (e) => {
                    if (!isDragging || isTouch) return;
                    if (Math.abs(e.clientX - startX) > 5) {
                        hasDragged = true;
                    }
                });

                document.addEventListener('mouseup', (e) => {
                    if (!isDragging || isTouch) return;
                    isDragging = false;
                    container.style.cursor = '';
                    const diff = startX - e.clientX;

                    if (hasDragged && Math.abs(diff) > 50) {
                        wasDragging = true;
                        navigateCarousel(diff > 0 ? 1 : -1);
                        setTimeout(() => { wasDragging = false; }, 100);
                    }
                });
            }

            // Keyboard navigation
            function initKeyboardNav() {
                document.addEventListener('keydown', (e) => {
                    // Skip if search overlay is open
                    const searchOverlay = document.getElementById('searchOverlay');
                    if (searchOverlay && searchOverlay.classList.contains('active')) return;

                    if (e.key === 'ArrowLeft') {
                        navigateCarousel(-1);
                    } else if (e.key === 'ArrowRight') {
                        navigateCarousel(1);
                    } else if ((e.metaKey || e.ctrlKey) && e.key === 'k') {
                        e.preventDefault();
                        toggleUnifiedSearch();
                    }
                });
            }
        </script>
        <script>
            // GSAP ANIMATION PILOT (Advanced Scroll)
            document.addEventListener("DOMContentLoaded", (event) => {
                gsap.registerPlugin(ScrollTrigger);

                const tl = gsap.timeline({ defaults: { ease: "power3.out" } });

                // --- 1. HERO ENTRANCE with 11F-A Typewriter Effect ---
                gsap.set(".navbar", { y: -100, opacity: 0 });
                gsap.set(".hero-logo-wrapper", { scale: 0.9, opacity: 0 });
                gsap.set(".hero-motto-badge", { y: 30, opacity: 0 });
                gsap.set(".hero-search", { scale: 0.9, opacity: 0 });
                gsap.set(".carousel-container", { y: 50, opacity: 0 });

                // Typewriter elements
                const heroLogoText = document.querySelector('.hero-logo-text');
                const heroLetters = document.querySelectorAll('.hero-logo-text span:not(.hero-cursor)');
                const heroCursor = document.querySelector('.hero-cursor');
                const heroPolygraphPaths = document.querySelectorAll('.hero-polygraph-line, .hero-polygraph-line-glow');

                // Initialize polygraph lines
                heroPolygraphPaths.forEach(p => {
                    const len = p.getTotalLength();
                    gsap.set(p, { strokeDasharray: len, strokeDashoffset: len });
                });

                // Initial states - letters hidden, cursor visible at start
                gsap.set(heroLetters, { opacity: 0 });
                gsap.set(heroCursor, { opacity: 1, left: 0 });

                // Build timeline
                tl.to(".navbar", { duration: 1, y: 0, opacity: 1 })
                    .to(".hero-logo-wrapper", { duration: 0.5, scale: 1, opacity: 1 }, "-=0.3");

                // Type out each letter and move cursor (sequential, 0.07s per letter)
                heroLetters.forEach((letter, i) => {
                    tl.to(letter, {
                        opacity: 1,
                        duration: 0.01,
                        onComplete: () => {
                            const letterRect = letter.getBoundingClientRect();
                            const textRect = heroLogoText.getBoundingClientRect();
                            const newLeft = letterRect.right - textRect.left;
                            gsap.set(heroCursor, { left: newLeft });
                        }
                    }, i === 0 ? "+=0.1" : "+=0.07");
                });

                // Draw polygraph line as typing happens
                tl.to(heroPolygraphPaths, {
                    strokeDashoffset: 0,
                    duration: 1.2,
                    ease: "power1.inOut"
                }, "-=0.8");

                // Fade out cursor after typing completes
                tl.to(heroCursor, {
                    opacity: 0,
                    duration: 0.2,
                    ease: "power2.out"
                }, "+=0.2");

                // Continue with rest of entrance
                tl.to(".hero-motto-badge", { duration: 0.6, y: 0, opacity: 1 }, "-=0.4")
                    .to(".hero-search", { duration: 0.8, scale: 1, opacity: 1 }, "-=0.2")
                    .to(".carousel-container", { duration: 1, y: 0, opacity: 1 }, "-=0.4");

                // --- 2. PARALLAX GRID BACKGROUND ---
                // Moves the grid slowly as user scrolls for depth effect
                gsap.to(".bg-grid", {
                    yPercent: 50,
                    ease: "none",
                    scrollTrigger: {
                        trigger: "body",
                        start: "top top",
                        end: "bottom bottom",
                        scrub: true
                    }
                });

                // --- 3. NEXUS SEARCH (Centered & Dropdown) ---
                const navbar = document.querySelector('.navbar');

                // 3. DECOUPLED LOGIC: Navbar Search = Local Dropdown ONLY
                // We do NOT add 'search-sync-input' class to this input to avoid global binding
                const navSearchContainer = document.getElementById('navSearchContainer');
                const navSearch = navSearchContainer.querySelector('.navbar-search-container');

                // Create dropdown dynamically if not exists
                let dropdown = document.getElementById('nexusDropdown');
                if (!dropdown) {
                    dropdown = document.createElement('div');
                    dropdown.className = 'nexus-dropdown';
                    dropdown.id = 'nexusDropdown';
                    navSearch.appendChild(dropdown);
                }

                const navInput = navSearch.querySelector('input');
                const reports = typeof REPORTS_DATA !== 'undefined' ? [...REPORTS_DATA].sort((a, b) => b.id - a.id) : [];

                // --- HERO SEARCH (Local Dropdown Logic) ---
                // 1. Get Elements
                const heroSearch = document.querySelector('.hero-search');
                // Remove the onclick that opens the overlay from HTML if it exists, or just ensure we don't use it
                heroSearch.removeAttribute('onclick');
                const heroInput = heroSearch.querySelector('input');

                // 2. Create Dropdown for Hero
                let heroDropdown = document.getElementById('heroNexusDropdown');
                if (!heroDropdown) {
                    heroDropdown = document.createElement('div');
                    heroDropdown.className = 'nexus-dropdown';
                    heroDropdown.id = 'heroNexusDropdown';
                    // Adjust position for Hero context (it's inside .hero-search which is relative/flex)
                    heroDropdown.style.top = '60px';
                    heroDropdown.style.width = '100%';
                    heroDropdown.style.left = '0';
                    heroSearch.style.position = 'relative'; // Ensure positioning context
                    heroSearch.appendChild(heroDropdown);
                }

                // Shared Render Logic
                const renderLocalDropdown = (query, targetDropdown) => {
                    if (!query) {
                        targetDropdown.classList.remove('open');
                        targetDropdown.innerHTML = '';
                        return;
                    }

                    // Filter logic (Local)
                    const hits = reports.filter(r =>
                        r.title.toLowerCase().includes(query.toLowerCase()) ||
                        r.category.toLowerCase().includes(query.toLowerCase())
                    );

                    targetDropdown.innerHTML = ''; // Clear previous

                    if (hits.length === 0) {
                        targetDropdown.innerHTML = '<div style="padding:20px; color:var(--text-muted); text-align:center;">No intelligence found.</div>';
                    } else {
                        // Render Top 5
                        hits.slice(0, 5).forEach(report => {
                            const item = document.createElement('div');
                            item.className = 'nexus-result-item'; // Use class for styling
                            item.style.padding = '12px 16px';
                            item.style.borderBottom = '1px solid rgba(255,255,255,0.05)';
                            item.style.cursor = 'pointer';
                            item.style.display = 'flex';
                            item.style.alignItems = 'center';
                            item.style.gap = '10px';
                            item.style.transition = 'background 0.2s';

                            item.innerHTML = `
                                    <div style="flex:1">
                                        <div style="color:var(--text-primary); font-weight:600; font-size:0.9rem; line-height:1.2;">${report.title}</div>
                                        <div style="color:var(--text-secondary); font-size:0.75rem; margin-top:4px;">${report.date} • ${report.category}</div>
                                    </div>
                                    <i data-lucide="arrow-right" style="width:14px; color:var(--accent-cyan); opacity:0.7;"></i>
                                `;

                            item.onmouseenter = () => item.style.background = 'rgba(6,182,212,0.1)';
                            item.onmouseleave = () => item.style.background = 'transparent';
                            item.onclick = (e) => {
                                e.stopPropagation(); // Prevent propagation
                                window.location.href = '/' + report.slug;
                            };

                            targetDropdown.appendChild(item);
                        });
                        lucide.createIcons({ root: targetDropdown });
                    }

                    targetDropdown.classList.add('open');
                };

                // --- BIND EVENTS ---

                // Navbar Input
                navInput.addEventListener('input', (e) => {
                    renderLocalDropdown(e.target.value.trim(), dropdown);
                });

                // Hero Input
                heroInput.addEventListener('input', (e) => {
                    renderLocalDropdown(e.target.value.trim(), heroDropdown);
                });

                // Enter key support (Generic)
                const handleEnter = (e, input) => {
                    if (e.key === 'Enter') {
                        const query = input.value.trim();
                        if (query) {
                            const bestMatch = reports.find(r =>
                                r.title.toLowerCase().includes(query.toLowerCase())
                            );
                            if (bestMatch) {
                                window.location.href = '/' + bestMatch.slug;
                            }
                        }
                    }
                };

                navInput.addEventListener('keydown', (e) => handleEnter(e, navInput));
                heroInput.addEventListener('keydown', (e) => handleEnter(e, heroInput));


                // Close logic (Global click)
                document.addEventListener('click', (e) => {
                    // Close Navbar Dropdown if click outside
                    if (!navSearch.contains(e.target)) {
                        dropdown.classList.remove('open');
                    }
                    // Close Hero Dropdown if click outside
                    if (!heroSearch.contains(e.target)) {
                        heroDropdown.classList.remove('open');
                    }
                });

                // Scroll Progress & Navbar Search Logic
                window.addEventListener('scroll', () => {
                    const scrollTop = window.scrollY;
                    const docHeight = document.documentElement.scrollHeight - window.innerHeight;
                    const scrollPercent = (scrollTop / docHeight) * 100;

                    // 1. Update Progress Bar
                    const nav = document.querySelector('.navbar');
                    if (nav) {
                        nav.style.setProperty('--scroll-progress', `${scrollPercent}%`);
                    }

                    // 2. Toggle Navbar Search (Show when Hero Search is scrolled out)
                    // On Mobile, we force it via CSS, so this logic is for Desktop
                    const isMobile = window.innerWidth <= 768;
                    const navSearchContainerEl = document.getElementById('navSearchContainer');
                    // Inner container needs width expanded too
                    const navSearchInner = navSearchContainerEl ? navSearchContainerEl.querySelector('.navbar-search-container') : null;

                    if (!isMobile && navSearchContainerEl && navSearchInner) {
                        if (scrollTop > 300) {
                            navSearchContainerEl.style.opacity = '1';
                            navSearchContainerEl.style.pointerEvents = 'all';
                            navSearchInner.style.width = '320px'; // Force width expansion
                        } else {
                            navSearchContainerEl.style.opacity = '0';
                            navSearchContainerEl.style.pointerEvents = 'none';
                            navSearchInner.style.width = '0'; // Force collapse
                            dropdown.classList.remove('open'); // Hide dropdown when hidden
                        }
                    }
                });

                // A. Navbar Search Expand
                gsap.registerPlugin(ScrollTrigger);

                // Initial "Slam" Animation for Motto
                const mottoSlam = gsap.timeline({ delay: 0.2 });
                mottoSlam.to(".slam-word", {
                    duration: 0.15,
                    opacity: 1,
                    scale: 1,
                    startAt: { scale: 4, opacity: 0 },
                    ease: "power2.out",
                    stagger: 0.15
                });

                ScrollTrigger.create({
                    trigger: ".hero-search",
                    start: "bottom top",
                    onEnter: () => gsap.to(navSearch, {
                        width: 320,
                        opacity: 1,
                        duration: 0.5,
                        ease: "power4.out"
                    }),
                    onLeaveBack: () => {
                        gsap.to(navSearch, {
                            width: 0,
                            opacity: 0,
                            duration: 0.3
                        });
                        dropdown.classList.remove('open');
                    }
                });

                // --- 5. ANIMATED FOCUS LENS (REPLACED OLD LOGIC) ---
                // The lens should "snap" to the graphics in the zig-zag layout

                // Note: 'lens' is already defined by document.getElementById("truth-lens") if needed,
                // but we can just reference the ID or re-select if scope allows. 
                // In this block, we just use the new Timeline logic.

                const focusLens = document.getElementById("truth-lens");

                // Reveal lens when we reach the features
                ScrollTrigger.create({
                    trigger: ".thematic-section",
                    start: "top center",
                    onEnter: () => gsap.to(focusLens, { opacity: 1, scale: 1, duration: 0.5 }),
                    onLeaveBack: () => gsap.to(focusLens, { opacity: 0, scale: 0.5, duration: 0.5 })
                });

                // 1. Snap to Shield (Graphic 1 - Right)
                gsap.timeline({
                    scrollTrigger: {
                        trigger: ".trigger-1",
                        start: "top center",
                        end: "bottom center",
                        scrub: 0.6 // Slightly tighter scrub for responsiveness
                    }
                })
                    .to(focusLens, {
                        top: "50%",
                        left: "75%",
                        scale: 1.8, // Larger zoom
                        borderColor: "#3b82f6",
                        ease: "expo.inOut" // Purposeful mechanical snap
                    });

                // 2. Snap to Grid (Graphic 2 - Left)
                gsap.timeline({
                    scrollTrigger: {
                        trigger: ".trigger-2",
                        start: "top center",
                        end: "bottom center",
                        scrub: 0.6
                    }
                })
                    .to(focusLens, {
                        top: "50%",
                        left: "25%",
                        scale: 1.8,
                        borderColor: "#06b6d4",
                        ease: "expo.inOut"
                    });

                // 3. Snap to Globe (Graphic 3 - Right)
                gsap.timeline({
                    scrollTrigger: {
                        trigger: ".trigger-3",
                        start: "top center",
                        end: "bottom center",
                        scrub: 0.6
                    }
                })
                    .to(focusLens, {
                        top: "50%",
                        left: "75%",
                        scale: 1.8,
                        borderColor: "#10b981",
                        ease: "expo.inOut"
                    });

                // 4. Snap to Process (Graphic 4 - Left/Center)
                gsap.timeline({
                    scrollTrigger: {
                        trigger: ".trigger-4",
                        start: "top center",
                        end: "bottom center",
                        scrub: 0.6
                    }
                })
                    .to(focusLens, {
                        top: "50%",
                        left: "25%",
                        scale: 2.2,
                        borderColor: "#3b82f6",
                        ease: "expo.inOut"
                    });

                // 5. Snap to Join Headline (Trigger 5 - Focused on text)
                gsap.timeline({
                    scrollTrigger: {
                        trigger: ".trigger-5",
                        start: "top center",
                        end: "bottom center",
                        scrub: 0.6,
                        onEnter: () => focusLens.querySelector('.lens-glass').classList.add("lens-glass-glow"),
                        onLeave: () => focusLens.querySelector('.lens-glass').classList.remove("lens-glass-glow"),
                        onEnterBack: () => focusLens.querySelector('.lens-glass').classList.add("lens-glass-glow"),
                        onLeaveBack: () => focusLens.querySelector('.lens-glass').classList.remove("lens-glass-glow")
                    }
                })
                    .to(focusLens, {
                        top: "50%",
                        left: "55%", // Focus just to the right of the headline
                        scale: 2.5,
                        borderColor: "#06b6d4",
                        ease: "back.out(1.7)"
                    });


                // --- 4. STAGGERED LIST REVEAL ---
                // If there's a list section, animate items in
                const listItems = document.querySelectorAll('.list-item');
                if (listItems.length > 0) {
                    gsap.from(listItems, {
                        y: 50,
                        opacity: 0,
                        duration: 0.8,
                        stagger: 0.1,
                        scrollTrigger: {
                            trigger: ".list-section",
                            start: "top 80%", // Start animating when top of section hits 80% viewport height
                            toggleActions: "play none none reverse"
                        }
                    });
                }




                // Allow manual toggle of sections to see effects
                window.toggleView = function (view) {
                    // Existing toggle logic placeholder helper
                    // In a real scenario, this connects to your existing view switcher
                    // Just ensuring GSAP refreshes if layout changes
                    setTimeout(() => ScrollTrigger.refresh(), 100);
                }
            });
        </script>
</body>

</html>