/* ============================================================
   MUBTKIR THEME — main.css  (patch-3: global redesign)
   Changes: #644DA6 primary | artistic backgrounds | seamless
            sections | stronger 3D | eyebrow size | numbers EN
   ============================================================ */

:root {
  /* ── Colour palette (patch-3: purple is now primary) ─────── */
  --primary:        #644DA6;   /* بنفسجي — أساسي */
  --primary-hover:  #513D87;
  --ink:            #243B63;   /* كحلي — نصوص */
  --ink-2:          #4A5B7A;
  --ink-3:          #7A87A0;
  --secondary:      #3867AE;   /* أزرق — ثانوي */
  --accent:         #0F84B5;   /* تركوازي غامق */
  --glow:           #0BA1B8;   /* تركوازي فاتح — أرقام */
  --wa:             #25D366;
  --wa-hover:       #128C7E;

  --ground:         #F7F5FF;   /* أرضية خفيفة مع مسحة بنفسجية */
  --surface:        #FFFFFF;
  --surface-alt:    #F0EDF9;   /* بنفسجي شفاف جداً */
  --surface-dark:   #1A1030;   /* كحلي بنفسجي للـ footer/numbers */
  --border:         #E2DCF5;
  --border-strong:  #C9C0E8;

  --shadow-sm: 0 2px 8px rgba(100, 77, 166, 0.07);
  --shadow-md: 0 8px 24px rgba(100, 77, 166, 0.1);
  --shadow-lg: 0 20px 48px rgba(100, 77, 166, 0.15);
  --shadow-glow: 0 0 40px rgba(100, 77, 166, 0.25);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --font-display: "Tajawal", "Segoe UI", system-ui, sans-serif;
  --font-body:    "IBM Plex Sans Arabic", "Tajawal", system-ui, sans-serif;

  --container: 1240px;
}

/* Dark mode */
:root:not([data-theme="light"]) {
  @media (prefers-color-scheme: dark) {
    --ground:       #0D0820;
    --surface:      #160E2F;
    --surface-alt:  #1E1440;
    --border:       #2E2355;
    --border-strong:#3D3070;
    --ink:          #E8E0FF;
    --ink-2:        #B8ACDA;
    --ink-3:        #8879B5;
  }
}
:root[data-theme="dark"] {
  --ground:       #0D0820;
  --surface:      #160E2F;
  --surface-alt:  #1E1440;
  --border:       #2E2355;
  --border-strong:#3D3070;
  --ink:          #E8E0FF;
  --ink-2:        #B8ACDA;
  --ink-3:        #8879B5;
}

/* ── Reset & base ─────────────────────────────────────────── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ground);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Artistic mesh background — continuous across ALL sections */
  background-image:
    radial-gradient(ellipse 900px 600px at 80% 5%,  rgba(100,77,166,.06) 0%, transparent 70%),
    radial-gradient(ellipse 700px 500px at 10% 40%, rgba(56,103,174,.05) 0%, transparent 65%),
    radial-gradient(ellipse 600px 400px at 60% 80%, rgba(11,161,184,.04) 0%, transparent 60%);
  background-attachment: fixed;
}

h1,h2,h3,h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  line-height: 1.2;
  text-wrap: balance;
}
p  { margin: 0; }
a  { color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }
button { font-family: inherit; }

/* ── Layout utilities ─────────────────────────────────────── */
.wrap    { max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: 100px; position: relative; }

/*
  SEAMLESS SECTIONS — no hard box borders.
  Every section bleeds into the next via soft clip-path or gradient overlay.
  Individual section backgrounds are set via their own rules below,
  but they all sit on the fixed body mesh so the page reads as ONE canvas.
*/
.section-alt  { background: rgba(240,237,249,.55); }
.section-dark { background: var(--surface-dark); color: #E8E0FF; }
.section-dark h2, .section-dark h3 { color: #FFFFFF; }

/* Eyebrow — global size fix (ملاحظة 9,10,18,22,28,35,39,42) */
.eyebrow {
  display: inline-block;
  font-size: 13px;           /* ← بدل 12px */
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);     /* ← بنفسجي */
  background: rgba(100,77,166,.08);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.section-head { max-width: 720px; margin-inline: auto; text-align: center; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; margin-block: 12px 16px; }
.section-head p { color: var(--ink-2); font-size: 17px; }

/* ── Artistic section dividers (seamless flow) ────────────── */
.section::before,
.section-alt::before,
.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 60% at 50% 0%, rgba(100,77,166,.04), transparent 50%);
  z-index: 0;
}
.section > *, .section-alt > *, .section-dark > * { position: relative; z-index: 1; }

/* Decorative noise overlay on sections */
.section::after, .section-alt::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: .6;
}

/* ── HEADER / NAV ─────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 100;
  background: rgba(247, 245, 255, 0.88);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 16px rgba(100,77,166,.06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-block: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(100,77,166,.35);
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.brand-name small { display: block; font-size: 10px; font-weight: 600; letter-spacing: 0.2em; color: var(--primary); margin-top: -3px; }

.nav-links { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; }
.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  transition: background .18s, color .18s;
}
.nav-links a:hover { background: rgba(100,77,166,.1); color: var(--primary); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--primary), #7B62C4);
  color: #fff;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14px;
  transition: box-shadow .18s, transform .12s;
  box-shadow: 0 4px 14px rgba(100,77,166,.4);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(100,77,166,.55); }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--ink); font-size: 22px; cursor: pointer; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta span { display: none; }
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  padding-block: 80px 100px;
  position: relative;
  overflow: hidden;
  /* Seamless into next section — no hard bottom edge */
  background: transparent;
}
/* Three.js canvas (full bleed) */
#heroCanvas { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.65; width: 100%; height: 100%; }
.hero > .wrap  { position: relative; z-index: 2; }
.hero-visual   { position: relative; z-index: 3; }

/* Hero grid — Responsive (ملاحظة 1 & 2) */
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
  min-height: 78vh;        /* ← full-screen feel */
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px;
  background: rgba(100,77,166,.12);
  color: var(--primary);
  border: 1px solid rgba(100,77,166,.25);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.hero-badge::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(100,77,166,.25);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(100,77,166,.25); }
  50%      { box-shadow: 0 0 0 8px rgba(100,77,166,.06); }
}
.hero h1 {
  font-size: clamp(34px, 4.8vw, 60px);
  font-weight: 900;
  margin-block: 22px 18px;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.hero h1 strong { color: var(--primary); }
.hero-lead {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 560px;
  line-height: 1.7;
}
/* Increased spacing between text and CTAs (ملاحظة 5) */
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 40px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 16px;
  border: 0;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .18s;
  font-family: var(--font-body);
}
.btn:hover { transform: translateY(-3px); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #7B62C4);
  color: #fff;
  box-shadow: 0 6px 22px rgba(100,77,166,.4);
}
.btn-primary:hover { box-shadow: 0 12px 32px rgba(100,77,166,.55); }
.btn-wa    { background: var(--wa); color: #fff; box-shadow: 0 6px 20px rgba(37,211,102,.35); }
.btn-wa:hover { background: var(--wa-hover); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost  { background: var(--surface); color: var(--ink); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.hero-trust {
  display: flex; gap: 28px; flex-wrap: wrap;
  margin-top: 28px;
  font-size: 14px;
  color: var(--ink-2);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust i { color: var(--primary); }

/* Hero visual */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 0.9;
  max-width: 640px;
  justify-self: start;
  width: 100%;
  overflow: visible;   /* ← لا قص للبطاقات (ملاحظة 3) */
}
.hero-visual svg, .hero-visual img {
  width: 100%; height: 100%;
  display: block;
  object-fit: contain;
}
/* Screenshot mode */
.hero-visual.screenshot-mode {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 80px rgba(100,77,166,.12);
}
.hero-visual.screenshot-mode img {
  object-fit: cover;
  width: 100%; height: 100%;
}

/* Floating cards — no clipping (ملاحظة 3) */
.floating-card {
  position: absolute;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 10px 14px !important;
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(100,77,166,.12);
  font-size: 13px !important;
  font-weight: 700;
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.floating-card i {
  width: 28px !important; height: 28px !important;
  display: grid !important; place-items: center !important;
  background: rgba(100,77,166,.1);
  color: var(--primary);
  border-radius: 8px !important;
  font-size: 13px !important;
  flex-shrink: 0;
  padding: 6px;
  box-sizing: border-box;
}
.floating-card.fc-1 { top: 6%;   right: -6%;  animation-delay: 0s;   z-index: 10; }
.floating-card.fc-2 { top: 35%;  left: -8%;   animation-delay: 1.2s; z-index: 10; }
.floating-card.fc-2 i { background: rgba(11,161,184,.12); color: var(--glow); }
.floating-card.fc-3 { bottom: 8%; right: -4%; animation-delay: 2.4s; z-index: 10; }
.floating-card.fc-3 i { background: rgba(56,103,174,.12); color: var(--secondary); }
@keyframes float {
  0%,100% { transform: translateY(0) rotate(0deg); }
  33%      { transform: translateY(-8px) rotate(.5deg); }
  66%      { transform: translateY(-4px) rotate(-.5deg); }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; min-height: auto; }
  .hero-visual { max-width: 480px; margin-inline: auto; overflow: visible; }
}

/* ── PARTNERS STRIP ───────────────────────────────────────── */
.partners {
  padding-block: 60px;
  /* No border box — seamless (ملاحظة 48) */
  background: transparent;
  position: relative;
}
.partners-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
  text-align: center;
}
/* Partners label — bigger (ملاحظة 9) */
.partners-label {
  font-size: 14px;     /* ← بدل 12px */
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  position: relative;
}
.partners-label::before,
.partners-label::after {
  content: "";
  position: absolute;
  top: 50%; width: 60px; height: 1px;
  background: var(--border);
}
.partners-label::before { right: calc(100% + 20px); }
.partners-label::after  { left:  calc(100% + 20px); }

/* Marquee infinite loop (ملاحظة 7) */
.marquee-viewport {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image:         linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}
/* Track = 2× content so loop is seamless */
.marquee-track {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: muMarquee 28s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes muMarquee { to { transform: translateX(-50%); } }

/* Partner logos — 3D hover (ملاحظة 8) */
.partner-logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink);
  font-weight: 800;
  font-size: 22px;      /* ← بدل 20px */
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  filter: grayscale(0.3);
  transition: filter .25s, transform .25s;
  transform-style: preserve-3d;
  perspective: 600px;
}
.partner-logo:hover {
  filter: grayscale(0);
  transform: translateY(-4px) rotateY(-6deg) scale(1.06);
  color: var(--primary);
}
.partner-logo .dot { width: 10px; height: 10px; border-radius: 50%; }
.partner-logo.p-chatwoot .dot { background: #1F93FF; }
.partner-logo.p-salla    .dot { background: #B7DE39; }
.partner-logo.p-ruijie   .dot { background: #E30613; }
.partner-logo.p-frappe   .dot { background: #F27C1B; }
.partner-logo.p-erpnext  .dot { background: #7574F0; }

/* ── WHY MUBTKIR ──────────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  perspective: 1600px;
  padding: 12px;
  margin: -12px;
}
/* Bento-style — odd cards taller (ملاحظة 12) */
.why-card:nth-child(odd)  { padding-block: 40px 36px; }
.why-card:nth-child(even) { padding-block: 32px 28px; margin-top: 16px; }

.why-card {
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(100,77,166,.14);
  border-radius: var(--radius-lg);
  padding-inline: 28px;
  transition: box-shadow .3s, border-color .3s, transform .3s;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
/* Gradient glow on top (ملاحظة 11 — not plain white) */
.why-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(100,77,166,.07) 0%,
    rgba(11,161,184,.04) 60%,
    transparent 100%);
  z-index: 0;
  transition: opacity .3s;
}
.why-card::after {
  content: "";
  position: absolute;
  top: 0; inset-inline: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--glow));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.why-card:hover { box-shadow: var(--shadow-lg), var(--shadow-glow); border-color: rgba(100,77,166,.4); }
.why-card:hover::after { transform: scaleX(1); }
.why-card > * { position: relative; z-index: 1; }

.why-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(100,77,166,.15), rgba(11,161,184,.1));
  color: var(--primary);
  border-radius: var(--radius-md);
  font-size: 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(100,77,166,.2);
  transition: transform .3s;
}
.why-card:hover .why-icon { transform: translateY(-4px) rotateY(10deg); }
.why-card h3 { font-size: 19px; font-weight: 800; margin-bottom: 10px; }
.why-card p  { font-size: 15px; color: var(--ink-2); line-height: 1.65; }

@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

/* ── MODULES + SECTORS ────────────────────────────────────── */
.modsec {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.modsec > div h3 { font-size: 26px; font-weight: 800; margin-bottom: 24px; }

.modules-list {
  display: flex; flex-direction: column; gap: 10px;
  list-style: none; padding: 0; margin: 0;
}
.modules-list a {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(100,77,166,.12);
  border-radius: var(--radius-md);
  transition: border-color .2s, transform .2s, background .2s, box-shadow .2s;
  color: var(--ink);
}
.modules-list a:hover {
  border-color: var(--primary);
  background: rgba(100,77,166,.06);
  transform: translateX(-6px);
  box-shadow: var(--shadow-sm);
  color: var(--primary);
}
.modules-list a:hover .mod-icon { background: var(--primary); color: #fff; transform: rotateY(20deg); }
.mod-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: rgba(100,77,166,.1);
  color: var(--primary);
  border-radius: var(--radius-sm);
  font-size: 18px;
  transition: background .2s, color .2s, transform .3s;
  transform-style: preserve-3d;
}
.mod-arrow { color: var(--ink-3); font-size: 14px; transition: transform .2s, color .2s; }
.modules-list a:hover .mod-arrow { transform: translateX(-4px); color: var(--primary); }

.sectors-list {
  display: flex; flex-wrap: wrap; gap: 10px;
  list-style: none; padding: 0; margin: 0 0 32px;
}
.sector-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(100,77,166,.15);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  transition: all .2s;
  cursor: default;
  backdrop-filter: blur(8px);
}
.sector-pill:hover {
  background: rgba(100,77,166,.1);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px) scale(1.04);
  box-shadow: var(--shadow-sm);
}
.sector-pill i { color: var(--primary); }

/* Vision placeholder (ملاحظة 13) */
.vision-placeholder {
  margin-top: 28px;
  height: 200px;
  border-radius: var(--radius-lg);
  border: 2px dashed rgba(100,77,166,.3);
  display: grid; place-items: center;
  text-align: center;
  color: var(--ink-3);
  font-size: 14px;
  background: rgba(100,77,166,.03);
  position: relative;
  overflow: hidden;
}
.vision-placeholder::before {
  content: "صورة رؤية 2030 — قريباً";
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
}

@media (max-width: 900px) { .modsec { grid-template-columns: 1fr; gap: 40px; } }

/* ── DUO (برنامج + محاسبة) ────────────────────────────────── */
.duo {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: stretch;
  perspective: 1600px;
}
.duo-card {
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(100,77,166,.18);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex; flex-direction: column;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .3s;
  position: relative;
  overflow: hidden;
}
.duo-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(100,77,166,.06), transparent 60%);
  pointer-events: none;
}
.duo-card:hover {
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: translateY(-6px) rotateX(1deg);
}
.duo-icon {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 26px;
  margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(100,77,166,.3);
  transition: transform .3s;
}
.duo-card:hover .duo-icon { transform: rotateY(15deg) translateZ(10px); }
.duo-card h3 { font-size: 22px; font-weight: 800; margin-bottom: 16px; }
.duo-card ul { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }
.duo-card ul li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0;
  font-size: 15px; color: var(--ink-2);
  border-bottom: 1px solid rgba(100,77,166,.07);
}
.duo-card ul li:last-child { border-bottom: 0; }
.duo-card ul li i { color: var(--primary); width: 16px; flex-shrink: 0; }

/* Plus sign — bigger & purple (ملاحظة 21) */
.duo-plus {
  display: grid; place-items: center; align-self: center;
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--primary), #7B62C4);
  color: #fff;
  border-radius: 50%;
  font-size: 28px;   /* ← bigger */
  font-weight: 900;
  box-shadow: 0 8px 24px rgba(100,77,166,.4);
  transition: transform .3s, box-shadow .3s;
  flex-shrink: 0;
}
.duo-plus:hover { transform: rotate(90deg) scale(1.1); box-shadow: 0 12px 32px rgba(100,77,166,.55); }

@media (max-width: 900px) {
  .duo { grid-template-columns: 1fr; }
  .duo-plus { width: 44px; height: 44px; font-size: 22px; margin-inline: auto; }
}

/* ── SERVICES (3-card on homepage) ───────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  perspective: 1600px;
}
.service-card {
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(100,77,166,.14);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex; flex-direction: column;
  transition: transform .35s, box-shadow .3s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(100,77,166,.08), transparent 70%);
  pointer-events: none;
}
.service-card:hover {
  transform: translateY(-8px) rotateX(1.5deg);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}
.service-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: rgba(100,77,166,.1);
  color: var(--primary);
  border-radius: var(--radius-md);
  font-size: 22px;
  margin-bottom: 18px;
  transition: transform .3s;
}
.service-card:hover .service-icon { transform: rotateY(20deg) translateZ(6px); }
.service-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.service-card p  { font-size: 14px; color: var(--ink-2); margin-bottom: 20px; flex: 1; }
.service-more {
  margin-top: auto;
  font-size: 14px; font-weight: 700;
  color: var(--primary);
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap .2s;
}
.service-more:hover { gap: 10px; }

.services-cta { text-align: center; margin-top: 32px; }
.services-cta a { font-weight: 700; color: var(--primary); }

@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .services-grid { grid-template-columns: 1fr; } }

/* ── NUMBERS (dark) ───────────────────────────────────────── */
.numbers {
  background: var(--surface-dark);
  color: #fff;
  padding-block: 72px;
  position: relative;
  overflow: hidden;
}
.numbers::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 700px 400px at 15% 50%, rgba(100,77,166,.2), transparent 60%),
    radial-gradient(ellipse 600px 350px at 85% 50%, rgba(56,103,174,.18), transparent 60%),
    radial-gradient(ellipse 500px 300px at 50% 90%, rgba(11,161,184,.1), transparent 60%);
  pointer-events: none;
}
/* Seamless top edge into previous section */
.numbers::after {
  content: "";
  position: absolute;
  top: 0; inset-inline: 0; height: 80px;
  background: linear-gradient(to bottom, var(--ground), transparent);
  pointer-events: none;
  z-index: 0;
}
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}
.num-tile {
  text-align: center;
  padding: 28px 20px;
  position: relative;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  transition: background .3s, transform .3s, box-shadow .3s;
}
.num-tile:hover {
  background: rgba(100,77,166,.15);
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(100,77,166,.3);
}
/* Numbers EN — font variant (ملاحظة 25) */
.num-value {
  font-family: var(--font-display);
  font-size: clamp(42px, 5.5vw, 60px);
  font-weight: 900;
  color: var(--glow);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  /* Force LTR for EN numbers inside RTL page */
  direction: ltr;
  unicode-bidi: isolate;
}
.num-label {
  font-size: 15px;
  color: rgba(255,255,255,.75);
  margin-top: 12px;
  font-weight: 600;
}
@media (max-width: 700px) {
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── TESTIMONIALS ─────────────────────────────────────────── */
.clients-logos {
  display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
  padding-bottom: 40px; border-bottom: 1px solid var(--border);
  margin-bottom: 56px;
  opacity: 0.75;
}
.client-logo {
  font-family: var(--font-display);
  font-weight: 800; font-size: 18px;
  color: var(--ink-2);
  transition: color .2s, transform .2s;
}
.client-logo:hover { color: var(--primary); transform: translateY(-2px); }

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  perspective: 1600px;
}
.testi-card {
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(100,77,166,.15);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  display: flex; flex-direction: column;
  transition: transform .35s, box-shadow .3s;
}
.testi-card:hover {
  transform: translateY(-6px) rotateX(1deg);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(100,77,166,.1);
}
.testi-card::before {
  content: "\201D";
  position: absolute;
  top: 12px; left: 24px;
  font-family: var(--font-display);
  font-size: 80px;
  color: var(--primary);
  opacity: 0.15;
  line-height: 1;
}
.testi-quote { font-size: 16px; color: var(--ink); line-height: 1.7; margin-bottom: 24px; flex: 1; }
.testi-author { display: flex; align-items: center; gap: 14px; }
.testi-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800; font-size: 18px;
  flex-shrink: 0;
}
.testi-avatar.a1 { background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.testi-avatar.a2 { background: linear-gradient(135deg, var(--secondary), var(--glow)); }
.testi-avatar.a3 { background: linear-gradient(135deg, var(--accent), var(--primary)); }
.testi-name { font-weight: 700; color: var(--ink); font-size: 15px; }
.testi-role { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.testi-more { text-align: center; margin-top: 40px; }
.testi-more a { color: var(--primary); font-weight: 700; }

@media (max-width: 900px) { .testi-grid { grid-template-columns: 1fr; } }

/* ── PRICING ──────────────────────────────────────────────── */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
  perspective: 1600px;
}
.plan {
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(100,77,166,.15);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex; flex-direction: column;
  position: relative;
  transition: transform .35s, box-shadow .3s;
}
.plan:hover { transform: translateY(-6px) rotateX(1deg); box-shadow: var(--shadow-lg); }
.plan.featured {
  border-color: var(--primary);
  border-width: 2px;
  background:
    linear-gradient(rgba(255,255,255,.9), rgba(255,255,255,.9)) padding-box,
    linear-gradient(135deg, var(--primary), var(--accent)) border-box;
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}
.plan-badge {
  position: absolute;
  top: -15px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), #7B62C4);
  color: #fff;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 800;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(100,77,166,.4);
}
.plan-name { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--ink); margin-bottom: 6px; }
.plan-desc { color: var(--ink-2); font-size: 14px; margin-bottom: 24px; min-height: 40px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 28px; }
/* Riyal symbol (ملاحظة 37) */
.plan-currency {
  font-size: 22px; font-weight: 800; color: var(--primary);
  /* New SAMA Riyal symbol */
  font-feature-settings: "liga";
}
/* EN numbers in pricing (ملاحظة 36) */
.plan-amount {
  font-family: var(--font-display);
  font-size: 52px; font-weight: 900; color: var(--ink); line-height: 1;
  font-variant-numeric: tabular-nums;
  direction: ltr; unicode-bidi: isolate;
  letter-spacing: -0.02em;
}
.plan-period { color: var(--ink-3); font-size: 14px; }
.plan-features { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }
.plan-features li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 0; font-size: 14px; color: var(--ink);
  border-bottom: 1px solid rgba(100,77,166,.06);
}
.plan-features li:last-child { border-bottom: 0; }
.plan-features li i { color: var(--primary); margin-top: 3px; flex-shrink: 0; }
.plan-features li.dim { color: var(--ink-3); }
.plan-features li.dim i { color: var(--ink-3); }
.plan .btn { justify-content: center; width: 100%; }

.plans-note { text-align: center; margin-top: 32px; }
.plans-note a { color: var(--primary); font-weight: 700; }

@media (max-width: 900px) {
  .plans { grid-template-columns: 1fr; }
  .plan.featured { transform: none; }
}

/* ── ARTICLES ─────────────────────────────────────────────── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  perspective: 1600px;
}
.article-card {
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(100,77,166,.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .35s, box-shadow .3s;
}
.article-card:hover {
  transform: translateY(-8px) rotateX(1deg);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(100,77,166,.1);
}
.article-cover {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  position: relative;
  display: grid; place-items: center;
  color: #fff;
}
.article-cover.c2 { background: linear-gradient(135deg, var(--secondary), var(--glow)); }
.article-cover.c3 { background: linear-gradient(135deg, var(--surface-dark), var(--primary)); }
.article-cover i  { font-size: 48px; opacity: 0.85; }
.article-cover::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.18), transparent 55%);
}
.article-body { padding: 22px 24px; display: flex; flex-direction: column; flex: 1; }
.article-cat {
  align-self: flex-start;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--primary);
  background: rgba(100,77,166,.1);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}
.article-title { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--ink); margin-bottom: 12px; line-height: 1.4; }
.article-meta  { color: var(--ink-3); font-size: 13px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); }

.articles-more { text-align: center; margin-top: 32px; }
.articles-more a { color: var(--primary); font-weight: 700; }

@media (max-width: 900px) { .articles-grid { grid-template-columns: 1fr; } }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq-list { max-width: 820px; margin-inline: auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(100,77,166,.14);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.faq-item[open], .faq-item.faq-open { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  font-weight: 700; color: var(--ink); font-size: 16px;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
/* Hover-open via JS (ملاحظة 43) */
.faq-item:not([open]):hover { border-color: rgba(100,77,166,.35); }
.faq-icon {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: rgba(100,77,166,.08);
  color: var(--primary);
  border-radius: 50%;
  font-size: 12px;
  transition: transform .3s, background .2s, color .2s;
  flex-shrink: 0;
}
.faq-item[open] .faq-icon, .faq-item.faq-open .faq-icon {
  transform: rotate(180deg);
  background: var(--primary); color: #fff;
}
.faq-answer {
  padding: 0 24px 22px;
  color: var(--ink-2); font-size: 15px; line-height: 1.75;
  border-top: 1px solid rgba(100,77,166,.08);
  padding-top: 16px;
}
.faq-more { text-align: center; margin-top: 32px; }
.faq-more a { color: var(--primary); font-weight: 700; }

/* ── FINAL CTA ────────────────────────────────────────────── */
.final-cta {
  /* Seamless gradient into footer (ملاحظة 44,45) */
  background:
    radial-gradient(ellipse 80% 60% at 10% 50%, rgba(100,77,166,.3), transparent 65%),
    radial-gradient(ellipse 70% 55% at 90% 40%, rgba(56,103,174,.2), transparent 65%),
    linear-gradient(160deg, #2A1A5E 0%, var(--surface-dark) 100%);
  color: #fff;
  padding-block: 88px;
  text-align: center;
  position: relative;
  overflow: hidden;
  clip-path: none; /* seamless via gradient bleed */
}
/* Top fade from page into CTA — no hard edge */
.final-cta::before {
  content: "";
  position: absolute; top: 0; inset-inline: 0; height: 100px;
  background: linear-gradient(to bottom, var(--ground), transparent);
  pointer-events: none; z-index: 0;
}
.final-cta > .wrap { position: relative; z-index: 1; }

.final-cta h2 {
  color: #fff;
  font-size: clamp(28px, 3.8vw, 46px);
  font-weight: 900;
  margin-bottom: 18px;
  text-wrap: balance;
}
.final-cta p {
  max-width: 640px; margin-inline: auto;
  color: rgba(255,255,255,.82); font-size: 18px;
}
/* Spacing: text → buttons (ملاحظة 46) */
.final-cta-buttons {
  display: inline-flex; gap: 16px; flex-wrap: wrap;
  justify-content: center;
  margin-top: 44px;  /* ← بدل 32px */
}
.final-cta .btn-light { background: #fff; color: var(--primary); font-weight: 800; }
.final-cta .btn-light:hover { background: rgba(255,255,255,.92); }

/* ── FOOTER ───────────────────────────────────────────────── */
.site-footer {
  /* Seamless continuation from CTA (ملاحظة 47) */
  background: var(--surface-dark);
  color: rgba(255,255,255,.75);
  padding-block: 64px 32px;
  /* No separate box border — blends with CTA above */
  border-top: 0;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute; top: 0; inset-inline: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(100,77,166,.5), transparent);
  pointer-events: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand h4 { color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 22px; margin-bottom: 12px; }
.footer-brand p  { font-size: 14px; line-height: 1.7; max-width: 320px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.07);
  border-radius: 10px; color: #fff;
  transition: background .18s, transform .12s;
}
.footer-social a:hover { background: var(--primary); transform: translateY(-2px); }
.footer-col h5 { color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 15px; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { padding: 6px 0; font-size: 14px; }
.footer-col ul a { color: rgba(255,255,255,.65); transition: color .18s; }
.footer-col ul a:hover { color: var(--glow); }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact li i { color: var(--glow); margin-top: 5px; width: 16px; text-align: center; flex-shrink: 0; }
.footer-bottom {
  padding-top: 32px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  font-size: 13px; color: rgba(255,255,255,.5);
}
.footer-bottom a { color: rgba(255,255,255,.65); }
.footer-bottom a:hover { color: var(--glow); }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ── FLOATING WHATSAPP ────────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  left: 24px;
  width: 62px; height: 62px;
  background: var(--wa);
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-size: 30px;
  box-shadow: 0 10px 28px rgba(37,211,102,.4);
  z-index: 99;
  transition: transform .2s, box-shadow .2s;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 14px 36px rgba(37,211,102,.55); }
.wa-float::before {
  content: "";
  position: absolute; inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--wa);
  animation: ring 2.2s infinite;
  opacity: 0.5;
}
@keyframes ring {
  0%   { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ── MOTION LAYER ─────────────────────────────────────────── */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Custom cursor */
.mu-cursor-dot, .mu-cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; will-change: transform; }
.mu-cursor-dot  { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; margin: -4px 0 0 -4px; }
.mu-cursor-ring { width: 40px; height: 40px; border: 1.5px solid var(--primary); border-radius: 50%; margin: -20px 0 0 -20px; transition: width .25s, height .25s, margin .25s, border-color .25s, background .25s; }
.mu-cursor-ring.hover { width: 72px; height: 72px; margin: -36px 0 0 -36px; border-color: var(--glow); background: rgba(100,77,166,.08); }
@media (hover: none),(pointer: coarse) { .mu-cursor-dot, .mu-cursor-ring { display: none !important; } }

/* Three.js canvas */
#heroCanvas { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.6; }

/* Tilt — 3D on ALL card grids */
.why-grid, .services-grid, .testi-grid, .plans, .articles-grid, .duo {
  perspective: 1600px;
}
.tilt {
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .3s;
  will-change: transform;
  transform-style: preserve-3d;
}
.tilt.is-tilting { transition: transform .08s linear; }

/* Scroll reveal classes */
.js .reveal-y    { opacity: 0; transform: translateY(50px); }
.js .reveal-fade { opacity: 0; }

/* ── Word reveal ──────────────────────────────────────────── */
.word-wrap { display: inline-flex; overflow: hidden; padding: 0.08em 0; }
.word-wrap .w { display: inline-block; will-change: transform, opacity; }

/* ── Accessibility ────────────────────────────────────────── */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ── Reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .floating-card { animation: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
