/* Shared ambient, header, and footer (from ZHI_Landing.html) */
/* --- THE AMBIENT AI AURA --- */
        .ambient-engine {
            position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
            z-index: -2; pointer-events: none; overflow: hidden;
            background: var(--bg-base);
        }
        .aura-node {
            position: absolute; border-radius: 50%;
            filter: blur(120px); opacity: 0.6;
            animation: breathe 20s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
        }
        .node-1 { 
            width: 800px; height: 800px; background: var(--zealic-purple); 
            top: -10%; left: -10%; 
        }
        .node-2 { 
            width: 600px; height: 600px; background: var(--zealic-cyan); 
            bottom: -20%; right: -5%; animation-delay: -5s; 
        }
        .node-3 { 
            width: 500px; height: 500px; background: var(--zealic-vivid); 
            top: 40%; left: 40%; animation-delay: -10s; opacity: 0.3;
        }

        @keyframes breathe {
            0% { transform: scale(1) translate(0, 0); }
            50% { transform: scale(1.2) translate(5%, 5%); }
            100% { transform: scale(0.9) translate(-5%, -5%); }
        }

        .ambient-frost {
            position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
            z-index: -1; pointer-events: none;
            backdrop-filter: blur(80px); -webkit-backdrop-filter: blur(80px);
            background: linear-gradient(to bottom, rgba(248,250,252,0.4) 0%, rgba(248,250,252,0.8) 100%);
        }

        /* --- HEADER --- */
        header {
            position: fixed;
            top: 24px;
            left: max(24px, calc(50vw - 600px));
            right: max(24px, calc(50vw - 600px));
            margin: 0 auto;
            max-width: 1200px;
            width: auto;
            display: flex; justify-content: space-between; align-items: center;
            padding: 12px 24px 12px 32px;
            background: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
            border-radius: 100px; border: 1px solid var(--glass-border);
            box-shadow: 0 8px 32px rgba(0,0,0,0.04);
            z-index: 1000;
        }

        .brand-logo { 
            font-size: 20px; 
            font-weight: 800; 
            color: var(--text-main); 
            text-decoration: none; 
            letter-spacing: -0.00em; 
            display: flex; 
            align-items: center;
            gap: 2px;
            flex-wrap: nowrap;
        }
        
        .brand-logo svg { 
            height: 22px; 
            width: auto;
            color: var(--zealic-purple);
            flex-shrink: 0;
        }
        
        .brand-name {
            display: flex;
            align-items: center;
            flex-wrap: nowrap;
            white-space: nowrap;
            flex-shrink: 0;
            margin-top: -1px;
        }
        
        .brand-name-full { font-weight: 800; }
        .brand-name-full span { font-weight: 300; margin-left: 2px; } 

        nav.nav-desktop { display: flex; gap: 32px; font-size: 14px; font-weight: 600; }
        nav.nav-desktop > a, nav.nav-desktop .dropdown > a { 
            text-decoration: none; color: var(--text-main); opacity: 0.8;
            transition: all 0.2s; display: flex; align-items: center; gap: 6px; padding: 8px 0;
        }
        nav.nav-desktop > a:hover, nav.nav-desktop .dropdown:hover > a { opacity: 1; color: var(--zealic-purple); }
        .nav-arrow { width: 12px; opacity: 0.5; transition: transform 0.2s; }

        .dropdown { position: relative; }
        .dropdown:hover .nav-arrow { transform: rotate(180deg); opacity: 1; }
        .dropdown-content {
            position: absolute; top: 100%; left: -24px; margin-top: 16px;
            background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(24px);
            min-width: 320px; padding: 8px; border-radius: 20px;
            border: 1px solid rgba(0,0,0,0.05); box-shadow: var(--shadow-premium);
            opacity: 0; visibility: hidden; transform: translateY(10px) scale(0.98); 
            transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
            transform-origin: top left;
        }
        .dropdown:hover .dropdown-content { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
        
        .dropdown-item {
            display: flex; align-items: center; gap: 16px; padding: 16px;
            border-radius: 14px; text-decoration: none; color: var(--text-main);
            transition: background 0.2s;
        }
        .dropdown-item:hover { background: rgba(0,0,0,0.03); }
        
        .dropdown-icon {
            width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
            display: flex; align-items: center; justify-content: center;
            background: #FFFFFF; box-shadow: 0 2px 8px rgba(0,0,0,0.04);
            color: var(--zealic-purple); border: 1px solid rgba(0,0,0,0.02);
            transition: all 0.3s ease;
        }
        .dropdown-icon svg { width: 20px; height: 20px; transition: fill 0.3s ease; }
        
        .dropdown-text { display: flex; flex-direction: column; gap: 2px; }
        .dropdown-text strong { font-size: 15px; font-weight: 700; letter-spacing: -0.01em;}
        .dropdown-text span { font-size: 13px; color: var(--text-soft); }

        .btn-primary {
            background: var(--text-main); color: white; padding: 12px 24px; border-radius: 100px; 
            text-decoration: none; font-size: 14px; font-weight: 600; 
            transition: all 0.3s ease;
        }
        .btn-primary:hover { 
            background: var(--zealic-purple); transform: scale(1.02);
            box-shadow: 0 8px 20px rgba(107, 56, 251, 0.2); 
        }

        .nav-toggle {
            display: none;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 5px;
            width: 44px;
            height: 44px;
            padding: 0;
            border: 0;
            border-radius: 12px;
            background: rgba(15, 23, 42, 0.06);
            cursor: pointer;
            color: var(--text-main);
            flex-shrink: 0;
            transition: background 0.2s;
        }
        .nav-toggle:hover { background: rgba(15, 23, 42, 0.1); }
        .nav-toggle-bar {
            display: block;
            width: 20px;
            height: 2px;
            border-radius: 1px;
            background: currentColor;
            transition: transform 0.25s ease, opacity 0.2s;
        }
        .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
            transform: translateY(7px) rotate(45deg);
        }
        .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
        .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
            transform: translateY(-7px) rotate(-45deg);
        }

        .mobile-nav {
            position: fixed;
            inset: 0;
            z-index: 1200;
            pointer-events: none;
        }
        .mobile-nav.is-open { pointer-events: auto; }
        .mobile-nav-backdrop {
            position: absolute;
            inset: 0;
            background: rgba(15, 23, 42, 0.45);
            opacity: 0;
            transition: opacity 0.25s ease;
        }
        .mobile-nav.is-open .mobile-nav-backdrop { opacity: 1; }
        .mobile-nav-sheet {
            position: absolute;
            top: 0;
            right: 0;
            width: min(360px, 90vw);
            height: 100%;
            max-height: 100dvh;
            background: rgba(255, 255, 255, 0.97);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            box-shadow: -12px 0 40px rgba(0, 0, 0, 0.1);
            padding: max(20px, env(safe-area-inset-top)) 24px max(32px, env(safe-area-inset-bottom)) 24px;
            transform: translateX(100%);
            transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            overflow-y: auto;
        }
        .mobile-nav.is-open .mobile-nav-sheet { transform: translateX(0); }
        .mobile-nav-links {
            display: flex;
            flex-direction: column;
            gap: 4px;
            margin-top: 8px;
        }
        .mobile-nav-heading {
            font-size: 11px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            color: var(--text-soft);
            margin: 20px 0 8px;
        }
        .mobile-nav-heading:first-child { margin-top: 0; }
        .mobile-nav-links > a:not(.btn-primary) {
            display: block;
            padding: 14px 4px;
            font-size: 16px;
            font-weight: 600;
            color: var(--text-main);
            text-decoration: none;
            border-radius: 12px;
            transition: background 0.15s, color 0.15s;
        }
        .mobile-nav-links > a:not(.btn-primary):hover {
            background: rgba(0, 0, 0, 0.04);
            color: var(--zealic-purple);
        }
        .mobile-nav-links > a.btn-primary {
            text-align: center;
            margin-top: 16px;
            padding: 14px 20px;
            color: #fff;
        }
        .mobile-nav-links > a.btn-primary:hover {
            color: #fff;
        }

/* --- FOOTER --- */
        footer {
            background: rgba(255, 255, 255, 0.7);
            backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
            border-top: 1px solid rgba(0,0,0,0.05);
            padding: 80px max(24px, env(safe-area-inset-left, 0px)) max(40px, env(safe-area-inset-bottom, 0px)) max(24px, env(safe-area-inset-right, 0px));
            position: relative; z-index: 10;
        }
        
        .footer-content {
            max-width: 1200px; margin: 0 auto;
            display: flex; justify-content: space-between; gap: 64px;
            flex-wrap: wrap;
        }
        
        .footer-brand { flex-shrink: 0; }
        
        .footer-brand p {
            color: var(--text-soft); font-size: 15px; margin-top: 20px; max-width: 280px; line-height: 1.6;
        }
        
        .footer-links {
            display: flex; gap: 80px; flex-wrap: wrap;
        }
        
        .link-col { display: flex; flex-direction: column; gap: 16px; }
        .link-col h4 { font-size: 14px; font-weight: 700; color: var(--text-main); text-transform: uppercase; letter-spacing: 0.05em;}
        .link-col a { color: var(--text-soft); text-decoration: none; font-size: 15px; transition: color 0.2s; }
        .link-col a:hover { color: var(--zealic-purple); }
        
        .footer-bottom {
            max-width: 1200px; margin: 64px auto 0; padding-top: 32px;
            border-top: 1px solid rgba(0,0,0,0.05);
            display: flex; justify-content: space-between; align-items: center;
            flex-wrap: wrap; gap: 16px;
        }
        
        .footer-bottom p { color: var(--text-soft); font-size: 14px; }
        .legal-links { display: flex; gap: 24px; }
        .legal-links a { color: var(--text-soft); text-decoration: none; font-size: 14px; transition: color 0.2s; }
        .legal-links a:hover { color: var(--zealic-purple); }

        /* --- RESPONSIVE (chrome + footer only) --- */
        @media (max-width: 768px) {
            header {
                left: 0;
                right: 0;
                max-width: none;
                width: 100%;
                border-radius: 0;
                top: 0;
                padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
            }
            nav.nav-desktop { display: none; }
            .header-actions { display: none; }
            .nav-toggle { display: flex; align-items: center; justify-content: center; }
            .footer-content { flex-direction: column; gap: 48px; }
            .footer-links { gap: 48px; }
            .footer-bottom { flex-direction: column; text-align: center; justify-content: center; }
        }

