
        :root {
            --primary: #4f46e5;
            --primary-hover: #4338ca;
            --bg-main: #0f172a;
            --bg-card: rgba(30, 41, 59, 0.7);
            --text-main: #f8fafc;
            --text-muted: #94a3b8;
            --border: rgba(255, 255, 255, 0.1);
        }

        [data-theme="light"] {
            --primary: #4f46e5;
            --primary-hover: #4338ca;
            --bg-main: #f8fafc;
            --bg-card: rgba(255, 255, 255, 0.8);
            --text-main: #0f172a;
            --text-muted: #64748b;
            --border: rgba(0, 0, 0, 0.08);
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            transition: background-color 0.3s, color 0.3s;
        }

        body {
            background-color: var(--bg-main);
            color: var(--text-main);
            overflow-x: hidden;
            position: relative;
        }

        /* جزيئات خلفية متحركة برمجياً */
        .bg-glow {
            position: absolute;
            width: 300px;
            height: 300px;
            background: radial-gradient(circle, rgba(79, 70, 229, 0.3) 0%, transparent 70%);
            top: 10%;
            left: 10%;
            border-radius: 50%;
            filter: blur(40px);
            animation: floatGlow 8s infinite alternate ease-in-out;
            z-index: -1;
        }

        @keyframes floatGlow {
            0% { transform: translate(0, 0) scale(1); }
            100% { transform: translate(50px, 50px) scale(1.2); }
        }

        /* شريط التنقل الزجاجي العصري */
        nav {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            padding: 1.2rem 10%;
            background: var(--bg-card);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-bottom: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
            z-index: 1000;
        }

        .logo {
            font-size: 1.6rem;
            font-weight: 800;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .logo-box {
            background: var(--primary);
            color: white;
            width: 35px;
            height: 35px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
        }

        .nav-controls {
            display: flex;
            gap: 15px;
            align-items: center;
        }

        .btn-toggle {
            background: transparent;
            border: 1px solid var(--border);
            color: var(--text-main);
            padding: 8px 14px;
            border-radius: 20px;
            cursor: pointer;
            font-weight: 600;
            font-size: 0.85rem;
        }

        .btn-toggle:hover {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }

        /* القسم الرئيسي ثلاثي الأبعاد والمنقسم الهيكل */
        .hero {
            padding: 180px 10% 100px 10%;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 40px;
            align-items: center;
            min-height: 85vh;
        }

        .hero-text h1 {
            font-size: 3rem;
            font-weight: 900;
            line-height: 1.2;
            margin-bottom: 20px;
        }

        .dynamic-text {
            color: var(--primary);
            border-left: 3px solid var(--primary);
            padding-left: 10px;
            animation: pulseText 2s infinite;
        }

        .hero-text p {
            color: var(--text-muted);
            font-size: 1.1rem;
            line-height: 1.7;
            margin-bottom: 30px;
        }

        .cta-buttons {
            display: flex;
            gap: 15px;
        }

        .btn-primary {
            background: var(--primary);
            color: white;
            padding: 15px 30px;
            border-radius: 10px;
            text-decoration: none;
            font-weight: 700;
            box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .btn-primary:hover {
            background: var(--primary-hover);
            transform: translateY(-3px);
            box-shadow: 0 15px 25px rgba(79, 70, 229, 0.5);
        }

        /* الماكت التفاعلي ثلاثي الأبعاد (Interactive 3D Card Mockup) */
        .hero-visual {
            display: flex;
            justify-content: center;
            perspective: 1000px; /* يعطي عمق ثلاثي الأبعاد */
        }

        .mockup-card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 20px;
            padding: 25px;
            width: 100%;
            max-width: 400px;
            box-shadow: 0 30px 60px rgba(0,0,0,0.4);
            transform: rotateY(-15deg) rotateX(10deg);
            transition: transform 0.5s ease;
        }

        .mockup-card:hover {
            transform: rotateY(0deg) rotateX(0deg) scale(1.05);
        }

        .mockup-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            border-bottom: 1px solid var(--border);
            padding-bottom: 10px;
        }

        .dots {
            display: flex;
            gap: 6px;
        }

        .dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: #ef4444;
        }
        .dot:nth-child(2) { background: #eab308; }
        .dot:nth-child(3) { background: #22c55e; }

        .mockup-url {
            font-family: monospace;
            font-size: 0.8rem;
            color: var(--text-muted);
        }

        .mockup-body {
            background: rgba(0,0,0,0.2);
            height: 150px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            color: var(--primary);
            border: 1px dashed var(--border);
        }

        /* قسم الميزات ببطاقات تفاعلية مرتفعة */
        .features {
            padding: 80px 10%;
            text-align: center;
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 30px;
            margin-top: 50px;
        }

        .card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            padding: 40px 30px;
            border-radius: 16px;
            text-align: right;
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }

        .card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: var(--primary);
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }

        .card:hover::before {
            transform: scaleX(1);
        }

        .card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 4px -10px var(--border);
        }

        .card h3 {
            margin-bottom: 15px;
            font-size: 1.4rem;
        }

        .card p {
            color: var(--text-muted);
            font-size: 0.95rem;
            line-height: 1.6;
        }

        /* الشاشات الصغيرة الاستجابة */
        @media (max-width: 768px) {
            nav { padding: 1rem 5%; }
            .hero {
                grid-template-columns: 1fr;
                padding-top: 130px;
                text-align: center;
            }
            .hero-text h1 { font-size: 2.2rem; }
            .cta-buttons { justify-content: center; }
            .hero-visual { order: -1; }
            .mockup-card { transform: none; }
        }

        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(2, 6, 23, 0.72);
            backdrop-filter: blur(6px);
            display: none;
            align-items: center;
            justify-content: center;
            padding: 20px;
            z-index: 2000;
        }

        .modal-overlay.active {
            display: flex;
        }

        .trial-modal {
            width: 100%;
            max-width: 520px;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 20px;
            padding: 24px;
            box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
            position: relative;
        }

        .close-modal {
            position: absolute;
            top: 12px;
            left: 12px;
            border: none;
            background: transparent;
            color: var(--text-main);
            font-size: 1.5rem;
            cursor: pointer;
        }

        .trial-modal h3 {
            margin-bottom: 8px;
            font-size: 1.4rem;
        }

        .trial-modal p {
            color: var(--text-muted);
            margin-bottom: 16px;
            line-height: 1.6;
        }

        .form-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin-bottom: 14px;
            font-weight: 600;
        }

        .form-group input,
        .form-group select,
        .form-group textarea {
            width: 100%;
            border: 1px solid var(--border);
            background: rgba(255, 255, 255, 0.06);
            color: var(--text-main);
            padding: 12px 14px;
            border-radius: 10px;
            outline: none;
        }

        .input-with-icon {
            position: relative;
        }

        .input-icon {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 1rem;
            pointer-events: none;
        }

        .input-with-icon input {
            padding-right: 42px;
        }

        .form-group textarea {
            resize: vertical;
            min-height: 90px;
        }

        .modal-actions {
            display: flex;
            justify-content: flex-end;
            gap: 10px;
            margin-top: 8px;
        }

        .btn-secondary {
            background: transparent;
            border: 1px solid var(--border);
            color: var(--text-main);
            padding: 12px 16px;
            border-radius: 10px;
            cursor: pointer;
        }

        .form-message {
            margin-top: 14px;
            min-height: 20px;
            font-weight: 600;
        }

        body.modal-open {
            overflow: hidden;
        }

        .site-footer {
            padding: 30px 10% 40px;
            text-align: center;
            border-top: 1px solid var(--border);
            margin-top: 40px;
            background: rgba(15, 23, 42, 0.3);
        }

        .footer-logo {
            display: flex;
            justify-content: center;
            margin-bottom: 10px;
        }

        .footer-logo-box {
            width: 42px;
            height: 42px;
        }

        .site-footer p {
            color: var(--text-muted);
            font-size: 0.95rem;
        }

        .reveal {
            opacity: 0;
            transform: translateY(50px);
            transition: opacity 0.8s ease, transform 0.8s ease;
        }

        .reveal.active {
            opacity: 1;
            transform: translateY(0);
        }

        .reveal-right {
            opacity: 0;
            transform: translateX(80px);
            transition: opacity 0.8s ease, transform 0.8s ease;
        }

        .reveal-right.active {
            opacity: 1;
            transform: translateX(0);
        }

        .reveal-delay-1 { transition-delay: 0.1s; }
        .reveal-delay-2 { transition-delay: 0.3s; }
        .reveal-delay-3 { transition-delay: 0.5s; }

.brand-animation {
    position: relative;
    height: 300vh;
    overflow: visible;
}


.brand-animation .word-container {
    position: sticky;
    top: 0;
    height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;
}


.brand-animation .word {
    position: absolute;
    
    width: 100%;
    text-align: center;

    transform: scale(0);
    opacity: 0;

    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 900;
    color: var(--primary);

    text-shadow: 0 0 30px rgba(79,70,229,0.25);

    will-change: transform, opacity;
}

.brand-animation .wordactive.active-word {
    color: var(--text-main);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.12);
    transition: color 0.3s ease;
}