/* Public homepage: dark, bilingual (English default, Arabic on request), alive but light.
   Effects use only transform/opacity/background-position; content never waits for them. */
:root {
  --blue: #3155ed;
  --bg: #06080c;
  --bg2: #0a0d13;
  --card: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.09);
  --text: #eef1f7;
  --mut: #9aa6b8;
  --ok: #5fd3a1;
  --warn: #f0c26b;
  --r: 18px;
  --acc: color-mix(in srgb, var(--blue) 58%, #fff);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    "IBM Plex Sans Arabic",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Tahoma,
    sans-serif;
  line-height: 1.8;
  font-size: 17px;
  overflow-x: clip;
}
html[lang="en"] body {
  line-height: 1.65;
}
html[lang="en"] h1,
html[lang="en"] h2 {
  letter-spacing: -0.02em;
}
html[lang="ar"] * {
  letter-spacing: 0 !important;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p,
ol,
ul {
  margin: 0;
}
ol,
ul {
  padding: 0;
  list-style: none;
}
[hidden] {
  display: none !important;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 3px;
  border-radius: 8px;
}
.wrap {
  width: min(1160px, 100% - 40px);
  margin-inline: auto;
}
.note {
  color: var(--mut);
  font-size: 0.9rem;
}
main,
footer,
.nav {
  position: relative;
  z-index: 1;
}

/* Ambient background: three drifting light pools, a cursor glow and a scroll progress line */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.orb {
  position: absolute;
  width: 56vmax;
  height: 56vmax;
  border-radius: 50%;
  opacity: 0.5;
  will-change: transform;
}
.o1 {
  top: -22vmax;
  inset-inline-end: -14vmax;
  background: radial-gradient(
    closest-side,
    color-mix(in srgb, var(--blue) 42%, transparent),
    transparent
  );
  animation: drift1 26s ease-in-out infinite alternate;
}
.o2 {
  bottom: -26vmax;
  inset-inline-start: -18vmax;
  background: radial-gradient(
    closest-side,
    rgba(110, 90, 255, 0.28),
    transparent
  );
  animation: drift2 32s ease-in-out infinite alternate;
}
.o3 {
  top: 38%;
  inset-inline-start: 38%;
  width: 34vmax;
  height: 34vmax;
  background: radial-gradient(
    closest-side,
    rgba(60, 200, 255, 0.14),
    transparent
  );
  animation: drift3 38s ease-in-out infinite alternate;
}
@keyframes drift1 {
  to {
    transform: translate3d(-10vmax, 12vmax, 0) scale(1.15);
  }
}
@keyframes drift2 {
  to {
    transform: translate3d(14vmax, -10vmax, 0) scale(1.1);
  }
}
@keyframes drift3 {
  to {
    transform: translate3d(-12vmax, -8vmax, 0) scale(1.3);
  }
}
.glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 420px;
  height: 420px;
  margin: -210px 0 0 -210px;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    color-mix(in srgb, var(--blue) 22%, transparent),
    transparent
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
  will-change: transform;
}
.glow.on {
  opacity: 1;
}
.progress {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: 2px;
  z-index: 60;
  background: linear-gradient(90deg, var(--blue), var(--acc));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}
html[dir="rtl"] .progress {
  transform-origin: 100% 50%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.97rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    background 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(255, 255, 255, 0.28) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
}
.btn:hover::after {
  transform: translateX(120%);
  transition: transform 0.7s;
}
.btn-p {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 30px -10px var(--blue);
}
.btn-p:hover {
  box-shadow: 0 12px 38px -8px var(--blue);
}
.btn-g {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}
.btn-g:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}
.btn-s {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.9rem;
}
.btn svg {
  transition: transform 0.2s;
}
html[dir="rtl"] .btn svg {
  transform: scaleX(-1);
}
.btn:hover svg {
  transform: translateX(4px);
}
html[dir="rtl"] .btn:hover svg {
  transform: scaleX(-1) translateX(4px);
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(6, 8, 12, 0.7);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.25s,
    transform 0.35s;
}
.nav.scrolled {
  border-color: var(--line);
}
.nav.away {
  transform: translateY(-100%);
}
.nav .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 68px;
}
.brand img {
  height: 21px;
  width: auto;
}
.links {
  display: flex;
  gap: 4px;
  margin-inline-start: 12px;
  flex: 1;
}
.links a {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--mut);
  font-size: 0.93rem;
  transition: color 0.2s;
}
.links a::after {
  content: "";
  position: absolute;
  inset-inline: 14px;
  bottom: 4px;
  height: 1px;
  background: var(--acc);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.links a:hover {
  color: var(--text);
}
.links a:hover::after {
  transform: scaleX(1);
}
.tools {
  display: flex;
  gap: 8px;
}
.tool {
  min-width: 40px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.tool:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Entrance: CSS only, so the headline and buttons are visible immediately */
.e1,
.e2,
.e3,
.e4,
.e5 {
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.e2 {
  animation-delay: 0.1s;
}
.e3 {
  animation-delay: 0.2s;
}
.e4 {
  animation-delay: 0.3s;
}
.e5 {
  animation-delay: 0.35s;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
}
/* The headline and lead are what a phone measures as the largest paint: they slide in but are never transparent,
   so the first paint is not delayed by a fade. */
.e2,
.e3 {
  animation-name: rise-in;
  animation-delay: 0s;
}
@keyframes rise-in {
  from {
    transform: translateY(14px);
  }
}

/* Hero */
.hero {
  position: relative;
  padding: 88px 0 96px;
  overflow: clip;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.32;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent);
  mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent);
  pointer-events: none;
  animation: grid 14s linear infinite;
}
@keyframes grid {
  to {
    background-position:
      0 64px,
      64px 0;
  }
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: center;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--mut);
  font-size: 0.85rem;
}
.pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(95, 211, 161, 0.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  70% {
    box-shadow: 0 0 0 9px rgba(95, 211, 161, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(95, 211, 161, 0);
  }
}
h1 {
  margin-top: 26px;
  font-size: clamp(2.3rem, 5.6vw, 4.3rem);
  line-height: 1.2;
  font-weight: 600;
}
html[lang="ar"] h1 {
  line-height: 1.3;
}
h1 .g {
  display: block;
  color: transparent;
  background: linear-gradient(
    100deg,
    #fff 0%,
    var(--acc) 40%,
    #fff 60%,
    var(--acc) 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shine 6s linear infinite;
}
@keyframes shine {
  to {
    background-position: -220% 0;
  }
}
.lead {
  margin-top: 24px;
  max-width: 34em;
  color: var(--mut);
  font-size: 1.1rem;
  line-height: 1.95;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

/* Hero visual */
.hero-visual {
  position: relative;
  perspective: 1100px;
}
.ring {
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  animation: spin 40s linear infinite;
  pointer-events: none;
}
.r2 {
  inset: -20%;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.05);
  animation-duration: 70s;
  animation-direction: reverse;
}
.ring::after {
  content: "";
  position: absolute;
  top: 6%;
  inset-inline-start: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 14px var(--acc);
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.hero-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.025)
  );
  box-shadow: 0 40px 80px -40px #000;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.25s ease-out;
}
.hc-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.hc-head b {
  margin-inline-start: auto;
  font-size: 0.85rem;
  color: var(--mut);
  font-weight: 400;
}
.hc-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}
.hc-flow {
  display: grid;
  gap: 4px;
  padding: 18px 0;
}
.hc-flow li {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--mut);
  animation: step 8s infinite;
}
.hc-flow .s2 {
  animation-delay: 0.4s;
}
.hc-flow .s3 {
  animation-delay: 0.8s;
}
.hc-flow .s4 {
  animation-delay: 1.2s;
}
@keyframes step {
  0%,
  8% {
    background: transparent;
  }
  12%,
  30% {
    background: rgba(255, 255, 255, 0.06);
  }
  38%,
  100% {
    background: transparent;
  }
}
.hc-flow b {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
}
.hc-flow small {
  font-size: 0.8rem;
  color: var(--mut);
}
.hc-ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.25);
}
.done .hc-ic {
  border: 0;
  background: rgba(95, 211, 161, 0.16);
  color: var(--ok);
}
.live .hc-ic {
  border: 1px solid rgba(95, 211, 161, 0.4);
}
.hc-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--acc);
  font-size: 0.88rem;
}
.scan {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 70px;
  background: linear-gradient(
    180deg,
    transparent,
    color-mix(in srgb, var(--blue) 18%, transparent),
    transparent
  );
  animation: scan 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes scan {
  0% {
    transform: translateY(-80px);
  }
  100% {
    transform: translateY(520px);
  }
}
.float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(14, 18, 27, 0.92);
  font-size: 0.82rem;
  color: var(--ok);
  animation: float 6s ease-in-out infinite alternate;
}
.f1 {
  top: -16px;
  inset-inline-end: -10px;
}
.f2 {
  bottom: -18px;
  inset-inline-start: -14px;
  color: var(--acc);
  animation-delay: -3s;
}
@keyframes float {
  to {
    transform: translateY(-12px);
  }
}

/* Platforms marquee */
.plat {
  border-block: 1px solid var(--line);
  background: rgba(10, 13, 19, 0.7);
  padding-block: 22px;
  overflow: hidden;
}
.plat .wrap b {
  font-weight: 600;
  color: var(--mut);
  font-size: 0.9rem;
}
.mq {
  margin-top: 14px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
}
.mq-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: mq 28s linear infinite;
}
.mq-track span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.15rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s;
}
.mq-track svg {
  flex: none;
}
.mq-track span:hover {
  color: var(--text);
}
@keyframes mq {
  to {
    transform: translateX(-50%);
  }
}
html[dir="rtl"] .mq-track {
  animation-name: mqr;
}
@keyframes mqr {
  to {
    transform: translateX(50%);
  }
}

/* Sections */
.sec {
  padding: 104px 0;
}
.kick {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--acc);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
html[lang="en"] .kick {
  text-transform: uppercase;
}
.kick::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--acc);
  transform-origin: var(--origin, 0) 50%;
  transform: scaleX(0);
  transition: transform 0.9s 0.2s;
}
html[dir="rtl"] .kick::before {
  --origin: 100%;
}
.in .kick::before,
.kick.in::before,
.in.kick::before {
  transform: scaleX(1);
}
h2 {
  font-size: clamp(1.8rem, 3.8vw, 2.8rem);
  line-height: 1.3;
  font-weight: 600;
}
html[lang="ar"] h2 {
  line-height: 1.45;
}
h2 em {
  font-style: normal;
  color: transparent;
  background: linear-gradient(100deg, var(--acc), #fff, var(--acc));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shine 8s linear infinite;
}
.sub {
  margin-top: 18px;
  max-width: 36em;
  color: var(--mut);
  line-height: 1.95;
}
.head {
  margin-bottom: 48px;
}
.two {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: start;
  margin-top: 104px;
}
.two .side {
  position: sticky;
  top: 110px;
}

/* Cards with a cursor spotlight (the pointer position is set from JavaScript) */
.fx {
  position: relative;
  isolation: isolate;
}
.fx::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(
    260px circle at var(--mx, 50%) var(--my, 0%),
    color-mix(in srgb, var(--blue) 30%, transparent),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s;
}
.fx:hover::before {
  opacity: 1;
}
.card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  transition:
    transform 0.3s,
    border-color 0.3s;
}
.card:hover,
.steps article:hover,
.impact-item:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--blue) 55%, transparent);
}
.why {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.ic {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--blue) 20%, transparent);
  color: var(--acc);
  transition: transform 0.4s;
}
.card:hover .ic {
  transform: rotate(-8deg) scale(1.1);
}
.card h3 {
  font-size: 1.1rem;
  font-weight: 600;
}
.card p {
  margin-top: 8px;
  color: var(--mut);
  font-size: 0.93rem;
  line-height: 1.85;
}

/* Services (accordion) */
.service-list {
  display: grid;
  gap: 12px;
}
.service-detail {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  transition: border-color 0.2s;
}
.service-detail[open] {
  border-color: color-mix(in srgb, var(--blue) 55%, transparent);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--blue) 10%, transparent),
    var(--card)
  );
}
.service-detail summary,
.faq summary {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  cursor: pointer;
  list-style: none;
}
.service-detail summary::-webkit-details-marker,
.faq summary::-webkit-details-marker {
  display: none;
}
.service-number {
  color: var(--mut);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}
.service-detail h3 {
  flex: 1;
  font-size: 1.15rem;
  font-weight: 600;
}
.service-plus {
  color: var(--mut);
  transition:
    transform 0.3s,
    color 0.2s;
}
html[dir="rtl"] .service-plus {
  transform: scaleX(-1);
}
.service-detail[open] .service-plus {
  transform: rotate(90deg);
  color: var(--acc);
}
html[dir="rtl"] .service-detail[open] .service-plus {
  transform: scaleX(-1) rotate(90deg);
}
.service-body {
  padding: 0 24px 24px;
  padding-inline-start: 66px;
  animation: open 0.4s ease both;
}
@keyframes open {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}
.service-body p {
  color: var(--mut);
  line-height: 1.95;
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.service-tags span {
  padding: 3px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
}

/* Impact */
#impact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.impact-item {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  transition:
    transform 0.3s,
    border-color 0.3s;
}
.impact-value {
  display: block;
  font-size: 2.4rem;
  line-height: 1.2;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--acc);
}
.impact-item h3 {
  margin-top: 10px;
  font-size: 1.02rem;
  font-weight: 600;
}
.impact-item p {
  color: var(--mut);
  font-size: 0.88rem;
}

/* Partners: equal display canvases preserve each logo's aspect ratio. */
#clients {
  position: relative;
  isolation: isolate;
  background: radial-gradient(
    ellipse at 50% 35%,
    rgba(49, 85, 237, 0.08),
    transparent 68%
  );
}
.client-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
#client-wall .client-slot {
  position: relative;
  display: grid;
  grid-template-rows: 96px 42px;
  align-items: center;
  justify-items: center;
  gap: 16px;
  min-width: 0;
  padding: 24px 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.065),
    rgba(255, 255, 255, 0.02)
  );
  color: var(--text);
  text-align: center;
  font-size: 0.88rem;
  transition:
    transform 0.28s ease,
    border-color 0.28s ease;
}
#client-wall .client-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse at 50% 0,
    rgba(91, 125, 255, 0.16),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.28s ease;
}
#client-wall .client-slot img {
  position: relative;
  width: 100%;
  height: 96px;
  max-width: 180px;
  max-height: 96px;
  padding: 14px;
  border-radius: 10px;
  background: #748092;
  object-fit: contain;
  object-position: center;
}
#client-wall .client-slot > span {
  position: relative;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  line-height: 1.5;
  max-width: 100%;
}
#client-wall .client-slot > span:only-child {
  grid-row: 1 / -1;
  font-size: 1.05rem;
}
@media (hover: hover) and (pointer: fine) {
  html:not([data-motion="off"])
    body:not([data-motion-default="paused"])
    #client-wall
    .client-slot:hover {
    transform: translateY(-4px);
    border-color: var(--acc);
  }
  #client-wall .client-slot:hover::before {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  #client-wall .client-slot:hover {
    transform: none !important;
  }
}
@media (max-width: 960px) {
  .client-wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .client-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  #client-wall .client-slot {
    padding: 18px 12px;
    gap: 12px;
  }
  #client-wall .client-slot img {
    padding: 10px;
  }
}
.client-wall > p.client-slot:only-child {
  grid-column: 1 / -1;
  display: block !important;
}
.client-group-title {
  grid-column: 1 / -1;
  margin: 12px 0 0;
  color: var(--mut);
  font-size: 0.95rem;
  font-weight: 600;
}
.client-group-title:first-child {
  margin-top: 0;
}

/* Process */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.steps::before {
  content: "";
  position: absolute;
  top: 45px;
  inset-inline: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--acc), transparent);
  transform: scaleX(0);
  transition: transform 1.4s 0.3s;
}
.steps.in::before {
  transform: scaleX(1);
}
.steps article {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  transition:
    transform 0.3s,
    border-color 0.3s;
}
.steps span {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--blue) 24%, #0b0e14);
  color: var(--acc);
  font-size: 0.85rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.steps.in span::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  border: 1px solid var(--acc);
  animation: ping 2.6s infinite;
}
.steps article:nth-child(2) span::after {
  animation-delay: 0.5s;
}
.steps article:nth-child(3) span::after {
  animation-delay: 1s;
}
.steps article:nth-child(4) span::after {
  animation-delay: 1.5s;
}
@keyframes ping {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  70%,
  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}
.steps h3 {
  margin-top: 18px;
  font-size: 1.08rem;
  font-weight: 600;
}
.steps p {
  margin-top: 8px;
  color: var(--mut);
  font-size: 0.93rem;
  line-height: 1.85;
}

/* Client portal */
.portal {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
  margin-top: 96px;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(
      70% 90% at 0% 0%,
      color-mix(in srgb, var(--blue) 16%, transparent),
      transparent 70%
    ),
    rgba(10, 13, 19, 0.8);
}
.portal .btn {
  margin-top: 28px;
}
.portal-ui {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}
.pu-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--mut);
  font-size: 0.83rem;
}
.pu-row {
  display: grid;
  grid-template-columns: 0.5fr 2fr 1.2fr;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.pu-h {
  color: var(--mut);
  font-size: 0.78rem;
}
.pill {
  justify-self: start;
  padding: 2px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  white-space: nowrap;
}
.p-b {
  background: rgba(124, 155, 255, 0.16);
  color: #aebfff;
}
.p-w {
  background: rgba(240, 194, 107, 0.16);
  color: var(--warn);
  animation: blink 2.4s ease-in-out infinite;
}
.p-ok {
  background: rgba(95, 211, 161, 0.16);
  color: var(--ok);
}
@keyframes blink {
  50% {
    opacity: 0.55;
  }
}
.pu-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px;
  padding: 12px 16px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--blue) 14%, transparent);
  color: var(--acc);
  font-size: 0.88rem;
}
.rv.in .pu-row {
  animation: row 0.6s both;
}
.rv.in .pu-row:nth-of-type(3) {
  animation-delay: 0.15s;
}
.rv.in .pu-row:nth-of-type(4) {
  animation-delay: 0.3s;
}
.rv.in .pu-row:nth-of-type(5) {
  animation-delay: 0.45s;
}
@keyframes row {
  from {
    opacity: 0;
    transform: translateX(calc(var(--dir, 1) * 24px));
  }
}
html[dir="rtl"] {
  --dir: -1;
}

/* FAQ */
.faq {
  max-width: 820px;
  margin: 104px auto 0;
}
.faq .head {
  margin-bottom: 28px;
}
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  margin-bottom: 10px;
  transition: border-color 0.2s;
}
.faq details[open] {
  border-color: color-mix(in srgb, var(--blue) 55%, transparent);
}
.faq summary {
  justify-content: space-between;
  font-weight: 600;
  padding: 18px 22px;
}
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
  color: var(--acc);
  transition: transform 0.3s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  padding: 0 22px 20px;
  color: var(--mut);
  line-height: 1.95;
  animation: open 0.4s both;
}

/* Closing */
.final {
  padding: 24px 0 104px;
}
.closing-card {
  position: relative;
  overflow: hidden;
  padding: 80px 32px;
  border-radius: 32px;
  text-align: center;
  background:
    radial-gradient(
      60% 120% at 50% 130%,
      color-mix(in srgb, var(--blue) 55%, transparent),
      transparent 70%
    ),
    rgba(10, 13, 19, 0.85);
  border: 1px solid var(--line);
}
.closing-card > *:not(.pr) {
  position: relative;
}
.closing-card .sub {
  margin-inline: auto;
}
.closing-card .cta {
  justify-content: center;
}
.pr {
  position: absolute;
  top: 50%;
  inset-inline-start: 50%;
  width: 320px;
  height: 320px;
  margin: -160px 0 0 -160px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--blue) 50%, transparent);
  opacity: 0;
  animation: ripple 6s ease-out infinite;
  pointer-events: none;
}
html[dir="rtl"] .pr {
  margin: -160px -160px 0 0;
}
.p2 {
  animation-delay: 2s;
}
.p3 {
  animation-delay: 4s;
}
@keyframes ripple {
  0% {
    transform: scale(0.4);
    opacity: 0.7;
  }
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  color: var(--mut);
  font-size: 0.85rem;
  background: rgba(6, 8, 12, 0.7);
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}
footer nav {
  display: flex;
  gap: 20px;
  flex: 1;
}
footer nav a:hover {
  color: var(--text);
}
footer .brand img {
  opacity: 0.8;
}

/* Reveal on scroll: visible without JavaScript; stagger comes from --i */
.js .rv {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease calc(var(--i, 0) * 90ms),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--i, 0) * 90ms);
}
.js .rv.in {
  opacity: 1;
  transform: none;
}
.js .fx.rv.in:hover,
.js .card.rv.in:hover {
  transition-delay: 0s;
}

/* Motion off: CMS default or the system setting */
html[data-motion="off"] *,
html[data-motion="off"] *::before,
html[data-motion="off"] *::after,
body[data-motion-default="paused"] *,
body[data-motion-default="paused"] *::before,
body[data-motion-default="paused"] *::after {
  animation: none !important;
  transition: none !important;
}
html[data-motion="off"] .rv,
body[data-motion-default="paused"] .rv {
  opacity: 1 !important;
  transform: none !important;
}
html[data-motion="off"] .steps::before {
  transform: scaleX(1);
}
html[data-motion="off"] .kick::before {
  transform: scaleX(1);
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .rv {
    opacity: 1;
    transform: none;
  }
  .steps::before,
  .kick::before {
    transform: scaleX(1);
  }
}

/* Tablet and phone */
@media (max-width: 960px) {
  .hero-grid,
  .two,
  .portal {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .two {
    margin-top: 72px;
  }
  .two .side {
    position: static;
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps::before {
    display: none;
  }
  #impact-grid,
  .why {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .links {
    display: none;
  }
  .nav .wrap {
    justify-content: space-between;
  }
  .tools {
    margin-inline-start: auto;
  }
  .portal {
    padding: 28px;
  }
  .glow {
    display: none;
  }
}
@media (max-width: 560px) {
  body {
    font-size: 16px;
  }
  .wrap {
    width: min(1160px, 100% - 32px);
  }
  .hero {
    padding: 56px 0 64px;
  }
  .sec {
    padding: 72px 0;
  }
  .steps,
  #impact-grid,
  .why {
    grid-template-columns: minmax(0, 1fr);
  }
  .service-body {
    padding-inline-start: 24px;
  }
  .service-detail summary {
    padding: 18px;
  }
  .cta .btn {
    flex: 1 1 100%;
  }
  .closing-card {
    padding: 56px 20px;
  }
  .portal {
    margin-top: 64px;
    padding: 20px;
  }
  .pu-row {
    grid-template-columns: 0.4fr 1.6fr 1.2fr;
    padding: 12px;
  }
  .nav .btn-s {
    display: none;
  }
  .float {
    display: none;
  }
}

/* Info pages (about, privacy, terms, contact) */
.doc {
  padding: 72px 0 96px;
}
.narrow {
  max-width: 820px;
}
.doc-h {
  margin-top: 6px;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
}
.doc .lead {
  margin-top: 18px;
}
.doc-body {
  margin-top: 40px;
}
.doc-body h2 {
  margin: 40px 0 12px;
  font-size: 1.35rem;
}
.doc-body p,
.doc-body li {
  color: var(--mut);
  line-height: 2;
}
.doc-body ul {
  display: grid;
  gap: 8px;
  padding-inline-start: 22px;
  list-style: disc;
}
.doc-body a.inline,
footer a.mail {
  color: var(--acc);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.contact-card {
  display: grid;
  gap: 10px;
  align-content: start;
}
.contact-card h3 {
  font-size: 1.1rem;
}
.mail-big {
  color: var(--acc);
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}
footer .foot {
  gap: 14px 28px;
}

/* Proof: cases and testimonials (rendered only when the owner adds approved entries) */
.cases,
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.quotes {
  margin-top: 14px;
}
.case-result {
  display: block;
  margin-top: 14px;
  color: var(--acc);
  font-size: 1.15rem;
}
.quote blockquote {
  margin: 0;
  color: var(--text);
  line-height: 1.9;
}
.quote figcaption {
  display: grid;
  margin-top: 16px;
  color: var(--mut);
  font-size: 0.88rem;
}
.quote figcaption b {
  color: var(--text);
  font-weight: 600;
}

/* Partners strip: same marquee as the platforms, moving the opposite way */
#client-wall.partner-marquee {
  display: block;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}
.pm-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: pm 40s linear infinite;
}
.pm-track .client-slot {
  flex: none;
  width: 200px;
}
.partner-marquee:hover .pm-track {
  animation-play-state: paused;
}
@keyframes pm {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}
html[dir="rtl"] .pm-track {
  animation-name: pmr;
}
@keyframes pmr {
  from {
    transform: translateX(50%);
  }
  to {
    transform: translateX(0);
  }
}

footer nav {
  flex-wrap: wrap;
  gap: 10px 20px;
  min-width: 0;
}
footer .mail {
  overflow-wrap: anywhere;
}

/* Light theme (optional, chosen by the visitor) */
html[data-theme="light"] {
  --bg: #f6f8fc;
  --bg2: #ffffff;
  --card: rgba(11, 18, 32, 0.035);
  --line: rgba(11, 18, 32, 0.12);
  --text: #0b1220;
  --mut: #566178;
  --ok: #138a5b;
  --warn: #9a6a00;
  --acc: color-mix(in srgb, var(--blue) 82%, #000);
}
html[data-theme="light"] .nav {
  background: rgba(246, 248, 252, 0.82);
}
html[data-theme="light"] .brand img,
html[data-theme="light"] .portal-ui .pu-bar img {
  filter: invert(1);
}
html[data-theme="light"] .orb {
  opacity: 0.22;
}
html[data-theme="light"] .glow {
  display: none;
}
html[data-theme="light"] .status,
html[data-theme="light"] .tool,
html[data-theme="light"] .btn-g,
html[data-theme="light"] .chips li {
  background: rgba(11, 18, 32, 0.04);
  color: var(--text);
}
html[data-theme="light"] .tool:hover,
html[data-theme="light"] .btn-g:hover {
  background: rgba(11, 18, 32, 0.09);
}
html[data-theme="light"] h1 .g {
  background-image: linear-gradient(
    100deg,
    #0b1220 0%,
    var(--acc) 45%,
    #0b1220 70%,
    var(--acc) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
}
html[data-theme="light"] h2 em {
  background-image: linear-gradient(100deg, var(--acc), #0b1220, var(--acc));
  -webkit-background-clip: text;
  background-clip: text;
}
html[data-theme="light"] .hero-card,
html[data-theme="light"] .portal-ui,
html[data-theme="light"] .float {
  background: #ffffff;
  box-shadow: 0 30px 60px -36px rgba(11, 18, 32, 0.35);
}
html[data-theme="light"] .hc-dot {
  background: rgba(11, 18, 32, 0.18);
}
html[data-theme="light"] .hc-ic {
  border-color: rgba(11, 18, 32, 0.3);
}
html[data-theme="light"] .hc-flow li.live,
html[data-theme="light"] .service-tags span {
  background: rgba(11, 18, 32, 0.06);
}
html[data-theme="light"] .plat,
html[data-theme="light"] footer {
  background: rgba(255, 255, 255, 0.7);
}
html[data-theme="light"] .mq-track span {
  color: rgba(11, 18, 32, 0.45);
}
html[data-theme="light"] .mq-track span:hover {
  color: var(--text);
}
html[data-theme="light"] .portal,
html[data-theme="light"] .closing-card {
  background:
    radial-gradient(
      60% 120% at 50% 130%,
      color-mix(in srgb, var(--blue) 28%, transparent),
      transparent 70%
    ),
    #ffffff;
}
html[data-theme="light"] .steps span {
  background: color-mix(in srgb, var(--blue) 14%, #fff);
}
html[data-theme="light"] .p-b {
  color: #2748c4;
}
html[data-theme="light"] #client-wall .client-slot {
  background: #ffffff;
  color: var(--text);
}
html[data-theme="light"] #client-wall .client-slot img {
  background: #eef1f7;
}
html[data-theme="light"] .btn-p {
  color: #ffffff;
}

/* Announcement bar */
.announce {
  position: relative;
  z-index: 41;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  padding: 9px 16px;
  background: var(--blue);
  color: #fff;
  font-size: 0.9rem;
  text-align: center;
}
.announce a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.service-body .more {
  display: inline-block;
  margin-top: 16px;
  color: var(--acc);
  font-weight: 600;
  font-size: 0.92rem;
}
.service-body .more::after {
  content: " →";
}
html[dir="rtl"] .service-body .more::after {
  content: " ←";
}
.service-page .steps-list {
  display: grid;
  gap: 10px;
  counter-reset: s;
  margin-top: 8px;
}

/* Partners: clean logo plates, larger logos, two rows moving in opposite directions */
#client-wall.partner-marquee {
  display: grid;
  gap: 18px;
  padding-block: 6px;
}
.pm-track {
  gap: 20px;
}
.pm-track.rev {
  animation-direction: reverse;
}
.pm-track .client-slot {
  width: 240px;
}
#client-wall .client-slot {
  grid-template-rows: 104px auto;
  gap: 12px;
  padding: 18px 16px 16px;
  background: #ffffff;
  color: #1a2233;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
#client-wall .client-slot::before {
  display: none;
}
#client-wall .client-slot img {
  width: 100%;
  height: 104px;
  max-width: 100%;
  max-height: 104px;
  padding: 0;
  background: transparent;
  object-fit: contain;
}
#client-wall .client-slot > span {
  font-size: 0.82rem;
  font-weight: 600;
  color: #5b6478;
}
#client-wall .client-slot > span:only-child {
  grid-row: 1 / -1;
  font-size: 1.05rem;
  color: #1a2233;
}
html[data-theme="light"] #client-wall .client-slot {
  border-color: #e2e7f0;
  box-shadow: 0 6px 18px rgba(26, 34, 51, 0.08);
}
html[data-theme="light"] #client-wall .client-slot img {
  background: transparent;
}
@media (max-width: 640px) {
  .pm-track .client-slot {
    width: 180px;
    grid-template-rows: 80px auto;
  }
  #client-wall .client-slot img {
    height: 80px;
    max-height: 80px;
  }
}
/* Seventh tile (acceptance rate) spans the row so the grid stays even */
#impact-grid .impact-rate {
  grid-column: 1 / -1;
  text-align: center;
}
@media (prefers-reduced-motion: reduce) {
  .pm-track {
    animation: none;
  }
}

/* Service pages: questions people ask */
.service-faq details {
  border-top: 1px solid var(--line, rgba(255, 255, 255, 0.12));
  padding: 12px 0;
}
.service-faq summary {
  cursor: pointer;
  font-weight: 700;
}
.service-faq details p {
  margin: 8px 0 0;
}
