/* =========================================================================
   نظام ربط المحاسبي — الموقع التعريفي
   الهوية: كحلي + ذهبي (من الشعار). تصميم يبدأ بالجوال ثم يتسع للوحي والحاسوب.
   ========================================================================= */
:root {
    --navy-950: #061428;
    --navy-900: #081a33;
    --navy-800: #0d2547;
    --navy-700: #13325f;
    --navy-600: #1b4380;
    --navy-500: #2a5aa3;
    --navy-100: #e8eef8;
    --navy-50: #f3f6fb;
    --gold-600: #c18a2c;
    --gold-500: #d9a441;
    --gold-400: #e6b65a;
    --gold-100: #faf1dd;
    --ink: #13213b;
    --muted: #5a6478;
    --line: #e2e8f1;
    --bg: #f6f8fc;
    --white: #ffffff;
    --green: #17936a;
    --green-100: #e3f5ee;
    --wa: #1fbe5c;
    --radius: 18px;
    --radius-lg: 26px;
    --shadow-sm: 0 4px 14px -6px rgba(13, 37, 71, .18);
    --shadow: 0 22px 50px -24px rgba(13, 37, 71, .42);
    --shadow-lg: 0 40px 90px -30px rgba(6, 20, 40, .55);
    --font-head: 'Noto Kufi Arabic', 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
    --font-body: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, Arial, sans-serif;
    --container: 1360px;
    --gutter: 18px;
    --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.85; color: var(--ink);
    background: var(--white); direction: rtl; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.45; margin: 0 0 .5em; color: var(--ink); letter-spacing: 0; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 6px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; top: -60px; right: 12px; z-index: 200; background: var(--gold-500); color: var(--navy-900); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 10px; }

/* أيقونات الملف المشترك */
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ic.sm { width: 18px; height: 18px; }
.ic.lg { width: 28px; height: 28px; }

/* ---------- الأزرار ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 11px 22px;
    border-radius: 14px; border: 2px solid transparent; font-weight: 700; font-size: 15.5px; line-height: 1.2;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-gold { background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); color: var(--navy-900); box-shadow: 0 14px 30px -14px rgba(193, 138, 44, .9); position: relative; overflow: hidden; }
.btn-gold::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .55) 45%, transparent 70%); transform: translateX(120%); animation: shine 4.5s ease-in-out infinite; }
.btn-navy { background: var(--navy-800); color: #fff; box-shadow: 0 14px 30px -16px rgba(13, 37, 71, .9); }
.btn-navy:hover { background: var(--navy-700); }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .6); }
.btn-line { background: #fff; border-color: var(--line); color: var(--navy-800); }
.btn-line:hover { border-color: var(--navy-600); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 14px 28px -14px rgba(31, 190, 92, .9); }
.btn-lg { min-height: 56px; padding: 14px 28px; font-size: 17px; border-radius: 16px; }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: 14px; border-radius: 12px; }

/* ---------- الشريط العلوي ---------- */
.topbar { background: var(--navy-950); color: rgba(255, 255, 255, .82); font-size: 13.5px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.topbar .badge-z { display: inline-flex; align-items: center; gap: 7px; color: #fff; font-weight: 600; }
.topbar .badge-z .ic { color: #5fd3a6; width: 17px; height: 17px; }
.topbar .contacts { display: none; gap: 18px; }
.topbar .contacts a { display: inline-flex; align-items: center; gap: 6px; direction: ltr; }
.topbar .contacts a:hover { color: var(--gold-400); }

/* ---------- الترويسة ---------- */
.site-header {
    position: sticky; top: 0; z-index: 90; background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid transparent; transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.scrolled { box-shadow: 0 10px 30px -18px rgba(13, 37, 71, .35); border-bottom-color: var(--line); }
.site-header .container { display: flex; align-items: center; gap: 14px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 18px; color: var(--navy-800); }
.brand img { width: 44px; height: 44px; }
.brand b { color: var(--gold-600); font-weight: 800; }
.brand span { white-space: nowrap; }
.nav { display: none; }
.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.header-actions .call { display: none; }
.burger { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; display: inline-flex; align-items: center; justify-content: center; color: var(--navy-800); }
.header-actions .btn-gold { display: none; }

/* قائمة الجوال المنزلقة */
.drawer { position: fixed; inset: 0; z-index: 150; visibility: hidden; }
.drawer .shade { position: absolute; inset: 0; background: rgba(6, 20, 40, .55); opacity: 0; transition: opacity .3s ease; }
.drawer .panel {
    position: absolute; top: 0; right: 0; height: 100%; width: min(88vw, 360px); background: #fff; padding: 18px;
    transform: translateX(100%); transition: transform .35s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; gap: 6px; overflow-y: auto;
}
.drawer.open { visibility: visible; }
.drawer.open .shade { opacity: 1; }
.drawer.open .panel { transform: none; }
.drawer .panel .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.drawer .panel a.link { padding: 13px 12px; border-radius: 12px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.drawer .panel a.link:hover, .drawer .panel a.link[aria-current="page"] { background: var(--navy-50); color: var(--navy-700); }
.drawer .panel .grp { font-size: 12.5px; color: var(--muted); font-weight: 700; margin: 10px 12px 2px; }
.drawer .panel .btns { margin-top: auto; display: grid; gap: 10px; padding-top: 16px; }

/* ---------- البطل (Hero) ---------- */
.hero {
    position: relative; overflow: hidden; color: #fff; padding: 46px 0 120px;
    background: radial-gradient(1100px 600px at 85% -10%, #1f4c8f 0, transparent 60%),
                radial-gradient(900px 500px at -10% 110%, #173d73 0, transparent 60%),
                linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 55%, var(--navy-950) 100%);
}
.hero::before {
    content: ""; position: absolute; inset: 0; opacity: .5; 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: 44px 44px; mask-image: radial-gradient(ellipse at 60% 30%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 60% 30%, #000 30%, transparent 75%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .45; pointer-events: none; animation: drift 16s ease-in-out infinite alternate; }
.blob.b1 { width: 340px; height: 340px; background: #d9a441; top: -90px; left: 8%; opacity: .22; }
.blob.b2 { width: 420px; height: 420px; background: #2a6fd6; bottom: -160px; right: -60px; animation-duration: 20s; opacity: .35; }
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 700;
    background: rgba(217, 164, 65, .14); color: var(--gold-400); border: 1px solid rgba(217, 164, 65, .35);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #5fd3a6; box-shadow: 0 0 0 0 rgba(95, 211, 166, .6); animation: ping 2s infinite; }
.hero h1 { color: #fff; font-size: clamp(28px, 6.6vw, 54px); font-weight: 800; margin: 18px 0 14px; line-height: 1.4; }
.hero h1 .gold { color: var(--gold-400); background: linear-gradient(90deg, var(--gold-400), #f3d28c, var(--gold-500)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero .lead { font-size: clamp(16px, 2.4vw, 19px); color: rgba(255, 255, 255, .82); max-width: 660px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.hero-ctas .btn { flex: 1 1 auto; }
.chips { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.chip { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, .9); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); padding: 6px 12px; border-radius: 999px; }
.chip .ic { width: 16px; height: 16px; color: #5fd3a6; }

/* أجهزة العرض */
.hero-visual { position: relative; padding: 10px 0 30px; }
.laptop { position: relative; margin: 0 auto; max-width: 720px; }
.laptop .screen { background: #0b1c36; border-radius: 16px 16px 0 0; padding: 10px 10px 0; border: 1px solid rgba(255, 255, 255, .14); box-shadow: var(--shadow-lg); }
.laptop .screen img { border-radius: 8px 8px 0 0; }
.laptop .base { height: 16px; margin: 0 -5%; border-radius: 0 0 18px 18px; background: linear-gradient(#cfd8e6, #8d9bb3); box-shadow: 0 18px 30px -12px rgba(0, 0, 0, .6); }
.laptop .base::after { content: ""; display: block; width: 18%; height: 6px; margin: 0 auto; border-radius: 0 0 8px 8px; background: #7d8aa1; }
.phone { position: relative; width: 100%; max-width: 270px; border-radius: 34px; padding: 9px; background: #0b1527; box-shadow: var(--shadow-lg), inset 0 0 0 2px #26324a; }
.phone::before { content: ""; position: absolute; top: 14px; left: 50%; width: 30%; height: 18px; transform: translateX(-50%); background: #0b1527; border-radius: 0 0 14px 14px; z-index: 2; }
.phone img { border-radius: 26px; width: 100%; }
.hero-visual .phone { position: absolute; width: 30%; max-width: 200px; left: -2%; bottom: -6px; animation: floatY 7s ease-in-out infinite; }
.float-card {
    position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: #fff; color: var(--ink);
    box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .55); font-size: 13px; font-weight: 700; animation: floatY 6s ease-in-out infinite;
}
.float-card small { display: block; color: var(--muted); font-weight: 500; font-size: 11.5px; }
.float-card .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.float-card .ico.g { background: var(--green-100); color: var(--green); }
.float-card .ico.y { background: var(--gold-100); color: var(--gold-600); }
.float-card .ico.b { background: var(--navy-100); color: var(--navy-600); }
.float-card.f1 { top: 6%; right: -2%; animation-delay: -1s; }
.float-card.f2 { bottom: 26%; right: 4%; animation-delay: -3s; }
.float-card.f3 { top: 36%; left: 22%; animation-delay: -4.5s; }

/* شريط الاعتماد (يتداخل مع أسفل البطل) */
.trust { position: relative; z-index: 5; margin-top: -78px; }
.trust-card {
    background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 22px; display: grid; gap: 18px; align-items: center;
    border: 1px solid var(--line);
}
.trust-card .z { display: flex; align-items: center; gap: 14px; }
.trust-card .z img { width: 112px; height: auto; }
.trust-card .z h2 { font-size: 18px; margin: 0; }
.trust-card .z p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.trust-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.trust-points li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; background: var(--navy-50); border-radius: 12px; padding: 10px 12px; }
.trust-points .ic { color: var(--green); width: 18px; height: 18px; }

/* ---------- الأقسام العامة ---------- */
.block { padding: 68px 0; }
.block.alt { background: var(--bg); }
.block.dark { background: linear-gradient(160deg, var(--navy-800), var(--navy-950)); color: #fff; position: relative; overflow: hidden; }
.block.dark h2, .block.dark h3 { color: #fff; }
.section-head { text-align: center; max-width: 820px; margin: 0 auto 38px; }
.section-head .kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-600); font-weight: 800; font-size: 14px; margin-bottom: 8px; }
.block.dark .section-head .kicker { color: var(--gold-400); }
.section-head h2 { font-size: clamp(24px, 4.4vw, 38px); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 16.5px; margin: 0; }
.block.dark .section-head p { color: rgba(255, 255, 255, .75); }

/* القطاعات: تمرير أفقي على الجوال، شبكة على الأكبر */
.sectors { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 16px; margin: 0 calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
.sectors::-webkit-scrollbar { display: none; }
.sector {
    scroll-snap-align: start; position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; display: flex; flex-direction: column; gap: 6px; overflow: hidden;
}
.sector:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.sector .ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--navy-50); color: var(--navy-600); margin-bottom: 8px; transition: background .25s, color .25s; }
.sector:hover .ico { background: var(--navy-800); color: var(--gold-400); }
.sector h3 { font-size: 17.5px; margin: 0; }
.sector p { color: var(--muted); font-size: 14.5px; margin: 0; }
.sector .more { margin-top: auto; padding-top: 10px; color: var(--navy-600); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.sector::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 0; height: 3px; background: linear-gradient(90deg, var(--gold-500), var(--navy-600)); transition: width .35s ease; }
.sector:hover::after { width: 100%; }

/* إطارات الصور */
.frame { position: relative; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line); }
.frame.browser .bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #eef2f8; border-bottom: 1px solid var(--line); }
.frame.browser .bar i { width: 10px; height: 10px; border-radius: 50%; background: #f26b5b; }
.frame.browser .bar i:nth-child(2) { background: #f5bd4f; }
.frame.browser .bar i:nth-child(3) { background: #3dc46b; }
.frame.browser .bar span { margin-inline-start: 10px; flex: 1; max-width: 340px; background: #fff; border-radius: 8px; padding: 2px 10px; font-size: 12px; color: var(--muted); direction: ltr; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame img { width: 100%; cursor: zoom-in; }
.frame figcaption { padding: 10px 14px; font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--line); background: #fff; }
.frame.tall { max-height: 560px; }
.frame.tall .scroller { overflow: hidden; max-height: 520px; }
.frame.tall .scroller img { animation: pan 16s ease-in-out infinite alternate; }

/* جولة المنتج */
.tour { display: grid; gap: 20px; }
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 8px; scroll-snap-type: x proximity; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
    scroll-snap-align: start; flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 14px; border: 1px solid var(--line);
    background: #fff; color: var(--navy-800); font-weight: 700; font-size: 14.5px; white-space: nowrap; transition: all .25s ease; position: relative; overflow: hidden;
}
.tab .ic { color: var(--navy-500); }
.tab[aria-selected="true"] { background: var(--navy-800); color: #fff; border-color: var(--navy-800); box-shadow: 0 14px 26px -16px rgba(13, 37, 71, .9); }
.tab[aria-selected="true"] .ic { color: var(--gold-400); }
.tab .tab-desc { display: none; }
.tab .prog { position: absolute; bottom: 0; right: 0; height: 3px; width: 0; background: var(--gold-500); }
.tab[aria-selected="true"] .prog.run { animation: progress var(--tour-ms, 7000ms) linear forwards; }
.stage { position: relative; }
.panel-shot { display: none; }
.panel-shot.active { display: block; animation: fadeUp .5s ease both; }
.panel-shot .cap { display: grid; gap: 10px; margin-top: 16px; }
.panel-shot .cap h3 { font-size: 19px; margin: 0; }
.panel-shot .cap p { color: var(--muted); margin: 0; font-size: 15px; }
.ticks { display: grid; gap: 8px; }
.ticks li { display: flex; gap: 9px; align-items: flex-start; font-size: 15px; }
.ticks .ic { color: var(--green); width: 19px; height: 19px; margin-top: 5px; }
.block.dark .ticks .ic { color: #5fd3a6; }

/* شبكة المميزات */
.features { display: grid; gap: 16px; }
.feature {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: transform .25s ease, box-shadow .25s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature .hd { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.feature .hd .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy-700), var(--navy-900)); color: var(--gold-400); flex-shrink: 0; }
.feature h3 { font-size: 17px; margin: 0; }
.feature ul { display: grid; gap: 6px; }
.feature li { position: relative; padding-inline-start: 18px; font-size: 14.5px; color: #34405a; }
.feature li::before { content: ""; position: absolute; right: 0; top: .78em; width: 7px; height: 7px; border-radius: 2px; background: var(--gold-500); transform: rotate(45deg); }

/* الإحصاءات */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat { text-align: center; padding: 22px 12px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.stat .n { font-family: var(--font-head); font-weight: 800; font-size: clamp(28px, 6vw, 42px); color: var(--gold-400); line-height: 1.2; direction: ltr; }
.stat .t { color: rgba(255, 255, 255, .8); font-size: 14px; margin-top: 4px; }
.block:not(.dark) .stat { background: #fff; border-color: var(--line); }
.block:not(.dark) .stat .n { color: var(--navy-700); }
.block:not(.dark) .stat .t { color: var(--muted); }

/* قسم الذكاء الاصطناعي */
.ai-grid { display: grid; gap: 34px; align-items: center; }
.ai-points { display: grid; gap: 14px; }
.ai-point { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.ai-point .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(217, 164, 65, .16); color: var(--gold-400); flex-shrink: 0; }
.ai-point h3 { font-size: 16.5px; margin: 0 0 2px; }
.ai-point p { margin: 0; font-size: 14.5px; color: rgba(255, 255, 255, .74); }
.typing { display: inline-flex; gap: 4px; margin-inline-start: 6px; vertical-align: middle; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-400); animation: typing 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
.ai-visual { position: relative; }
.ai-visual .frame { border-color: rgba(255, 255, 255, .12); }
.ai-bubble { position: absolute; top: -18px; right: 8%; background: #fff; color: var(--ink); border-radius: 18px 18px 4px 18px; padding: 10px 16px; font-weight: 700; font-size: 14px; box-shadow: var(--shadow); animation: floatY 6s ease-in-out infinite; z-index: 2; }

/* أجهزة متعددة */
.devices { display: grid; grid-auto-flow: column; grid-auto-columns: 62%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 6px var(--gutter) 18px; scrollbar-width: none; }
.devices::-webkit-scrollbar { display: none; }
.devices .phone { scroll-snap-align: center; margin: 0 auto; }
.devices .dev-cap { text-align: center; margin-top: 12px; font-weight: 700; font-size: 14.5px; color: var(--navy-800); }

/* صفّ نصّ وصورة (الصفحات الفرعية) */
.split { display: grid; gap: 26px; align-items: center; }
.split + .split { margin-top: 64px; }
.split h3 { font-size: clamp(21px, 3.4vw, 28px); }
.split p.lead2 { color: var(--muted); font-size: 16px; }

/* الخطوات */
.steps { display: grid; gap: 16px; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 22px 22px; }
.step .num { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-100); color: var(--gold-600); font-family: var(--font-head); font-weight: 800; font-size: 18px; margin-bottom: 10px; }
.step h3 { font-size: 17px; margin: 0 0 4px; }
.step p { color: var(--muted); margin: 0; font-size: 14.5px; }

/* الأسئلة الشائعة */
.faq { display: grid; gap: 12px; max-width: 980px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; transition: box-shadow .25s ease, border-color .25s ease; }
.faq details[open] { box-shadow: var(--shadow-sm); border-color: #cfd9e8; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 700; font-size: 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px; font-family: var(--font-head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--navy-50); color: var(--navy-600); flex-shrink: 0; transition: transform .3s ease, background .3s; }
.faq details[open] summary .pm { transform: rotate(45deg); background: var(--gold-100); color: var(--gold-600); }
.faq .ans { padding: 0 20px 18px; color: #3a4660; font-size: 15px; }
.faq .ans p:last-child { margin: 0; }

/* شريط الدعوة */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 34px 22px; text-align: center; color: var(--navy-900);
    background: radial-gradient(500px 220px at 90% 0, rgba(255, 255, 255, .45), transparent 60%), linear-gradient(135deg, #f0c76f, var(--gold-500) 45%, var(--gold-600)); box-shadow: var(--shadow); }
.cta-band h2 { color: var(--navy-900); font-size: clamp(22px, 4.6vw, 34px); }
.cta-band p { color: rgba(8, 26, 51, .78); font-size: 16px; }
.cta-band .row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 18px; }
.cta-band .phone-num { direction: ltr; unicode-bidi: isolate; display: inline-block; font-weight: 800; }

/* بطل الصفحات الفرعية */
.page-hero { position: relative; overflow: hidden; color: #fff; padding: 40px 0 56px;
    background: radial-gradient(800px 420px at 90% -20%, #1f4c8f 0, transparent 60%), linear-gradient(160deg, var(--navy-800), var(--navy-950)); }
.page-hero::before { content: ""; position: absolute; inset: 0; opacity: .45; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse at 70% 0%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at 70% 0%, #000 20%, transparent 70%); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(26px, 5.4vw, 44px); margin: 12px 0 10px; }
.page-hero h1 .gold { color: var(--gold-400); }
.page-hero .lead { color: rgba(255, 255, 255, .82); font-size: clamp(16px, 2.2vw, 18px); max-width: 760px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: rgba(255, 255, 255, .7); }
.crumbs a:hover { color: var(--gold-400); }
.page-hero .hero-ctas { margin-bottom: 0; }

/* التذييل */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, .72); padding: 54px 0 110px; font-size: 14.5px; }
.site-footer .cols { display: grid; gap: 30px; }
.site-footer h3 { color: #fff; font-size: 16px; margin-bottom: 12px; }
.site-footer a:hover { color: var(--gold-400); }
.site-footer .links { display: grid; gap: 8px; }
.site-footer .brand { color: #fff; }
.site-footer .brand img { background: #fff; border-radius: 12px; padding: 3px; }
.site-footer .z-badge { display: inline-flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 8px 12px; margin-top: 14px; color: var(--ink); font-weight: 700; font-size: 13px; }
.site-footer .z-badge img { width: 92px; }
.site-footer .contact a { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.site-footer .contact .num { direction: ltr; unicode-bidi: isolate; }
.site-footer .bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 34px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: 13px; }

/* أزرار عائمة */
.wa-float { position: fixed; left: 18px; bottom: 86px; z-index: 80; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: none; place-items: center; box-shadow: 0 16px 34px -12px rgba(31, 190, 92, .9); }
.wa-float::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--wa); opacity: .6; animation: ring 2.4s ease-out infinite; }
.wa-float .ic { width: 28px; height: 28px; }
.mbar { position: fixed; inset-inline: 0; bottom: 0; z-index: 85; display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgba(13, 37, 71, .4); }
.mbar .btn { min-height: 46px; padding: 8px 10px; font-size: 14px; }

/* نافذة تكبير الصور */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(4, 12, 26, .88); display: none; align-items: center; justify-content: center; padding: 18px; cursor: zoom-out; }
.lightbox.open { display: flex; animation: fade .25s ease both; }
.lightbox img { max-height: 92vh; width: auto; max-width: 100%; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lightbox .close { position: absolute; top: 16px; left: 16px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: var(--navy-900); display: grid; place-items: center; }

/* عناصر مساعدة للصفحات الفرعية */
.nav .dd > button .ic { transform: rotate(-90deg); }
.narrow { max-width: 360px; margin-inline: auto; }
.duo { display: grid; gap: 18px; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--gold-100); color: var(--gold-600); vertical-align: middle; }
.split .phone { margin: 0 auto; max-width: 250px; }
.page-hero .hero-grid { gap: 30px; }
.page-hero .frame { border-color: rgba(255, 255, 255, .14); box-shadow: var(--shadow-lg); }
.calc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.calc .row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 15px; }
.calc .row:last-child { border-bottom: 0; }
.calc .row b { font-family: var(--font-head); direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.calc .row small { display: block; font-size: 12.5px; font-weight: 500; opacity: .85; }
.calc .row.hl { background: var(--green-100); color: var(--green); font-weight: 700; }
.calc .row.total { background: var(--navy-800); color: #fff; font-weight: 700; }
.calc .hd { padding: 12px 18px; background: var(--navy-50); font-weight: 800; font-family: var(--font-head); color: var(--navy-800); }
.callout { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; background: var(--navy-50); border: 1px solid #d6e0ef; font-size: 15px; margin-top: 18px; }
.callout .ic { color: var(--navy-600); margin-top: 4px; }
.links-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }
.links-row a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 14.5px; color: var(--navy-800); transition: border-color .2s, transform .2s; }
.links-row a:hover { border-color: var(--navy-600); transform: translateY(-2px); }
.links-row .ic { color: var(--gold-600); }
@media (min-width: 640px) { .duo { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
    .page-hero { padding: 64px 0 80px; }
    .page-hero .hero-grid { grid-template-columns: 1fr 1.05fr; gap: 46px; }
}

/* ظهور عند التمرير */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(40px, 30px) scale(1.12); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(95, 211, 166, .6); } 100% { box-shadow: 0 0 0 10px rgba(95, 211, 166, 0); } }
@keyframes shine { 0%, 60% { transform: translateX(120%); } 100% { transform: translateX(-120%); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes progress { from { width: 0; } to { width: 100%; } }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
@keyframes ring { 0% { transform: scale(.9); opacity: .7; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes pan { 0%, 12% { transform: translateY(0); } 88%, 100% { transform: translateY(calc(-100% + 520px)); } }

/* ===================== الجوال فقط (< 640px) ===================== */
@media (max-width: 639px) {
    .float-card { padding: 7px 10px; font-size: 12px; gap: 8px; border-radius: 12px; }
    .float-card .ico { width: 30px; height: 30px; border-radius: 9px; }
    .float-card .ico .ic { width: 18px; height: 18px; }
    .float-card small { font-size: 10.5px; }
    .float-card.f1 { top: 0; right: 0; }
    .float-card.f2 { bottom: 10%; right: 2%; }
    .float-card.f3 { display: none; }
    .trust-card .z img { width: 84px; }
    .trust-card .z h2 { font-size: 16.5px; }
}

/* ===================== اللوحي (≥ 640px) ===================== */
@media (min-width: 640px) {
    :root { --gutter: 24px; }
    .topbar .contacts { display: flex; }
    .header-actions .btn-gold { display: inline-flex; }
    .hero-ctas .btn { flex: 0 0 auto; }
    .trust-points { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sectors { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; }
    .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .devices { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 6px 0; }
    .site-footer .cols { grid-template-columns: 1.4fr 1fr 1fr; }
    .cta-band { padding: 46px 36px; }
    .mbar { display: none; }
    .wa-float { bottom: 22px; display: grid; }
    .site-footer { padding-bottom: 54px; }
    .float-card { font-size: 13.5px; }
}

/* ===================== الحاسوب (≥ 1024px) ===================== */
@media (min-width: 1024px) {
    :root { --header-h: 78px; }
    .burger { display: none; }
    .nav { display: flex; align-items: center; gap: 4px; margin-inline-start: 26px; }
    .nav > a, .nav .dd > button { padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: 15px; color: #26324a; background: none; border: 0; display: inline-flex; align-items: center; gap: 4px; }
    .nav > a:hover, .nav .dd > button:hover, .nav a[aria-current="page"] { color: var(--navy-600); background: var(--navy-50); }
    .nav .dd { position: relative; }
    .nav .dd .menu { position: absolute; top: calc(100% + 8px); right: 0; width: 330px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 10px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .22s ease; }
    .nav .dd:hover .menu, .nav .dd:focus-within .menu { opacity: 1; visibility: visible; transform: none; }
    .nav .dd .menu a { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 12px; }
    .nav .dd .menu a:hover { background: var(--navy-50); }
    .nav .dd .menu .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--navy-50); color: var(--navy-600); flex-shrink: 0; }
    .nav .dd .menu b { display: block; font-size: 14.5px; }
    .nav .dd .menu small { color: var(--muted); font-size: 12.5px; line-height: 1.6; display: block; }
    .header-actions .call { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy-800); direction: ltr; padding: 8px 10px; }
    .header-actions .call .ic { color: var(--gold-600); }
    .nav > a, .nav .dd > button, .header-actions .call { white-space: nowrap; }
    .nav .opt, .header-actions .call { display: none; }

    .hero { padding: 70px 0 150px; }
    .hero-grid { grid-template-columns: 1.02fr 1fr; gap: 36px; }
    .hero-visual { padding: 30px 0 40px; }
    .hero-visual .laptop { transform: perspective(1600px) rotateY(-9deg) rotateX(3deg); transform-origin: left center; transition: transform .6s ease; }
    .hero-visual:hover .laptop { transform: perspective(1600px) rotateY(-4deg) rotateX(1deg); }
    .hero-visual .phone { left: -6%; max-width: 210px; }
    .trust { margin-top: -96px; }
    .trust-card { grid-template-columns: 1fr 1.6fr; padding: 26px 30px; }
    .sectors { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .block { padding: 96px 0; }

    .tour { grid-template-columns: 330px 1fr; gap: 30px; align-items: start; }
    .tabs { flex-direction: column; overflow: visible; margin: 0; padding: 0; position: sticky; top: calc(var(--header-h) + 20px); }
    .tab { white-space: normal; text-align: right; align-items: flex-start; padding: 14px 16px; flex-direction: row; }
    .tab .txt { display: grid; gap: 2px; }
    .tab .tab-desc { display: block; font-weight: 500; font-size: 13px; color: var(--muted); line-height: 1.6; }
    .tab[aria-selected="true"] .tab-desc { color: rgba(255, 255, 255, .72); }
    .tab .ic { margin-top: 3px; }
    .panel-shot .cap { grid-template-columns: 1fr 1fr; align-items: start; gap: 24px; }

    .features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ai-grid { grid-template-columns: 1fr 1.1fr; gap: 56px; }
    .split { grid-template-columns: 1fr 1.15fr; gap: 54px; }
    .split.rev { grid-template-columns: 1.15fr 1fr; }
    .split.rev > :first-child { order: 2; }
    .site-footer .cols { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
    .steps .step::after { content: ""; position: absolute; top: 44px; left: -16px; width: 16px; height: 2px; background: var(--line); }
    .steps .step:last-child::after { display: none; }
}

@media (min-width: 1280px) {
    .hero h1 { font-size: 56px; }
    .float-card.f3 { left: 26%; }
    .nav .opt { display: inline-flex; }
    .header-actions .call { display: inline-flex; }
}

/* الشاشات العريضة جدًا */
@media (min-width: 1600px) {
    :root { --container: 1440px; }
}

/* حركة أقل لمن يطلبها */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

/* الطباعة */
@media print {
    .topbar, .site-header, .wa-float, .mbar, .drawer, .hero-visual { display: none !important; }
    .hero, .page-hero, .block.dark { background: #fff !important; color: #000 !important; }
}
