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

:root {
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #c0392b;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-color: #333333;
    --text-muted: #666666;
    --border-radius: 12px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Cairo', sans-serif;
    background: radial-gradient(circle at top left, #e3f2fd 0, #f8f9fa 35%, #e8f5e9 70%, #fdfbff 100%);
    color: var(--text-color);
    direction: rtl;
    text-align: right;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    background-color: var(--accent-color);
    color: var(--white);
}

/* Hero Section */
.hero {
    background: radial-gradient(circle at top right, rgba(255,255,255,0.15), transparent 55%),
                linear-gradient(135deg, #1e293b, #0f172a 45%, #2563eb 100%);
    color: var(--white);
    padding: 80px 0 70px;
    text-align: center;
    border-radius: 0 0 40px 40px;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59,130,246,0.35), transparent 70%);
    top: -60px;
    left: -40px;
    opacity: 0.6;
}

.hero::after {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16,185,129,0.35), transparent 70%);
    bottom: -80px;
    right: -60px;
    opacity: 0.5;
}

.hero h1 {
    font-size: 2.6rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.05rem;
    opacity: 0.9;
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-actions {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.hero-btn-primary,
.hero-btn-outline {
    padding: 10px 24px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.hero-btn-primary {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(22, 163, 74, 0.35);
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(21, 128, 61, 0.45);
}

.hero-btn-outline {
    background: transparent;
    color: #e5e7eb;
    border: 1px solid rgba(148, 163, 184, 0.7);
}

.hero-btn-outline:hover {
    background: rgba(15, 23, 42, 0.5);
}

/* Features Layout */
.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

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

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), #2ecc71);
    margin: 0 auto;
    border-radius: 999px;
}

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

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-top: 4px solid var(--accent-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: var(--primary-color);
}

.feature-list {
    list-style: none;
}

.feature-list li {
    margin-bottom: 10px;
    padding-right: 20px;
    position: relative;
    color: var(--text-muted);
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* Comparison Layout */
.comparison-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
}

.comparison-card {
    flex: 1;
    min-width: 300px;
    background: radial-gradient(circle at top, #ffffff 0, #f9fafb 55%, #f3f4f6 100%);
    border-radius: 20px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease;
    position: relative;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.comparison-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(56,189,248,0.06), rgba(52,211,153,0.06));
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.comparison-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.18);
}

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

.comparison-card.featured {
    transform: translateY(-8px) scale(1.02);
    z-index: 2;
    border: 2px solid rgba(46, 125, 50, 0.7);
    box-shadow: 0 26px 65px rgba(22, 163, 74, 0.28);
}

.card-header {
    padding: 25px 24px 18px;
    text-align: center;
    border-bottom: 1px solid #eef2ff;
}

.card-header h2 {
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.card-header .subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.card-body {
    padding: 24px 24px 26px;
}

.stat-box {
    margin-bottom: 16px;
}

.stat-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    background: rgba(226, 232, 240, 0.7);
    padding: 5px 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.stat-value {
    font-weight: 700;
    font-size: 1.05rem;
    margin-top: 4px;
}

.features-check {
    margin-top: 20px;
    list-style: none;
}

.features-check li {
    padding: 8px 0;
    border-bottom: 1px dashed #e5e7eb;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-check li:last-child {
    border-bottom: none;
}

.badge-success { color: var(--success-color); }
.badge-danger { color: var(--danger-color); }
.badge-warning { color: var(--warning-color); }

.summary-box {
    background: radial-gradient(circle at top left, #ffffff 0, #f9fafb 45%, #f3f4f6 100%);
    padding: 32px 32px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
    margin-top: 50px;
}

html[dir="rtl"] .summary-box {
    border-right: 5px solid var(--accent-color);
}

html[dir="ltr"] .summary-box {
    border-left: 5px solid var(--accent-color);
}

.summary-box h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
}

/* Footer */
footer {
    background: linear-gradient(90deg, #0f172a, #111827);
    color: var(--white);
    text-align: center;
    padding: 18px 0;
    margin-top: 60px;
}

footer p {
    text-align: center;
    color: #e5e7eb;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-wrapper {
        flex-direction: column;
        gap: 15px;
    }
    
    .comparison-card.featured {
        transform: scale(1);
    }
    
    .hero {
        border-radius: 0;
    }
}
