        /* ==========================================================================
           2. NAVIGATION BAR
           ========================================================================== */
        nav {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 1000;
            padding: clamp(0.55rem, 1.8vw, 0.85rem) clamp(0.75rem, 3vw, 2rem);
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: var(--navbar-bg);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border-bottom: 1px solid var(--glass-border);
            /* Specific props only — transition:all causes scroll flicker */
            transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
            will-change: box-shadow;
            transform: translateZ(0);
            backface-visibility: hidden;
            box-sizing: border-box;
        }

        nav.scrolled {
            box-shadow: 0 8px 24px -12px rgba(2, 132, 199, 0.12), 0 1px 2px rgba(0, 0, 0, 0.04);
            border-bottom-color: var(--border);
        }

        [data-theme="dark"] nav.scrolled,
        html.dark-mode nav.scrolled {
            box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.45);
        }

        [data-theme="light"] nav,
        html.light-mode nav,
        [data-theme="light"] nav.scrolled,
        html.light-mode nav.scrolled {
            background: rgba(255, 255, 255, 0.97);
            border-bottom-color: #E6EEF6;
        }


        .logo {
            font-family: var(--font-heading);
            font-size: clamp(1.15rem, 2.5vw, 1.45rem);
            font-weight: 800;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            color: var(--text);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: clamp(0.45rem, 1.2vw, 0.65rem);
            transition: var(--transition);
            flex-shrink: 0;
            white-space: nowrap;
        }

        .logo-gif {
            width: clamp(34px, 4vw, 46px);
            height: clamp(34px, 4vw, 46px);
            object-fit: contain;
            border-radius: 6px;
            flex-shrink: 0;
        }

        .nav-links {
            display: none;
            align-items: center;
            gap: clamp(0.75rem, 1.35vw, 1.85rem);
            font-weight: 500;
            font-size: clamp(0.82rem, 0.92vw, 0.925rem);
            white-space: nowrap;
        }

        @media (min-width: 1024px) {
            .nav-links {
                display: flex;
            }
        }

        @media (min-width: 1024px) and (max-width: 1150px) {
            nav {
                padding: 0.65rem 1rem !important;
            }
            .nav-links {
                gap: 0.65rem !important;
                font-size: 0.82rem !important;
            }
            .nav-cta {
                padding: 0.4rem 0.75rem !important;
                font-size: 0.78rem !important;
            }
            .nav-cta .nav-cta-text-full {
                display: none !important;
            }
            .nav-cta .nav-cta-text-short {
                display: inline !important;
            }
        }

        .nav-links a {
            color: var(--text-secondary);
            text-decoration: none;
            transition: color 0.2s ease;
            position: relative;
            padding: 0.25rem 0;
        }

        .nav-links a:hover,
        .nav-links a.active {
            color: var(--accent);
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--accent);
            transition: width 0.3s ease;
        }

        .nav-links a:hover::after,
        .nav-links a.active::after {
            width: 100%;
        }

        /* Solutions mega-dropdown — click-safe + hover with no dead gap */
        .nav-dropdown {
            position: relative;
        }

        .nav-dropdown-toggle {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            background: none;
            border: none;
            cursor: pointer;
            color: var(--text-secondary);
            font-family: inherit;
            font-weight: 500;
            font-size: 0.925rem;
            padding: 0.25rem 0;
            transition: color 0.2s ease;
        }

        .nav-dropdown-toggle:hover,
        .nav-dropdown.open .nav-dropdown-toggle,
        .nav-dropdown:hover .nav-dropdown-toggle {
            color: var(--accent);
        }

        .nav-dropdown-toggle svg {
            width: 14px;
            height: 14px;
            stroke: currentColor;
            fill: none;
            transition: transform 0.2s ease;
        }

        .nav-dropdown.open .nav-dropdown-toggle svg,
        .nav-dropdown:hover .nav-dropdown-toggle svg {
            transform: rotate(180deg);
        }

        /* Dropdown Menus — Solid, Opaque (No Transparency in Dark/Light mode) */
        .nav-dropdown-menu {
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%) translateY(6px);
            width: max-content;
            min-width: 250px;
            max-width: min(320px, 92vw);
            /* padding-top bridges the visual gap so hover never drops */
            padding: 0.75rem 0 0;
            margin-top: 0;
            background: transparent;
            border: none;
            box-shadow: none;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s ease;
            z-index: 1100;
        }

        /* 100% Solid Backgrounds (Never transparent in dark or light mode) */
        .nav-dropdown-menu-inner,
        .nav-sub-menu-inner {
            background-color: #0b1324 !important; /* Solid dark blue-slate in dark mode */
            border: 1px solid rgba(255, 255, 255, 0.14) !important;
            border-radius: 0.85rem;
            box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
            padding: 0.45rem;
            max-height: none;
            overflow: visible;
        }

        /* Light mode override: 100% solid white */
        [data-theme="light"] .nav-dropdown-menu-inner,
        [data-theme="light"] .nav-sub-menu-inner,
        html.light-mode .nav-dropdown-menu-inner,
        html.light-mode .nav-sub-menu-inner {
            background-color: #ffffff !important;
            border: 1px solid rgba(0, 0, 0, 0.12) !important;
            box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.06) !important;
        }

        /* Vertical Single-Column Dropdown */
        .nav-dropdown-vertical {
            display: flex;
            flex-direction: column;
            gap: 0.2rem;
            min-width: 245px;
        }

        .nav-dropdown.open .nav-dropdown-menu,
        .nav-dropdown:hover .nav-dropdown-menu {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
            transform: translateX(-50%) translateY(0);
        }

        .nav-dropdown-menu a,
        .nav-sub-menu-inner a {
            display: block;
            padding: 0.55rem 0.85rem;
            border-radius: 0.55rem;
            color: var(--text-secondary);
            text-decoration: none;
            font-size: 0.82rem;
            font-weight: 500;
            transition: background 0.18s ease, color 0.18s ease;
        }

        .nav-dropdown-menu a::after,
        .nav-sub-menu-inner a::after { display: none; }

        .nav-dropdown-menu a:hover,
        .nav-sub-menu-inner a:hover {
            background: var(--badge-bg);
            color: var(--accent);
        }

        .nav-dropdown-menu a strong,
        .nav-sub-menu-inner a strong {
            display: block;
            color: var(--text);
            font-size: 0.85rem;
            margin-bottom: 0.1rem;
        }

        .nav-dropdown-menu a span,
        .nav-sub-menu-inner a span {
            display: block;
            font-size: 0.7rem;
            color: var(--text-muted);
            font-weight: 400;
            line-height: 1.35;
        }

        /* Flyout Submenu to the Right for CHRMS */
        .nav-submenu-item {
            position: relative;
        }

        .submenu-trigger-link {
            display: block;
            cursor: pointer;
        }

        .nav-dropdown-menu a strong.chrms-title-row,
        .chrms-title-row {
            display: inline-flex !important;
            align-items: center !important;
            gap: 0.35rem !important;
            white-space: nowrap !important;
            line-height: 1.2 !important;
        }

        .chrms-title-row span {
            display: inline !important;
        }

        .submenu-arrow {
            width: 12px;
            height: 12px;
            stroke: var(--text-muted);
            fill: none;
            flex-shrink: 0;
            display: inline-block;
            vertical-align: middle;
            margin-left: 0.15rem;
            transition: transform 0.2s ease, stroke 0.2s ease;
        }

        .nav-submenu-item:hover > .submenu-trigger-link {
            background: var(--badge-bg);
            color: var(--accent);
        }

        .nav-submenu-item:hover .submenu-arrow,
        .submenu-trigger-link:hover .submenu-arrow {
            stroke: var(--accent);
            transform: translateX(2px);
        }

        .nav-sub-menu {
            position: absolute;
            top: -0.45rem;
            left: 100%;
            padding-left: 0.45rem;
            width: max-content;
            min-width: 250px;
            max-width: 310px;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transform: translateX(-6px);
            transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s ease;
            z-index: 1200;
        }

        .nav-submenu-item:hover .nav-sub-menu,
        .nav-submenu-item.open .nav-sub-menu {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
            transform: translateX(0);
        }

        .nav-sub-menu-inner {
            display: flex;
            flex-direction: column;
            gap: 0.2rem;
            min-width: 245px;
        }

        .nav-actions {
            display: flex;
            align-items: center;
            gap: clamp(0.35rem, 1.5vw, 1rem);
            flex-shrink: 0;
        }

        @media (min-width: 1024px) and (max-width: 1280px) {
            .nav-links {
                gap: 1.1rem;
                font-size: 0.82rem;
            }

            .nav-cta {
                padding: 0.55rem 0.9rem;
                font-size: 0.8rem;
            }

            .nav-cta svg {
                display: none;
            }
        }

        @media (max-width: 480px) {
            .hero {
                padding: 6rem 0 3rem;
                min-height: auto;
            }

            .hero h1 {
                font-size: clamp(1.55rem, 7.5vw, 2.1rem);
            }

            .hero-cta {
                flex-direction: column;
                width: 100%;
            }

            .hero-cta .btn {
                width: 100%;
                justify-content: center;
            }

            .hero-trust-row {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.65rem;
            }

            .stats-grid {
                gap: 0.85rem;
            }

            .stat-item {
                padding: 1rem 0.65rem;
            }
        }

        .theme-toggle {
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 50%;
            width: clamp(32px, 3.8vw, 38px);
            height: clamp(32px, 3.8vw, 38px);
            min-width: clamp(32px, 3.8vw, 38px);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text);
            transition: var(--transition);
            flex-shrink: 0;
            padding: 0;
        }

        .theme-toggle:hover {
            border-color: var(--accent);
            color: var(--accent);
            transform: scale(1.05);
        }

        .theme-toggle svg {
            width: clamp(15px, 2vw, 18px);
            height: clamp(15px, 2vw, 18px);
            stroke: currentColor;
            fill: none;
            transition: var(--transition);
        }

        .theme-toggle .sun-icon { display: none; }
        .theme-toggle .moon-icon { display: block; }

        [data-theme="light"] .theme-toggle .sun-icon,
        html.light-mode .theme-toggle .sun-icon {
            display: block;
        }

        [data-theme="light"] .theme-toggle .moon-icon,
        html.light-mode .theme-toggle .moon-icon {
            display: none;
        }

        .nav-cta {
            padding: clamp(0.38rem, 1.2vw, 0.55rem) clamp(0.65rem, 1.8vw, 1.35rem);
            background: var(--accent);
            color: #FFFFFF !important;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            font-size: clamp(0.72rem, 1.4vw, 0.875rem);
            transition: var(--transition);
            box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
            display: inline-flex;
            align-items: center;
            gap: clamp(0.3rem, 1vw, 0.5rem);
            border: 1px solid transparent;
            white-space: nowrap;
            flex-shrink: 0;
            line-height: 1.2;
        }

        .nav-cta:hover {
            background: var(--accent-hover);
            transform: translateY(-1px);
            box-shadow: 0 6px 20px rgba(2, 132, 199, 0.35);
        }

        .nav-cta svg {
            width: clamp(12px, 1.4vw, 16px);
            height: clamp(12px, 1.4vw, 16px);
            flex-shrink: 0;
            transition: transform 0.2s ease;
        }

        .nav-cta:hover svg {
            transform: translateX(2px);
        }

        .nav-cta-text-short {
            display: none;
        }

        .nav-cta-text-full {
            display: inline;
        }

        @media (max-width: 640px) {
            .nav-cta-text-full {
                display: none;
            }
            .nav-cta-text-short {
                display: inline;
            }
        }

        .mobile-menu-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: var(--card-bg);
            border: 1px solid var(--border);
            color: var(--text);
            font-size: clamp(1.1rem, 2.2vw, 1.25rem);
            cursor: pointer;
            width: clamp(34px, 4vw, 38px);
            height: clamp(34px, 4vw, 38px);
            min-width: clamp(34px, 4vw, 38px);
            padding: 0;
            border-radius: 8px;
            line-height: 1;
            flex-shrink: 0 !important;
            transition: var(--transition);
        }

        .mobile-menu-btn:hover {
            border-color: var(--accent);
            color: var(--accent);
            transform: scale(1.03);
        }

        @media (min-width: 1024px) {
            .mobile-menu-btn { display: none !important; }
        }

        /* Mobile Precision Responsive Overrides (<= 768px) */
        @media (max-width: 768px) {
            nav {
                padding: 0.5rem clamp(0.5rem, 2.5vw, 1rem) !important;
                min-height: 50px !important;
            }
            .logo {
                font-size: clamp(0.92rem, 2.6vw, 1.12rem) !important;
                letter-spacing: 0.04em !important;
                gap: 0.45rem !important;
                flex-shrink: 0 !important;
            }
            .logo-gif {
                width: 30px !important;
                height: 30px !important;
                flex-shrink: 0 !important;
            }
            .nav-actions {
                gap: clamp(0.25rem, 1.2vw, 0.55rem) !important;
                flex-shrink: 0 !important;
            }
            .theme-toggle {
                width: 32px !important;
                height: 32px !important;
                min-width: 32px !important;
                flex-shrink: 0 !important;
            }
            .theme-toggle svg {
                width: 15px !important;
                height: 15px !important;
            }
            .nav-cta {
                padding: 0.32rem 0.65rem !important;
                font-size: 0.72rem !important;
                gap: 0.25rem !important;
                flex-shrink: 0 !important;
            }
            .nav-cta svg {
                width: 11px !important;
                height: 11px !important;
            }
            .mobile-menu-btn {
                width: 34px !important;
                height: 34px !important;
                min-width: 34px !important;
                font-size: 1.05rem !important;
                flex-shrink: 0 !important;
            }
        }

        /* Ultra-compact phones (<= 360px) */
        @media (max-width: 360px) {
            nav {
                padding: 0.45rem 0.5rem !important;
            }
            .logo {
                font-size: 0.85rem !important;
                gap: 0.35rem !important;
            }
            .logo-gif {
                width: 25px !important;
                height: 25px !important;
            }
            .theme-toggle {
                width: 28px !important;
                height: 28px !important;
                min-width: 28px !important;
            }
            .nav-cta {
                padding: 0.28rem 0.45rem !important;
                font-size: 0.68rem !important;
            }
            .mobile-menu-btn {
                width: 30px !important;
                height: 30px !important;
                min-width: 30px !important;
            }
        }

        /* Mobile Menu Panel */
        .mobile-menu {
            position: fixed;
            top: 0;
            right: -100%;
            width: min(320px, 88vw);
            height: 100vh;
            height: 100dvh;
            background: var(--bg-secondary);
            border-left: 1px solid var(--border);
            z-index: 1001;
            transition: right 0.3s ease;
            display: flex;
            flex-direction: column;
            padding: 4.5rem 1.25rem 2rem;
            box-shadow: var(--shadow-lg);
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }

        .mobile-menu.active { right: 0; }

        .mobile-menu-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(4px);
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }

        .mobile-menu-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .mobile-menu a {
            color: var(--text);
            text-decoration: none;
            font-size: 1rem;
            font-weight: 500;
            padding: 0.85rem 0;
            border-bottom: 1px solid var(--border);
            transition: color 0.2s ease, padding-left 0.2s ease;
        }

        .mobile-menu a:hover {
            color: var(--accent);
            padding-left: 0.4rem;
        }

        .mobile-menu .mobile-cta {
            margin-top: 1.5rem;
            background: var(--accent);
            color: #fff !important;
            text-align: center;
            border-radius: 8px;
            font-weight: 600;
            border-bottom: none;
            padding: 0.9rem 1rem;
        }

        .mobile-solutions {
            border-bottom: 1px solid var(--border);
        }

        .mobile-solutions-toggle {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: none;
            border: none;
            color: var(--text);
            font-family: inherit;
            font-size: 1rem;
            font-weight: 500;
            padding: 0.85rem 0;
            cursor: pointer;
            text-align: left;
        }

        .mobile-solutions-toggle svg {
            transition: transform 0.2s ease;
        }

        .mobile-solutions.open .mobile-solutions-toggle svg {
            transform: rotate(180deg);
        }

        .mobile-solutions-list {
            display: none;
            flex-direction: column;
            padding: 0 0 0.5rem 0.75rem;
        }

        .mobile-solutions.open .mobile-solutions-list {
            display: flex;
        }

        .mobile-solutions-list a {
            font-size: 0.92rem;
            color: var(--text-secondary);
            padding: 0.55rem 0;
            border-bottom: none;
            min-height: 40px;
            display: flex;
            align-items: center;
        }

        /* Mobile Nested Accordion for CHRMS */
        .mobile-nested-accordion {
            margin-top: 0.25rem;
            margin-bottom: 0.25rem;
            border-left: 2px solid var(--border);
            padding-left: 0.75rem;
        }

        .mobile-nested-toggle {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: none;
            border: none;
            color: var(--text);
            font-family: inherit;
            font-size: 0.92rem;
            font-weight: 600;
            padding: 0.65rem 0;
            cursor: pointer;
            text-align: left;
            min-height: 42px;
        }

        .mobile-nested-toggle svg {
            stroke: var(--text-muted);
            transition: transform 0.2s ease, stroke 0.2s ease;
        }

        .mobile-nested-accordion.open .mobile-nested-toggle svg {
            transform: rotate(180deg);
            stroke: var(--accent);
        }

        .mobile-nested-list {
            display: none;
            flex-direction: column;
            padding: 0.2rem 0 0.4rem 0.6rem;
            gap: 0.2rem;
        }

        .mobile-nested-accordion.open .mobile-nested-list {
            display: flex;
        }

        .mobile-nested-list a {
            font-size: 0.86rem !important;
            color: var(--text-secondary);
            padding: 0.45rem 0 !important;
            border-bottom: none !important;
            min-height: 38px;
            display: flex;
            align-items: center;
        }

        .mobile-nested-list a:hover {
            color: var(--accent);
        }

        .mobile-menu-close {
            position: absolute;
            top: 1.25rem;
            right: 1.25rem;
            background: none;
            border: 1px solid var(--border);
            color: var(--text);
            font-size: 1.25rem;
            cursor: pointer;
            padding: 0.25rem 0.5rem;
            border-radius: 6px;
        }

        /* ==========================================================================
           3. BUTTONS, BADGES & TYPOGRAPHY HELPERS
           ========================================================================== */
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.6rem;
            padding: 0.85rem 1.85rem;
            border-radius: 50px;
            font-weight: 600;
            font-size: 0.95rem;
            text-decoration: none;
            transition: var(--transition);
            cursor: pointer;
            border: 1px solid transparent;
        }

        .btn-primary {
            background: var(--accent);
            color: #FFFFFF !important;
            box-shadow: 0 4px 20px rgba(56, 189, 248, 0.25);
        }

        [data-theme="light"] .btn-primary,
        html.light-mode .btn-primary {
            box-shadow: 0 4px 18px rgba(2, 132, 199, 0.25);
        }

        .btn-primary:hover {
            background: var(--accent-hover);
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(56, 189, 248, 0.35);
        }

        .btn-secondary {
            background: var(--card-bg);
            color: var(--text) !important;
            border: 1px solid var(--border);
            backdrop-filter: blur(8px);
        }

        .btn-secondary:hover {
            border-color: var(--accent);
            color: var(--accent) !important;
            transform: translateY(-2px);
            background: var(--card-bg-hover);
        }

        .pill-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.45rem 1.15rem;
            background: rgba(0, 240, 255, 0.12);
            border: 1px solid rgba(0, 240, 255, 0.35);
            border-radius: 50px;
            font-size: 0.85rem;
            font-weight: 600;
            color: #00F0FF;
            letter-spacing: 0.03em;
            margin-bottom: 1.5rem;
            backdrop-filter: blur(8px);
        }

        html.light-mode .pill-badge,
        [data-theme="light"] .pill-badge {
            background: rgba(10, 95, 191, 0.08);
            border: 1px solid rgba(10, 95, 191, 0.28);
            color: #0A5FBF;
        }

        .pill-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #00F0FF;
            box-shadow: 0 0 10px #00F0FF;
            animation: pulse-dot 2s infinite;
        }

        html.light-mode .pill-dot,
        [data-theme="light"] .pill-dot {
            background: #0A5FBF;
            box-shadow: 0 0 8px rgba(10, 95, 191, 0.5);
        }

        @keyframes pulse-dot {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.4; transform: scale(0.85); }
        }

        .section-header {
            text-align: center;
            max-width: 780px;
            margin: 0 auto 3.5rem;
        }

        .section-title {
            font-family: var(--font-heading);
            font-size: clamp(2.2rem, 4vw, 3.5rem);
            font-weight: 800;
            line-height: 1.18;
            color: var(--text);
            margin-bottom: 1.15rem;
            letter-spacing: -0.025em;
        }

        html.light-mode .section-title,
        [data-theme="light"] .section-title {
            color: #071526;
        }

        .section-subtitle {
            color: var(--text-secondary);
            font-size: clamp(1.05rem, 1.3vw, 1.2rem);
            line-height: 1.75;
            font-weight: 400;
        }

        html.light-mode .section-subtitle,
        [data-theme="light"] .section-subtitle {
            color: #1E293B;
        }

        .text-gradient {
            background: linear-gradient(135deg, #00F0FF 0%, #38BDF8 60%, #00F0FF 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            display: inline-block;
            font-weight: 800;
        }

        html.light-mode .text-gradient,
        [data-theme="light"] .text-gradient {
            background: linear-gradient(135deg, #0A5FBF 0%, #0284C7 60%, #0369A1 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }



/* ==========================================================================
   14. MODALS & DIALOG COMPONENTS
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 11, 20, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 1.5rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-dialog {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg), var(--glow);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-dialog {
    transform: translateY(0) scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
}

.modal-close-btn:hover {
    background: var(--accent);
    color: #070B14;
    border-color: var(--accent);
}

        /* ==========================================================================
           13. ENTERPRISE FOOTER & CERTIFICATION
           ========================================================================== */
        footer {
            background: transparent;
            border-top: 1px solid var(--border);
            padding: 4rem 0 2.5rem;
            position: relative;
            z-index: 1;
        }

        [data-theme="light"] footer,
        html.light-mode footer {
            background: transparent;
        }

        .footer-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            gap: 2rem;
        }

        .footer-links {
            display: flex;
            gap: 2rem;
            flex-wrap: wrap;
            justify-content: center;
        }

        .footer-links a {
            color: var(--text-secondary);
            text-decoration: none;
            font-size: 0.925rem;
            font-weight: 500;
            transition: var(--transition);
        }

        .footer-links a:hover {
            color: var(--accent);
        }

        .mysti-certification {
            display: inline-flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.5rem 1.25rem;
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 50px;
            font-size: 0.825rem;
            color: var(--text-secondary);
            font-weight: 600;
        }

        .mysti-certification img {
            width: 32px;
            height: auto;
        }

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

        /* Scroll to Top */
        .scroll-to-top {
            position: fixed;
            bottom: 2rem;
            right: 2rem;
            width: 44px;
            height: 44px;
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            opacity: 0;
            visibility: hidden;
            transition: var(--transition);
            z-index: 999;
            box-shadow: var(--shadow-md);
            color: var(--accent);
        }

        .scroll-to-top.visible {
            opacity: 1;
            visibility: visible;
        }

        .scroll-to-top:hover {
            background: var(--accent);
            color: #FFFFFF;
            transform: translateY(-3px);
        }

        .scroll-to-top svg {
            width: 20px;
            height: 20px;
            stroke: currentColor;
            fill: none;
        }
