/* درة هب — التصميم «ج»: أزرق ملكي، أبيض، كحلي، ولمسة صفراء */
:root {
  --royal: #1B3FCC;
  --royal-2: #14309E;
  --sky: #EAF0FF;
  --ink: #101833;
  --mute: #5A6380;
  --line: #E3E7F2;
  --sun: #FFC845;
  --white: #FFFFFF;
  --on-royal: #D3DCFF;
  --radius: 22px;
  --font: "Readex Pro", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.8; font-size: 16.5px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.3; font-weight: 700; }
p { max-width: 72ch; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--sun); color: var(--ink); padding: 8px 16px; border-radius: 10px; z-index: 50; }
.skip:focus { inset-inline-start: 16px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
.todo { background: #FFF1B8; color: #7A5A00; padding: 0 6px; border-radius: 4px; font-weight: 600; }
bdi { unicode-bidi: isolate; }

/* الرأس */
.top { background: var(--royal); color: var(--white); position: sticky; top: 0; z-index: 20; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 23px; font-weight: 700; }
.mark { width: 34px; height: 34px; color: var(--white); --mark-dot: var(--royal); flex: none; }
.nav { display: flex; gap: 28px; font-size: 15px; }
.nav a, .sheet a { color: var(--on-royal); transition: color .15s; }
.nav a:hover { color: var(--white); }
.nav a[aria-current] { color: var(--white); font-weight: 500; box-shadow: inset 0 -2px var(--sun); padding-bottom: 4px; }
.lang { background: rgba(255,255,255,.14); padding: 6px 16px; border-radius: 30px; font-size: 14px; }
.lang:hover { background: rgba(255,255,255,.22); }
.burger { display: none; position: relative; }
.burger summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; border-radius: 12px; background: rgba(255,255,255,.14); }
.burger summary::-webkit-details-marker { display: none; }
.burger summary span { display: block; width: 20px; height: 2px; background: var(--white); border-radius: 2px; }
.sheet { position: absolute; inset-inline-end: 0; top: 54px; background: var(--white); border-radius: 18px; padding: 10px; min-width: 230px; display: flex; flex-direction: column; box-shadow: 0 18px 40px rgba(16,24,51,.18); }
.sheet a { color: var(--ink); padding: 10px 14px; border-radius: 10px; }
.sheet a[aria-current] { background: var(--sky); color: var(--royal); font-weight: 600; }

/* الواجهة */
.hero { background: var(--royal); color: var(--white); padding-top: 64px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: end; }
.hero-copy { padding-bottom: 96px; }
.hero h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.25; }
.lang-en .hero h1 { letter-spacing: -.5px; }
.hero .lead { margin-top: 22px; color: var(--on-royal); font-size: 18px; font-weight: 300; max-width: 540px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn { display: inline-block; padding: 13px 28px; border-radius: 14px; font-weight: 600; font-size: 16px; transition: transform .15s, background .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn.sun { background: var(--sun); color: var(--ink); }
.btn.glass { background: rgba(255,255,255,.13); color: var(--white); }
.btn.glass:hover { background: rgba(255,255,255,.2); }
.btn.royal { background: var(--royal); color: var(--white); }
.btn.royal:hover { background: var(--royal-2); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 18px 40px; margin-top: 50px; font-size: 14px; color: var(--on-royal); }
.hero-facts b { display: block; color: var(--white); font-size: 20px; font-weight: 600; }
.device { justify-self: center; width: 320px; height: 520px; background: #0D1A55; border-radius: 46px 46px 0 0; padding: 15px 15px 0; box-shadow: 0 -10px 60px rgba(0,0,0,.22); }
.screen { background: #F4F6FC; height: 100%; border-radius: 32px 32px 0 0; padding: 46px 18px 0; color: var(--ink); }
.scr-title { text-align: center; font-size: 13px; color: var(--mute); margin: 0 auto 18px; }
.tile { background: var(--white); border-radius: 18px; padding: 14px 16px; margin-bottom: 12px; box-shadow: 0 6px 18px rgba(16,24,51,.08); font-size: 14px; line-height: 1.7; }
.tile b { display: block; color: var(--royal); font-size: 13px; font-weight: 600; }

/* الأقسام */
.block { padding: 96px 32px 0; }
.block.tight { padding-top: 72px; }
main > .block:last-child, main > article.block:last-child { padding-bottom: 104px; }
.sec-title { font-size: clamp(28px, 3.4vw, 42px); }
.sec-note { color: var(--mute); font-size: 17px; margin-top: 10px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 46px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { background: var(--sky); border-radius: var(--radius); padding: 30px 28px; }
.card h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.card p { color: var(--mute); font-size: 15.5px; }
.chip { width: 52px; height: 52px; border-radius: 16px; background: var(--royal); color: var(--white); display: grid; place-items: center; margin-bottom: 22px; flex: none; }
.ic { width: 26px; height: 26px; }
.ticks { list-style: none; margin-top: 18px; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.tick { width: 20px; height: 20px; flex: none; margin-top: 4px; color: var(--royal); }

.dark-band { background: var(--ink); color: var(--white); border-radius: 32px; padding: 60px 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.dark-band .sec-note { color: #AEB6D3; }
.steps { list-style: none; }
.steps li { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid #2A3360; }
.steps .tick { background: var(--sun); color: var(--ink); border-radius: 50%; padding: 3px; width: 22px; height: 22px; }
.steps b { display: block; font-weight: 600; font-size: 18px; }
.steps span { color: #AEB6D3; font-size: 15px; }

.app-card { display: flex; align-items: center; justify-content: space-between; gap: 40px; background: var(--sky); border-radius: 28px; padding: 42px 48px; margin-top: 40px; }
.app-card h3 { font-size: 26px; font-weight: 600; }
.app-card p { color: var(--mute); margin-top: 6px; }
/* هوية أعمال المحمدعلي: أزرق وذهبي */
.work-id { display: grid; grid-template-columns: .9fr 1.1fr; margin-top: 40px; border-radius: 28px; overflow: hidden; background: #1B2A4E; color: #F2EBDD; border: 1px solid #C9A45C; }
.wk-visual { background: #13203F; display: grid; place-items: center; padding: 40px; min-height: 260px; border-inline-end: 1px solid rgba(201,164,92,.45); }
.wk-logo { width: min(260px, 80%); height: auto; }
.wk-body { padding: 40px 44px; }
.wk-head { display: flex; align-items: center; gap: 14px; }
.wk-icon { width: 64px; height: 64px; border-radius: 16px; border: 2px solid #C9A45C; }
.wk-body h3 { font-size: 24px; color: #C9A45C; }
.wk-body p { margin-top: 14px; color: #D9DEEA; }
.wk-swatches { display: flex; gap: 8px; margin-top: 18px; }
.wk-swatches i { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); }
.wk-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.wk-btn { background: #C9A45C; color: #13203F; }
.wk-btn:hover { background: #D8B672; }
.app-links { display: grid; gap: 10px; flex: none; }
.app-links .btn { text-align: center; }
.small-note { color: var(--mute); font-size: 14px; margin-top: 22px; }
.small-note a { color: var(--royal); text-decoration: underline; text-underline-offset: 3px; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.pillar { background: var(--sky); border-radius: var(--radius); padding: 28px; }
.pillar h3 { font-size: 19px; margin-bottom: 6px; }
.pillar p { color: var(--mute); font-size: 15.5px; }

/* لوحة الواجهة */
.hero-grid:has(.board) { align-items: center; padding-bottom: 80px; }
.hero-grid:has(.board) .hero-copy { padding-bottom: 0; }
.board { background: var(--white); color: var(--ink); border-radius: 26px; padding: 26px; box-shadow: 0 24px 60px rgba(8,16,60,.28); max-width: 420px; width: 100%; justify-self: center; }
.board-head b { display: block; font-size: 17px; }
.board-head span { font-size: 13px; color: var(--mute); }
.chart { width: 100%; height: auto; margin: 14px 0 8px; }
.board-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.board-rows > div { display: flex; align-items: center; gap: 8px; background: var(--sky); border-radius: 14px; padding: 10px 12px; font-size: 13.5px; font-weight: 500; line-height: 1.4; }
.bi { width: 30px; height: 30px; border-radius: 10px; background: var(--royal); color: #fff; display: grid; place-items: center; flex: none; }
.bi .ic { width: 17px; height: 17px; }

.grid4:has(> .card:nth-child(5)) { grid-template-columns: repeat(6, 1fr); }
.grid4:has(> .card:nth-child(5)) > .card { grid-column: span 2; }
.grid4:has(> .card:nth-child(5)) > .card:nth-child(n+4) { grid-column: span 3; }

/* شريط الثقة */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.trust > div { padding: 28px 26px; border-inline-start: 1px solid var(--line); }
.trust > div:first-child { border-inline-start: 0; }
.trust b { display: block; font-size: 26px; color: var(--royal); font-weight: 700; }
.trust span { color: var(--mute); font-size: 14.5px; }
/* أزرار ثابتة */
.float-act { position: fixed; bottom: 22px; inset-inline-end: 22px; display: grid; gap: 12px; z-index: 30; }
.float-act a { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 10px 26px rgba(16,24,51,.25); }
.float-act svg { width: 28px; height: 28px; }
.fa-wa { background: #25D366; }
.fa-call { background: var(--royal); }
.crow dd a.map { display: block; margin-top: 6px; font-size: 13px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

/* الرخصة */
.hero-grid:has(.lic-card) { align-items: center; padding-bottom: 80px; }
.hero-grid:has(.lic-card) .hero-copy { padding-bottom: 0; }
.lic-card { background: var(--white); color: var(--ink); border-radius: 26px; padding: 26px 28px; box-shadow: 0 24px 60px rgba(8,16,60,.28); max-width: 440px; justify-self: center; width: 100%; }
.lic-head { display: flex; gap: 14px; align-items: center; padding-bottom: 16px; border-bottom: 2px solid var(--sky); }
.lic-head .seal { width: 44px; height: 44px; background: var(--sun); color: var(--ink); border-radius: 50%; padding: 10px; flex: none; }
.lic-head b { display: block; font-size: 17px; }
.lic-head span { font-size: 13px; color: var(--mute); }
.lic-card dl > div { display: flex; justify-content: space-between; gap: 18px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.lic-card dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.lic-card dt { color: var(--mute); flex: none; }
.lic-card dd { font-weight: 600; text-align: end; }
.lic-home { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; border: 2px solid var(--royal); border-radius: 28px; padding: 48px; }
.lic-home .btn { margin-top: 24px; }
.lic-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; margin-top: 6px; }
.lic-grid.wide { grid-template-columns: repeat(3, 1fr); margin-top: 32px; }
.lic-grid > div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.lic-grid dt { font-size: 13px; color: var(--mute); }
.lic-grid dd { font-weight: 600; font-size: 17px; margin-top: 2px; }
.acts { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: 16px; }
.acts th { text-align: start; font-size: 13px; color: var(--mute); font-weight: 500; padding: 10px 14px; background: var(--sky); }
.acts td { padding: 13px 14px; border-bottom: 1px solid var(--line); font-weight: 500; }
.acts td:last-child, .acts th:last-child { width: 120px; color: var(--royal); }

/* نموذج الطلب */
.form-card { display: grid; grid-template-columns: .7fr 1.3fr; gap: 48px; background: var(--sky); border-radius: 28px; padding: 48px; }
.req-form { display: grid; gap: 18px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.field small { color: var(--mute); font-weight: 400; }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; color: var(--ink); background: var(--white); border: 1.5px solid #D5DEFA; border-radius: 14px; padding: 12px 14px; width: 100%; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--royal); box-shadow: 0 0 0 4px rgba(27,63,204,.14); }
.lang-ar .field input[dir="ltr"] { text-align: right; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--mute); }
.check input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--royal); flex: none; }
.check a { color: var(--royal); text-decoration: underline; }
.req-form .btn { justify-self: start; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.req-form .btn[disabled] { opacity: .55; cursor: not-allowed; }
.form-note { font-size: 13px; }

/* الصفحات الداخلية */
.page-head { background: var(--royal); color: var(--white); padding: 64px 0 72px; }
.page-head h1 { font-size: clamp(34px, 4.6vw, 54px); }
.page-head .lead { color: var(--on-royal); font-size: 18px; font-weight: 300; margin-top: 14px; }
.updated { margin-top: 18px; font-size: 14px; color: var(--on-royal); }
.two { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }
.prose p { color: var(--mute); font-size: 17px; }
.prose p + p { margin-top: 18px; }
.facts.card { background: var(--white); border: 1px solid var(--line); }
.facts h2, .stack h2 { font-size: 20px; margin-bottom: 16px; }
.facts dl { display: grid; gap: 14px; }
.facts dl > div { display: grid; gap: 2px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.facts dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt { font-size: 13px; color: var(--mute); }
.facts dd { font-weight: 500; }
.stack { display: grid; gap: 20px; }
.contact { display: grid; gap: 0; }
.crow { display: flex; gap: 18px; align-items: center; padding: 16px 0; }
.crow + .crow { border-top: 1px solid #D5DEFA; }
.crow .chip { margin: 0; width: 48px; height: 48px; }
.crow dt { font-size: 13px; color: var(--mute); }
.crow dd { font-weight: 600; font-size: 17px; }
.crow dd a { color: var(--royal); }
.crow dd a.wa { display: inline-block; margin-inline-start: 10px; font-size: 13px; background: #25D366; color: #fff; padding: 3px 12px; border-radius: 20px; vertical-align: middle; }
.note { display: flex; gap: 18px; align-items: flex-start; background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 28px; margin-top: 28px; }
.note .ic { width: 30px; height: 30px; color: var(--sun); flex: none; }
.note h3 { font-size: 18px; margin-bottom: 4px; }
.note p { color: #C3CAE2; font-size: 15.5px; }
.stack .note { margin-top: 0; }
.policy { max-width: 860px; }
.psec { padding: 28px 0; border-bottom: 1px solid var(--line); }
.psec h2 { font-size: 21px; display: flex; gap: 14px; align-items: baseline; margin-bottom: 10px; }
.psec h2 span { color: var(--royal); font-size: 15px; font-weight: 600; min-width: 26px; }
.psec p { color: var(--mute); padding-inline-start: 40px; }
.psec p + p { margin-top: 10px; }
.psec.hl { background: var(--sky); border-radius: var(--radius); border-bottom: 0; padding: 28px; margin: 12px 0; }
.psec.hl p { color: var(--ink); }

/* التذييل */
.foot { border-top: 1px solid var(--line); padding: 54px 0 32px; color: var(--mute); font-size: 14px; }
.foot-grid { display: flex; justify-content: space-between; gap: 40px; }
.brand-light { color: var(--ink); }
.brand-light .mark { color: var(--royal); --mark-dot: var(--white); }
.foot-legal { color: var(--ink); margin-top: 14px; }
.foot-names, .foot-meta { margin-top: 4px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 26px; align-content: flex-start; }
.foot-links a:hover { color: var(--royal); }
.foot-base { margin-top: 34px; }

@media (max-width: 1100px) {
  .grid4, .trust { grid-template-columns: repeat(2, 1fr); }
  .grid4:has(> .card:nth-child(5)) { grid-template-columns: repeat(2, 1fr); }
  .grid4:has(> .card:nth-child(5)) > .card, .grid4:has(> .card:nth-child(5)) > .card:nth-child(n+4) { grid-column: auto; }
  .grid4:has(> .card:nth-child(5)) > .card:last-child { grid-column: 1 / -1; }
  .trust > div:nth-child(3) { border-inline-start: 0; }
  .trust > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 920px) {
  .nav, .top-row > .lang { display: none; }
  .burger { display: block; }
  .hero { padding-top: 44px; }
  .hero-grid, .dark-band, .two, .grid2, .pillars, .lic-home, .lic-grid.wide, .form-card, .row2, .work-id { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 40px; }
  .device { width: 280px; height: 360px; }
  .dark-band { padding: 40px 28px; gap: 24px; }
  .app-card { flex-direction: column; align-items: flex-start; padding: 32px 28px; }
  .foot-grid { flex-direction: column; }
  .block { padding-top: 64px; }
}
@media (max-width: 560px) {
  .wrap, .block { padding-inline: 16px; }
  .float-act { bottom: 14px; inset-inline-end: 14px; }
  .float-act a { width: 50px; height: 50px; }
  .grid4, .lic-grid { grid-template-columns: 1fr; }
  .lic-home, .form-card { padding: 28px 20px; }
  .hero-facts { gap: 14px 28px; }
  .psec p { padding-inline-start: 0; }
  .card { padding: 26px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* رابط بوابة العملاء في الرأس */
.top-act { display: flex; align-items: center; gap: 10px; }
.portal-link { background: var(--sun); color: var(--ink); padding: 6px 16px; border-radius: 30px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.portal-link:hover { background: #FFD66E; }
@media (max-width: 920px) { .top-act .lang { display: none; } }

/* بيانات الرخصة بشكل واضح */
.lic { margin-top: 18px; padding: 16px 18px; border: 1px solid var(--line); border-inline-start: 4px solid var(--royal); border-radius: 14px; background: var(--sky, #EAF0FF); color: var(--ink); max-width: 520px; }
.lic-k { display: block; font-size: 12.5px; color: var(--mute); }
.lic-name { font-size: 16.5px; font-weight: 700; line-height: 1.6; margin-top: 2px; }
.lic-rows { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 10px; }
.lic-rows dt { font-size: 12.5px; color: var(--mute); }
.lic-rows dd { margin: 0; font-size: 16px; font-weight: 700; }
.lic-note { margin-top: 8px; font-size: 12.5px; color: var(--mute); }



.brand, .nav a, .top-act a { white-space: nowrap; }
@media (max-width: 1100px) { .nav { gap: 20px; } }

/* الرخصة جنب عنوان الصفحة الرئيسية */
.hero-lic { display: inline-flex; flex-direction: column; gap: 2px; margin-bottom: 18px; padding: 10px 16px; border-radius: 14px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); border-inline-start: 4px solid var(--sun); font-size: 13px; line-height: 1.55; color: var(--on-royal); }
.hero-lic b { color: var(--white); font-weight: 600; font-size: 14.5px; }
.hero-lic i { font-style: normal; margin: 0 8px; opacity: .6; }
.hero-lic bdi { unicode-bidi: isolate; color: var(--sun); font-weight: 600; }
