/* =========================================================
   الدؤوب للبرمجيات — تنسيق الموقع
   الهوية: ألوان الشعار الرسمي (أحمر، أصفر، سماوي) مع الأسود
   ========================================================= */

:root {
  --red: #ec2127;
  --yellow: #fbb019;
  --cyan: #23c1f1;

  --ink: #14161b;
  --ink-2: #2b2f38;
  --slate: #5a6170;
  --line: #e4e7ec;
  --mist: #f3f5f8;
  --paper: #ffffff;

  --display: "Alexandria", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --body: "IBM Plex Sans Arabic", system-ui, sans-serif;

  --wrap: 1240px;
  --pad: 32px;
  --radius: 26px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- الأزرار ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 30px; border-radius: 999px;
  font-family: var(--body); font-weight: 600; font-size: 16px;
  border: 2px solid var(--ink); cursor: pointer;
  transition: background-color .18s, color .18s, border-color .18s;
}
.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- الشريط العلوي ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); }
.site-header.scrolled { box-shadow: 0 1px 0 var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 700; font-size: 20px; white-space: nowrap; }
.brand img { width: 38px; }
.nav { display: flex; align-items: center; gap: 34px; font-size: 16px; color: var(--slate); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav .pill { background: var(--ink); color: #fff; border-radius: 999px; padding: 10px 22px; font-weight: 600; font-size: 15px; }
.nav .pill:hover { background: var(--ink-2); color: #fff; }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; border-radius: 12px; cursor: pointer; color: var(--ink); }
.menu-btn svg { width: 26px; height: 26px; margin: auto; }

/* ---------- الواجهة ---------- */
.hero .wrap {
  display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 24px;
  min-height: 640px; padding-top: 16px; padding-bottom: 64px;
}
.hero h1 { font-family: var(--display); line-height: .98; letter-spacing: -1px; }
.hero h1 .a { display: block; font-weight: 800; font-size: clamp(76px, 10vw, 150px); }
.hero h1 .b { display: block; font-weight: 300; font-size: clamp(38px, 4.6vw, 66px); color: var(--slate); margin-top: 14px; letter-spacing: 0; }
.hero .lead { margin-top: 34px; font-size: 21px; line-height: 1.75; max-width: 30ch; color: var(--ink-2); }
.hero .actions { display: flex; gap: 12px; margin-top: 38px; flex-wrap: wrap; }
.scene { width: 100%; overflow: visible; }
.scene a:focus-visible { outline: none; }
.scene a:focus-visible image { outline: 3px solid var(--cyan); }
@media (prefers-reduced-motion: no-preference) {
  .scene .drop { animation: drop .7s cubic-bezier(.2,.8,.2,1) both; }
  @keyframes drop { from { transform: translateY(-46px); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* ---------- الأقسام ---------- */
.section { padding: 112px 0; }
.section.alt { background: var(--mist); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 44px; }
.sec-head h2, .h2 { font-family: var(--display); font-weight: 700; font-size: clamp(38px, 4.4vw, 52px); line-height: 1.15; }
.sec-head p { color: var(--slate); max-width: 38ch; }

/* ---------- بطاقات المشاريع ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.card {
  grid-column: span 2; position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card.wide { grid-column: span 3; padding: 36px; }
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--accent); }
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(20,22,27,.35); }
.card .top { display: flex; justify-content: space-between; align-items: start; }
.card .icon { width: 72px; height: 72px; border-radius: 18px; }
.card.wide .icon { width: 92px; height: 92px; border-radius: 22px; }
.card h3 { font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1.25; margin-top: 4px; }
.card.wide h3 { font-size: 38px; }
.card .tagline { font-family: var(--display); font-weight: 500; color: var(--accent-text); font-size: 17px; }
.card p { color: #3a3f4a; font-size: 16px; }
.card .foot { margin-top: auto; padding-top: 10px; display: flex; gap: 20px; font-weight: 600; font-size: 15px; }
.card .foot a { border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.card .foot a.site { color: var(--slate); border-color: var(--line); }
.card .foot a:hover { color: var(--accent-text); }
.card .stretch::after { content: ""; position: absolute; inset: 0; }
.card .foot a.site { position: relative; z-index: 1; }
.status { font-size: 13px; font-weight: 600; padding: 5px 14px; border-radius: 999px; background: var(--mist); color: var(--slate); white-space: nowrap; }

/* ---------- من نحن ---------- */
.about .wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 72px; align-items: start; }
.about .statement { font-family: var(--display); font-weight: 400; font-size: clamp(20px, 1.9vw, 24px); line-height: 1.9; margin-top: 24px; max-width: 40ch; color: var(--ink-2); }
.pillars { display: grid; gap: 22px; margin-top: 8px; }
.pillar { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px 28px; display: grid; grid-template-columns: 44px 1fr; gap: 6px 18px; }
.pillar svg { width: 44px; height: 44px; grid-row: span 2; }
.pillar h3 { font-family: var(--display); font-weight: 700; font-size: 21px; }
.pillar p { color: var(--slate); }

/* ---------- ماذا نبني ---------- */
.build .sec-head { margin-bottom: 20px; }
.caps { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.caps li { grid-column: span 2; }
.caps li:nth-child(n+4) { grid-column: span 3; }
.caps li { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px; display: grid; gap: 10px; align-content: start; }
.caps svg { width: 44px; height: 44px; }
.caps h3 { font-family: var(--display); font-weight: 700; font-size: 20px; }
.caps p { color: var(--slate); font-size: 16px; }

/* ---------- لمسة الهوية في الواجهة ---------- */
.hero .tri-mini { display: flex; gap: 6px; margin-top: 30px; }
.hero .tri-mini i { display: block; width: 46px; height: 6px; border-radius: 3px; }
.hero .tri-mini i:nth-child(1) { background: var(--red); }
.hero .tri-mini i:nth-child(2) { background: var(--yellow); }
.hero .tri-mini i:nth-child(3) { background: var(--cyan); }
.hero .lead { margin-top: 24px; }

/* ---------- صفحة 404 ---------- */
.nf { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.nf h1 { font-family: var(--display); font-weight: 800; font-size: clamp(64px, 10vw, 120px); line-height: 1; }
.nf p { color: var(--slate); font-size: 19px; margin: 18px 0 30px; }

/* ---------- تواصل معنا ---------- */
.contact .panel { background: #fff; border: 1px solid var(--line); border-radius: 32px; padding: 56px; display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; }
.contact .note { color: var(--slate); margin: 18px 0 30px; max-width: 34ch; }
.lines { list-style: none; display: grid; gap: 20px; }
.lines .k { display: block; font-size: 14px; color: var(--slate); }
.lines .v { font-family: var(--display); font-weight: 500; font-size: 21px; }
.lines a.v:hover { color: #0b7fa6; }
.wa { margin-top: 30px; }

.form { position: relative; display: grid; gap: 16px; align-content: start; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.field label span { font-weight: 400; color: var(--slate); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--mist); border: 1.5px solid transparent; border-radius: 14px; padding: 13px 16px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; background: #fff; border-color: var(--ink); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-status { min-height: 1.8em; font-size: 15px; }
.form-status.ok { color: #0f7a4a; }
.form-status.err { color: #c8161c; }

/* ---------- التذييل ---------- */
.tri { display: flex; height: 6px; }
.tri i { flex: 1; }
.tri i:nth-child(1) { background: var(--red); }
.tri i:nth-child(2) { background: var(--yellow); }
.tri i:nth-child(3) { background: var(--cyan); }
.site-footer { background: var(--ink); color: #c4c8d0; font-size: 15px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-top: 64px; padding-bottom: 40px; }
.site-footer .brand { color: #fff; }
.site-footer .brand img { width: 34px; }
.site-footer p { margin-top: 16px; max-width: 34ch; }
.site-footer h4 { color: #fff; font-family: var(--display); font-weight: 600; font-size: 16px; margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a:hover { color: #fff; }
.site-footer .copy { grid-column: 1 / -1; border-top: 1px solid #2a2e37; padding-top: 24px; font-size: 14px; color: #8d93a0; }

/* ---------- صفحة المشروع ---------- */
.p-hero { position: relative; overflow: hidden; padding: 56px 0 64px; }
.p-hero::before { content: ""; position: absolute; inset: 0; background: var(--accent); opacity: .07; }
.p-hero .wrap { position: relative; }
.p-deco { position: absolute; left: 7%; top: 50%; width: min(24vw, 300px); transform: translateY(-50%); color: var(--accent); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .p-deco { animation: deco 1s .1s cubic-bezier(.2,.8,.2,1) both; }
  @keyframes deco { from { opacity: 0; transform: translateY(-42%); } to { opacity: 1; transform: translateY(-50%); } }
}
.crumbs { font-size: 15px; color: var(--slate); margin-bottom: 34px; }
.crumbs a:hover { color: var(--ink); }
.p-head { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; }
.p-head .icon { width: 148px; height: 148px; border-radius: 34px; box-shadow: 0 24px 50px -28px rgba(20,22,27,.5); }
.p-head h1 { font-family: var(--display); font-weight: 800; font-size: clamp(48px, 6vw, 84px); line-height: 1.35; }
.p-head h1 .latin { font-weight: 300; font-size: .38em; color: var(--slate); margin-right: 16px; }
.p-head .tagline { font-family: var(--display); font-weight: 500; font-size: clamp(20px, 2vw, 26px); color: var(--accent-text); margin-top: 2px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.meta span { font-size: 14px; font-weight: 600; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.p-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

.p-about { padding: 80px 0 40px; }
.p-about p { font-family: var(--display); font-weight: 400; font-size: clamp(21px, 2.1vw, 27px); line-height: 1.85; max-width: 46ch; }
.p-features { padding: 40px 0 80px; }
.groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.group { background: var(--mist); border-radius: var(--radius); padding: 32px; }
.group h2 { font-family: var(--display); font-weight: 700; font-size: 24px; margin-bottom: 18px; }
.group ul { list-style: none; display: grid; gap: 14px; }
.group li { display: grid; grid-template-columns: 14px 1fr; gap: 14px; align-items: start; }
.group li::before { content: ""; width: 12px; height: 12px; margin-top: 9px; transform: rotate(45deg) skew(-8deg, -8deg); background: var(--accent); border-radius: 2px; }

.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
.steps li { counter-increment: s; border-top: 3px solid var(--accent); padding-top: 18px; font-size: 18px; }
.steps li::before { content: counter(s); display: block; font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1; color: var(--accent-text); margin-bottom: 10px; }

.cta-band { background: var(--ink); color: #fff; border-radius: 32px; padding: 52px 56px; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3vw, 38px); }
.cta-band p { color: #c4c8d0; margin-top: 6px; }
.cta-band .btn-solid { background: #fff; color: var(--ink); border-color: #fff; }
.cta-band .btn-solid:hover { background: var(--yellow); border-color: var(--yellow); }
.cta-band .btn-ghost { color: #fff; border-color: #545a66; }
.cta-band .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.others { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 26px; }
.others a { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px; font-family: var(--display); font-weight: 700; font-size: 18px; transition: border-color .18s; }
.others a:hover { border-color: var(--ink); }
.others img { width: 52px; height: 52px; border-radius: 13px; }

/* ---------- الشاشات المتوسطة والصغيرة ---------- */
@media (max-width: 1000px) {
  .hero .wrap, .about .wrap, .build .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero .wrap { min-height: 0; }
  .bento { grid-template-columns: 1fr 1fr; }
  .card, .card.wide { grid-column: span 1; }
  .card.wide { grid-column: span 2; }
  .contact .panel { grid-template-columns: 1fr; gap: 40px; padding: 40px; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .others { grid-template-columns: 1fr 1fr; }
  .caps { grid-template-columns: 1fr 1fr; }
  .caps li, .caps li:nth-child(n+4) { grid-column: span 1; }
  .caps li:last-child { grid-column: span 2; }
}
@media (max-width: 720px) {
  :root { --pad: 18px; }
  body { font-size: 16px; }
  .site-header .wrap { height: 68px; }
  .brand { font-size: 17px; }
  .brand img { width: 32px; }
  .menu-btn { display: grid; }
  .nav {
    display: none; position: absolute; top: 68px; inset-inline: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--pad) 18px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav .pill { margin-top: 12px; text-align: center; border: 0; padding: 14px; }
  .hero .lead { font-size: 18px; }
  .section { padding: 72px 0; }
  .sec-head { flex-direction: column; align-items: start; }
  .bento { grid-template-columns: 1fr; }
  .card, .card.wide { grid-column: span 1; padding: 24px; }
  .card.wide h3 { font-size: 32px; }
  .form .row2 { grid-template-columns: 1fr; }
  .contact .panel { padding: 26px; border-radius: 24px; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .p-head { grid-template-columns: 1fr; gap: 20px; }
  .p-deco { display: none; }
  .p-head .icon { width: 104px; height: 104px; border-radius: 26px; }
  .steps { grid-template-columns: 1fr; }
  .cta-band { padding: 34px 26px; border-radius: 24px; }
  .others { grid-template-columns: 1fr; }
  .group { padding: 24px; }
  .caps { grid-template-columns: 1fr; }
  .caps li:last-child { grid-column: span 1; }
}
