/* IBM Plex Sans Arabic — مستضاف محليًا (arabic + latin) */
@font-face{font-family:"IBM Plex Sans Arabic";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/plex-arabic-arabic-400.woff2) format("woff2");unicode-range:U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;}
@font-face{font-family:"IBM Plex Sans Arabic";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/plex-arabic-latin-400.woff2) format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:"IBM Plex Sans Arabic";font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/plex-arabic-arabic-500.woff2) format("woff2");unicode-range:U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;}
@font-face{font-family:"IBM Plex Sans Arabic";font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/plex-arabic-latin-500.woff2) format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:"IBM Plex Sans Arabic";font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/plex-arabic-arabic-700.woff2) format("woff2");unicode-range:U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;}
@font-face{font-family:"IBM Plex Sans Arabic";font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/plex-arabic-latin-700.woff2) format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

/* ==========================================================
   نمو للأعمال — صفحة الهبوط
   ========================================================== */
:root {
  --bg: #F7F6F2;
  --surface: #FFFFFF;
  --text: #121417;
  --muted: #4A4F55;
  --muted-2: #5A5F65;
  --primary: #0B6B4E;
  --primary-hover: #095A41;
  --primary-light: #66BC9A;
  --border: #E0DED7;
  --border-2: #D5D3CC;
  --dark: #121417;
  --wa: #25D366;
  --error: #B42318;
  --radius-card: 20px;
  --radius-btn: 12px;
  --max: 1200px;
  --gutter: 20px;
  --header-h: 72px;

  /* الحركة */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --dur-fast: 180ms;
  --dur-base: 320ms;
  --dur-slow: 600ms;
  --rise: 24px;
}

/* زاوية الحد المتدرج المتحرك لبطاقة «الأكثر طلبًا» */
@property --angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 8px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}
.section--dark :focus-visible { outline-color: #7FD1B0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  right: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--dark);
  color: #fff;
  border-radius: var(--radius-btn);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container {
  position: relative;
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* عنصر مراقبة أعلى الصفحة (لتحويل الهيدر لزجاجي) */
.top-sentinel {
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 24px;
  pointer-events: none;
}

/* شريط تقدم القراءة — CSS فقط، يظهر في المتصفحات الداعمة */
.progress { display: none; }
@supports (animation-timeline: scroll()) {
  .progress {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 70;
    height: 2px;
    background: var(--primary);
    transform-origin: right;
    transform: scaleX(0);
    animation: progress linear both;
    animation-timeline: scroll(root);
    pointer-events: none;
  }
}
@keyframes progress { to { transform: scaleX(1); } }

/* ==========================================================
   الأزرار
   ========================================================== */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 26px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition:
    transform var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast),
    border-color var(--dur-base),
    color var(--dur-fast);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: scale(.98); }

.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-hover); }

/* ظل الزر: عنصر وهمي نحرك شفافيته فقط */
.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  box-shadow: 0 16px 30px -12px rgba(11, 107, 78, .6);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}
@media (hover: hover) {
  .btn--primary:hover { transform: translateY(-2px); }
  .btn--primary:hover::before { opacity: 1; }
  .btn--primary:active { transform: scale(.98); }
}

/* لمعة الضوء على الأزرار الأساسية */
.btn-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}
.btn-shine::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 45%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, .32) 50%, transparent 100%);
  transform: translateX(-160%);
  animation: shine 4.6s var(--ease-out) 1.6s infinite;
}
@keyframes shine {
  0% { transform: translateX(-160%); }
  24%, 100% { transform: translateX(340%); }
}

.btn-arrow { transition: transform var(--dur-base) var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(-4px); }

.btn--outline { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn--outline:hover { border-color: var(--text); }

.btn--wa:hover { border-color: var(--primary); color: var(--primary); }
.btn--wa:hover svg { animation: wiggle 600ms var(--ease-out); }
@keyframes wiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-14deg); }
  60% { transform: rotate(10deg); }
}

.btn--block { width: 100%; }

/* حالات زر الإرسال: تحميل ثم ✓ */
.btn-label { display: inline-flex; align-items: center; gap: 10px; transition: opacity var(--dur-fast); }
.btn-spinner,
.btn-check {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -11px 0 0 -11px;
  width: 22px;
  height: 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-fast), transform var(--dur-base) var(--ease-spring);
}
.btn-spinner {
  border: 2.5px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
}
.btn-check { transform: scale(.4); }
.btn.is-loading .btn-label,
.btn.is-done .btn-label { opacity: 0; }
.btn.is-loading .btn-spinner { opacity: 1; animation: spin 700ms linear infinite; }
.btn.is-done .btn-check { opacity: 1; transform: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================
   الهيدر — شفاف ثم زجاجي عند التمرير
   ========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(247, 246, 242, .72);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(213, 211, 204, .7);
  box-shadow: 0 10px 30px -20px rgba(18, 20, 23, .35);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}
.site-header.is-scrolled::before { opacity: 1; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header::before { background: rgba(247, 246, 242, .96); }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}
.logo { display: inline-flex; align-items: center; min-height: 48px; }
.logo img {
  height: 48px;
  width: auto;
  transform-origin: right center;
  transition: transform var(--dur-base) var(--ease-out);
}
.is-scrolled .logo img { transform: scale(.86); }

.header-actions { display: flex; align-items: center; gap: 8px; }

.nav ul { display: flex; gap: 32px; }
.nav a {
  position: relative;
  display: inline-block;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--dur-fast);
}
.nav a:hover { color: var(--text); }

.btn-pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 20px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--dark);
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast);
}
.btn-pill:hover { background: #2A2E33; }
.btn-pill:active { transform: scale(.98); }

/* زر القائمة (جوال فقط، ويظهر فقط إذا JavaScript شغال) */
.menu-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--text);
  background: rgba(255, 255, 255, .6);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out);
}
.menu-toggle:active { transform: scale(.94); }
.menu-toggle span {
  grid-area: 1 / 1;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast);
}
.menu-toggle span:nth-child(1) { transform: translateY(-6px); }
.menu-toggle span:nth-child(3) { transform: translateY(6px); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }

@media (max-width: 899px) {
  .nav { display: none; }
  .js .menu-toggle { display: grid; }
  .js .nav {
    display: block;
    position: absolute;
    top: calc(100% + 8px);
    right: var(--gutter);
    left: var(--gutter);
    padding: 8px;
    background: rgba(247, 246, 242, .995);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: 0 24px 48px -24px rgba(18, 20, 23, .35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(.98);
    transform-origin: top center;
    transition:
      opacity var(--dur-base) var(--ease-out),
      transform var(--dur-base) var(--ease-out),
      visibility 0s linear var(--dur-base);
  }
  .js .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }
  .nav ul { flex-direction: column; gap: 2px; }
  .nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 10px 14px;
    font-size: 16px;
    color: var(--text);
    border-radius: var(--radius-btn);
  }
  .nav a:active { background: rgba(11, 107, 78, .08); }
}

/* خط سفلي يتمدد من اليمين لليسار (كمبيوتر) */
@media (min-width: 900px) {
  .nav a::after {
    content: "";
    position: absolute;
    right: 0;
    left: 0;
    bottom: 4px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--dur-base) var(--ease-out);
  }
  .nav a:hover::after,
  .nav a:focus-visible::after { transform: scaleX(1); }
}

/* ==========================================================
   الأقسام
   ========================================================== */
.section { padding-block: 72px; scroll-margin-top: var(--header-h); }
.section--white { background: var(--surface); border-block: 1px solid var(--border); }
.section--dark { background: var(--dark); color: #fff; }

.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head h2 {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.01em;
}
.section-head p { margin-top: 12px; color: var(--muted); font-size: 17px; }
.section--dark .section-head p { color: #C9CCD0; }

/* الظهور عند التمرير — يُخفى فقط إذا JavaScript شغال */
.js [data-reveal]:not(.is-visible) { opacity: 0; }
.js [data-reveal].is-visible {
  animation: reveal var(--dur-slow) var(--ease-out) calc(var(--i, 0) * 90ms) backwards;
}
@keyframes reveal {
  from { opacity: 0; transform: translate3d(0, var(--rise), 0); }
}

/* ==========================================================
   الخلفيات المتحركة (دوائر ضبابية + شبكة نقاط)
   ========================================================== */
.fx-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.hero .fx-bg { top: calc(var(--header-h) * -1); }
.hero .blob--1 {
  top: -120px; right: -140px; width: 620px; height: 620px;
  background: radial-gradient(closest-side, rgba(11, 107, 78, .18), rgba(11, 107, 78, 0));
  animation: drift-1 22s ease-in-out infinite;
}
.hero .blob--2 {
  top: 60px; left: -160px; width: 560px; height: 560px;
  background: radial-gradient(closest-side, rgba(102, 188, 154, .17), rgba(102, 188, 154, 0));
  animation: drift-2 25s ease-in-out infinite;
}
.hero .blob--3 {
  bottom: -220px; left: 35%; width: 460px; height: 460px;
  background: radial-gradient(closest-side, rgba(11, 107, 78, .12), rgba(11, 107, 78, 0));
  animation: drift-3 19s ease-in-out infinite;
}
.dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(18, 20, 23, .085) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
}
@keyframes drift-1 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-70px, 50px, 0) scale(1.08); }
}
@keyframes drift-2 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(80px, -40px, 0) scale(1.1); }
}
@keyframes drift-3 {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-60px, -50px, 0); }
}

/* ==========================================================
   الهيرو
   ========================================================== */
.hero {
  position: relative;
  isolation: isolate;
  padding-block: 48px 64px;
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero h1 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.015em;
}
.hero-lead {
  margin-top: 18px;
  max-width: 560px;
  font-size: 18px;
  color: var(--muted);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted-2);
}
.hero-note svg { width: 18px; height: 18px; color: var(--primary); }

/* رسم نافذة المتصفح: تطفو + ميلان مع الماوس */
.mock-float {
  perspective: 1000px;
  animation: float 6s ease-in-out infinite;
  will-change: transform;
}
@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -7px, 0); }
}
.mock {
  position: relative;
  background: #1B1E22;
  border-radius: var(--radius-card);
  padding: 14px;
  box-shadow: 0 30px 60px -30px rgba(18, 20, 23, .55);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 700ms var(--ease-out);
}
.mock.is-tilting { transition-duration: 140ms; will-change: transform; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 2px 4px 14px; direction: ltr; }
.mock-dot { width: 10px; height: 10px; border-radius: 50%; background: #3A3F45; }
.mock-url { flex: 1; height: 22px; margin-left: 10px; border-radius: 6px; background: #2A2E33; }
.mock-page {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 20px;
  background: #24282D;
  border-radius: 12px;
  overflow: hidden;
}

.mock-nav { display: flex; justify-content: space-between; align-items: center; }
.mock-logo { width: 64px; height: 14px; border-radius: 4px; background: var(--primary); }
.mock-links { display: flex; gap: 8px; }
.mock-links span { width: 34px; height: 8px; border-radius: 4px; background: #3A3F45; }
.mock-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; align-items: center; margin-top: 8px; }
.mock-lines { display: grid; gap: 8px; }
.mock-line { height: 12px; border-radius: 4px; background: #E9E7E1; }
.mock-line--sm { height: 8px; background: #4A4F55; }
.mock-cta { width: 88px; height: 24px; margin-top: 6px; border-radius: 6px; background: var(--primary); }
.mock-img { aspect-ratio: 4 / 3; border-radius: 10px; background: #33383E; }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 4px; }
.mock-cards span { height: 54px; border-radius: 8px; background: #2E3338; }

/* العناصر الوهمية تظهر بالتتابع (زخرفية فقط) */
.mb { animation: build 520ms var(--ease-out) calc(250ms + var(--d, 0) * 100ms) both; }
@keyframes build {
  from { opacity: 0; transform: translate3d(0, 8px, 0) scale(.97); }
}

/* الشارات الزجاجية */
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(18, 20, 23, .06), 0 6px 16px -10px rgba(18, 20, 23, .25);
  animation: build 500ms var(--ease-out) calc(1.25s + var(--i, 0) * 110ms) both;
}
.badge svg { width: 16px; height: 16px; color: var(--primary); }

/* ==========================================================
   الباقات
   ========================================================== */
.packages { display: grid; gap: 20px; }
.package {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base);
}
/* التوهج خلف البطاقة */
.package::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  box-shadow: 0 28px 56px -24px rgba(11, 107, 78, .45);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}
/* بقعة ضوء تتبع الماوس */
.package::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(11, 107, 78, .09), transparent 65%);
  opacity: 0;
  transition: opacity var(--dur-base);
  pointer-events: none;
}
@media (hover: hover) {
  .package:hover { transform: translateY(-6px); border-color: var(--primary); }
  .package:hover::before { opacity: 1; }
}
@media (hover: hover) and (pointer: fine) {
  .package:hover::after { opacity: 1; }
}

/* «الأكثر طلبًا»: حد متدرج يدور ببطء */
.package--featured {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    conic-gradient(from var(--angle), var(--primary) 0deg, var(--primary-light) 60deg, var(--primary) 130deg, var(--primary) 360deg) border-box;
  animation: spin-border 7s linear infinite;
}
.package--featured:hover { border-color: transparent; }
@keyframes spin-border { to { --angle: 360deg; } }
/* الظهور + دوران الحد معًا (حتى ما يلغي أحدهما الآخر) */
.js .package--featured.is-visible {
  animation:
    reveal var(--dur-slow) var(--ease-out) calc(var(--i, 0) * 90ms) backwards,
    spin-border 7s linear infinite;
}

.package-tag {
  position: absolute;
  top: -14px;
  inset-inline-start: 24px;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  border-radius: 999px;
}
.package-tag::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid var(--primary);
  opacity: 0;
  animation: tag-pulse 2.8s var(--ease-out) 1s infinite;
}
@keyframes tag-pulse {
  0% { opacity: .55; transform: scale(1); }
  70%, 100% { opacity: 0; transform: scale(1.3, 1.6); }
}

.package h3 { font-size: 22px; font-weight: 700; }
.package-desc { margin-top: 8px; color: var(--muted); }
.price { margin-top: 20px; font-size: 16px; color: var(--muted); }
.price strong {
  display: inline-block;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-inline: 4px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.features { display: grid; gap: 12px; margin-block: 24px 28px; }
.features li { display: flex; gap: 10px; align-items: flex-start; }
.features svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 4px;
  color: var(--primary);
  stroke-dasharray: 24;
  stroke-dashoffset: 0;
}
.features li:nth-child(2) { --k: 1; }
.features li:nth-child(3) { --k: 2; }
.features li:nth-child(4) { --k: 3; }
.js .package:not(.is-visible) .features svg { stroke-dashoffset: 24; }
.js .package.is-visible .features svg {
  animation: draw 480ms var(--ease-out) calc(var(--i, 0) * 90ms + 380ms + var(--k, 0) * 110ms) backwards;
}
@keyframes draw { from { stroke-dashoffset: 24; } }
.package .btn { margin-top: auto; }

/* ==========================================================
   نماذج الأعمال
   ========================================================== */
.work-grid { display: grid; gap: 20px; }
.work-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base);
}
.work-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  box-shadow: 0 28px 56px -26px rgba(18, 20, 23, .35);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}
@media (hover: hover) {
  .work-card:hover { transform: translateY(-6px); border-color: var(--border-2); }
  .work-card:hover::before { opacity: 1; }
}
.browser {
  background: #ECEAE4;
  padding: 10px 10px 0;
  border-radius: calc(var(--radius-card) - 1px) calc(var(--radius-card) - 1px) 0 0;
}
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 0 4px 10px; direction: ltr; }
.browser-bar .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #C9C6BD;
  flex: none;
  transition: background-color var(--dur-base);
}
.work-card:hover .dot:nth-child(1) { background: #FF5F57; }
.work-card:hover .dot:nth-child(2) { background: #FEBC2E; transition-delay: 40ms; }
.work-card:hover .dot:nth-child(3) { background: #28C840; transition-delay: 80ms; }
.browser-url {
  flex: 1;
  min-width: 0;
  margin-left: 8px;
  padding: 2px 10px;
  font-size: 12px;
  line-height: 18px;
  color: #4A4F55;
  background: #fff;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* إطار المعاينة: صورة الموقع كاملة، يظهر أعلاها فقط */
.shot {
  position: relative;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  background: #DDD9D0;
}
.shot img {
  width: 100%;
  height: auto;
  transform-origin: top center;
  transition: transform 1.1s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .work-card:hover .shot img {
    transform: translateY(-75%) scale(1.04);
    transition: transform 3.8s cubic-bezier(.45, 0, .25, 1);
  }
}
.work-body { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px 24px; flex: 1; }
.work-body h3 { font-size: 19px; font-weight: 700; line-height: 1.5; }
.work-body p { color: var(--muted); font-size: 15px; }
.work-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 44px;
  margin-top: auto;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out);
}
.work-link .arrow { display: inline-block; transition: transform var(--dur-base) var(--ease-out); }
.work-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.work-link:hover .arrow,
.work-card:hover .work-link .arrow { transform: translateX(-5px); }
.work-link:active { transform: scale(.98); }

/* ==========================================================
   كيف نشتغل — الخط يرسم نفسه ثم تظهر الكلمة
   ========================================================== */
.steps { display: grid; gap: 32px; margin: 0; padding: 0; list-style: none; }
.step { position: relative; padding-top: 20px; }
.step::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--primary);
  transform-origin: right;
}
.step-num { font-size: 14px; font-weight: 500; color: var(--muted-2); }
.step h3 {
  position: relative;
  margin-top: 4px;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary);
}
.step h3::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, var(--primary) 10%, #2E9E78 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}
@media (hover: hover) {
  .step:hover h3::after { opacity: 1; }
}
.step p { margin-top: 8px; color: var(--muted); }

.js .step[data-reveal]:not(.is-visible) { opacity: 1; }
.js .step[data-reveal].is-visible { animation: none; }
.js .step:not(.is-visible)::before { transform: scaleX(0); }
.js .step:not(.is-visible) > :not(.sr-only) { opacity: 0; }
.js .step.is-visible::before {
  animation: line-draw 650ms var(--ease-out) calc(var(--i, 0) * 260ms) backwards;
}
.js .step.is-visible > * {
  animation: reveal 520ms var(--ease-out) calc(var(--i, 0) * 260ms + 420ms) backwards;
}
@keyframes line-draw { from { transform: scaleX(0); } }

/* ==========================================================
   طلب عرض السعر — قسم داكن + بطاقة زجاجية
   ========================================================== */
.section--dark { position: relative; isolation: isolate; overflow: hidden; }
.section--dark .blob--1 {
  top: -200px; left: -180px; width: 640px; height: 640px;
  background: radial-gradient(closest-side, rgba(11, 107, 78, .42), rgba(11, 107, 78, 0));
  animation: drift-2 32s ease-in-out infinite;
}
.section--dark .blob--2 {
  bottom: -260px; right: -120px; width: 560px; height: 560px;
  background: radial-gradient(closest-side, rgba(102, 188, 154, .13), rgba(102, 188, 154, 0));
  animation: drift-1 36s ease-in-out infinite;
}

.quote-grid { display: grid; gap: 40px; align-items: start; }
.form-card {
  position: relative;
  padding: 28px 22px;
  color: var(--text);
  background: rgba(255, 255, 255, .97);
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: var(--radius-card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 30px 60px -30px rgba(0, 0, 0, .6);
}
.form-grid { display: grid; gap: 18px; }
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 500;
  transition: color var(--dur-fast);
}
.field:focus-within label { color: var(--primary); }
.field .req { color: var(--error); }
.field input,
.field select {
  width: 100%;
  min-height: 50px;
  padding: 10px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: #fff;
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius-btn);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color var(--dur-fast), background-color var(--dur-fast);
}
.field select {
  padding-inline-start: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%234A4F55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
}
.field input:hover,
.field select:hover { border-color: #B9B6AD; }
.field input:focus,
.field select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 4px rgba(11, 107, 78, .16);
}
.field input[dir="ltr"] { text-align: right; }
.field input.is-invalid { border-color: var(--error); background-color: #FEF3F2; }
.field input.is-invalid:focus { box-shadow: 0 0 0 4px rgba(180, 35, 24, .14); }
.is-shake { animation: shake 300ms ease-in-out; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(2px); }
}
.form-card .btn { margin-top: 6px; }
.form-status { font-size: 15px; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--error); }
.form-status.is-success {
  padding: 12px 14px;
  color: #064E38;
  background: #E7F4EE;
  border-radius: var(--radius-btn);
  animation: build 420ms var(--ease-out) both;
}
.form-privacy { font-size: 14px; color: var(--muted-2); }

/* ==========================================================
   الأسئلة الشائعة
   ========================================================== */
.faq { max-width: 820px; display: grid; gap: 12px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color var(--dur-base);
}
.faq details[open],
.faq details:hover { border-color: var(--border-2); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 14px 22px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  border-radius: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:active { transform: scale(.995); }
/* أيقونة + تتحول إلى − */
.faq-icon {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
  transition: transform var(--dur-base) var(--ease-out);
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 0;
  width: 18px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease-out);
}
.faq-icon::after { transform: rotate(90deg); }
.faq details[open] .faq-icon { transform: rotate(180deg); }
.faq details[open] .faq-icon::after { transform: rotate(0deg); }
.faq details p { padding: 0 22px 20px; color: var(--muted); }

/* فتح وإغلاق بحركة ناعمة (المتصفحات الحديثة فقط؛ غيرها يفتح مباشرة) */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq details::details-content {
    block-size: 0;
    overflow: hidden;
    transition:
      block-size var(--dur-base) var(--ease-out),
      content-visibility var(--dur-base) allow-discrete;
  }
  .faq details[open]::details-content { block-size: auto; }
  .faq details p { opacity: 0; transition: opacity var(--dur-base) var(--ease-out); }
  .faq details[open] p { opacity: 1; }
}

/* ==========================================================
   الفوتر
   ========================================================== */
.site-footer {
  padding-block: 28px 100px;
  font-size: 14px;
  color: var(--muted-2);
  border-top: 1px solid var(--border);
}

/* ==========================================================
   زر واتساب العائم
   ========================================================== */
.wa-float {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #fff;
  background: var(--wa);
  border-radius: 50%;
  box-shadow: 0 10px 24px -8px rgba(18, 20, 23, .4);
  transition: transform var(--dur-base) var(--ease-spring);
  animation: wa-in 700ms var(--ease-spring) 2s backwards;
}
.wa-float svg { position: relative; width: 30px; height: 30px; }
/* حلقة النبض — 3 مرات فقط */
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--wa);
  opacity: 0;
  animation: wa-pulse 3s var(--ease-out) 3s 3;
}
@keyframes wa-in {
  from { opacity: 0; transform: translate3d(0, 24px, 0) scale(.4); }
}
@keyframes wa-pulse {
  0% { opacity: .5; transform: scale(1); }
  60%, 100% { opacity: 0; transform: scale(1.75); }
}
.wa-float:active { transform: scale(.94); }
.wa-tip {
  position: absolute;
  top: 50%;
  left: calc(100% + 12px);
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(255, 255, 255, .95);
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(18, 20, 23, .06), 0 10px 24px -12px rgba(18, 20, 23, .4);
  opacity: 0;
  transform: translate3d(-8px, -50%, 0);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
  pointer-events: none;
}
@media (hover: hover) {
  .wa-float:hover { transform: scale(1.08); }
  .wa-float:hover .wa-tip,
  .wa-float:focus-visible .wa-tip { opacity: 1; transform: translate3d(0, -50%, 0); }
}

/* ==========================================================
   الجوال: حركة أبسط وأخف
   ========================================================== */
@media (max-width: 639px) {
  :root { --rise: 16px; }
  .hero .blob--3 { display: none; }
  .hero .blob--1 { width: 420px; height: 420px; right: -160px; }
  .hero .blob--2 { width: 380px; height: 380px; top: 360px; left: -180px; }
  .section--dark .blob--1 { width: 440px; height: 440px; }
  .section--dark .blob--2 { width: 380px; height: 380px; }
  .mock-float { animation-duration: 5s; }
}

/* ==========================================================
   الشاشات الأكبر
   ========================================================== */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .form-card { padding: 36px 32px; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .field--full,
  .form-grid .btn,
  .form-grid .form-status,
  .form-grid .form-privacy { grid-column: 1 / -1; }
}

@media (min-width: 900px) {
  .section { padding-block: 104px; }
  .hero { padding-block: 80px 104px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 64px; }
  .hero h1 { font-size: 52px; }
  .hero-lead { font-size: 19px; }
  .section-head { margin-bottom: 56px; }
  .section-head h2 { font-size: 38px; }
  .packages { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .package { padding: 40px 36px; }
  .work-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .quote-grid { grid-template-columns: 1fr 1.25fr; gap: 64px; }
  .quote-grid .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 32px); }
  .wa-float { left: 28px; bottom: 28px; width: 62px; height: 62px; }

  /* البطاقة الزجاجية (blur على الكمبيوتر فقط) */
  .form-card {
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    backdrop-filter: blur(16px) saturate(150%);
  }
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .form-card { background: rgba(255, 255, 255, .97); }
  }
}

/* ==========================================================
   تقليل الحركة: كل شي ثابت وظاهر مباشرة
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .progress { display: none !important; }
  .blob, .mock-float { will-change: auto; }
  .js [data-reveal]:not(.is-visible),
  .js .step:not(.is-visible) > * { opacity: 1; }
  .js .step:not(.is-visible)::before { transform: none; }
  .js .package:not(.is-visible) .features svg { stroke-dashoffset: 0; }
  .work-card:hover .shot img { transform: none; }
}
