/* ============================================================
   فيكتور — الهوية على الويب
   الألوان والخطوط مأخوذة من ملفات الهوية (براند فيكتور)
   ============================================================ */

@font-face { font-family: "Alexandria"; src: url("../fonts/Alexandria-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Alexandria"; src: url("../fonts/Alexandria-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Alexandria"; src: url("../fonts/Alexandria-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Alexandria"; src: url("../fonts/Alexandria-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/Manrope-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/Manrope-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  /* الهوية فاتحة دائماً: يمنع المتصفح من قلب الألوان في الوضع الداكن */
  color-scheme: only light;

  /* الألوان */
  --brand: #5A3DF5;
  --brand-hover: #4A2EE0;
  --brand-light: #A392FF;
  --brand-soft: #ECE8FF;
  --ink: #17171B;
  --ink-2: #2C2C35;
  --muted: #666672;
  --line: #E4E4EA;
  --bg: #FFFFFF;
  --bg-soft: #F7F7FA;
  --ph: #FFF1A8;

  /* الخطوط */
  --font-ar: "Alexandria", "Manrope", system-ui, sans-serif;
  --font-en: "Manrope", "Alexandria", system-ui, sans-serif;

  /* المسافات والأبعاد */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 10vw, 128px);
  --radius: 4px;
  --header-h: 76px;

  --ease: cubic-bezier(.22, .8, .24, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-ar);
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font: inherit; color: inherit; }

.latin { font-family: var(--font-en); }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius);
}
.skip:focus { top: 12px; }

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

/* ---------- عناصر النص ---------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 14px; font-weight: 500; color: var(--brand);
  margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.eyebrow.latin { font-size: 12px; letter-spacing: .14em; font-weight: 600; }

.display {
  font-size: clamp(40px, 6.4vw, 80px);
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -.01em;
}
.title {
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.3;
  font-weight: 700;
}
.accent { color: var(--brand); }
.accent-light { color: var(--brand-light); }

.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); max-width: 54ch; margin-top: 28px; }
.section-sub { color: var(--muted); margin-top: 16px; max-width: 52ch; }

/* نص يحتاج تعبئة قبل النشر */
.ph { background: var(--ph); color: var(--ink); padding: 0 .3em; border-radius: 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* ---------- الأزرار ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  font-size: 16px; font-weight: 600; line-height: 1;
  border: 1.5px solid transparent; border-radius: var(--radius);
  cursor: pointer; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: var(--brand-soft); }
.ico { width: 20px; height: 20px; fill: currentColor; }

/* ---------- الهيدر ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }

.logo { width: 150px; height: auto; aspect-ratio: 580 / 190; }
.logo { --logo-mark: var(--brand); --logo-word: var(--ink); }
.logo-light { --logo-word: #fff; }

.nav { display: flex; gap: 32px; font-size: 15px; font-weight: 500; }
.nav a { position: relative; padding: 6px 0; color: var(--ink-2); transition: color .2s; }
.nav a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1.5px;
  background: var(--brand); transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease);
}
.nav a:hover { color: var(--brand); }
.nav a:hover::after { transform: scaleX(1); }

.header-cta { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; }

/* ---------- الواجهة ---------- */

.hero { padding-top: clamp(40px, 7vw, 96px); background: var(--bg-soft); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 48px; }

.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.pillars { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 44px; font-size: 15px; color: var(--ink-2); }
.pillars li { display: inline-flex; align-items: center; gap: 10px; }
.pillars li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

.hero-visual { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; justify-self: end; }
.arcs { fill: none; stroke: var(--brand); stroke-width: 54; }
.hero-visual .arcs { width: 100%; height: 100%; }

.arcs-draw path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s var(--ease) forwards; }
.arcs-draw path + path { animation-delay: .25s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.float-card {
  position: absolute; inset-inline-end: 0; top: 4%;
  display: grid; gap: 2px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px; min-width: 230px;
  box-shadow: 0 24px 48px -24px rgba(23, 23, 27, .18);
  animation: rise .9s .9s var(--ease) both;
}
.float-label { font-size: 22px; font-weight: 700; line-height: 1.4; }
.float-card strong { font-size: 22px; font-weight: 700; color: var(--brand); line-height: 1.4; }
.float-sub { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.platforms {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  margin-top: clamp(48px, 7vw, 88px); padding: 28px 0;
  border-top: 1px solid var(--line);
}
.platforms-title { font-size: 13px; color: var(--muted); }
.platforms ul { display: flex; flex-wrap: wrap; gap: 8px 36px; font-size: 17px; font-weight: 600; color: var(--ink-2); }

/* ---------- الأقسام العامة ---------- */

.section { padding-block: var(--section-y); }
.section-soft { background: var(--bg-soft); }
.section-head { margin-bottom: clamp(40px, 5vw, 64px); }

/* ---------- إيش هدفنا؟ ---------- */

.section-dark { background: var(--ink); color: #fff; }
.goal { position: relative; overflow: hidden; padding-block: clamp(80px, 11vw, 144px); }
.goal .eyebrow { color: var(--brand-light); }
.statement {
  font-size: clamp(26px, 3.6vw, 46px); line-height: 1.55; font-weight: 600;
  max-width: 22ch;
}
.goal-note { margin-top: 28px; color: #B9B9C4; font-size: clamp(16px, 1.4vw, 19px); max-width: 48ch; }
.arcs-corner {
  position: absolute; width: clamp(260px, 34vw, 460px); height: auto; aspect-ratio: 1;
  inset-inline-end: -2%; bottom: -14%;
  transform: scaleX(-1);
  stroke: var(--brand); opacity: .9;
}
.goal-inner { position: relative; }

/* ---------- خدماتنا ---------- */

.services { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.service {
  position: relative; padding: 36px 28px 40px;
  border-inline-start: 1px solid var(--line);
  transition: background-color .35s var(--ease);
}
.service:first-child { border-inline-start: 0; padding-inline-start: 0; }
.service::before {
  content: ""; position: absolute; top: -1px; inset-inline: 0; height: 2px;
  background: var(--brand); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.service:hover::before { transform: scaleX(1); }
.num { display: block; font-size: 15px; font-weight: 600; color: var(--brand); margin-bottom: 48px; }
.service h3 { font-size: 24px; font-weight: 700; margin-bottom: 14px; }
.service p { color: var(--muted); font-size: 16px; }

/* ---------- من أعمالنا ---------- */

.case {
  display: grid; grid-template-columns: 1.1fr .9fr;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.case-main { padding: clamp(28px, 4vw, 48px); }
.case-side { padding: clamp(28px, 4vw, 48px); border-inline-start: 1px solid var(--line); display: grid; gap: 20px; align-content: start; }

.tag { display: inline-block; font-size: 13px; font-weight: 500; color: var(--brand); background: var(--brand-soft); padding: 4px 12px; border-radius: 2px; }
.case-title { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; margin-top: 16px; line-height: 1.5; }

.case-block { margin-top: 36px; }
.case-block h4 { font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 14px; }

.before { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.before > div { background: var(--bg-soft); padding: 16px; border-radius: var(--radius); }
.before dt { font-size: 13px; color: var(--muted); }
.before dd { display: inline-block; font-size: 17px; font-weight: 700; margin-top: 6px; }

.checklist { display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: baseline; }
.checklist li::before {
  content: ""; flex: none; width: 10px; height: 10px; transform: translateY(-1px);
  border: 2px solid var(--brand); border-top: 0; border-inline-end: 0; border-radius: 0 0 0 10px;
}

.results { background: var(--brand); color: #fff; border-radius: var(--radius); padding: 28px; }
.results-title { font-weight: 600; margin-bottom: 8px; }
.result { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .22); }
.result-label { color: #D9D2FF; font-size: 15px; }
.result strong { font-weight: 700; font-size: 17px; }
.ph-dark { background: rgba(255, 241, 168, .92); }

.shot {
  display: grid; place-items: center; gap: 12px; text-align: center;
  min-height: 180px; padding: 24px;
  border: 1.5px dashed var(--line); border-radius: var(--radius);
  font-size: 14px; color: var(--muted);
}
.shot svg { width: 32px; height: 32px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; }

/* ---------- الباقات ---------- */

.packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.package {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 2.6vw, 36px);
}
.package-featured { border: 2px solid var(--brand); }
.package-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.package h3 { font-size: 26px; font-weight: 700; }
.package-who { color: var(--muted); font-size: 15px; margin-top: 10px; }
.package-price { margin-block: 24px; padding-block: 20px; border-block: 1px solid var(--line); }
.package-price strong { font-size: clamp(34px, 3.4vw, 44px); font-weight: 700; color: var(--ink); line-height: 1.2; }
.package-featured .package-price strong { color: var(--brand); }
.package-price span { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; }
.package-lead { font-weight: 600; font-size: 15px; margin-bottom: 14px; }
.package .checklist { font-size: 15px; margin-bottom: 24px; }
.package-note { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.package .btn { margin-top: auto; justify-content: center; }
.packages-note { color: var(--muted); font-size: 14px; margin-top: 28px; max-width: 90ch; }

/* ---------- أول 30 يوم ---------- */

.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.step { position: relative; padding-top: 40px; padding-inline-end: 32px; }
.step::before { content: ""; position: absolute; top: 7px; inset-inline: 0; height: 1px; background: var(--line); }
.step::after {
  content: ""; position: absolute; top: 0; inset-inline-start: 0;
  width: 15px; height: 15px; border-radius: 50%;
  background: #fff; border: 3px solid var(--brand);
}
.step:last-child::after { background: var(--brand); }
.step-when { display: block; font-size: 14px; color: var(--brand); font-weight: 500; }
.step-when b { font-weight: 600; }
.step h3 { font-size: 22px; font-weight: 700; margin: 10px 0 10px; }
.step p { color: var(--muted); }

/* ---------- ليش فيكتور؟ ---------- */

.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.reason { background: #fff; padding: clamp(28px, 3vw, 40px); }
.reason h3 { display: flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.reason h3::before {
  content: ""; flex: none; width: 18px; height: 18px;
  border: 4px solid var(--brand); border-top: 0; border-inline-end: 0; border-radius: 0 0 0 18px;
}
.reason p { color: var(--muted); font-size: 16px; }

/* ---------- الأسئلة الشائعة ---------- */

.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
.faq-head .btn { margin-top: 32px; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0; cursor: pointer; list-style: none;
  font-size: clamp(17px, 1.6vw, 20px); font-weight: 600;
  transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand); }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
  color: var(--brand); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 28px; max-width: 60ch; }

/* ---------- الخاتمة ---------- */

.cta { padding-bottom: var(--section-y); }
.cta-box {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 48px;
  background: var(--brand); color: #fff; border-radius: var(--radius);
  padding: clamp(36px, 6vw, 80px);
}
.cta-box .title { font-size: clamp(36px, 5vw, 64px); line-height: 1.25; }
.cta-copy { position: relative; }
.cta-copy p { margin: 20px 0 36px; max-width: 44ch; color: #E4DEFF; font-size: 18px; }
.arcs-cta {
  position: absolute; width: clamp(240px, 32vw, 420px); aspect-ratio: 1; height: auto;
  inset-inline-end: -40px; top: -60px; stroke: rgba(255, 255, 255, .14);
}
.contact-list { position: relative; display: grid; gap: 4px; }
.contact-list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .22); }
.contact-list span { color: #D9D2FF; font-size: 14px; }
.contact-list b { font-weight: 600; font-size: 15px; }
.contact-list a { color: inherit; }
.contact-list a:hover { text-decoration: underline; }

/* ---------- الفوتر ---------- */

.site-footer { background: var(--ink); color: #B9B9C4; padding: 48px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.site-footer .logo { width: 140px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; }
.footer-nav a:hover { color: #fff; }
.footer-meta { font-size: 13px; }
.footer-meta .latin { letter-spacing: .08em; }

/* ---------- الظهور عند التمرير ---------- */

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   الشاشات المتوسطة والجوال
   ============================================================ */

@media (max-width: 1080px) {
  .nav { gap: 22px; font-size: 14px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .service:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
  .service:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }

  .menu-toggle {
    display: inline-grid; place-content: center; gap: 6px;
    width: 44px; height: 44px; background: none; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
  }
  .menu-toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px; font-size: 18px;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { justify-self: center; max-width: 380px; margin-top: 8px; }

  .case { grid-template-columns: 1fr; }
  .case-side { border-inline-start: 0; border-top: 1px solid var(--line); }

  .packages { grid-template-columns: 1fr; }

  .timeline { grid-template-columns: 1fr; gap: 36px; }
  .step { padding-top: 0; padding-inline-start: 40px; padding-inline-end: 0; }
  .step::before { top: 22px; bottom: -36px; inset-inline-start: 7px; inset-inline-end: auto; width: 1px; height: auto; }
  .step:last-child::before { display: none; }
  .step::after { top: 4px; }

  .reasons { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-head { position: static; }
  .cta-box { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .header-cta .btn { display: none; }
  .logo { width: 128px; }
  .actions .btn { flex: 1 1 100%; }
  .float-card { min-width: 0; padding: 16px 18px; }
  .float-label, .float-card strong { font-size: 18px; }
  .services { grid-template-columns: 1fr; }
  .service, .service:nth-child(odd) { border-inline-start: 0; padding-inline: 0; }
  .service + .service { border-top: 1px solid var(--line); }
  .num { margin-bottom: 20px; }
  .before { grid-template-columns: 1fr; }
  .reasons { grid-template-columns: 1fr; }
  .platforms { gap: 12px; }
  .platforms ul { gap: 6px 22px; font-size: 15px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
