html,
        body {
            height: 100%;
        }

        .gradient-text {
            background: linear-gradient(135deg, #f8fafc 0%, #a78bfa 50%, #ec4899 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .gradient-text-accent {
            background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 50%, #06b6d4 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .glass-card {
            background: rgba(255, 255, 255, 0.03);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.08);
        }

        .glass-card-hover:hover {
            background: rgba(255, 255, 255, 0.06);
            border-color: rgba(139, 92, 246, 0.3);
            transform: translateY(-4px);
        }

        .search-glow {
            box-shadow:
                0 0 60px rgba(139, 92, 246, 0.15),
                0 0 100px rgba(236, 72, 153, 0.1),
                0 25px 50px -12px rgba(0, 0, 0, 0.5);
        }

        .orb {
            position: absolute;
            border-radius: 50%;
            filter: blur(80px);
            opacity: 0.5;
            pointer-events: none;
        }

        .orb-1 {
            width: 600px;
            height: 600px;
            background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, transparent 70%);
            top: -200px;
            left: -200px;
        }

        .orb-2 {
            width: 500px;
            height: 500px;
            background: radial-gradient(circle, rgba(236, 72, 153, 0.3) 0%, transparent 70%);
            top: 100px;
            right: -150px;
        }

        .orb-3 {
            width: 400px;
            height: 400px;
            background: radial-gradient(circle, rgba(6, 182, 212, 0.25) 0%, transparent 70%);
            bottom: -100px;
            left: 30%;
        }

        .badge-glow {
            box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
        }

        .avatar-ring {
            box-shadow: 0 0 0 3px #0a0a0f;
        }

        .pill-button {
            transition: all 0.2s ease;
        }

        .pill-button:hover {
            background: rgba(139, 92, 246, 0.2);
            border-color: rgba(139, 92, 246, 0.5);
        }

        .pill-button.is-active {
            background: linear-gradient(135deg, rgba(139, 92, 246, 0.28), rgba(236, 72, 153, 0.24));
            border-color: rgba(167, 139, 250, 0.78) !important;
            color: #f3e8ff !important;
            box-shadow: 0 6px 18px rgba(139, 92, 246, 0.28);
        }

        .feature-icon {
            background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(236, 72, 153, 0.2) 100%);
        }

        .search-input:focus {
            outline: none;
        }

        .search-button {
            background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
            transition: all 0.3s ease;
        }

        .search-button:hover {
            background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
            transform: scale(1.02);
        }

        @keyframes float {

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

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

        .floating {
            animation: float 6s ease-in-out infinite;
        }

        @keyframes pulse-glow {

            0%,
            100% {
                opacity: 0.5;
            }

            50% {
                opacity: 0.7;
            }
        }

        .pulse-glow {
            animation: pulse-glow 4s ease-in-out infinite;
        }

        .logo-grid-item {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .logo-grid-item:hover {
            transform: scale(1.05);
            background: rgba(255, 255, 255, 0.08);
        }

        .hero-bg-logos {
            position: absolute;
            inset: 0;
            z-index: 0;
            opacity: 0.15;
            overflow: hidden;
        }

        .top-menu-links {
            display: flex;
            align-items: center;
            gap: 1.2rem;
        }

        .brand-wordmark {
            font-size: clamp(0.84rem, 1.7vw, 1.02rem);
            font-weight: 700;
            letter-spacing: 0.01em;
            line-height: 1;
            color: #e5e7eb;
            text-wrap: nowrap;
        }

        /* Global responsive guards */
        *, *::before, *::after {
            box-sizing: border-box;
        }

        body {
            max-width: 100%;
            overflow-x: hidden;
            text-wrap: balance;
        }

        .max-w-5xl,
        .max-w-6xl,
        .max-w-7xl,
        .max-w-4xl,
        .max-w-2xl {
            width: min(100%, var(--content-max, 100%));
        }

        #main-headline {
            font-size: clamp(2rem, 6vw, 4.6rem) !important;
            line-height: 1.08 !important;
            letter-spacing: -0.02em;
        }

        #subtitle {
            font-size: clamp(0.96rem, 2vw, 1.25rem) !important;
            line-height: 1.6;
        }

        .glass-card.search-glow {
            width: min(100%, 46rem);
            margin-inline: auto;
        }

        .glass-card.search-glow .search-input {
            min-width: 0;
        }

        .glass-card.search-glow .search-button {
            flex-shrink: 0;
            white-space: nowrap;
        }

        .pill-button {
            max-width: 100%;
            white-space: nowrap;
        }

        /* Very large displays */
        @media (min-width: 1536px) {
            nav.px-6,
            section.px-6,
            footer.px-6 {
                padding-left: clamp(2rem, 6vw, 5rem) !important;
                padding-right: clamp(2rem, 6vw, 5rem) !important;
            }

            #main-headline {
                font-size: clamp(4rem, 4.5vw, 5.4rem) !important;
            }

            #subtitle {
                font-size: 1.25rem !important;
            }

            .hero-bg-logos {
                opacity: 0.18;
            }

            .hero-bg-logos .grid {
                padding: clamp(2.2rem, 3vw, 3.4rem);
                gap: clamp(1rem, 1.8vw, 1.6rem);
            }
        }

        @media (max-width: 1024px) {
            .orb-1 {
                width: 420px;
                height: 420px;
            }

            .orb-2 {
                width: 360px;
                height: 360px;
            }

            .orb-3 {
                width: 300px;
                height: 300px;
            }

            .hero-bg-logos .grid {
                padding: 1.8rem;
            }
        }

        @media (max-width: 768px) {
            .brand-wordmark {
                font-size: 0.78rem;
                max-width: 44vw;
                overflow: hidden;
                text-overflow: ellipsis;
            }

            section.relative.z-10.px-6.py-24.min-h-screen {
                min-height: auto;
                padding-top: 5rem !important;
                padding-bottom: 4rem !important;
            }

            .top-menu-links {
                max-width: 62vw;
                overflow-x: auto;
                white-space: nowrap;
                gap: 0.6rem;
                padding-bottom: 4px;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
            }

            .top-menu-links::-webkit-scrollbar {
                display: none;
            }

            .top-menu-links a {
                font-size: 0.72rem !important;
            }

            .hero-bg-logos .grid {
                grid-template-columns: repeat(4, minmax(0, 1fr));
                gap: 0.85rem;
                padding: 1.15rem;
            }

            .hero-bg-logos img {
                width: 2.5rem !important;
                height: 2.5rem !important;
            }

            .glass-card.search-glow {
                flex-wrap: wrap;
                gap: 0.45rem;
                padding: 0.45rem;
            }

            .glass-card.search-glow .flex.items-center.gap-3.flex-1.px-4 {
                width: 100%;
                padding-inline: 0.55rem !important;
            }

            .glass-card.search-glow .search-button {
                width: 100%;
                justify-content: center;
                padding: 0.78rem 1rem;
                font-size: 0.95rem;
            }

            .glass-card.search-glow .search-input {
                font-size: 0.95rem;
            }

            .pill-button {
                font-size: 0.76rem;
                padding: 0.42rem 0.85rem;
            }

            .relative.z-10.px-6.pb-32 .text-3xl,
            .relative.z-10.px-6.pb-32 .sm\:text-4xl {
                font-size: 1.75rem !important;
                line-height: 1.2 !important;
            }

            .relative.z-10.px-6.pb-32 .text-lg {
                font-size: 0.92rem !important;
            }

            .relative.z-10.px-6.pb-32 .grid.sm\:grid-cols-2.lg\:grid-cols-4 {
                gap: 0.75rem !important;
            }

            .relative.z-10.px-6.pb-32 .glass-card.glass-card-hover {
                padding: 0.9rem !important;
                border-radius: 0.9rem !important;
            }

            .relative.z-10.px-6.pb-32 .glass-card.glass-card-hover h3 {
                font-size: 0.92rem !important;
                margin-bottom: 0.35rem !important;
            }

            .relative.z-10.px-6.pb-32 .glass-card.glass-card-hover p {
                font-size: 0.74rem !important;
                line-height: 1.4 !important;
            }

            .relative.z-10.px-6.pb-32 .feature-icon {
                width: 2.45rem !important;
                height: 2.45rem !important;
                border-radius: 0.65rem !important;
                margin-bottom: 0.65rem !important;
            }

            .relative.z-10.px-6.pb-32 .feature-icon .w-7,
            .relative.z-10.px-6.pb-32 .feature-icon .h-7 {
                width: 1.15rem !important;
                height: 1.15rem !important;
            }
        }

        @media (max-width: 480px) {
            .brand-wordmark {
                font-size: 0.72rem;
                max-width: 40vw;
            }

            .top-menu-links {
                max-width: 66vw;
                gap: 0.45rem;
            }

            .top-menu-links a {
                font-size: 0.65rem !important;
            }

            nav .glass-card.px-5.py-2\.5 {
                padding: 0.45rem 0.7rem !important;
                font-size: 0.68rem !important;
            }

            nav.px-6,
            section.px-6,
            footer.px-6 {
                padding-left: 0.9rem !important;
                padding-right: 0.9rem !important;
            }

            .orb-1 {
                width: 260px;
                height: 260px;
                left: -130px;
                top: -110px;
            }

            .orb-2 {
                width: 220px;
                height: 220px;
                right: -110px;
            }

            .orb-3 {
                width: 180px;
                height: 180px;
                left: 20%;
                bottom: -80px;
            }

            .hero-bg-logos .grid {
                grid-template-columns: repeat(3, minmax(0, 1fr));
                gap: 0.6rem;
                padding: 0.8rem;
            }

            .hero-bg-logos img {
                width: 2rem !important;
                height: 2rem !important;
            }

            .search-button {
                width: 100%;
                justify-content: center;
                font-size: 0.9rem;
                padding: 0.72rem 0.85rem;
            }

            .search-input {
                font-size: 0.9rem !important;
            }

            #main-headline {
                font-size: clamp(1.9rem, 11vw, 2.6rem) !important;
            }

            #subtitle {
                font-size: 0.9rem !important;
            }

            .pill-button {
                font-size: 0.64rem;
                padding: 0.32rem 0.58rem;
                border-radius: 999px;
            }

            .relative.z-10.px-6.pb-32 .text-3xl,
            .relative.z-10.px-6.pb-32 .sm\:text-4xl {
                font-size: 1.45rem !important;
            }

            .relative.z-10.px-6.pb-32 .text-lg {
                font-size: 0.84rem !important;
            }

            .relative.z-10.px-6.pb-32 .grid.sm\:grid-cols-2.lg\:grid-cols-4 {
                grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
                gap: 0.6rem !important;
            }

            .relative.z-10.px-6.pb-32 .glass-card.glass-card-hover {
                padding: 0.72rem !important;
            }

            .relative.z-10.px-6.pb-32 .glass-card.glass-card-hover h3 {
                font-size: 0.82rem !important;
            }

            .relative.z-10.px-6.pb-32 .glass-card.glass-card-hover p {
                font-size: 0.68rem !important;
            }

            .logo-grid-item {
                border-radius: 0.9rem;
            }
        }

        @media (max-width: 360px) {
            .top-menu-links {
                max-width: 68vw;
            }

            .top-menu-links a {
                font-size: 0.6rem !important;
            }

            .hero-bg-logos .grid {
                gap: 0.45rem;
                padding: 0.6rem;
            }

            .hero-bg-logos img {
                width: 1.75rem !important;
                height: 1.75rem !important;
            }

            .pill-button {
                font-size: 0.7rem;
                padding: 0.34rem 0.65rem;
            }

            .relative.z-10.px-6.pb-32 .grid.sm\:grid-cols-2.lg\:grid-cols-4 {
                grid-template-columns: 1fr !important;
            }
        }

        @media (max-width: 330px) {
            nav.px-6,
            section.px-6,
            footer.px-6 {
                padding-left: 0.7rem !important;
                padding-right: 0.7rem !important;
            }

            #main-headline {
                font-size: 1.72rem !important;
            }

            .glass-card.search-glow .search-button {
                font-size: 0.82rem !important;
                padding: 0.62rem 0.72rem !important;
            }

            .pill-button {
                font-size: 0.62rem;
                padding: 0.28rem 0.5rem;
            }
        }

        /* Low-height landscape devices */
        @media (max-height: 640px) and (orientation: landscape) {
            section.relative.z-10.px-6.py-24.min-h-screen {
                min-height: auto;
                padding-top: 3rem !important;
                padding-bottom: 2.5rem !important;
            }

            .hero-bg-logos {
                opacity: 0.12;
            }
        }

body {
            box-sizing: border-box;
        }

        /* ------------------------------------------------------------
           Light theme polish (activated by shared-functionality.js)
           ------------------------------------------------------------ */
        body.theme-light {
            background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 42%, #f4f6fb 100%) !important;
            color: #0f172a !important;
        }

        body.theme-light .orb {
            opacity: 0.2;
            filter: blur(90px);
        }

        body.theme-light nav {
            background: rgba(255, 255, 255, 0.78);
            border-bottom: 1px solid rgba(15, 23, 42, 0.08);
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
        }

        body.theme-light .top-menu-links a {
            color: #475569 !important;
        }

        body.theme-light .top-menu-links a:hover {
            color: #0f172a !important;
        }

        body.theme-light nav .text-xl,
        body.theme-light nav .font-bold {
            color: #0f172a !important;
        }

        body.theme-light .brand-wordmark {
            color: #0f172a !important;
        }

        /* Inline dark hero gradient in HTML gets overridden for light mode. */
        body.theme-light section[style*="linear-gradient(180deg"] {
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.56) 0%, rgba(255, 255, 255, 0.3) 58%, rgba(248, 250, 252, 0.62) 100%) !important;
        }

        body.theme-light .hero-bg-logos {
            opacity: 0.22;
            mix-blend-mode: multiply;
        }

        body.theme-light #main-headline .text-white,
        body.theme-light h2.text-white,
        body.theme-light h2 .text-white,
        body.theme-light h3.text-white {
            color: #0f172a !important;
        }

        body.theme-light #subtitle,
        body.theme-light .text-gray-400,
        body.theme-light .text-gray-300 {
            color: #475569 !important;
        }

        body.theme-light .glass-card {
            background: rgba(255, 255, 255, 0.72);
            border: 1px solid rgba(15, 23, 42, 0.1);
            box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
        }

        body.theme-light .glass-card-hover:hover {
            background: rgba(255, 255, 255, 0.88);
            border-color: rgba(99, 102, 241, 0.34);
        }

        body.theme-light .search-glow {
            box-shadow: 0 10px 35px rgba(99, 102, 241, 0.18), 0 18px 36px -18px rgba(236, 72, 153, 0.2);
        }

        body.theme-light .search-input {
            color: #0f172a !important;
        }

        body.theme-light .search-input::placeholder {
            color: #64748b !important;
        }

        body.theme-light .pill-button {
            color: #334155 !important;
            border-color: rgba(15, 23, 42, 0.12) !important;
        }

        body.theme-light .pill-button:hover {
            color: #1e1b4b !important;
            background: rgba(139, 92, 246, 0.12);
        }

        body.theme-light .pill-button.is-active {
            background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(14, 165, 233, 0.18));
            color: #312e81 !important;
            border-color: rgba(99, 102, 241, 0.56) !important;
            box-shadow: 0 6px 16px rgba(99, 102, 241, 0.18);
        }

        body.theme-light #trust-text {
            color: #475569 !important;
        }

        body.theme-light #trust-text span {
            color: #0f172a !important;
        }

        body.theme-light footer .border-t {
            border-color: rgba(15, 23, 42, 0.12) !important;
        }

        body.theme-light footer a {
            color: #475569 !important;
        }

        body.theme-light footer a:hover {
            color: #0f172a !important;
        }

        /* Keep both themes visually stable when toggling. */
        body,
        nav,
        section,
        .glass-card,
        .search-button,
        .pill-button,
        .top-menu-links a,
        #subtitle,
        #trust-text {
            transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
        }

        body.theme-dark {
            background: #0a0a0f !important;
            color: #ffffff !important;
        }

        body.theme-dark nav {
            background: transparent;
            border-bottom: 1px solid transparent;
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
        }

        body.theme-dark .top-menu-links a {
            color: #9ca3af !important;
        }

        body.theme-dark .top-menu-links a:hover {
            color: #ffffff !important;
        }

        body.theme-dark .hero-bg-logos {
            opacity: 0.15;
            mix-blend-mode: normal;
        }

        body.theme-dark #subtitle,
        body.theme-dark .text-gray-400 {
            color: #9ca3af !important;
        }

        body.theme-dark .text-gray-300 {
            color: #d1d5db !important;
        }

        body.theme-dark .glass-card {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: none;
        }

        body.theme-dark .search-input {
            color: #ffffff !important;
        }

        body.theme-dark .search-input::placeholder {
            color: #6b7280 !important;
        }

        body.theme-dark footer .border-t {
            border-color: rgba(255, 255, 255, 0.1) !important;
        }
