/* =========================================================
   POST MOTION — BRAND.CSS
   New sections layered on top of style.css: language toggle,
   WhatsApp FAB, hero video bg, problem/solution, full-screen
   team, why-us comparison, real results, testimonial shots,
   FAQ accordion, and RTL-specific corrections.
   ========================================================= */

/* ---------------------------------------------------------
   SITEWIDE AMBIENT BACKGROUND
   A persistent, slow-moving glow layer behind every section —
   visible on purpose now (richer opacity + saturation) so the
   site never reads as flat/plain black while scrolling.
   --------------------------------------------------------- */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg);
}
.ambient-bg__grain {
  position: absolute;
  inset: -10%;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%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)'/%3E%3C/svg%3E");
}
.ambient-bg__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.12;
  mix-blend-mode: screen;
  will-change: transform;
}
.ambient-bg__orb--1 {
  width: 52vw;
  height: 52vw;
  top: -14%;
  inset-inline-start: -12%;
  background: radial-gradient(circle, var(--primary), transparent 68%);
  animation: ambient-drift-1 20s ease-in-out infinite alternate;
}
.ambient-bg__orb--2 {
  width: 44vw;
  height: 44vw;
  top: 32%;
  inset-inline-end: -14%;
  background: radial-gradient(circle, var(--secondary), transparent 68%);
  animation: ambient-drift-2 26s ease-in-out infinite alternate;
}
.ambient-bg__orb--3 {
  width: 40vw;
  height: 40vw;
  bottom: -16%;
  inset-inline-start: 22%;
  background: radial-gradient(circle, var(--glow), transparent 70%);
  opacity: 0.09;
  animation: ambient-drift-3 17s ease-in-out infinite alternate;
}
.ambient-bg__orb--4 {
  width: 30vw;
  height: 30vw;
  top: 62%;
  inset-inline-start: 46%;
  background: radial-gradient(circle, var(--secondary), transparent 70%);
  opacity: 0.07;
  animation: ambient-drift-4 24s ease-in-out infinite alternate;
}
@keyframes ambient-drift-1 {
  from { transform: translate(0, 0) scale(1) rotate(0deg); }
  to   { transform: translate(9vw, 10vh) scale(1.18) rotate(8deg); }
}
@keyframes ambient-drift-2 {
  from { transform: translate(0, 0) scale(1) rotate(0deg); }
  to   { transform: translate(-10vw, -8vh) scale(1.14) rotate(-10deg); }
}
@keyframes ambient-drift-3 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(6vw, -7vh) scale(1.2); }
}
@keyframes ambient-drift-4 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-6vw, 8vh) scale(1.16); }
}
@media (prefers-reduced-motion: reduce) {
  .ambient-bg__orb { animation: none !important; }
}
.site-header, main, .site-footer { position: relative; z-index: 1; }
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
}
.lang-toggle__opt { padding: 2px 4px; transition: color 0.25s; }
.lang-toggle__opt.is-active { color: var(--secondary); font-weight: 700; }
.lang-toggle__sep { color: var(--ink-faint); }
.lang-toggle:hover { border-color: var(--secondary); }

/* ---------------------------------------------------------
   WHATSAPP FLOATING CTA
   --------------------------------------------------------- */
.whatsapp-fab {
  position: fixed;
  bottom: 26px;
  inset-inline-end: 26px;
  z-index: 9200;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1fa855;
  color: #fff;
  padding: 14px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(31, 168, 85, 0.35);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.whatsapp-fab i { font-size: 20px; }
.whatsapp-fab:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(31, 168, 85, 0.45); }
.whatsapp-fab__label { white-space: nowrap; }
@media (max-width: 640px) {
  .whatsapp-fab { bottom: 18px; inset-inline-end: 18px; padding: 13px; }
  .whatsapp-fab__label { display: none; }
}

/* ---------------------------------------------------------
   HERO — decorative interface lines (replaces bg video)
   --------------------------------------------------------- */
.hero__bg-lines { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__bg-lines span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 40%, var(--line-strong) 60%, transparent);
}
.hero__bg-lines span:nth-child(1) { top: 22%; opacity: 0.5; }
.hero__bg-lines span:nth-child(2) { top: 54%; opacity: 0.3; }
.hero__bg-lines span:nth-child(3) { top: 81%; opacity: 0.4; }
.hero__grain, .hero__grade { z-index: 1; }
.hero__grid, .hero__scroll { position: relative; z-index: 2; }

/* ---------------------------------------------------------
   HERO GRID — two columns: message + device mock.
   In RTL, CSS Grid naturally mirrors track order, so the
   device ends up on the visual left without extra rules.
   --------------------------------------------------------- */
.hero__grid {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
}
.hero__kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 22px;
}
html[lang="ar"] .hero__kicker { letter-spacing: 0.04em; text-transform: none; }

/* ---------------------------------------------------------
   HERO TITLE — bold / serif / badge rhythm instead of one
   uniform block of text
   --------------------------------------------------------- */
.hero__title--premium { max-width: 620px; }
.hero__title--premium .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}
.hero__title--premium .line--bold {
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  font-weight: 800;
}
.hero__title--premium .line--serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(3.4rem, 7.4vw, 6.4rem);
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
  line-height: 1;
  margin: 4px 0;
}
html[lang="ar"] .hero__title--premium .line--serif { font-style: normal; font-weight: 700; }
.hero__badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 3px 14px;
  border-radius: 8px;
  transform: translateY(-2px);
  transition: box-shadow 0.6s var(--ease);
}
.hero__badge.is-pulsing {
  animation: hero-badge-glow 1.6s ease-in-out 2;
}
@keyframes hero-badge-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(154,77,255,0); }
  50% { box-shadow: 0 0 26px 6px rgba(154,77,255,0.55); }
}
.hero__connector { color: var(--ink-dim); font-weight: 400; font-size: 0.6em; }

/* ---------------------------------------------------------
   BUTTON CIRCLE ICON — small circular arrow badge, matching
   the reference's pill buttons
   --------------------------------------------------------- */
.btn__circle-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  background: rgba(255,255,255,0.15);
}
.btn--primary .btn__circle-icon { background: rgba(9,9,11,0.15); }
html[lang="ar"] .btn__circle-icon { transform: scaleX(-1); }

/* ---------------------------------------------------------
   DEVICE MOCK — the tablet-framed "inside the edit suite"
   panel with a real video playing in the preview region
   --------------------------------------------------------- */
.hero__device { display: flex; justify-content: center; }
.device-mock {
  position: relative;
  width: 100%;
  max-width: 620px;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: linear-gradient(160deg, var(--bg-raised), var(--bg-alt));
  padding: 42px 52px 22px;
  box-shadow: var(--shadow-md);
}
.device-mock__rail {
  position: absolute;
  top: 60px;
  bottom: 90px;
  width: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.device-mock__rail--left { inset-inline-start: 10px; }
.device-mock__rail--right { inset-inline-end: 10px; justify-content: flex-start; gap: 14px; }
.device-mock__tool {
  color: var(--ink-faint);
  font-size: 13px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.device-mock__tool--active { color: var(--secondary); }
.device-mock__rail--right .device-mock__tool { font-size: 10px; }

.device-mock__preview {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
}
.device-mock__preview video { width: 100%; height: 100%; object-fit: cover; }
.device-mock__tc {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink);
  background: rgba(9,9,11,0.55);
  padding: 3px 9px;
  border-radius: 5px;
  letter-spacing: 0.04em;
}

.device-mock__transport {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 16px 0 12px;
  color: var(--ink-faint);
  font-size: 13px;
}
.device-mock__play {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.device-mock__ruler {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--ink-faint);
  padding: 0 2px 6px;
  direction: ltr;
}

.device-mock__timeline { padding-bottom: 6px; }
.device-mock__range {
  position: relative;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  margin-bottom: 8px;
}
.device-mock__playhead {
  position: absolute;
  top: -6px;
  bottom: -6px;
  inset-inline-start: 38%;
  width: 2px;
  background: var(--ink);
}
.device-mock__playhead::before {
  content: "";
  position: absolute;
  top: -3px;
  inset-inline-start: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
}
.device-mock__filmstrip { display: flex; gap: 3px; height: 30px; }
.device-mock__filmstrip i {
  flex: 1;
  border-radius: 3px;
  background: linear-gradient(160deg, rgba(124,58,237,0.35), rgba(9,9,11,0.6));
  font-style: normal;
}

@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .hero__title--premium, .hero__desc { max-width: none; }
}
@media (max-width: 640px) {
  .device-mock { padding: 34px 18px 16px; border-radius: 20px; }
  .device-mock__rail { display: none; }
  .device-mock__transport { gap: 16px; }
}


/* ---------------------------------------------------------
   PROBLEM & SOLUTION
   --------------------------------------------------------- */
.problem { padding: 130px 0 100px; }
.problem__intro {
  color: var(--ink-dim);
  font-size: 1rem;
  max-width: 680px;
  margin-top: 18px;
  line-height: 1.7;
}
.problem__intro em, .problem__intro strong { color: var(--secondary); font-style: normal; }

.problem__compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 20px;
  margin-top: 48px;
}
.problem__col {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  background: var(--bg-alt);
}
.problem__col--after { border-color: rgba(74,222,128,0.2); }

.problem__col-head {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 22px;
}
.problem__badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.problem__badge--bad { background: rgba(255,92,92,0.14); color: var(--error); }
.problem__badge--good { background: rgba(74,222,128,0.14); color: var(--success); }

.problem__rows { display: flex; flex-direction: column; gap: 4px; }
.problem__rows li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 12px;
  border-radius: 10px;
  color: var(--ink-dim);
  font-size: 0.92rem;
  transition: background var(--dur-hover);
}
.problem__col--before .problem__rows li { background: rgba(255,92,92,0.05); }
.problem__col--after .problem__rows li { background: rgba(74,222,128,0.05); }
.problem__row-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.problem__row-icon--bad { background: rgba(255,92,92,0.12); color: var(--error); }
.problem__row-icon--good { background: rgba(74,222,128,0.12); color: var(--success); }

.problem__connector {
  align-self: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  background: var(--bg-alt);
}
html[lang="ar"] .problem__connector i { transform: scaleX(-1); }

.problem__cta-bar {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 24px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
}
.problem__cta-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(124,58,237,0.12);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.problem__cta-bar p { color: var(--ink-dim); flex: 1; margin: 0; line-height: 1.6; }
.problem__cta-bar .btn { flex-shrink: 0; }

@media (max-width: 900px) {
  .problem__compare { grid-template-columns: 1fr; }
  .problem__connector { justify-self: center; transform: rotate(90deg); }
  html[lang="ar"] .problem__connector { transform: rotate(90deg); }
  .problem__cta-bar { flex-direction: column; text-align: center; }
}

/* ---------------------------------------------------------
   WORK SECTION EXTRAS
   --------------------------------------------------------- */
.section-head__desc { color: var(--ink-dim); font-size: 1rem; max-width: 640px; margin-top: 22px; }
.section-head:has(.section-head__desc) { margin-bottom: 24px; }

/* ---------------------------------------------------------
   PORTFOLIO FILTERS
   --------------------------------------------------------- */
.work-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.work-filters__btn {
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  color: var(--ink-dim);
  font-size: 13px;
  font-weight: 600;
  transition: border-color var(--dur-hover) var(--ease-soft), color var(--dur-hover) var(--ease-soft), background var(--dur-hover) var(--ease-soft);
}
.work-filters__btn:hover { border-color: var(--secondary); color: var(--ink); }
.work-filters__btn.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.work-swiper .swiper-slide.is-filtered-out { display: none; }
.work__more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 4px;
  transition: color 0.3s, border-color 0.3s;
}
.work__more:hover { color: var(--secondary); border-color: var(--secondary); }

/* ---------------------------------------------------------
   FULL-SCREEN TEAM SECTION
   --------------------------------------------------------- */
.team-full {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 100px 0 90px;
}
.team-full__bg { position: absolute; inset: 0; z-index: 0; }
.team-full__bg img { width: 100%; height: 100%; object-fit: cover; }
.team-full__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(9,9,11,0.55) 0%, rgba(9,9,11,0.72) 55%, var(--bg) 100%),
    linear-gradient(90deg, rgba(9,9,11,0.75), rgba(9,9,11,0.2) 60%);
}
.team-full__inner { position: relative; z-index: 2; }
.team-full__top {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: end;
  margin-bottom: 56px;
}
.team-full h2 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  max-width: 760px;
  line-height: 1.08;
  text-transform: uppercase;
  margin-bottom: 22px;
}
html[lang="ar"] .team-full h2 { text-transform: none; }
.team-full__desc { max-width: 620px; color: var(--ink-dim); font-size: 1.05rem; }
.team-full__photo {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 11;
}
.team-full__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-full__photo figcaption {
  padding: 12px 18px;
  font-size: 0.82rem;
  color: var(--ink-dim);
  background: rgba(9,9,11,0.7);
  backdrop-filter: blur(6px);
}

.team-full__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 900px;
}
.glass-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.glass-card__num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.glass-card__label { font-size: 0.82rem; color: var(--ink-dim); }

/* ---------------------------------------------------------
   WHY US — COMPARISON TABLE
   --------------------------------------------------------- */
.why-us { padding: 40px 0 130px; }
.compare {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.compare__row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1.2fr;
  align-items: center;
}
.compare__row > span {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--ink-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}
.compare__row--head > span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  background: var(--bg-alt);
}
.compare__label { color: var(--ink); font-weight: 700; }
.compare__pm { background: linear-gradient(160deg, rgba(124,58,237,0.16), transparent); color: var(--ink) !important; font-weight: 600; }
.compare__row--head .compare__pm { color: var(--secondary) !important; font-weight: 800; }
.compare__yes { color: var(--secondary); }
.compare__mid { color: var(--ink-faint); }
.compare__no { color: var(--glow); opacity: 0.8; }

/* ---------------------------------------------------------
   REAL RESULTS
   --------------------------------------------------------- */
.results { padding: 40px 0 130px; }
.results__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.results__card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-alt);
}
.results__card--wide { grid-column: 1 / -1; }
.results__card img { width: 100%; display: block; }
.results__card figcaption {
  padding: 14px 18px;
  font-size: 0.85rem;
  color: var(--ink-dim);
  border-top: 1px solid var(--line);
}

/* ---------------------------------------------------------
   TESTIMONIALS — premium grid + lightbox + stats bar
   --------------------------------------------------------- */
.testimonials__head { max-width: 640px; }
.testi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.testi-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  aspect-ratio: 3 / 4;
  transition: transform var(--dur-hover) var(--ease-soft), border-color var(--dur-hover) var(--ease-soft);
}
.testi-card:hover { transform: translateY(-6px); border-color: rgba(159,103,255,0.35); }
.testi-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.testi-card__flag {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  z-index: 2;
  font-size: 10.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(9,9,11,0.6);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  color: var(--ink);
}
.testi-card__expand {
  position: absolute;
  bottom: 10px;
  inset-inline-end: 10px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  background: rgba(9,9,11,0.55);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--ink);
  opacity: 0;
  transition: opacity var(--dur-hover);
}
.testi-card:hover .testi-card__expand { opacity: 1; }

.testi-bar {
  margin-top: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 30px 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
}
.testi-bar__stats { display: flex; gap: 34px; flex-wrap: wrap; }
.testi-bar__stat { display: flex; align-items: center; gap: 10px; }
.testi-bar__stat i { font-size: 17px; color: var(--secondary); }
.testi-bar__stat strong { display: block; font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; color: var(--ink); }
.testi-bar__stat small { font-size: 0.76rem; color: var(--ink-faint); }
.testi-bar__cta { display: flex; align-items: center; gap: 16px; }
.testi-bar__cta p { margin: 0; color: var(--ink-dim); font-size: 0.9rem; }
.testi-bar__cta strong { color: var(--ink); }
.testi-bar__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--dur-hover), box-shadow var(--dur-hover);
}
.testi-bar__arrow:hover { transform: scale(1.08); box-shadow: var(--shadow-glow); }
html[lang="ar"] .testi-bar__arrow i { transform: scaleX(-1); }

/* Lightbox */
.testi-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}
.testi-lightbox.is-open { visibility: visible; opacity: 1; }
.testi-lightbox__backdrop { position: absolute; inset: 0; background: rgba(9,9,11,0.9); backdrop-filter: blur(6px); }
.testi-lightbox__panel {
  position: relative;
  z-index: 2;
  max-width: 380px;
  max-height: 88vh;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  transform: scale(0.96);
  transition: transform 0.35s var(--ease);
}
.testi-lightbox.is-open .testi-lightbox__panel { transform: scale(1); }
.testi-lightbox__panel img { display: block; width: 100%; height: 100%; object-fit: contain; }
.testi-lightbox__close {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(9,9,11,0.6);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 1080px) {
  .testi-grid { grid-template-columns: repeat(3, 1fr); }
  .testi-bar { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-bar__stats { gap: 20px; }
}

.trust-logos { margin-top: 64px; text-align: center; }
.trust-logos__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 20px;
}
html[lang="ar"] .trust-logos__label { text-transform: none; }
.trust-logos__panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(124,58,237,0.08), rgba(255,255,255,0.02) 60%);
  padding: 40px clamp(20px, 6vw, 64px);
  max-width: 900px;
  margin: 0 auto;
}
.trust-logos img { width: 100%; max-width: 720px; margin: 0 auto; filter: grayscale(1) brightness(1.7); opacity: 0.92; }

/* ---------------------------------------------------------
   FAQ ACCORDION
   --------------------------------------------------------- */
.faq { padding: 40px 0 130px; }
.faq__cta {
  margin-top: 60px;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(124,58,237,0.12), rgba(255,255,255,0.02) 60%);
  text-align: center;
}
.faq__cta-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.faq__cta-desc { color: var(--ink-dim); margin-bottom: 22px; }
.accordion { border-top: 1px solid var(--line-strong); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 4px;
  text-align: start;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--ink);
}
.accordion__q i { color: var(--ink-faint); transition: transform 0.4s var(--ease), color 0.3s; flex-shrink: 0; }
.accordion__item.is-open .accordion__q i { transform: rotate(45deg); color: var(--secondary); }
.accordion__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}
.accordion__a > p {
  overflow: hidden;
  color: var(--ink-dim);
  padding-inline-end: 60px;
  max-width: 720px;
  min-height: 0;
  margin: 0;
}
.accordion__item.is-open .accordion__a { grid-template-rows: 1fr; }
.accordion__item.is-open .accordion__a > p { margin: 0 0 24px; }

/* ---------------------------------------------------------
   POPUP: prev/next action row spacing
   --------------------------------------------------------- */

/* ---------------------------------------------------------
   RTL-SPECIFIC CORRECTIONS
   --------------------------------------------------------- */
html[lang="ar"] .hero__scroll { inset-inline-start: auto; inset-inline-end: var(--gutter); }
html[lang="ar"] .marquee__track { animation-direction: reverse; }
html[lang="ar"] .btn i,
html[lang="ar"] .work__more i,
html[lang="ar"] .swiper-btn i { transform: scaleX(-1); }
html[lang="ar"] .compare__row { grid-template-columns: 1.2fr 1fr 1fr 1.1fr; }
html[lang="ar"] .popup__specs li span:last-child { text-align: start; }

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */
@media (max-width: 1080px) {
  .problem__grid { grid-template-columns: 1fr; }
  .compare__row { grid-template-columns: 1fr; text-align: start; }
  .compare__row > span { border-bottom: none; padding: 10px 20px; }
  .compare__row:not(.compare__row--head) { border-bottom: 1px solid var(--line); padding: 12px 0; }
  .compare__row--head { display: none; }
  .compare__row > span { border-radius: 6px; }
  .compare__pm { border-inline-start: 2px solid var(--secondary); padding-inline-start: 14px !important; }
  .results__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .team-full { min-height: auto; padding: 90px 0 70px; align-items: stretch; }
  .team-full__top { grid-template-columns: 1fr; gap: 32px; }
  .team-full__photo { order: -1; aspect-ratio: 16/10; }
  .team-full__stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .problem { padding: 90px 0 20px; }
  .problem__col { padding: 28px 24px; }
  .why-us, .results, .faq { padding: 20px 0 90px; }
  .results__grid { grid-template-columns: 1fr; }
  .accordion__q { font-size: 1.05rem; }
  .accordion__a p { padding-inline-end: 0; }
  .team-full__stats { grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* =========================================================
   HERO — camera viewfinder frame + energy beam + glow word
   ========================================================= */
.hero__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* ---- Glow accent word ("sell / تبيع") ---- */
.hero__glow-word {
  position: relative;
  display: inline-block;
  font-weight: 800;
  background: linear-gradient(90deg, #f8f8f8 0%, #b54dff 55%, #ff2bd6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 14px rgba(181,77,255,0.55)) drop-shadow(0 0 30px rgba(181,77,255,0.25));
  animation: glow-word-pulse 7s ease-in-out infinite;
}
@keyframes glow-word-pulse {
  0%, 92%, 100% { filter: drop-shadow(0 0 14px rgba(181,77,255,0.55)) drop-shadow(0 0 30px rgba(181,77,255,0.25)); }
  96% { filter: drop-shadow(0 0 22px rgba(181,77,255,0.8)) drop-shadow(0 0 44px rgba(255,43,214,0.35)); }
}
.hero__glow-word.is-charged {
  animation: none;
  filter: drop-shadow(0 0 30px rgba(181,77,255,0.9)) drop-shadow(0 0 50px rgba(255,43,214,0.4));
  transition: filter 0.3s ease;
}

/* ---- Camera viewfinder frame ---- */
.hero-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255,255,255,0.06);
}
.hero-frame__video { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.94; }

.hero-frame__hud {
  position: absolute;
  left: 14px;
  right: 14px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: rgba(232,201,255,0.55);
  direction: ltr;
  text-transform: uppercase;
}
.hero-frame__hud--top { top: 12px; }
.hero-frame__hud--bottom { bottom: 12px; }
.hero-frame__tc { font-variant-numeric: tabular-nums; }
.hero-frame__rec { display: flex; align-items: center; gap: 4px; color: rgba(255,92,92,0.75); }
.hero-frame__rec i { font-size: 6px; animation: rec-blink 1.4s infinite; }

.hero-frame__corner {
  position: absolute;
  width: 20px;
  height: 20px;
  z-index: 3;
  border-color: rgba(181,77,255,0.55);
  filter: drop-shadow(0 0 4px rgba(181,77,255,0.4));
}
.hero-frame__corner--tl { top: 8px; inset-inline-start: 8px; border-top: 1.5px solid; border-inline-start: 1.5px solid; }
.hero-frame__corner--tr { top: 8px; inset-inline-end: 8px; border-top: 1.5px solid; border-inline-end: 1.5px solid; }
.hero-frame__corner--bl { bottom: 8px; inset-inline-start: 8px; border-bottom: 1.5px solid; border-inline-start: 1.5px solid; }
.hero-frame__corner--br { bottom: 8px; inset-inline-end: 8px; border-bottom: 1.5px solid; border-inline-end: 1.5px solid; }

.hero-frame__play {
  position: absolute;
  bottom: 38px;
  inset-inline-start: 14px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(9,9,11,0.45);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  color: var(--ink);
  font-size: 12px;
  transition: background var(--dur-hover), transform var(--dur-hover);
}
.hero-frame__play:hover { background: var(--primary); transform: scale(1.08); }

.hero-frame__stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: space-around;
  padding: 34px 14px 14px;
  background: linear-gradient(0deg, rgba(9,9,11,0.9) 0%, transparent 100%);
  opacity: 0;
  filter: blur(6px);
  transform: translateY(8px);
  transition: opacity 0.8s var(--ease), filter 0.8s var(--ease), transform 0.8s var(--ease);
}
.hero-frame__stats.is-visible { opacity: 1; filter: blur(0); transform: translateY(0); }
.hero-frame__stat { text-align: center; }
.hero-frame__stat strong { display: block; font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; color: var(--ink); }
.hero-frame__stat small { font-size: 9.5px; color: var(--platinum); letter-spacing: 0.05em; text-transform: uppercase; }
html[lang="ar"] .hero-frame__stat small { text-transform: none; }

.hero-frame__watch {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-dim);
  font-weight: 600;
}
.hero-frame__watch-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--secondary);
  transition: background var(--dur-hover), color var(--dur-hover);
}
.hero-frame__watch:hover .hero-frame__watch-icon { background: var(--primary); color: #fff; }

/* ---- Energy beam (SVG, drawn once on load) ---- */
.hero-beam {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
  opacity: 0;
}
.hero-beam.is-ready { opacity: 1; }
#heroBeamPath { opacity: 0.35; }
#heroBeamDot { opacity: 0; filter: drop-shadow(0 0 6px #E8C9FF); }

/* ---- Stats bar under hero content ---- */
.hero__stats-bar {
  max-width: var(--container);
  margin: 56px auto 0;
  padding: 26px var(--gutter);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.hero__stats-bar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: transform var(--dur-hover) var(--ease-soft), border-color var(--dur-hover) var(--ease-soft), background var(--dur-hover) var(--ease-soft);
}
.hero__stats-bar-item:hover {
  transform: translateY(-6px);
  border-color: rgba(159,103,255,0.3);
  background: rgba(159,103,255,0.05);
}
.hero__stats-bar-item i { font-size: 18px; color: var(--secondary); flex-shrink: 0; transition: filter var(--dur-hover); }
.hero__stats-bar-item:hover i { filter: drop-shadow(0 0 8px rgba(159,103,255,0.7)); }
.hero__stats-bar-item strong { display: block; font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; color: var(--ink); }
.hero__stats-bar-item small { color: var(--ink-faint); font-size: 0.78rem; }

/* ---- Client logos strip ---- */
.hero__logos {
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px var(--gutter) 0;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.hero__logos-label { font-size: 0.78rem; color: var(--ink-faint); flex-shrink: 0; }
.hero__logos-track { display: flex; gap: 28px; flex-wrap: wrap; }
.hero__logos-track span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--ink-faint);
  filter: grayscale(1);
  opacity: 0.6;
  transition: color var(--dur-hover), opacity var(--dur-hover), filter var(--dur-hover), text-shadow var(--dur-hover);
}
.hero__logos-track span:hover {
  color: var(--ink);
  opacity: 1;
  filter: grayscale(0);
  text-shadow: 0 0 12px rgba(181,77,255,0.35);
}

@media (max-width: 1080px) {
  .hero__stats-bar { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero-frame { max-width: 320px; }
  .hero__stats-bar { grid-template-columns: 1fr 1fr; margin-top: 40px; }
  .hero__logos { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__glow-word { animation: none; }
}
