:root {
            --primary-purple: #8B5CF6;
            --primary-blue: #3B82F6;
            --accent-green: #10B981;
            --dark-bg: #0A0D18;
            --dark-card: #15182D;
            --border-gradient: linear-gradient(90deg, #6B46C1, #8B5CF6, #3B82F6, #10B981);
            --text-color: #F3F4F6;
            --sub-text-color: #A0AEC0;
            --section-bg-1: #0A0D18;
            --section-bg-2: #121528;
            --stars-color: #fff;
            --button-text-color: #F3F4F6;
            --icon-color: #E2E8F0;
            --testimonial-border: #6B46C1;
            --testimonial-bg: #1A202C;
            --ufo-color-1: #9F7AEA;
            --ufo-color-2: #667EEA;
            --ufo-light-color: #A7F3D0;
            --card-glow: rgba(139, 92, 246, 0.15);
        }

        .light-mode {
            --primary-purple: #9F7AEA;
            --primary-blue: #667EEA;
            --accent-green: #48BB78;
            --dark-bg: #E8F0F8;
            --dark-card: #FFFFFF;
            --border-gradient: linear-gradient(90deg, #9F7AEA, #667EEA, #48BB78);
            --text-color: #2D3748;
            --sub-text-color: #4A5568;
            --section-bg-1: #F7FAFC;
            --section-bg-2: #E8F0F8;
            --stars-color: #B0B0B0;
            --button-text-color: #1A202C;
            --icon-color: #4A5568;
            --testimonial-border: #6B46C1;
            --testimonial-bg: #EAEFF5;
            --ufo-color-1: #6B46C1;
            --ufo-color-2: #8B5CF6;
            --ufo-light-color: #D1E7DD;
            --card-glow: rgba(124, 58, 237, 0.12);
        }

        body {
            font-family: 'Inter', sans-serif;
            background-color: var(--dark-bg);
            color: var(--text-color);
            transition: background-color 0.5s ease-in-out, color 0.5s ease-in-out;
            overflow-x: hidden;
            scrollbar-width: none;
        }

        html { scrollbar-width: none; }
        body::-webkit-scrollbar, html::-webkit-scrollbar { display: none; }

        body.lang-ar { font-family: 'Tajawal', 'Inter', sans-serif; }
        #app-title { font-family: 'Inter', sans-serif !important; }

        #testimonials-title,
        .testimonial-card p,
        .testimonial-card .text-purple-400 {
            font-family: 'Tajawal', 'Inter', sans-serif !important;
        }

        .lang-transition { animation: fadeInOut 0.5s ease-in-out; }

        @keyframes fadeInOut {
            0% { opacity: 1; }
            50% { opacity: 0; }
            100% { opacity: 1; }
        }

        .fixed-header {
            background-color: rgba(18, 21, 40, 0.6);
            backdrop-filter: blur(8px);
            border-bottom: 1px solid rgba(139, 92, 246, 0.2);
            transition: background-color 0.5s ease-in-out, border-color 0.5s ease-in-out;
        }

        .light-mode .fixed-header {
            background-color: rgba(255, 255, 255, 0.9);
            border-bottom: 1px solid rgba(139, 92, 246, 0.4);
        }

        @keyframes pulse-glow {
            0%, 100% { box-shadow: 0 0 10px rgba(59,130,246,0.4), 0 0 20px rgba(139,92,246,0.3); }
            50% { box-shadow: 0 0 20px rgba(59,130,246,0.6), 0 0 40px rgba(139,92,246,0.5); }
        }

        @keyframes border-anim {
            from { background-position: 0% 50%; }
            to { background-position: 200% 50%; }
        }

        @keyframes float-up {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-10px); }
        }

        @keyframes rotateIcon {
            0%, 100% { transform: rotate(0deg) scale(1); }
            25% { transform: rotate(5deg) scale(1.05); }
            75% { transform: rotate(-5deg) scale(1.05); }
        }

        .download-button {
            position: relative;
            background: var(--dark-card);
            border: 2px solid transparent;
            background-clip: padding-box;
            background-origin: border-box;
            border-radius: 9999px;
            animation: pulse-glow 2s infinite ease-in-out;
            transition: all 0.3s ease;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.08);
        }

        .light-mode .download-button { background: var(--dark-card); }

        .download-button::before {
            content: "";
            position: absolute;
            top: 0; right: 0; bottom: 0; left: 0;
            z-index: -1;
            margin: -2px;
            border-radius: inherit;
            background: var(--border-gradient);
            background-size: 200% 200%;
            animation: border-anim 4s linear infinite;
        }

        .download-button:hover::before {
            animation-play-state: paused;
            background: var(--border-gradient);
            background-size: 200% 200%;
            filter: brightness(1.2);
        }

        .download-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 15px rgba(0,0,0,0.2), 0 4px 6px rgba(0,0,0,0.1);
        }

        .card {
            background-color: var(--dark-card);
            border: 1px solid rgba(139, 92, 246, 0.15);
            position: relative;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            overflow: hidden;
        }

        .card::after {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at 50% 0%, var(--card-glow), transparent 70%);
            opacity: 0;
            transition: opacity 0.4s ease;
            pointer-events: none;
        }

        .card:hover::after { opacity: 1; }

        .card::before {
            content: "";
            position: absolute;
            inset: 0;
            border: 2px solid transparent;
            border-radius: 0.75rem;
            background: var(--border-gradient) border-box;
            -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            z-index: 1;
            opacity: 0;
            transition: opacity 0.4s ease;
        }

        .card:hover::before { opacity: 1; }

        .card:hover {
            transform: translateY(-8px);
            box-shadow: 0 25px 50px rgba(139,92,246,0.2), 0 10px 20px rgba(0,0,0,0.3);
        }

        .light-mode .card {
            background-color: #FFFFFF;
            border: 1px solid rgba(124,58,237,0.15);
            box-shadow: 0 4px 20px rgba(124,58,237,0.08), 0 1px 4px rgba(0,0,0,0.06);
        }

        .light-mode .card:hover {
            box-shadow: 0 25px 50px rgba(124,58,237,0.2), 0 10px 20px rgba(0,0,0,0.1);
        }

        .feature-icon-wrap {
            position: relative;
            width: 72px;
            height: 72px;
            border-radius: 20px;
            background: linear-gradient(135deg, #6B46C1, #3B82F6);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1.5rem;
            box-shadow: 0 8px 25px rgba(107,70,193,0.4);
            transition: all 0.4s ease;
            overflow: hidden;
        }

        .feature-icon-wrap::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
            border-radius: inherit;
        }

        .card:hover .feature-icon-wrap {
            transform: rotateY(15deg) scale(1.1);
            box-shadow: 0 12px 35px rgba(107,70,193,0.6);
            animation: rotateIcon 2s ease-in-out infinite;
        }

        .feature-icon-wrap svg { position: relative; z-index: 1; }

        .testimonial-card {
            background-color: var(--dark-card);
            border: 1px solid transparent;
            position: relative;
            transition: all 0.3s ease;
        }

        .testimonial-card::before {
            content: "";
            position: absolute;
            inset: 0;
            border: 2px solid transparent;
            border-radius: 0.75rem;
            background: linear-gradient(to right, #2c1b47, #1a1027) border-box;
            -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            z-index: 1;
        }

        .section-bg-1 {
            background-color: var(--section-bg-1);
            transition: background-color 0.5s ease-in-out;
        }

        .section-bg-2 {
            background-color: var(--section-bg-2);
            transition: background-color 0.5s ease-in-out;
        }

        .scroll-anim {
            opacity: 0;
            transform: translateY(50px);
            transition: opacity 1s ease-out, transform 1s ease-out;
            will-change: opacity, transform;
        }

        .scroll-anim.is-visible { opacity: 1; transform: translateY(0); }

        .scroll-anim[data-animation="slide-in-left"] { transform: translateX(-50px); }
        .scroll-anim[data-animation="slide-in-left"].is-visible { transform: translateX(0); }
        .scroll-anim[data-animation="slide-in-right"] { transform: translateX(50px); }
        .scroll-anim[data-animation="slide-in-right"].is-visible { transform: translateX(0); }
        .scroll-anim[data-animation="zoom-in"] { transform: scale(0.9); }
        .scroll-anim[data-animation="zoom-in"].is-visible { transform: scale(1); }

        @keyframes gradientShift {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        .static-gradient-text {
            background: linear-gradient(90deg, #8B5CF6, #3B82F6, #10B981, #8B5CF6);
            background-size: 300% auto;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .light-mode .static-gradient-text {
            background: linear-gradient(90deg, #7C3AED, #2563EB, #059669, #7C3AED);
            background-size: 300% auto;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .footer-brand-text {
            background: linear-gradient(90deg, #8B5CF6, #3B82F6, #10B981, #8B5CF6);
            background-size: 300% auto;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: gradientShift 4s ease infinite;
        }

        .light-mode .footer-brand-text {
            background: linear-gradient(90deg, #7C3AED, #2563EB, #059669, #7C3AED);
            background-size: 300% auto;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: gradientShift 4s ease infinite;
        }

        .star-icon { color: #FFD700; }

        @keyframes twinkle {
            0%, 100% { opacity: 0.5; transform: scale(0.5); }
            50% { opacity: 1; transform: scale(1); }
        }

        .star-field {
            position: absolute;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: transparent;
            z-index: 0;
        }

        .star {
            position: absolute;
            width: 2px; height: 2px;
            background-color: var(--stars-color);
            border-radius: 50%;
            animation: twinkle 1.5s infinite;
            transition: background-color 0.5s ease-in-out;
        }

        @keyframes shoot {
            0% { transform: translate(var(--x-start), var(--y-start)) rotate(var(--angle)); opacity: 0; }
            5% { opacity: 1; }
            100% { transform: translate(var(--x-end), var(--y-end)) rotate(var(--angle)); opacity: 0; }
        }

        .shooting-star {
            position: absolute;
            width: 50px; height: 2px;
            background: linear-gradient(to right, rgba(255,255,255,0), var(--stars-color));
            box-shadow: 0 0 5px var(--stars-color), 0 0 10px var(--stars-color), 0 0 20px var(--stars-color);
            animation: shoot var(--duration) linear forwards;
            pointer-events: none;
            z-index: 1;
            transition: background-color 0.5s ease-in-out;
        }

        .theme-icon { transition: opacity 0.3s ease, transform 0.3s ease; }
        .theme-icon.hidden { opacity: 0; transform: scale(0.8) rotate(-45deg); }
        .theme-icon:not(.hidden) { opacity: 1; transform: scale(1) rotate(0deg); }

        @keyframes ufo-float {
            0% { transform: translate(var(--ufo-x), var(--ufo-y)) translateY(0px) scale(0.5); opacity: 0; }
            5% { opacity: 1; }
            25%, 75% { transform: translate(var(--ufo-x), var(--ufo-y)) translateY(-20px) scale(0.5); }
            50% { transform: translate(var(--ufo-x), var(--ufo-y)) translateY(0px) scale(0.5); }
            95% { opacity: 1; }
            100% { transform: translate(var(--ufo-x), var(--ufo-y)) translateY(-40px) scale(0.3); opacity: 0; }
        }

        .ufo-container {
            position: absolute;
            animation: ufo-float 13s ease-in-out forwards;
            pointer-events: none;
            z-index: 10;
        }

        .ufo-body, .ufo-glass, .ufo-light {
            transition: fill 0.5s ease-in-out, stroke 0.5s ease-in-out;
        }

        .clients-overflow {
            overflow: hidden;
            -webkit-mask: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
            mask: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
        }

        .clients-track {
            display: flex;
            align-items: center;
            gap: 3rem;
            width: max-content;
            will-change: transform;
            transform: translate3d(0, 0, 0);
        }

        .client-logo {
            height: 50px;
            width: auto;
            max-width: 130px;
            object-fit: contain;
            filter: grayscale(100%) opacity(0.6);
            transition: filter 0.4s ease, transform 0.4s ease;
            flex-shrink: 0;
        }

        .client-logo:hover { filter: grayscale(0%) opacity(1); transform: scale(1.1); }
        .light-mode .client-logo { filter: grayscale(100%) opacity(0.5); }
        .light-mode .client-logo:hover { filter: grayscale(0%) opacity(1); }

        .video-preview-container {
            margin-top: 3rem;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 2rem 0;
        }

        .video-frame {
            position: relative;
            width: min(100%, 260px);
            aspect-ratio: 864 / 1920;
            background: var(--dark-card);
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(139,92,246,0.3);
            border: 2px solid rgba(139,92,246,0.2);
            animation: float-up 4s ease-in-out infinite;
        }

        .video-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }

        /* ============================================================
           WHATSAPP PHONE PREVIEW — replaces vertical video preview
           ============================================================ */
        .ns-wa-phone-wrap {
            width: min(100%, 390px);
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .ns-wa-phone {
            width: min(390px, 100%);
            padding: 15px;
            border-radius: 42px;
            background: #060414;
            border: 1px solid rgba(151,126,255,0.36);
            box-shadow: 0 30px 80px rgba(0,0,0,0.38), 0 0 34px rgba(139,92,246,0.12);
            transform: rotate(-2deg);
            animation: nsPhoneFloat 5.8s cubic-bezier(.2,.8,.2,1) infinite;
            color: #fbfaff;
        }

        .light-mode .ns-wa-phone {
            box-shadow: 0 30px 80px rgba(124,58,237,0.16), 0 0 34px rgba(124,58,237,0.12);
        }

        @keyframes nsPhoneFloat {
            0%, 100% { transform: translateY(0) rotate(-2deg); }
            50% { transform: translateY(-12px) rotate(1deg); }
        }

        .ns-wa-phone-top {
            display: grid;
            grid-template-columns: 1fr auto;
            align-items: center;
            gap: 12px;
            padding: 7px 12px 16px;
            color: #aaa5c7;
            font-size: 14px;
            font-weight: 650;
        }

        .ns-wa-status-left,
        .ns-wa-status-icons {
            display: inline-flex;
            align-items: center;
            gap: 9px;
        }

        .ns-wa-status-left svg,
        .ns-wa-status-icons svg {
            display: block;
            color: #d9d4f5;
            opacity: .92;
        }

        .ns-wa-battery {
            width: 29px;
            height: 14px;
            border-radius: 5px;
            border: 2px solid currentColor;
            position: relative;
            color: #d9d4f5;
            opacity: .92;
            display: inline-block;
        }

        .ns-wa-battery::before {
            content: "";
            position: absolute;
            right: -5px;
            top: 4px;
            width: 3px;
            height: 5px;
            border-radius: 2px;
            background: currentColor;
        }

        .ns-wa-battery-fill {
            position: absolute;
            inset: 2px 6px 2px 2px;
            border-radius: 2px;
            background: currentColor;
        }

        .ns-wa-screen {
            height: 520px;
            min-height: 520px;
            border-radius: 34px;
            background: #100d26;
            border: 1px solid rgba(151,126,255,0.18);
            overflow: hidden;
            position: relative;
        }

        .ns-wa-header {
            height: 84px;
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 0 18px;
            background: #17132d;
            border-bottom: 1px solid rgba(151,126,255,0.14);
        }

        .ns-wa-avatar {
            width: 54px;
            height: 54px;
            display: grid;
            place-items: center;
            border-radius: 19px;
            background: #21194a;
            border: 1px solid rgba(154,124,255,0.38);
            color: #fff;
            flex: none;
        }

        .ns-wa-title strong {
            display: block;
            font-size: 18px;
            line-height: 1.2;
            letter-spacing: -0.03em;
            color: #fbfaff;
        }

        .ns-wa-title span {
            display: block;
            margin-top: 6px;
            color: #20d39b;
            font-size: 15px;
            font-weight: 700;
        }

        .ns-wa-chat {
            height: calc(100% - 84px);
            padding: 22px 18px;
            display: grid;
            align-content: start;
            gap: 14px;
            overflow: hidden;
            opacity: 1;
            transform: translateY(0);
            transition: opacity .42s ease, transform .42s ease;
            will-change: opacity, transform;
        }

        .ns-wa-chat.is-switching {
            opacity: 0;
            transform: translateY(8px);
        }

        .ns-wa-bubble {
            width: fit-content;
            max-width: 86%;
            padding: 15px 17px;
            border-radius: 20px;
            color: #e9e5ff;
            border: 1px solid rgba(151,126,255,0.16);
            font-size: 15px;
            font-weight: 700;
            line-height: 1.52;
            white-space: pre-line;
            overflow-wrap: anywhere;
            unicode-bidi: plaintext;
            opacity: 0;
            transform: translateY(10px) scale(.98);
            animation: nsBubbleIn .65s cubic-bezier(.2,.8,.2,1) forwards;
        }

        .ns-wa-bubble.ns-wa-bubble-ar,
        .ns-wa-bubble[lang="ar"] {
            font-family: 'Tajawal', 'Inter', sans-serif !important;
            letter-spacing: 0;
        }

        .ns-wa-bubble[dir="rtl"] {
            text-align: right;
        }

        .ns-wa-bubble.ai {
            justify-self: start;
            background: #1a1536;
        }

        .ns-wa-bubble.customer {
            justify-self: end;
            background: #21194a;
        }

        .ns-wa-bubble:nth-child(2) { animation-delay: .35s; }
        .ns-wa-bubble:nth-child(3) { animation-delay: .7s; }
        .ns-wa-bubble:nth-child(4) { animation-delay: 1.05s; }

        @keyframes nsBubbleIn {
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .ns-wa-typing {
            display: inline-flex;
            align-items: center;
            gap: 7px;
        }

        .ns-wa-typing i {
            width: 8px;
            height: 8px;
            border-radius: 999px;
            background: #aaa5c7;
            animation: nsTyping 1.1s cubic-bezier(.2,.8,.2,1) infinite;
        }

        .ns-wa-typing i:nth-child(2) { animation-delay: .12s; }
        .ns-wa-typing i:nth-child(3) { animation-delay: .24s; }

        @keyframes nsTyping {
            0%, 100% { transform: translateY(0); opacity: .45; }
            50% { transform: translateY(-4px); opacity: 1; }
        }

        @media (max-width: 768px) {
            .ns-wa-phone-wrap { width: min(100%, 340px); }
            .ns-wa-phone { width: min(340px, 100%); }
            .ns-wa-screen { height: 500px; min-height: 500px; }
            .ns-wa-title strong { font-size: 16px; }
            .ns-wa-bubble { font-size: 14px; }
        }

        .footer-brand-row {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 1rem;
        }

        .feature-icon-wrap--shield svg { width: 2rem; height: 2rem; transform: translateY(-1px); }
        .chat-svg-icon { width: 30px; height: 30px; display: block; color: currentColor; }

        #custom-context-menu {
            position: fixed;
            background: var(--dark-card);
            border: 1px solid rgba(139,92,246,0.2);
            border-radius: 12px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.3);
            z-index: 1001;
            min-width: 220px;
            backdrop-filter: blur(12px);
            opacity: 0;
            pointer-events: none;
            transform: scale(0.97);
            transition: opacity 0.18s ease, transform 0.18s ease;
        }

        #custom-context-menu.visible { opacity: 1; pointer-events: auto; transform: scale(1); }

        .context-item { padding: 0.8rem 1rem; cursor: pointer; transition: all 0.2s ease; color: var(--text-color); display: flex; align-items: center; gap: 0.6rem; }
        .context-item:hover { background: rgba(139,92,246,0.14); padding-left: 1.2rem; }
        .context-item svg { width: 18px; height: 18px; flex-shrink: 0; }
        .context-divider { height: 1px; margin: 0.25rem 0; background: rgba(139,92,246,0.12); }

        .inspect-close {
            background: rgba(255,255,255,0.15);
            border: none;
            color: white;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s ease, transform 0.2s ease;
            font-size: 1rem;
            flex-shrink: 0;
        }

        .inspect-close:hover { background: rgba(255,255,255,0.25); transform: rotate(90deg); }

        .inspect-panel {
            position: fixed;
            left: 1rem; bottom: 1rem;
            width: min(380px, calc(100vw - 2rem));
            background: var(--dark-card);
            border: 1px solid rgba(139,92,246,0.22);
            border-radius: 16px;
            box-shadow: 0 18px 50px rgba(0,0,0,0.3);
            padding: 1rem;
            z-index: 1000;
            opacity: 0;
            pointer-events: none;
            transform: translateY(12px);
            transition: opacity 0.2s ease, transform 0.2s ease;
        }

        .inspect-panel.open { opacity: 1; pointer-events: auto; transform: translateY(0); }

        .inspect-code {
            font-family: Consolas, monospace;
            font-size: 0.84rem;
            line-height: 1.5;
            color: var(--sub-text-color);
            background: rgba(139,92,246,0.06);
            border: 1px solid rgba(139,92,246,0.14);
            border-radius: 12px;
            padding: 0.85rem;
            white-space: pre-wrap;
            word-break: break-word;
        }

        .inspect-note { font-size: 0.8rem; color: var(--sub-text-color); margin-top: 0.6rem; }

        @media (max-width: 768px) {
            .ai-chat-window { right: 12px; bottom: 90px; width: calc(100vw - 24px); height: 76vh; }
            .video-frame { width: min(100%, 320px); }
        }
    
.landing-entry-actions { gap: 1rem; flex-wrap: wrap; }
#open-nexus-sales[hidden] { display: none !important; }
