/* =========================================================
   وجهة رقمية | WIJHA DEV — نظام التصميم v2
   الفكرة: كحلي الشعار + أزرق الاتجاه، شبكة "مخطط هندسي" خفيفة،
   ومسار متقطع يرمز إلى "الوجهة". خطوط: Alexandria للعناوين،
   IBM Plex Sans Arabic للنصوص، IBM Plex Mono للتفاصيل التقنية.
   ========================================================= */

:root {
  /* الألوان */
  --ink: #071A3D;          /* كحلي الشعار */
  --ink-2: #0C2550;
  --ink-3: #16346A;
  --blue: #1463FF;         /* اللون الأساسي للأزرار والروابط */
  --blue-600: #0E4FD6;
  --cyan: #2CC6EE;         /* لمسة الشعار */
  --paper: #F4F6FA;        /* خلفية الأقسام الفاتحة */
  --surface: #FFFFFF;
  --line: #E1E6EF;
  --line-strong: #CBD3E1;
  --text: #0B1630;
  --muted: #55647E;
  --on-dark: #EAF1FF;
  --on-dark-muted: #A9B8D6;
  --ok: #12A16B;
  --warn: #E59A12;

  /* الخطوط */
  --f-display: "Alexandria", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --f-body: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  /* المقاسات */
  --wrap: 1180px;
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(7, 26, 61, .06), 0 2px 8px rgba(7, 26, 61, .05);
  --shadow: 0 2px 6px rgba(7, 26, 61, .06), 0 18px 40px -12px rgba(7, 26, 61, .18);
  --shadow-lg: 0 30px 80px -20px rgba(3, 12, 32, .55);
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: light;
}

/* ---------- أساسيات ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.lang-en { line-height: 1.65; }
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-600); }
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--text); margin: 0; line-height: 1.3; font-weight: 700; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.ic { width: 1.15em; height: 1.15em; flex: none; }
[dir="rtl"] .ic.arrow { transform: scaleX(-1); }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 48px);
  margin-inline: auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); z-index: 200; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- أزرار ---------- */
.btn {
  --bg: var(--surface); --fg: var(--text); --bd: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 50px; padding: 0 1.4em;
  font: 600 1rem/1 var(--f-body);
  color: var(--fg); background: var(--bg);
  border: 1.5px solid var(--bd); border-radius: 12px;
  cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, box-shadow .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); color: var(--fg); }
.btn:active { transform: translateY(0); }
.btn-primary { --bg: var(--blue); --fg: #fff; --bd: var(--blue); box-shadow: 0 8px 22px -8px rgba(20, 99, 255, .65); }
.btn-primary:hover { --bg: var(--blue-600); --bd: var(--blue-600); }
.btn-outline { --bg: transparent; --fg: var(--text); --bd: var(--line-strong); }
.btn-outline:hover { --bd: var(--blue); --fg: var(--blue); }
.btn-light { --bg: #fff; --fg: var(--ink); --bd: #fff; }
.btn-ghost-light { --bg: transparent; --fg: #fff; --bd: rgba(255, 255, 255, .32); }
.btn-ghost-light:hover { --bd: #fff; }
.btn-sm { min-height: 42px; padding: 0 1.1em; font-size: .95rem; border-radius: 10px; }
.btn-block { width: 100%; }

.text-link { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; }
.text-link .ic { transition: transform .2s var(--ease); }
.text-link:hover .ic { transform: translateX(3px); }
[dir="rtl"] .text-link:hover .ic { transform: scaleX(-1) translateX(3px); }

/* ---------- الرأس ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
  padding-top: env(safe-area-inset-top, 0px);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(7, 26, 61, .5); }
.header-row { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); flex: none; }
.brand:hover { color: var(--text); }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--f-display); font-size: 1.12rem; font-weight: 700; }
.brand-text small { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .18em; color: var(--muted); }
.brand-light, .brand-light:hover { color: #fff; }
.brand-light small { color: var(--on-dark-muted); }

.main-nav { display: flex; gap: 4px; margin-inline-start: auto; }
.main-nav a { color: var(--muted); font-weight: 500; font-size: .98rem; padding: 8px 14px; border-radius: 10px; transition: color .15s, background-color .15s; }
.main-nav a:hover { color: var(--text); background: var(--paper); }
.main-nav a.is-active { color: var(--text); background: var(--paper); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.login-link { font-weight: 600; font-size: .95rem; color: var(--text); padding: 8px 10px; border-radius: 10px; }
.login-link:hover { color: var(--blue); background: var(--paper); }
.lang-link { font-family: var(--f-body); font-weight: 600; font-size: .92rem; color: var(--text); padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 10px; min-width: 52px; text-align: center; }
.lang-link:hover { border-color: var(--text); color: var(--text); }
.menu-btn { display: none; width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s var(--ease), top .25s var(--ease); }
.menu-btn span:first-child { top: 16px; }
.menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }
.mobile-nav { border-top: 1px solid var(--line); background: var(--surface); }
.mobile-nav .wrap { display: grid; gap: 4px; padding-block: 14px 22px; }
.mobile-nav a:not(.btn) { color: var(--text); font-weight: 500; font-size: 1.05rem; padding: 12px 6px; border-bottom: 1px solid var(--line); }
.mobile-nav a.is-active { color: var(--blue); }
.mobile-nav .btn { margin-top: 12px; }

/* ---------- الأقسام ---------- */
.section { padding-block: clamp(72px, 9vw, 120px); }
.section.alt { background: var(--paper); }
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); margin-top: 12px; }
.section-head .lead { margin-top: 16px; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: .8rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--blue);
}
.lang-ar .kicker { font-family: var(--f-body); font-weight: 600; letter-spacing: 0; font-size: .92rem; }
.kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.18rem); color: var(--muted); max-width: 62ch; }

/* ---------- البطل (Hero) ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(1200px 600px at 85% -10%, rgba(44, 198, 238, .18), transparent 60%),
              radial-gradient(900px 500px at 0% 110%, rgba(20, 99, 255, .28), transparent 60%),
              var(--ink);
  color: var(--on-dark);
  padding-block: clamp(56px, 8vw, 104px) clamp(64px, 8vw, 96px);
}
.hero::before { /* شبكة المخطط */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(234, 241, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(234, 241, 255, .055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%);
}
.hero-route { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero-route path { stroke-dasharray: 2 10; animation: route 40s linear infinite; }
@keyframes route { to { stroke-dashoffset: -480; } }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 72px); align-items: center; }
.hero-copy { min-width: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 8px; border-radius: 999px;
  background: rgba(234, 241, 255, .07); border: 1px solid rgba(234, 241, 255, .14);
  color: var(--on-dark); font-size: .9rem; font-weight: 500;
}
[dir="rtl"] .eyebrow { padding: 7px 8px 7px 14px; }
.eyebrow .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(18, 161, 107, .18); }
.eyebrow .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2BD49A; box-shadow: 0 0 0 4px rgba(43, 212, 154, .2); }
.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5.2vw, 4rem);
  line-height: 1.32;
  margin-top: 22px;
}
.lang-en .hero h1 { letter-spacing: -.025em; line-height: 1.08; }
.hero h1 .hl {
  background: linear-gradient(90deg, #5CA0FF, var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { margin-top: 22px; font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--on-dark-muted); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 38px; padding-top: 26px; border-top: 1px solid rgba(234, 241, 255, .12); }
.hero-points li { display: flex; align-items: center; gap: 9px; color: var(--on-dark); font-size: .96rem; }
.hero-points .ic { color: var(--cyan); }

/* لوحة التحكم التوضيحية داخل البطل */
.hero-visual { position: relative; min-width: 0; }
.dash {
  position: relative;
  background: #fff; color: var(--text);
  border-radius: 18px; box-shadow: var(--shadow-lg);
  overflow: hidden; font-size: .86rem;
  transform: perspective(1600px) rotateY(-6deg) rotateX(2deg);
  transform-origin: center;
}
[dir="rtl"] .dash { transform: perspective(1600px) rotateY(6deg) rotateX(2deg); }
.dash-top { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #FAFBFD; }
.dash-top i { width: 10px; height: 10px; border-radius: 50%; background: #E3E7EF; }
.dash-top span { margin-inline-start: 10px; font-family: var(--f-mono); font-size: .74rem; color: var(--muted); background: var(--paper); padding: 3px 10px; border-radius: 6px; }
.dash-body { display: grid; grid-template-columns: 56px 1fr; min-height: 340px; }
.dash-side { background: var(--ink); display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 16px; }
.dash-side b { width: 28px; height: 28px; border-radius: 8px; background: rgba(234, 241, 255, .12); }
.dash-side b:first-child { background: linear-gradient(135deg, var(--blue), var(--cyan)); }
.dash-main { padding: 18px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.dash-title { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.dash-title strong { font-family: var(--f-display); font-size: 1rem; }
.dash-title small { color: var(--muted); font-size: .75rem; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.kpi small { display: block; color: var(--muted); font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi strong { font-family: var(--f-display); font-size: 1.08rem; font-variant-numeric: tabular-nums; }
.kpi .bar { height: 4px; border-radius: 4px; background: var(--paper); margin-top: 8px; overflow: hidden; }
.kpi .bar i { display: block; height: 100%; border-radius: 4px; background: var(--blue); }
.orders { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.orders li { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; border-top: 1px solid var(--line); font-size: .78rem; }
.orders li:first-child { border-top: 0; background: #FAFBFD; color: var(--muted); font-size: .72rem; }
.orders code { font-family: var(--f-mono); font-size: .72rem; color: var(--text); }
.orders .num { font-variant-numeric: tabular-nums; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: .7rem; font-weight: 600; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok { color: var(--ok); background: rgba(18, 161, 107, .1); }
.pill.wip { color: var(--blue); background: rgba(20, 99, 255, .1); }
.pill.wait { color: #B57400; background: rgba(229, 154, 18, .13); }
.toast {
  position: absolute; bottom: -22px; inset-inline-start: -26px;
  display: flex; align-items: center; gap: 12px;
  background: #fff; color: var(--text); border-radius: 14px; padding: 12px 16px 12px 12px;
  box-shadow: var(--shadow); font-size: .85rem; min-width: 0;
  animation: float 6s var(--ease) infinite;
}
[dir="rtl"] .toast { padding: 12px 12px 12px 16px; }
.toast .t-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(18, 161, 107, .12); color: var(--ok); flex: none; }
.toast strong { display: block; font-family: var(--f-display); font-size: .92rem; }
.toast small { color: var(--muted); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.coord-tag { position: absolute; top: -30px; inset-inline-end: 6px; font-family: var(--f-mono); font-size: .72rem; color: var(--on-dark-muted); letter-spacing: .04em; }

/* ---------- شريط الأعمال ---------- */
.trust { border-bottom: 1px solid var(--line); background: var(--surface); }
.trust .wrap { display: flex; align-items: center; gap: 18px 40px; flex-wrap: wrap; padding-block: 26px; }
.trust p { color: var(--muted); font-size: .92rem; }
.trust ul { display: flex; gap: 12px 34px; flex-wrap: wrap; align-items: center; }
.trust li a { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-family: var(--f-display); font-size: 1rem; }
.trust li a span { font-family: var(--f-mono); font-weight: 400; font-size: .76rem; color: var(--muted); }
.trust li a:hover { color: var(--blue); }

/* ---------- الخدمات (ما نبنيه) ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.svc { padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); transition: border-color .2s, transform .25s var(--ease), box-shadow .25s; min-width: 0; }
.svc:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow); }
.svc-ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: rgba(20, 99, 255, .08); color: var(--blue); margin-bottom: 20px; }
.svc-ic svg { width: 26px; height: 26px; }
.svc h3 { font-size: 1.15rem; }
.svc p { color: var(--muted); font-size: .98rem; margin-top: 10px; }

/* ---------- الأسعار ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 18px;
  padding: 32px 28px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
  min-width: 0;
}
.plan header h3 { font-size: 1.3rem; }
.plan-tag { color: var(--muted); font-size: .95rem; margin-top: 4px; }
.plan-price { display: flex; align-items: baseline; gap: 8px; padding-block: 6px 2px; border-bottom: 1px dashed var(--line-strong); padding-bottom: 20px; }
.plan-price strong { font-family: var(--f-display); font-size: 3rem; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.plan-price span { color: var(--muted); font-weight: 500; }
.plan-desc { color: var(--muted); font-size: .98rem; }
.checks { display: grid; gap: 11px; flex: 1; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: .98rem; }
.checks .ic { color: var(--blue); margin-top: .28em; }
.plan.is-featured { background: var(--ink); border-color: var(--ink); color: var(--on-dark); box-shadow: var(--shadow-lg); }
.plan.is-featured h3, .plan.is-featured .plan-price strong { color: #fff; }
.plan.is-featured .plan-tag, .plan.is-featured .plan-desc, .plan.is-featured .plan-price span { color: var(--on-dark-muted); }
.plan.is-featured .plan-price { border-color: rgba(234, 241, 255, .2); }
.plan.is-featured .checks .ic { color: var(--cyan); }
.plan-flag { position: absolute; top: -13px; inset-inline-start: 28px; background: linear-gradient(90deg, var(--blue), var(--cyan)); color: #fff; font-size: .8rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.pricing-note { margin-top: 26px; color: var(--muted); font-size: .95rem; text-align: center; }

/* ---------- الخطوات ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; position: relative; }
.step { position: relative; padding-top: 64px; min-width: 0; }
.step::before { content: ""; position: absolute; top: 21px; inset-inline-start: 52px; inset-inline-end: -20px; border-top: 2px dashed var(--line-strong); }
.step:last-child::before { display: none; }
.step-no { position: absolute; top: 0; inset-inline-start: 0; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: #fff; font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; }
.step:last-child .step-no { background: linear-gradient(135deg, var(--blue), var(--cyan)); }
.step h3 { font-size: 1.15rem; }
.step p { color: var(--muted); font-size: .98rem; margin-top: 8px; }

/* ---------- الأعمال ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); transition: transform .25s var(--ease), box-shadow .25s; min-width: 0; }
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.work-visual { display: block; padding: 28px 26px 0; aspect-ratio: 16 / 10.5; max-width: 100%; overflow: hidden; }
.tone-a .work-visual { background: linear-gradient(150deg, #0E3B2E, #1C6B4F); }
.tone-b .work-visual { background: linear-gradient(150deg, #3A1D5C, #6C3FA0); }
.tone-c .work-visual { background: linear-gradient(150deg, #0B3A57, #1E7FA8); }
.mock-browser { background: #fff; border-radius: 10px 10px 0 0; height: 100%; box-shadow: 0 -10px 40px -10px rgba(0, 0, 0, .35); overflow: hidden; transition: transform .35s var(--ease); }
.work-card:hover .mock-browser { transform: translateY(-6px); }
.mock-bar { display: flex; align-items: center; gap: 5px; padding: 8px 10px; background: #F2F4F8; direction: ltr; }
.mock-bar i { width: 7px; height: 7px; border-radius: 50%; background: #D5DAE3; }
.mock-bar span { margin-left: 8px; font-family: var(--f-mono); font-size: .66rem; color: var(--muted); background: #fff; padding: 2px 8px; border-radius: 4px; }
.mock-page { padding: 12px 14px; display: grid; gap: 12px; }
.mp-nav { display: flex; gap: 6px; align-items: center; }
.mp-nav b { width: 34px; height: 8px; border-radius: 3px; background: var(--text); opacity: .8; }
.mp-nav span { width: 18px; height: 5px; border-radius: 3px; background: #DCE1EA; margin-inline-start: auto; }
.mp-nav span + span { margin-inline-start: 0; }
.mp-hero { display: grid; gap: 6px; padding: 14px 10px; border-radius: 6px; }
.tone-a .mp-hero { background: #E6F3EC; } .tone-b .mp-hero { background: #EFE8F7; } .tone-c .mp-hero { background: #E3F0F7; }
.mp-hero b { height: 8px; width: 70%; border-radius: 3px; background: #2A3550; opacity: .75; }
.mp-hero b.short { width: 45%; opacity: .45; }
.mp-hero em { width: 54px; height: 14px; border-radius: 4px; margin-top: 4px; }
.tone-a .mp-hero em { background: #1C6B4F; } .tone-b .mp-hero em { background: #6C3FA0; } .tone-c .mp-hero em { background: #1E7FA8; }
.mp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mp-cards span { height: 34px; border-radius: 5px; background: #F1F3F7; border: 1px solid #E6E9F0; }
.work-body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.work-type { font-size: .85rem; font-weight: 600; color: var(--blue); }
.work-body h3 { font-size: 1.2rem; }
.work-body p { color: var(--muted); font-size: .97rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tags li { font-size: .8rem; padding: 3px 10px; border-radius: 999px; background: var(--paper); color: var(--muted); }
.work-body .text-link { margin-top: auto; padding-top: 8px; }

/* ---------- الدفع ---------- */
.pay-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.pay-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.pay-item { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.pay-item strong { font-family: var(--f-display); font-size: 1.25rem; }
.pay-item span { color: var(--muted); font-size: .95rem; }

/* ---------- الأسئلة ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); transition: border-color .2s; }
.faq details[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-body); font-size: 1.5rem; line-height: 1; color: var(--blue); transition: transform .2s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: var(--muted); }

/* ---------- شريط الدعوة ---------- */
.cta-band { background: var(--ink); color: var(--on-dark); position: relative; overflow: hidden; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(700px 300px at 90% 0%, rgba(44, 198, 238, .2), transparent 60%), radial-gradient(600px 300px at 0% 100%, rgba(20, 99, 255, .35), transparent 60%); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: clamp(56px, 7vw, 84px); flex-wrap: wrap; }
.cta-inner > div:first-child { min-width: 0; flex: 1 1 420px; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.cta-band p { color: var(--on-dark-muted); margin-top: 12px; max-width: 56ch; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- عنوان الصفحات الداخلية ---------- */
.page-hero { background: var(--ink); color: var(--on-dark); position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(56px, 7vw, 92px); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(234, 241, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(234, 241, 255, .05) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(90deg, transparent, #000 40%, #000 60%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%, #000 60%, transparent); }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(800px 400px at 80% 0%, rgba(44, 198, 238, .16), transparent 60%); }
.page-hero .kicker { color: var(--cyan); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.2rem); margin-top: 14px; max-width: 20ch; }
.page-hero p { color: var(--on-dark-muted); margin-top: 18px; font-size: clamp(1.05rem, 1.4vw, 1.18rem); max-width: 60ch; }

/* ---------- جدول المقارنة ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .98rem; }
.compare th, .compare td { padding: 16px 20px; text-align: start; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--f-display); font-size: 1rem; background: var(--paper); }
.compare thead th small { display: block; font-family: var(--f-body); color: var(--muted); font-weight: 500; font-size: .85rem; font-variant-numeric: tabular-nums; }
.compare tbody th { font-weight: 500; color: var(--text); }
.compare td { text-align: center; }
.compare tr:last-child > * { border-bottom: 0; }
.compare .yes { color: var(--blue); display: inline-flex; }
.compare .no { color: var(--line-strong); }
.compare .col-feat { background: rgba(20, 99, 255, .04); }

/* ---------- من نحن ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.split > * { min-width: 0; }
.prose p + p { margin-top: 16px; }
.prose p { color: var(--muted); font-size: 1.08rem; }
.prose .big { color: var(--text); font-family: var(--f-display); font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.5; font-weight: 600; }
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.value { padding: 24px; border-radius: var(--r); background: var(--paper); min-width: 0; }
.value h3 { font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.value h3::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--blue); transform: rotate(45deg); flex: none; }
.value p { color: var(--muted); margin-top: 8px; font-size: .97rem; }

/* ---------- التواصل والنموذج ---------- */
.contact-layout { display: grid; grid-template-columns: 1.35fr .65fr; gap: clamp(28px, 4vw, 48px); align-items: start; }
.contact-layout > * { min-width: 0; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-sm); }
.form-card h2 { font-size: 1.5rem; }
.form-card > p { color: var(--muted); margin-top: 6px; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--paper); margin-block: 22px 6px; }
.tabs button { border: 0; background: transparent; font: 600 .95rem var(--f-body); color: var(--muted); padding: 10px 18px; border-radius: 9px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 22px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 600; font-size: .95rem; }
.field .opt { color: var(--muted); font-weight: 400; font-size: .85rem; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  padding: 13px 15px; border-radius: 11px; border: 1.5px solid var(--line-strong); background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(20, 99, 255, .14); }
.field input[dir="ltr"] { text-align: left; }
.pkg-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; border: 0; padding: 0; margin: 0; }
.pkg-options legend { margin-bottom: 8px; padding: 0; }
.pkg-opt { position: relative; }
.pkg-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pkg-opt span { display: grid; gap: 2px; height: 100%; padding: 14px; border-radius: 12px; border: 1.5px solid var(--line-strong); transition: border-color .15s, background-color .15s; }
.pkg-opt b { font-family: var(--f-display); font-weight: 600; font-size: .98rem; }
.pkg-opt small { color: var(--muted); font-variant-numeric: tabular-nums; }
.pkg-opt input:checked + span { border-color: var(--blue); background: rgba(20, 99, 255, .05); box-shadow: inset 0 0 0 1px var(--blue); }
.pkg-opt input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 2px; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.form-foot small { color: var(--muted); }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 12px; margin-top: 20px; font-size: .98rem; }
.alert.ok { background: rgba(18, 161, 107, .1); color: #0B6B47; border: 1px solid rgba(18, 161, 107, .25); }
.alert.err { background: rgba(214, 48, 49, .08); color: #A42222; border: 1px solid rgba(214, 48, 49, .22); }
.alert code { font-family: var(--f-mono); font-weight: 500; }
.info-stack { display: grid; gap: 14px; }
.info-card { padding: 22px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.info-card small { display: block; color: var(--muted); font-size: .88rem; margin-bottom: 4px; }
.info-card a, .info-card strong { font-family: var(--f-display); font-weight: 600; font-size: 1.08rem; color: var(--text); word-break: break-word; }
.info-card a:hover { color: var(--blue); }
.info-card.dark { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.info-card.dark h3 { color: #fff; font-size: 1.1rem; }
.info-card.dark ul { display: grid; gap: 10px; margin-top: 14px; }
.info-card.dark li { display: flex; gap: 10px; align-items: flex-start; color: var(--on-dark-muted); font-size: .95rem; }
.info-card.dark .ic { color: var(--cyan); margin-top: .3em; }

/* ---------- التذييل ---------- */
.site-footer { background: #050F26; color: var(--on-dark-muted); padding-top: clamp(56px, 7vw, 80px); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 48px; }
.footer-grid > * { min-width: 0; }
.footer-brand p { margin-top: 18px; max-width: 36ch; font-size: .97rem; }
.footer-brand .coords { font-family: var(--f-mono); font-size: .78rem; margin-top: 14px; color: #6F80A3; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer a:not(.brand) { color: var(--on-dark-muted); font-size: .97rem; }
.site-footer a:not(.brand):hover { color: #fff; }
.footer-bottom { position: relative; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px calc(22px + env(safe-area-inset-bottom, 0px)); font-size: .88rem; }
.footer-bottom::before { content: ""; position: absolute; top: 0; left: max(24px, env(safe-area-inset-left, 0px)); right: max(24px, env(safe-area-inset-right, 0px)); border-top: 1px solid rgba(234, 241, 255, .1); }
[dir="rtl"] .coords { text-align: right; }
.pay-mini { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-mini em { font-style: normal; font-size: .78rem; padding: 3px 10px; border: 1px solid rgba(234, 241, 255, .16); border-radius: 6px; }

/* ---------- حركة الظهور ---------- */
.reveal { animation: rise .7s var(--ease) both; }
.reveal.d1 { animation-delay: .08s; } .reveal.d2 { animation-delay: .16s; } .reveal.d3 { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- التجاوب ---------- */
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .header-actions { margin-inline-start: auto; }
  .menu-btn { display: inline-block; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .step:nth-child(2)::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; margin-top: 18px; }
  .dash, [dir="rtl"] .dash { transform: none; }
  .pricing { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .pay-wrap, .split, .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .wrap { padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
  .header-row { min-height: 66px; gap: 12px; }
  .header-cta { display: none; }
  .login-link { display: none; }
  .brand-text small { display: none; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-points { flex-direction: column; }
  .toast { position: relative; inset: auto; margin: -18px 14px 0; animation: none; }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .kpi { padding: 8px; }
  .dash-body { grid-template-columns: 1fr; }
  .dash-side { display: none; }
  .orders li { grid-template-columns: 1fr auto; }
  .orders li > :nth-child(2) { display: none; }
  .coord-tag { display: none; }
  .svc-grid, .work-grid, .values, .pay-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; row-gap: 28px; }
  .step::before { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .pkg-options { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-actions .btn { flex: 1 1 100%; }
  .tabs { display: flex; }
  .tabs button { flex: 1; }
}

/* ---------- الأنظمة الإدارية ERP ---------- */
.sys-hero .hero-actions { margin-top: 30px; }
.sys-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.sys-card { display: flex; flex-direction: column; gap: 10px; padding: 26px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); min-width: 0; }
.sys-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.sys-card:target { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(20, 99, 255, .15); }
.sys-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.sys-ic { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(140deg, rgba(20, 99, 255, .12), rgba(44, 198, 238, .14)); color: var(--blue); flex: none; }
.sys-ic svg { width: 25px; height: 25px; }
.sys-flag { font-size: .78rem; font-weight: 600; color: var(--ok); background: rgba(18, 161, 107, .1); padding: 3px 10px; border-radius: 99px; }
.sys-card h3 { font-size: 1.18rem; }
.sys-tag { color: var(--muted); font-size: .97rem; }
.sys-desc { font-size: .97rem; padding-top: 10px; border-top: 1px dashed var(--line); }
.sys-card .checks { flex: 1; margin-block: 6px 10px; }
.sys-card .checks li { font-size: .93rem; }
.sys-card .text-link { margin-top: auto; font-size: .95rem; }
.sys-why { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sys-why .value { background: var(--surface); border: 1px solid var(--line); }
.sys-why .value h3 { margin-top: 16px; }
.sys-why .value h3::before { display: none; }
.sys-price h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); margin-top: 12px; }
.sys-price .lead { margin-top: 16px; }
.sys-price .hero-actions { margin-top: 26px; }
.sys-factors { background: var(--paper); border-radius: var(--r-lg); padding: 28px; }

/* شريط الأنظمة في الرئيسية */
.sys-band { background: var(--ink); color: var(--on-dark); position: relative; overflow: hidden; isolation: isolate; }
.sys-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(700px 380px at 10% 0%, rgba(44, 198, 238, .14), transparent 60%); }
.sys-band .section-head h2 { color: #fff; }
.sys-band .section-head .lead { color: var(--on-dark-muted); }
.sys-band .kicker { color: var(--cyan); }
.sys-band .sys-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sys-band .sys-card { background: rgba(255, 255, 255, .04); border-color: rgba(234, 241, 255, .12); }
.sys-band .sys-card:hover { background: rgba(255, 255, 255, .07); border-color: rgba(234, 241, 255, .25); box-shadow: none; }
.sys-band .sys-card h3 { color: #fff; }
.sys-band .sys-tag { color: var(--on-dark-muted); }
.sys-band .sys-ic { color: var(--cyan); background: rgba(44, 198, 238, .12); }
.sys-band .sys-flag { color: #6EE7B7; background: rgba(110, 231, 183, .1); }
.sys-band-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; align-items: center; }
.sys-band-actions .more { color: var(--on-dark-muted); font-size: .95rem; }

/* اختيار الأنظمة في نموذج الطلب */
.sys-pick[hidden] { display: none; }
.sys-pick { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; padding: 14px; border-radius: var(--r); background: var(--paper); }
.sys-pick label { display: flex; gap: 9px; align-items: center; font-size: .93rem; cursor: pointer; padding: 4px 2px; }
.sys-pick input { width: 18px; height: 18px; accent-color: var(--blue); flex: none; }
.sys-pick-title { grid-column: 1 / -1; font-size: .9rem; color: var(--muted); }

@media (max-width: 1020px) {
  .sys-grid, .sys-band .sys-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sys-why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .sys-grid, .sys-band .sys-grid, .sys-why, .sys-pick { grid-template-columns: 1fr; }
  .sys-card { padding: 22px; }
}

/* ---------- النماذج التصميمية ---------- */
.demo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.demo-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s; min-width: 0; }
.demo-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--line-strong); }
.demo-shot { display: block; background: #E9EDF4; padding: 14px 14px 0; }
.demo-bar-mock { display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 10px 10px 0 0; padding: 8px 12px; border: 1px solid var(--line); border-bottom: 0; }
.demo-bar-mock i { width: 8px; height: 8px; border-radius: 50%; background: #D5DBE6; }
.demo-bar-mock span { margin-inline-start: 8px; font-family: var(--f-mono); font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-shot img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border: 1px solid var(--line); border-top: 0; transition: transform .6s var(--ease); }
.demo-card:hover .demo-shot img { transform: translateY(-4px); }
.demo-body { padding: 22px 24px 26px; display: grid; gap: 10px; flex: 1; align-content: start; }
.demo-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.demo-flag { font-size: .78rem; font-weight: 600; color: #8A5A00; background: #FFF4DB; padding: 2px 10px; border-radius: 99px; }
.demo-body h3 { font-size: 1.22rem; }
.demo-body p { color: var(--muted); font-size: .97rem; }
.demo-body .text-link { margin-top: 4px; }
.demo-note { margin-top: 22px; color: var(--muted); font-size: .92rem; text-align: center; }
@media (max-width: 760px) { .demo-grid { grid-template-columns: 1fr; } }
