/* -------------------------------------------------------------------------
           1. DESIGN TOKENS (Premium 2026) 
        ------------------------------------------------------------------------- */
        :root {
            /* Void Palette (Deep atmospheric tech background - clearer, less dark) */
            --void-900: #0a0b12;
            /* Blue-tinted near-black */
            --void-800: #131520;
            /* Deep blue-purple */
            --void-700: #1d2030;
            /* Lighter interface base */

            /* Glassmorphism System */
            --glass-surface: rgba(255, 255, 255, 0.03);
            /* Slightly more visible */
            --glass-surface-hover: rgba(255, 255, 255, 0.06);
            --glass-border: rgba(255, 255, 255, 0.08);
            --glass-border-hover: rgba(255, 255, 255, 0.15);
            --glass-blur: blur(24px);

            /* Primary & Accents */
            --neon-primary: #0fb6e0;
            --neon-secondary: #6E3F8E;
            --neon-success: #10b981;

            /* Mobile UX Snap Override */
            --transition-mobile: 0.35s cubic-bezier(0.2, 1, 0.4, 1);

            /* Typography Scale */
            --text-100: #ffffff;
            --text-200: #a1a1aa;
            --text-300: #71717a;

            --font-mono: 'Space Mono', monospace;
            --font-sans: 'Plus Jakarta Sans', sans-serif;
            --font-display: 'Unbounded', sans-serif;

            /* Motion Dynamics - Hardware Accelerated Easing */
            --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
            --transition-fast: 0.2s var(--ease-out-expo);
            --transition-base: 0.4s var(--ease-out-expo);
            --transition-slow: 0.8s var(--ease-out-expo);

            /* Layout & Spacing Defaults (Mobile First) */
            --container-w: 1280px;
            --space-xs: 0.5rem;
            /* 8px */
            --space-sm: 1rem;
            /* 16px */
            --space-md: 2rem;
            /* 32px */
            --space-lg: 3rem;
            /* 48px */
            --space-xl: 4.5rem;
            /* 72px */
        }

        /* Responsive Token Overrides */
        @media (min-width: 1024px) {
            :root {
                --space-lg: 4rem;
                /* 64px for desktop */
                --space-xl: 6rem;
                /* 96px for desktop instead of 160px */
            }
        }

        /* -------------------------------------------------------------------------
           NEW SECTIONS (Vision 2026)
        ------------------------------------------------------------------------- */

        /* Architecture Blueprint */
        .arch-section {
            padding: var(--space-xl) 0;
            background: radial-gradient(circle at 100% 0%, rgba(110, 63, 142, 0.05) 0%, transparent 40%),
                radial-gradient(circle at 0% 100%, rgba(15, 182, 224, 0.03) 0%, transparent 40%);
            position: relative;
            z-index: 2;
        }

        .arch-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: var(--space-md);
            position: relative;
        }

        @media (min-width: 768px) {
            .arch-grid {
                grid-template-columns: repeat(4, 1fr);
            }
        }

        .arch-step {
            position: relative;
            padding: var(--space-lg) var(--space-md);
            background: var(--glass-surface);
            border: 1px solid var(--glass-border);
            border-radius: 4px;
            /* Matches medical engine style */
            transition: all 0.4s var(--ease-out-expo);
            overflow: hidden;
        }

        .arch-step::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background: var(--royal-purple);
            transform: scaleX(0);
            transform-origin: right;
            transition: transform 0.4s var(--ease-out-expo);
        }

        .arch-step:hover {
            background: var(--glass-surface-hover);
            border-color: var(--royal-purple);
            transform: translateY(-5px);
            box-shadow: 0 10px 30px -10px var(--royal-purple-glow);
        }

        .arch-step:hover::after {
            transform: scaleX(1);
            transform-origin: left;
        }

        .step-num {
            font-family: var(--font-mono);
            font-size: 0.7rem;
            color: var(--royal-purple);
            letter-spacing: 0.1rem;
            display: block;
            margin-bottom: 1.5rem;
            opacity: 0.8;
        }

        .step-title {
            font-family: var(--font-display);
            font-size: 1.25rem;
            margin-bottom: 0.5rem;
            color: #fff;
        }

        .step-desc {
            font-size: 0.875rem;
            color: var(--text-300);
            line-height: 1.5;
        }

        /* Ecosystem v2: The Core Triad */
        .eco-section {
            padding: var(--space-xl) 0;
            background: radial-gradient(circle at 50% 50%, rgba(110, 63, 142, 0.05) 0%, transparent 70%);
            position: relative;
        }

        .eco-grid-v2 {
            display: grid;
            gap: var(--space-lg);
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            max-width: 1100px;
            margin: 0 auto;
        }

        .eco-pod {
            position: relative;
            background: var(--glass-surface);
            border: 1px solid var(--glass-border);
            padding: var(--space-xl) var(--space-lg);
            border-radius: 2px;
            /* Super sharp 2028 look */
            transition: all 0.6s var(--ease-out-expo);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }

        .pod-hud-line {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--neon-primary), var(--neon-secondary), transparent);
            opacity: 0.3;
        }

        .eco-pod:hover {
            background: rgba(110, 63, 142, 0.03);
            border-color: var(--neon-secondary);
            transform: translateY(-10px);
            box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6),
                0 0 20px rgba(110, 63, 142, 0.1);
        }

        .pod-icon {
            font-size: 3rem;
            margin-bottom: var(--space-md);
            color: #fff;
            filter: drop-shadow(0 0 10px var(--neon-primary-glow));
            transition: transform 0.6s var(--ease-out-expo);
        }

        .eco-pod:hover .pod-icon {
            transform: scale(1.1) rotate(5deg);
        }

        .pod-title {
            font-family: var(--font-display);
            font-size: 1.5rem;
            margin-bottom: 1rem;
            letter-spacing: -0.02em;
        }

        .pod-desc {
            font-size: 0.95rem;
            color: var(--text-200);
            line-height: 1.6;
            margin-bottom: 2rem;
        }

        .pod-data-bar {
            width: 100%;
            height: 4px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 2px;
            overflow: hidden;
            position: relative;
        }

        .pod-data-fill {
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            width: 65%;
            background: linear-gradient(90deg, var(--neon-primary), var(--neon-secondary));
            transition: width 1s var(--ease-out-expo);
        }

        .eco-pod:hover .pod-data-fill {
            width: 100%;
        }

        .pod-status {
            font-family: var(--font-mono);
            font-size: 0.6rem;
            color: var(--neon-secondary);
            margin-top: 0.5rem;
            letter-spacing: 0.1em;
            text-transform: uppercase;
        }


        /* -------------------------------------------------------------------------
           2. RESET & PERFORMANCE OPTIMIZATION 
        ------------------------------------------------------------------------- */
        *,
        *::before,
        *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            background-color: var(--void-900);
            color: var(--text-200);
            font-family: var(--font-sans);
            line-height: 1.6;
            overflow-x: hidden;
            width: 100%;
        }

        a {
            text-decoration: none;
            color: inherit;
        }

        ul {
            list-style: none;
        }

        img,
        video {
            max-width: 100%;
            height: auto;
            display: block;
            border-radius: inherit;
        }

        /* Performance class for GPU acceleration */
        .accelerate {
            transform: translateZ(0);
            will-change: transform, opacity;
        }

        /* -------------------------------------------------------------------------
           3. ATMOSPHERIC ARCHITECTURE (Deep Layers)
        ------------------------------------------------------------------------- */
        .system-atmosphere {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            pointer-events: none;
            background: radial-gradient(circle at 50% 0%, var(--void-800) 0%, var(--void-900) 80%);
            overflow: hidden;
        }

        /* Upgrade 4: Tactile Film Grain */
        .system-atmosphere::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
            opacity: 0.04;
            mix-blend-mode: overlay;
            z-index: 1;
        }

        .system-orb {
            position: absolute;
            width: 70vw;
            height: 70vw;
            max-width: 800px;
            max-height: 800px;
            background: radial-gradient(circle, var(--neon-primary-glow) 0%, transparent 70%);
            border-radius: 50%;
            top: -15vh;
            left: 20%;
            transform: translateZ(0);
            /* Removed X translation for smoother multi-orb logic */
            filter: blur(80px);
            /* Deeper blur for premium depth */
            opacity: 0.6;
            animation: breathe 12s infinite alternate var(--ease-out-expo);
            will-change: transform, opacity;
        }

        .system-orb.orb-purple {
            background: radial-gradient(circle, var(--royal-purple-glow) 0%, transparent 70%);
            top: 30vh;
            left: auto;
            right: 15%;
            width: 85vw;
            height: 85vw;
            animation: breathePurple 15s infinite alternate var(--ease-out-expo);
            animation-delay: -5s;
        }

        @keyframes breathe {
            0% {
                transform: translate(0, 0) scale(1) translateZ(0);
                opacity: 0.4;
            }

            100% {
                transform: translate(6vw, 6vh) scale(1.15) translateZ(0);
                opacity: 0.8;
            }
        }

        @keyframes breathePurple {
            0% {
                transform: translate(0, 0) scale(1) translateZ(0);
                opacity: 0.3;
            }

            100% {
                transform: translate(-8vw, -4vh) scale(1.2) translateZ(0);
                opacity: 0.7;
            }
        }

        /* -------------------------------------------------------------------------
           4. LAYOUT SYSTEM
        ------------------------------------------------------------------------- */
        .container {
            width: 100%;
            max-width: var(--container-w);
            margin: 0 auto;
            padding: 0 var(--space-sm);
        }

        @media (min-width: 768px) {
            .container {
                padding: 0 var(--space-md);
            }
        }

        section {
            padding: var(--space-lg) 0;
            /* Reduced from --space-xl to tighten layout globally */
            position: relative;
        }

        .grid-2,
        .grid-3,
        .grid-4 {
            display: grid;
            gap: var(--space-md);
        }

        .grid-2 {
            grid-template-columns: 1fr;
        }

        .grid-3 {
            grid-template-columns: 1fr;
        }

        .grid-4 {
            grid-template-columns: 1fr;
        }

        @media (min-width: 768px) {
            .grid-2 {
                grid-template-columns: repeat(2, 1fr);
                gap: var(--space-lg);
            }

            .grid-3 {
                grid-template-columns: repeat(2, 1fr);
            }

            .grid-4 {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (min-width: 1024px) {
            .grid-3 {
                grid-template-columns: repeat(3, 1fr);
            }

            .grid-4 {
                grid-template-columns: repeat(4, 1fr);
            }
        }

        /* -------------------------------------------------------------------------
        /* Ensure the overlay is gone */
        .nav-overlay {
            display: none !important;
        }

        body.menu-open {
            overflow: hidden;
        }



        .overlay-link:hover {
            color: var(--text-100);
            background: rgba(255, 255, 255, 0.05);
        }

        .nav-overlay.is-active .overlay-link:nth-child(5):hover {
            background: var(--text-200);
            color: var(--void-900);
            transform: translateY(0) scale(1.05);
        }

        /* -------------------------------------------------------------------------
           6. COMPONENT SYSTEM: Glass Cards, Badges, Typography
        ------------------------------------------------------------------------- */
        .glass-card {
            background: var(--glass-surface);
            border: 1px solid var(--glass-border);
            border-radius: 20px;
            padding: var(--space-md);
            position: relative;
            overflow: hidden;
            transition: all var(--transition-base);
        }

        .glass-card:hover {
            transform: translateY(-4px) translateZ(0);
            border-color: var(--glass-border-hover);
            background: var(--glass-surface-hover);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
        }

        .sys-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-family: var(--font-mono);
            font-size: 0.75rem;
            color: var(--neon-primary);
            padding: 6px 12px;
            border-radius: 4px;
            border: 1px solid rgba(59, 130, 246, 0.2);
            margin-bottom: var(--space-md);
            text-transform: uppercase;
            letter-spacing: 0.05em;
            background: rgba(10, 10, 15, 0.4);
            backdrop-filter: blur(4px);
        }

        .sys-badge .dot {
            width: 6px;
            height: 6px;
            background: currentColor;
            border-radius: 50%;
            box-shadow: 0 0 8px currentColor;
            animation: pulse 2s infinite;
        }

        .h2-title {
            font-family: var(--font-display);
            font-size: clamp(2rem, 5vw, 3.5rem);
            color: var(--text-100);
            line-height: 1.1;
            letter-spacing: -0.02em;
            margin-bottom: var(--space-md);
        }

        .h2-title .outline {
            -webkit-text-stroke: 1px rgba(255, 255, 255, 0.4);
            color: transparent;
        }

        /* Terminal Micro-interactions */
        .terminal-box {
            background: #000;
            border-radius: 8px;
            padding: var(--space-sm);
            font-family: var(--font-mono);
            font-size: 0.75rem;
            margin-top: var(--space-md);
            border: 1px solid var(--glass-border);
        }

        .term-line {
            display: flex;
            justify-content: space-between;
            margin-bottom: 4px;
        }

        .term-cmd {
            color: var(--text-300);
        }

        .term-res {
            color: var(--neon-success);
        }

        /* -------------------------------------------------------------------------
           7. SECTIONS & MODULES
        ------------------------------------------------------------------------- */
        /* Hero Core */
        .hero {
            min-height: calc(100vh - var(--space-xl));
            display: flex;
            align-items: center;
            padding-top: 130px;
            position: relative;
            padding-bottom: var(--space-lg);
            /* For absolutely positioned HUD */
        }

        .hero-content {
            text-align: center; 
            display: flex; 
            flex-direction: column; 
            align-items: center;
        }

        /* Upgrade 9: Depth of field blur on distant elements */
        .hero-bg-graphic {
            position: absolute;
            top: 20%;
            right: -5%;
            font-family: var(--font-display);
            font-size: 30vw;
            font-weight: 900;
            color: rgba(255, 255, 255, 0.01);
            -webkit-text-stroke: 1px rgba(255, 255, 255, 0.02);
            filter: blur(8px);
            z-index: -1;
            user-select: none;
            pointer-events: none;
            letter-spacing: -0.05em;
        }

        /* Upgrade 1: Magnetic typography setup */
        .hero-title {
            font-family: var(--font-display);
            font-size: clamp(3rem, 7vw, 6rem);
            font-weight: 900;
            line-height: 1.05;
            color: #d1d1d6;
            /* Softened off-white instead of stark white */
            margin-bottom: var(--space-md);
            letter-spacing: -0.03em;
            position: relative;
            z-index: 2;
        }

        /* The magnetic wrapper */
        .magnetic-wrap {
            display: inline-block;
            transition: transform 0.1s linear;
            /* Fast response for JS control */
            will-change: transform;
            cursor: pointer;
        }

        /* Upgrade 5: Video Text Masking Simulation via CSS */
        .hero-title .video-text {
            display: block;
            color: transparent;
            -webkit-text-stroke: 1px rgba(255, 255, 255, 0.4);
            background: linear-gradient(-45deg, var(--void-800), var(--neon-primary) 50%, var(--void-800));
            background-size: 200% auto;
            -webkit-background-clip: text;
            background-clip: text;
            animation: gradientFlow 4s ease infinite;
        }

        @keyframes gradientFlow {
            0% {
                background-position: 0% 50%;
                -webkit-text-stroke-color: rgba(255, 255, 255, 0.4);
            }

            50% {
                background-position: 100% 50%;
                -webkit-text-stroke-color: rgba(59, 130, 246, 0.6);
            }

            100% {
                background-position: 0% 50%;
                -webkit-text-stroke-color: rgba(255, 255, 255, 0.4);
            }
        }

        .hero-desc {
            font-size: clamp(1rem, 2vw, 1.25rem);
            max-width: 600px;
            color: var(--text-200);
            position: relative;
            z-index: 2;
        }

        /* Upgrade 10: Kinetic Scroll Indicator (Centered) */
        .scroll-indicator-wrap {
            position: absolute;
            bottom: 20px;
            /* Moved lower */
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
            font-family: var(--font-mono);
            font-size: 0.6rem;
            color: var(--text-400);
            letter-spacing: 0.2rem;
            /* More digital spacing */
            text-indent: 0.2rem;
            z-index: 2;
            opacity: 0.6;
            transition: opacity 0.3s ease;
        }

        .scroll-indicator-wrap:hover {
            opacity: 1;
        }

        .s-line {
            width: 1px;
            height: 80px;
            /* Taller technical line */
            background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
            position: relative;
            overflow: hidden;
        }

        .s-line::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 40%;
            background: linear-gradient(to bottom, transparent, #fff, transparent);
            box-shadow: 0 0 15px #fff;
            /* Digital glow */
            animation: scrollLine 2.5s cubic-bezier(0.76, 0, 0.24, 1) infinite;
        }

        @keyframes scrollLine {
            0% {
                transform: translateY(-100%) scaleY(0.5);
                opacity: 0;
            }

            20% {
                opacity: 1;
                transform: translateY(0%) scaleY(1);
            }

            80% {
                opacity: 1;
                transform: translateY(150%) scaleY(1);
            }

            100% {
                transform: translateY(300%) scaleY(0.5);
                opacity: 0;
            }
        }

        /* Video Showreel - Ultra-Modern Glass Tablet */
        .video-section {
            position: relative;
            padding: var(--space-xl) 0;
            display: flex;
            justify-content: center;
            align-items: center;
            overflow: visible;
        }

        .video-spotlight {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 70vw;
            height: 70vw;
            background: radial-gradient(circle, rgba(15, 182, 224, 0.12) 0%, transparent 70%);
            filter: blur(120px);
            z-index: 1;
            pointer-events: none;
        }

        .neural-viewport {
            background: #000;
            border-radius: 44px;
            /* Tablet-style rounded corners */
            overflow: hidden;
            position: relative;
            z-index: 2;
            width: 100%;
            max-width: 780px;
            /* More compact tablet size */
            aspect-ratio: 16/10;
            /* Tablet ratio */
            margin: 0 auto;
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow:
                0 40px 100px rgba(0, 0, 0, 0.9),
                0 0 0 14px rgba(255, 255, 255, 0.02),
                /* Modern Bezel */
                0 0 25px rgba(15, 182, 224, 0.15);
            transform: translateZ(0);
        }

        /* Ambient Tablet Reflection */
        .neural-viewport::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 45%, rgba(255, 255, 255, 0.03) 100%);
            pointer-events: none;
            z-index: 6;
        }

        /* Home Bar Indicator */
        .neural-viewport::after {
            content: '';
            position: absolute;
            bottom: 14px;
            left: 50%;
            transform: translateX(-50%);
            width: 140px;
            height: 4px;
            background: rgba(255, 255, 255, 0.15);
            border-radius: 20px;
            z-index: 7;
        }

        .v-hud {
            position: absolute;
            top: 32px;
            left: 32px;
            right: 32px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            z-index: 10;
            font-family: var(--font-mono);
            font-size: 0.6rem;
            color: rgba(255, 255, 255, 0.4);
            text-transform: uppercase;
            letter-spacing: 0.25em;
            pointer-events: none;
        }

        .video-window video {
            width: 100%;
            height: 100%;
            object-fit: cover;
            opacity: 0.95;
            filter: contrast(1.1) brightness(0.9);
            transition: opacity 0.5s ease;
        }

        .video-window::after {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at center, transparent 35%, rgba(0, 0, 0, 0.4) 100%);
            pointer-events: none;
            z-index: 5;
        }

        /* 
           INFINITY CLINIC 2026: Premium 2-Column Engine
           Design: Ultra-Modern, Glassmorphism, Zero Layout Thrashing
        */
        .clinic-engine-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: var(--space-lg);
            margin-top: var(--space-xl);
            position: relative;
            z-index: 10;
        }

        @media (min-width: 1024px) {
            .clinic-engine-grid {
                grid-template-columns: 4fr 6fr;
                /* 40% Visual, 60% Data */
                gap: var(--space-xl);
                align-items: center;
            }
        }

        .col-visual,
        .col-data {
            display: flex;
            flex-direction: column;
            width: 100%;
        }

        /* Unified Dashboard (Right Column) */
        .clinic-dashboard {
            display: flex;
            flex-direction: column;
            gap: var(--space-md);
            padding: var(--space-lg);
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
            box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(24px) saturate(1.2);
            -webkit-backdrop-filter: blur(24px) saturate(1.2);
            border-radius: 24px;
            position: relative;
            overflow: hidden;
            border: 1px solid var(--glass-border);
            contain: layout paint;
        }

        .dashboard-glow {
            position: absolute;
            width: 500px;
            height: 500px;
            background: radial-gradient(circle, rgba(15, 182, 224, 0.1) 0%, transparent 70%);
            border-radius: 50%;
            top: 0;
            left: 0;
            transform: translate(-50%, -50%);
            pointer-events: none;
            filter: blur(40px);
            z-index: 0;
            opacity: 0;
            transition: opacity 0.5s ease;
            will-change: transform, opacity;
        }

        .clinic-dashboard:hover .dashboard-glow {
            opacity: 1;
        }

        /* Ensure content stays above the glow */
        .dashboard-tabs,
        .dashboard-readout {
            position: relative;
            z-index: 2;
        }

        /* Tabs (Top of Dashboard) */
        .dashboard-tabs {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            border-bottom: 1px solid var(--glass-border);
            padding-bottom: var(--space-sm);
        }

        .anomaly-tab {
            background: rgba(10, 11, 18, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 100px;
            /* Pill shape */
            padding: 8px 16px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-family: var(--font-sans);
            font-size: 0.85rem;
            color: var(--text-200);
            transition: all 0.4s var(--ease-out-expo);
            position: relative;
            overflow: hidden;
        }

        .anomaly-tab:hover {
            background: rgba(255, 255, 255, 0.05);
            color: var(--text-100);
            transform: translateY(-2px) translateZ(0);
        }

        .anomaly-tab.is-active {
            background: rgba(15, 182, 224, 0.15);
            border-color: rgba(15, 182, 224, 0.4);
            color: #fff;
            box-shadow: 0 4px 15px rgba(15, 182, 224, 0.2);
        }

        .an-id {
            font-family: var(--font-mono);
            font-size: 0.7rem;
            color: var(--text-400);
            transition: color 0.4s ease;
        }

        .anomaly-tab.is-active .an-id {
            color: var(--neon-primary);
        }

        /* Holographic Core (Visual Engine) */
        .holo-core {
            position: relative;
            width: 100%;
            aspect-ratio: 1 / 1;
            max-width: 400px;
            /* Larger presence */
            margin: 0 auto;
            display: flex;
            justify-content: center;
            align-items: center;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(15, 182, 224, 0.08) 0%, transparent 60%);
            box-shadow: 0 0 60px rgba(15, 182, 224, 0.1);
            transition: transform 0.8s var(--ease-out-expo), filter 0.8s var(--ease-out-expo);
            contain: layout paint;
        }

        /* Interactive state triggered via JS */
        .holo-core.is-reacting {
            transform: scale(1.05) translateZ(0);
            filter: hue-rotate(20deg) brightness(1.2);
        }

        .holo-core.is-motion-paused .holo-ring.outer,
        .holo-core.is-motion-paused .holo-ring.inner,
        .holo-core.is-motion-paused .holo-scanline,
        .holo-core.is-motion-paused .holo-subject {
            animation-play-state: paused;
        }

        /* Use conic gradients instead of borders for better GPU performance */
        .holo-ring {
            position: absolute;
            border-radius: 50%;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }

        .holo-ring.outer {
            width: 90%;
            height: 90%;
            background: conic-gradient(from 0deg, transparent 70%, rgba(15, 182, 224, 0.4) 95%, var(--neon-primary) 100%);
            mask-image: radial-gradient(circle, transparent 65%, black 66%);
            -webkit-mask-image: radial-gradient(circle, transparent 65%, black 66%);
            animation: spin-slow 8s linear infinite;
            will-change: transform;
        }

        .holo-ring.inner {
            width: 65%;
            height: 65%;
            border: 1px dashed rgba(110, 63, 142, 0.4);
            animation: spin-slow-reverse 12s linear infinite;
            will-change: transform;
        }

        .holo-scanline {
            position: absolute;
            width: 90%;
            height: 90%;
            border-radius: 50%;
            background: conic-gradient(from 0deg, transparent 70%, rgba(15, 182, 224, 0.1) 95%, rgba(15, 182, 224, 0.6) 100%);
            top: 5%;
            left: 5%;
            animation: radar-sweep 4.4s linear infinite;
            mask-image: radial-gradient(circle, transparent 40%, black 70%);
            -webkit-mask-image: radial-gradient(circle, transparent 40%, black 70%);
            pointer-events: none;
            will-change: transform;
        }

        .holo-subject {
            position: relative;
            z-index: 2;
            animation: float-pulse 4s ease-in-out infinite alternate;
            background: rgba(10, 11, 18, 0.8);
            border: 1px solid rgba(15, 182, 224, 0.4);
            width: 120px;
            height: 120px;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            box-shadow: 0 0 40px rgba(15, 182, 224, 0.3), inset 0 0 20px rgba(15, 182, 224, 0.2);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            will-change: transform;
            contain: layout paint;
        }

        .holo-core.is-motion-paused .q-node {
            will-change: auto;
        }

        .holo-coords {
            position: absolute;
            font-family: var(--font-mono);
            font-size: 0.65rem;
            color: var(--neon-primary);
            opacity: 0.8;
            letter-spacing: 0.1em;
            line-height: 1.4;
            text-transform: uppercase;
        }

        .holo-coords.top-left {
            top: 5%;
            left: 0;
            text-align: left;
            border-left: 2px solid var(--neon-primary);
            padding-left: 8px;
        }

        .holo-coords.bottom-right {
            bottom: 5%;
            right: 0;
            text-align: right;
            border-right: 2px solid rgba(255, 255, 255, 0.3);
            padding-right: 8px;
            color: var(--text-400);
        }

        /* Quantum Nodes (Social & AI) */
        .quantum-nodes {
            position: absolute;
            inset: 0;
            pointer-events: none;
            /* Let mousemove pass to holo-core */
            z-index: 3;
            overflow: hidden;
            border-radius: 50%;
        }

        .q-node {
            position: absolute;
            display: flex;
            align-items: center;
            justify-content: center;
            width: var(--n-size, 32px);
            height: var(--n-size, 32px);
            left: var(--x, 50%);
            top: var(--y, 50%);
            transform: translate3d(-50%, -50%, 0);
            color: #fff;
            opacity: 0;
            filter: blur(4px) brightness(0.6);
            transition: opacity 0.6s var(--ease-out-expo), filter 0.6s var(--ease-out-expo);
            pointer-events: none;
            will-change: opacity, filter;
            z-index: 5;
        }

        .q-node img {
            width: 70%;
            height: 70%;
            object-fit: contain;
            opacity: 0.8;
        }

        .q-node i {
            font-size: 1.2rem;
        }

        .q-node.is-revealed {
            opacity: var(--reveal-op, 0);
            filter: blur(0) brightness(1.2) drop-shadow(0 0 10px var(--n-color));
        }

        .holo-data-point.p-1 {
            top: 30%;
            left: 20%;
            animation: blink 2s infinite;
        }

        .holo-data-point.p-2 {
            bottom: 25%;
            left: 70%;
            animation: blink 3s infinite 1s;
        }

        .holo-data-point.p-3 {
            top: 60%;
            right: 15%;
            animation: blink 1.5s infinite 0.5s;
            background: var(--royal-purple);
            box-shadow: 0 0 8px var(--royal-purple);
        }

        @keyframes spin-slow {
            100% {
                transform: translate(-50%, -50%) rotate(360deg);
            }
        }

        @keyframes spin-slow-reverse {
            100% {
                transform: translate(-50%, -50%) rotate(-360deg);
            }
        }

        @keyframes radar-sweep {
            100% {
                transform: rotate(360deg);
            }
        }

        /* Notice how float-pulse uses translateZ implicitly by only dealing with local coordinates, 
           but to force GPU layer we can add translateZ in the transform: */
        @keyframes float-pulse {
            0% {
                transform: translateY(0) scale(1) translateZ(0);
                opacity: 0.8;
            }

            100% {
                transform: translateY(-10px) scale(1.05) translateZ(0);
                opacity: 1;
            }
        }

        @keyframes blink {

            0%,
            100% {
                opacity: 0.2;
            }

            50% {
                opacity: 1;
            }
        }

        /* Readout Panel (Bottom of Dashboard) */
        .dashboard-readout {
            position: relative;
            min-height: 200px;
            /* Prevent layout jumping during transitions */
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
        }

        .readout-content {
            opacity: 1;
            transition: opacity 0.4s var(--ease-out-expo), transform 0.4s var(--ease-out-expo);
            transform: translateY(0) translateZ(0);
            /* Force GUI layer */
            will-change: transform, opacity;
        }

        .readout-content.is-switching {
            opacity: 0;
            transform: translateY(10px) translateZ(0);
        }

        .r-symptom-text {
            font-size: clamp(1.4rem, 3vw, 2rem);
            font-family: var(--font-display);
            color: #fff;
            line-height: 1.2;
            margin-bottom: var(--space-md);
            letter-spacing: -0.01em;
        }

        .r-diagnosis-box {
            background: rgba(0, 0, 0, 0.2);
            border-left: 2px solid var(--neon-primary);
            padding: 16px 20px;
            border-radius: 0 8px 8px 0;
        }

        .r-diag-label {
            font-family: var(--font-mono);
            font-size: 0.65rem;
            color: var(--neon-primary);
            display: block;
            margin-bottom: 8px;
            letter-spacing: 0.1em;
        }

        .r-diagnosis-desc {
            font-size: 1rem;
            color: var(--text-200);
            line-height: 1.6;
        }

        .r-cure-box {
            position: relative;
            padding-top: var(--space-md);
        }

        .r-cure-box::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 1px;
            background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
        }

        .r-cure-label {
            font-family: var(--font-mono);
            font-size: 0.65rem;
            color: var(--neon-success);
            margin-bottom: 8px;
            display: block;
            letter-spacing: 0.1em;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .r-cure-title {
            font-family: var(--font-display);
            font-size: clamp(1.4rem, 2vw, 1.8rem);
            color: #fff;
            margin-bottom: 12px;
            line-height: 1.1;
            letter-spacing: -0.02em;
        }

        .r-cure-desc {
            font-size: 0.95rem;
            color: var(--text-200);
            line-height: 1.6;
        }

        /* -------------------------------------------------------------------------
           8. ANIMATIONS & REVEAL SYSTEM (IntersectionObserver Power)
        ------------------------------------------------------------------------- */
        /* Core principle: Animate only transforms & opacity to avoid layout thrashing */
        .reveal-up {
            opacity: 0;
            transform: translateY(30px) translateZ(0);
            transition: opacity var(--transition-slow), transform var(--transition-slow);
            will-change: transform, opacity;
        }

        .reveal-up.is-visible {
            opacity: 1;
            transform: translateY(0) translateZ(0);
        }

        .stagger-1 {
            transition-delay: 0.1s;
        }

        .stagger-2 {
            transition-delay: 0.2s;
        }

        .stagger-3 {
            transition-delay: 0.3s;
        }

        .stagger-4 {
            transition-delay: 0.4s;
        }

        /* -------------------------------------------------------------------------
           9. FOOTER
        ------------------------------------------------------------------------- */
        /* -------------------------------------------------------------------------
           9. FOOTER (Minimal Premium 2028)
        ------------------------------------------------------------------------- */
        .site-footer {
            padding: var(--space-lg) 0 var(--space-md);
            border-top: 1px solid rgba(255, 255, 255, 0.03);
            background: linear-gradient(to bottom, transparent, rgba(110, 63, 142, 0.01));
            text-align: center;
        }

        .f-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: var(--space-md);
        }

        .f-brand-v2 {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.5rem;
        }

        .f-logo-img {
            width: 160px;
            filter: drop-shadow(0 0 40px rgba(110, 63, 142, 0.4));
            margin-bottom: 1rem;
        }

        .f-brand-name {
            font-family: var(--font-display);
            font-size: 1.25rem;
            letter-spacing: 0.2em;
            color: #fff;
        }

        .f-nav {
            display: flex;
            gap: var(--space-lg);
            font-family: var(--font-mono);
            font-size: 0.75rem;
            letter-spacing: 0.1em;
            text-transform: uppercase;
        }

        .f-nav a {
            color: var(--text-300);
            transition: color 0.3s ease;
        }

        .f-nav a:hover {
            color: var(--neon-primary);
        }

        .f-contact-strip {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.75rem;
            flex-wrap: wrap;
        }

        .f-contact-link {
            width: 38px;
            height: 38px;
            border-radius: 999px;
            border: 1px solid var(--glass-border);
            background: rgba(255, 255, 255, 0.02);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: var(--text-200);
            transition: transform 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
        }

        .f-contact-link:hover {
            transform: translateY(-2px);
            border-color: rgba(37, 211, 102, 0.45);
            color: #25d366;
            box-shadow: 0 10px 24px rgba(37, 211, 102, 0.14);
        }

        .f-contact-link i {
            font-size: 1rem;
        }

        .footer-status-bar {
            width: 100%;
            max-width: 600px;
            padding: 0.5rem 1rem;
            border: 1px solid var(--glass-border);
            background: rgba(255, 255, 255, 0.01);
            display: flex;
            align-items: center;
            font-family: var(--font-mono);
            font-size: 0.65rem;
            color: var(--text-300);
            letter-spacing: 0.05em;
            position: relative;
            transition: border-color 0.3s ease, box-shadow 0.3s ease;
        }

        .footer-status-bar:focus-within {
            border-color: var(--neon-secondary);
            box-shadow: 0 0 15px rgba(110, 63, 142, 0.2);
        }

        .chat-pod-input {
            background: transparent;
            border: none;
            color: #fff;
            font-family: var(--font-mono);
            font-size: 0.75rem;
            flex-grow: 1;
            padding: 0.5rem;
            outline: none;
        }

        .chat-pod-input::placeholder {
            color: rgba(255, 255, 255, 0.2);
        }

        .chat-prompt-icon {
            color: var(--neon-secondary);
            font-size: 1rem;
            cursor: pointer;
            transition: transform 0.3s ease;
        }

        .chat-prompt-icon:hover {
            transform: scale(1.2);
        }

        /* NEURAL CHAT OVERLAY REFINED */
        .chat-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            z-index: 2000;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.5s var(--ease-out-expo);
        }

        .chat-overlay.is-open {
            opacity: 1;
            pointer-events: auto;
        }

        .chat-window {
            width: 90%;
            max-width: 1000px;
            height: 80vh;
            background: rgba(10, 10, 12, 0.9);
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 100px rgba(110, 63, 142, 0.1);
            display: flex;
            flex-direction: column;
            transform: scale(0.95) translateY(20px);
            transition: transform 0.6s var(--ease-out-expo);
        }

        .chat-overlay.is-open .chat-window {
            transform: scale(1) translateY(0);
        }

        .chat-header {
            padding: 1.25rem 1.5rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            background: rgba(255, 255, 255, 0.02);
        }

        .chat-title {
            font-family: var(--font-display);
            font-size: 0.9rem;
            color: #fff;
            display: flex;
            align-items: center;
            gap: 1rem;
            letter-spacing: 0.05em;
        }

        .status-tag {
            font-family: var(--font-mono);
            font-size: 0.6rem;
            color: var(--neon-success);
            border: 1px solid rgba(0, 255, 157, 0.2);
            padding: 2px 8px;
            border-radius: 10px;
            margin-left: 0.5rem;
            letter-spacing: 0.1em;
            text-transform: uppercase;
        }

        .bot-avatar {
            width: 48px;
            height: 48px;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .bot-avatar-img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }


        .neon-dot-active {
            width: 8px;
            height: 8px;
            background: var(--neon-success);
            border-radius: 50%;
            box-shadow: 0 0 10px var(--neon-success);
        }

        .close-chat {
            background: none;
            border: none;
            color: rgba(255, 255, 255, 0.4);
            font-size: 1.5rem;
            cursor: pointer;
            transition: all 0.3s ease;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
        }

        .close-chat:hover {
            color: #fff;
            background: rgba(255, 255, 255, 0.1);
            transform: rotate(90deg);
        }

        .chat-messages {
            flex-grow: 1;
            overflow-y: auto;
            padding: var(--space-lg);
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
            scrollbar-width: thin;
            scrollbar-color: var(--neon-secondary) transparent;
        }

        .msg {
            max-width: 80%;
            padding: 1rem 1.5rem;
            border-radius: 2px;
            font-size: 0.95rem;
            line-height: 1.5;
            white-space: pre-line;
            position: relative;
            animation: msg-slide 0.5s var(--ease-out-expo) forwards;
            opacity: 0;
        }

        @keyframes msg-slide {
            from {
                transform: translateY(20px);
                opacity: 0;
            }

            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .msg.bot {
            align-self: flex-start;
            background: rgba(255, 255, 255, 0.03);
            border-left: 2px solid var(--neon-secondary);
            color: var(--text-200);
        }

        .msg.user {
            align-self: flex-end;
            background: rgba(110, 63, 142, 0.1);
            border-right: 2px solid var(--neon-secondary);
            color: #fff;
            text-align: right;
        }

        .chat-footer {
            padding: var(--space-md) var(--space-lg);
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            background: rgba(255, 255, 255, 0.01);
        }

        .chat-input-wrapper {
            display: flex;
            align-items: center;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid var(--glass-border);
            padding: 0.5rem 1rem;
        }

        .chat-main-input {
            flex-grow: 1;
            background: transparent;
            border: none;
            color: #fff;
            padding: 0.75rem;
            outline: none;
            font-size: 1rem;
        }

        .status-dot-blinking {
            width: 8px;
            height: 8px;
            background: var(--neon-success);
            border-radius: 50%;
            margin-right: 0.75rem;
            box-shadow: 0 0 10px var(--neon-success);
            animation: dot-pulse 1.5s infinite ease-in-out;
        }

        @keyframes dot-pulse {
            0% {
                opacity: 0.4;
                transform: scale(0.8);
            }

            50% {
                opacity: 1;
                transform: scale(1.1);
                box-shadow: 0 0 15px var(--neon-success);
            }

            100% {
                opacity: 0.4;
                transform: scale(0.8);
            }
        }

        .status-dot {
            width: 6px;
            height: 6px;
            background: var(--neon-success);
            border-radius: 50%;
            display: inline-block;
            margin-right: 6px;
            box-shadow: 0 0 10px var(--neon-success);
        }

        .f-legal {
            margin-top: 0.5rem;
            font-family: var(--font-mono);
            font-size: 0.6rem;
            color: rgba(255, 255, 255, 0.15);
            letter-spacing: 0.2em;
        }

        @media (max-width: 767px) {
            :root {
                --glass-blur: blur(16px);
            }

            .f-nav {
                gap: var(--space-md);
            }

            .footer-status-bar {
                flex-direction: column;
                gap: 0.5rem;
            }

            .clinic-dashboard {
                box-shadow: 0 20px 42px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
                backdrop-filter: blur(16px) saturate(1.08);
                -webkit-backdrop-filter: blur(16px) saturate(1.08);
            }

            .dashboard-glow {
                filter: blur(28px);
            }

            .holo-core {
                box-shadow: 0 0 42px rgba(15, 182, 224, 0.08);
            }

            .holo-subject {
                box-shadow: 0 0 28px rgba(15, 182, 224, 0.24), inset 0 0 14px rgba(15, 182, 224, 0.16);
                backdrop-filter: blur(8px);
                -webkit-backdrop-filter: blur(8px);
            }

            .q-node {
                filter: blur(3px) brightness(0.68);
            }

            .q-node.is-revealed {
                filter: blur(0) brightness(1.16) drop-shadow(0 0 7px var(--n-color));
            }
        }

/* -- REFINEMENTS & ADDITIONS -- */

/* Hero Title Line-by-Line Animation Structure */
.hero-line {
    display: block;
}

/* Overriding original hero-title to use design token for color */
.hero-title {
    color: var(--text-100); /* Use design token for pure white */
}
