:root {
    --primary: #d20c13;
    --primary-dark: #a50a0f;
    --bg-light: #fff9f9;
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --border: #e2e8f0;
    --white: #ffffff;
    --radius: 0.75rem;
    --font-en: 'Inter', sans-serif;
    --font-ar: 'Cairo', sans-serif;
}

/* Base Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-en);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* RTL Support */
body[dir="rtl"] {
    font-family: var(--font-ar);
    direction: rtl;
    text-align: right;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* Utilities */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.bg-light { background-color: var(--bg-light); }
.fade-in { opacity: 0; transform: translateY(20px); transition: 0.6s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}
.btn--primary { background: var(--primary); color: white; }
.btn--primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn--outline-light { border: 2px solid rgba(255,255,255,0.3); color: white; }
.btn--outline-light:hover { background: rgba(255,255,255,0.1); }
.btn--white { background: white; color: var(--primary); }
.btn--text { background: transparent; color: var(--text-dark); border: 1px solid var(--border); font-size: 0.9rem; padding: 8px 16px; margin: 0 10px; }
.full-width { width: 100%; }

/* Header */
.header { position: sticky; top: 0; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); z-index: 1000; border-bottom: 1px solid var(--border); }
.header__container { display: flex; align-items: center; justify-content: space-between; height: 80px; }

.logo__text { font-weight: 700; font-size: 1.5rem; color: var(--primary); }
.logo__sub { color: var(--text-gray); font-size: 0.9rem; }

.nav__list { display: flex; gap: 2rem; }
.nav__link:hover { color: var(--primary); }
.nav__actions { display: flex; align-items: center; margin-left: 2rem; }

/* RTL Header Adjustment */
body[dir="rtl"] .nav__actions { margin-left: 0; margin-right: 2rem; }

/* Mobile Menu */
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; }
.mobile-toggle span { display: block; width: 25px; height: 3px; background: #333; margin: 5px 0; }

@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    .nav { 
        position: absolute; top: 80px; left: 0; right: 0; 
        background: white; padding: 2rem; 
        flex-direction: column; gap: 1rem; border-bottom: 1px solid var(--border);
        display: none; 
    }
    .nav.active { display: flex; }
    .nav__list { flex-direction: column; text-align: center; gap: 1rem; }
    .nav__actions { margin: 0; flex-direction: column; gap: 1rem; }
}

/* Hero */
.hero { 
    background: linear-gradient(135deg, var(--primary-dark), #7f0509); 
    color: white; padding: 100px 0; min-height: 80vh; 
    display: flex; align-items: center; 
}
.hero__container { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: 3rem; line-height: 1.2; margin-bottom: 1.5rem; }
.hero p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 2rem; max-width: 500px; }
.hero__btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__media img { border-radius: var(--radius); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }

@media (max-width: 768px) {
    .hero__container { grid-template-columns: 1fr; text-align: center; }
    .hero p { margin: 0 auto 2rem; }
    .hero__btns { justify-content: center; }
}

/* Components */
.trusted { padding: 40px 0; text-align: center; border-bottom: 1px solid var(--border); }
.label { text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; color: var(--text-gray); margin-bottom: 1rem; }
.logos { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; opacity: 0.5; filter: grayscale(1); }

.section-head { text-align: center; margin-bottom: 3rem; }
.section-head h2 { font-size: 2.5rem; margin-bottom: 0.5rem; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }

.card { 
    background: white; padding: 2rem; border-radius: var(--radius); 
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); border: 1px solid var(--border);
    transition: 0.3s;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 15px rgba(0,0,0,0.1); }
.card__icon { margin-bottom: 1rem; }

/* About - Checklist */
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.check-list { margin-top: 1.5rem; }
.check-list li { margin-bottom: 0.8rem; position: relative; padding-left: 25px; }
.check-list li::before { 
    content: '✓'; color: var(--primary); font-weight: bold; 
    position: absolute; left: 0; 
}

/* RTL Checklist Flip */
body[dir="rtl"] .check-list li { padding-left: 0; padding-right: 25px; }
body[dir="rtl"] .check-list li::before { left: auto; right: 0; }

@media (max-width: 768px) { .split-layout { grid-template-columns: 1fr; } }

/* Features Grid */
.features-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.feat-item { text-align: center; }
.feat-icon { font-size: 2.5rem; display: block; margin-bottom: 1rem; }

/* Testimonials */
.user { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.user img { border-radius: 50%; }

/* CTA */
.cta-section { background: linear-gradient(90deg, var(--primary), #ff4d4d); color: white; padding: 60px 0; text-align: center; }
.cta-section h2 { margin-bottom: 1.5rem; }

/* Contact Form */
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; font-size: 0.9rem; }
.form-group input, .form-group textarea { 
    width: 100%; padding: 12px; border: 1px solid var(--border); 
    border-radius: var(--radius); font-family: inherit; 
}

/* Footer */
.footer { background: #111; color: #bbb; padding: 60px 0 20px; }
.footer__container { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; border-bottom: 1px solid #333; padding-bottom: 40px; }
.footer h4 { color: white; margin-bottom: 1.2rem; }
.footer a:hover { color: white; }
.socials { display: flex; gap: 1rem; }
.copyright { text-align: center; margin-top: 20px; font-size: 0.9rem; }

@media (max-width: 768px) { .footer__container { grid-template-columns: 1fr; } }