/* 
 * ==========================================
 * قالب الهبوط الاحترافي - Premium Dark Theme
 * ==========================================
 */

@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@300;400;500;600;700;800&display=swap');

:root {
    /* الألوان الأساسية */
    --primary: #8b5cf6;       /* لون بنفسجي ساطع */
    --primary-hover: #7c3aed;
    --primary-glow: rgba(139, 92, 246, 0.5);
    
    --secondary: #10b981;     /* أخضر زمردي للإيجابيات */
    --accent: #f43f5e;        /* أحمر وردي للتحذيرات/المشاكل */
    
    /* ألوان الخلفية (Dark Mode) */
    --bg-main: #0f172a;       /* أزرق داكن جداً للصفحة */
    --bg-surface: #1e293b;    /* خلفية البطاقات والأقسام */
    --bg-glass: rgba(30, 41, 59, 0.7); /* تأثير الزجاج */
    
    /* ألوان النصوص */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    /* إعدادات العناصر */
    --font-family: 'Alexandria', sans-serif;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 9999px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-family);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.7;
    overflow-x: hidden;
    scroll-behavior: smooth;
    /* خلفية متدرجة خفيفة تغطي الصفحة */
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(139, 92, 246, 0.05), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(16, 185, 129, 0.05), transparent 25%);
}

.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: 120px 0;
    position: relative;
}

/* تنسيقات العناوين والنصوص */
h1, h2, h3, h4 {
    line-height: 1.3;
    font-weight: 700;
}

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

.section-title {
    font-size: 2.8rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
}

/* الأزرار (Buttons) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 42px;
    font-size: 1.15rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #6366f1);
    color: #fff;
    box-shadow: 0 10px 25px -5px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px -5px var(--primary-glow);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, #6366f1, var(--primary));
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.btn-primary:hover::before {
    opacity: 1;
}

/* التأثير الزجاجي (Glassmorphism) */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(30, 41, 59, 0.85);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* تأثير التمرير (Scroll Animations) */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* =========================================
   تنسيق الأقسام المحددة
========================================= */

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
}

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

.hero-text h1 {
    font-size: 4rem;
    margin-bottom: 25px;
    line-height: 1.2;
}

.hero-text h1 span {
    background: linear-gradient(135deg, var(--primary), #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    animation: float 6s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.hero-image::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    background: var(--primary);
    filter: blur(100px);
    transform: translate(-50%, -50%);
    opacity: 0.3;
    z-index: 1;
}

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

/* Split Section (المشكلة / الحل) */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background: rgba(255, 255, 255, 0.01);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.split-section.reverse {
    direction: ltr; /* لعكس الترتيب بذكاء */
}

.split-section.reverse > * {
    direction: rtl; /* إرجاع النص للاتجاه الطبيعي */
}

.split-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.split-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.split-list {
    list-style: none;
    margin-top: 30px;
}

.split-list li {
    font-size: 1.15rem;
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.split-list .icon-problem {
    color: var(--accent);
    flex-shrink: 0;
}

.split-list .icon-solution {
    color: var(--secondary);
    flex-shrink: 0;
}

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

.feature-icon {
    width: 65px;
    height: 65px;
    border-radius: 16px;
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
}

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

.feature-card p {
    color: var(--text-muted);
}

/* How It Works */
.steps-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    position: relative;
    justify-content: space-between;
}

.step {
    flex: 1;
    min-width: 250px;
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--bg-surface);
    border: 2px solid var(--primary);
    color: var(--primary);
    font-size: 2rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
    position: relative;
    z-index: 2;
}

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

.step p {
    color: var(--text-muted);
}

/* خط الربط للخطوات للديسكتوب */
@media (min-width: 900px) {
    .step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 40px;
        left: -50%;
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--primary), transparent);
        z-index: 1;
        opacity: 0.3;
    }
}

/* Pricing Section */
.pricing-wrapper {
    display: flex;
    justify-content: center;
}

.pricing-card {
    max-width: 480px;
    width: 100%;
    text-align: center;
    position: relative;
    padding: 60px 40px;
    border-top: 4px solid var(--primary);
}

.pricing-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(139, 92, 246, 0.15);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.9rem;
}

.pricing-price {
    font-size: 4.5rem;
    font-weight: 800;
    margin: 30px 0;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.pricing-currency {
    font-size: 1.8rem;
    color: var(--text-muted);
    margin-left: 8px;
    margin-top: 10px;
}

.pricing-old {
    font-size: 1.5rem;
    text-decoration: line-through;
    color: var(--text-muted);
    opacity: 0.7;
}

.pricing-features {
    list-style: none;
    text-align: right;
    margin: 40px 0;
}

.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 12px;
}

.pricing-features li svg {
    color: var(--secondary);
}

/* FAQ */
.faq-wrapper {
    max-width: 850px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-surface);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    padding: 24px 30px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.4s;
}

.faq-item.active {
    background: rgba(255,255,255,0.03);
    border-color: rgba(139,92,246,0.3);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.faq-answer-inner {
    padding: 0 30px 24px 30px;
    color: var(--text-muted);
}

/* Footer */
footer {
    background: #0b1120;
    padding: 60px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
}

.footer-links {
    display: flex;
    gap: 25px;
    list-style: none;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

/* Responsive */
@media (max-width: 992px) {
    .section-title { font-size: 2.3rem; }
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-text h1 { font-size: 3rem; }
    .hero-image { padding: 0 20px; }
    
    .split-section, .split-section.reverse {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .split-list li {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .step-number { width: 60px; height: 60px; font-size: 1.5rem; }
    section { padding: 80px 0; }
    .pricing-card { padding: 40px 20px; }
    .faq-question { font-size: 1.1rem; padding: 18px 20px; }
    .footer-inner { flex-direction: column; text-align: center; }
}
