/* ==========================================================================
   Leads-Deals — public marketing theme (Storm Apps)
   A fresh, modern SaaS design. Bilingual (RTL default / LTR). Self-contained;
   only relies on Bootstrap grid + Font Awesome 5 + Cairo font.
   ========================================================================== */

:root {
    --ld-emerald: #10b981;
    --ld-emerald-600: #059669;
    --ld-emerald-700: #047857;
    --ld-teal: #14b8a6;
    --ld-ink: #0b1220;
    --ld-ink-2: #111a2e;
    --ld-slate: #1e293b;
    --ld-muted: #64748b;
    --ld-line: #e6ebf2;
    --ld-bg: #ffffff;
    --ld-bg-soft: #f6f9fc;
    --ld-grad: linear-gradient(135deg, #10b981 0%, #0ea5a4 100%);
    --ld-grad-ink: linear-gradient(160deg, #0b1220 0%, #10203a 60%, #0b1220 100%);
    --ld-shadow: 0 18px 45px -22px rgba(15, 23, 42, .35);
    --ld-shadow-sm: 0 6px 18px -10px rgba(15, 23, 42, .25);
    --ld-radius: 20px;
}

* { box-sizing: border-box; }

body {
    font-family: 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--ld-slate);
    background: var(--ld-bg);
    margin: 0;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    /* Bootstrap 4 reboot forces `text-align:left` on body, which broke RTL
       block text (headings/paragraphs). `start` respects dir (right in AR). */
    text-align: start;
}

img { max-width: 100%; }
a { text-decoration: none; }
.ld-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- buttons ---------- */
.ld-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 26px; border-radius: 999px; font-weight: 800; font-size: .98rem;
    border: none; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .2s;
    background: var(--ld-grad); color: #fff !important;
    box-shadow: 0 14px 30px -12px rgba(16, 185, 129, .65);
}
.ld-btn:hover { transform: translateY(-2px); box-shadow: 0 20px 38px -14px rgba(16, 185, 129, .8); color: #fff; }
.ld-btn-ghost {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 13px 24px; border-radius: 999px; font-weight: 800; font-size: .98rem;
    background: rgba(255, 255, 255, .08); color: #e6ecf5 !important;
    border: 1px solid rgba(255, 255, 255, .22); transition: .2s;
}
.ld-btn-ghost:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.ld-btn-dark {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 11px 20px; border-radius: 999px; font-weight: 800; font-size: .9rem;
    background: var(--ld-ink); color: #fff !important; transition: .2s;
}
.ld-btn-dark:hover { background: var(--ld-emerald-700); transform: translateY(-1px); }

/* ---------- section scaffolding ---------- */
.ld-section { padding: 96px 0; }
.ld-section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.ld-tag {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(16, 185, 129, .1); color: var(--ld-emerald-700);
    font-weight: 800; font-size: .82rem; padding: 7px 16px; border-radius: 999px; margin-bottom: 18px;
}
.ld-title { font-size: clamp(1.8rem, 3.4vw, 2.75rem); font-weight: 900; color: var(--ld-ink); line-height: 1.25; margin: 0 0 14px; }
.ld-sub { font-size: 1.05rem; color: var(--ld-muted); margin: 0; }

/* ---------- navbar ---------- */
.ld-nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .82); backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s;
}
.ld-nav.scrolled { border-color: var(--ld-line); box-shadow: 0 8px 30px -18px rgba(15, 23, 42, .4); }
.ld-nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 16px; }
.ld-brand { display: inline-flex; align-items: center; gap: 10px; }
.ld-brand img { height: 40px; width: auto; max-width: 165px; object-fit: contain; }
.ld-nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.ld-nav-links a { color: var(--ld-slate); font-weight: 700; font-size: .94rem; padding: 8px 14px; border-radius: 10px; transition: .18s; }
.ld-nav-links a:hover { color: var(--ld-emerald-700); background: rgba(16, 185, 129, .08); }
.ld-nav-actions { display: flex; align-items: center; gap: 10px; }
.ld-lang {
    display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: .85rem;
    color: var(--ld-slate); border: 1px solid var(--ld-line); border-radius: 999px; padding: 8px 14px; transition: .2s;
}
.ld-lang:hover { border-color: var(--ld-emerald); color: var(--ld-emerald-700); }
.ld-toggler { display: none; background: none; border: none; font-size: 1.4rem; color: var(--ld-ink); cursor: pointer; }
.ld-mobile { display: none; background: #fff; border-top: 1px solid var(--ld-line); padding: 10px 0; }
.ld-mobile.open { display: block; }
.ld-mobile a { display: block; padding: 12px 22px; font-weight: 700; color: var(--ld-slate); }
.ld-mobile a:hover { color: var(--ld-emerald-700); background: var(--ld-bg-soft); }

/* ---------- hero ---------- */
.ld-hero { position: relative; background: var(--ld-grad-ink); color: #fff; overflow: hidden; padding: 84px 0 120px; }
.ld-hero::before {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 22px 22px; opacity: .6;
}
.ld-hero::after {
    content: ""; position: absolute; top: -140px; inset-inline-start: -120px; width: 460px; height: 460px;
    background: radial-gradient(circle, rgba(16, 185, 129, .35), transparent 62%); filter: blur(10px);
}
.ld-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
/* ================= RTL / LTR text alignment (explicit) =================
   Bootstrap 4's reboot forces `body{text-align:left}`, which breaks RTL for
   every block element. We force all text to follow the document direction
   (`start` = right in Arabic, left in English). Centered section headers keep
   their own `text-align:center`. */
.ld-hero-text, .ld-hero h1, .ld-hero p.lead,
.ld-about-text, .ld-about h2, .ld-about p,
.ld-feat h5, .ld-feat p,
.ld-ind span,
.ld-fg label, .ld-fg input, .ld-fg textarea,
.ld-contact-info h4, .ld-contact-info > p, .ld-ci-txt,
.ld-footer h6, .ld-footer-brand p, .ld-footer-links a, .ld-footer-contact li,
.ld-footer-bottom p { text-align: start; }
/* form fields explicitly follow direction when typing, too */
.ld-fg input, .ld-fg textarea { direction: inherit; }
.ld-hero-badge {
    display: inline-flex; align-items: center; gap: 9px; background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18); padding: 7px 15px; border-radius: 999px; font-size: .85rem; font-weight: 700; margin-bottom: 22px;
}
.ld-hero-badge b { background: var(--ld-emerald); color: #05261c; padding: 2px 10px; border-radius: 999px; font-size: .72rem; }
.ld-hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); font-weight: 900; line-height: 1.15; margin: 0 0 18px; letter-spacing: -.01em; }
.ld-hero h1 .grad { background: linear-gradient(120deg, #34d399, #5eead4); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ld-hero p.lead { font-size: 1.12rem; color: #c3ccdb; max-width: 560px; margin: 0 0 30px; }
.ld-hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.ld-hero-stats { display: flex; gap: 30px; flex-wrap: wrap; }
.ld-hero-stat strong { display: block; font-size: 1.7rem; font-weight: 900; color: #fff; }
.ld-hero-stat span { font-size: .82rem; color: #9fb0c6; }
.ld-hero-sep { width: 1px; background: rgba(255, 255, 255, .16); }

/* hero product mockup */
.ld-mock {
    position: relative; z-index: 2; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 24px; padding: 20px; backdrop-filter: blur(6px); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6);
}
.ld-mock-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.ld-mock-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--ld-grad); display: grid; place-items: center; color: #fff; font-size: 1.1rem; }
.ld-mock-head h4 { margin: 0; font-size: 1rem; color: #fff; font-weight: 800; }
.ld-mock-head span { font-size: .78rem; color: #9fb0c6; }
.ld-mock-stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.ld-mock-stage { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; padding: 12px 6px; text-align: center; }
.ld-mock-stage b { display: block; font-size: 1.3rem; font-weight: 900; }
.ld-mock-stage span { font-size: .72rem; color: #9fb0c6; font-weight: 700; }
.ld-mock-deal { display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, .95); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; }
.ld-mock-deal:last-child { margin-bottom: 0; }
.ld-mock-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.ld-mock-deal .info { flex: 1; min-width: 0; }
.ld-mock-deal .name { font-weight: 800; color: var(--ld-ink); font-size: .9rem; }
.ld-mock-deal .val { font-size: .78rem; color: var(--ld-muted); }
.ld-mock-pill { font-size: .72rem; font-weight: 800; padding: 4px 11px; border-radius: 999px; }
.ld-float {
    position: absolute; z-index: 3; background: #fff; border-radius: 16px; padding: 12px 16px; display: flex; align-items: center; gap: 11px;
    box-shadow: 0 20px 45px -18px rgba(0, 0, 0, .45);
}
.ld-float .fic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 1.1rem; }
.ld-float small { display: block; font-size: .72rem; color: var(--ld-muted); }
.ld-float b { color: var(--ld-ink); font-size: .9rem; }
.ld-float-1 { top: 22px; inset-inline-start: 8px; }
.ld-float-2 { bottom: 26px; inset-inline-end: 8px; }
.ld-hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 2; line-height: 0; }
.ld-hero-wave svg { width: 100%; height: 70px; display: block; }

/* ---------- stats band ---------- */
.ld-band { background: var(--ld-bg-soft); border-block: 1px solid var(--ld-line); }
.ld-band-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; padding: 46px 0; }
.ld-band-card { text-align: center; }
.ld-band-ic { width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 16px; background: #fff; border: 1px solid var(--ld-line); display: grid; place-items: center; color: var(--ld-emerald-600); font-size: 1.35rem; box-shadow: var(--ld-shadow-sm); }
.ld-band-num { font-size: 1.9rem; font-weight: 900; color: var(--ld-ink); }
.ld-band-label { font-size: .9rem; color: var(--ld-muted); font-weight: 700; }

/* ---------- industries ---------- */
.ld-ind-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.ld-ind {
    background: #fff; border: 1px solid var(--ld-line); border-radius: 18px; padding: 24px 12px; text-align: center;
    transition: transform .18s, box-shadow .18s, border-color .18s;
}
.ld-ind:hover { transform: translateY(-4px); box-shadow: var(--ld-shadow); border-color: rgba(16, 185, 129, .4); }
.ld-ind-ic { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 16px; background: linear-gradient(135deg, rgba(16, 185, 129, .12), rgba(20, 184, 166, .12)); color: var(--ld-emerald-700); display: grid; place-items: center; font-size: 1.4rem; }
.ld-ind span { font-weight: 800; font-size: .9rem; color: var(--ld-slate); }

/* ---------- about (split) ---------- */
.ld-about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.ld-about h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 900; color: var(--ld-ink); margin: 0 0 16px; }
.ld-about p { color: var(--ld-muted); font-size: 1.02rem; margin: 0; }
.ld-hl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ld-hl { border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.ld-hl .hic { width: 46px; height: 46px; border-radius: 13px; background: #fff; display: grid; place-items: center; font-size: 1.15rem; }
.ld-hl b { font-weight: 800; font-size: .96rem; color: var(--ld-ink); }

/* ---------- features (bento) ---------- */
.ld-feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ld-feat {
    background: #fff; border: 1px solid var(--ld-line); border-radius: var(--ld-radius); padding: 30px 26px;
    transition: transform .18s, box-shadow .18s; position: relative; overflow: hidden;
}
.ld-feat:hover { transform: translateY(-5px); box-shadow: var(--ld-shadow); }
.ld-feat-ic { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 18px; }
.ld-feat h5 { font-size: 1.12rem; font-weight: 800; color: var(--ld-ink); margin: 0 0 10px; }
.ld-feat p { color: var(--ld-muted); font-size: .95rem; margin: 0; }

/* ---------- contact ---------- */
.ld-contact { background: var(--ld-bg-soft); }
.ld-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: stretch; }
.ld-contact-info { background: var(--ld-grad-ink); color: #fff; border-radius: var(--ld-radius); padding: 40px 34px; display: flex; flex-direction: column; }
.ld-contact-info h4 { font-size: 1.45rem; font-weight: 900; margin: 0 0 8px; }
.ld-contact-info > p { color: #b9c4d6; margin: 0 0 28px; line-height: 1.7; }
/* text on the reading-start edge (right in AR / left in EN), icon on the far side */
.ld-ci { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.ld-ci-ic { width: 46px; height: 46px; border-radius: 12px; background: rgba(255, 255, 255, .1); display: grid; place-items: center; font-size: 1.05rem; flex-shrink: 0; }
.ld-ci-txt { min-width: 0; text-align: start; }
.ld-ci small { display: block; font-size: .78rem; color: #9fb0c6; margin-bottom: 2px; }
.ld-ci a, .ld-ci b { color: #fff; font-weight: 700; font-size: .96rem; word-break: break-word; }
.ld-socials { display: flex; gap: 10px; margin-top: auto; padding-top: 26px; }
.ld-social { width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .1); display: grid; place-items: center; color: #fff; transition: .2s; }
.ld-social:hover { background: var(--ld-emerald); color: #fff; transform: translateY(-2px); }
.ld-form { background: #fff; border: 1px solid var(--ld-line); border-radius: var(--ld-radius); padding: 34px; box-shadow: var(--ld-shadow-sm); display: flex; flex-direction: column; }
.ld-fg { margin-bottom: 18px; }
.ld-fg label { display: block; font-weight: 700; font-size: .9rem; color: var(--ld-slate); margin-bottom: 8px; }
.ld-fg input, .ld-fg textarea {
    display: block; width: 100%; border: 1px solid var(--ld-line); border-radius: 12px; padding: 13px 16px; font-family: inherit; font-size: .95rem;
    color: var(--ld-slate); background: var(--ld-bg-soft); transition: border-color .2s, box-shadow .2s;
}
.ld-fg input::placeholder, .ld-fg textarea::placeholder { color: #94a3b8; }
.ld-fg input:focus, .ld-fg textarea:focus { outline: none; border-color: var(--ld-emerald); box-shadow: 0 0 0 3px rgba(16, 185, 129, .12); background: #fff; }
.ld-fg textarea { min-height: 130px; resize: vertical; }
.ld-form .ld-fg:last-of-type { flex: 1; display: flex; flex-direction: column; }
.ld-form .ld-fg:last-of-type textarea { flex: 1; }
.btn-contact-submit {
    width: 100%; justify-content: center; border: none; cursor: pointer; margin-top: 6px;
    display: inline-flex; align-items: center; gap: 10px; padding: 15px; border-radius: 12px; font-weight: 800; font-size: 1rem;
    background: var(--ld-grad); color: #fff; box-shadow: 0 14px 30px -14px rgba(16, 185, 129, .6); transition: .2s;
}
.btn-contact-submit:hover { transform: translateY(-2px); }

/* ---------- footer ---------- */
.ld-footer { background: var(--ld-ink); color: #cbd5e1; padding: 70px 0 0; }
.ld-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 40px; padding-bottom: 44px; }
.ld-footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.ld-footer-logo img { height: 46px; width: auto; }
.ld-footer-logo span { color: #fff; font-weight: 900; font-size: 1.45rem; letter-spacing: -.01em; }
.ld-footer-brand p { color: #aab6c8; font-size: .92rem; max-width: 340px; line-height: 1.8; }
.ld-footer h6 { color: #fff; font-weight: 800; font-size: 1.05rem; margin: 0 0 18px; }
.ld-footer-links { list-style: none; padding: 0; margin: 0; }
.ld-footer-links li { margin-bottom: 12px; }
.ld-footer-links a { color: #aab6c8; font-size: .95rem; transition: .18s; display: inline-flex; align-items: center; gap: 8px; }
.ld-footer-links a:hover { color: var(--ld-emerald); }
.ld-footer-links a i { color: var(--ld-emerald); font-size: .75rem; }
/* text at the reading edge (aligned under the heading), icon after it */
.ld-footer-contact li { display: flex; align-items: center; justify-content: flex-start; gap: 10px; margin-bottom: 14px; color: #aab6c8; font-size: .93rem; }
.ld-footer-contact i { color: var(--ld-emerald); width: 18px; text-align: center; flex-shrink: 0; }
.ld-footer-contact a { color: #aab6c8; }
.ld-footer-contact a:hover { color: #fff; }
.ld-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0; }
.ld-footer-bottom .inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.ld-footer-bottom p { margin: 0; font-size: .86rem; color: #aab6c8; }
.ld-footer-bottom a { color: var(--ld-emerald); font-weight: 700; }

/* ---------- responsive ---------- */
@media (max-width: 991px) {
    .ld-nav-links { display: none; }
    .ld-toggler { display: block; }
    .ld-hero-grid, .ld-about-grid, .ld-contact-grid, .ld-footer-grid { grid-template-columns: 1fr; }
    .ld-hero { padding-bottom: 90px; }
    .ld-mock { margin-top: 16px; }
    .ld-float-1 { inset-inline-start: 6px; } .ld-float-2 { inset-inline-end: 6px; }
    .ld-ind-grid { grid-template-columns: repeat(3, 1fr); }
    .ld-band-grid { grid-template-columns: repeat(2, 1fr); }
    .ld-feat-grid { grid-template-columns: repeat(2, 1fr); }
    .ld-footer-grid { text-align: start; }
}
@media (max-width: 575px) {
    .ld-section { padding: 64px 0; }
    .ld-ind-grid, .ld-band-grid, .ld-feat-grid, .ld-hl-grid { grid-template-columns: 1fr 1fr; }
    .ld-feat-grid { grid-template-columns: 1fr; }
    .ld-hero-stats { gap: 18px; }
    .ld-float { display: none; }
}
