 .st-back-nawah{display:none}
/* =================================================================
   نواة: ملف التصميم المشترك لكل الصفحات
   -----------------------------------------------------------------
   1) الهوية: الألوان والخطوط والمقاسات (عدّل هنا لتغيير الشكل العام)
   2) الأساسيات
   3) الأزرار والروابط
   4) الترويسة والقائمة
   5) أقسام الصفحة الرئيسية
   6) صفحات الخدمات وعن نواة وابدأ مشروعك
   7) التذييل
   8) الحركة وتفضيلات المستخدم
   قاعدة الزوايا: الأزرار دائرية بالكامل، البطاقات 20px، الحقول 12px.
   ================================================================= */

/* ---------- 1) الهوية ---------- */
:root {
  /* الخلفيات والأسطح (من الأغمق إلى الأفتح) */
  --bg: #0E1013;
  --surface: #14171C;
  --surface-2: #1A1E25;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.17);

  /* النصوص */
  --text: #F2F3F5;
  --text-2: #A3AAB5;
  --text-3: #858D99;

  /* اللون المميز: غيّره هنا فيتغير في كل الموقع */
  --accent: #3DDC97;
  --accent-hover: #63E6AD;
  --on-accent: #062A1C;
  --accent-soft: rgba(61, 220, 151, 0.12);
  --danger: #FF8A80;

  /* الخطوط */
  --font-display: "Alexandria", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* المقاسات */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 64px;
  --radius-card: 20px;
  --radius-field: 12px;
  --radius-pill: 999px;
  --section-space: clamp(80px, 11vw, 150px);

  /* الحركة */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.7s;

  color-scheme: dark;
}

@font-face {
  font-family: "Alexandria";
  src: url("../fonts/alexandria-arabic.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-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;
}
@font-face {
  font-family: "Alexandria";
  src: url("../fonts/alexandria-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  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"; src: url("../fonts/plex-arabic-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-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; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/plex-arabic-500.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-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; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/plex-arabic-600.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-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; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/plex-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; 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"; src: url("../fonts/plex-latin-500.woff2") format("woff2"); font-weight: 500; font-display: swap; 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"; src: url("../fonts/plex-latin-600.woff2") format("woff2"); font-weight: 600; font-display: swap; 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; }

/* ---------- 2) الأساسيات ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

/* عناصر المتصفح نفسها بألوان الهوية: التحديد والمؤشر وشريط التمرير */
::selection { background: rgba(61, 220, 151, 0.32); color: var(--text); }
html { scrollbar-color: #2b313a var(--bg); }
input, textarea { caret-color: var(--accent); }
button, a, label, .swatch, .chip-toggle { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.select option { background: var(--surface); color: var(--text); }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.85;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
  /* لا نضيف تباعد أحرف للعربية لأنه يقطع اتصال الحروف */
  letter-spacing: 0;
}
h1 { font-size: clamp(2.15rem, 1.25rem + 3.4vw, 3.75rem); line-height: 1.3; }
h2 { font-size: clamp(1.75rem, 1.15rem + 2.1vw, 2.65rem); line-height: 1.35; }
h3 { font-size: 1.2rem; line-height: 1.5; font-weight: 600; }

p { margin: 0; text-wrap: pretty; }
/* عنوان بمستوى h2 في البنية وبحجم h3 في الشكل */
h2.h3-like { font-size: 1.2rem; line-height: 1.5; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-space); }

.lead { font-size: clamp(1.06rem, 1rem + 0.35vw, 1.22rem); color: var(--text-2); max-width: 36rem; }
.muted { color: var(--text-2); }

.section-head { max-width: 44rem; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head p { color: var(--text-2); margin-top: 18px; max-width: 38rem; }

.demo-note { font-size: 0.86rem; color: var(--text-3); margin-top: 18px; }

.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;
}

/* الأيقونات: <i data-icon="اسم"></i> */
[data-icon] { display: inline-block; width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
[data-icon] svg { width: 100%; height: 100%; }
/* أيقونات الاتجاه تنعكس لأن الصفحة من اليمين لليسار */
.flip-rtl svg { transform: scaleX(-1); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  z-index: 100;
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ---------- 3) الأزرار والروابط ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0.7rem 1.45rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, transform 0.12s var(--ease-out);
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: scale(0.97); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.3); }
.btn-small { min-height: 40px; padding: 0.5rem 1.1rem; font-size: 0.94rem; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.text-link {
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

/* ---------- 4) الترويسة والقائمة ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(14, 16, 19, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1;
}
.brand-mark { width: 52px; height: 52px; color: var(--accent); flex: none; margin-block: -6px; overflow: visible; }

.nav-links {
  display: flex;
  gap: 4px;
  margin-inline-start: auto;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  color: var(--text-2);
  font-size: 0.97rem;
  transition: color 0.2s, background-color 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-links a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.07); }

.menu-btn {
  display: none;
  margin-inline-start: auto;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
  font-size: 1.3rem;
}

@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav-cta { display: none; }
  .nav-links {
    position: absolute;
    top: calc(var(--header-h) - 4px);
    inset-inline: 12px;
    flex-direction: column;
    gap: 2px;
    padding: 10px;
    background: rgba(24, 27, 33, 0.97);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-card);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    transform-origin: top left;
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    visibility: hidden;
    transition: opacity 0.22s var(--ease-out), transform 0.22s var(--ease-out), visibility 0.22s;
  }
  .nav-links.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav-links a { padding: 14px 16px; font-size: 1.05rem; color: var(--text); }
  .nav-links .nav-links-cta { margin-top: 6px; }
}
@media (min-width: 861px) {
  .nav-links .nav-links-cta { display: none; }
}

/* ---------- 5) الصفحة الرئيسية ---------- */

/* البطل: النص + المشهد ثلاثي الأبعاد */
.hero { position: relative; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 8px;
  min-height: calc(100dvh - var(--header-h));
  padding-block: 40px 24px;
}
.hero-copy { position: relative; z-index: 2; }
.hero-copy h1 { max-width: 16ch; font-size: clamp(2rem, 1.2rem + 2.4vw, 3.1rem); }
.hero-copy .lead { margin-top: 22px; }

.hero-visual {
  position: relative;
  width: min(100%, 620px);
  margin-inline: auto;
}
.story-canvas { -webkit-user-select: none; user-select: none; }
/* زر إيقاف حركة المشهد */
.motion-toggle {
  position: absolute;
  inset-inline-end: 8px;
  bottom: 8px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(14, 16, 19, 0.7);
  color: var(--text-2);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.motion-toggle:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.32); }

/* شارة هوية المنصة فوق العنوان */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  padding: 7px 16px 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
}
.hero-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }

/* بطل الرئيسية: المتجر الحي في نافذة كمبيوتر وهاتف جنبها، وتحتهما ثلاث خطوات ثابتة */
.hero-visual.showcase { display: grid; gap: 18px; width: 100%; max-width: 640px; }
.showcase > * { min-width: 0; }
.sc-devices { display: grid; grid-template-columns: minmax(0, 1fr) clamp(96px, 20%, 132px); gap: 14px; align-items: end; }
.sc-window {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}
.sc-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
}
.sc-dots { display: inline-flex; gap: 6px; }
.sc-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.sc-url { flex: 1; max-width: 240px; margin-inline: auto; padding: 3px 14px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.06); color: var(--text-2); font-size: 0.8rem; text-align: center; }
.sc-screen, .sc-phone-screen { position: relative; overflow: hidden; background: #0b0d10; direction: ltr; }
.sc-screen { aspect-ratio: 16 / 10; }
.sc-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.5s ease; }
.sc-frame { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; background: #0b0d10; opacity: 0; transition: opacity 0.5s ease; }
.is-live > .sc-frame { opacity: 1; }
.is-live > .sc-poster { opacity: 0; }
.sc-phone {
  padding: 5px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: #1a1e25;
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.8);
}
.sc-phone-screen { aspect-ratio: 9 / 19; border-radius: 19px; }

.sc-steps { display: grid; gap: 12px; }
.sc-step { margin: 0; padding: 0; border: 0; min-width: 0; }
.sc-step legend { display: flex; align-items: center; gap: 8px; padding: 0; margin-bottom: 8px; color: var(--text); font-size: 0.9rem; font-weight: 600; }
.sc-step legend b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 0.78rem; }
.sc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sc-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.12s ease-out;
}
.sc-chip:active { transform: scale(0.96); }
.sc-chip[aria-pressed="true"] { color: var(--text); border-color: var(--accent); background: var(--accent-soft); }
.sc-dot { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25); flex: none; }
.sc-go { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.sc-summary { margin: 0; color: var(--text-2); font-size: 0.92rem; }
@media (min-width: 900px) { .sc-steps { grid-template-columns: 1.25fr 1.2fr 0.9fr; gap: 14px; } }

/* الصفحة الوهمية: تنمو من مكان النافذة وتغطي الشاشة دون انتقال حقيقي */
.try-page { position: fixed; inset: 0; z-index: 400; display: flex; flex-direction: column; background: var(--bg); opacity: 0; transform: scale(0.94); transform-origin: var(--ox, 50%) var(--oy, 50%); transition: opacity 0.35s ease, transform 0.45s var(--ease-out); }
.try-page[hidden] { display: none; }
.try-page.is-open { opacity: 1; transform: none; }
.try-top { display: flex; align-items: center; gap: 14px; height: 56px; padding-inline: 14px; border-bottom: 1px solid var(--line); background: rgba(14, 16, 19, 0.82); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); }
.try-back { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: transparent; color: var(--text); font: inherit; cursor: pointer; transition: transform 0.12s ease-out, border-color 0.2s; }
.try-back:active { transform: scale(0.96); }
.try-back [data-icon] { width: 18px; height: 18px; }
.try-url { flex: 1; max-width: 300px; margin-inline: auto; padding: 4px 16px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.06); color: var(--text-2); font-size: 0.85rem; text-align: center; }
.try-title { font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; }
.try-body { position: relative; flex: 1; min-height: 0; }
.try-body iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--bg); }
.try-loading { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; justify-items: center; gap: 14px; background: var(--bg); color: var(--text-2); }
.try-loading[hidden] { display: none; }
.try-lock, .try-lock body { overflow: hidden; }
.try-lock .nawah-dock { display: none; }
@media (max-width: 560px) { .try-url { display: none; } .try-title { margin-inline-start: auto; } }
@media (prefers-reduced-motion: reduce) { .try-page { transition: opacity 0.2s; transform: none; } }

/* الشريط السفلي الثابت: كل الصفحات بضغطة واحدة */
.nawah-dock {
  position: fixed;
  inset-inline: 0;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 90;
  display: flex;
  justify-content: center;
  padding-inline: 12px;
  pointer-events: none;
}
.dock-inner {
  display: flex;
  gap: 4px;
  max-width: 100%;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(20, 23, 28, 0.78);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.7);
  pointer-events: auto;
}
.dock-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, transform 0.12s ease-out;
}
.dock-item [data-icon] { width: 20px; height: 20px; flex: none; }
.dock-item:active { transform: scale(0.95); }
.dock-item[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.09); }
.dock-item--main { background: var(--accent); color: var(--on-accent); font-weight: 700; }
.dock-item--main[aria-current="page"] { background: var(--accent-hover); color: var(--on-accent); }
@media (hover: hover) { .dock-item:not(.dock-item--main):hover { color: var(--text); background: rgba(255, 255, 255, 0.07); } }
@media (max-width: 560px) {
  .dock-item { padding: 0 12px; font-size: 0.82rem; gap: 6px; }
  .dock-item span { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .dock-item--main span, .dock-item[aria-current="page"] span { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; }
}
.has-dock { padding-bottom: 92px; }
.in-studio .nawah-dock, .menu-open .nawah-dock { display: none; }

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 32px;
    padding-block: 24px;
    max-height: 900px;
  }
  .hero-visual { width: 100%; max-width: 620px; }
}

/* قصة المنتج: مشهد ثابت ونصوص تمر بجانبه */
.work-intro { padding-bottom: 0; }

.story { position: relative; }
.story-stage {
  position: sticky;
  top: var(--header-h);
  height: 54svh;
  z-index: 1;
  background: var(--bg);
  display: grid;
  grid-template-rows: 1fr auto;
  padding-bottom: 12px;
}
.story-canvas {
  position: relative;
  min-height: 0;
  overflow: hidden; /* حتى لا تخرج أسماء نقاط الشرح عن الشاشة */
  cursor: grab;
  touch-action: pan-y;
}
.story-canvas:active { cursor: grabbing; }
.story-canvas canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  opacity: 0;
  transition: opacity 1s var(--ease-out);
}
.story-canvas.is-live canvas { opacity: 1; }
/* حواف ناعمة للمشهد بدل القص الحاد */
.story-canvas canvas {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 6%, #000 84%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 6%, #000 84%, transparent 100%);
}
.story-canvas.is-live .bottle-fallback { opacity: 0; }

/* بديل الزجاجة عند عدم توفر WebGL */
.bottle-fallback {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(34%, 170px);
  height: 62%;
  border-radius: 28% 28% 22% 22% / 14% 14% 10% 10%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02) 40%, var(--liquid, #C98A3A) 41%, rgba(0, 0, 0, 0.2) 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: opacity 0.6s, background 0.4s;
}

.swatches {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 1;
}
@media (max-width: 480px) {
  .swatch { padding: 6px 12px 6px 10px; gap: 6px; font-size: 0.92rem; }
}
.swatch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 16px 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}
.swatch:hover { color: var(--text); }
.swatch[aria-pressed="true"] { color: var(--text); border-color: var(--accent); background: var(--accent-soft); }
.swatch-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

/* نقاط الشرح فوق أجزاء الزجاجة (يحدد موضعها product3d.js) */
.hotspots { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
/* كل نقطة عنصر بلا أبعاد يقع تمامًا على موضعها، والاسم بجانبها */
.hotspot {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  opacity: 0;
  will-change: transform, opacity;
}
.hotspot-dot {
  position: absolute;
  left: -6px;
  top: -6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(61, 220, 151, 0.2);
}
.hotspot-label {
  position: absolute;
  top: 0;
  right: 16px;
  transform: translateY(-50%);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(14, 16, 19, 0.82);
  border: 1px solid var(--line-strong);
  font-size: 0.85rem;
  line-height: 1.5;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
/* النقاط في النصف الأيمن تعرض اسمها يمينًا، حتى لا يغطي الاسم الزجاجة */
.hotspot.is-flipped .hotspot-label { right: auto; left: 16px; }

.step-action { margin-top: 24px; align-self: flex-start; }
.engrave-field { margin-top: 24px; max-width: 22rem; }
.engrave-field .input { font-size: 1.05rem; }

@font-face {
  font-family: "Aref Ruqaa";
  src: url("../fonts/aref-ruqaa-arabic-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

.story-steps { position: relative; z-index: 0; }
.story-step {
  min-height: 52svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 40px;
}
/* الخطوة غير المقروءة أخفت لونًا، مع تباين كافٍ للقراءة */
.story-step h3 { font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2rem); line-height: 1.4; color: var(--text-3); transition: color 0.4s var(--ease-out); }
.story-step p { color: var(--text-3); margin-top: 14px; max-width: 30rem; transition: color 0.4s var(--ease-out); }
.story-step.is-active h3 { color: var(--text); }
.story-step.is-active p { color: var(--text-2); }
.story-step .demo-note { margin-top: 26px; }

@media (min-width: 900px) {
  .story {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 48px;
  }
  .story-steps { grid-column: 1; grid-row: 1; padding-block: 12vh 18vh; }
  .story-stage {
    grid-column: 2;
    grid-row: 1;
    top: calc(var(--header-h) + 16px);
    height: calc(100dvh - var(--header-h) - 32px);
    max-height: 820px;
    background: transparent;
  }
  .story-step { min-height: 70vh; }
}

/* مختبر الأتمتة: لوحة بأسلوب n8n */
.lab {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-card);
  background: var(--surface);
  overflow: hidden;
}
.lab-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.lab-source { display: flex; flex-wrap: wrap; gap: 8px; }
.lab-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text-2);
  font-size: 0.92rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.lab-chip[aria-pressed="true"] { color: var(--text); border-color: var(--accent); background: var(--accent-soft); }
.lab-run:disabled { opacity: 0.55; cursor: progress; }

.lab-body { display: grid; }
.lab-canvas { position: relative; min-height: 0; background: #101318; }
.lab-canvas .flow { display: block; width: 100%; height: auto; }
.flow .dot { fill: rgba(255, 255, 255, 0.07); }
.flow .edge { fill: none; stroke: rgba(255, 255, 255, 0.16); stroke-width: 2; }
.flow .edge-live { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 6 8; opacity: 0; transition: opacity 0.3s; }
.flow .edge-live.is-on { opacity: 1; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.flow .pulse { fill: #c9ffe6; opacity: 0; filter: drop-shadow(0 0 6px rgba(61, 220, 151, 0.9)); }
.flow .node-box { fill: #1c2027; stroke: rgba(255, 255, 255, 0.18); stroke-width: 1.5; transition: stroke 0.3s, fill 0.3s; }
.flow .node.is-trigger .node-box { fill: #20262e; }
.flow .node-icon { color: var(--text-2); transition: color 0.3s; }
.flow .node-ring { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 40 200; opacity: 0; transform-box: fill-box; transform-origin: center; }
.flow .node.is-running .node-ring { opacity: 1; animation: spin-ring 0.9s linear infinite; }
@keyframes spin-ring { to { transform: rotate(360deg); } }
.flow .node.is-running .node-box, .flow .node.is-done .node-box { stroke: var(--accent); }
.flow .node.is-running .node-icon, .flow .node.is-done .node-icon { color: var(--accent); }
.flow .node.is-done .node-box { fill: #17262040; }
.flow .node-badge { opacity: 0; transition: opacity 0.3s; color: var(--on-accent); }
.flow .node-badge circle { fill: var(--accent); }
.flow .node.is-done .node-badge { opacity: 1; }
.flow text { font-family: var(--font-body); text-anchor: middle; direction: rtl; }
.flow .node-label { fill: var(--text); font-size: 15px; font-weight: 600; }
.flow .node-type { fill: var(--text-3); font-size: 12px; direction: ltr; }
.flow .node-out { fill: var(--accent); font-size: 12.5px; }
.lab-canvas.is-tall .flow .node-label { font-size: 13px; }
.lab-canvas.is-tall .flow .node-type, .lab-canvas.is-tall .flow .node-out { font-size: 11px; }

.lab-toast {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 28px);
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(24, 28, 34, 0.96);
  border: 1px solid var(--line-strong);
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s, transform 0.35s var(--ease-out);
  pointer-events: none;
}
.lab-toast svg { width: 20px; height: 20px; flex: none; color: var(--accent); }
.lab-toast.is-on { opacity: 1; transform: none; }

.lab-side { display: grid; gap: 14px; padding: 16px; border-top: 1px solid var(--line); }
.lab-phone, .lab-sheet { border-radius: 16px; border: 1px solid var(--line); background: var(--bg); overflow: hidden; }
.lab-phone-head, .lab-sheet-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--text-2);
}
.lab-phone-head [data-icon], .lab-sheet-head [data-icon] { color: var(--accent); }
.lab-chat { display: flex; flex-direction: column; gap: 10px; height: 230px; overflow-y: auto; padding: 14px; scrollbar-width: thin; }
.lab-empty { margin: auto; color: var(--text-3); font-size: 0.88rem; }
.lab-msg {
  align-self: flex-start;
  max-width: 92%;
  padding: 9px 13px 6px;
  border-radius: 14px;
  border-start-start-radius: 4px;
  background: #173528;
  color: #E8F6EE;
  font-size: 0.88rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
  animation: msg-in 0.35s var(--ease-out) both;
}
.lab-msg small { display: block; text-align: left; font-size: 0.72rem; opacity: 0.7; margin-top: 2px; }
.lab-msg.is-typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.lab-msg.is-typing span { width: 6px; height: 6px; border-radius: 50%; background: #9fd8bb; animation: blink 1s infinite; }
.lab-msg.is-typing span:nth-child(2) { animation-delay: 0.15s; }
.lab-msg.is-typing span:nth-child(3) { animation-delay: 0.3s; }
.lab-sheet table { width: 100%; border-collapse: collapse; font-size: 0.84rem; font-variant-numeric: tabular-nums; }
.lab-sheet th, .lab-sheet td { padding: 8px 12px; text-align: right; border-bottom: 1px solid var(--line); }
.lab-sheet th { color: var(--text-3); font-weight: 500; }
.lab-sheet tr.is-old td { color: var(--text-3); }
.lab-sheet tr.is-new td { animation: row-in 1.6s var(--ease-out) both; }
@keyframes row-in { 0% { background: rgba(61, 220, 151, 0.28); } 100% { background: transparent; } }
.lab-status { padding: 12px 16px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 0.92rem; min-height: 48px; }

@media (min-width: 1000px) {
  .lab-body { grid-template-columns: minmax(0, 1fr) 320px; }
  .lab-side { border-top: 0; border-inline-start: 1px solid var(--line); }
  .lab-canvas { display: grid; align-items: center; }
}

/* الخدمتان */
.tracks { display: grid; gap: 16px; }
.track {
  padding: clamp(24px, 3.5vw, 36px);
  border-radius: var(--radius-card);
  border: 1px solid var(--line-strong);
  background: var(--surface);
}
.track-auto { background: linear-gradient(160deg, rgba(61, 220, 151, 0.09), var(--surface) 55%); border-color: rgba(61, 220, 151, 0.35); }
.track-head { display: flex; align-items: center; gap: 12px; }
.track-head [data-icon] { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.track-head h3 { font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.55rem); }
.track ul { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.track li { display: flex; gap: 10px; color: var(--text-2); line-height: 1.7; }
.track li [data-icon] { color: var(--accent); margin-top: 0.3em; }
.tracks + .actions { margin-top: 28px; }
@media (min-width: 860px) { .tracks { grid-template-columns: 1fr 1fr; } }

/* المساعد التجريبي */
.assistant-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
.assistant-copy p { color: var(--text-2); margin-top: 18px; max-width: 32rem; }
@media (min-width: 900px) {
  .assistant-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 72px; }
}

.chat {
  display: flex;
  flex-direction: column;
  height: 560px;
  max-height: 80svh;
  border-radius: var(--radius-card);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45);
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.chat-head .brand-mark { width: 42px; height: 42px; }
.chat-head strong { display: block; font-weight: 600; line-height: 1.3; }
.chat-head small { display: block; color: var(--text-3); font-size: 0.84rem; line-height: 1.4; }

.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.msg {
  max-width: 85%;
  padding: 10px 16px;
  border-radius: 18px;
  line-height: 1.75;
  font-size: 0.98rem;
  animation: msg-in 0.35s var(--ease-out) both;
}
.msg { overflow-wrap: anywhere; }
.msg-bot { align-self: flex-start; background: var(--surface-2); border-start-start-radius: 6px; }
.msg-user { align-self: flex-end; background: var(--accent); color: var(--on-accent); border-start-end-radius: 6px; font-weight: 500; }
.typing { display: inline-flex; gap: 4px; padding-block: 8px; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); animation: blink 1s infinite; }
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }

.chat-suggest {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 18px 12px;
  scrollbar-width: none;
}
.chat-suggest::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  min-height: 40px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text-2);
  font-size: 0.92rem;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.chip:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.32); background: rgba(255, 255, 255, 0.04); }

.chat-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
}
.chat-form input {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--bg);
}
.chat-form input::placeholder { color: var(--text-3); }
.chat-form button {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  border: 0;
  background: var(--accent);
  color: var(--on-accent);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1.25rem;
}

/* لماذا موقع: شبكة 2×2 */
.why-grid {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.why-item {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 18px;
}
.why-item [data-icon] { grid-row: span 2; font-size: 1.6rem; color: var(--accent); margin-top: 4px; }
.why-item p { color: var(--text-2); max-width: 30rem; }
@media (min-width: 760px) {
  .why-grid { grid-template-columns: 1fr 1fr; column-gap: 64px; }
  .why-item { padding: 40px 0; }
}

/* خطوات العمل: خط زمني */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  counter-reset: none;
}
.timeline li {
  position: relative;
  padding: 0 34px 40px 0;
}
.timeline li::before {
  content: "";
  position: absolute;
  inset-inline-start: 7px;
  top: 12px;
  bottom: -12px;
  width: 1px;
  background: var(--line-strong);
}
.timeline li:last-child::before { display: none; }
.timeline li::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 8px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}
.timeline h3 { font-size: 1.15rem; }
.timeline p { color: var(--text-2); margin-top: 8px; font-size: 0.98rem; }
@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .timeline li { padding: 40px 0 0; }
  .timeline li::before { inset-inline-start: 0; inset-inline-end: -32px; top: 7px; bottom: auto; width: auto; height: 1px; }
  .timeline li:last-child::before { display: block; inset-inline-end: 0; }
  .timeline li::after { top: 0; }
}

/* ما نلتزم به وما لا نعد به */
.promise-panel {
  display: grid;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.promise-col { padding: clamp(28px, 4vw, 48px); }
.promise-col + .promise-col { border-top: 1px solid var(--line-strong); background: var(--surface); }
.promise-col h3 { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; }
.promise-col ul { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.promise-col li { display: flex; gap: 12px; color: var(--text-2); }
.promise-col li [data-icon] { margin-top: 0.45em; }
.promise-yes [data-icon] { color: var(--accent); }
.promise-no [data-icon] { color: var(--text-3); }
@media (min-width: 860px) {
  .promise-panel { grid-template-columns: 1fr 1fr; }
  .promise-col + .promise-col { border-top: 0; border-inline-start: 1px solid var(--line-strong); }
}

/* الدعوة الأخيرة */
.cta-band {
  text-align: center;
  padding-block: clamp(90px, 12vw, 160px);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 70% at 50% 100%, rgba(61, 220, 151, 0.12), transparent 70%);
}
.cta-band h2 { max-width: 20ch; margin-inline: auto; }
.cta-band p { color: var(--text-2); margin: 18px auto 0; max-width: 34rem; }
.cta-band .actions { justify-content: center; }

/* ---------- 6) الصفحات الداخلية ---------- */
.page-hero { padding-block: clamp(56px, 9vw, 110px) clamp(40px, 6vw, 72px); }
.page-hero h1 { max-width: 18ch; }
.page-hero .lead { margin-top: 20px; }

/* الخدمات */
.services-layout { display: grid; gap: 40px; }
.services-index { display: none; }
@media (min-width: 980px) {
  .services-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 64px; align-items: start; }
  .services-index {
    display: block;
    position: sticky;
    top: calc(var(--header-h) + 32px);
  }
  .services-index ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
  .services-index a {
    display: block;
    padding: 8px 14px;
    border-radius: var(--radius-field);
    color: var(--text-2);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.6;
  }
  .services-index a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
  .services-index a.is-current { color: var(--text); background: var(--accent-soft); }
}

.service {
  padding-block: 40px;
  border-top: 1px solid var(--line);
}
.service:first-child { border-top: 0; padding-top: 0; }
.service-title { display: flex; align-items: center; gap: 14px; }
.service-title [data-icon] {
  width: 46px;
  height: 46px;
  padding: 11px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}
.service-title h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.85rem); }
/* عنوان المجموعة: المواقع / الأتمتة */
.services-group { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.6rem); padding-top: 24px; margin-bottom: 8px; color: var(--accent); }
.services-group:not(:first-child) { margin-top: 64px; }
.services-group + .service { border-top: 0; }
.service > p { color: var(--text-2); margin-top: 16px; max-width: 40rem; }
.scope {
  display: grid;
  gap: 28px;
  margin-top: 28px;
}
.scope h3 { font-size: 1rem; color: var(--text-2); font-weight: 500; font-family: var(--font-body); }
.scope ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.scope li { display: flex; gap: 10px; line-height: 1.7; }
.scope li [data-icon] { margin-top: 0.3em; }
.scope-in [data-icon] { color: var(--accent); }
.scope-out li { color: var(--text-2); }
.scope-out [data-icon] { color: var(--text-3); }
.service-cta { margin-top: 28px; }
@media (min-width: 700px) {
  .scope { grid-template-columns: 1.3fr 1fr; gap: 40px; }
}

/* بطاقات معلومات مختصرة (التكاليف، ما نحتاجه منك) */
.info-split { display: grid; gap: 20px; }
.info-card {
  padding: clamp(26px, 4vw, 40px);
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  background: var(--surface);
}
.info-card h2 { font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.7rem); }
.info-card > p { color: var(--text-2); margin-top: 12px; }
.info-card ul { margin: 18px 0 0; padding-inline-start: 1.2em; color: var(--text-2); display: grid; gap: 8px; }
.info-card li::marker { color: var(--accent); }
@media (min-width: 860px) {
  .info-split { grid-template-columns: 1.15fr 1fr; }
}

/* عن نواة: المبادئ */
.principles { display: grid; gap: 0; counter-reset: principle; }
.principle {
  display: grid;
  gap: 8px 48px;
  padding-block: 34px;
  border-top: 1px solid var(--line);
}
.principle h3 { font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.55rem); }
.principle p { color: var(--text-2); max-width: 40rem; }
@media (min-width: 860px) {
  .principle { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); padding-block: 44px; }
}

.honest-note {
  display: grid;
  gap: 24px;
  align-items: center;
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--line);
}
.honest-note p { color: var(--text-2); margin-top: 14px; max-width: 40rem; }
@media (min-width: 860px) {
  .honest-note { grid-template-columns: 1fr auto; }
}

.about-facts { display: grid; gap: 28px; }
.about-fact { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; }
.about-fact [data-icon] { grid-row: span 2; font-size: 1.5rem; color: var(--accent); margin-top: 4px; }
.about-fact p { color: var(--text-2); }
@media (min-width: 860px) { .about-facts { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

/* ابدأ مشروعك: النموذج */
.start-layout { display: grid; gap: 48px; align-items: start; }
@media (min-width: 980px) {
  .start-layout { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr); gap: 72px; }
  .start-aside { position: sticky; top: calc(var(--header-h) + 32px); }
}

.form { display: grid; gap: 26px; }
.form-row { display: grid; gap: 26px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 8px; }
.field > label, .field legend {
  font-weight: 500;
  font-size: 0.98rem;
  padding: 0;
}
.field .hint { color: var(--text-3); font-size: 0.86rem; font-weight: 400; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }

.input, .select, .textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border-radius: var(--radius-field);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.7; }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(61, 220, 151, 0.22);
}
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23A3AAB5' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: left 16px center;
  background-size: 16px 16px;
  background-repeat: no-repeat;
  padding-inline-end: 16px;
  padding-inline-start: 44px;
}
.field.has-error .input, .field.has-error .select { border-color: var(--danger); }
.error-text { color: var(--danger); font-size: 0.88rem; min-height: 0; }
.error-text:empty { display: none; }

.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  color: var(--text-2);
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}
.choice input:checked + span { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.choice:hover span { color: var(--text); }

.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.result {
  padding: clamp(22px, 4vw, 32px);
  border-radius: var(--radius-card);
  border: 1px solid var(--accent);
  background: var(--surface);
}
.result:focus { outline: none; }
.result h2 { font-size: 1.35rem; }
.result pre {
  margin: 16px 0 0;
  padding: 16px;
  border-radius: var(--radius-field);
  background: var(--bg);
  border: 1px solid var(--line);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: var(--font-body);
  font-size: 0.96rem;
  line-height: 1.8;
  max-height: 340px;
  overflow: auto;
}
.result .actions { margin-top: 20px; }
.status { color: var(--text-2); font-size: 0.92rem; margin-top: 12px; }
.demo-banner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius-field);
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed var(--line-strong);
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.7;
}
.demo-banner [data-icon] { margin-top: 0.25em; color: var(--accent); }

.next-steps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 18px; }
.next-steps li { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; }
.next-steps [data-icon] { grid-row: span 2; font-size: 1.3rem; color: var(--accent); margin-top: 3px; }
.next-steps strong { font-weight: 600; }
.next-steps span { color: var(--text-2); font-size: 0.95rem; }

/* ---------- 7) التذييل ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 56px 32px;
  color: var(--text-2);
  font-size: 0.95rem;
}
.footer-top { display: grid; gap: 32px; }
.footer-top p { margin-top: 14px; max-width: 26rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; align-content: start; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 0.86rem;
}
@media (min-width: 760px) {
  .footer-top { grid-template-columns: 1fr auto; }
}

/* ---------- 8) الحركة وتفضيلات المستخدم ---------- */
/* الظهور عند التمرير: يعمل فقط إذا اشتغلت JavaScript (لا يختفي المحتوى بدونها) */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.js .reveal.is-in { opacity: 1; transform: none; }

.hero-copy > * { animation: rise 0.9s var(--ease-out) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.16s; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .story-step h3 { color: var(--text); }
  .story-step p { color: var(--text-2); }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@media (prefers-contrast: more) {
  :root { --line: rgba(255, 255, 255, 0.28); --line-strong: rgba(255, 255, 255, 0.45); --text-2: #D0D5DC; --text-3: #B2B9C3; }
}

/* =================================================================
   الصفحات الجديدة: الرئيسية المختصرة، النماذج، وصفحات كل نموذج
   ================================================================= */

/* خريطة الاحتياجات */
.needs { display: grid; gap: 14px; }
.need {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 10px;
  padding: 24px;
  border-radius: var(--radius-card);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s var(--ease-out);
}
.need > [data-icon] { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.need h3 { font-size: 1.15rem; }
.need p { color: var(--text-2); font-size: 0.96rem; line-height: 1.75; }
.need-go { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 0.92rem; font-weight: 500; }
@media (hover: hover) and (pointer: fine) {
  .need:hover { border-color: rgba(61, 220, 151, 0.45); background: var(--surface-2); transform: translateY(-2px); }
}
@media (min-width: 640px) { .needs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .needs { grid-template-columns: repeat(3, 1fr); } }

/* لمحة من النماذج */
.glimpses { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.glimpse {
  position: relative;
  display: block;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  text-decoration: none;
  background: var(--surface);
}
.glimpse img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.glimpse span { display: block; padding: 12px 16px; font-weight: 500; font-size: 0.96rem; }
@media (hover: hover) and (pointer: fine) { .glimpse:hover img { transform: scale(1.03); } }
@media (min-width: 1000px) { .glimpses { grid-template-columns: repeat(4, 1fr); } }
.glimpses + .actions { margin-top: 28px; }

/* المتجر التجريبي المصغّر في الرئيسية */
.mini-builder {
  margin: 0 0 34px;
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-card);
  background: var(--surface);
}
.mini-qs { display: grid; gap: 14px; margin-bottom: 18px; }
.mini-q { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mini-q-name { font-weight: 600; font-size: 0.95rem; min-width: 82px; }
.mini-stage {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #121314;
}
.mini-stage iframe {
  display: block;
  width: 100%;
  height: 640px;
  border: 0;
  background: #fff;
}
.mini-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(14, 16, 19, 0.86);
  color: var(--text);
  font-weight: 600;
  backdrop-filter: blur(3px);
}
.mini-spinner {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--accent);
  animation: mini-spin 0.8s linear infinite;
}
@keyframes mini-spin { to { transform: rotate(360deg); } }
.mini-builder.is-busy .mini-stage iframe { opacity: 0.35; }
.mini-stage iframe { transition: opacity 0.4s ease; }
.mini-foot { margin: 12px 4px 0; text-align: center; }
@media (max-width: 700px) {
  .mini-builder { padding: 16px; }
  .mini-stage iframe { height: 560px; }
}

/* مقدمة الأتمتة */
.auto-intro { display: grid; gap: 32px; align-items: center; }
.auto-intro-copy p { color: var(--text-2); margin: 18px 0 28px; max-width: 34rem; }
.auto-intro-media { display: block; border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--line-strong); }
.auto-intro-media img { width: 100%; height: auto; }
@media (min-width: 900px) { .auto-intro { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; } }

/* ما تستلمه */
.deliver-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.deliver-list li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--text-2); }
.deliver-list [data-icon] { font-size: 1.35rem; color: var(--accent); margin-top: 0.2em; }
@media (min-width: 860px) { .deliver { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; } .deliver .section-head { margin-bottom: 0; } }

/* قبل أن تقرر */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--accent); line-height: 1; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { color: var(--text-2); padding-bottom: 20px; max-width: 46rem; }
@media (min-width: 860px) { .faq-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; } .faq-wrap .section-head { margin-bottom: 0; } }

/* صفحة النماذج */
.samples-section { padding-top: 0; }
/* تصفية النماذج حسب القطاع */
.samples-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}
.filter-chip:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.3); }
.filter-chip[aria-pressed="true"] { color: var(--text); border-color: var(--accent); background: var(--accent-soft); }
.filter-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.filter-count { min-width: 22px; padding: 0 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); font-size: 0.8rem; text-align: center; font-variant-numeric: tabular-nums; }
.filter-chip[aria-pressed="true"] .filter-count { background: rgba(61, 220, 151, 0.2); color: var(--accent); }
.sample-sector { font-size: 0.82rem; font-weight: 500; color: var(--accent) !important; }

.samples-grid { display: grid; gap: 18px; }
.sample-card {
  display: grid;
  border-radius: var(--radius-card);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  overflow: hidden;
}
.sample-media { display: block; overflow: hidden; background: var(--bg); }
.sample-media img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.6s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .sample-card:hover .sample-media img { transform: scale(1.03); } }
.sample-body { display: flex; flex-direction: column; gap: 10px; padding: clamp(20px, 3vw, 28px); }
.sample-body h2 { font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.55rem); }
.sample-body p { color: var(--text-2); }
.sample-brand { font-size: 0.86rem; color: var(--text-3) !important; }
.sample-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: auto; padding-top: 8px; }
@media (min-width: 860px) {
  .samples-grid { grid-template-columns: 1fr 1fr; }
  .sample-card.is-wide { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .sample-card.is-wide .sample-media img { height: 100%; }
  .sample-card.is-wide .sample-body { justify-content: center; }
}

/* رأس صفحة النموذج */
.sample-hero { padding-bottom: 8px; }
.sample-hero .demo-note { margin-top: 14px; max-width: 44rem; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px; color: var(--text-2); text-decoration: none; font-size: 0.95rem; }
.back-link:hover { color: var(--accent); }
.sample-hero + .section { padding-top: clamp(40px, 6vw, 64px); }

/* رند: أزرار الزوايا وإعادة الضبط والملخص */
.rand-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; position: relative; z-index: 1; }
.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-2);
  font-size: 0.88rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.tool-btn:hover { color: var(--text); border-color: var(--line-strong); }
.rand-summary { margin-top: 18px !important; padding: 12px 16px; border-radius: var(--radius-field); background: var(--surface); border: 1px solid var(--line); color: var(--text) !important; }

/* دعوة نهاية النموذج */
.sample-cta { padding-bottom: var(--section-space); }
.sample-cta-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--radius-card);
  border: 1px solid rgba(61, 220, 151, 0.35);
  background: linear-gradient(160deg, rgba(61, 220, 151, 0.08), var(--surface) 60%);
}
.sample-cta-box p { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem); }

/* Mobile ergonomics across public pages. */
@media(max-width:640px){input,select,textarea{font-size:16px}button,.btn{touch-action:manipulation}.container{min-width:0}h1,h2,h3,p,a{overflow-wrap:break-word}dialog{max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px)}.page-hero{padding-top:44px;padding-bottom:40px}.page-hero h1{font-size:clamp(30px,8vw,42px);line-height:1.5}.actions{gap:12px}.actions .btn{min-height:48px}.store-preview-active #site-header{display:none}.store-preview-active .st-nav{position:sticky;top:0;z-index:15;background:var(--s-bg)}.store-preview-active .b-toolbar{position:relative!important;top:auto!important}.store-preview-active .st-back-nawah{display:block;font-size:12px;padding:12px 18px;color:var(--s-muted)}.store-preview-active .st-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px}.store-preview-active .st-card{min-width:0}.store-preview-active .st-card-name{font-size:15px;line-height:1.6}.store-preview-active .st-hero-tools{flex-wrap:wrap}.store-preview-active .st-hero-tools button{min-height:40px}.store-preview-active .st-cart{width:calc(100vw - 24px)}}

.st-category{grid-column:1/-1;font-size:22px;margin:24px 0 4px}.st-grid--10{grid-template-columns:repeat(5,minmax(0,1fr))}.st-card-name{overflow-wrap:anywhere}.st-card-media img{object-fit:contain}.st-hero-3d{touch-action:pan-y}
@media(max-width:1000px){.st-grid--10{grid-template-columns:repeat(3,minmax(0,1fr))}}


/* خطوات متسلسلة: شارة الخطوة وشريطها */
.step-pill { display: inline-block; margin: 0 0 12px; padding: 5px 14px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent); font-size: 0.85rem; font-weight: 600; }
.step-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 24px; }
.step-bar strong { font-family: var(--font-display); font-size: 1.15rem; }
.step-bar .text-link { margin-inline-start: auto; }
.choose-all { margin-top: 18px; text-align: center; }
.needs--3 { grid-template-columns: 1fr; }
@media (min-width: 900px) { .needs--3 { grid-template-columns: repeat(3, 1fr); } }
.needs--3 .need { min-height: 210px; }
