/* 1. إعداد المتغيرات والألوان */
:root {
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --primary: #8b5cf6;
    --secondary: #ec4899;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --gradient: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
}

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

/* Custom Scrollbar - متناسق مع الثيم وصغير */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 10px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #9d6fff 0%, #ff5eb3 100%);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-dark);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px; /* توسيع العرض قليلاً */
    margin: 0 auto;
    padding: 20px;
}

/* 2. Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo-container { display: flex; align-items: center; gap: 15px; }
.logo-img { width: 50px; height: 50px; border-radius: 12px; }
.brand-name {
    font-size: 1.5rem; font-weight: bold;
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.support-link { color: white; text-decoration: none; opacity: 0.8; transition: 0.3s; }
.support-link:hover { opacity: 1; }

/* 3. Hero Section (تخطيط مرن يحافظ على الصورة يمين) */
.hero {
    display: flex;
    align-items: center; /* توسيط عمودي */
    justify-content: space-between; /* تباعد بين النص والصورة */
    padding: 80px 0;
    gap: 60px; /* مسافة كافية بين الكتلتين */
}

/* الجزء الأيسر */
.hero-text { 
    flex: 1; /* يأخذ مساحة مرنة */
    max-width: 600px; /* عدم التمدد بشكل مبالغ فيه */
}

.hero h1 { font-size: 3.5rem; margin-bottom: 20px; line-height: 1.2; }
.highlight { color: var(--secondary); }
.hero p { color: var(--text-muted); font-size: 1.2rem; margin-bottom: 30px; line-height: 1.8; }

/* الأزرار */
.buttons-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.download-btn {
    padding: 16px 30px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    color: white;
}

.chrome-btn {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}
.chrome-btn:hover { background-color: rgba(255, 255, 255, 0.2); transform: translateY(-3px); }

.android-btn {
    background: var(--gradient);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
}
.android-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(236, 72, 153, 0.6); }

/* --- إصلاح صندوق المزامنة (Sync Guide) --- */
.install-guide {
    display: flex;
    align-items: center; /* أهم سطر: يحاذي الأيقونة والنص في سطر واحد */
    gap: 15px;
    background: rgba(30, 41, 59, 0.6);
    padding: 15px 20px;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    width: fit-content; /* الصندوق على قد المحتوى */
}

.guide-icon {
    background: rgba(139, 92, 246, 0.15);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    flex-shrink: 0; /* يمنع الأيقونة من الانعصار */
}

.guide-text { font-size: 0.95rem; color: var(--text-muted); line-height: 1.4; }
.guide-text strong { display: block; color: var(--text-main); margin-bottom: 2px; }

/* 4. Hero Image / Slider (الجزء الأيمن) */
.hero-image { 
    flex: 1; 
    display: flex; 
    justify-content: center; /* توسيط السلايدر داخل الجزء الأيمن */
    position: relative;
}

.slideshow-container { 
    width: 280px; /* عرض ثابت لصورة الجوال */
    position: relative; 
    margin: auto; 
}

.mySlides { display: none; }

.app-screenshot {
    width: 100%; 
    border-radius: 30px;
    border: 8px solid #1e293b;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.6);
    display: block;
}

/* تحسين شكل الأسهم */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: 45px;
    height: 45px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 16px;
    border-radius: 50%;
    background-color: rgba(15, 23, 42, 0.85); /* خلفية غامقة واضحة */
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: 0.3s;
}

/* إبعاد الأسهم للخارج */
.next { right: -60px; }
.prev { left: -60px; }

.prev:hover, .next:hover {
    background-color: var(--primary);
    transform: scale(1.1);
}

/* النقاط */
.dot {
    cursor: pointer; height: 10px; width: 10px; margin: 0 4px;
    background-color: #334155; border-radius: 50%; display: inline-block;
    transition: 0.3s;
}
.active, .dot:hover { background-color: var(--secondary); transform: scale(1.2); }
.fade { animation-name: fade; animation-duration: 1s; }
@keyframes fade { from {opacity: .4} to {opacity: 1} }


/* 5. Features */
.features { margin-top: 40px; }

/* Trust Badges */
.trust-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-main);
}

.badge i {
    color: var(--primary);
}

/* Stats Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 60px 0;
    padding: 40px;
    background: rgba(30, 41, 59, 0.3);
    border-radius: 20px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 1rem;
}

/* How It Works Section */
.how-it-works {
    margin: 80px 0;
}

.steps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
}

.step {
    flex: 1;
    min-width: 200px;
    max-width: 220px;
    background: var(--bg-card);
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 35px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.step-icon {
    font-size: 3rem;
    margin: 20px 0;
}

.step h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.step p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.step-arrow {
    font-size: 2rem;
    color: var(--primary);
    font-weight: bold;
}

/* Video Section */
.video-section {
    margin: 80px 0;
    text-align: center;
}

.video-container {
    max-width: 900px;
    margin: 0 auto;
}

.video-thumbnail-link {
    display: block;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
}

.video-thumbnail-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(139, 92, 246, 0.5);
}

.video-thumb-img {
    width: 100%;
    height: auto;
    display: block;
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.video-thumbnail-link:hover .video-play-overlay {
    background: rgba(0, 0, 0, 0.6);
}

.play-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.5);
}

.video-thumbnail-link:hover .play-icon {
    transform: scale(1.15);
    box-shadow: 0 15px 40px rgba(236, 72, 153, 0.7);
}

.play-icon i {
    font-size: 2.5rem;
    color: white;
}

.video-text {
    text-align: center;
    color: white;
}

.video-text h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.video-text p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Testimonials Section */
.testimonials-section {
    margin: 80px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
}

.stars {
    color: #fbbf24;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.testimonial-text {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.testimonial-author strong {
    color: var(--text-main);
    font-size: 1rem;
}

.testimonial-author span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* FAQ Section */
.faq-section {
    margin: 80px 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(139, 92, 246, 0.1);
}

.faq-question i {
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 25px;
    color: var(--text-muted);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 25px 20px 25px;
}

/* Final CTA Section */
.final-cta {
    text-align: center;
    padding: 80px 40px;
    background: var(--gradient);
    border-radius: 20px;
    margin: 80px 0;
}

.final-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: white;
}

.final-cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

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

.cta-btn {
    padding: 18px 35px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.cta-btn.primary {
    background: white;
    color: var(--primary);
}

.cta-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.cta-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid white;
}

.cta-btn.secondary:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-3px);
}

.section-title { text-align: center; margin-bottom: 50px; font-size: 2.2rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 25px; }
.card {
    background: var(--bg-card); padding: 30px; border-radius: 18px;
    transition: 0.3s; border: 1px solid rgba(255,255,255,0.05);
}
.card:hover { transform: translateY(-5px); border-color: var(--primary); }
.card-icon { font-size: 2.5rem; margin-bottom: 20px; }
.card h3 { margin-bottom: 12px; color: var(--primary); font-size: 1.2rem; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

/* 6. Modes & Footer */
.modes-section { text-align: center; margin-top: 60px; }
.modes-list { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 800px; margin: 0 auto; }
.mode-tag {
    background: rgba(255,255,255,0.05); padding: 10px 20px;
    border-radius: 25px; font-size: 0.95rem; border: 1px solid rgba(255,255,255,0.1);
    transition: 0.3s;
}
.mode-tag:hover { border-color: var(--secondary); background: rgba(236, 72, 153, 0.1); }

/* 7. Supported Languages Section */
.languages-section {
    text-align: center;
    margin-top: 80px;
    padding: 60px 20px;
    background: rgba(30, 41, 59, 0.3);
    border-radius: 20px;
}

.languages-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.language-item {
    background: rgba(15, 23, 42, 0.6);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.language-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.1);
}

.lang-flag {
    font-size: 2.5rem;
}

.lang-name {
    font-size: 1rem;
    color: var(--text-main);
    font-weight: 500;
}

footer {
    text-align: center; padding: 50px 0; color: var(--text-muted);
    border-top: 1px solid rgba(255,255,255,0.05); margin-top: 80px;
}
.footer-links { margin-top: 15px; display: flex; justify-content: center; gap: 20px; font-size: 0.95rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; transition: 0.3s; }
.footer-links a:hover { color: white; text-decoration: underline; }

/* Responsive: للموبايل فقط */
@media (max-width: 900px) {
    .hero { 
        flex-direction: column;
        text-align: center; 
        gap: 40px;
    }
    .hero h1 { font-size: 2.5rem; }
    .hero-text { max-width: 100%; }
    .buttons-container { justify-content: center; }
    .trust-badges { justify-content: center; }
    .install-guide { margin: 0 auto; text-align: left; }
    
    .next { right: -20px; width: 40px; height: 40px; }
    .prev { left: -20px; width: 40px; height: 40px; }
    
    .step-arrow { display: none; }
    .stats-section { grid-template-columns: repeat(2, 1fr); }
    .final-cta h2 { font-size: 1.8rem; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .cta-btn { width: 100%; max-width: 300px; }
    
    .video-container iframe { height: 250px; }
    
    .play-icon {
        width: 60px;
        height: 60px;
    }
    
    .play-icon i {
        font-size: 1.8rem;
    }
    
    .video-text h3 {
        font-size: 1.2rem;
    }
    
    .video-text p {
        font-size: 0.9rem;
    }
}