/* =====================================================================
 *  isoft.ps  |  تصميم الموقع  |  ISOFT-SITE-V2  |  2026-10
 *  ملف واحد للعربي والإنجليزي — الاتجاه بينقلب من خاصية dir بالـhtml
 * ===================================================================== */

:root {
    --navy: #241551;
    --navy-700: #2f1c69;
    --navy-500: #46307f;
    --teal: #568b99;
    --teal-600: #47767f;
    --teal-100: #e8f1f3;
    --ink: #171a2e;
    --body: #4e5570;
    --muted: #7e85a1;
    --line: #e7e9f2;
    --bg: #ffffff;
    --bg-soft: #f6f7fb;
    --white: #fff;
    --ok: #27a06a;
    --warn: #e0a033;
    --danger: #d9534f;
    --wa: #25d366;
    --r-sm: 10px;
    --r: 16px;
    --r-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(23, 26, 46, .06), 0 4px 14px rgba(23, 26, 46, .05);
    --shadow: 0 10px 30px rgba(36, 21, 81, .09);
    --shadow-lg: 0 30px 70px rgba(20, 12, 48, .22);
    --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--body);
    font-family: "Tajawal", "Inter", -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
    font-size: 16.5px;
    line-height: 1.85;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

html[dir="ltr"] body { font-family: "Inter", -apple-system, "Segoe UI", Arial, sans-serif; line-height: 1.75; }

h1, h2, h3, h4 { color: var(--ink); margin: 0 0 14px; line-height: 1.35; font-weight: 800; }
h1 { font-size: 46px; letter-spacing: -.5px; }
h2 { font-size: 34px; letter-spacing: -.3px; }
h3 { font-size: 19px; }
p { margin: 0 0 16px; }
a { color: var(--navy); text-decoration: none; transition: .18s; }
a:hover { color: var(--teal); }
img { max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.sec { padding: 92px 0; }
.sec.soft { background: var(--bg-soft); }
.sec.tight { padding: 64px 0; }

.center { text-align: center; }

.eyebrow {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 999px;
    background: var(--teal-100);
    color: var(--teal-600);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .04em;
    margin-bottom: 14px;
}

.lead { font-size: 18px; color: var(--body); max-width: 680px; }
.center .lead { margin-inline: auto; }

/* ------------------------------ أزرار ------------------------------ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 14px 26px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: .2s;
    white-space: nowrap;
}

.btn-pri {
    background: var(--navy);
    color: #fff;
    box-shadow: 0 10px 24px rgba(36, 21, 81, .25);
}

.btn-pri:hover { background: var(--navy-700); color: #fff; transform: translateY(-2px); }

.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-600); color: #fff; transform: translateY(-2px); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }

.btn-light { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .25); }
.btn-light:hover { background: rgba(255, 255, 255, .2); color: #fff; }

.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #1eb256; color: #fff; }

.btn-sm { padding: 10px 18px; font-size: 14.5px; border-radius: 10px; }

/* ------------------------------ الهيدر ------------------------------ */

.hdr {
    position: fixed;
    inset-inline: 0;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: .25s;
}

.hdr.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(23, 26, 46, .06); }

.hdr .bar { display: flex; align-items: center; gap: 26px; height: 74px; }
.hdr .logo img { height: 38px; display: block; }

.hdr nav { display: flex; gap: 4px; margin-inline-start: auto; }

.hdr nav a {
    padding: 8px 14px;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 600;
    color: var(--body);
}

.hdr nav a:hover { background: var(--bg-soft); color: var(--navy); }

.hdr .actions { display: flex; align-items: center; gap: 10px; }

.lang-sw {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
    color: var(--body);
}

.lang-sw:hover { border-color: var(--navy); color: var(--navy); }

.burger {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    position: relative;
}

.burger span {
    position: absolute;
    inset-inline: 11px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: .2s;
}

.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 20px; }
.burger span:nth-child(3) { top: 26px; }
.burger.on span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.burger.on span:nth-child(2) { opacity: 0; }
.burger.on span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

.mobile-menu {
    display: none;
    border-top: 1px solid var(--line);
    background: #fff;
    padding: 12px 0 18px;
}

.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 11px 22px; font-weight: 600; color: var(--ink); }
.mobile-menu a:hover { background: var(--bg-soft); }

/* ------------------------------ الهيرو ------------------------------ */

.hero {
    position: relative;
    padding: 150px 0 0;
    background:
        radial-gradient(1100px 520px at 85% -5%, rgba(86, 139, 153, .30), transparent 60%),
        radial-gradient(900px 480px at 10% 10%, rgba(70, 48, 127, .55), transparent 62%),
        linear-gradient(170deg, #241551 0%, #1b1040 58%, #150d33 100%);
    color: #e9e6f5;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: -1px;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--bg));
    pointer-events: none;
}

.hero .grid > * { min-width: 0; }
.plat > * { min-width: 0; }
.contact-grid > * { min-width: 0; }

.hero .grid {
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    gap: 50px;
    align-items: center;
}

.hero h1 { color: #fff; font-size: 44px; margin-bottom: 18px; max-width: 21ch; }
html[dir="ltr"] .hero h1 { max-width: 19ch; }
.hero h1 .hl {
    background: linear-gradient(100deg, #7fd3e4, #9cc6d0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p.lead { color: #bfb8dd; font-size: 18.5px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 15px 6px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    color: #d6d0ee;
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-badge b {
    background: var(--teal);
    color: #fff;
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 12px;
}

.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 20px; }

.hero .mini {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    color: #a79ec9;
    font-size: 14.5px;
    padding-top: 6px;
}

.hero .mini span { display: inline-flex; align-items: center; gap: 7px; }
.hero .mini svg { color: var(--teal); flex: none; }

.hero-visual { position: relative; }

/* شريط الأرقام */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--r);
    overflow: hidden;
    margin-top: 72px;
    position: relative;
    z-index: 3;
}

.stats > div { background: rgba(21, 13, 51, .72); padding: 22px 18px; text-align: center; }
.stats .n { color: #fff; font-size: 30px; font-weight: 800; line-height: 1.2;
             direction: ltr; unicode-bidi: isolate; }
.stats .t { color: #a79ec9; font-size: 14px; }

/* ------------------------------ موكاب المتصفح ------------------------------ */

.mock-browser {
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .14);
}

.mock-browser .chrome {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f1f2f7;
    border-bottom: 1px solid #e3e5ee;
}

.mock-browser .dots { display: flex; gap: 6px; }
.mock-browser .dots i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.mock-browser .dots i:nth-child(1) { background: #ff5f57; }
.mock-browser .dots i:nth-child(2) { background: #ffbd2e; }
.mock-browser .dots i:nth-child(3) { background: #28c840; }

.mock-browser .url {
    flex: 1;
    background: #fff;
    border: 1px solid #e3e5ee;
    border-radius: 7px;
    padding: 4px 12px;
    font-size: 11.5px;
    color: #8a90a8;
    direction: ltr;
    text-align: center;
    font-family: "SF Mono", Menlo, monospace;
}

/* شاشة النظام داخل الموكاب */
.app {
    min-width: 0;
    display: grid;
    grid-template-columns: 54px 1fr;
    background: #f7f8fc;
    font-size: 11px;
    line-height: 1.6;
    color: #4a5068;
    min-height: 420px;
}

.app .rail { background: var(--navy); padding: 12px 0; display: flex; flex-direction: column; gap: 7px; align-items: center; }
.app .rail i {
    width: 32px; height: 30px; border-radius: 8px; display: grid; place-items: center;
    color: #a99fd0; background: transparent;
}
.app .rail i.on { background: rgba(255, 255, 255, .13); color: #fff; }
.app .rail .mark {
    width: 28px; height: 28px; border-radius: 8px; margin-bottom: 8px;
    background: linear-gradient(135deg, var(--teal), #7fb3bf);
    display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 12px;
}

.app .screen { padding: 14px 16px; min-width: 0; overflow: hidden; }

.app .top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.app .top h4 { margin: 0; font-size: 14px; color: #1b2040; }
.app .top .pillbar { margin-inline-start: auto; display: flex; gap: 6px; }
.app .top .pillbar b {
    font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 20px;
    background: #eceefb; color: #5a60a8;
}
.app .top .pillbar b.a { background: var(--navy); color: #fff; }

.app .kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-bottom: 13px; }

.app .kpi {
    background: #fff; border: 1px solid #e9ebf4; border-radius: 10px; padding: 9px 11px;
}
.app .kpi .l { font-size: 9.5px; color: #8990ab; }
.app .kpi .v { font-size: 17px; font-weight: 800; color: #1b2040; line-height: 1.3; }
.app .kpi .d { font-size: 9px; font-weight: 700; }
.app .kpi .d.up { color: var(--ok); }
.app .kpi .d.dn { color: var(--danger); }

.app .row2 { display: grid; grid-template-columns: 1.55fr 1fr; gap: 10px; }

.app .box { background: #fff; border: 1px solid #e9ebf4; border-radius: 10px; padding: 11px 12px; }
.app .box h5 { margin: 0 0 9px; font-size: 11.5px; color: #1b2040; font-weight: 800; }

.app .chart { display: flex; align-items: flex-end; gap: 6px; height: 92px; }
.app .chart i {
    flex: 1; border-radius: 4px 4px 0 0; display: block;
    background: linear-gradient(to top, #c9d6da, var(--teal));
    opacity: .85;
}
.app .chart i.hi { background: linear-gradient(to top, #6a4fb0, var(--navy)); opacity: 1; }

.app table { width: 100%; border-collapse: collapse; font-size: 10.5px; table-layout: fixed; }
.app table td, .app table th { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app table th {
    text-align: start; color: #9aa0bb; font-weight: 700; font-size: 9.5px;
    padding: 5px 6px; border-bottom: 1px solid #eef0f7;
}
.app table td { padding: 6px; border-bottom: 1px solid #f3f4fa; color: #434a68; }
.app table tr:last-child td { border-bottom: 0; }
.app .tag { font-size: 9px; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.app .tag.ok { background: #e6f6ee; color: #1b8a59; }
.app .tag.wait { background: #fff4e3; color: #b57a16; }
.app .tag.road { background: #eaf0fb; color: #3b5ca8; }
.app .tag.back { background: #fdeaea; color: #bf3f3b; }

.app .donut {
    width: 92px; height: 92px; border-radius: 50%; margin: 2px auto 8px;
    background: conic-gradient(var(--navy) 0 62%, var(--teal) 62% 84%, #e9ebf4 84% 100%);
    display: grid; place-items: center;
}
.app .donut div {
    width: 60px; height: 60px; border-radius: 50%; background: #fff;
    display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #1b2040;
}

.app .legend { display: flex; flex-direction: column; gap: 4px; font-size: 9.5px; }
.app .legend span { display: flex; align-items: center; gap: 6px; color: #727a99; }
.app .legend i { width: 8px; height: 8px; border-radius: 2px; display: block; }

/* بطاقات عائمة حوالين الموكاب */
.float-card {
    position: absolute;
    background: #fff;
    border-radius: 13px;
    box-shadow: 0 18px 44px rgba(16, 10, 40, .3);
    padding: 11px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--ink);
    animation: floaty 5s ease-in-out infinite;
}

.float-card .ic {
    width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
    background: var(--teal-100); color: var(--teal-600); flex: none;
}
.float-card b { display: block; font-size: 14px; line-height: 1.3; }
.float-card small { color: var(--muted); font-size: 11.5px; }

.float-card.f1 { inset-inline-start: -34px; top: -36px; }
.float-card.f2 { inset-inline-end: -26px; bottom: -34px; animation-delay: 1.6s; }
.float-card.f2 .ic { background: #e9f7f0; color: var(--ok); }

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

/* ------------------------------ شعارات الزبائن ------------------------------ */

.logos-strip { padding: 44px 0 10px; }
.logos-strip .t { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 20px; }

.logos {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    align-items: center;
}

.logos div {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    height: 86px;
    display: grid;
    place-items: center;
    padding: 12px;
    transition: .2s;
}

.logos div:hover { box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.logos img { max-height: 54px; max-width: 100%; object-fit: contain; transition: .2s; }
.logos div:hover img { transform: scale(1.04); }

/* ------------------------------ المزايا ------------------------------ */

.feat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 44px;
}

.feat {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 28px 26px;
    transition: .22s;
}

.feat:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: #dfe3ef; }

.feat .ic {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(36, 21, 81, .95), rgba(70, 48, 127, .9));
    color: #fff;
    margin-bottom: 16px;
}

.feat:nth-child(2) .ic, .feat:nth-child(4) .ic, .feat:nth-child(6) .ic {
    background: linear-gradient(135deg, var(--teal), #78b0bb);
}

.feat h3 { margin-bottom: 8px; }
.feat p { margin: 0; font-size: 15.5px; }

/* ------------------------------ الواجهات الثلاث ------------------------------ */

.plat { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }

.plat .list { margin-top: 26px; display: flex; flex-direction: column; gap: 16px; }

.plat .list li { display: flex; gap: 13px; align-items: flex-start; }

.plat .list .ck {
    width: 26px; height: 26px; border-radius: 8px; flex: none; margin-top: 3px;
    background: var(--teal-100); color: var(--teal-600); display: grid; place-items: center;
}

.plat .list b { color: var(--ink); display: block; font-size: 16.5px; }
.plat .list span { font-size: 15px; }

/* موكاب الجوال */
.phones { display: flex; justify-content: center; align-items: flex-end; gap: 18px; }

.phone {
    width: 212px;
    flex: none;
    background: #100c24;
    border-radius: 30px;
    padding: 9px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.phone.mid { width: 232px; margin-bottom: 26px; z-index: 2; }
.phone.side { opacity: .96; margin-bottom: 0; }

.phone .notch {
    position: absolute;
    top: 9px; inset-inline-start: 50%; transform: translateX(50%);
    width: 76px; height: 17px; background: #100c24; border-radius: 0 0 11px 11px; z-index: 3;
}

html[dir="ltr"] .phone .notch { transform: translateX(-50%); }

.phone .scr {
    background: #f6f7fb;
    border-radius: 23px;
    overflow: hidden;
    min-height: 410px;
    display: flex;
    flex-direction: column;
}

.ph-top {
    background: linear-gradient(135deg, var(--navy), var(--navy-500));
    color: #fff;
    padding: 26px 14px 14px;
}

.ph-top .r { display: flex; align-items: center; gap: 8px; font-size: 11.5px; }
.ph-top .r .av {
    width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .18);
    display: grid; place-items: center; font-size: 11px; font-weight: 700;
}
.ph-top h6 { margin: 10px 0 2px; font-size: 14.5px; font-weight: 800; }
.ph-top small { opacity: .72; font-size: 10.5px; }

.ph-body { padding: 11px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.ph-kpis { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-top: -24px; }
.ph-kpis div {
    background: #fff; border-radius: 10px; padding: 7px 4px; text-align: center;
    box-shadow: 0 4px 12px rgba(20, 12, 48, .10);
}
.ph-kpis b { display: block; font-size: 14px; color: var(--ink); line-height: 1.3; }
.ph-kpis small { font-size: 8.5px; color: var(--muted); }

.ph-card {
    background: #fff; border: 1px solid #ecedf5; border-radius: 11px; padding: 9px 10px;
    font-size: 10.5px; color: #555c7a;
}
.ph-card .h { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.ph-card .h b { font-size: 11.5px; color: var(--ink); }
.ph-card .h .tag {
    margin-inline-start: auto; font-size: 8.5px; font-weight: 700;
    padding: 1px 7px; border-radius: 20px;
}
.ph-card .tag.ok { background: #e6f6ee; color: #1b8a59; }
.ph-card .tag.road { background: #eaf0fb; color: #3b5ca8; }
.ph-card .tag.wait { background: #fff4e3; color: #b57a16; }
.ph-card .foot { display: flex; gap: 8px; margin-top: 7px; }
.ph-card .foot i {
    flex: 1; text-align: center; font-size: 9px; font-weight: 700; padding: 5px;
    border-radius: 7px; background: var(--bg-soft); color: var(--navy); font-style: normal;
}
.ph-card .foot i.g { background: #e9f7f0; color: #157a4c; }

.ph-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.ph-grid div {
    background: #fff; border: 1px solid #ecedf5; border-radius: 11px;
    padding: 11px 6px; text-align: center; font-size: 9.5px; color: #5a6180; font-weight: 600;
}
.ph-grid div .ic {
    width: 30px; height: 30px; border-radius: 9px; margin: 0 auto 5px;
    display: grid; place-items: center; background: var(--teal-100); color: var(--teal-600);
}
.ph-grid div:nth-child(2n) .ic { background: #efeafb; color: var(--navy-500); }

.ph-track { display: flex; flex-direction: column; gap: 0; padding: 4px 2px; }
.ph-track .st { display: flex; gap: 9px; }
.ph-track .st .dot {
    width: 14px; height: 14px; border-radius: 50%; border: 3px solid #dfe2ee;
    background: #fff; flex: none; margin-top: 3px; position: relative;
}
.ph-track .st.done .dot { border-color: var(--ok); background: var(--ok); }
.ph-track .st.now .dot { border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(86, 139, 153, .18); }
.ph-track .st .line { width: 2px; background: #e6e8f1; margin: 2px auto; flex: 1; min-height: 16px; }
.ph-track .st.done .line { background: var(--ok); }
.ph-track .col { display: flex; flex-direction: column; align-items: center; }
.ph-track .tx b { display: block; font-size: 11px; color: var(--ink); }
.ph-track .tx small { font-size: 9px; color: var(--muted); }
.ph-track .st:not(.done):not(.now) .tx b { color: var(--muted); font-weight: 600; }

.ph-bar {
    margin-top: auto; background: #fff; border-top: 1px solid #ecedf5;
    display: flex; justify-content: space-around; padding: 8px 4px 10px;
}
.ph-bar i {
    width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center;
    color: #b9bed2;
}
.ph-bar i.on { color: var(--navy); background: #efeafb; }

/* شارات المتاجر */
.stores { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

.store-badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 9px 18px 9px 14px; border-radius: 12px;
    background: var(--ink); color: #fff; font-size: 13px;
}
.store-badge b { display: block; font-size: 14.5px; line-height: 1.2; }
.store-badge small { opacity: .7; font-size: 10.5px; }
.store-badge:hover { background: var(--navy); color: #fff; }

/* ------------------------------ خطوات العمل ------------------------------ */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 46px; counter-reset: s; }

.step {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 26px 22px 22px;
}

.step .n {
    width: 40px; height: 40px; border-radius: 12px;
    background: var(--navy); color: #fff;
    display: grid; place-items: center; font-weight: 800; font-size: 16px;
    margin-bottom: 14px;
}

.step:nth-child(2) .n { background: #3a2673; }
.step:nth-child(3) .n { background: var(--teal-600); }
.step:nth-child(4) .n { background: var(--teal); }
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { font-size: 15px; margin: 0; }

/* ------------------------------ الأسعار ------------------------------ */

.toggle {
    display: inline-flex;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 5px;
    margin: 26px auto 10px;
    gap: 4px;
}

.toggle button {
    border: 0; background: transparent; cursor: pointer;
    padding: 9px 24px; border-radius: 999px;
    font-family: inherit; font-size: 15px; font-weight: 700; color: var(--body);
}

.toggle button.on { background: var(--navy); color: #fff; }
.toggle .save { font-size: 11.5px; color: var(--ok); font-weight: 700; }

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 30px; align-items: start; }

.plan {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 28px 24px;
    position: relative;
    transition: .2s;
}

.plan:hover { box-shadow: var(--shadow); transform: translateY(-4px); }

.plan.best { border-color: var(--navy); box-shadow: var(--shadow); }

.plan.best .ribbon {
    position: absolute; top: -13px; inset-inline-start: 50%; transform: translateX(50%);
    background: var(--navy); color: #fff; font-size: 12px; font-weight: 700;
    padding: 4px 16px; border-radius: 999px; white-space: nowrap;
}

html[dir="ltr"] .plan.best .ribbon { transform: translateX(-50%); }

.plan h3 { font-size: 18px; margin-bottom: 4px; }
.plan .price { font-size: 34px; font-weight: 800; color: var(--ink); line-height: 1.25; }
.plan .price small { font-size: 14px; font-weight: 600; color: var(--muted); }
.plan .inc { color: var(--teal-600); font-weight: 700; font-size: 14.5px; margin-bottom: 16px; }

.plan ul { display: flex; flex-direction: column; gap: 9px; margin: 16px 0 22px; }
.plan ul li { display: flex; gap: 9px; font-size: 14.5px; align-items: flex-start; }
.plan ul svg { color: var(--teal); flex: none; margin-top: 5px; }
.plan .btn { width: 100%; }

.plans-note { text-align: center; margin-top: 26px; color: var(--muted); font-size: 15px; }

/* ------------------------------ الأسئلة ------------------------------ */

.faq { max-width: 820px; margin: 40px auto 0; }

.faq details {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r);
    margin-bottom: 12px;
    overflow: hidden;
}

.faq details[open] { box-shadow: var(--shadow-sm); border-color: #dfe3ef; }

.faq summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 22px;
    font-weight: 700;
    color: var(--ink);
    font-size: 17px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
    content: "+";
    margin-inline-start: auto;
    font-size: 22px;
    color: var(--teal);
    font-weight: 400;
    line-height: 1;
}

.faq details[open] summary::after { content: "−"; }
.faq .ans { padding: 0 22px 20px; font-size: 15.5px; }

/* ------------------------------ تواصل ------------------------------ */

.contact-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 44px; align-items: start; }

.contact-side .ways { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }

.way {
    display: flex; align-items: center; gap: 14px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r);
    padding: 15px 18px; transition: .2s;
}

.way:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }

.way .ic {
    width: 44px; height: 44px; border-radius: 12px; flex: none;
    display: grid; place-items: center; background: var(--teal-100); color: var(--teal-600);
}

.way.wa .ic { background: #e7faee; color: #1aa14b; }
.way b { display: block; color: var(--ink); font-size: 15.5px; line-height: 1.4; }
.way small { color: var(--muted); font-size: 13px; }

.form-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 30px 28px;
    box-shadow: var(--shadow-sm);
}

.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

.fld { margin-bottom: 16px; }
.fld label { display: block; font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 7px; }

.fld input, .fld textarea, .fld select {
    width: 100%;
    padding: 13px 15px;
    border: 1.5px solid #e2e5f0;
    border-radius: 11px;
    font-family: inherit;
    font-size: 15.5px;
    color: var(--ink);
    background: #fff;
    outline: none;
    transition: .18s;
}

.fld input:focus, .fld textarea:focus, .fld select:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(86, 139, 153, .13);
}

.fld textarea { min-height: 112px; resize: vertical; line-height: 1.8; }
/* فخّ الروبوتات: مخفي تماماً عن الزائر (كان يظهر كمربّع لأن المُحدِّد كان داخل .fld فقط) */
.hp {
    position: absolute !important;
    inset-inline-start: -9999px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.form-card .btn { width: 100%; margin-top: 4px; }
.form-card .tiny { text-align: center; color: var(--muted); font-size: 13px; margin: 12px 0 0; }

/* ------------------------------ شريط الدعوة ------------------------------ */

.cta-band {
    background:
        radial-gradient(700px 300px at 80% 0%, rgba(86, 139, 153, .4), transparent 60%),
        linear-gradient(120deg, var(--navy), #2e1c6b);
    border-radius: var(--r-lg);
    padding: 52px 46px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: #c4bce2; margin: 0; }
.cta-band .btns { margin-inline-start: auto; display: flex; gap: 12px; flex-wrap: wrap; }

/* ------------------------------ الفوتر ------------------------------ */

.ftr { background: #140d31; color: #9d95c0; padding: 62px 0 26px; font-size: 15px; }
.ftr a { color: #c3bcdd; }
.ftr a:hover { color: #fff; }

.ftr .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.5fr; gap: 34px; }
.ftr h4 { color: #fff; font-size: 15.5px; margin-bottom: 16px; }
.ftr .logo img { height: 40px; margin-bottom: 14px; }
.ftr ul { display: flex; flex-direction: column; gap: 9px; }

.news { display: flex; gap: 8px; margin-top: 12px; }

.news input {
    flex: 1; min-width: 0; padding: 12px 14px; border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06);
    color: #fff; font-family: inherit; font-size: 14.5px; outline: none;
}

.news input::placeholder { color: #8d85b2; }
.news input:focus { border-color: var(--teal); }

.ftr .bottom {
    margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .09);
    display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; color: #8880ad;
}

.ftr .bottom .r { margin-inline-start: auto; display: flex; gap: 18px; }

/* ------------------------------ زر الواتساب العائم ------------------------------ */

.wa-float {
    position: fixed;
    inset-inline-end: 22px;
    bottom: 22px;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 11px;
    background: var(--wa);
    color: #fff;
    padding: 13px 20px 13px 16px;
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(37, 211, 102, .42);
    font-weight: 700;
    font-size: 15px;
}

.wa-float:hover { background: #1eb256; color: #fff; transform: translateY(-3px); }
.wa-float svg { flex: none; }

.wa-float::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 999px;
    border: 2px solid rgba(37, 211, 102, .55);
    animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: .8; }
    70% { transform: scale(1.22); opacity: 0; }
    100% { opacity: 0; }
}

/* ------------------------------ ظهور تدريجي ------------------------------ */

.rise { opacity: 1; }
.js .rise { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .rise.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .js .rise { opacity: 1; transform: none; transition: none; }
    .float-card, .wa-float::before { animation: none; }
    html { scroll-behavior: auto; }
}

/* ------------------------------ استجابة ------------------------------ */

@media (max-width: 1080px) {
    h1, .hero h1 { font-size: 40px; }
    h2 { font-size: 30px; }
    .hero .grid > * { min-width: 0; }
.plat > * { min-width: 0; }
.contact-grid > * { min-width: 0; }

.hero .grid { grid-template-columns: 1fr; gap: 44px; }
    .hero-visual { max-width: 620px; margin: 0 auto; }
    .float-card.f1 { inset-inline-start: -8px; top: -20px; }
    .float-card.f2 { inset-inline-end: -8px; bottom: -20px; }
    .feat-grid { grid-template-columns: repeat(2, 1fr); }
    .plans { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .plat { grid-template-columns: 1fr; gap: 40px; }
    .contact-grid { grid-template-columns: 1fr; gap: 34px; }
    .logos { grid-template-columns: repeat(4, 1fr); }
    .ftr .cols { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 760px) {
    body { font-size: 16px; }
    .sec { padding: 64px 0; }
    h1, .hero h1 { font-size: 32px; }
    h2 { font-size: 26px; }
    .hero { padding-top: 116px; }
    .hdr nav, .hdr .actions .btn, .hdr .actions .lang-sw { display: none; }
    .hdr .actions { margin-inline-start: auto; }
    .burger { display: block; }
    .stats { grid-template-columns: repeat(2, 1fr); margin-top: 48px; }
    .feat-grid, .plans, .steps { grid-template-columns: 1fr; }
    .logos { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .logos div { height: 70px; }
    .f-row { grid-template-columns: 1fr; }
    .cta-band { padding: 34px 24px; }
    .cta-band .btns { margin-inline-start: 0; width: 100%; }
    .cta-band .btns .btn { flex: 1; }
    .phones { gap: 0; }
    .phone.side { display: none; }
    .phone.mid { width: 258px; margin-bottom: 0; }
    .ftr .cols { grid-template-columns: 1fr; }
    .wa-float { padding: 13px; inset-inline-end: 14px; bottom: 14px; }
    .wa-float span { display: none; }
    .float-card { display: none; }
    .app { min-height: 340px; }
    .app .kpis { grid-template-columns: repeat(2, 1fr); }
    .app .row2 { grid-template-columns: 1fr; }
    .app table th:nth-child(3), .app table td:nth-child(3),
    .app table th:nth-child(4), .app table td:nth-child(4) { display: none; }
    .hero .grid { gap: 34px; }
    .mock-browser { border-radius: 12px; }
}

/* ------------------------------ صفحات نصية (الخصوصية…) ------------------------------ */

.page-head {
    padding: 132px 0 44px;
    background:
        radial-gradient(800px 360px at 80% 0%, rgba(86, 139, 153, .28), transparent 60%),
        linear-gradient(160deg, #241551, #1b1040);
    color: #cdc6e6;
}

.page-head h1 { color: #fff; font-size: 38px; margin-bottom: 8px; }
.page-head p { margin: 0; color: #a79ec9; font-size: 16px; }

.legal { max-width: 860px; margin: 0 auto; padding: 56px 22px 90px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; }
.legal h2:first-child { margin-top: 0; }
.legal p { margin: 0 0 14px; }
.legal ul { list-style: none; margin: 0 0 18px; padding: 0; }

.legal ul li {
    position: relative;
    padding-inline-start: 22px;
    margin-bottom: 9px;
}

.legal ul li::before {
    content: "";
    position: absolute;
    inset-inline-start: 4px;
    top: 13px;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--teal);
}

.legal .upd {
    display: inline-block;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 26px;
}

/* =====================================================================
 *  ISOFT-SITE-V3 — حركة وأقسام جديدة
 * ===================================================================== */

/* ------------------------------ أضواء الهيرو ------------------------------ */

.aurora {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .55;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}

.aurora.a1 { width: 520px; height: 520px; background: #4a2f9e; top: -140px; inset-inline-start: -120px;
             animation: drift1 22s ease-in-out infinite; }
.aurora.a2 { width: 460px; height: 460px; background: #3e7f8f; top: 120px; inset-inline-end: -140px;
             animation: drift2 26s ease-in-out infinite; }
.aurora.a3 { width: 380px; height: 380px; background: #6a4bc4; bottom: -160px; inset-inline-start: 38%;
             opacity: .38; animation: drift3 30s ease-in-out infinite; }

@keyframes drift1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(70px, 50px) scale(1.12); }
}
@keyframes drift2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-60px, 70px) scale(1.08); }
}
@keyframes drift3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(40px, -60px) scale(1.15); }
}

.hero-lines {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(900px 540px at 50% 18%, #000 20%, transparent 78%);
    mask-image: radial-gradient(900px 540px at 50% 18%, #000 20%, transparent 78%);
}

.hero .wrap { position: relative; z-index: 2; }

.hero-copy > * { animation: fadeUp .8s cubic-bezier(.2, .7, .3, 1) both; }
.hero-copy > *:nth-child(1) { animation-delay: .05s; }
.hero-copy > *:nth-child(2) { animation-delay: .14s; }
.hero-copy > *:nth-child(3) { animation-delay: .23s; }
.hero-copy > *:nth-child(4) { animation-delay: .32s; }
.hero-copy > *:nth-child(5) { animation-delay: .41s; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: none; }
}

.hero h1 .hl {
    background: linear-gradient(100deg, #7fd3e4 10%, #c9b6ff 45%, #7fd3e4 90%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer 7s linear infinite;
}

@keyframes shimmer {
    0%   { background-position: 0% 50%; }
    100% { background-position: 220% 50%; }
}

/* ------------------------------ اللوحة: ميلان خفيف ------------------------------ */

.hero-visual { perspective: 1400px; }

.mock-browser {
    transform-style: preserve-3d;
    transition: transform .35s cubic-bezier(.2, .7, .3, 1);
    animation: fadeUp 1s cubic-bezier(.2, .7, .3, 1) .2s both;
}

/* أعمدة الرسم البياني تكبر عند التحميل */
.app .chart i { height: var(--h); transform-origin: bottom; animation: grow 1s cubic-bezier(.2, .8, .3, 1) both; }
.app .chart i:nth-child(1)  { animation-delay: .35s; }
.app .chart i:nth-child(2)  { animation-delay: .40s; }
.app .chart i:nth-child(3)  { animation-delay: .45s; }
.app .chart i:nth-child(4)  { animation-delay: .50s; }
.app .chart i:nth-child(5)  { animation-delay: .55s; }
.app .chart i:nth-child(6)  { animation-delay: .60s; }
.app .chart i:nth-child(7)  { animation-delay: .65s; }
.app .chart i:nth-child(8)  { animation-delay: .70s; }
.app .chart i:nth-child(9)  { animation-delay: .75s; }
.app .chart i:nth-child(10) { animation-delay: .80s; }
.app .chart i:nth-child(11) { animation-delay: .85s; }
.app .chart i:nth-child(12) { animation-delay: .90s; }

@keyframes grow {
    from { transform: scaleY(.06); opacity: .25; }
    to   { transform: none; opacity: .85; }
}

/* لقطة التطبيق الحقيقية بجانب اللوحة */
.hero-phone {
    position: absolute;
    inset-inline-end: -54px;
    bottom: -38px;
    width: 150px;
    border-radius: 22px;
    padding: 6px;
    background: linear-gradient(160deg, #2b2447, #14102c);
    box-shadow: 0 26px 60px rgba(10, 6, 28, .55);
    z-index: 4;
    animation: fadeUp 1s cubic-bezier(.2, .7, .3, 1) .45s both, floaty 6s ease-in-out 1.4s infinite;
}

.hero-phone img { display: block; width: 100%; border-radius: 17px; }

/* ------------------------------ شريط الشعارات المتحرك ------------------------------ */

.logos-strip { padding: 46px 0 14px; overflow: hidden; }

.marquee {
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee .track {
    display: flex;
    gap: 14px;
    width: max-content;
    animation: slide 46s linear infinite;
}

.marquee:hover .track { animation-play-state: paused; }

@keyframes slide {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

html[dir="rtl"] .marquee .track { animation-name: slideRtl; }

@keyframes slideRtl {
    from { transform: translateX(0); }
    to   { transform: translateX(50%); }
}

.logo-chip {
    flex: 0 0 auto;
    width: 162px;
    height: 84px;
    border: 1px solid var(--line);
    border-radius: 14px;
    display: grid;
    place-items: center;
    padding: 12px;
}

.logo-chip img { max-height: 50px; max-width: 100%; object-fit: contain; }

/* ------------------------------ لقطات التطبيق ------------------------------ */

.shots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.shot { margin: 0; text-align: center; }

.shot .dev {
    border-radius: 26px;
    padding: 8px;
    background: linear-gradient(165deg, #30294f, #15102e);
    box-shadow: 0 20px 44px rgba(20, 13, 46, .22);
    transition: transform .3s cubic-bezier(.2, .7, .3, 1), box-shadow .3s;
}

.shot:hover .dev { transform: translateY(-10px); box-shadow: 0 32px 64px rgba(20, 13, 46, .3); }
.shot .dev img { display: block; width: 100%; border-radius: 19px; }

.shot figcaption { margin-top: 16px; }
.shot figcaption b { display: block; color: var(--ink); font-size: 16.5px; margin-bottom: 4px; }
.shot figcaption span { font-size: 14.5px; color: var(--body); display: block; line-height: 1.7; }

/* الأدوار */
.roles-wrap {
    margin-top: 54px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 30px 28px;
    box-shadow: var(--shadow-sm);
}

.roles-t { text-align: center; font-size: 19px; margin-bottom: 22px; }

.roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.role { display: flex; gap: 12px; align-items: flex-start; }

.role .ic {
    width: 42px; height: 42px; border-radius: 12px; flex: none;
    display: grid; place-items: center;
    background: var(--teal-100); color: var(--teal-600);
    transition: .25s;
}

.role:hover .ic { background: var(--navy); color: #fff; transform: rotate(-6deg) scale(1.06); }
.role b { display: block; color: var(--ink); font-size: 16px; }
.role span { font-size: 14px; line-height: 1.7; }

/* ------------------------------ التخصيص والعلامة البيضاء ------------------------------ */

.brand-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 40px 0 10px;
}

.brand-chip {
    width: 56px; height: 56px; border-radius: 17px;
    display: grid; place-items: center; color: #fff;
    box-shadow: 0 10px 22px rgba(20, 13, 46, .18);
    animation: pop .6s cubic-bezier(.2, 1.4, .4, 1) both;
}

.brand-row .brand-chip:nth-child(1) { animation-delay: .05s; }
.brand-row .brand-chip:nth-child(2) { animation-delay: .12s; }
.brand-row .brand-chip:nth-child(3) { animation-delay: .19s; }
.brand-row .brand-chip:nth-child(4) { animation-delay: .26s; }
.brand-row .brand-chip:nth-child(5) { animation-delay: .33s; }
.brand-row .brand-chip:nth-child(6) { animation-delay: .40s; }

@keyframes pop {
    from { opacity: 0; transform: scale(.6) translateY(10px); }
    to   { opacity: 1; transform: none; }
}

.brand-note {
    font-size: 15px;
    color: var(--muted);
    padding-inline-start: 8px;
}

.wl-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 34px; }

.wl-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 30px 28px;
    transition: .25s;
}

.wl-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }

.wl-card h3 { display: flex; align-items: center; gap: 11px; font-size: 19px; margin-bottom: 18px; }

.wl-card h3 .ic {
    width: 42px; height: 42px; border-radius: 12px; flex: none;
    display: grid; place-items: center;
    background: var(--teal-100); color: var(--teal-600);
}

.wl-card ul { display: flex; flex-direction: column; gap: 12px; }
.wl-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; }
.wl-card li svg { color: var(--teal); flex: none; margin-top: 5px; }

.wl-card.accent {
    background: linear-gradient(165deg, #241551, #2d1c63);
    border-color: transparent;
    color: #c6bee4;
}

.wl-card.accent h3 { color: #fff; }
.wl-card.accent h3 .ic { background: rgba(255, 255, 255, .12); color: #9fd7e4; }
.wl-card.accent li svg { color: #7fd3e4; }

/* ------------------------------ لمعة الأزرار ------------------------------ */

.btn.shine { position: relative; overflow: hidden; }

.btn.shine::after {
    content: "";
    position: absolute;
    top: 0;
    inset-inline-start: -130%;
    width: 60%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .34), transparent);
    transform: skewX(-18deg);
}

.btn.shine:hover::after { animation: sweep .85s ease; }

@keyframes sweep {
    from { inset-inline-start: -130%; }
    to   { inset-inline-start: 130%; }
}

/* ------------------------------ ظهور متدرّج ------------------------------ */

.js .stagger .rise:nth-child(1) { transition-delay: .04s; }
.js .stagger .rise:nth-child(2) { transition-delay: .10s; }
.js .stagger .rise:nth-child(3) { transition-delay: .16s; }
.js .stagger .rise:nth-child(4) { transition-delay: .22s; }
.js .stagger .rise:nth-child(5) { transition-delay: .28s; }
.js .stagger .rise:nth-child(6) { transition-delay: .34s; }
.js .stagger .rise:nth-child(7) { transition-delay: .40s; }
.js .stagger .rise:nth-child(8) { transition-delay: .46s; }

.cta-band { position: relative; overflow: hidden; }
.cta-band > div { position: relative; z-index: 2; }
.cta-band .aurora.a1 { width: 360px; height: 360px; background: #4e8fa0; opacity: .5; top: -120px; }

/* ------------------------------ استجابة V3 ------------------------------ */

@media (max-width: 1080px) {
    .shots { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .roles { grid-template-columns: repeat(2, 1fr); }
    .wl-cols { grid-template-columns: 1fr; }
    .hero-phone { width: 124px; inset-inline-end: -20px; bottom: -26px; }
}

@media (max-width: 760px) {
    .shots { grid-template-columns: 1fr 1fr; gap: 14px; }
    .shot figcaption b { font-size: 14.5px; }
    .shot figcaption span { font-size: 13px; }
    .roles { grid-template-columns: 1fr; }
    .roles-wrap { padding: 22px 18px; }
    .hero-phone { display: none; }
    .aurora { filter: blur(54px); opacity: .45; }
    .logo-chip { width: 128px; height: 70px; }
    .brand-chip { width: 46px; height: 46px; border-radius: 14px; }
    .brand-note { width: 100%; text-align: center; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .aurora, .marquee .track, .hero h1 .hl, .hero-phone,
    .mock-browser, .hero-copy > *, .app .chart i, .brand-chip { animation: none !important; }
    .app .chart i { height: var(--h); opacity: .85; transform: none; }
    .btn.shine::after { display: none; }
}

/* =====================================================================
 *  ISOFT-SITE-V4 — هيرو بلقطة حقيقية + قسم لوحة الويب + حركة إضافية
 * ===================================================================== */

.hero { padding-bottom: 0; }

.hero-copy {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 { max-width: none; font-size: 48px; }
html[dir="ltr"] .hero h1 { max-width: none; }
.hero .lead { margin-inline: auto; }
.hero .cta { justify-content: center; }
.hero .mini { justify-content: center; row-gap: 10px; }

.hero-visual {
    position: relative;
    max-width: 1020px;
    margin: 64px auto 0;
    padding-bottom: 54px;
    perspective: 1600px;
}

.mock-browser .shot-web {
    display: block;
    width: 100%;
    height: auto;
}

.hero-cap {
    text-align: center;
    color: #9a91c2;
    font-size: 13.5px;
    margin: 6px auto 0;
    letter-spacing: .2px;
}

.hero-phone { inset-inline-end: -26px; bottom: 0; width: 152px; }

.float-card.f1 { inset-inline-start: 46px; top: -28px; }
.float-card.f2 { inset-inline-start: 70px; bottom: -26px; top: auto; animation-delay: 1.4s; }

.hero .stats { margin-top: 64px; }

/* ------------------------------ قسم لوحة الويب ------------------------------ */

.web-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 46px;
}

.web-shot { margin: 0; }

.mini-browser {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .3s cubic-bezier(.2, .7, .3, 1), box-shadow .3s;
}

.web-shot:hover .mini-browser { transform: translateY(-8px); box-shadow: var(--shadow); }

.mini-browser .chrome {
    display: flex;
    align-items: center;
    padding: 9px 12px;
    background: #f2f3f8;
    border-bottom: 1px solid #e6e8f1;
}

.mini-browser .dots { display: flex; gap: 5px; }
.mini-browser .dots i { width: 8px; height: 8px; border-radius: 50%; display: block; }
.mini-browser .dots i:nth-child(1) { background: #ff5f57; }
.mini-browser .dots i:nth-child(2) { background: #ffbd2e; }
.mini-browser .dots i:nth-child(3) { background: #28c840; }

.mini-browser img { display: block; width: 100%; height: auto; }

.web-shot figcaption { margin-top: 15px; text-align: center; }
.web-shot figcaption b { display: block; color: var(--ink); font-size: 16.5px; margin-bottom: 4px; }
.web-shot figcaption span { font-size: 14.5px; line-height: 1.75; }

/* ------------------------------ حركة إضافية ------------------------------ */

/* خط متدرّج يرسم نفسه تحت العناوين */
.sec .center h2 { position: relative; padding-bottom: 16px; }

.sec .center h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    inset-inline-start: 50%;
    transform: translateX(50%) scaleX(0);
    width: 76px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--navy), var(--teal));
    transform-origin: center;
    transition: transform .7s cubic-bezier(.2, .8, .3, 1) .15s;
}

html[dir="ltr"] .sec .center h2::after { transform: translateX(-50%) scaleX(0); }
.sec .center h2.in::after { transform: translateX(50%) scaleX(1); }
html[dir="ltr"] .sec .center h2.in::after { transform: translateX(-50%) scaleX(1); }
.sec .center h2:not(.rise)::after { transform: translateX(50%) scaleX(1); }
html[dir="ltr"] .sec .center h2:not(.rise)::after { transform: translateX(-50%) scaleX(1); }

/* نبضة حول شارة "جديد" */
.hero-badge b { position: relative; }

.hero-badge b::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 999px;
    border: 1px solid rgba(86, 139, 153, .7);
    animation: pulse 2.6s ease-out infinite;
}

/* أيقونات المزايا تتحرّك عند المرور */
.feat .ic { transition: transform .35s cubic-bezier(.2, 1.3, .4, 1), box-shadow .3s; }
.feat:hover .ic { transform: translateY(-4px) rotate(-7deg) scale(1.07); box-shadow: 0 12px 24px rgba(36, 21, 81, .22); }

/* بطاقات الخطوات: رقم يكبر */
.step .n { transition: transform .3s cubic-bezier(.2, 1.3, .4, 1); }
.step:hover .n { transform: scale(1.12) rotate(-6deg); }
.step { transition: transform .25s, box-shadow .25s; }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

/* مؤشّر التمرير أسفل الهيرو */
.scroll-hint {
    position: absolute;
    inset-inline: 0;
    bottom: 18px;
    display: flex;
    justify-content: center;
    pointer-events: none;
    z-index: 3;
}

.scroll-hint span {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, .28);
    border-radius: 16px;
    position: relative;
}

.scroll-hint span::after {
    content: "";
    position: absolute;
    top: 8px;
    inset-inline-start: 50%;
    margin-inline-start: -2px;
    width: 4px;
    height: 7px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .6);
    animation: scrollDot 1.9s ease-in-out infinite;
}

@keyframes scrollDot {
    0%   { transform: translateY(0); opacity: 0; }
    30%  { opacity: 1; }
    100% { transform: translateY(16px); opacity: 0; }
}

/* ------------------------------ استجابة V4 ------------------------------ */

@media (max-width: 1080px) {
    .hero h1 { font-size: 38px; }
    .web-grid { grid-template-columns: 1fr 1fr; }
    .hero-phone { width: 118px; inset-inline-end: -10px; bottom: 0; }
    .float-card.f2 { display: none; }
}

@media (max-width: 760px) {
    .hero h1 { font-size: 30px; }
    .hero-visual { margin-top: 36px; }
    .web-grid { grid-template-columns: 1fr; gap: 26px; }
    .hero-cap { font-size: 12.5px; }
    .scroll-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-hint span::after, .hero-badge b::after { animation: none; }
    .sec .center h2::after { transition: none; transform: translateX(50%) scaleX(1); }
}

/* =====================================================================
 *  بطاقات الشركات — ISOFT-LOGO-V1
 * ===================================================================== */

.client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
    gap: 22px;
    margin-top: 48px;
}

.client-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .28s cubic-bezier(.2, .7, .3, 1), box-shadow .28s, border-color .28s;
    position: relative;
}

.client-card::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--navy), var(--teal));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .35s cubic-bezier(.2, .8, .3, 1);
}

.client-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 44px rgba(36, 21, 81, .14);
    border-color: #dfe3ef;
}

.client-card:hover::after { transform: scaleX(1); }

.client-card .logo-wrap {
    height: 172px;
    display: grid;
    place-items: center;
    padding: 26px 24px;
    border-bottom: 1px solid var(--line);
}

.client-card .logo-wrap img {
    max-height: 104px;
    max-width: 100%;
    object-fit: contain;
    transition: transform .3s cubic-bezier(.2, .8, .3, 1);
}

.client-card:hover .logo-wrap img { transform: scale(1.05); }

.client-card .client-name {
    padding: 16px 14px;
    text-align: center;
    font-weight: 700;
    font-size: 16.5px;
    color: var(--ink);
    background: #fff;
}

/* شريط الشعارات العلوي: أكبر قليلاً */
.logo-chip { width: 196px; height: 104px; border-radius: 16px; padding: 16px; }
.logo-chip img { max-height: 64px; }

@media (max-width: 1080px) {
    .client-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
    .client-card .logo-wrap { height: 150px; }
    .client-card .logo-wrap img { max-height: 88px; }
}

@media (max-width: 760px) {
    .client-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .client-card { border-radius: 16px; }
    .client-card .logo-wrap { height: 118px; padding: 16px; }
    .client-card .logo-wrap img { max-height: 70px; }
    .client-card .client-name { font-size: 14px; padding: 12px 8px; }
    .logo-chip { width: 150px; height: 82px; padding: 12px; }
    .logo-chip img { max-height: 50px; }
}
