/* ============================================
   MedX Soft - Professional SaaS Landing Page
   متوافق RTL بالكامل
   ============================================ */

html[dir="rtl"] {
    direction: rtl;
}

:root {
    --primary: #0d47a1;
    --primary-light: #1976d2;
    --primary-dark: #0a3d7a;
    --secondary: #00acc1;
    --accent: #00bcd4;
    --success: #2e7d32;
    --purple: #7b1fa2;
    --yellow: #f9a825;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-600: #475569;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    background: var(--white);
    color: var(--gray-800);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Font Awesome - لون واحد موحد */
/* Font Awesome - لون واحد موحد (أزرق الموقع) */
.icon, .why-icon, .product-icon, .feature-icon, .security-icon, 
.result-icon, .target-icon, .pricing-icon, .step-arrow {
    color: var(--primary) !important;
}

.footer-icon {
    color: var(--secondary) !important;
    margin-inline-end: 8px;
}

/* Security cards - icons turn white on hover */
.security-card:hover .security-icon {
    color: var(--white) !important;
}

/* ========== Preloader ========== */
.preloader {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-inner {
    text-align: center;
}

.preloader-logo {
    height: 54px;
    width: auto;
    animation: logoPulse 1.5s ease-in-out infinite;
    filter: brightness(0) invert(1);
}

.preloader-spinner {
    width: 48px;
    height: 48px;
    margin: 24px auto 0;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== Navbar ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.25rem;
    transition: var(--transition);
}

.logo:hover {
    color: var(--primary-dark);
    transform: scale(1.02);
}

.logo img {
    height: 54px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    inset-inline-end: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--gray-800);
    transition: var(--transition);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(13, 71, 161, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 71, 161, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* ========== Hero Section ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #0a3d7a 100%);
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--white);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: -50px;
    right: 10%;
    animation-delay: -7s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--accent);
    top: 50%;
    right: -50px;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 16px;
}

.hero-title .brand {
    display: block;
    font-size: 0.6em;
    opacity: 0.95;
    margin-bottom: 8px;
}

.hero-tagline {
    font-size: 1.5rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 24px;
}

.hero-desc {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn-outline {
    border-color: var(--white);
    color: var(--white);
}

.hero-buttons .btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

/* Animations */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

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

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    position: relative;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--white);
    border-radius: 2px;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ========== Section Styles ========== */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--gray-600);
}

/* Dashboard Section */
.dashboard-section {
    background: var(--gray-50);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.dashboard-image-wrap {
    order: 2;
}

.dashboard-image-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.dashboard-image-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.dashboard-image-frame:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(13, 71, 161, 0.25);
}

.dashboard-image {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: middle;
}

.dashboard-content {
    order: 1;
}

.dashboard-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.dashboard-subtitle {
    font-size: 1.15rem;
    color: var(--gray-600);
    margin-bottom: 24px;
}

.dashboard-desc {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: 28px;
}

.dashboard-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

.dashboard-feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.dashboard-feature-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.dashboard-feature-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    border-radius: 12px;
    font-size: 1.2rem;
}

.dashboard-feature-item span {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--gray-800);
}

/* RTL: صورة يسار، محتوى يمين */
html[dir="rtl"] .dashboard-grid {
    direction: rtl;
}

html[dir="rtl"] .dashboard-content {
    text-align: right;
}


/* Mobile */
@media (max-width: 968px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .dashboard-features {
        grid-template-columns: 1fr;
    }

    .dashboard-image-wrap {
        order: 1;
    }

    .dashboard-content {
        order: 2;
    }

    html[dir="rtl"] .dashboard-content {
        text-align: right;
    }
}

/* Representative Interface Section */
.rep-interface-section {
    background: var(--white);
}

.rep-interface-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.rep-interface-image-wrap {
    order: 1;
}

.rep-interface-image-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.rep-interface-image-frame:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(13, 71, 161, 0.25);
}

.rep-interface-image {
    width: 100%;
    height: auto;
    display: block;
}

.rep-interface-content {
    order: 2;
}

.rep-interface-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.rep-interface-subtitle {
    font-size: 1.15rem;
    color: var(--gray-600);
    margin-bottom: 24px;
}

.rep-interface-desc {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: 28px;
}

.rep-interface-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

.rep-interface-feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--gray-50);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.rep-interface-feature-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.rep-interface-feature-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    border-radius: 12px;
    font-size: 1.2rem;
}

.rep-interface-feature-item span {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--gray-800);
}

html[dir="rtl"] .rep-interface-grid {
    direction: rtl;
}

html[dir="rtl"] .rep-interface-content {
    text-align: right;
}


@media (max-width: 968px) {
    .rep-interface-grid {
        grid-template-columns: 1fr;
    }

    .rep-interface-image-wrap {
        order: 1;
    }

    .rep-interface-content {
        order: 2;
    }

    .rep-interface-features {
        grid-template-columns: 1fr;
    }
}

/* Promo Rep - Mobile Screens Section */
.promo-screens-section {
    background: var(--gray-50);
}

.promo-screens-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
}

.promo-screens-desc {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-top: 16px;
    line-height: 1.7;
}

.promo-mobiles-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.phone-mockup {
    flex: 0 0 auto;
    text-align: center;
    transition: var(--transition);
}

.phone-mockup:hover {
    transform: translateY(-8px);
}

.promo-screen-img {
    width: 220px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
}

.promo-screen-img img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: middle;
}

.phone-caption {
    margin-top: 20px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
}

@media (max-width: 768px) {
    .promo-mobiles-wrap {
        flex-direction: column;
        align-items: center;
        gap: 48px;
    }

    .promo-screen-img {
        width: 200px;
    }
}

/* About Section */
.about-section {
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.about-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.about-intro {
    text-align: center;
    margin-bottom: 40px;
}

.about-intro-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    overflow: hidden;
}

.about-intro-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.about-text {
    margin-bottom: 16px;
    font-size: 1.1rem;
    color: var(--gray-700);
}

.about-lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--gray-800);
    line-height: 1.8;
}

.about-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.about-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.about-list-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.about-list-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    border-radius: 12px;
    font-size: 1.2rem;
}

.about-list-item span {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--gray-800);
}

.about-goal-full {
    width: 100%;
    margin-top: 56px;
}

.about-goal-box {
    width: 100%;
    padding: 56px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #0a3d7a 100%);
    position: relative;
    overflow: hidden;
}

.about-goal-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(255,255,255,0.05) 0%, transparent 50%);
    pointer-events: none;
}

.about-goal-inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 32px;
    position: relative;
}

.about-goal-icon-wrap {
    width: 80px;
    height: 80px;
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.about-goal-icon {
    font-size: 2.5rem;
    color: var(--white);
    opacity: 1;
}

.about-goal-text {
    flex: 1;
}

.about-goal-box h3 {
    font-size: 1.75rem;
    margin-bottom: 12px;
    color: var(--white);
    font-weight: 700;
}

.about-goal-box p {
    margin: 0;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
}

html[dir="rtl"] .about-goal-inner {
    flex-direction: row-reverse;
}


@media (max-width: 768px) {
    .about-list-grid {
        grid-template-columns: 1fr;
    }

    .about-goal-box {
        padding: 40px 20px;
    }

    .about-goal-inner {
        flex-direction: column;
        text-align: center;
    }

    html[dir="rtl"] .about-goal-inner {
        flex-direction: column;
    }

    .about-goal-box h3 {
        font-size: 1.5rem;
    }

    .about-goal-box p {
        font-size: 1.05rem;
    }
}

/* Why Section */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.why-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.why-icon-wrap {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    border-radius: 12px;
    font-size: 1.4rem;
}

.why-icon {
    color: var(--white) !important;
}

.why-cta-box {
    margin-top: 48px;
    padding: 32px 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(13, 71, 161, 0.3);
    transition: var(--transition);
}

.why-cta-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 50px rgba(13, 71, 161, 0.4);
}

.why-cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.why-cta-icon {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
    display: block;
}

.why-cta {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    position: relative;
    letter-spacing: 0.02em;
}

.why-cta-brand {
    color: var(--white);
    font-weight: 800;
    padding: 0 4px;
    border-bottom: 3px solid rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
    .why-cta-box {
        padding: 24px 20px;
    }

    .why-cta {
        font-size: 1.25rem;
    }
}

/* Products Section */
.products-section {
    background: var(--gray-50);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, transparent 50%, rgba(0,0,0,0.03) 50%);
    border-radius: 0 0 0 100%;
}

.product-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.product-field { border-top-color: var(--success); }
.product-promo { border-top-color: var(--primary); }
.product-draft { border-top-color: var(--purple); }
.product-rewards { border-top-color: var(--yellow); }

.product-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.product-card h3 {
    font-size: 1.35rem;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.product-desc {
    color: var(--gray-600);
    margin-bottom: 20px;
}

.product-card ul {
    list-style: none;
}

.product-card ul li {
    padding: 6px 0;
    padding-inline-end: 24px;
    position: relative;
}

.product-card ul li::before {
    content: '•';
    position: absolute;
    inset-inline-end: 0;
    color: var(--primary);
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--primary);
}

.feature-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* How Section */
.how-section {
    background: var(--gray-50);
}

.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 32px;
}

.step {
    background: var(--white);
    padding: 32px 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    min-width: 200px;
}

.step:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.step-number {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 16px;
}

.step h3 {
    font-size: 1.1rem;
    color: var(--gray-800);
}

.step-arrow {
    font-size: 1.5rem;
    color: var(--primary);
    animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {
    0%, 100% { opacity: 0.6; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(5px); }
}

.how-note {
    text-align: center;
    font-size: 1.1rem;
    color: var(--gray-600);
}

/* Security Section */
.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.security-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.security-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
}

.security-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 12px;
}

.security-note {
    text-align: center;
    margin-top: 32px;
    font-weight: 600;
    color: var(--primary);
}

/* Results Section */
.results-section {
    background: var(--gray-50);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
}

.result-card {
    background: var(--white);
    padding: 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.result-card:hover {
    transform: translateY(-8px) rotate(2deg);
    box-shadow: var(--shadow-xl);
}

.result-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
}

/* Target Section */
.target-section {
    background: var(--white);
}

.target-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.target-card {
    background: var(--white);
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    border: 2px solid var(--gray-200);
    box-shadow: var(--shadow);
}

.target-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.target-card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    border-radius: 16px;
    font-size: 1.5rem;
}

.target-card h3 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 700;
}

.target-card p {
    font-size: 0.95rem;
    color: var(--gray-600);
    margin: 0;
    line-height: 1.6;
}

/* Pricing Section */
.pricing-section {
    background: var(--gray-50);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.pricing-card {
    background: var(--white);
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    opacity: 0;
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

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

.pricing-card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    border-radius: 16px;
    font-size: 1.6rem;
}

.pricing-card h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 700;
}

.pricing-card p {
    font-size: 0.95rem;
    color: var(--gray-600);
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .pricing-cards {
        grid-template-columns: 1fr;
    }
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 100px 0;
}

.cta-content {
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--white);
    padding: 60px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.footer-tagline {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition);
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    text-decoration: none;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--gray-300);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary);
    padding-inline-end: 4px;
}

.footer-contact p {
    margin-bottom: 12px;
    color: var(--gray-300);
}

.footer-contact a {
    color: var(--secondary);
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-logo {
    height: 54px;
    width: auto;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-300);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-links ul,
    .footer-contact {
        text-align: right;
    }
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 24px 24px;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
    }

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

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .steps {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

}

/* ========== RTL - أيقونات ونص متوافق ========== */
html[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] body {
    text-align: inherit;
}

/* RTL: قوائم من اليمين إلى اليسار - أيقونة يمين، نص يسار - متوافق موبايل */
html[dir="rtl"] .dashboard-features,
html[dir="rtl"] .rep-interface-features,
html[dir="rtl"] .features-grid,
html[dir="rtl"] .about-list-grid,
html[dir="rtl"] .why-grid,
html[dir="rtl"] .products-grid,
html[dir="rtl"] .security-grid,
html[dir="rtl"] .results-grid,
html[dir="rtl"] .target-grid {
    direction: rtl;
}

html[dir="rtl"] .dashboard-feature-item,
html[dir="rtl"] .rep-interface-feature-item,
html[dir="rtl"] .about-list-item,
html[dir="rtl"] .feature-card {
    direction: rtl;
}

html[dir="rtl"] .about-goal-inner {
    flex-direction: row-reverse;
}

/* قوائم وروابط */
html[dir="rtl"] .about-list-item span,
html[dir="rtl"] .product-card ul li {
    text-align: right;
}

html[dir="rtl"] .section-header,
html[dir="rtl"] .promo-screens-header {
    text-align: center;
}

/* الهوامش المنطقية للعناصر الداخلية */
html[dir="rtl"] .product-card ul li::before {
    inset-inline-end: 0;
}

html[dir="rtl"] .footer-links a:hover {
    padding-inline-end: 4px;
    padding-inline-start: 0;
}

/* موبايل - RTL نص وأيقونات */
@media (max-width: 768px) {
    html[dir="rtl"] {
        direction: rtl;
    }

    html[dir="rtl"] .dashboard-feature-item,
    html[dir="rtl"] .rep-interface-feature-item,
    html[dir="rtl"] .about-list-item,
    html[dir="rtl"] .feature-card {
        direction: rtl;
        text-align: right;
    }

    html[dir="rtl"] .why-card,
    html[dir="rtl"] .security-card,
    html[dir="rtl"] .result-card {
        text-align: right;
    }

    html[dir="rtl"] .dashboard-feature-item span,
    html[dir="rtl"] .rep-interface-feature-item span,
    html[dir="rtl"] .feature-card p,
    html[dir="rtl"] .why-card p,
    html[dir="rtl"] .security-card p,
    html[dir="rtl"] .result-card p {
        text-align: right;
    }

    html[dir="rtl"] .target-card,
    html[dir="rtl"] .pricing-card {
        text-align: right;
    }

    html[dir="rtl"] .target-card h3,
    html[dir="rtl"] .target-card p,
    html[dir="rtl"] .pricing-card h3,
    html[dir="rtl"] .pricing-card p {
        text-align: right;
    }

    html[dir="rtl"] .footer-content,
    html[dir="rtl"] .footer-links ul,
    html[dir="rtl"] .footer-contact {
        text-align: right;
    }

    html[dir="rtl"] .about-list-icon,
    html[dir="rtl"] .dashboard-feature-icon,
    html[dir="rtl"] .rep-interface-feature-icon {
        flex-shrink: 0;
    }

    html[dir="rtl"] .dashboard-feature-item,
    html[dir="rtl"] .rep-interface-feature-item,
    html[dir="rtl"] .feature-card {
        gap: 16px;
    }
}
