/* A7 VISUALS — calm, premium, motion lives in the videos */
:root {
  --ink: #111214;
  --charcoal: #222326;
  --cream: #F4F1E9;
  --blue: #2D5BE3;
  --bg: #111214;
  --fg: #F4F1E9;
  --orb: #2D5BE3;
  --line: color-mix(in srgb, var(--fg) 14%, transparent);
  --muted: color-mix(in srgb, var(--fg) 62%, transparent);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --en: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ar: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 64px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--en);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: color .2s linear;
}
html[lang="ar"] body { font-family: var(--ar); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- living background ---------- */
.bg {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background: var(--bg);
}
.bg-orb {
  position: absolute; border-radius: 50%;
  width: 70vmax; height: 70vmax;
  background: radial-gradient(circle, color-mix(in srgb, var(--orb) 44%, transparent) 0%, transparent 62%);
  will-change: transform, translate;
  transition: translate 1.2s cubic-bezier(.22, 1, .36, 1);
}
.o1 { left: -22vmax; top: -28vmax; animation: sway1 9s ease-in-out infinite alternate; }
.o2 { right: -28vmax; bottom: -32vmax; opacity: .8; animation: sway2 11s ease-in-out infinite alternate; }
/* slow, swaying paths — big enough to feel alive, slow enough to stay calm */
@keyframes sway1 {
  0%   { transform: translate(0, 0) scale(1); }
  35%  { transform: translate(22vmax, 12vmax) scale(1.12); }
  70%  { transform: translate(8vmax, 26vmax) scale(.95); }
  100% { transform: translate(28vmax, 20vmax) scale(1.08); }
}
@keyframes sway2 {
  0%   { transform: translate(0, 0) scale(1); }
  40%  { transform: translate(-24vmax, -8vmax) scale(.9); }
  75%  { transform: translate(-10vmax, -24vmax) scale(1.1); }
  100% { transform: translate(-26vmax, -18vmax) scale(.96); }
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: max(14px, env(safe-area-inset-top)) var(--gutter) 14px;
  transition: transform .5s var(--ease), opacity .5s;
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: opacity .4s;
}
.nav.solid::before { opacity: 1; }
.nav.hide { transform: translateY(-110%); opacity: 0; }
.nav-mark svg { width: 46px; height: auto; display: block; fill: var(--fg); transition: fill .3s; }
.nav-mark .lg-blue { fill: var(--blue); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.lang {
  height: 38px; padding: 0 14px; border-radius: 99px;
  border: 1px solid var(--line); font-size: 14px; font-weight: 500;
  font-family: var(--ar);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color .3s, background .3s;
}
html[lang="ar"] .lang { font-family: var(--en); }
.lang:hover { background: color-mix(in srgb, var(--fg) 8%, transparent); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 99px;
  background: var(--blue); color: var(--cream);
  font-weight: 600; font-size: 16px;
  transition: transform .4s var(--ease), background .3s, box-shadow .4s;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
html[dir="rtl"] .btn svg { transform: scaleX(-1); }
html[dir="rtl"] .btn:hover svg { transform: scaleX(-1) translateX(4px); }
.btn-light { background: var(--cream); color: var(--ink); }

/* ---------- sections ---------- */
.sec {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px var(--gutter);
}
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; }
.center { text-align: center; display: flex; flex-direction: column; align-items: center; }

.label {
  display: inline-flex; align-items: baseline; gap: 12px;
  font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
}
.label::before { content: ""; width: 22px; height: 2px; background: var(--blue); align-self: center; }
.label i { font-style: normal; font-family: var(--ar); letter-spacing: 0; text-transform: none; font-weight: 500; opacity: .8; }
html[lang="ar"] .label { letter-spacing: 0; }
html[lang="ar"] .label i { display: none; }

.title {
  font-size: clamp(32px, 5.2vw, 64px);
  line-height: 1.05; letter-spacing: -.03em; font-weight: 700;
  margin-bottom: clamp(32px, 5vw, 56px); max-width: 22ch;
}
.title.big { font-size: clamp(38px, 7vw, 92px); max-width: 14ch; }
html[lang="ar"] .title { letter-spacing: 0; line-height: 1.3; }

/* ---------- hero ---------- */
.hero { flex-direction: column; justify-content: center; text-align: center; gap: 0; }
.logo { width: min(460px, 72vw); height: auto; overflow: visible; direction: ltr; }
.logo .lg-a, .logo .lg-7 { fill: var(--cream); }
.logo .lg-blue, .logo .lg-s-blue { fill: var(--blue); }
.logo .lg-word {
  font-family: "Inter", sans-serif; font-weight: 700; font-size: 66px;
  fill: var(--cream);
}
/* hover: the word VISUALS breaks into tiles under the cursor (canvas), reforms on leave */
.hero .shatter { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.logo-wrap { position: relative; z-index: 2; cursor: default; }
.logo-wrap.shattered .logo .lg-word { visibility: hidden; }
/* hover on A7: wide hard-edged slanted stripes (the 7's angle) in vivid accent colours cross A7 from
   outside to outside, and VISUALS starts the instant A7 ends — one fast pass, no pause */
.logo .stripes-a7, .outro-mark .stripes-a7 { transform: translateX(0); }
.logo .stripes-word { transform: translateX(20px); }
.logo-wrap.sweep .stripes-a7, .outro-mark.sweep .stripes-a7 { animation: sweepA7 .38s cubic-bezier(.4, 0, .6, 1) forwards; }
.logo-wrap.sweep .stripes-word { animation: sweepWord .3s cubic-bezier(.4, 0, .6, 1) .38s forwards; }
@keyframes sweepA7 { to { transform: translateX(1170px); } }
@keyframes sweepWord { to { transform: translateX(930px); } }
/* logo intro */
.logo .clip-a, .logo .clip-7 { transform: translateY(400px); animation: rise 1.1s var(--ease) forwards; }
.logo .clip-7 { animation-delay: .15s; }
.logo .lg-blue { transform-box: fill-box; transform-origin: top; transform: scaleY(0); animation: grow .8s var(--ease) .9s forwards; }
.logo .lg-word { opacity: 0; letter-spacing: .6em; animation: word 1.2s var(--ease) 1s forwards; }
@keyframes rise { to { transform: none; } }
@keyframes grow { to { transform: none; } }
@keyframes word { to { opacity: 1; letter-spacing: 0; } }

.hero-line {
  margin-top: clamp(28px, 5vh, 48px);
  font-size: clamp(22px, 3vw, 34px); font-weight: 600; letter-spacing: -.02em;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0 .3em;
}
.hero-line .w { display: inline-block; opacity: 0; transform: translateY(18px); animation: up 1s var(--ease) forwards; }
.hero-line .w:nth-child(1) { animation-delay: 1.5s; }
.hero-line .w:nth-child(2) { animation-delay: 1.65s; }
.hero-tags { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.hero-tags li {
  padding: 9px 18px; border-radius: 99px; font-size: clamp(14px, 1.3vw, 16px); font-weight: 600;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--fg) 5%, transparent);
  opacity: 0; transform: translateY(14px); animation: up .9s var(--ease) forwards;
}
.hero-tags li:nth-child(1) { animation-delay: 1.85s; } .hero-tags li:nth-child(2) { animation-delay: 1.95s; } .hero-tags li:nth-child(3) { animation-delay: 2.05s; }
.hero-note {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  font-size: clamp(14px, 1.3vw, 16px); font-weight: 400; color: var(--muted); max-width: 44ch; text-align: center; justify-content: center;
  opacity: 0; animation: up 1s var(--ease) 2.25s forwards;
}
html[lang="ar"] .hero-note { font-size: clamp(15px, 1.4vw, 17px); }
.hero-note i { width: 12px; height: 12px; background: linear-gradient(135deg, #9DB4FF, #7B4DFF);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); animation: twinkle 2.8s ease-in-out infinite; }
.hero-sub {
  margin-top: 12px; color: var(--muted); font-size: clamp(15px, 1.4vw, 17px); max-width: 34ch;
  opacity: 0; animation: up 1s var(--ease) 1.9s forwards;
}
@keyframes up { to { opacity: 1; transform: none; } }
.scroll-cue {
  position: absolute; bottom: max(28px, env(safe-area-inset-bottom)); left: 50%; translate: -50% 0;
  width: 24px; height: 38px; border-radius: 99px; border: 1.5px solid var(--line);
  opacity: 0; animation: up 1s var(--ease) 2.4s forwards;
}
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--fg); animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 80%, 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- reel ---------- */
.video {
  position: relative; border-radius: clamp(14px, 2vw, 24px); overflow: hidden;
  aspect-ratio: 16 / 9; background: #000;
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .7);
}
.video video { width: 100%; height: 100%; object-fit: cover; display: block; cursor: default; -webkit-tap-highlight-color: transparent; }
.sound {
  position: absolute; bottom: clamp(10px, 2vw, 20px); inset-inline-end: clamp(10px, 2vw, 20px);
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 99px;
  background: rgba(17, 18, 20, .55); color: var(--cream); font-size: 13px; font-weight: 500;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: background .3s;
}
.sound:hover { background: rgba(17, 18, 20, .8); }
.sound svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sound .wave { display: none; }
.sound.on .wave { display: inline; }
.sound.on .mute { display: none; }

/* ---------- services ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  padding: 28px 24px 30px; border-radius: 20px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--fg) 3%, transparent);
  transition: transform .6s var(--ease), border-color .4s, background .4s;
}
.card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--blue) 70%, transparent); background: color-mix(in srgb, var(--blue) 8%, transparent); }
.ico { width: 44px; height: 44px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; margin-bottom: 28px; }
.card:hover .ico { animation: nudge .9s var(--ease); }
@keyframes nudge { 40% { transform: translateY(-4px) rotate(-4deg); } }
.card h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; letter-spacing: -.01em; }
.card p { font-size: 15px; color: var(--muted); }

/* ---------- process ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 20px; inset-inline: 0; height: 2px;
  background: var(--blue); transform-origin: left; transform: scaleX(var(--progress, 0));
}
html[dir="rtl"] .steps::before { transform-origin: right; }
.step b {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--blue); color: var(--blue);
  font-size: 14px; font-weight: 700; margin-bottom: 22px; position: relative;
  transition: background .5s, color .5s;
}
.step.lit b { background: var(--blue); color: var(--cream); }
.step h3 { font-size: 22px; font-weight: 700; margin-bottom: 6px; letter-spacing: -.01em; }
.step p { font-size: 15px; color: var(--muted); max-width: 24ch; }

/* ---------- quote ---------- */
.quote .label::before { background: var(--cream); }
.quote .title { margin-inline: auto; }

/* ---------- contact ---------- */
.contact .title { margin-inline: auto; }
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.pill {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 22px; border-radius: 99px; border: 1px solid var(--line);
  transition: border-color .4s, background .4s, transform .5s var(--ease);
}
.pill:hover { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 12%, transparent); transform: translateY(-2px); }
.pill svg { width: 20px; height: 20px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linejoin: round; }
.pill span { font-weight: 600; }
.pill em { font-style: normal; color: var(--muted); font-size: 14px; }
.outro-mark { width: 84px; height: auto; margin-top: clamp(60px, 10vh, 110px); fill: var(--fg); }
.outro-mark .lg-blue { fill: var(--blue); }
.tag { margin-top: 18px; font-size: 11px; letter-spacing: .28em; font-weight: 600; color: var(--muted); line-height: 2; }
.tag span { opacity: .7; }
.copy { margin-top: 36px; font-size: 12px; color: color-mix(in srgb, var(--fg) 40%, transparent); }


/* ---------- services: livelier cards ---------- */
.ai-badge {
  display: inline-flex; align-items: center; gap: 10px; margin: -18px 0 34px;
  padding: 9px 16px; border-radius: 99px; font-size: 14px; font-weight: 500;
  border: 1px solid color-mix(in srgb, var(--blue) 45%, transparent);
  background: color-mix(in srgb, var(--blue) 10%, transparent); color: color-mix(in srgb, var(--fg) 85%, transparent);
}
.ai-badge i { width: 14px; height: 14px; flex: none; background: linear-gradient(135deg, #9DB4FF, #7B4DFF);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); animation: twinkle 2.8s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { transform: scale(.75) rotate(0); } 50% { transform: scale(1.1) rotate(45deg); } }
.cards { perspective: 1200px; }
.cards .card.reveal { transform: translateY(46px) rotateX(16deg) scale(.96); transform-origin: 50% 0; }
.cards .card.reveal.in { transform: none; }
.card { position: relative; overflow: hidden; isolation: isolate; }
/* spotlight that follows the cursor */
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--blue) 30%, transparent), transparent 70%);
}
.card:hover::before { opacity: 1; }
/* a thin light that travels around the border */
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--ang), transparent 0 70%, color-mix(in srgb, #9DB4FF 80%, transparent) 80%, transparent 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: orbit 6s linear infinite; opacity: .7;
}
.cards .card:nth-child(2)::after { animation-delay: -1.5s; } .cards .card:nth-child(3)::after { animation-delay: -3s; } .cards .card:nth-child(4)::after { animation-delay: -4.5s; }
@keyframes orbit { to { --ang: 360deg; } }
/* animated icons */
.ico * { transform-box: fill-box; }
.ico-motion .trail { stroke-dasharray: 40; animation: trail 2.4s ease-in-out infinite; }
.ico-motion .ball { animation: ball 2.4s ease-in-out infinite; }
.ico-motion .spark { fill: var(--blue); stroke: none; transform-origin: center; animation: twinkle 2.4s ease-in-out infinite; }
@keyframes trail { 0% { stroke-dashoffset: 40; } 60%, 100% { stroke-dashoffset: 0; } }
@keyframes ball { 0% { transform: translate(-20px, 12px) scale(.6); } 60%, 100% { transform: none; } }
.ico-clap .top { transform-origin: 0% 100%; animation: clap 2.6s ease-in-out infinite; }
.ico-clap .play { fill: var(--blue); stroke: none; transform-origin: center; animation: beat 2.6s ease-in-out infinite; }
@keyframes clap { 0%, 30% { transform: rotate(-14deg); } 38%, 100% { transform: rotate(0); } }
@keyframes beat { 0%, 36% { transform: scale(1); } 44% { transform: scale(1.25); } 60%, 100% { transform: scale(1); } }
.ico-edit .head { stroke-width: 2.5; animation: head 3s linear infinite; }
@keyframes head { from { transform: translateX(0); } to { transform: translateX(30px); } }
.ico-brand .c1, .ico-brand .c2, .ico-brand .c3 { transform-origin: center; animation: shuffle 3.6s cubic-bezier(.7, 0, .3, 1) infinite; }
.ico-brand .c2 { animation-delay: -1.2s; } .ico-brand .c3 { animation-delay: -2.4s; fill: color-mix(in srgb, var(--blue) 25%, transparent); }
@keyframes shuffle { 0%, 25% { transform: none; } 33% { transform: rotate(90deg) scale(.8); } 45%, 100% { transform: rotate(90deg); } }

/* ---------- websites section ---------- */
.websites .title { margin-bottom: 14px; }
.web-sub { color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); max-width: 52ch; margin-bottom: clamp(28px, 4vw, 44px); }
.web-video { box-shadow: 0 50px 120px -40px color-mix(in srgb, #7B4DFF 60%, transparent); }
.web-feats { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0; }
.web-feats li { padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: color-mix(in srgb, var(--fg) 4%, transparent); }
.web-feats b { display: block; font-size: 17px; margin-bottom: 4px; }
.web-feats span { font-size: 14px; color: var(--muted); }
.web-feats .reveal:nth-child(2) { transition-delay: .08s; } .web-feats .reveal:nth-child(3) { transition-delay: .16s; }
@media (max-width: 760px) { .web-feats { grid-template-columns: 1fr; gap: 10px; } .ai-badge { margin-top: -10px; font-size: 13px; } }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.cards .reveal:nth-child(2), .steps .reveal:nth-child(2) { transition-delay: .08s; }
.cards .reveal:nth-child(3), .steps .reveal:nth-child(3) { transition-delay: .16s; }
.cards .reveal:nth-child(4), .steps .reveal:nth-child(4) { transition-delay: .24s; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
}
@media (max-width: 600px) {
  .sec { padding: 100px var(--gutter) 80px; min-height: auto; }
  .hero { min-height: 100svh; }
  .cards { grid-template-columns: 1fr; gap: 12px; }
  .card { padding: 22px 20px; display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; }
  .card .ico { margin: 0; grid-row: span 2; }
  .steps { grid-template-columns: 1fr; row-gap: 28px; }
  .step { display: grid; grid-template-columns: 42px 1fr; column-gap: 16px; }
  .step b { margin: 0; grid-row: span 2; }
  .btn-sm span { font-size: 13px; }
  .nav-mark svg { width: 40px; }
  .pill { width: 100%; justify-content: center; flex-wrap: wrap; }
  .sound span { display: none; }
}

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

/* services: cream section (brand) — clean white cards, black text, blue icons & accents */
.services .card { background: #FFFFFF; border: 1px solid rgba(17, 18, 20, .08); box-shadow: 0 14px 34px -22px rgba(17, 18, 20, .28); }
.services .card { transition: transform .6s var(--ease), background .35s ease, border-color .35s ease, box-shadow .35s ease; }
.services .card h3, .services .card p { transition: color .35s ease, opacity .35s ease; }
.services .card .ico, .services .card .ico * { transition: stroke .35s ease, fill .35s ease; }
/* hover: the card turns charcoal (the dark of the brand), text goes cream, icon stays blue */
.services .card:hover { background: #222326; border-color: #222326; box-shadow: 0 26px 50px -22px rgba(17, 18, 20, .55); }
.services .card:hover h3 { color: #F4F1E9; }
.services .card:hover p { color: #F4F1E9; opacity: .75; }
.services .card:hover .ico { stroke: #6F8FFF; }
.services .card:hover .ico-motion .spark, .services .card:hover .ico-clap .play { fill: #6F8FFF; }
.services .card:hover .ico-brand .c3 { fill: rgba(111, 143, 255, .25); }
.services .card:hover::before { background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgba(111, 143, 255, .14), transparent 70%); }
.services .card:hover::after { opacity: 0; }
.services .ai-badge:hover { background: #222326; border-color: #222326; color: #F4F1E9; }
.services .card::before { background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgba(45, 91, 227, .08), transparent 70%); }
.services .card::after { background: conic-gradient(from var(--ang), transparent 0 72%, rgba(45, 91, 227, .7) 81%, transparent 90%); opacity: .8; }
.services .card h3 { color: #111214; }
.services .card p { color: #111214; opacity: .66; }
.services .ico { stroke: var(--blue); stroke-width: 2.2; }
.services .ico-motion .spark, .services .ico-clap .play { fill: var(--blue); }
.services .ico-brand .c3 { fill: rgba(45, 91, 227, .15); }
.services .label::before { background: var(--blue); }
.services .ai-badge { background: rgba(45, 91, 227, .08); border: 1px solid rgba(45, 91, 227, .25); color: #111214; }
.services .ai-badge i { background: var(--blue); }

/* ---------- every box reacts on hover, in colours that belong to its own section ---------- */
.hero-tags li, .web-feats li, .pill, .ai-badge, .services .card { transition: background .35s ease, border-color .35s ease, color .35s ease, transform .5s var(--ease), box-shadow .35s ease; }
/* hero (ink) → cream chips */
.hero-tags li:hover { background: #F4F1E9; border-color: #F4F1E9; color: #111214; transform: translateY(-2px); }
/* websites (violet) → bright violet tiles */
.web-feats li:hover { background: #7B4DFF; border-color: #7B4DFF; transform: translateY(-3px); box-shadow: 0 22px 44px -22px rgba(123, 77, 255, .75); }
.web-feats li:hover b, .web-feats li:hover span { color: #fff; }
/* contact (ink) → cream pills */
.pill:hover { background: #F4F1E9; border-color: #F4F1E9; color: #111214; }
.pill:hover svg { stroke: var(--blue); }


/* ---------- services: 5 cards (3 + 2) ---------- */
.cards { grid-template-columns: repeat(6, 1fr); }
.cards .card { grid-column: span 2; }
.cards .card:nth-child(4), .cards .card:nth-child(5) { grid-column: span 3; }
.card-cover { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.card-more { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--blue); transition: transform .4s var(--ease), color .35s ease; }
.card-web:hover .card-more { color: #9DB4FF; transform: translateX(4px); }
html[dir="rtl"] .card-web:hover .card-more { transform: translateX(-4px); }
.ico-web .scroll { animation: webScroll 4s cubic-bezier(.7, 0, .3, 1) infinite; }
.ico-web .blk { fill: rgba(45, 91, 227, .18); }
.services .card:hover .ico-web .blk { fill: rgba(111, 143, 255, .3); }
.ico-web .cursor { fill: var(--blue); stroke: none; animation: webCursor 4s ease-in-out infinite; transform-origin: center; }
.services .card:hover .ico-web .cursor { fill: #6F8FFF; }
@keyframes webScroll { 0%, 30% { transform: translateY(0); } 45%, 75% { transform: translateY(-22px); } 90%, 100% { transform: translateY(0); } }
@keyframes webCursor { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(-8px, -6px); } 28% { transform: translate(-8px, -6px) scale(.8); } 31% { transform: translate(-8px, -6px); } 60% { transform: translate(-2px, 5px); } }
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards .card, .cards .card:nth-child(4) { grid-column: span 1; }
  .cards .card:nth-child(5) { grid-column: span 2; }
}
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } .cards .card, .cards .card:nth-child(4), .cards .card:nth-child(5) { grid-column: auto; } }

/* ---------- websites tiles: animated icons ---------- */
.wf-ico { display: block; width: 96px; height: 40px; margin-bottom: 14px; overflow: visible; fill: none; stroke: #F4F1E9; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.wf-ico * { transform-box: fill-box; transform-origin: center; }
.wf-devices .scr { fill: #7B4DFF; stroke: none; opacity: .25; animation: scr 3s ease-in-out infinite; }
.wf-devices .d2 .scr { animation-delay: .35s; } .wf-devices .d3 .scr { animation-delay: .7s; }
.wf-devices .dv { animation: dvPop 3s cubic-bezier(.22, 1, .36, 1) infinite; }
.wf-devices .d2 { animation-delay: .35s; } .wf-devices .d3 { animation-delay: .7s; }
@keyframes scr { 0%, 100% { opacity: .2; } 20%, 45% { opacity: .95; } }
@keyframes dvPop { 0%, 100% { transform: translateY(0); } 15% { transform: translateY(-3px); } 35% { transform: translateY(0); } }
.wf-lang circle { fill: rgba(123, 77, 255, .35); }
.wf-lang text { font: 700 17px Inter, sans-serif; fill: #F4F1E9; stroke: none; }
.wf-lang text.ar { font: 700 20px "IBM Plex Sans Arabic", sans-serif; }
.wf-lang .l1 { animation: swapL 3.2s cubic-bezier(.7, 0, .3, 1) infinite; }
.wf-lang .l2 { animation: swapR 3.2s cubic-bezier(.7, 0, .3, 1) infinite; }
@keyframes swapL { 0%, 35% { transform: translateX(0) scale(1); } 50% { transform: translateX(14px) scale(.8); } 65%, 85% { transform: translateX(28px) scale(1); } 100% { transform: translateX(0) scale(1); } }
@keyframes swapR { 0%, 35% { transform: translateX(0) scale(1); } 50% { transform: translateX(-14px) scale(1.15); } 65%, 85% { transform: translateX(-28px) scale(1); } 100% { transform: translateX(0) scale(1); } }
.wf-chart .axis { opacity: .4; }
.wf-chart .bar { fill: rgba(123, 77, 255, .5); stroke: none; transform-origin: 50% 100%; animation: bar 3s cubic-bezier(.22, 1, .36, 1) infinite; }
.wf-chart .b1 { --h: .35; } .wf-chart .b2 { --h: .55; animation-delay: .12s; } .wf-chart .b3 { --h: .45; animation-delay: .24s; } .wf-chart .b4 { --h: .8; animation-delay: .36s; }
@keyframes bar { 0% { transform: scaleY(.08); } 30%, 80% { transform: scaleY(var(--h)); } 100% { transform: scaleY(.08); } }
.wf-chart .trend { stroke: #9DB4FF; stroke-width: 2.2; stroke-dasharray: 100; stroke-dashoffset: 100; animation: trend 3s ease-in-out infinite; }
.wf-chart .dot { fill: #9DB4FF; stroke: none; animation: dot 3s ease-in-out infinite; }
@keyframes trend { 0%, 10% { stroke-dashoffset: 100; } 55%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 100; } }
@keyframes dot { 0%, 50% { transform: scale(0); } 60%, 80% { transform: scale(1); } 100% { transform: scale(0); } }
.web-feats li:hover .wf-ico .scr, .web-feats li:hover .wf-lang circle, .web-feats li:hover .wf-chart .bar { fill: rgba(255, 255, 255, .35); }

/* ---------- process: a line that travels 01 → 04 and stops exactly on 04 ---------- */
.process .steps::before {
  inset: auto; left: var(--lx, 0); top: var(--ly, 20px); width: var(--lw, 0); height: var(--lh, 2px);
  background: var(--blue); transform-origin: var(--lo, left center);
  transform: var(--lt, scaleX(var(--progress, 0)));
}
html[dir="rtl"] .process .steps::before { transform-origin: var(--lo, right center); }
.process .steps::after { /* faint track so the path is visible before it fills */
  content: ""; position: absolute; left: var(--lx, 0); top: var(--ly, 20px); width: var(--lw, 0); height: var(--lh, 2px);
  background: rgba(17, 18, 20, .12); z-index: -1;
}
.process .step b {
  position: relative; z-index: 1; background: var(--bg); border: 2px solid rgba(17, 18, 20, .18); color: rgba(17, 18, 20, .45);
  transition: background .45s var(--ease), border-color .45s var(--ease), color .45s var(--ease), transform .6s var(--ease);
}
.process .step h3, .process .step p { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .8s var(--ease); }
.process .step p { transition-delay: .08s; }
.process .step.lit b { background: var(--blue); border-color: var(--blue); color: #fff; transform: scale(1.08); }
.process .step.lit h3, .process .step.lit p { opacity: 1; transform: none; }
.process .step.lit b::after { /* one ring ripples out when the line arrives */
  content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--blue); animation: ripple .9s var(--ease) forwards;
}
@keyframes ripple { from { transform: scale(1); opacity: .8; } to { transform: scale(2.1); opacity: 0; } }
.process .step b .done { position: absolute; inset: 0; margin: auto; width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; opacity: 0; }
.process .step.last.lit b { font-size: 0; }
.process .step.last.lit b .done { opacity: 1; transition: stroke-dashoffset .6s var(--ease) .35s; stroke-dashoffset: 0; }
.process .step.last.lit b::before { /* the finish: a soft steady halo on 04 */
  content: ""; position: absolute; inset: -8px; border-radius: 50%; background: rgba(45, 91, 227, .16); animation: halo 2.4s ease-in-out .9s infinite;
}
@keyframes halo { 0%, 100% { transform: scale(.9); opacity: .9; } 50% { transform: scale(1.12); opacity: .35; } }
.process .label::before { background: var(--blue); }
@media (max-width: 960px) { .process .steps::before, .process .steps::after { display: block; } }


/* ---------- process: steps stacked vertically on every screen, so the line runs straight down to ✓ ---------- */
.process .steps { grid-template-columns: 1fr; row-gap: 34px; max-width: 620px; }
.process .step { display: grid; grid-template-columns: 42px 1fr; column-gap: 20px; align-items: start; }
.process .step b { margin: 0; grid-row: span 2; }
.process .step h3 { margin-top: 8px; }
.process .step p { max-width: 44ch; }

/* ---------- quote: animated storyboard strip ---------- */
.board { width: min(660px, 100%); height: auto; margin-top: clamp(36px, 6vh, 60px); overflow: visible; }
.board rect { fill: rgba(255, 255, 255, .08); stroke: rgba(244, 241, 233, .55); stroke-width: 1.5; }
.board text { font: 600 11px Inter, sans-serif; fill: rgba(244, 241, 233, .7); letter-spacing: .1em; }
.board .sk { fill: none; stroke: #F4F1E9; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 240; stroke-dashoffset: 240; animation: sketch 6s ease-in-out infinite; }
.board .arrow { fill: none; stroke: rgba(244, 241, 233, .6); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: sketch 6s ease-in-out infinite; }
.board .p1 .sk { animation-delay: 0s; } .board > .arrow:nth-of-type(1) { animation-delay: .7s; }
.board .p2 .sk { animation-delay: .9s; } .board > .arrow:nth-of-type(2) { animation-delay: 1.6s; }
.board .p3 .sk { animation-delay: 1.8s; } .board > .arrow:nth-of-type(3) { animation-delay: 2.5s; }
.board .p4 .sk { animation-delay: 2.7s; }
.board .rec { stroke: #FF7A00; }
@keyframes sketch { 0% { stroke-dashoffset: 240; } 18%, 82% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -240; } }
html[dir="rtl"] .board { transform: scaleX(-1); }
html[dir="rtl"] .board text { transform: scaleX(-1); transform-box: fill-box; transform-origin: center; }

/* ---------- big headlines: a gentle light sweep (reading direction), soft glow ---------- */
.sec { --shine: #FFFFFF; }
.services, .process { --shine: #2D5BE3; }
.title {
  background: linear-gradient(100deg, var(--fg) 0%, var(--fg) 42%, var(--shine) 50%, var(--fg) 58%, var(--fg) 100%);
  background-size: 260% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: tshine-ltr 7s cubic-bezier(.45, 0, .25, 1) 1.2s infinite;
}
html[dir="rtl"] .title { background-image: linear-gradient(260deg, var(--fg) 0%, var(--fg) 42%, var(--shine) 50%, var(--fg) 58%, var(--fg) 100%); background-position: -60% 0; animation-name: tshine-rtl; }
@keyframes tshine-ltr { 0% { background-position: 100% 0; } 30%, 100% { background-position: -60% 0; } }
@keyframes tshine-rtl { 0% { background-position: -60% 0; } 30%, 100% { background-position: 100% 0; } }
/* the closing line gets the full treatment: brighter sweep, glow, sparkles */
.shine-strong { --shine: #9DB4FF; animation-duration: 4.5s; filter: drop-shadow(0 0 22px rgba(111, 143, 255, .28)); margin-bottom: 0; }
.title-sparkle { position: relative; display: inline-flex; align-items: center; gap: clamp(10px, 2vw, 22px); margin-bottom: clamp(32px, 5vw, 56px); }
.tspark { width: clamp(16px, 2vw, 24px); height: clamp(16px, 2vw, 24px); flex: none; background: var(--blue);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); animation: twinkle 2.6s ease-in-out infinite; }
.tspark.t2 { animation-delay: 1.3s; background: #9DB4FF; }
@media (max-width: 600px) { .title-sparkle { gap: 8px; } .tspark { width: 14px; height: 14px; } }
