/* ===== Variables ===== */
:root {
    --emerald: #0d9668;
    --emerald-light: #10b981;
    --emerald-dark: #047857;
    --emerald-50: #ecfdf5;
    --navy: #0f172a;
    --navy-light: #1e293b;
    --gold: #d4a843;
    --gold-light: #e8c36a;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-ar: 'Noto Sans Arabic', 'DM Sans', sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow: 0 4px 24px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.25s ease;
}

/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: var(--font);
    color: var(--gray-800);
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

body.rtl { font-family: var(--font-ar); direction: rtl; }

img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.text-white { color: var(--white) !important; }

/* ===== Nav ===== */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 16px 0;
    background: transparent;
    transition: var(--transition);
}
.nav.scrolled {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    padding: 10px 0;
}
.nav.scrolled .nav-name,
.nav.scrolled .nav-menu a { color: var(--gray-800); }
.nav.scrolled .lang-btn { color: var(--gray-600); border-color: var(--gray-300); }

.nav-inner {
    max-width: 1140px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-logo {
    width: 42px; height: 42px; border-radius: 50%;
    object-fit: cover; border: 2px solid rgba(255,255,255,0.2);
}
.nav.scrolled .nav-logo { border-color: var(--gray-200); }
.nav-name { font-weight: 700; font-size: 1.2rem; color: var(--white); letter-spacing: -0.02em; }

.nav-menu { display: flex; align-items: center; gap: 28px; }
.nav-menu a { color: rgba(255,255,255,0.85); font-weight: 500; font-size: 0.9rem; transition: var(--transition); }
.nav-menu a:hover { color: var(--emerald-light); }
.nav.scrolled .nav-menu a:hover { color: var(--emerald); }

.nav-cta {
    background: var(--emerald) !important; color: var(--white) !important;
    padding: 10px 22px; border-radius: 10px; font-weight: 600; font-size: 0.9rem;
    transition: var(--transition);
}
.nav-cta:hover { background: var(--emerald-dark) !important; transform: translateY(-1px); }

.lang-btn {
    background: transparent; border: 1.5px solid rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.9); padding: 6px 14px; border-radius: 8px;
    font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: var(--transition);
    font-family: var(--font-ar);
}
.lang-btn:hover { background: rgba(255,255,255,0.1); }

.nav-hamburger {
    display: none; background: none; border: none; color: var(--white);
    cursor: pointer; padding: 6px;
}
.nav.scrolled .nav-hamburger { color: var(--gray-800); }

/* ===== Buttons ===== */
.btn-primary {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 32px; background: var(--emerald); color: var(--white);
    border-radius: var(--radius-sm); font-weight: 600; font-size: 0.95rem;
    transition: var(--transition); border: none; cursor: pointer;
    font-family: var(--font);
}
.btn-primary:hover { background: var(--emerald-dark); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(13,150,104,0.3); }

.btn-ghost {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 32px; background: transparent; color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.3); border-radius: var(--radius-sm);
    font-weight: 600; font-size: 0.95rem; transition: var(--transition);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); }

/* ===== Hero ===== */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    background: linear-gradient(135deg, var(--navy) 0%, #0f2b1e 50%, #0a3022 100%);
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -200px; right: -200px;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(13,150,104,0.12) 0%, transparent 70%);
    border-radius: 50%;
}
.hero::after {
    content: ''; position: absolute; bottom: -100px; left: -100px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(212,168,67,0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-inner {
    max-width: 1140px; margin: 0 auto; padding: 120px 24px 80px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
    position: relative; z-index: 2;
}
.hero-content { text-align: left; }

.hero-pill {
    display: inline-block; padding: 8px 18px;
    background: rgba(13,150,104,0.15); border: 1px solid rgba(13,150,104,0.25);
    border-radius: 50px; color: var(--emerald-light);
    font-size: 0.8rem; font-weight: 600; margin-bottom: 24px; letter-spacing: 0.02em;
}

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.5rem); font-weight: 700;
    color: var(--white); line-height: 1.15; margin-bottom: 20px;
    letter-spacing: -0.03em;
}
.gradient-text {
    background: linear-gradient(135deg, var(--emerald-light), var(--gold-light));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-desc {
    font-size: 1.1rem; color: rgba(255,255,255,0.7); margin-bottom: 32px; max-width: 520px;
    line-height: 1.8;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-trust { display: flex; flex-direction: column; gap: 10px; }
.trust-item { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.65); font-size: 0.88rem; font-weight: 500; }

.hero-visual { position: relative; }
.hero-card {
    border-radius: 20px; overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,0.25);
}
.hero-img { width: 100%; display: block; border-radius: 20px; }

.hero-float {
    position: absolute; display: flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
    padding: 10px 18px; border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    font-size: 0.85rem; font-weight: 600; color: var(--gray-800);
    animation: float 3s ease-in-out infinite;
}
.hero-float-1 { top: 10%; left: -30px; }
.hero-float-2 { bottom: 15%; right: -20px; animation-delay: 1.5s; }

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

/* ===== Section Common ===== */
.section { padding: 100px 0; }
.section-alt { background: var(--gray-50); }
.section-dark { background: var(--navy); }

.section-head { text-align: center; margin-bottom: 56px; }
.section-tag {
    display: inline-block; padding: 6px 16px;
    background: var(--emerald-50); color: var(--emerald);
    border-radius: 50px; font-size: 0.8rem; font-weight: 600;
    margin-bottom: 14px; letter-spacing: 0.03em; text-transform: uppercase;
}
.tag-light { background: rgba(13,150,104,0.15); color: var(--emerald-light); }

.section-head h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 700;
    color: var(--gray-900); letter-spacing: -0.03em; line-height: 1.2;
}
.section-desc { color: var(--gray-500); margin-top: 12px; font-size: 1.05rem; }

/* ===== About ===== */
.about-layout {
    display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: center;
}
.about-img {
    width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.about-content .section-tag { margin-bottom: 14px; }
.about-content h2 {
    font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 700;
    color: var(--gray-900); margin-bottom: 20px; letter-spacing: -0.02em; line-height: 1.2;
}
.about-content p { color: var(--gray-600); font-size: 1rem; margin-bottom: 14px; }

.about-stats { display: flex; gap: 20px; margin-top: 28px; }
.stat-card {
    flex: 1; padding: 20px; background: var(--gray-50); border-radius: var(--radius-sm);
    text-align: center; border: 1px solid var(--gray-200);
}
.stat-num { font-size: 1.3rem; font-weight: 700; color: var(--emerald); margin-bottom: 4px; }
.stat-label { font-size: 0.8rem; color: var(--gray-500); font-weight: 500; }

/* ===== Steps ===== */
.steps { display: flex; align-items: flex-start; justify-content: center; gap: 16px; }
.step-card {
    flex: 1; max-width: 320px; text-align: center; padding: 36px 28px;
    background: var(--white); border-radius: var(--radius); border: 1px solid var(--gray-200);
    position: relative; transition: var(--transition);
}
.step-card:hover { border-color: var(--emerald); box-shadow: var(--shadow); transform: translateY(-4px); }
.step-num {
    width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: var(--emerald); color: var(--white); font-weight: 700; font-size: 1rem;
    margin: 0 auto 20px;
}
.step-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--gray-900); margin-bottom: 10px; }
.step-card p { font-size: 0.92rem; color: var(--gray-500); }
.step-line { width: 48px; height: 2px; background: var(--emerald); align-self: center; margin-top: 30px; flex-shrink: 0; opacity: 0.3; }

/* ===== Services ===== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc-card {
    padding: 32px 24px; border-radius: var(--radius); border: 1px solid var(--gray-200);
    background: var(--white); transition: var(--transition);
}
.svc-card:hover { border-color: var(--emerald); box-shadow: var(--shadow); transform: translateY(-4px); }
.svc-icon {
    width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: var(--emerald-50); font-size: 1.4rem; margin-bottom: 16px;
}
.svc-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
.svc-card p { font-size: 0.9rem; color: var(--gray-500); }

/* ===== Features / Why ===== */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feat { text-align: center; padding: 28px 20px; }
.feat-icon {
    width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: rgba(13,150,104,0.15); font-size: 1.2rem; margin: 0 auto 14px;
}
.feat h3 { color: var(--white); font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feat p { color: rgba(255,255,255,0.6); font-size: 0.9rem; }

/* ===== Platform ===== */
.platform-layout {
    display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.platform-content .section-tag { margin-bottom: 14px; }
.platform-content h2 {
    font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 700;
    color: var(--gray-900); margin-bottom: 16px; letter-spacing: -0.02em;
}
.platform-content p { color: var(--gray-600); font-size: 1rem; margin-bottom: 24px; }

.check-list { list-style: none; margin-bottom: 28px; }
.check-list li {
    padding: 8px 0 8px 28px; color: var(--gray-600); font-size: 0.95rem;
    position: relative;
}
.check-list li::before {
    content: '✓'; position: absolute; left: 0; color: var(--emerald);
    font-weight: 700; font-size: 0.9rem;
}

.platform-imgs { display: flex; gap: 16px; justify-content: center; }
.plat-img {
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
    max-width: 240px; width: 100%; object-fit: cover;
}
.plat-img-2 { margin-top: 40px; }

/* ===== Reviews ===== */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card {
    background: var(--white); padding: 28px; border-radius: var(--radius);
    border: 1px solid var(--gray-200); transition: var(--transition);
}
.review-card:hover { box-shadow: var(--shadow); }
.review-stars { color: var(--gold); font-size: 1rem; margin-bottom: 14px; letter-spacing: 2px; }
.review-card p { color: var(--gray-600); font-size: 0.95rem; font-style: italic; margin-bottom: 20px; line-height: 1.7; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
}
.review-author strong { display: block; color: var(--gray-900); font-size: 0.9rem; }
.review-author span { color: var(--gray-400); font-size: 0.8rem; }

/* ===== Contact ===== */
.contact-layout {
    display: grid; grid-template-columns: 1fr 1.5fr; gap: 56px; align-items: start;
}
.c-item { display: flex; gap: 14px; margin-bottom: 24px; }
.c-icon {
    width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: var(--emerald-50); font-size: 1.1rem; flex-shrink: 0;
}
.c-item strong { display: block; color: var(--gray-900); font-size: 0.9rem; margin-bottom: 2px; }
.c-item a, .c-item span { color: var(--gray-500); font-size: 0.9rem; }
.c-item a:hover { color: var(--emerald); }

.contact-form input,
.contact-form textarea {
    width: 100%; padding: 14px 18px; border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm); font-family: var(--font); font-size: 0.92rem;
    margin-bottom: 14px; transition: var(--transition); background: var(--gray-50);
    color: var(--gray-800);
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none; border-color: var(--emerald); background: var(--white);
    box-shadow: 0 0 0 3px rgba(13,150,104,0.1);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form .btn-primary { width: 100%; }

/* ===== Footer ===== */
.footer { background: var(--navy); padding: 60px 0 0; }
.footer-inner {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px;
    padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo { height: 44px; margin-bottom: 14px; }
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 0.9rem; }
.footer-col h4 { color: var(--white); font-size: 0.9rem; font-weight: 600; margin-bottom: 16px; }
.footer-col a {
    display: block; color: rgba(255,255,255,0.5); font-size: 0.85rem;
    margin-bottom: 10px; transition: var(--transition);
}
.footer-col a:hover { color: var(--emerald-light); }
.footer-bottom { padding: 20px 0; text-align: center; }
.footer-bottom p { color: rgba(255,255,255,0.3); font-size: 0.8rem; }

/* ===== Scroll Animation ===== */
.fade-up {
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 968px) {
    .nav-hamburger { display: block; }
    .nav-menu {
        position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
        background: var(--navy); flex-direction: column; padding: 80px 28px 28px;
        gap: 18px; transition: right 0.3s ease; box-shadow: -4px 0 24px rgba(0,0,0,0.2);
    }
    .nav-menu.active { right: 0; }
    .nav-menu a { color: rgba(255,255,255,0.85) !important; font-size: 1rem; }
    .lang-btn { color: rgba(255,255,255,0.9) !important; border-color: rgba(255,255,255,0.3) !important; }

    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-content { text-align: center; }
    .hero-desc { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-trust { align-items: center; }
    .hero-visual { max-width: 420px; margin: 0 auto; }
    .hero-float-1 { left: 10px; }
    .hero-float-2 { right: 10px; }

    .about-layout, .platform-layout { grid-template-columns: 1fr; gap: 40px; }
    .about-img-wrap { max-width: 400px; margin: 0 auto; }

    .steps { flex-direction: column; align-items: center; }
    .step-line { width: 2px; height: 32px; margin-top: 0; }

    .services-grid, .features, .reviews { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }

    .contact-layout { grid-template-columns: 1fr; gap: 36px; }
    .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 600px) {
    .about-stats { flex-direction: column; }
    .form-row { grid-template-columns: 1fr; }
    .hero-float { display: none; }
    .platform-imgs { flex-direction: column; align-items: center; }
    .plat-img-2 { margin-top: 0; }
}

/* ===== RTL ===== */
body.rtl .hero-content,
body.rtl .about-content,
body.rtl .platform-content { text-align: right; }

body.rtl .check-list li { padding-left: 0; padding-right: 28px; }
body.rtl .check-list li::before { left: auto; right: 0; }
