/* ===== Reid — رِيْد ===== */
:root {
  --bg: #F5F5F4;
  --purple: #55418B;
  --purple-deep: #4a3a7c;
  --lavender: #7D80DA;
  --mauve: #E5DBE6;
  --rosy: #BBA0A0;
  --ink: #3a3344;
  --muted: #625971;
  --muted-2: #746a82;

  /* enriched identity */
  --indigo-deep: #2E2352;
  --indigo-900: #241B44;
  --lilac-bright: #A78BFA;
  --accent-warm: #C98A76;

  /* layout widths */
  --content: 1320px;
  --wide: 1480px;

  /* rich gradients */
  --grad-text: linear-gradient(100deg, var(--lavender), var(--lilac-bright) 45%, var(--purple));
  --grad-cta: linear-gradient(135deg, var(--purple) 0%, var(--indigo-deep) 55%, var(--lavender) 130%);
  --grad-brand: linear-gradient(135deg, var(--lavender), var(--purple));

  /* faint film-grain texture (SVG feTurbulence) */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  overflow-x: clip;
}

/* subtle grain over the whole page for a premium feel */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background-image: var(--grain);
  background-size: 160px 160px;
  opacity: 0.035;
  mix-blend-mode: multiply;
}

/* scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0; inset-inline-start: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--grad-text);
  z-index: 300;
  pointer-events: none;
}
html[dir="rtl"] .scroll-progress { transform-origin: 100% 50%; }

/* full-bleed helper: break out of any centered container to the viewport edges */
.full-bleed {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
}

a { color: var(--lavender); text-decoration: none; }
a:hover { color: var(--purple); }
::selection { background: var(--lavender); color: #fff; }

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

.skip-link {
  position: absolute;
  top: -60px;
  inset-inline-start: 16px;
  z-index: 200;
  background: var(--purple);
  color: #fff;
  padding: 12px 22px;
  border-radius: 0 0 14px 14px;
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; color: #fff; }

section[id], footer[id] { scroll-margin-top: 88px; }

h1, h2, h3 { font-family: 'Alexandria', sans-serif; }

.container { max-width: var(--content); margin: 0 auto; }
.ltr { direction: ltr; text-align: right; }

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 20px) scale(1.08); }
}
@keyframes blobFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(25px, -25px) scale(0.94); }
}
/* slow drifting mesh gradient */
@keyframes meshDrift {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(3%, -2%) scale(1.05); }
  66%  { transform: translate(-2%, 3%) scale(0.98); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes orbFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-26px) rotate(8deg); }
}
@keyframes ringPulse {
  0% { transform: scale(0.7); opacity: 0.55; }
  100% { transform: scale(1.6); opacity: 0; }
}
@keyframes marqueeRTL {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes marqueeLTR {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}

/* ===== Reveal ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* word-by-word heading reveal */
[data-split] .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em) rotate(2deg);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--word-delay, 0ms);
  will-change: transform, opacity;
}
[data-split].is-visible .word { opacity: 1; transform: translateY(0) rotate(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  [data-split] .word { opacity: 1; transform: none; transition: none; }
  .blob, .mesh-layer, .hero-orb, .marquee-track { animation: none !important; }
  .marquee-track { transform: none !important; }
}
.no-js [data-reveal],
.no-js [data-split] .word { opacity: 1; transform: none; }

/* ===== NAV ===== */
.site-header {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 100;
  background: rgba(245, 245, 244, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(85, 65, 139, 0.08);
}
.nav {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 28px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--purple); }
.brand:hover { color: var(--purple); }
.brand-mark { width: 34px; height: 34px; display: block; }
.brand-name { font-family: 'Alexandria', sans-serif; font-weight: 700; font-size: 21px; letter-spacing: -0.5px; }
.brand-latin { font-weight: 400; font-size: 13px; color: var(--rosy); }

.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14.5px; font-weight: 500; }
.nav-links a { color: var(--purple); position: relative; }
.nav-links a:hover { color: var(--lavender); }
.nav-links a.active { color: var(--lavender); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px; right: 0; left: 0;
  height: 2.5px;
  border-radius: 2px;
  background: var(--lavender);
}

.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch {
  font-size: 13px;
  font-weight: 600;
  color: var(--purple);
  border: 1px solid rgba(85, 65, 139, 0.25);
  padding: 7px 14px;
  border-radius: 999px;
  direction: ltr;
  transition: all 0.25s ease;
}
.lang-switch:hover { background: var(--purple); color: #fff; }

.nav-cta {
  background: var(--lavender);
  color: #fff;
  padding: 11px 24px;
  border-radius: 999px;
  font-size: 14.5px; font-weight: 600;
  box-shadow: 0 6px 18px rgba(125, 128, 218, 0.35);
  transition: all 0.25s ease;
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 8px 24px rgba(85, 65, 139, 0.4);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(85, 65, 139, 0.18);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--purple);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px; right: 0; left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(245, 245, 244, 0.97);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(85, 65, 139, 0.1);
    padding: 8px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 28px; }
  .nav-links a.active::after { display: none; }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 190px 28px 130px;
  overflow: hidden;
  background: linear-gradient(160deg, #F5F5F4 0%, #E7DDE8 55%, #d7d0f0 100%);
}
/* animated multi-radial mesh */
.mesh-layer {
  position: absolute;
  inset: -20%;
  pointer-events: none;
  background:
    radial-gradient(38% 42% at 18% 22%, rgba(125, 128, 218, 0.55), transparent 60%),
    radial-gradient(34% 38% at 82% 30%, rgba(167, 139, 250, 0.45), transparent 60%),
    radial-gradient(40% 44% at 70% 82%, rgba(85, 65, 139, 0.38), transparent 62%),
    radial-gradient(30% 34% at 28% 78%, rgba(201, 138, 118, 0.30), transparent 60%);
  filter: blur(40px);
  animation: meshDrift 22s ease-in-out infinite;
  will-change: transform;
}
.blob { position: absolute; border-radius: 50%; pointer-events: none; }

/* floating orb accents (also used for parallax) */
.hero-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.hero-orb.ring {
  border: 2px solid rgba(85, 65, 139, 0.18);
  background: transparent;
}
.orb-1 {
  top: 14%; inset-inline-start: 8%;
  width: 120px; height: 120px;
  background: radial-gradient(circle at 30% 30%, rgba(167, 139, 250, 0.8), rgba(85, 65, 139, 0.35));
  box-shadow: 0 20px 50px rgba(85, 65, 139, 0.28);
  animation: orbFloat 9s ease-in-out infinite;
}
.orb-2 {
  top: 22%; inset-inline-end: 12%;
  width: 74px; height: 74px;
  animation: orbFloat 11s ease-in-out infinite reverse;
}
.orb-3 {
  bottom: 16%; inset-inline-start: 16%;
  width: 180px; height: 180px;
  animation: orbFloat 13s ease-in-out infinite;
}

.hero-inner { position: relative; z-index: 1; max-width: var(--content); margin: 0 auto; text-align: center; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(125, 128, 218, 0.25);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13.5px; font-weight: 500;
  color: var(--purple);
  margin-bottom: 28px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lavender); }

.hero h1 {
  font-weight: 800;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.18;
  letter-spacing: -0.5px;
  color: var(--indigo-deep);
  margin: 0 auto 26px;
  max-width: 960px;
  text-wrap: balance;
}
.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.95;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 44px;
  font-weight: 300;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 16px 38px;
  border-radius: 999px;
  font-size: 16px; font-weight: 600;
  transition: all 0.25s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--lavender), var(--purple));
  color: #fff;
  box-shadow: 0 10px 30px rgba(125, 128, 218, 0.45);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(85, 65, 139, 0.5);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  color: var(--purple);
  border: 1px solid rgba(85, 65, 139, 0.18);
}
.btn-ghost:hover { background: #fff; color: var(--purple); transform: translateY(-2px); }
.btn-light {
  background: var(--bg);
  color: var(--purple);
  font-weight: 700;
  padding: 16px 44px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.btn-light:hover {
  color: var(--purple);
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.3);
}

.hero-stats {
  margin-top: 72px;
  display: flex;
  justify-content: center;
  gap: clamp(28px, 6vw, 72px);
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-value { font-family: 'Alexandria', sans-serif; font-weight: 800; font-size: 34px; color: var(--purple); }
.stat-label { font-size: 13.5px; color: var(--muted-2); margin-top: 4px; }

/* ===== SECTIONS ===== */
.section { padding: 120px 28px; max-width: var(--content); margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 64px; }
.eyebrow { color: var(--lavender); font-weight: 600; font-size: 14px; letter-spacing: 1px; margin-bottom: 12px; }
.section-head h2, .about h2 {
  font-weight: 700;
  font-size: clamp(28px, 4vw, 42px);
  color: var(--purple);
  margin: 0 0 16px;
}
.section-head p {
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.9;
  max-width: 560px;
  margin: 0 auto;
  font-weight: 300;
}

/* ===== MARQUEE ===== */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 22px 0;
  background: var(--indigo-deep);
  border-block: 1px solid rgba(167, 139, 250, 0.25);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: marqueeRTL 32s linear infinite;
}
html[dir="ltr"] .marquee-track { animation-name: marqueeLTR; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding-inline: 26px;
  font-family: 'Alexandria', sans-serif;
  font-weight: 700;
  font-size: clamp(18px, 2.4vw, 26px);
  color: rgba(245, 245, 244, 0.92);
  white-space: nowrap;
}
.marquee-item::after {
  content: '';
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--lilac-bright);
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.8);
}

/* ===== SERVICES — BENTO ===== */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(190px, auto);
  gap: 20px;
}
.service-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 26px;
  padding: 34px 30px;
  box-shadow: 0 8px 30px rgba(85, 65, 139, 0.07);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, background 0.35s ease;
  transform-style: preserve-3d;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 120% at var(--mx, 50%) var(--my, 0%), rgba(167, 139, 250, 0.16), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover {
  box-shadow: 0 22px 50px rgba(85, 65, 139, 0.18);
  background: rgba(255, 255, 255, 0.75);
}
/* bento spans */
.bento-lg { grid-column: span 4; grid-row: span 2; }
.bento-sm { grid-column: span 2; grid-row: span 1; }
.bento-md { grid-column: span 3; }
.service-card.bento-lg {
  background: var(--grad-cta);
  border: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.service-card.bento-lg h3 { color: #fff; font-size: 26px; }
.service-card.bento-lg p { color: rgba(229, 219, 230, 0.9); font-size: 15.5px; }
.service-card.bento-lg .service-icon {
  background: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-lg, .bento-sm, .bento-md { grid-column: span 2; grid-row: auto; }
}
.service-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--grad-brand);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  box-shadow: 0 6px 16px rgba(125, 128, 218, 0.35);
}
.shape { display: block; width: 20px; height: 20px; background: rgba(255, 255, 255, 0.95); }
.shape-square { border-radius: 6px; }
.shape-circle { border-radius: 50%; }
.shape-diamond { border-radius: 4px; transform: rotate(45deg); }
.service-card h3 { font-weight: 700; font-size: 20px; color: var(--purple); margin: 0 0 12px; position: relative; }
.service-card p { color: var(--muted); font-size: 14.5px; line-height: 1.9; margin: 0; font-weight: 300; position: relative; }

/* ===== PRODUCTS — FULL-BLEED SHOWCASE ===== */
.products-band {
  padding: 120px 28px;
  background: linear-gradient(180deg, #F5F5F4 0%, #ECE4ED 50%, #F5F5F4 100%);
}
.showcase { display: flex; flex-direction: column; gap: 40px; }
.product-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
  gap: 0;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 10px 34px rgba(85, 65, 139, 0.09);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(85, 65, 139, 0.18);
}
.product-card:nth-child(even) .product-media { order: 2; }
.product-media {
  min-height: 340px;
  background:
    radial-gradient(circle at 70% 30%, rgba(167, 139, 250, 0.18), transparent 60%),
    rgba(229, 219, 230, 0.45);
  overflow: hidden;
  display: flex;
}
.product-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}
.product-body { padding: clamp(30px, 4vw, 52px); display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.product-title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.product-title-row h3 { font-weight: 800; font-size: clamp(22px, 3vw, 30px); color: var(--indigo-deep); margin: 0; }
@media (max-width: 820px) {
  .product-card { grid-template-columns: 1fr; }
  .product-card:nth-child(even) .product-media { order: 0; }
  .product-media { min-height: 240px; }
}
.product-name {
  font-size: 12px; font-weight: 600;
  color: var(--lavender);
  background: rgba(125, 128, 218, 0.12);
  padding: 4px 14px;
  border-radius: 999px;
  direction: ltr;
}
.product-subtitle { font-size: 14px; font-weight: 500; color: var(--muted-2); }
.product-body > p { color: var(--muted); font-size: 14.5px; line-height: 1.95; margin: 0; font-weight: 300; flex: 1; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 6px; }
.tag {
  font-size: 12px; font-weight: 500;
  color: var(--purple);
  background: rgba(187, 160, 160, 0.18);
  border: 1px solid rgba(187, 160, 160, 0.3);
  padding: 5px 14px;
  border-radius: 999px;
}
.case-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--purple);
  margin-top: 4px;
}
.case-link:hover { color: var(--lavender); }
.case-link span { transition: transform 0.25s ease; display: inline-block; }
.case-link:hover span { transform: translateX(-4px); }

/* ===== WHY REID ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 60px;
  align-items: center;
}
.why-title {
  font-weight: 700;
  font-size: clamp(28px, 4vw, 42px);
  color: var(--purple);
  margin: 0 0 20px;
  line-height: 1.35;
}
.why-text { color: var(--muted); font-size: 16px; line-height: 2; font-weight: 300; margin: 0; }
.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 480px) { .features-grid { grid-template-columns: 1fr; } }
.feature-card {
  background: rgba(229, 219, 230, 0.45);
  border: 1px solid rgba(187, 160, 160, 0.25);
  border-radius: 20px;
  padding: 26px 22px;
  transition: background 0.3s ease, transform 0.3s ease;
}
.feature-card:hover { background: rgba(229, 219, 230, 0.75); transform: translateY(-4px); }
.feature-icon {
  width: 42px; height: 42px;
  border-radius: 13px;
  background: rgba(125, 128, 218, 0.15);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.shape-sm { display: block; width: 14px; height: 14px; }
.shape-sm.circle { border-radius: 50%; }
.shape-sm.square { border-radius: 4px; }
.shape-sm.diamond { border-radius: 4px; transform: rotate(45deg); }
.feature-card h3 { font-weight: 600; font-size: 16px; color: var(--purple); margin: 0 0 8px; }
.feature-card p { color: var(--muted); font-size: 13px; line-height: 1.8; margin: 0; font-weight: 300; }

/* ===== STATS BAND (dark, full-bleed) ===== */
.stats-band {
  position: relative;
  overflow: hidden;
  background: var(--indigo-deep);
  padding: clamp(56px, 8vw, 92px) 28px;
}
.stats-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 60% at 15% 20%, rgba(125, 128, 218, 0.35), transparent 60%),
    radial-gradient(40% 60% at 85% 90%, rgba(167, 139, 250, 0.28), transparent 60%);
  pointer-events: none;
}
.stats-band-inner {
  position: relative;
  max-width: var(--content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  text-align: center;
}
@media (max-width: 640px) { .stats-band-inner { grid-template-columns: 1fr; gap: 40px; } }
.stats-band .stat-value {
  font-family: 'Alexandria', sans-serif;
  font-weight: 800;
  font-size: clamp(44px, 7vw, 72px);
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stats-band .stat-label { color: rgba(229, 219, 230, 0.82); font-size: 15px; margin-top: 10px; }

/* ===== PROCESS — TIMELINE ===== */
.process-band { padding: 120px 28px; background: var(--mauve); }
.steps-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}
/* progress rail that fills as the section scrolls into view */
.timeline-rail {
  position: absolute;
  top: 40px; inset-inline: 30px;
  height: 3px;
  border-radius: 3px;
  background: rgba(85, 65, 139, 0.14);
  overflow: hidden;
}
.timeline-rail::after {
  content: '';
  position: absolute;
  inset-block: 0; inset-inline-start: 0;
  width: var(--rail, 0%);
  background: var(--grad-text);
  transition: width 0.2s linear;
}
@media (max-width: 760px) { .timeline-rail { display: none; } }
.step-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 22px;
  padding: 32px 26px;
  position: relative;
  box-shadow: 0 6px 24px rgba(85, 65, 139, 0.06);
}
.step-num {
  font-family: 'Alexandria', sans-serif;
  font-weight: 800;
  font-size: 40px;
  background: linear-gradient(135deg, var(--lavender), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}
.step-card h3 { font-weight: 600; font-size: 17px; color: var(--purple); margin: 0 0 10px; }
.step-card p { color: var(--muted); font-size: 13.5px; line-height: 1.85; margin: 0; font-weight: 300; }

/* ===== ABOUT ===== */
.about { max-width: 900px; text-align: center; }
.about h2 { margin-bottom: 24px; }
.about-text { color: var(--muted); font-size: 17px; line-height: 2.1; font-weight: 300; margin: 0 0 40px; }
.values { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.value-chip {
  background: rgba(187, 160, 160, 0.16);
  border: 1px solid rgba(187, 160, 160, 0.35);
  color: var(--purple);
  font-size: 13.5px; font-weight: 500;
  padding: 9px 20px;
  border-radius: 999px;
}

/* ===== CTA ===== */
.cta-wrap { padding: 0 28px 110px; }
.cta {
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-deep) 60%, var(--lavender) 130%);
  border-radius: 32px;
  padding: clamp(48px, 7vw, 90px) clamp(28px, 5vw, 80px);
  text-align: center;
  box-shadow: 0 24px 60px rgba(85, 65, 139, 0.35);
}
.cta-blob { position: absolute; border-radius: 50%; pointer-events: none; }
.cta-blob-1 {
  top: -100px; right: -60px;
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(125, 128, 218, 0.5), transparent 70%);
  filter: blur(50px);
}
.cta-blob-2 {
  bottom: -120px; left: -40px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(229, 219, 230, 0.25), transparent 70%);
  filter: blur(50px);
}
.cta-inner { position: relative; }
.cta h2 {
  font-weight: 700;
  font-size: clamp(26px, 4vw, 40px);
  color: #fff;
  margin: 0 0 18px;
  line-height: 1.4;
}
.cta p {
  color: rgba(229, 219, 230, 0.85);
  font-size: 16.5px;
  line-height: 1.9;
  max-width: 540px;
  margin: 0 auto 36px;
  font-weight: 300;
}

/* ===== FOOTER ===== */
.footer { background: var(--purple); color: var(--mauve); padding: 64px 28px 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(229, 219, 230, 0.18);
}
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
  font-family: 'Alexandria', sans-serif;
  font-weight: 700; font-size: 19px; color: #fff;
}
.footer-mark {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: rgba(245, 245, 244, 0.15);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 800; font-size: 15px;
}
.footer-about {
  font-size: 13.5px;
  line-height: 1.9;
  color: rgba(229, 219, 230, 0.75);
  font-weight: 300;
  margin: 0;
  max-width: 280px;
}
.footer-head {
  font-family: 'Alexandria', sans-serif;
  font-weight: 600; font-size: 15px;
  color: #fff;
  margin-bottom: 18px;
}
.footer-links { display: flex; flex-direction: column; gap: 12px; font-size: 14px; color: rgba(229, 219, 230, 0.8); }
.footer-links a { color: rgba(229, 219, 230, 0.8); }
.footer-links a:hover { color: #fff; }
.socials { display: flex; gap: 12px; margin-top: 22px; }
.social {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: rgba(245, 245, 244, 0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--mauve);
  font-size: 12px; font-weight: 600;
  transition: all 0.25s ease;
}
.social:hover { background: var(--lavender); color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 28px;
  font-size: 13px;
  color: rgba(229, 219, 230, 0.78);
}

/* ===== FAQ ===== */
.faq { max-width: 760px; }
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: rgba(229, 219, 230, 0.45);
  border: 1px solid rgba(187, 160, 160, 0.25);
  border-radius: 18px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  font-family: 'Alexandria', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--purple);
  position: relative;
  padding-inline-end: 52px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  inset-inline-end: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--lavender);
  transition: transform 0.25s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 2;
  font-weight: 300;
}

/* ===== CONTACT FORM ===== */
.contact-form {
  max-width: 640px;
  margin: 0 auto;
  text-align: start;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label {
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(245, 245, 244, 0.92);
}
.form-field input,
.form-field textarea {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: rgba(245, 245, 244, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
  padding: 13px 16px;
  transition: box-shadow 0.2s ease;
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(125, 128, 218, 0.55);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: #9b93a6; font-weight: 300; }
.form-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 6px;
}
.contact-form button.btn-light {
  border: none;
  cursor: pointer;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
}
.contact-form button.btn-light:disabled { opacity: 0.6; cursor: wait; transform: none; }
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-weight: 600;
  padding: 15px 30px;
}
.btn-whatsapp:hover { background: rgba(255, 255, 255, 0.24); color: #fff; transform: translateY(-2px); }
.form-status { min-height: 24px; margin: 4px 0 0; font-size: 14.5px; color: #fff; text-align: center; }
.form-status.error { color: #FFD3DA; }

/* ===== TESTIMONIALS (جاهز للتفعيل) ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.testimonial-card {
  margin: 0;
  background: rgba(229, 219, 230, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  padding: 32px 30px;
  box-shadow: 0 8px 30px rgba(85, 65, 139, 0.07);
}
.testimonial-card blockquote {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 16px;
  line-height: 2;
}
.testimonial-card figcaption { color: var(--muted); font-size: 13.5px; }
.testimonial-card strong { color: var(--purple); }

/* ===== FLOATING ACTIONS ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  z-index: 90;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.whatsapp-float:hover {
  color: #fff;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.55);
}
.back-to-top {
  position: fixed;
  bottom: 24px;
  inset-inline-start: 24px;
  z-index: 90;
  width: 48px; height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(85, 65, 139, 0.2);
  background: rgba(245, 245, 244, 0.9);
  backdrop-filter: blur(10px);
  color: var(--purple);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(85, 65, 139, 0.18);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.back-to-top:hover { transform: translateY(-3px); }
.back-to-top[hidden] { display: none; }

/* ===== CASE STUDY PAGES ===== */
.case-hero {
  position: relative;
  overflow: hidden;
  padding: 170px 28px 60px;
  background: linear-gradient(160deg, #F5F5F4 0%, #E7DDE8 70%, #d7d0f0 100%);
}
.case-hero-inner { position: relative; z-index: 1; max-width: 960px; margin: 0 auto; }
.case-hero .eyebrow { margin-bottom: 16px; }
.case-hero h1 {
  font-weight: 800;
  font-size: clamp(32px, 5.5vw, 60px);
  line-height: 1.22;
  letter-spacing: -0.5px;
  color: var(--indigo-deep);
  margin: 0 0 18px;
  text-wrap: balance;
}
.case-hero .case-sub { color: var(--muted); font-size: 17px; line-height: 1.9; font-weight: 300; margin: 0 0 24px; }
.case-media {
  max-width: 860px;
  margin: 40px auto 0;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(85, 65, 139, 0.16);
}
.case-media img { display: block; width: 100%; height: auto; }
.case-body { max-width: 760px; margin: 0 auto; padding: 70px 28px 90px; }
.case-section { margin-bottom: 56px; }
.case-section h2 {
  font-weight: 700;
  font-size: 26px;
  color: var(--purple);
  margin: 0 0 16px;
}
.case-section p { color: var(--muted); font-size: 16px; line-height: 2.05; font-weight: 300; margin: 0 0 14px; }
.case-section ul { margin: 0; padding-inline-start: 22px; color: var(--muted); font-size: 15.5px; line-height: 2.1; font-weight: 300; }
.case-impact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}
.impact-card {
  background: rgba(229, 219, 230, 0.5);
  border: 1px solid rgba(187, 160, 160, 0.25);
  border-radius: 18px;
  padding: 24px 20px;
}
.impact-card h3 { font-weight: 700; font-size: 17px; color: var(--purple); margin: 0 0 8px; }
.impact-card p { color: var(--muted); font-size: 13.5px; line-height: 1.9; margin: 0; font-weight: 300; }
.case-cta {
  text-align: center;
  padding: 40px 28px 90px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--muted-2);
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--lavender); font-weight: 500; }

/* ===== TILT / MAGNETIC / PARALLAX BASE ===== */
[data-tilt] { transform: perspective(900px) rotateX(0) rotateY(0); transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); will-change: transform; }
[data-magnetic] { will-change: transform; }
[data-parallax] { will-change: transform; }

/* ===== CUSTOM CURSOR ===== */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.cursor-dot {
  width: 7px; height: 7px;
  background: var(--purple);
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1.5px solid rgba(85, 65, 139, 0.55);
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease, width 0.25s ease, height 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.cursor-ring.is-hover {
  width: 56px; height: 56px;
  background: rgba(167, 139, 250, 0.14);
  border-color: rgba(167, 139, 250, 0.8);
}
body.has-cursor { cursor: none; }
body.has-cursor a,
body.has-cursor button { cursor: none; }
body.has-cursor .cursor-dot,
body.has-cursor .cursor-ring { opacity: 1; }

/* ===== PERFORMANCE: خفّض تكلفة الرسم على الجوال ===== */
@media (max-width: 700px) {
  .site-header { background: rgba(245, 245, 244, 0.95); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .service-card, .product-card, .step-card, .hero-badge, .btn-ghost, .back-to-top {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .blob { filter: blur(40px); }
  .mesh-layer { filter: blur(30px); }
  .hero-orb { display: none; }
}
/* touch / coarse pointers: no custom cursor */
@media (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
  body.has-cursor { cursor: auto; }
}
