/* موقع محمد حسن النوبي — ملف التنسيق الوحيد */
:root {
  --ink: #1d1724;
  --ink-2: #3b3442;
  --muted: #6a6272;
  --plum: #714b67;
  --plum-d: #573a50;
  --plum-l: #f6eff4;
  --plum-m: #e8d9e3;
  --teal: #017e84;
  --teal-d: #01666b;
  --teal-l: #e3f3f3;
  --mint: #5ed3d9;
  --bg: #fbf9f7;
  --paper: #ffffff;
  --sand: #f4eee8;
  --line: #ebe3e8;
  --ok: #138a52;
  --warn: #b4531b;
  --radius: 18px;
  --radius-s: 12px;
  --shadow: 0 1px 2px rgba(29, 23, 36, .05), 0 10px 30px rgba(29, 23, 36, .07);
  --shadow-l: 0 2px 4px rgba(29, 23, 36, .06), 0 24px 60px rgba(29, 23, 36, .14);
  --max: 1180px;
  --font: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--plum); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--plum-d); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0 0 .55em; line-height: 1.35; font-weight: 700; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.18rem; }
strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: 860px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
[dir="ltr"] .i-flip { transform: scaleX(-1); }

/* الأزرار */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 50px; padding: .7em 1.4em; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--plum); color: #fff; box-shadow: 0 8px 22px rgba(113, 75, 103, .28); }
.btn--primary:hover { background: var(--plum-d); color: #fff; }
.btn--teal { background: var(--teal); color: #fff; box-shadow: 0 8px 22px rgba(1, 126, 132, .25); }
.btn--teal:hover { background: var(--teal-d); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); background: rgba(255, 255, 255, .6); }
.btn--ghost:hover { border-color: var(--plum); color: var(--plum); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--plum-l); color: var(--ink); }
.btn--outline-light { color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn--outline-light:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn--sm { min-height: 42px; padding: .5em 1.1em; font-size: .95rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none; }
.link-arrow .i { transition: transform .2s; }
.link-arrow:hover .i { transform: translateX(-4px); }
[dir="ltr"] .link-arrow:hover .i { transform: scaleX(-1) translateX(-4px); }

/* الرأس */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 249, 247, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(29, 23, 36, .05); }
.site-header__bar { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-inline-end: auto; }
.brand__mark { width: 44px; height: 44px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.3; }
.brand__text strong { font-size: 1.08rem; }
.brand__text small { color: var(--muted); font-size: .8rem; }
.site-nav > ul { display: flex; align-items: center; gap: 4px; list-style: none; }
.site-nav a, .site-nav .nav-label {
  display: flex; align-items: center; gap: .3em; padding: 8px 12px; border-radius: 10px;
  color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .97rem; cursor: pointer; background: none; border: 0; font-family: inherit;
}
.site-nav a:hover, .site-nav .nav-label:hover { color: var(--plum); background: var(--plum-l); }
.site-nav a, .site-nav .nav-label, .btn, .lang-link { white-space: nowrap; }
.site-nav a[aria-current="page"] { color: var(--plum); font-weight: 700; }
.has-sub { position: relative; }
.has-sub > ul {
  position: absolute; top: calc(100% + 6px); inset-inline-start: 0; min-width: 250px; list-style: none;
  padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-l);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.has-sub > ul::before { content: ""; position: absolute; inset-inline: 0; top: -10px; height: 10px; }
.has-sub:hover > ul, .has-sub:focus-within > ul { opacity: 1; visibility: visible; transform: none; }
.has-sub > ul a { padding: 10px 12px; }
.has-sub > ul a .i { color: var(--teal); }
.nav-label .i { width: 1em; height: 1em; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-link { font-weight: 600; font-size: .9rem; color: var(--ink-2); text-decoration: none; padding: 8px 10px; border-radius: 10px; }
.lang-link:hover { background: var(--plum-l); }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle .i { width: 24px; height: 24px; }
.nav-toggle .i-close { display: none; }

/* العناصر المشتركة */
.section { padding: clamp(64px, 9vw, 104px) 0; }
.section--paper { background: var(--paper); }
.section--sand { background: var(--sand); }
.section--tight { padding: 56px 0; }
.section--dark { background: var(--ink); color: #e9e4ec; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section--dark .section-head p { color: #bdb3c3; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em; margin: 0 0 12px;
  color: var(--teal); font-weight: 700; font-size: .92rem; letter-spacing: .01em;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.section--dark .eyebrow { color: var(--mint); }
.pill {
  display: inline-flex; align-items: center; gap: .5em; padding: 6px 14px; margin: 0 0 22px;
  border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2);
  font-size: .92rem; font-weight: 500; box-shadow: 0 2px 10px rgba(29, 23, 36, .04);
}
.pill .i { color: var(--teal); }
.hl { color: var(--plum); }
.hl-teal { color: var(--teal); }
.lead { font-size: clamp(1.06rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 640px; }
.muted { color: var(--muted); }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.center { text-align: center; }
.mt-l { margin-top: 40px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.card {
  position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }
a.card { display: block; text-decoration: none; color: inherit; }
a.card:hover, .card--hover:hover { border-color: var(--plum-m); box-shadow: var(--shadow); transform: translateY(-3px); }
.icon-box {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--plum-l); color: var(--plum);
}
.icon-box .i { width: 26px; height: 26px; }
.icon-box--teal { background: var(--teal-l); color: var(--teal); }
.icon-box--dark { background: var(--ink); color: var(--mint); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin-top: 16px; }
.tags li { font-size: .82rem; padding: 3px 10px; border-radius: 999px; background: var(--plum-l); color: var(--plum-d); font-weight: 500; }
.tags--teal li { background: var(--teal-l); color: var(--teal-d); }

.checks { list-style: none; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .i { color: var(--teal); margin-top: .3em; width: 1.15em; height: 1.15em; }
.checks--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }

/* الواجهة الرئيسية */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 480px at 15% 10%, rgba(1, 126, 132, .10), transparent 60%),
    radial-gradient(760px 520px at 90% 0%, rgba(113, 75, 103, .14), transparent 60%),
    var(--bg);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 65%);
}
.hero__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 28px; }
.hero__trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink-2); font-size: .95rem; font-weight: 500; }
.hero__trust li { display: flex; align-items: center; gap: 8px; }
.hero__trust .i { color: var(--teal); }
.hero__media { position: relative; justify-self: center; width: min(400px, 100%); }
.portrait {
  position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: 999px 999px 28px 28px; overflow: hidden;
  background: #111; box-shadow: var(--shadow-l); border: 6px solid #fff;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.hero__media::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px; z-index: -1;
  border-radius: 999px 999px 28px 28px; background: linear-gradient(160deg, var(--plum), var(--teal)); opacity: .9;
}
[dir="ltr"] .hero__media::before { inset: 22px 22px -22px -22px; }
.float-chip {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-l); font-size: .88rem; line-height: 1.4; color: var(--ink-2);
}
.float-chip strong { font-size: 1.5rem; color: var(--plum); line-height: 1; }
.float-chip .i { color: var(--teal); width: 22px; height: 22px; }
.float-chip--a { top: 18%; inset-inline-end: -34px; }
.float-chip--b { bottom: 12%; inset-inline-start: -46px; max-width: 250px; }
.float-chip--c { bottom: -14px; inset-inline-end: 4px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.stat { padding: 28px 24px; text-align: center; }
.stat + .stat { border-inline-start: 1px solid var(--line); }
.stat strong { display: block; font-size: clamp(1.9rem, 3.2vw, 2.5rem); line-height: 1.1; color: var(--plum); font-weight: 700; }
.stat span { color: var(--muted); font-size: .95rem; }
.stats-wrap { margin-top: -48px; position: relative; z-index: 2; }

/* المحاور الأربعة */
.pillar { display: flex; flex-direction: column; }
.pillar h3 { font-size: 1.25rem; }
.pillar .link-arrow { margin-top: auto; padding-top: 14px; }
.pillar--ai { background: linear-gradient(165deg, #241c2c, #1d1724); border-color: #2f2638; }
.pillar--ai h3 { color: #fff; }
.pillar--ai p { color: #c9bfd0; }
.pillar--ai .link-arrow { color: var(--mint); }
.badge-new { position: absolute; top: 20px; inset-inline-end: 20px; font-size: .75rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--mint); color: var(--ink); }

/* القطاعات */
.sector { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.sector__top { padding: 28px 28px 0; }
.sector__body { padding: 0 28px 28px; display: flex; flex-direction: column; flex: 1; }
.sector__band { height: 6px; background: linear-gradient(90deg, var(--plum), var(--teal)); }
.sector .checks { margin: 6px 0 20px; font-size: .97rem; }
.sector .link-arrow { margin-top: auto; }
.sector__tag { color: var(--teal); font-weight: 600; font-size: .9rem; margin-bottom: 6px; display: block; }

/* تقسيم نص + وسائط */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.split--rev > :first-child { order: 2; }
.split h2 { margin-bottom: 16px; }
.split .checks { margin: 22px 0 28px; }

/* محاكاة المحادثة */
.mock-chat {
  background: #fff; border-radius: 24px; border: 1px solid var(--line); box-shadow: var(--shadow-l);
  padding: 18px; max-width: 520px; margin-inline: auto; font-size: .95rem;
}
.section--dark .mock-chat { border-color: #2f2638; }
.mock-chat__head { display: flex; align-items: center; gap: 12px; padding: 4px 4px 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.mock-chat__head b { display: block; color: var(--ink); line-height: 1.3; }
.mock-chat__head small { color: var(--ok); font-size: .8rem; display: flex; align-items: center; gap: 6px; }
.mock-chat__head small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--plum), var(--teal)); color: #fff; font-weight: 700; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; margin-bottom: 10px; line-height: 1.7; color: var(--ink); }
.msg--me { background: var(--plum); color: #fff; margin-inline-start: auto; border-end-end-radius: 4px; }
.msg--ai { background: var(--plum-l); border-end-start-radius: 4px; }
.msg--tool { display: inline-flex; align-items: center; gap: 8px; background: var(--teal-l); color: var(--teal-d); font-weight: 600; font-size: .88rem; }
.msg b { color: var(--plum); }

/* محاكاة الداشبورد */
.mock-dash { background: #fff; border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow-l); padding: 18px; font-size: .85rem; }
.mock-dash__top { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; color: var(--muted); }
.mock-dash__top b { margin-inline-start: 8px; color: var(--ink); font-size: .92rem; }
.mock-dash__top .live { margin-inline-start: auto; color: var(--ok); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.mock-dash__top .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-dash__kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.kpi { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; line-height: 1.4; }
.kpi small { color: var(--muted); display: block; font-size: .76rem; }
.kpi strong { font-size: 1.3rem; display: block; color: var(--ink); }
.kpi em { font-style: normal; font-size: .74rem; color: var(--muted); }
.kpi em.up { color: var(--ok); }
.kpi em.down { color: var(--warn); }
.mock-dash__charts { display: grid; grid-template-columns: 1.6fr 1fr; gap: 10px; }
.chart-card { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.chart-card small { color: var(--muted); font-size: .76rem; }
.chart-card svg { display: block; width: 100%; height: auto; max-height: 150px; margin-top: 6px; }

/* البطاقات الرقمية */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; list-style: none; }
.step { position: relative; padding: 26px 26px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-size: 2rem; font-weight: 700; line-height: 1; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--plum), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; font-size: .97rem; }

.flow { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; counter-reset: flow; }
.flow li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 14px; font-size: .92rem; line-height: 1.6; }
.flow li::before { counter-increment: flow; content: counter(flow); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 700; font-size: .85rem; margin-bottom: 8px; }
.flow li b { display: block; color: var(--ink); }
.flow li span { color: var(--muted); }

.pains { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pains li { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.pains .i { color: var(--warn); margin-top: .25em; }

/* المشاريع */
.project { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.project__head { padding: 24px 26px; background: linear-gradient(140deg, var(--ink), #2c2235); color: #fff; display: flex; gap: 14px; align-items: center; }
.project__head .icon-box { margin: 0; background: rgba(255, 255, 255, .08); color: var(--mint); }
.project__head h3 { color: #fff; margin: 0; font-size: 1.12rem; }
.project__head small { color: #bdb3c3; display: block; font-size: .85rem; }
.project__body { padding: 22px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.project__body .checks { font-size: .95rem; margin: 4px 0 6px; }
.project__body .tags { margin-top: auto; padding-top: 16px; }

/* الإثبات الاجتماعي */
.feature-photo { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-l); position: relative; }
.feature-photo img { width: 100%; height: 100%; object-fit: cover; }
.feature-photo figcaption { position: absolute; inset-inline: 12px; bottom: 12px; padding: 8px 14px; border-radius: 12px; background: rgba(29, 23, 36, .78); color: #fff; font-size: .85rem; backdrop-filter: blur(6px); }
.clients { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.clients li { padding: 10px 18px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; font-size: .95rem; }
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.quote { margin: 0; padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); position: relative; }
.quote::before { content: "”"; position: absolute; top: 4px; inset-inline-end: 22px; font-size: 5rem; line-height: 1; color: var(--plum-m); font-family: Georgia, serif; }
.quote blockquote { margin: 0 0 18px; font-size: 1.04rem; color: var(--ink-2); }
.quote figcaption { display: flex; align-items: center; gap: 12px; font-size: .92rem; }
.quote figcaption b { display: block; color: var(--ink); }
.quote figcaption span { color: var(--muted); }
.quote .avatar { width: 44px; height: 44px; font-size: .95rem; }

/* الأسئلة الشائعة */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.faq details[open] { border-color: var(--plum-m); box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--plum-l); color: var(--plum); font-size: 1.25rem; font-weight: 500; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__a { padding: 0 22px 18px; color: var(--ink-2); }
.faq__a p:last-child { margin: 0; }

/* دعوة للتواصل */
.cta-band { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(36px, 6vw, 64px); color: #fff;
  background: radial-gradient(600px 300px at 0% 0%, rgba(94, 211, 217, .25), transparent 60%), linear-gradient(135deg, var(--plum-d), var(--ink) 70%);
  display: grid; grid-template-columns: 1.4fr auto; gap: 28px; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: #ddd2e2; margin: 0; max-width: 620px; }
.cta-band .cta-row { justify-content: flex-end; }

/* نموذج التواصل */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.contact-list { list-style: none; display: grid; gap: 14px; margin-top: 26px; }
.contact-list a, .contact-list div { display: flex; gap: 14px; align-items: center; padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); }
.contact-list a:hover { border-color: var(--plum-m); box-shadow: var(--shadow); }
.contact-list small { display: block; color: var(--muted); font-size: .82rem; }
.contact-list b { font-weight: 600; }
.contact-list .icon-box { margin: 0; width: 44px; height: 44px; }
.ltr-num { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.form { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: .93rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--bg); color: var(--ink); transition: border-color .2s, background .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--plum); background: #fff; }
.form .btn { width: 100%; }
.form__note { margin: 12px 0 0; color: var(--muted); font-size: .85rem; text-align: center; }

/* صفحات داخلية */
.page-hero { position: relative; overflow: hidden; padding: clamp(36px, 5vw, 64px) 0 clamp(48px, 6vw, 80px); }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(700px 380px at 85% 0%, rgba(113, 75, 103, .13), transparent 60%), radial-gradient(700px 380px at 10% 40%, rgba(1, 126, 132, .09), transparent 60%), var(--bg);
}
.page-hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 18px; }
.page-hero .cta-row { margin-top: 28px; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: .88rem; color: var(--muted); margin-bottom: 22px; }
.breadcrumb li + li::before { content: "/"; margin-inline-end: 6px; color: var(--line); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--plum); }
.hero-panel { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 26px; box-shadow: var(--shadow-l); }
.hero-panel h2 { font-size: 1.08rem; margin-bottom: 14px; }
.hero-panel .checks { font-size: .97rem; }
.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.module { padding: 24px; }
.module .icon-box { width: 46px; height: 46px; margin-bottom: 14px; }
.module h3 { font-size: 1.08rem; margin-bottom: 6px; }
.module p { font-size: .96rem; }
.report-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.report-list li { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: #fff; font-weight: 500; }
.report-list .i { color: var(--mint); }
.note { padding: 18px 22px; border-radius: 14px; background: var(--teal-l); color: var(--teal-d); border: 1px solid rgba(1, 126, 132, .18); }
.note b { color: var(--teal-d); }
.card .note { color: var(--teal-d); margin-top: 16px; }
.card--dark { background: #241c2c; border-color: #2f2638; }
.card--dark h3 { color: #fff; }
.card--dark p, .card--dark li { color: #c9bfd0; }
.section--dark .section-head a, .section--dark .checks a { color: #fff; }
.section--dark .checks .i { color: var(--mint); }
.report-list--2 { grid-template-columns: 1fr 1fr; }
.section-head--flush { margin-bottom: 0; }
.prose h2 { margin-top: 1.2em; }
.prose p, .prose li { color: var(--ink-2); }

/* الخط الزمني */
.timeline { list-style: none; position: relative; display: grid; gap: 18px; }
.timeline::before { content: ""; position: absolute; top: 8px; bottom: 8px; inset-inline-start: 11px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding-inline-start: 44px; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: 4px; top: 8px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--plum); }
.timeline li:first-child::before { background: var(--teal); border-color: var(--teal); box-shadow: 0 0 0 5px var(--teal-l); }
.timeline time { font-size: .88rem; font-weight: 700; color: var(--teal); }
.timeline h3 { margin: 2px 0 4px; font-size: 1.08rem; }
.timeline p { color: var(--muted); margin: 0; }

/* التذييل */
.site-footer { background: var(--ink); color: #bdb3c3; padding: 72px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer h2 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: #bdb3c3; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; color: #fff; font-weight: 700; font-size: 1.1rem; }
.footer-brand .brand__mark { width: 40px; height: 40px; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); color: #fff; }
.socials a:hover { background: var(--plum); }
.socials .i { width: 20px; height: 20px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .i { color: var(--mint); margin-top: .35em; width: 1.1em; height: 1.1em; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .88rem; }

.wa-float {
  position: fixed; z-index: 60; bottom: 20px; inset-inline-start: 20px; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 10px 28px rgba(37, 211, 102, .4);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); color: #fff; }
.wa-float .i { width: 30px; height: 30px; }

/* ظهور تدريجي */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* الشاشات المتوسطة */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .float-chip--a { inset-inline-end: -10px; }
  .float-chip--b { inset-inline-start: -10px; }
}
@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: 76px 0 0; background: var(--bg); padding: 16px 20px 40px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open .nav-toggle .i-menu { display: none; }
  .nav-open .nav-toggle .i-close { display: block; }
  .nav-open { overflow: hidden; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a, .site-nav .nav-label { padding: 12px 10px; font-size: 1.05rem; }
  .has-sub > ul { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 12px 6px; min-width: 0; background: transparent; }
  .has-sub > .nav-label { color: var(--muted); font-size: .9rem; pointer-events: none; padding-bottom: 2px; }
  .has-sub > .nav-label .i { display: none; }
  .header-actions .btn { display: none; }
}
@media (max-width: 960px) {
  .hero__grid, .page-hero__grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .split--rev > :first-child { order: 0; }
  .hero__media { margin-top: 12px; width: min(340px, 82%); }
  .grid-3, .module-grid, .report-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band .cta-row { justify-content: flex-start; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding-inline: 16px; }
  .grid-2, .grid-3, .grid-4, .module-grid, .report-list, .steps, .quotes, .pains, .checks--2, .form__row { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand__text small { display: none; }
  .hero__cta .btn, .page-hero .cta-row .btn { width: 100%; }
  .mock-dash__kpis { grid-template-columns: repeat(2, 1fr); }
  .mock-dash__charts { grid-template-columns: 1fr; }
  .float-chip { font-size: .8rem; padding: 8px 12px; }
  .float-chip--a { inset-inline-end: -8px; top: 8%; }
  .float-chip--b { inset-inline-start: -8px; max-width: 210px; }
  .card, .quote { padding: 22px; }
  .stats-wrap { margin-top: -32px; }
  .stat { padding: 20px 12px; }
  .wa-float { width: 54px; height: 54px; bottom: 16px; inset-inline-start: 16px; }
}

/* محاذاة الوسط في الصفحات القصيرة */
.center .lead { margin-inline: auto; }
.center .cta-row { justify-content: center; }

/* المدونة */
.post-card { padding: 0; overflow: hidden; display: flex; }
.post-card > a { display: flex; flex-direction: column; width: 100%; text-decoration: none; color: inherit; }
.post-card:hover { border-color: var(--plum-m); box-shadow: var(--shadow); transform: translateY(-3px); }
.post-card__cover { position: relative; height: 128px; display: flex; align-items: flex-end; gap: 8px; padding: 16px 20px; color: #fff; font-weight: 600; font-size: .9rem; overflow: hidden;
  background: radial-gradient(260px 160px at 100% 0%, rgba(255, 255, 255, .18), transparent 60%), linear-gradient(135deg, var(--plum), var(--ink)); }
.post-card__cover .i { position: absolute; top: 18px; inset-inline-end: 20px; width: 54px; height: 54px; opacity: .35; stroke-width: 1.4; }
.post-card__cover--zatca, .post-card__cover--dashboards { background: radial-gradient(260px 160px at 100% 0%, rgba(255, 255, 255, .18), transparent 60%), linear-gradient(135deg, var(--teal), #0b3b3e); }
.post-card__cover--ai { background: radial-gradient(260px 160px at 100% 0%, rgba(94, 211, 217, .35), transparent 60%), linear-gradient(135deg, #2c2235, var(--ink)); }
.post-card__cover--contracting, .post-card__cover--manufacturing, .post-card__cover--hotels { background: radial-gradient(260px 160px at 100% 0%, rgba(255, 255, 255, .16), transparent 60%), linear-gradient(135deg, var(--plum-d), #2c2235); }
.post-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card__body h3 { font-size: 1.12rem; margin-bottom: 8px; }
.post-card__body p { color: var(--muted); font-size: .95rem; margin-bottom: 14px; }
.post-meta { margin-top: auto; color: var(--muted); font-size: .85rem; }
.post-hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.byline img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.byline b { display: block; line-height: 1.4; }
.byline small { color: var(--muted); font-size: .88rem; }
.post-wrap { padding-top: 48px; }
.toc { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 16px 22px; margin-bottom: 36px; }
.toc summary { cursor: pointer; font-weight: 700; }
.toc ol { margin: 12px 0 4px; padding-inline-start: 1.3em; display: grid; gap: 6px; }
.toc a { text-decoration: none; color: var(--ink-2); }
.toc a:hover { color: var(--plum); }
.prose { font-size: 1.08rem; line-height: 2; color: var(--ink-2); }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.35rem, 2.4vw, 1.6rem); margin: 2em 0 .6em; scroll-margin-top: 100px; }
.prose h3 { font-size: 1.18rem; margin: 1.6em 0 .5em; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-inline-start: 1.4em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--teal); }
.prose strong { color: var(--ink); }
.prose a { font-weight: 600; }
.prose blockquote { margin: 1.6em 0; padding: 14px 20px; border-inline-start: 4px solid var(--teal); background: var(--teal-l); border-radius: 12px; }
.prose blockquote p { color: var(--teal-d); margin: 0; }
.prose code { background: var(--plum-l); color: var(--plum-d); padding: 1px 7px; border-radius: 6px; font-size: .88em; direction: ltr; unicode-bidi: isolate; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.table-wrap { overflow-x: auto; margin: 1.6em 0; border: 1px solid var(--line); border-radius: 14px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.7; }
.prose th, .prose td { padding: 11px 14px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--plum-l); color: var(--ink); font-weight: 700; }
.prose tr:last-child td { border-bottom: 0; }
.author-box { display: flex; gap: 20px; align-items: flex-start; margin-top: 48px; padding: 26px; background: var(--bg); border: 1px solid var(--line); border-radius: 20px; }
.author-box img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex: none; }
.author-box b { font-size: 1.1rem; }
.author-box p { color: var(--muted); margin: 6px 0 10px; }
@media (max-width: 640px) {
  .author-box { flex-direction: column; }
  .prose { font-size: 1.02rem; }
}

/* تصنيفات المدونة */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.chip { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .92rem; }
.chip:hover { border-color: var(--plum); color: var(--plum); }
.chip.is-active { background: var(--plum); border-color: var(--plum); color: #fff; }
.post-card__cover--implementation, .post-card__cover--accounting, .post-card__cover--odoo { background: radial-gradient(260px 160px at 100% 0%, rgba(255, 255, 255, .18), transparent 60%), linear-gradient(135deg, var(--plum), var(--ink)); }
.post-card__cover--inventory, .post-card__cover--integrations, .post-card__cover--gulf { background: radial-gradient(260px 160px at 100% 0%, rgba(255, 255, 255, .18), transparent 60%), linear-gradient(135deg, var(--teal), #0b3b3e); }
.post-card__cover--hr, .post-card__cover--sales { background: radial-gradient(260px 160px at 100% 0%, rgba(255, 255, 255, .16), transparent 60%), linear-gradient(135deg, var(--plum-d), #2c2235); }
