/* ==========================================================================
   Creative Lebanon — public site
   Dark premium theme · EN (LTR) + AR (RTL) · no framework
   ========================================================================== */

:root {
  --bg: #062b34;
  --bg-2: #08323c;
  --panel: #0a3a46;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .065);
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .15);
  --text: #eef2fb;
  --text-2: #a9b3c7;
  --text-3: #6f7b93;
  --blue: #3b82f6;
  --blue-l: #60a5fa;
  --blue-xl: #93c5fd;
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --green: #34d399;
  --grad: linear-gradient(110deg, #6aa8ff 0%, #22d3ee 48%, #a78bfa 100%);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --container: clamp(1200px, 82vw, 1520px); /* widens on large screens */
  --header-h: 76px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --font-ar: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}

[dir="rtl"] {
  --font-display: var(--font-ar);
  --font-body: var(--font-ar);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--bg);
}

body {
  margin: 0;
  position: relative;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
  isolation: isolate;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; color: var(--text); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(59, 130, 246, .38); color: #fff; }

:focus-visible { outline: 2px solid var(--blue-l); outline-offset: 3px; border-radius: 8px; }

/* Arabic script must never be letter-spaced (it breaks letter joining). */
[dir="rtl"] *, [lang="ar"] { letter-spacing: 0 !important; text-transform: none !important; }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }
[dir="rtl"] .flip { transform: scaleX(-1); }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.container.narrow { max-width: 860px; }
@media (min-width: 768px) { .container { width: min(100% - 56px, var(--container)); } }

.skip-link {
  position: fixed; top: 12px; inset-inline-start: 12px; z-index: 100;
  padding: 10px 16px; border-radius: 10px; background: var(--blue); color: #fff; font-weight: 600;
  transform: translateY(-160%); transition: transform .2s;
}
.skip-link:focus { transform: none; }

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

/* ---------- Background scene ---------- */
.bg-scene {
  position: absolute; inset: 0 0 auto 0; height: 1300px;
  z-index: -2; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 62%, transparent);
  mask-image: linear-gradient(#000 62%, transparent);
}
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 75% 55% at 50% 0%, #000 25%, transparent 72%);
  mask-image: radial-gradient(ellipse 75% 55% at 50% 0%, #000 25%, transparent 72%);
}
/* Pre-softened gradient discs (no filter: blur) so they stay cheap while drifting and parallaxing. */
.orb { position: absolute; border-radius: 50%; }
.orb-1 { width: 900px; height: 900px; top: -390px; inset-inline-start: -270px; background: radial-gradient(closest-side, rgba(29, 78, 216, .55), rgba(29, 78, 216, .22) 55%, transparent); animation: drift 18s ease-in-out infinite alternate; }
.orb-2 { width: 740px; height: 740px; top: -150px; inset-inline-end: -290px; background: radial-gradient(closest-side, rgba(8, 145, 178, .42), rgba(8, 145, 178, .15) 55%, transparent); animation: drift 22s ease-in-out infinite alternate-reverse; }
.orb-3 { width: 660px; height: 660px; top: 370px; inset-inline-start: 36%; background: radial-gradient(closest-side, rgba(109, 40, 217, .24), rgba(109, 40, 217, .08) 55%, transparent); animation: drift 26s ease-in-out infinite alternate; }
@media (max-width: 767px) { .orb-1 { width: 540px; height: 540px; top: -240px; } .orb-2 { width: 440px; height: 440px; } .orb-3 { width: 400px; height: 400px; } }

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(calc(60px * var(--dir)), 40px, 0) scale(1.12); }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px; line-height: 1.2;
  white-space: nowrap; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, border-color .25s, color .25s;
}
.btn .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .icon:last-child { transform: translateX(3px); }
[dir="rtl"] .btn:hover .icon.flip:last-child { transform: scaleX(-1) translateX(3px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #4b8dff 0%, #2563eb 55%, #1d4ed8 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 0 0 1px rgba(96, 165, 250, .35), 0 12px 32px -12px rgba(59, 130, 246, .85);
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 0 0 1px rgba(147, 197, 253, .5), 0 18px 40px -12px rgba(59, 130, 246, .95); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost { color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); border-color: rgba(255, 255, 255, .25); transform: translateY(-2px); }
.btn-wa .icon:first-child { color: #25d366; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .7; pointer-events: none; }
.count-pill { padding: 1px 8px; border-radius: 999px; background: rgba(59, 130, 246, .2); color: var(--blue-xl); font-size: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; inset-inline: 0; z-index: 60;
  height: var(--header-h); display: flex; align-items: center;
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(4, 34, 42, .72);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.logo { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; position: relative; z-index: 2; }
.logo-mark { width: 38px; height: 38px; filter: drop-shadow(0 6px 18px rgba(59, 130, 246, .45)); transition: transform .5s var(--ease); }
.logo:hover .logo-mark { transform: rotate(-12deg) scale(1.05); }
.logo-word { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 700; font-size: 19px; letter-spacing: -.02em !important; line-height: 1; }
.logo-a { color: var(--blue-l); }
.logo-b { color: var(--text); }

.main-nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  color: var(--text-2); font-size: 15px; font-weight: 500;
  transition: color .2s, background-color .2s;
}
.nav-link:hover, .nav-link.is-active { color: var(--text); }
.nav-link.is-active { background: var(--surface-2); }
.nav-link .chev { width: 16px; height: 16px; transition: transform .25s; }

.has-drop { position: relative; }
.drop-panel {
  position: absolute; top: calc(100% + 14px); inset-inline-start: 50%;
  width: 330px; padding: 8px;
  background: rgba(6, 42, 51, .94);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid var(--border-strong); border-radius: 18px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .02);
  opacity: 0; visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity .25s, transform .25s var(--ease), visibility .25s;
}
[dir="rtl"] .drop-panel { transform: translate(50%, 8px); }
.drop-panel::before { content: ""; position: absolute; inset: -16px 0 auto; height: 16px; }
.has-drop:hover .drop-panel, .has-drop.is-open .drop-panel, .has-drop:focus-within .drop-panel {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
[dir="rtl"] .has-drop:hover .drop-panel, [dir="rtl"] .has-drop.is-open .drop-panel, [dir="rtl"] .has-drop:focus-within .drop-panel { transform: translate(50%, 0); }
.has-drop:hover .chev, .has-drop.is-open .chev { transform: rotate(180deg); }
.drop-item { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 12px; transition: background-color .2s; }
.drop-item:hover, .drop-item.is-active { background: var(--surface-2); }
.drop-ic {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0;
  color: var(--blue-xl);
  background: linear-gradient(135deg, rgba(59, 130, 246, .25), rgba(34, 211, 238, .1));
  border: 1px solid rgba(96, 165, 250, .28);
}
.drop-ic .icon { width: 20px; height: 20px; }
.drop-txt { display: flex; flex-direction: column; gap: 2px; }
.drop-txt strong { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--text); }
.drop-txt small { font-size: 13px; color: var(--text-3); }

.header-actions { display: flex; align-items: center; gap: 10px; position: relative; z-index: 2; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--text-2); font-size: 14px; font-weight: 500;
  transition: color .2s, border-color .2s, background-color .2s;
}
.lang-btn .icon { width: 16px; height: 16px; }
.lang-btn:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface); }
[lang="ar"] { font-family: var(--font-ar); }

.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface); position: relative; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 1.6px; border-radius: 2px; background: var(--text); transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 25px; }
.nav-open .menu-btn span:first-child { top: 21px; transform: rotate(45deg); }
.nav-open .menu-btn span:last-child { top: 21px; transform: rotate(-45deg); }
.nav-mobile-extra { display: none; }

@media (max-width: 1100px) {
  .menu-btn { display: block; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; align-items: stretch; justify-content: space-between; gap: 32px;
    padding: calc(var(--header-h) + 16px) 24px calc(28px + env(safe-area-inset-bottom));
    background: rgba(4, 34, 42, .97);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .3s, transform .35s var(--ease), visibility .3s;
  }
  .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open { overflow: hidden; }
  .nav-open .site-header { background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--border); }
  .nav-link { width: 100%; justify-content: space-between; padding: 16px 4px; border-radius: 0; font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--text); }
  .nav-link.is-active { background: none; color: var(--blue-l); }
  .drop-panel, [dir="rtl"] .drop-panel {
    position: static; width: auto; padding: 0 0 12px; transform: none !important;
    background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
    opacity: 1; visibility: visible; display: none;
  }
  .has-drop.is-open .drop-panel { display: block; }
  .has-drop:hover .chev { transform: none; }
  .has-drop.is-open .chev { transform: rotate(180deg); }
  .drop-panel::before { display: none; }
  .nav-mobile-extra { display: flex; flex-direction: column; gap: 12px; }
}
@media (max-width: 640px) {
  .header-actions .lang-btn { display: none; }
  .logo-word { font-size: 17px; }
  .logo-mark { width: 34px; height: 34px; }
}

/* ---------- Section scaffolding ---------- */
.section { padding-block: clamp(56px, 7vw, 96px); position: relative; }
.section-tight { padding-block: clamp(40px, 6vw, 72px); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head.split > div { max-width: 680px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--blue-l);
}
[dir="rtl"] .eyebrow { font-family: var(--font-ar); font-size: 15px; font-weight: 600; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: linear-gradient(90deg, transparent, var(--blue-l)); }
[dir="rtl"] .eyebrow::before { background: linear-gradient(-90deg, transparent, var(--blue-l)); }
.section-title {
  margin: 16px 0 16px;
  font-size: clamp(32px, 4.4vw, 54px); font-weight: 800; line-height: 1.1; letter-spacing: -.026em;
}
[dir="rtl"] .section-title { font-weight: 700; line-height: 1.3; }
.section-sub { color: var(--text-2); font-size: clamp(16px, 1.4vw, 18.5px); line-height: 1.7; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero { padding-top: calc(var(--header-h) + clamp(36px, 6vw, 72px)); padding-bottom: clamp(48px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(40px, 6vw, 80px); align-items: center; }

.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--border-strong);
  color: var(--text-2); font-size: 13.5px; font-weight: 500;
  transition: border-color .2s, background-color .2s;
}
[dir="rtl"] .eyebrow-pill { padding: 7px 10px 7px 14px; }
.eyebrow-pill:hover { border-color: rgba(96, 165, 250, .5); background: rgba(59, 130, 246, .08); }
.eyebrow-pill .icon { width: 15px; height: 15px; color: var(--blue-l); }
.pulse-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.pulse-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--green); opacity: 0; animation: ping 2.2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.8); opacity: 0; } }

.hero-title {
  margin: 24px 0 22px;
  font-size: clamp(42px, 5.4vw, 70px); font-weight: 800; line-height: 1.04; letter-spacing: -.032em;
}
[dir="rtl"] .hero-title { font-size: clamp(38px, 5.4vw, 68px); font-weight: 700; line-height: 1.28; }
.hero-line { display: block; }
.rotator { display: grid; padding-top: .04em; }
.rotator-word {
  grid-area: 1 / 1;
  padding-bottom: .14em; margin-bottom: -.04em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0; transform: translateY(.45em); filter: blur(8px);
  transition: opacity .7s var(--ease), transform .7s var(--ease), filter .7s var(--ease);
}
.rotator-word.is-active { opacity: 1; transform: none; filter: none; }
.rotator-word.is-leaving { opacity: 0; transform: translateY(-.45em); filter: blur(8px); }
.no-js .rotator-word:not(:first-child) { display: none; }

.hero-sub { max-width: 560px; color: var(--text-2); font-size: clamp(16.5px, 1.5vw, 19px); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-trust { display: flex; align-items: center; gap: 10px; margin-top: 30px; color: var(--text-3); font-size: 14.5px; }
.trust-ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(52, 211, 153, .12); color: var(--green); }
.trust-ic .icon { width: 15px; height: 15px; }

/* Hero visual: code window + floating cards */
.hero-visual { position: relative; isolation: isolate; padding: 28px 8px 36px; }
.hero-halo {
  position: absolute; inset: 8% 6%; border-radius: 40px; z-index: -1;
  background: radial-gradient(closest-side, rgba(59, 130, 246, .5), rgba(34, 211, 238, .15) 60%, transparent);
  filter: blur(40px);
}
.code-window {
  --rx: 4deg; --ry: -10deg;
  position: relative;
  border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, rgba(12, 62, 74, .92), rgba(5, 38, 47, .96));
  border: 1px solid var(--border-strong);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .03), 0 50px 120px -30px rgba(0, 0, 0, .9), 0 40px 120px -40px rgba(59, 130, 246, .55);
  transform: perspective(1400px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .6s var(--ease);
}
[dir="rtl"] .code-window { --ry: 10deg; }
.code-window::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, .08), transparent 40%);
}
.cw-bar { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, .02); }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-r { background: #ff5f57; } .dot-y { background: #febc2e; } .dot-g { background: #28c840; }
.cw-title { margin-inline-start: auto; margin-inline-end: auto; padding-inline-end: 44px; font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }
.cw-code {
  margin: 0; padding: 22px 22px 28px; overflow: hidden;
  font-family: var(--font-mono); font-size: clamp(12px, 1.05vw, 14px); line-height: 1.9; color: #c9d4ea;
  text-align: left; direction: ltr; white-space: pre;
}
.cw-code code { font: inherit; white-space: normal; }
.line { display: block; min-height: 1.9em; white-space: pre; }
.js .line { opacity: 0; transform: translateX(-8px); animation: line-in .55s var(--ease) forwards; animation-delay: calc(var(--i) * 110ms + 500ms); }
@keyframes line-in { to { opacity: 1; transform: none; } }
.ln { display: inline-block; width: 2.2ch; margin-right: 18px; color: #3a4560; text-align: right; user-select: none; }
.k { color: #c792ea; } .s { color: #7ee0c3; } .f { color: #82aaff; } .p { color: #9ccfff; }
.t { color: #ffcb6b; } .v { color: #f0f4ff; } .n { color: #f78c6c; } .o { color: #7f8ca6; } .c { color: #56627d; font-style: italic; }
.caret { display: inline-block; width: 8px; height: 1.15em; margin-left: 4px; vertical-align: -3px; background: var(--blue-l); animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.float-card {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 11px;
  padding: 11px 15px 11px 11px; border-radius: 16px;
  background: rgba(7, 46, 56, .86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .85);
  animation: floaty 7s ease-in-out infinite;
}
[dir="rtl"] .float-card { padding: 11px 11px 11px 15px; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.fc-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: rgba(59, 130, 246, .16); color: var(--blue-xl); }
.fc-ic .icon { width: 19px; height: 19px; }
.fc-ic-green { background: rgba(52, 211, 153, .15); color: var(--green); }
.fc-txt { display: flex; flex-direction: column; line-height: 1.25; }
.fc-txt strong { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; }
.fc-txt small { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.fc-deploy { top: -2px; inset-inline-end: -14px; animation-delay: -1s; }
.fc-perf { top: 69%; inset-inline-start: -44px; animation-delay: -3.5s; }
.fc-perf .fc-txt strong { font-size: 18px; }
.fc-support { bottom: -6px; inset-inline-end: 36px; animation-delay: -5s; }
.ring { width: 44px; height: 44px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 4; }
.ring-bg { stroke: rgba(52, 211, 153, .15); }
.ring-fg { stroke: var(--green); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.js .in .ring-fg, .no-js .ring-fg { animation: ring-fill 1.8s 1s var(--ease) forwards; }
@keyframes ring-fill { to { stroke-dashoffset: 0; } }

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  .hero-visual { max-width: 620px; margin-inline: auto; width: 100%; }
}
@media (max-width: 560px) {
  .hero-visual { padding: 34px 0 40px; }
  .fc-deploy { inset-inline-end: 0; top: 0; }
  .fc-perf { inset-inline-start: 0; top: auto; bottom: 0; }
  .fc-support { display: none; }
  .code-window, [dir="rtl"] .code-window { --ry: 0deg; --rx: 0deg; }
  .cw-code { padding: 16px 12px 20px; font-size: clamp(10.5px, 3vw, 13px); }
  .ln { margin-right: 12px; }
}

/* ---------- Marquee ---------- */
.marquee-section { padding: 8px 0 12px; }
.marquee-label { text-align: center; color: var(--text-3); font-size: 13px; font-family: var(--font-mono); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 20px; }
[dir="rtl"] .marquee-label { font-family: var(--font-ar); font-size: 14px; }
.marquee {
  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);
}
.marquee-track { display: flex; width: max-content; gap: 12px; animation: marquee 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 6px)); } }
.marquee-item {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 20px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  font-family: "Plus Jakarta Sans", sans-serif; font-weight: 600; font-size: 15px; color: var(--text-2); white-space: nowrap;
}
.mi-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 12px rgba(96, 165, 250, .8); }

/* ---------- Cards ---------- */
.card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  border: 1px solid var(--border);
  transition: border-color .35s, transform .45s var(--ease), box-shadow .45s var(--ease);
}
a.card:hover, .card.spot:hover { border-color: rgba(255, 255, 255, .14); transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.spot::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(480px circle at var(--mx, 50%) var(--my, 0%), rgba(96, 165, 250, .13), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(147, 197, 253, .75), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s;
}
.spot:hover::before, .spot:hover::after { opacity: 1; }
/* Cards that also reveal on scroll need both transitions. */
.js .card.reveal { transition: opacity .9s var(--ease), transform .8s var(--ease), border-color .35s, box-shadow .45s var(--ease); transition-delay: var(--d, 0ms); }

.card-icon {
  display: grid; place-items: center; flex-shrink: 0;
  width: 50px; height: 50px; border-radius: 14px; margin-bottom: 22px;
  color: var(--blue-xl);
  background: linear-gradient(135deg, rgba(59, 130, 246, .28), rgba(34, 211, 238, .08));
  border: 1px solid rgba(96, 165, 250, .3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 10px 30px -12px rgba(59, 130, 246, .6);
}
.card-icon .icon { width: 24px; height: 24px; }
.card-icon-wa { color: #4ade80; background: linear-gradient(135deg, rgba(37, 211, 102, .25), rgba(37, 211, 102, .06)); border-color: rgba(74, 222, 128, .3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 10px 30px -12px rgba(37, 211, 102, .5); }
.card h3 { font-size: 20px; font-weight: 700; letter-spacing: -.015em; margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 15.5px; line-height: 1.68; }
.card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 22px; font-weight: 600; font-size: 14.5px; color: var(--blue-xl); }
.card-link .icon { width: 17px; height: 17px; transition: transform .3s var(--ease); }
.card:hover .card-link .icon, .card-link:hover .icon { transform: translateX(4px); }
[dir="rtl"] .card:hover .card-link .icon.flip, [dir="rtl"] .card-link:hover .icon.flip { transform: scaleX(-1) translateX(4px); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag { padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 500; color: var(--blue-xl); background: rgba(59, 130, 246, .1); border: 1px solid rgba(59, 130, 246, .25); }
.badge { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--text); background: rgba(255, 255, 255, .08); border: 1px solid var(--border-strong); }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.bento-web { grid-column: span 2; grid-row: span 2; }
.bento-support { grid-column: span 4; flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; }
.bento-support .support-copy { max-width: 520px; }

.mini-browser { margin-top: 26px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border-strong); background: rgba(3, 30, 37, .7); box-shadow: 0 30px 60px -30px rgba(59, 130, 246, .5); }
.mb-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.mb-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.mb-bar span { flex: 1; height: 16px; margin-inline-start: 12px; border-radius: 6px; background: rgba(255, 255, 255, .05); }
.mb-body { padding: 16px; display: grid; gap: 14px; }
.mb-nav { display: flex; align-items: center; gap: 8px; }
.mb-nav b { width: 18px; height: 18px; border-radius: 50%; background: var(--blue); margin-inline-end: auto; }
.mb-nav span { width: 34px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .12); }
.mb-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; align-items: center; }
.mb-hero-txt { display: grid; gap: 8px; }
.mb-hero-txt span { height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .16); }
.mb-hero-txt span:nth-child(2) { width: 70%; }
.mb-hero-txt em { width: 56px; height: 18px; border-radius: 9px; background: var(--blue); margin-top: 4px; }
.mb-hero-img { height: 120px; border-radius: 10px; background: linear-gradient(120deg, rgba(59, 130, 246, .55), rgba(34, 211, 238, .35), rgba(139, 92, 246, .45)); background-size: 200% 200%; animation: shimmer 6s ease-in-out infinite alternate; }
@keyframes shimmer { to { background-position: 100% 100%; } }
.mb-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mb-cards span { height: 64px; border-radius: 9px; background: rgba(255, 255, 255, .05); border: 1px solid var(--border); }

.support-visual { display: flex; align-items: center; gap: 28px; flex-shrink: 0; }
.uptime { display: flex; align-items: flex-end; gap: 4px; height: 56px; }
.uptime span { width: 6px; height: 100%; border-radius: 3px; background: linear-gradient(180deg, var(--green), rgba(52, 211, 153, .25)); opacity: .9; animation: bar 2.4s ease-in-out infinite; animation-delay: calc(var(--i) * -90ms); transform-origin: bottom; }
@keyframes bar { 0%, 100% { transform: scaleY(.55); } 50% { transform: scaleY(1); } }
.support-big { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; font-size: clamp(56px, 7vw, 92px); line-height: 1; letter-spacing: -.05em !important; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-web { grid-row: auto; }
  .bento-support { grid-column: span 2; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .bento-web, .bento-support { grid-column: auto; }
  .bento-support { flex-direction: column; align-items: flex-start; }
  .uptime { display: none; }
}

/* ---------- Products ---------- */
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.product { padding: 0; }
.product-art {
  --c1: #3b82f6; --c2: #22d3ee;
  position: relative; height: 150px; overflow: hidden;
  display: grid; place-items: center;
  background: #0a3541;
  background:
    radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--c1) 55%, transparent), transparent 60%),
    radial-gradient(120% 120% at 100% 100%, color-mix(in srgb, var(--c2) 45%, transparent), transparent 60%),
    #0a3541;
  border-bottom: 1px solid var(--border);
}
.tone-violet .product-art { --c1: #8b5cf6; --c2: #3b82f6; }
.tone-cyan .product-art { --c1: #06b6d4; --c2: #10b981; }
.product-art-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%);
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%);
}
.product-icon {
  position: relative; display: grid; place-items: center;
  width: 72px; height: 72px; border-radius: 22px; color: #fff;
  background: linear-gradient(135deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .05));
  border: 1px solid rgba(255, 255, 255, .3);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .6);
  transition: transform .6s var(--ease);
}
.product:hover .product-icon { transform: translateY(-6px) rotate(-6deg); }
.product-icon .icon { width: 32px; height: 32px; }
.product-body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.product-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.product-head h3 { margin: 0; }
.checklist { display: grid; gap: 11px; margin-top: 20px; }
.checklist li { display: flex; align-items: flex-start; gap: 11px; color: var(--text); font-size: 15px; line-height: 1.5; }
.check { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; background: rgba(59, 130, 246, .16); color: var(--blue-xl); margin-top: 1px; }
.check .icon { width: 13px; height: 13px; stroke-width: 2.5; }
@media (max-width: 1024px) { .products { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

/* ---------- Stats ---------- */
.stats-section { padding-block: clamp(24px, 4vw, 48px); }
.stats {
  display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr));
  border-radius: 26px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .01));
  border: 1px solid var(--border);
  position: relative;
}
.stats::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(96, 165, 250, .7), transparent); }
.stat { padding: clamp(28px, 4vw, 44px) clamp(20px, 3vw, 32px); text-align: center; }
.stat + .stat { border-inline-start: 1px solid var(--border); }
.stat-num {
  font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; font-size: clamp(40px, 5vw, 62px); line-height: 1; letter-spacing: -.04em !important;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  direction: ltr; font-variant-numeric: tabular-nums;
}
.stat-label { margin-top: 12px; color: var(--text-2); font-size: 15px; }
@media (max-width: 768px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--border); }
}

/* ---------- Work ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 28px); }
.work-card { display: flex; flex-direction: column; }
.work-media {
  display: block; border-radius: 16px; overflow: hidden;
  background: var(--panel); border: 1px solid var(--border);
  transition: transform .5s var(--ease), border-color .4s, box-shadow .5s var(--ease);
}
.work-card:hover .work-media { transform: translateY(-6px); border-color: rgba(96, 165, 250, .45); box-shadow: 0 40px 80px -32px rgba(59, 130, 246, .5); }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; background: rgba(255, 255, 255, .035); border-bottom: 1px solid var(--border); }
.browser-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .16); flex-shrink: 0; }
.browser-url {
  flex: 1; min-width: 0; margin-inline-start: 10px; padding: 3px 10px; border-radius: 6px;
  background: rgba(255, 255, 255, .04); color: var(--text-3); font-family: var(--font-mono); font-size: 11px; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.work-shot { aspect-ratio: 16 / 9; overflow: hidden; background: #0c3c48; }
.work-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 1.2s var(--ease), object-position 3.5s ease; }
.work-card:hover .work-shot img { transform: scale(1.05); }
.work-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 4px 0; }
.work-meta h3 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.work-host { display: block; margin-top: 2px; color: var(--text-3); font-size: 13px; font-family: var(--font-mono); }
.work-go {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid var(--border-strong); color: var(--text-2);
  transition: background-color .3s, color .3s, transform .3s var(--ease), border-color .3s;
}
.work-go .icon { width: 18px; height: 18px; }
.work-card:hover .work-go { background: var(--blue); border-color: var(--blue); color: #fff; transform: rotate(-8deg); }
@media (max-width: 1024px) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .work-grid { grid-template-columns: 1fr; } }

/* ---------- Process ---------- */
/* Any number of steps: --steps is set from the count below; the line runs between the first and last step centres. */
.process-section:has(.step:nth-child(5)) { --steps: 5; }
.process-section:has(.step:nth-child(6)) { --steps: 6; }
.process-section:has(.step:nth-child(7)) { --steps: 7; }
.process-section:has(.step:nth-child(8)) { --steps: 8; }
.process { display: grid; grid-template-columns: repeat(var(--steps, 4), minmax(0, 1fr)); gap: 24px; position: relative; counter-reset: step; }
.process::before {
  content: ""; position: absolute; top: 36px; inset-inline: calc((100% - (var(--steps, 4) - 1) * 24px) / var(--steps, 4) / 2); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, .55) 15%, rgba(34, 211, 238, .55) 85%, transparent);
}
.step { text-align: center; padding: 0 8px; }
.step-node { position: relative; width: 72px; height: 72px; margin: 0 auto 24px; }
.step-icon {
  display: grid; place-items: center; width: 72px; height: 72px; border-radius: 22px;
  color: var(--blue-xl); background: #0a3541;
  border: 1px solid rgba(96, 165, 250, .35);
  box-shadow: 0 0 0 8px var(--ring-ink, var(--bg)), 0 0 40px -6px rgba(59, 130, 246, .55), inset 0 1px 0 rgba(255, 255, 255, .1);
  transition: transform .5s var(--ease);
}
.step:hover .step-icon { transform: translateY(-4px) rotate(-4deg); }
.step-icon .icon { width: 28px; height: 28px; }
.step-num {
  position: absolute; top: -8px; inset-inline-end: -10px;
  padding: 2px 8px; border-radius: 999px; font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
  color: #fff; background: linear-gradient(135deg, #3b82f6, #22d3ee); box-shadow: 0 0 0 4px var(--bg);
}
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { color: var(--text-2); font-size: 15px; line-height: 1.65; max-width: 260px; margin-inline: auto; }
@media (max-width: 1024px) {
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .process::before { display: none; }
}
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.why-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.why-cards .why-card:nth-child(even) { transform: translateY(28px); }
.js .why-cards .why-card.reveal:nth-child(even):not(.in) { transform: translateY(54px); }
.why-cards .why-card.spot:nth-child(even):hover { transform: translateY(24px); }
.since-card {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  margin-top: 34px; padding: 20px 24px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--border);
}
.since-year, .since-now { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; font-size: 26px; letter-spacing: -.03em !important; }
.since-year { color: var(--text-3); }
.since-now { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* The 2009 -> now line draws with scroll (--p from the engine); rest state is fully drawn. */
.since-line { height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .08); position: relative; }
.since-fill { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, rgba(255, 255, 255, .1), var(--blue-l), var(--cyan)); transform: scaleX(var(--p, 1)); transform-origin: left; }
[dir="rtl"] .since-fill { background: linear-gradient(-90deg, rgba(255, 255, 255, .1), var(--blue-l), var(--cyan)); transform-origin: right; }
.since-head { position: absolute; inset: 0; transform: translateX(calc((var(--p, 1) - 1) * 100%)); }
[dir="rtl"] .since-head { transform: translateX(calc((1 - var(--p, 1)) * 100%)); }
.since-head::after { content: ""; position: absolute; inset-inline-end: -3px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 16px var(--cyan); }
.since-label { grid-column: 1 / -1; color: var(--text-2); font-size: 14.5px; }
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .why-cards { grid-template-columns: 1fr; }
  .why-cards .why-card:nth-child(even), .why-cards .why-card.spot:nth-child(even):hover { transform: none; }
  .js .why-cards .why-card.reveal:nth-child(even):not(.in) { transform: translateY(26px); }
}

/* ---------- CTA ---------- */
.cta-card {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(48px, 8vw, 104px) clamp(24px, 6vw, 80px);
  border-radius: 32px; text-align: center;
  background: radial-gradient(ellipse 70% 80% at 50% -10%, rgba(59, 130, 246, .42), transparent 60%), linear-gradient(180deg, #0b3b48, #062a33);
  border: 1px solid rgba(96, 165, 250, .25);
  box-shadow: 0 50px 120px -40px rgba(59, 130, 246, .45);
}
.cta-grid {
  position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000, transparent 75%);
}
.cta-orb { position: absolute; z-index: -1; border-radius: 50%; width: 440px; height: 440px; bottom: -220px; }
.cta-orb-1 { inset-inline-start: -120px; background: radial-gradient(closest-side, rgba(34, 211, 238, .35), transparent); }
.cta-orb-2 { inset-inline-end: -120px; background: radial-gradient(closest-side, rgba(139, 92, 246, .35), transparent); }
.cta-content { max-width: 760px; margin-inline: auto; }
.cta-mark { display: inline-block; margin-bottom: 26px; }
.cta-mark .logo-mark { width: 60px; height: 60px; filter: drop-shadow(0 12px 32px rgba(59, 130, 246, .7)); animation: floaty 6s ease-in-out infinite; }
.cta-card h2 { font-size: clamp(32px, 5vw, 58px); font-weight: 800; line-height: 1.1; letter-spacing: -.028em; }
[dir="rtl"] .cta-card h2 { font-weight: 700; line-height: 1.35; }
/* Gradient text only paints inside its box: pad the bottom so descenders (g, y, p) are not clipped. */
.cta-card h2 .grad { display: block; padding-bottom: .14em; margin-bottom: -.14em; }
.cta-card p { margin: 20px auto 0; max-width: 580px; color: var(--text-2); font-size: clamp(16px, 1.5vw, 18.5px); line-height: 1.7; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; margin-top: clamp(24px, 4vw, 48px); padding-top: clamp(56px, 7vw, 80px); border-top: 1px solid var(--border); background: linear-gradient(180deg, transparent, rgba(59, 130, 246, .04)); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 40px; }
.footer-brand p { margin: 20px 0 24px; max-width: 360px; color: var(--text-2); font-size: 15px; line-height: 1.7; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border-strong); color: var(--text-2); transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.socials a:hover { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateY(-3px); }
.socials .icon { width: 18px; height: 18px; }
.footer-col h4 { font-size: 15px; font-weight: 600; margin-bottom: 20px; }
.footer-col li + li { margin-top: 12px; }
.footer-col a, .footer-col span { color: var(--text-2); font-size: 15px; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-contact a, .footer-contact span { display: inline-flex; align-items: flex-start; gap: 10px; }
.footer-contact .icon { width: 17px; height: 17px; margin-top: 3px; color: var(--blue-l); }
.footer-contact [dir="ltr"] { flex-direction: row; }
[dir="rtl"] .footer-contact a[dir="ltr"] { flex-direction: row-reverse; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 56px; padding: 24px 0; border-top: 1px solid var(--border); color: var(--text-3); font-size: 14px; }
.footer-bottom a { color: var(--text-2); }
.footer-bottom a:hover { color: var(--text); }
.footer-bottom-links { display: inline-flex; gap: 10px; align-items: center; }
.footer-giant {
  font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800;
  font-size: min(9.2vw, 150px); line-height: .78; letter-spacing: -.055em !important;
  text-align: center; white-space: nowrap; user-select: none;
  margin-top: 10px; padding-bottom: .04em;
  background: linear-gradient(180deg, rgba(147, 197, 253, .16), rgba(147, 197, 253, 0) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; align-items: flex-start; } }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; bottom: calc(22px + env(safe-area-inset-bottom)); inset-inline-end: 22px; z-index: 50;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff;
  box-shadow: 0 14px 34px -8px rgba(37, 211, 102, .7);
  transition: transform .3s var(--ease);
}
.wa-float .icon { width: 30px; height: 30px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ping 2.6s var(--ease) infinite; }
.wa-float:hover { transform: scale(1.07); }
.wa-tip {
  position: absolute; inset-inline-end: calc(100% + 12px); top: 50%;
  padding: 8px 12px; border-radius: 10px; white-space: nowrap;
  background: #0c3c48; border: 1px solid var(--border-strong); color: var(--text); font-size: 13.5px; font-weight: 500;
  opacity: 0; visibility: hidden; transform: translate(6px, -50%); transition: opacity .25s, transform .25s, visibility .25s;
}
[dir="rtl"] .wa-tip { transform: translate(-6px, -50%); }
.wa-float:hover .wa-tip { opacity: 1; visibility: visible; transform: translate(0, -50%); }
.nav-open .wa-float { opacity: 0; pointer-events: none; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding-top: calc(var(--header-h) + clamp(56px, 9vw, 110px)); padding-bottom: clamp(32px, 5vw, 56px); text-align: center; }
.crumbs { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-3); font-size: 13.5px; }
.crumbs a { color: var(--text-2); transition: color .2s; }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--blue-xl); }
.page-title { max-width: 920px; margin-inline: auto; font-size: clamp(38px, 5.6vw, 68px); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; }
[dir="rtl"] .page-title { font-weight: 700; line-height: 1.3; }
.page-sub { max-width: 660px; margin: 22px auto 0; color: var(--text-2); font-size: clamp(16.5px, 1.6vw, 19px); line-height: 1.7; }
.page-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }

.page-hero-split { text-align: start; }
.split-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.page-hero-split .page-title, .page-hero-split .page-sub { margin-inline: 0; }
.page-hero-split .page-actions { justify-content: flex-start; }
.store-badges { display: flex; gap: 10px; margin-top: 26px; }
.store-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: 14px; font-weight: 500; }
.store-badge svg { width: 18px; height: 18px; color: var(--text); }
@media (max-width: 1024px) {
  .split-grid { grid-template-columns: 1fr; }
  .page-hero-split { text-align: center; }
  .page-hero-split .page-title, .page-hero-split .page-sub { margin-inline: auto; }
  .page-hero-split .page-actions, .store-badges { justify-content: center; }
}

/* ---------- Feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .feature-grid, .feature-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .feature-grid, .feature-grid.cols-4 { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.story-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.story-copy .lead { margin: 20px 0 18px; font-family: var(--font-display); font-size: clamp(21px, 2.2vw, 27px); font-weight: 600; line-height: 1.5; letter-spacing: -.01em; color: var(--text); }
.story-copy p:not(.lead) { color: var(--text-2); font-size: 17px; line-height: 1.8; }
.story-visual { position: relative; display: grid; place-items: center; overflow-x: clip; } /* the spinning ring's box would widen the page on phones */
/* Orbit: icons circle the logo, light dots ride the rings, a radar sweep and sonar pulses. */
.orbit { position: relative; width: min(100%, 420px); aspect-ratio: 1; isolation: isolate; }
.orbit-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(96, 165, 250, .22); }
.orbit-ring.r1 { inset: 0; border-style: dashed; animation: spin 60s linear infinite; }
.orbit-ring.r2 { inset: 16%; animation: spin 40s linear infinite reverse; }
.orbit-ring.r3 { inset: 32%; background: radial-gradient(circle, rgba(59, 130, 246, .3), transparent 70%); border-color: rgba(96, 165, 250, .35); }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit-dot { position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 12px 3px rgba(34, 211, 238, .75); }
.orbit-ring.r2 .orbit-dot { top: auto; bottom: -4px; width: 7px; height: 7px; background: #a78bfa; box-shadow: 0 0 12px 3px rgba(167, 139, 250, .7); }
.orbit-sweep {
  position: absolute; inset: 16%; border-radius: 50%; z-index: -1;
  background: conic-gradient(from 0deg, transparent 0 72%, rgba(96, 165, 250, .14) 96%, rgba(147, 197, 253, .32) 100%);
  animation: spin 7s linear infinite;
}
.orbit-pulse { position: absolute; inset: 38%; border-radius: 50%; border: 1px solid rgba(96, 165, 250, .55); opacity: 0; animation: orbit-pulse 4s ease-out infinite; }
.orbit-pulse + .orbit-pulse { animation-delay: -2s; }
@keyframes orbit-pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(2.6); opacity: 0; } }
.orbit-core { position: absolute; inset: 38%; display: grid; place-items: center; }
.orbit-core::before {
  content: ""; position: absolute; inset: -35%; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, rgba(59, 130, 246, .5), transparent);
  animation: breathe 4s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { transform: scale(.85); opacity: .55; } 50% { transform: scale(1.12); opacity: 1; } }
.orbit-core .logo-mark { width: 100%; height: 100%; filter: drop-shadow(0 0 40px rgba(59, 130, 246, .8)); }
.orbit-track { position: absolute; inset: 0; animation: spin 48s linear infinite; }
.orbit-chip {
  position: absolute; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px;
  color: var(--blue-xl); background: rgba(7, 46, 56, .9); border: 1px solid var(--border-strong);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .9);
  /* counter-rotate with the track so icons stay upright; float via the separate translate property */
  animation: spin 48s linear infinite reverse, floaty-t 6s ease-in-out infinite;
}
@keyframes floaty-t { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.orbit-chip .icon { width: 24px; height: 24px; }
.orbit-chip.c1 { top: 4%; left: 50%; margin-left: -27px; }
.orbit-chip.c2 { top: 50%; right: 2%; margin-top: -27px; animation-delay: 0s, -1.5s; }
.orbit-chip.c3 { bottom: 4%; left: 50%; margin-left: -27px; animation-delay: 0s, -3s; }
.orbit-chip.c4 { top: 50%; left: 2%; margin-top: -27px; animation-delay: 0s, -4.5s; }
.story-badge {
  animation: floaty 7s ease-in-out infinite; animation-delay: -2s;
  position: absolute; bottom: 6%; inset-inline-end: 0;
  display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 16px;
  background: rgba(7, 46, 56, .9); border: 1px solid var(--border-strong);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.story-badge strong { font-family: "Plus Jakarta Sans", sans-serif; font-size: 30px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.story-badge span { color: var(--text-2); font-size: 14px; max-width: 90px; line-height: 1.3; }
.vm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.vm-card { padding: clamp(28px, 4vw, 44px); }
.vm-text { font-family: var(--font-display); font-size: clamp(19px, 2vw, 23px) !important; line-height: 1.55 !important; color: var(--text) !important; font-weight: 500; }
@media (max-width: 900px) {
  .story-grid, .vm-grid { grid-template-columns: 1fr; }
  .story-visual { order: -1; max-width: 360px; margin-inline: auto; width: 100%; }
}

/* ---------- Apps: phone mockup ---------- */
.phone-stage { position: relative; display: grid; place-items: center; padding: 24px 0; }
.phone-glow { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(59, 130, 246, .55), rgba(139, 92, 246, .2) 55%, transparent 70%); filter: blur(30px); }
.phone {
  position: relative; width: 290px; height: 590px; padding: 11px; border-radius: 50px;
  background: linear-gradient(145deg, #1f5563, #0b3a46 40%, #0f3f4b);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), inset 0 0 0 1px rgba(255, 255, 255, .06), 0 60px 120px -30px rgba(0, 0, 0, .95), 0 30px 90px -30px rgba(59, 130, 246, .6);
  transform: rotate(-4deg);
  animation: phone-float 8s ease-in-out infinite;
}
[dir="rtl"] .phone { transform: rotate(4deg); }
@keyframes phone-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
.phone-notch { position: absolute; top: 20px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 20px; background: #000; z-index: 2; }
.phone-screen { position: relative; height: 100%; border-radius: 40px; overflow: hidden; padding: 16px 18px; display: flex; flex-direction: column; gap: 16px; background: radial-gradient(120% 60% at 50% 0%, #15284f, #0a3541 60%); }
.ps-status { display: flex; justify-content: space-between; align-items: center; padding: 2px 8px 0; font-family: "Inter", sans-serif; font-size: 12px; font-weight: 600; }
.ps-icons { display: flex; gap: 4px; }
.ps-icons i { width: 14px; height: 9px; border-radius: 2px; background: rgba(255, 255, 255, .8); }
.ps-icons i:first-child { width: 10px; }
.ps-head { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }
.ps-head small { display: block; color: var(--text-3); font-size: 12px; }
.ps-head strong { font-family: var(--font-display); font-size: 21px; }
.ps-avatar .logo-mark { width: 38px; height: 38px; }
.ps-card { padding: 16px; border-radius: 20px; background: linear-gradient(135deg, rgba(59, 130, 246, .35), rgba(139, 92, 246, .2)); border: 1px solid rgba(147, 197, 253, .25); }
.ps-card-top { display: flex; justify-content: space-between; align-items: center; }
.ps-card-top span { width: 80px; height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .5); }
.ps-card-top em { font-style: normal; font-size: 12px; font-weight: 600; color: #6ee7b7; padding: 2px 8px; border-radius: 999px; background: rgba(16, 185, 129, .18); }
.ps-chart { width: 100%; height: 70px; margin-top: 12px; }
.ps-line { stroke-dasharray: 300; stroke-dashoffset: 300; animation: draw 2.4s 1s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.ps-list { display: grid; gap: 10px; }
.ps-list li { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid var(--border); font-size: 13.5px; font-weight: 500; }
.ps-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; }
.ps-ic .icon { width: 16px; height: 16px; }
.ps-ic.g { background: rgba(52, 211, 153, .16); color: var(--green); }
.ps-ic.b { background: rgba(59, 130, 246, .2); color: var(--blue-xl); }
.ps-ic.v { background: rgba(139, 92, 246, .2); color: #c4b5fd; }
.ps-tabs { margin-top: auto; display: flex; justify-content: space-around; padding: 14px 10px 6px; border-top: 1px solid var(--border); }
.ps-tabs span { width: 22px; height: 22px; border-radius: 7px; background: rgba(255, 255, 255, .12); }
.ps-tabs span.on { background: var(--blue); box-shadow: 0 0 16px rgba(59, 130, 246, .9); }
.fc-notify { top: 44%; inset-inline-start: -28px; animation-delay: -2s; }
.fc-rating { bottom: 3%; inset-inline-end: -36px; animation-delay: -4.5s; }
@media (max-width: 560px) {
  .phone { width: 250px; height: 510px; }
  .fc-notify { inset-inline-start: -4px; top: 6%; }
  .fc-rating { inset-inline-end: -4px; bottom: 6%; }
}

/* ---------- Systems ---------- */
.sys-list { display: grid; gap: clamp(48px, 7vw, 96px); }
.sys-row { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.sys-row.is-flipped .sys-shot { order: 2; }
.sys-shot {
  position: relative; padding: clamp(16px, 3vw, 32px); border-radius: 26px;
  background: radial-gradient(circle at 50% 35%, #ffffff, #dbe5f3 75%);
  box-shadow: 0 50px 100px -40px rgba(59, 130, 246, .55), 0 0 0 1px rgba(255, 255, 255, .2);
}
.sys-shot img { width: 100%; border-radius: 10px; }
.sys-copy { position: relative; }
.sys-index { position: absolute; top: -18px; inset-inline-end: 0; font-family: "Plus Jakarta Sans", sans-serif; font-size: 96px; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .1); pointer-events: none; }
.sys-copy h3 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; letter-spacing: -.025em; margin-bottom: 14px; line-height: 1.2; }
.sys-copy p { color: var(--text-2); font-size: 17px; line-height: 1.75; }
.custom-card { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; padding: clamp(28px, 4vw, 48px); background: radial-gradient(ellipse at 0% 0%, rgba(59, 130, 246, .2), transparent 60%), linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)); }
.custom-card h3 { font-size: clamp(22px, 2.6vw, 30px); }
.custom-card p { max-width: 560px; }
@media (max-width: 900px) {
  .sys-row { grid-template-columns: 1fr; }
  .sys-row.is-flipped .sys-shot { order: 0; }
  .custom-card { flex-direction: column; align-items: flex-start; }
}

/* ---------- Forms ---------- */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px; align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.c-card { flex-direction: row; align-items: center; gap: 18px; padding: 20px 22px; }
.c-card .card-icon { margin: 0; width: 48px; height: 48px; }
.c-card small { display: block; color: var(--text-3); font-size: 13px; margin-bottom: 3px; }
.c-card a, .c-card span { display: block; color: var(--text); font-family: var(--font-display); font-weight: 600; font-size: 16px; transition: color .2s; word-break: break-word; }
.c-card a:hover { color: var(--blue-xl); }
[dir="rtl"] .c-card a[dir="ltr"] { text-align: right; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form-card {
  position: relative; padding: clamp(24px, 4vw, 40px); border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018));
  border: 1px solid var(--border-strong);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .9);
}
.form-card::before { content: ""; position: absolute; inset: 0 10% auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(96, 165, 250, .8), transparent); }
.form-title { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 26px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-row-3 { grid-template-columns: .6fr 1fr 1fr; }
@media (max-width: 640px) { .form-row, .form-row-3 { grid-template-columns: 1fr; gap: 0; } }
.field { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.field label, .field legend, .field .label { display: block; margin-bottom: 8px; padding: 0; color: var(--text-2); font-size: 14px; font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border-radius: 12px;
  background: rgba(3, 28, 35, .55); border: 1px solid var(--border-strong);
  color: var(--text); font: inherit; font-size: 15.5px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.field select {
  padding-inline-end: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9b3c7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 18px; background-position: right 14px center;
}
[dir="rtl"] .field select { background-position: left 14px center; }
.field select option { background: #0a3a46; color: var(--text); }
.field input:hover, .field textarea:hover, .field select:hover { border-color: rgba(255, 255, 255, .24); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); background: rgba(3, 28, 35, .75); box-shadow: 0 0 0 4px rgba(59, 130, 246, .2); }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid .file-drop { border-color: #f87171; box-shadow: 0 0 0 4px rgba(248, 113, 113, .14); }
.field.is-invalid .chips .chip span { border-color: rgba(248, 113, 113, .6); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip, .field .chip { position: relative; cursor: pointer; margin: 0; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip span { display: inline-block; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--border-strong); background: rgba(255, 255, 255, .02); color: var(--text-2); font-size: 14px; font-weight: 500; transition: all .2s; user-select: none; }
.chip:hover span { border-color: rgba(255, 255, 255, .3); color: var(--text); }
.chip input:checked + span { color: #fff; border-color: var(--blue); background: linear-gradient(135deg, rgba(59, 130, 246, .35), rgba(34, 211, 238, .15)); box-shadow: 0 6px 20px -8px rgba(59, 130, 246, .8); }
.chip input:focus-visible + span { outline: 2px solid var(--blue-l); outline-offset: 2px; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.form-status { flex: 1; min-width: 200px; font-size: 14.5px; color: var(--text-2); }
.form-status.is-error { color: #fca5a5; }
.file-drop {
  display: flex !important; align-items: center; gap: 16px; padding: 18px 20px !important; margin: 0 !important;
  border-radius: 14px; border: 1.5px dashed rgba(255, 255, 255, .2); background: rgba(3, 28, 35, .4);
  cursor: pointer; transition: border-color .2s, background-color .2s;
}
.file-drop:hover, .file-drop.is-drag { border-color: var(--blue); background: rgba(59, 130, 246, .08); }
.file-drop.has-file { border-style: solid; border-color: rgba(52, 211, 153, .5); }
.file-drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file-drop:focus-within { box-shadow: 0 0 0 4px rgba(59, 130, 246, .2); border-color: var(--blue); }
.file-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0; background: rgba(59, 130, 246, .16); color: var(--blue-xl); }
.file-drop.has-file .file-ic { background: rgba(52, 211, 153, .15); color: var(--green); }
.file-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.file-txt strong { color: var(--text); font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-txt small { color: var(--text-3); font-size: 13px; }

.form-success { display: none; text-align: center; padding: clamp(24px, 5vw, 56px) 8px; }
.form-success:focus { outline: none; }
.form-card.is-sent .contact-form { display: none; }
.form-card.is-sent .form-success, .form-success.is-static { display: block; }
.success-ic {
  display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; margin-bottom: 22px;
  color: #fff; background: linear-gradient(135deg, #10b981, #22d3ee);
  box-shadow: 0 0 0 10px rgba(16, 185, 129, .12), 0 20px 50px -10px rgba(16, 185, 129, .7);
  animation: pop .6s var(--ease) both;
}
.success-ic .icon { width: 36px; height: 36px; stroke-width: 2.5; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.form-success h3 { font-size: 26px; margin-bottom: 10px; }
.form-success p { color: var(--text-2); max-width: 420px; margin: 0 auto 24px; }

/* ---------- 404 ---------- */
.nf { min-height: 92vh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 40px) 0 60px; }
.nf-code {
  position: relative; display: inline-block;
  font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; font-size: clamp(120px, 24vw, 280px); line-height: .9; letter-spacing: -.06em !important;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 20px 60px rgba(59, 130, 246, .45));
}
.nf-code::before, .nf-code::after {
  content: attr(data-text); position: absolute; inset: 0;
  background: inherit; -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nf-code::before { animation: glitch 3s infinite steps(1); clip-path: inset(0 0 60% 0); transform: translateX(-4px); opacity: .7; }
.nf-code::after { animation: glitch 2.4s infinite steps(1) reverse; clip-path: inset(55% 0 0 0); transform: translateX(4px); opacity: .7; }
@keyframes glitch { 0%, 88%, 100% { transform: none; } 90% { transform: translate(-6px, 2px); } 93% { transform: translate(5px, -2px); } 96% { transform: translate(-3px, 0); } }
.nf .page-title { margin-top: 18px; font-size: clamp(30px, 4.5vw, 52px); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .line { opacity: 1; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee-item[aria-hidden] { display: none; }
}

/* Grid children must be allowed to shrink below their content (long code lines, URLs). */
.hero-grid > *, .split-grid > *, .story-grid > *, .why-grid > *, .contact-grid > *, .sys-row > *, .footer-grid > * { min-width: 0; }

/* ---------- Branches (contact page + footer) ---------- */
.branch-code {
  display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 7px; border-radius: 6px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .06em;
  color: var(--blue-xl); background: rgba(59, 130, 246, .14); border: 1px solid rgba(96, 165, 250, .3);
}
.branch-card { padding: 22px 24px; }
.branch-head { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.branch-head .branch-code {
  min-width: 48px; height: 48px; border-radius: 14px; font-size: 14px;
  background: linear-gradient(135deg, rgba(59, 130, 246, .28), rgba(34, 211, 238, .08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 10px 30px -12px rgba(59, 130, 246, .6);
}
.branch-head small { display: block; color: var(--text-3); font-size: 13px; }
.branch-head strong { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--text); }
.branch-lines { display: grid; gap: 12px; }
.branch-lines li { display: flex; align-items: center; gap: 12px; color: var(--text-2); font-size: 15px; line-height: 1.45; }
.branch-lines a { color: var(--text); font-family: var(--font-display); font-weight: 600; font-size: 16px; white-space: nowrap; transition: color .2s; }
.branch-lines a:hover { color: var(--blue-xl); }
.bl-actions { display: inline-flex; gap: 6px; margin-inline-start: auto; padding-inline-start: 8px; }
.bl-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px;
  font-family: var(--font-body) !important; font-size: 12.5px !important; font-weight: 500 !important; color: var(--text-2) !important;
  border: 1px solid var(--border-strong); background: rgba(255, 255, 255, .03);
  transition: background-color .2s, border-color .2s, color .2s;
}
.bl-pill .icon { width: 14px; height: 14px; }
.bl-pill:hover { color: #fff !important; background: var(--blue); border-color: var(--blue); }
.bl-pill-wa .icon { color: #4ade80; }
.bl-pill-wa:hover { background: #22c55e; border-color: #22c55e; }
.bl-pill-wa:hover .icon { color: #fff; }
@media (max-width: 420px) { .bl-pill span { display: none; } .bl-pill { padding: 7px; } }
.bl-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; background: rgba(59, 130, 246, .12); color: var(--blue-xl); }
.bl-ic .icon { width: 17px; height: 17px; }
.bl-wa { background: rgba(37, 211, 102, .13); color: #4ade80; }

.footer-branch { margin-bottom: 20px; }
.fb-name { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--text); font-family: var(--font-display); font-weight: 600; font-size: 14.5px; }

.fb-line { display: flex; align-items: center; gap: 10px; }
.fb-wa { display: inline-flex !important; align-items: center !important; justify-content: center; line-height: 0; flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border-strong); color: #4ade80 !important; transition: background-color .2s, color .2s; }
.fb-wa .icon { width: 14px !important; height: 14px !important; margin: 0 !important; color: inherit !important; }
.fb-wa:hover { background: #22c55e; color: #fff !important; }

/* =====================================================================
   NIGHT LIGHT — homepage depth: page tones, light rigs, parallax planes.
   The engine lives in site.js. Without html.motion (phones, reduced motion,
   no JS) every element sits at its designed rest state: lines drawn, lights on.
   Never give .section / .hero / .stats-section / .cta-section a z-index,
   isolation, transform, opacity, filter or background: the next section's
   light bleed (z-index:-1 in body's stacking context) would paint over it.
   ===================================================================== */
:root { --dir: 1; }
[dir="rtl"] { --dir: -1; }

/* Only items of on-screen anchors hold GPU layers. */
.motion .is-live [data-px], .motion .is-live [data-px-x], .motion .is-live[data-px-anchor] [data-px] { will-change: translate; }

/* ---- Far plane: grain + fixed atmosphere ---- */
body.page-home {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") repeat,
    var(--bg);
}
.atmo { position: fixed; inset: 0; height: 100vh; height: 100lvh; z-index: -3; pointer-events: none; overflow: hidden; }
.atmo-tone { position: absolute; inset: -12vh 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.atmo-tone.is-on { opacity: 1; }
[dir="rtl"] .atmo-tone { transform: scaleX(-1); }
.t-blue { background: radial-gradient(60% 50% at 12% 0%, rgba(29, 78, 216, .16), transparent 70%), radial-gradient(45% 40% at 92% 40%, rgba(8, 145, 178, .08), transparent 70%); }
.t-violet { background: radial-gradient(55% 50% at 88% 15%, rgba(109, 40, 217, .14), transparent 70%), radial-gradient(50% 45% at 8% 85%, rgba(59, 130, 246, .08), transparent 70%); }
.t-navy { background: radial-gradient(75% 60% at 50% 45%, rgba(4, 44, 54, .6), transparent 80%), radial-gradient(40% 35% at 10% 8%, rgba(30, 107, 214, .07), transparent 70%); }
.t-cyan { background: radial-gradient(55% 45% at 10% 30%, rgba(34, 211, 238, .08), transparent 70%), radial-gradient(50% 50% at 95% 90%, rgba(59, 130, 246, .09), transparent 70%); }
.t-deep { background: radial-gradient(70% 55% at 50% 105%, rgba(59, 130, 246, .15), transparent 70%), radial-gradient(40% 40% at 0% 15%, rgba(139, 92, 246, .07), transparent 70%); }
.atmo::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(1, 20, 25, .35) 100%); }
@media (max-width: 767px) { .atmo-tone { transition-duration: 1s; } }

/* Container-edge rails with a slow pulse (wide screens only). */
.atmo-rails { display: none; }
@media (min-width: 1320px) {
  .atmo-rails { display: block; }
  .atmo-rails i { position: absolute; top: 0; bottom: 0; width: 1px; overflow: hidden; background: linear-gradient(transparent, rgba(255, 255, 255, .045) 12%, rgba(255, 255, 255, .045) 88%, transparent); }
  .atmo-rails i:first-child { left: calc(50% - min(var(--container) / 2, 50% - 28px)); }
  .atmo-rails i:last-child { right: calc(50% - min(var(--container) / 2, 50% - 28px)); }
  .atmo-rails i::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 140px; opacity: 0; background: linear-gradient(transparent, rgba(96, 165, 250, .7), transparent); animation: rail 11s linear infinite; }
  .atmo-rails i:last-child::after { animation-delay: -5.5s; }
}
@keyframes rail { 0% { transform: translateY(-140px); opacity: 0; } 6% { opacity: 1; } 55% { transform: translateY(100vh); opacity: 1; } 56%, 100% { transform: translateY(100vh); opacity: 0; } }

/* ---- Hero: light streaks falling along the grid ---- */
.grid-beams { position: absolute; inset: 0; }
.grid-beams i { position: absolute; top: 0; width: 1px; height: 120px; opacity: 0; background: linear-gradient(transparent, rgba(96, 165, 250, .85), transparent); animation: fall 8s ease-in infinite; }
.grid-beams i:nth-child(1) { left: calc(64px * 4); animation-duration: 6.5s; animation-delay: -1s; }
.grid-beams i:nth-child(2) { left: calc(64px * 11); animation-duration: 8.5s; animation-delay: -4s; }
.grid-beams i:nth-child(3) { left: calc(64px * 17); animation-duration: 10s; animation-delay: -7s; }
@keyframes fall { 0% { transform: translateY(-120px); opacity: 0; } 12% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(760px); opacity: 0; } }
.js .bg-scene[data-live]:not(.is-live) * { animation-play-state: paused; }
@media (max-width: 767px) { .grid-beams { display: none; } }

/* ---- Marquee: lit horizon between hero and content ---- */
.page-home .marquee-section { position: relative; padding: 28px 0 32px; background: radial-gradient(60% 100% at 50% 50%, rgba(59, 130, 246, .06), transparent 70%); }
.page-home .marquee-section::before, .page-home .marquee-section::after { content: ""; position: absolute; inset-inline: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(96, 165, 250, .28) 50%, transparent); }
.page-home .marquee-section::before { top: 0; }
.page-home .marquee-section::after { bottom: 0; }
[dir="rtl"] .marquee-track { animation-direction: reverse; }
.js .marquee-section[data-live]:not(.is-live) .marquee-track { animation-play-state: paused; }

/* ---- Mid plane: per-section light rigs and chapter numerals ---- */
.page-home .stats-section { position: relative; }
.sec-atmo { position: absolute; inset: -200px 0; z-index: -1; overflow: hidden; pointer-events: none; }
.sec-light {
  position: absolute; width: min(var(--w), 130vw); aspect-ratio: var(--ar, 1.25); border-radius: 50%;
  background: radial-gradient(closest-side, rgb(var(--c) / var(--o)), rgb(var(--c) / calc(var(--o) * .4)) 45%, transparent);
}
.sec-light.is-center { inset-inline-start: 50%; margin-inline-start: calc(min(var(--w), 130vw) / -2); }
@media (max-width: 767px) { .sec-light { opacity: .8; } }
.sec-num {
  position: absolute; top: 240px; inset-inline-end: max(16px, calc((100vw - var(--container)) / 2 - 40px));
  font-family: "Plus Jakarta Sans", sans-serif !important; font-weight: 800; font-size: clamp(140px, 20vw, 300px); line-height: .8;
  letter-spacing: -.06em !important; white-space: nowrap; user-select: none;
  color: transparent; -webkit-text-stroke: 1px rgba(147, 197, 253, .08);
}
.sec-num--start { inset-inline-start: max(16px, calc((100vw - var(--container)) / 2 - 40px)); inset-inline-end: auto; }
.sec-num--year { top: 50%; inset-inline-start: -1vw; inset-inline-end: auto; font-size: clamp(140px, 24vw, 340px); -webkit-text-stroke-color: rgba(147, 197, 253, .07); }
@media (max-width: 767px) { .sec-num { font-size: 32vw; top: 140px; -webkit-text-stroke-color: rgba(147, 197, 253, .05); } }
@media (max-width: 400px) { .sec-num { display: none; } }

/* Section eyebrows: the leading line draws itself when the head reveals. */
.js .reveal .eyebrow::before { transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease) .25s; }
.js[dir="rtl"] .reveal .eyebrow::before { transform-origin: right; }
.js .reveal.in .eyebrow::before { transform: none; }

/* Self-drawing light seams between sections. */
.seam { position: relative; height: 1px; width: min(100% - 32px, var(--container)); margin-inline: auto; }
.seam::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(96, 165, 250, .35) 50%, transparent); transform: scaleX(var(--p, 1)); }
.seam::after { content: ""; position: absolute; left: 50%; top: -60px; width: min(720px, 80%); height: 120px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(59, 130, 246, .10), transparent); opacity: var(--p, 1); pointer-events: none; }

/* ---- Services: the hero floor continues behind the bento ---- */
.sec-grid {
  position: absolute; inset: 18% 0 8%;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 55% 45% at 50% 55%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 55% 45% at 50% 55%, #000, transparent 75%);
}
@media (max-width: 767px) { .sec-grid { background-size: 40px 40px; } }
.page-home .mb-body { overflow: hidden; }

/* ---- Platforms: each card stands on a pool of its own colour ---- */
.page-home .products { position: relative; }
.prod-glows { position: absolute; inset: -80px 0 -120px; z-index: -1; pointer-events: none; }
.prod-glows i {
  position: absolute; top: 50%; width: 520px; aspect-ratio: 1; margin-top: -260px; margin-inline-start: -260px; border-radius: 50%;
  opacity: .16; transition: opacity .5s; background: radial-gradient(closest-side, var(--c), transparent);
}
.prod-glows i:nth-child(1) { inset-inline-start: 16.7%; --c: #3b82f6; }
.prod-glows i:nth-child(2) { inset-inline-start: 50%; --c: #8b5cf6; }
.prod-glows i:nth-child(3) { inset-inline-start: 83.3%; --c: #22d3ee; }
.products:has(> article:nth-of-type(1):hover) .prod-glows i:nth-child(1),
.products:has(> article:nth-of-type(2):hover) .prod-glows i:nth-child(2),
.products:has(> article:nth-of-type(3):hover) .prod-glows i:nth-child(3) { opacity: .3; }
.motion .page-home .product-art-grid { inset: -32px 0; }
@media (max-width: 1024px) {
  .prod-glows i:nth-child(1), .prod-glows i:nth-child(3) { display: none; }
  .prod-glows i:nth-child(2) { width: 100%; margin-top: -50%; margin-inline-start: -50%; }
}

/* ---- Stats: intermission spotlight ---- */
.page-home .stats-section::before {
  content: ""; position: absolute; z-index: -1; top: -240px; left: 50%; width: min(1100px, 100%); height: 520px; translate: -50% 0;
  clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(147, 197, 253, .10), rgba(96, 165, 250, .04) 60%, transparent);
  opacity: var(--p, 1); pointer-events: none;
}
.page-home .stats-section::after {
  content: ""; position: absolute; z-index: -1; left: 50%; bottom: -40px; width: min(900px, 100%); height: 200px; translate: -50% 0;
  background: radial-gradient(closest-side, rgba(34, 211, 238, .10), transparent); pointer-events: none;
}
.page-home .stats { isolation: isolate; }
.stat { position: relative; }
.page-home .stat::before {
  content: ""; position: absolute; inset: 15% 18%; z-index: -1;
  background: radial-gradient(closest-side, rgba(59, 130, 246, .22), transparent); opacity: 0; transition: opacity 1.6s var(--ease);
}
.page-home .stat.is-done::before { opacity: 1; }
.page-home .stats.is-counted::after {
  content: ""; position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: 30%; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .07), transparent);
  animation: sheen 1.6s var(--ease) 1 both;
}
@keyframes sheen { from { translate: calc(-100% * var(--dir)) 0; } to { translate: calc(400% * var(--dir)) 0; } }
@media (max-width: 767px) { .page-home .stats-section::before { width: 100%; top: -160px; } }

/* ---- Work: screening room; screenshots drift inside their frames ---- */
.page-home .work-shot { contain: paint; }
.motion .page-home .work-shot img { scale: 1.12; }
@media (min-width: 1025px) { .motion .page-home .work-grid { padding-bottom: 36px; } }

/* ---- Process: a comet draws the timeline and lights each step ---- */
.page-home .process-section { --ring-ink: #05262e; }
.page-home .process::before { opacity: .35; }
.process-wrap { position: relative; overflow-x: clip; } /* the comet box travels past the line end */
.process-line { position: absolute; top: 36px; inset-inline: calc((100% - (var(--steps, 4) - 1) * 24px) / var(--steps, 4) / 2); height: 1px; z-index: 0; pointer-events: none; }
.process-line::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #60a5fa, #22d3ee); box-shadow: 0 0 12px rgba(34, 211, 238, .55);
  transform: scaleX(var(--p, 1)); transform-origin: left;
}
[dir="rtl"] .process-line::before { background: linear-gradient(-90deg, #60a5fa, #22d3ee); transform-origin: right; }
.process-comet { position: absolute; inset: 0; transform: translateX(calc(var(--p, 1) * 100%)); }
[dir="rtl"] .process-comet { transform: translateX(calc(var(--p, 1) * -100%)); }
.process-comet i { position: absolute; left: -3px; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 14px 3px rgba(34, 211, 238, .7); }
[dir="rtl"] .process-comet i { left: auto; right: -3px; }
.step-icon { position: relative; }
.step-icon::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  border: 1px solid rgba(34, 211, 238, .8); box-shadow: 0 0 30px -4px rgba(34, 211, 238, .7);
  opacity: 0; transition: opacity .6s;
}
.page-home .step.is-lit .step-icon::after { opacity: 1; }
html:not(.motion) .page-home .step.in .step-icon::after, .no-js .page-home .step-icon::after { opacity: .7; }
@media (max-width: 1024px) { .process-line { display: none; } }

/* ---- CTA: sunrise bloom + a comet orbiting the card's rim ---- */
.page-home .cta-section { overflow-x: clip; }
.cta-bloom {
  position: absolute; z-index: -1; left: 50%; bottom: -10%; width: min(1500px, 140vw); height: 700px; margin-left: calc(min(1500px, 140vw) / -2);
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(59, 130, 246, .30), rgba(34, 211, 238, .09) 55%, transparent);
}
.page-home .cta-card { border: 0; background: rgba(96, 165, 250, .16); }
.cta-panel {
  position: absolute; inset: 1px; border-radius: 31px; z-index: -2;
  background: radial-gradient(ellipse 70% 80% at 50% -10%, rgba(59, 130, 246, .42), transparent 60%), linear-gradient(180deg, #0b3b48, #062a33);
}
.cta-ring { position: absolute; inset: 0; z-index: -3; border-radius: inherit; overflow: hidden; }
.cta-ring i {
  position: absolute; left: 50%; top: 50%; width: 160%; aspect-ratio: 1; margin: -80% 0 0 -80%;
  background: conic-gradient(from 0deg, transparent 0 64%, rgba(96, 165, 250, .85) 75%, rgba(34, 211, 238, .95) 79%, transparent 87%);
  animation: ring-spin 14s linear infinite paused;
}
.cta-card.is-live .cta-ring i { animation-play-state: running; }
@keyframes ring-spin { to { transform: rotate(1turn); } }
@media (max-width: 767px) {
  .cta-ring i { width: 200%; margin: -100% 0 0 -100%; animation-duration: 20s; }
  .cta-bloom { opacity: .8; }
}

/* ---- Footer: end credits (site-wide) ---- */
.site-footer::before {
  content: ""; position: absolute; top: -1px; inset-inline: 15%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, .6), transparent); box-shadow: 0 0 24px rgba(96, 165, 250, .5);
}
.site-footer::after {
  content: ""; position: absolute; z-index: -1; top: -110px; left: 50%; width: 700px; max-width: 100%; height: 220px; translate: -50% 0;
  background: radial-gradient(closest-side, rgba(59, 130, 246, .08), transparent); pointer-events: none;
}
.motion .footer-giant { translate: 0 calc((1 - var(--p, 1)) * 45%); opacity: calc(.35 + var(--p, 1) * .65); }

/* ---- Reduced motion: everything rests in its designed static state ---- */
@media (prefers-reduced-motion: reduce) {
  [data-px], [data-px-x], [data-hero-out] { translate: none !important; }
  .grid-beams, .atmo-rails i::after, .page-home .stats.is-counted::after { display: none; }
  .js .reveal .eyebrow::before { transform: none !important; }
  .cta-ring i { animation: none !important; transform: rotate(-35deg); }
  [dir="rtl"] .cta-ring i { transform: rotate(35deg); }
  .page-home .step-icon::after { opacity: 1; }
  .orbit-sweep, .orbit-pulse { display: none; }
}

/* =====================================================================
   FOOTER FILL — availability badge + branches map with live local time,
   placed in the space beside the tall contact column.
   ===================================================================== */
@media (min-width: 1025px) {
  .footer-brand { grid-column: 1; grid-row: 1 / span 2; }
  .footer-contact { grid-column: 4; grid-row: 1 / span 2; }
  .footer-map { grid-column: 2 / span 2; grid-row: 2; align-self: end; }
}
@media (max-width: 1024px) { .footer-map { grid-column: 1 / -1; } }

.footer-status {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 8px 14px 8px 12px; border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, .3); background: rgba(52, 211, 153, .06);
  color: var(--text-2); font-size: 14px; font-weight: 500;
  transition: border-color .2s, background-color .2s, color .2s;
}
[dir="rtl"] .footer-status { padding: 8px 12px 8px 14px; }
.footer-status:hover { color: var(--text); border-color: rgba(52, 211, 153, .55); background: rgba(52, 211, 153, .1); }
.footer-status .icon { width: 15px; height: 15px; color: var(--green); }

.footer-map {
  position: relative; overflow: hidden; padding: 14px 18px 12px; border-radius: 18px;
  border: 1px solid var(--border); background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01));
}
.fm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fm-title { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--text); }
.fm-sub { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 12.5px; }
.fm-sub .icon { width: 14px; height: 14px; }
.fm-stage { position: relative; aspect-ratio: 400 / 110; margin-top: 6px; }
.fm-stage::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(147, 197, 253, .22) 1px, transparent 1.4px); background-size: 12px 12px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 40%, transparent 100%);
}
.fm-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fm-arc-base { fill: none; stroke: rgba(147, 197, 253, .16); stroke-width: 1.5; }
.fm-arc { fill: none; stroke: url(#fm-grad); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 5 7; animation: fm-dash 1.6s linear infinite; }
@keyframes fm-dash { to { stroke-dashoffset: -24; } }
.fm-comet { fill: #e0f2fe; filter: drop-shadow(0 0 5px #22d3ee); }

.fm-pin { position: absolute; width: 0; height: 0; }
.fm-pin i { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(59, 130, 246, .2), 0 0 16px rgba(59, 130, 246, .9); }
.fm-pin i::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(96, 165, 250, .7); animation: ping 2.4s var(--ease) infinite; }
.fm-pin-sa i { background: var(--cyan); box-shadow: 0 0 0 4px rgba(34, 211, 238, .2), 0 0 16px rgba(34, 211, 238, .9); }
.fm-pin-sa i::after { border-color: rgba(34, 211, 238, .7); animation-delay: -1.2s; }
/* Labels sit beside the pin (left of it for pins on the left half) to keep the card short. */
.fm-label {
  position: absolute; left: 14px; top: 0; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 1px; white-space: nowrap;
  padding: 5px 11px; border-radius: 10px; line-height: 1.25;
  background: rgba(5, 36, 44, .88); border: 1px solid var(--border-strong); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .9);
}
.fm-pin.is-left .fm-label { left: auto; right: 14px; }
.fm-label strong { font-family: var(--font-display); font-size: 12.5px; font-weight: 600; color: var(--text); }
.fm-label time { font-family: var(--font-mono); font-size: 12px; color: var(--blue-xl); letter-spacing: .04em; }

@media (prefers-reduced-motion: reduce) {
  .fm-comet { display: none; }
}

/* =====================================================================
   HOMEPAGE SPACE FILLERS — consistent small elements in empty areas
   ===================================================================== */
/* Hero: scroll cue in the band above the tech strip. */
.hero { padding-bottom: clamp(28px, 4vw, 48px); }
.scroll-cue {
  display: flex; flex-direction: column; align-items: center; gap: 10px; width: max-content; margin: clamp(24px, 3vw, 40px) auto 0;
  color: var(--text-3); font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; transition: color .2s;
}
[dir="rtl"] .scroll-cue { font-family: var(--font-ar); font-size: 13.5px; }
.scroll-cue:hover { color: var(--text-2); }
.sc-mouse { position: relative; width: 24px; height: 38px; border-radius: 14px; border: 1.5px solid rgba(147, 197, 253, .4); }
.sc-mouse i { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--blue-l); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
@media (max-width: 1024px) { .scroll-cue { display: none; } }

/* Platforms: every card ends with the same action bar, so heights line up. */
.product-body .checklist { margin-bottom: 22px; }
.product-link { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--border); }

/* Why: a quiet link under the since-card. */
.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-weight: 600; font-size: 15px; color: var(--blue-xl); }
.text-link .icon { width: 17px; height: 17px; transition: transform .3s var(--ease); }
.text-link:hover .icon { transform: translateX(4px); }
[dir="rtl"] .text-link:hover .icon.flip { transform: scaleX(-1) translateX(4px); }

/* Footer: back-to-top anchored to the bottom of the brand column. */
@media (min-width: 1025px) { .footer-brand { display: flex; flex-direction: column; align-items: flex-start; } }
.to-top { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 22px; color: var(--text-3); font-size: 14px; transition: color .2s; }
.to-top-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-strong); transition: background-color .25s, border-color .25s, color .25s, transform .25s var(--ease); }
.to-top-ic .icon { width: 16px; height: 16px; transform: rotate(180deg); }
.to-top:hover { color: var(--text); }
.to-top:hover .to-top-ic { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateY(-3px); }

/* Services bento: "wide" cards span two columns; dense packing fills gaps when cards are added or removed in the CMS. */
.bento { grid-auto-flow: dense; }
.bento-wide { grid-column: span 2; }
@media (max-width: 640px) { .bento-wide { grid-column: auto; } }

/* =====================================================================
   MARKETING & AI PAGES — search-result mock, chat mock, data sheet
   ===================================================================== */
/* Shared stage (same rhythm as the apps phone-stage). */
.serp-stage, .chat-stage { position: relative; display: grid; place-items: center; padding: 28px 0; }
.serp-glow, .chat-glow { position: absolute; width: 75%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(59, 130, 246, .5), rgba(139, 92, 246, .18) 55%, transparent 70%); }
.chat-glow { background: radial-gradient(circle, rgba(34, 211, 238, .42), rgba(59, 130, 246, .18) 55%, transparent 70%); }

/* Search results */
.serp {
  position: relative; width: min(100%, 440px); padding: 18px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(12, 62, 74, .95), rgba(5, 38, 47, .97));
  border: 1px solid var(--border-strong);
  box-shadow: 0 50px 110px -35px rgba(0, 0, 0, .95), 0 30px 90px -40px rgba(59, 130, 246, .55);
  transform: rotate(-2deg);
}
[dir="rtl"] .serp { transform: rotate(2deg); }
.serp-bar { display: flex; align-items: center; gap: 12px; direction: ltr; }
.serp-logo { display: flex; gap: 3px; }
.serp-logo i { width: 9px; height: 9px; border-radius: 50%; background: #4285f4; }
.serp-logo i:nth-child(2) { background: #ea4335; } .serp-logo i:nth-child(3) { background: #fbbc05; } .serp-logo i:nth-child(4) { background: #34a853; }
.serp-search { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 9px 14px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--border); color: var(--text); font-size: 13px; }
.serp-search .icon { width: 15px; height: 15px; color: var(--text-3); }
.serp-search span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.serp-tabs { display: flex; gap: 14px; margin: 14px 4px 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.serp-tabs b, .serp-tabs span { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .12); width: 34px; }
.serp-tabs b { background: var(--blue-l); }
.serp-result { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 14px; }
.serp-result + .serp-result { margin-top: 4px; }
.serp-result small { color: var(--text-3); font-size: 11.5px; min-height: 8px; }
.serp-result:not(.is-top) small { width: 90px; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .08); }
.serp-result b { width: 70%; height: 10px; border-radius: 5px; background: rgba(147, 197, 253, .22); }
.serp-result strong { color: #8ab4f8; font-size: 15px; font-weight: 600; font-family: var(--font-display); }
.serp-result.is-top { background: linear-gradient(135deg, rgba(59, 130, 246, .16), rgba(34, 211, 238, .06)); border: 1px solid rgba(96, 165, 250, .35); box-shadow: 0 16px 40px -18px rgba(59, 130, 246, .8); }
.serp-rank { position: absolute; top: 10px; inset-inline-end: 12px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #10b981, #22d3ee); }
.serp-stars { color: #fbbf24; font-size: 12px; letter-spacing: .08em; }
.serp-stars em { color: var(--text-3); font-style: normal; letter-spacing: 0; margin-inline-start: 4px; }
.serp-lines { display: grid; gap: 6px; margin-top: 4px; }
.serp-lines i { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .08); }
.serp-lines i:nth-child(2) { width: 75%; }
.fc-spark { width: 64px; height: 30px; }
.fc-traffic { top: 52%; inset-inline-end: -18px; animation-delay: -2s; }
.fc-ads { bottom: 7%; inset-inline-start: -16px; animation-delay: -4.5s; }

/* Chat */
.chat {
  position: relative; width: min(100%, 380px); border-radius: 26px; overflow: hidden;
  background: linear-gradient(180deg, rgba(12, 62, 74, .96), rgba(5, 38, 47, .98));
  border: 1px solid var(--border-strong);
  box-shadow: 0 50px 110px -35px rgba(0, 0, 0, .95), 0 30px 90px -40px rgba(34, 211, 238, .5);
}
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, .02); }
.chat-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #3b82f6, #22d3ee); box-shadow: 0 0 20px rgba(34, 211, 238, .5); }
.chat-avatar .icon { width: 20px; height: 20px; }
.chat-who { display: flex; flex-direction: column; line-height: 1.3; }
.chat-who strong { font-family: var(--font-display); font-size: 15px; }
.chat-who small { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-size: 12px; }
.chat-who small i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.chat-body { display: flex; flex-direction: column; gap: 10px; padding: 18px; min-height: 250px; }
.bubble { max-width: 80%; margin: 0; padding: 10px 14px; border-radius: 16px; font-size: 13.5px; line-height: 1.5; }
.bubble.me { align-self: flex-end; color: #fff; background: linear-gradient(135deg, #3b82f6, #2563eb); border-end-end-radius: 5px; }
.bubble.bot { align-self: flex-start; color: var(--text); background: rgba(255, 255, 255, .07); border: 1px solid var(--border); border-end-start-radius: 5px; }
.bubble.typing { display: inline-flex; gap: 5px; padding: 13px 14px; }
.bubble.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-2); animation: typing 1.2s ease-in-out infinite; }
.bubble.typing i:nth-child(2) { animation-delay: .15s; } .bubble.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
.chat-input { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 14px 14px; padding: 10px 10px 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--border); color: var(--text-3); font-size: 13px; }
[dir="rtl"] .chat-input { padding: 10px 16px 10px 10px; }
.chat-input b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #fff; background: var(--blue); }
.chat-input .icon { width: 15px; height: 15px; }
.fc-auto { top: 14%; inset-inline-end: -16px; animation-delay: -1.5s; }
.fc-data { top: 63%; inset-inline-start: -40px; animation-delay: -4s; }

/* Numbered feature cards (SEO steps). */
.feature-grid.numbered .feature { position: relative; }
.feature-num { position: absolute; top: 22px; inset-inline-end: 22px; font-family: var(--font-mono); font-size: 13px; color: var(--text-3); }

/* Data entry: copy + spreadsheet mock. */
.data-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(36px, 6vw, 72px); align-items: center; }
.data-grid > * { min-width: 0; }
.data-copy .checklist { margin: 26px 0 30px; }
.sheet {
  border-radius: 20px; overflow: hidden; direction: ltr;
  background: linear-gradient(180deg, rgba(12, 62, 74, .95), rgba(5, 38, 47, .97));
  border: 1px solid var(--border-strong);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .9), 0 30px 80px -40px rgba(16, 185, 129, .35);
}
[dir="rtl"] .sheet { direction: rtl; }
.sheet-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border); background: rgba(16, 185, 129, .08); }
.sheet-file { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12.5px; color: #6ee7b7; }
.sheet-file .icon { width: 16px; height: 16px; }
.sheet-dots { display: flex; gap: 5px; }
.sheet-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.sheet-grid { padding: 6px 0; }
.sheet-row { display: grid; grid-template-columns: 1.4fr 1fr .8fr 1fr; gap: 12px; align-items: center; padding: 11px 16px; border-bottom: 1px solid rgba(255, 255, 255, .05); font-size: 13px; }
.sheet-th { color: var(--text-3); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.sheet-row span i { display: block; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .12); }
.sheet-ok { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-style: normal; font-size: 11.5px; font-weight: 600; color: #6ee7b7; background: rgba(16, 185, 129, .14); }
.sheet-ok .icon { width: 12px; height: 12px; stroke-width: 2.5; }
.js .sheet .sheet-row:not(.sheet-th) { opacity: 0; animation: sheet-in .5s var(--ease) forwards; animation-delay: calc(var(--r) * 120ms + 300ms); }
@keyframes sheet-in { to { opacity: 1; } }
.sheet-foot { display: flex; align-items: center; gap: 12px; padding: 14px 16px; font-size: 12.5px; color: var(--text-2); }
.sheet-meter { flex: 1; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.sheet-meter i { display: block; width: 98%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #10b981, #22d3ee); }
.sheet-foot strong { color: #6ee7b7; font-family: var(--font-mono); }

@media (max-width: 1024px) {
  .data-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .fc-traffic, .fc-auto { inset-inline-start: auto; inset-inline-end: 0; top: 0; }
  .fc-ads, .fc-data { inset-inline-end: auto; inset-inline-start: 0; top: auto; bottom: 0; }
  .sheet-row { grid-template-columns: 1.2fr 1fr .9fr; }
  .sheet-row > :nth-child(2) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js .sheet .sheet-row { opacity: 1; animation: none; }
}

/* =====================================================================
   SECTION DIVIDERS — every gap on the home page gets the same lit seam
   with a glowing node, and the same rhythm above and below it.
   ===================================================================== */
.page-home .seam + .section,
.page-home .seam + .stats-section { padding-top: clamp(44px, 5.5vw, 76px); }
.page-home .section:has(+ .seam) { padding-bottom: clamp(44px, 5.5vw, 76px); }

.seam-node {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: radial-gradient(circle, #0a3743 55%, rgba(7, 48, 58, 0) 72%);
  opacity: var(--p, 1);
}
.seam-node::before {
  content: ""; position: absolute; inset: 7px; border-radius: 50%;
  border: 1px solid rgba(96, 165, 250, .35); box-shadow: 0 0 18px rgba(59, 130, 246, .35);
}
.seam-node::after {
  content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 1px solid rgba(34, 211, 238, .6);
  animation: ping 3.2s var(--ease) infinite;
}
.seam-node i {
  width: 8px; height: 8px; rotate: 45deg; border-radius: 2px;
  background: linear-gradient(135deg, #93c5fd, #22d3ee);
  box-shadow: 0 0 10px rgba(34, 211, 238, .9), 0 0 22px rgba(59, 130, 246, .6);
}
/* Short bright segments on both sides of the node. */
.seam .seam-node + * { display: none; }
.seam::before { background: linear-gradient(90deg, transparent, rgba(96, 165, 250, .18) 20%, rgba(96, 165, 250, .5) 46%, transparent 50%, rgba(96, 165, 250, .5) 54%, rgba(96, 165, 250, .18) 80%, transparent); }
@media (prefers-reduced-motion: reduce) { .seam-node::after { display: none; } }

/* =====================================================================
   FULL SCREEN — the hero fills the first screen, and type scales up on
   large displays so wide monitors are used instead of empty side margins.
   ===================================================================== */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
}
.hero > .hero-grid { width: min(100% - 32px, var(--container)); }
@media (min-width: 768px) { .hero > .hero-grid { width: min(100% - 56px, var(--container)); } }
/* The scroll cue sits on the bottom edge of the first screen without adding height. */
.hero { position: relative; }
@media (min-width: 1025px) {
  .hero { padding-top: calc(var(--header-h) + clamp(24px, 4.5vh, 64px)); padding-bottom: calc(clamp(24px, 4vh, 48px) + 64px); }
  .hero .scroll-cue { position: absolute; left: 50%; bottom: clamp(14px, 2.4vh, 28px); margin: 0; transform: translateX(-50%); }
}

@media (min-width: 1500px) {
  .hero-title { font-size: clamp(66px, 4.1vw, 82px); }
  .hero-sub { max-width: 640px; font-size: clamp(19px, 1.15vw, 21px); }
  .section-title { font-size: clamp(54px, 3.4vw, 64px); }
  .page-title { font-size: clamp(68px, 4.3vw, 80px); }
  .section-sub, .page-sub { font-size: clamp(18.5px, 1.1vw, 20px); }
  .section-head { max-width: 860px; }
  .cta-card h2 { font-size: clamp(58px, 3.6vw, 68px); }
  .code-window .cw-code { font-size: 15px; }
}
/* Very tall short-content screens: keep the hero from floating too far apart. */
@media (min-height: 1100px) { .hero { min-height: 1000px; } }

/* Platform colour pools are wider than the cards: keep them from widening the page on ~1280px screens. */
.page-home #platforms { overflow-x: clip; }

/* Short laptop screens: the hero content is taller than the screen, so the scroll cue would sit on the text. */
@media (min-width: 1025px) and (max-height: 840px) {
  .hero .scroll-cue { display: none; }
  .hero { padding-bottom: clamp(24px, 4vh, 48px); }
}

/* =====================================================================
   BACKGROUND VARIETY — a blue band behind the numbers and a night map
   of the Middle East (NASA Black Marble, public domain) for our reach.
   ===================================================================== */

/* ---- Blue band (stats) ---- */
.stats-section.is-band {
  position: relative; overflow: hidden;
  padding-block: clamp(56px, 7vw, 96px);
  background:
    radial-gradient(60% 120% at 15% 0%, rgba(96, 165, 250, .22), transparent 60%),
    radial-gradient(50% 120% at 90% 100%, rgba(34, 211, 238, .14), transparent 60%),
    linear-gradient(120deg, #0a1f4d 0%, #123a80 50%, #0b2a63 100%);
  box-shadow: inset 0 1px 0 rgba(147, 197, 253, .22), inset 0 -1px 0 rgba(147, 197, 253, .12);
}
.stats-section.is-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 1; translate: none; clip-path: none; width: auto; height: auto; top: 0; left: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .10) 1px, transparent 1.3px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(100deg, #000 0%, rgba(0, 0, 0, .35) 45%, #000 100%);
  mask-image: linear-gradient(100deg, #000 0%, rgba(0, 0, 0, .35) 45%, #000 100%);
}
.stats-section.is-band::after {
  content: ""; position: absolute; top: -40%; bottom: -40%; left: -20%; width: 35%; z-index: 0; translate: none; height: auto; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .10), transparent);
  transform: skewX(-18deg);
  animation: band-sweep 9s ease-in-out infinite;
}
@keyframes band-sweep { 0%, 15% { left: -40%; } 60%, 100% { left: 120%; } }
.stats-section.is-band > .container { position: relative; z-index: 1; }
.stats-section.is-band .stats {
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
  border-color: rgba(255, 255, 255, .16);
  box-shadow: 0 30px 70px -30px rgba(1, 22, 28, .8), inset 0 1px 0 rgba(255, 255, 255, .25);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.stats-section.is-band .stats::before { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .8), transparent); }
.stats-section.is-band .stat + .stat { border-inline-start-color: rgba(255, 255, 255, .16); }
.stats-section.is-band .stat:nth-child(n + 3) { border-top-color: rgba(255, 255, 255, .16); }
.stats-section.is-band .stat-num { background: linear-gradient(180deg, #ffffff, #bfe3ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats-section.is-band .stat-label { color: rgba(234, 242, 255, .85); }
.page-home .stats-section.is-band .stat::before { background: radial-gradient(closest-side, rgba(255, 255, 255, .18), transparent); }
@media (prefers-reduced-motion: reduce) { .stats-section.is-band::after { display: none; } }

/* ---- Middle East night map (reach) ---- */
.reach { position: relative; overflow-x: clip; margin-block: clamp(24px, 4vw, 56px); }
.reach-stage { position: relative; width: 100%; aspect-ratio: 1913 / 750; overflow: hidden; }
.reach-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* fades into the page at the top and bottom, and a soft vignette */
.reach-stage::before, .reach-stage::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.reach-stage::before { background: linear-gradient(180deg, var(--bg) 0%, rgba(4, 34, 42, 0) 22%, rgba(4, 34, 42, 0) 74%, var(--bg) 100%); }
.reach-stage::after { background: radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(4, 34, 42, .65) 100%); }
.reach-svg { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; overflow: visible; }
.reach-arc { stroke-dasharray: 7 9; animation: fm-dash 1.4s linear infinite; }
.reach-comet { fill: #ecfeff; filter: drop-shadow(0 0 6px #22d3ee); }
.reach-pin { position: absolute; z-index: 3; width: 0; height: 0; }
.reach-pin i { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: #60a5fa; box-shadow: 0 0 0 4px rgba(59, 130, 246, .25), 0 0 22px 4px rgba(96, 165, 250, .9); }
.reach-pin i::before, .reach-pin i::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(147, 197, 253, .7); animation: ping 2.6s var(--ease) infinite; }
.reach-pin i::after { animation-delay: -1.3s; }
.reach-pin:nth-of-type(2) i { background: #22d3ee; box-shadow: 0 0 0 4px rgba(34, 211, 238, .25), 0 0 22px 4px rgba(34, 211, 238, .9); }
.reach-label {
  position: absolute; top: 0; left: 18px; transform: translateY(-50%);
  display: flex; flex-direction: column; padding: 7px 12px; border-radius: 12px; white-space: nowrap; line-height: 1.25;
  background: rgba(5, 36, 44, .78); border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .9);
}
.reach-pin.is-right .reach-label { left: auto; right: 18px; }
.reach-label strong { font-family: var(--font-display); font-size: 14.5px; color: #fff; }
.reach-label small { font-size: 12px; color: var(--text-2); }

/* Desktop: the copy sits over the dark side of the map (left in English, right in Arabic). */
@media (min-width: 1025px) {
  .reach-stage::before { background:
      linear-gradient(180deg, var(--bg) 0%, rgba(4, 34, 42, 0) 22%, rgba(4, 34, 42, 0) 74%, var(--bg) 100%),
      linear-gradient(90deg, rgba(4, 34, 42, .82) 0%, rgba(4, 34, 42, .5) 26%, rgba(4, 34, 42, 0) 46%); }
  [dir="rtl"] .reach-stage::before { background:
      linear-gradient(180deg, var(--bg) 0%, rgba(4, 34, 42, 0) 22%, rgba(4, 34, 42, 0) 74%, var(--bg) 100%),
      linear-gradient(-90deg, rgba(4, 34, 42, .85) 0%, rgba(4, 34, 42, .55) 28%, rgba(4, 34, 42, 0) 48%); }
  .reach-copy-wrap { position: absolute; inset: 0; z-index: 4; display: flex; align-items: flex-start; padding-top: clamp(56px, 9%, 120px); pointer-events: none; }
  .reach-copy { max-width: min(460px, 28vw); pointer-events: auto; }
  .reach-copy .section-title { font-size: clamp(30px, 2.6vw, 48px); }
  .reach-copy .btn { margin-top: 26px; }
}
/* Tablet & phone: copy first, then a map wide enough to keep both cities visible. */
@media (max-width: 1024px) {
  .reach-copy-wrap { padding-bottom: 8px; }
  .reach-copy { text-align: center; }
  .reach-copy .section-sub { margin-inline: auto; max-width: 560px; }
  .reach-copy .btn { margin-top: 22px; }
  .reach-stage { width: max(100%, 900px); flex-shrink: 0; align-self: center; } /* centred on both sides in LTR and RTL */
}
@media (prefers-reduced-motion: reduce) { .reach-pin i::before, .reach-pin i::after, .reach-comet { display: none; } .reach-arc { animation: none; } }
@media (max-width: 1024px) { .reach { display: flex; flex-direction: column; } .reach-copy-wrap { order: -1; } }
/* Fade the whole map (image + overlays) into whatever tint the page has, instead of a solid colour. */
.reach-stage {
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 15%, #000 84%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 15%, #000 84%, transparent 100%);
}
.reach-stage::before { background: none; }
@media (min-width: 1025px) {
  .reach-stage::before { background: linear-gradient(90deg, rgba(4, 34, 42, .86) 0%, rgba(4, 34, 42, .55) 27%, rgba(4, 34, 42, 0) 47%); }
  [dir="rtl"] .reach-stage::before { background: linear-gradient(-90deg, rgba(4, 34, 42, .94) 0%, rgba(4, 34, 42, .72) 30%, rgba(4, 34, 42, 0) 52%); }
}
@media (min-width: 1500px) { .section-head.split > div { max-width: 860px; } }

/* ==========================================================================
   GROWTH PAGES — case studies, testimonials, blog, Arabic & RTL, start a project
   ========================================================================== */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.empty-note { text-align: center; color: var(--text-2); padding: 40px 0; }

/* ---------- Case study cards ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 28px); }
.case-card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  border: 1px solid var(--border);
  transition: border-color .35s, transform .45s var(--ease), box-shadow .45s var(--ease);
}
.case-card:hover { transform: translateY(-6px); border-color: rgba(96, 165, 250, .45); box-shadow: 0 40px 80px -36px rgba(59, 130, 246, .55); }
.case-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--panel); border-bottom: 1px solid var(--border); }
.case-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .8s var(--ease); }
.case-card:hover .case-media img { transform: scale(1.05); }
.case-ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--blue-xl); background: radial-gradient(80% 80% at 30% 20%, rgba(59, 130, 246, .3), transparent 70%), var(--panel); }
.case-ph .icon { width: 44px; height: 44px; opacity: .8; }
.case-body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px 24px 24px; flex: 1; }
.case-body h3 { font-size: 21px; font-weight: 700; letter-spacing: -.015em; line-height: 1.3; }
.case-body h3 a:hover { color: var(--blue-xl); }
.case-body p { color: var(--text-2); font-size: 15px; line-height: 1.65; }
.case-body .card-link { padding-top: 6px; }
@media (max-width: 1024px) { .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .case-grid { grid-template-columns: 1fr; } }

/* ---------- Case study page ---------- */
.case-hero .tag { display: table; margin: 0 auto 18px; }
.case-cover-wrap { padding-bottom: clamp(24px, 4vw, 48px); }
.case-cover { margin: 0 auto; max-width: 1180px; border-radius: 18px; overflow: hidden; background: var(--panel); border: 1px solid var(--border-strong); box-shadow: 0 60px 120px -50px rgba(59, 130, 246, .55); }
.case-cover img { width: 100%; height: auto; }
.case-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.case-result { padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.case-result strong { display: block; font-family: var(--font-display); font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; line-height: 1.1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.case-result span { display: block; margin-top: 6px; color: var(--text-2); font-size: 15px; }
.case-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); align-items: start; max-width: 1180px; }
.case-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.case-facts { margin: 0; padding: 8px 22px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.case-facts div { padding: 14px 0; border-bottom: 1px solid var(--border); }
.case-facts div:last-child { border-bottom: 0; }
.case-facts dt { color: var(--text-3); font-size: 13px; margin-bottom: 4px; }
.case-facts dd { margin: 0; font-weight: 600; }
.case-facts dd a { display: inline-flex; align-items: center; gap: 6px; color: var(--blue-xl); }
.case-facts dd .icon { width: 15px; height: 15px; }
.case-aside-cta { padding: 24px; border-radius: var(--radius); border: 1px solid rgba(96, 165, 250, .35); background: linear-gradient(160deg, rgba(59, 130, 246, .18), rgba(34, 211, 238, .04)); }
.case-aside-cta strong { display: block; font-family: var(--font-display); font-size: 19px; margin-bottom: 8px; }
.case-aside-cta p { color: var(--text-2); font-size: 14.5px; margin-bottom: 18px; }
@media (max-width: 960px) { .case-layout { grid-template-columns: 1fr; } .case-aside { position: static; } }

/* ---------- Long text (case studies & articles) ---------- */
.prose { font-size: 17.5px; line-height: 1.85; color: var(--text-2); min-width: 0; }
[dir="rtl"] .prose { font-size: 18px; line-height: 2; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.9em; font-size: clamp(23px, 2.4vw, 29px); line-height: 1.3; letter-spacing: -.015em; color: var(--text); }
.prose h3 { margin-top: 1.6em; font-size: 20px; color: var(--text); }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--blue-xl); text-decoration: underline; text-decoration-color: rgba(147, 197, 253, .4); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose ul, .prose ol { display: grid; gap: .55em; padding-inline-start: 0; }
.prose ul li { position: relative; padding-inline-start: 26px; }
.prose ul li::before { content: ""; position: absolute; inset-inline-start: 4px; top: .78em; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px rgba(59, 130, 246, .12); }
.prose ol { counter-reset: n; }
.prose ol li { position: relative; padding-inline-start: 38px; counter-increment: n; }
.prose ol li::before { content: counter(n); position: absolute; inset-inline-start: 0; top: .2em; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font-size: 13px; font-weight: 700; color: var(--blue-xl); background: rgba(59, 130, 246, .14); border: 1px solid rgba(96, 165, 250, .3); }
.prose blockquote { margin: 1.6em 0; padding: 22px 26px; border-radius: 16px; border-inline-start: 3px solid var(--blue-l); background: linear-gradient(90deg, rgba(59, 130, 246, .12), rgba(59, 130, 246, .02)); color: var(--text); font-family: var(--font-display); font-size: 1.08em; font-weight: 600; line-height: 1.6; }
[dir="rtl"] .prose blockquote { background: linear-gradient(270deg, rgba(59, 130, 246, .12), rgba(59, 130, 246, .02)); }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.testi-grid.is-single { grid-template-columns: minmax(0, 720px); justify-content: center; }
.testi-card { margin: 0; gap: 18px; }
.testi-q { color: var(--blue-l); opacity: .7; }
.testi-q .icon { width: 30px; height: 30px; }
.testi-stars { display: inline-flex; gap: 3px; }
.testi-stars i { color: rgba(255, 255, 255, .18); }
.testi-stars i.on { color: #fbbf24; }
.testi-stars .icon { width: 17px; height: 17px; fill: currentColor; }
.testi-card blockquote { margin: 0; flex: 1; }
.testi-card blockquote p { color: var(--text); font-size: 16.5px; line-height: 1.75; }
.testi-card figcaption { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--border); }
.testi-card figcaption img, .testi-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.testi-avatar { display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--grad); }
.testi-card figcaption strong { display: block; font-size: 15.5px; }
.testi-card figcaption small { display: block; color: var(--text-3); font-size: 13.5px; }
.testi-link { margin-inline-start: auto; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-strong); color: var(--text-2); }
.testi-link:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.testi-link .icon { width: 16px; height: 16px; }
@media (max-width: 1024px) { .testi-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .testi-grid { grid-template-columns: 1fr; } }

/* ---------- Blog cards & list ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 28px); }
.blog-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--border); background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)); transition: border-color .35s, transform .45s var(--ease); }
.blog-card:hover { transform: translateY(-5px); border-color: rgba(96, 165, 250, .4); }
.blog-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--panel); }
.blog-media img { width: 100%; height: 100%; object-fit: cover; }
.blog-media.is-art { position: relative; display: grid; place-items: center; background:
  radial-gradient(60% 90% at 15% 10%, rgba(59, 130, 246, .5), transparent 65%),
  radial-gradient(60% 90% at 90% 100%, rgba(139, 92, 246, .38), transparent 65%), #0a3541; }
.blog-media.is-art[data-cat="business"] { background: radial-gradient(60% 90% at 15% 10%, rgba(34, 211, 238, .42), transparent 65%), radial-gradient(60% 90% at 90% 100%, rgba(59, 130, 246, .38), transparent 65%), #0a3541; }
.blog-media.is-art[data-cat="development"] { background: radial-gradient(60% 90% at 15% 10%, rgba(139, 92, 246, .5), transparent 65%), radial-gradient(60% 90% at 90% 100%, rgba(34, 211, 238, .3), transparent 65%), #0a3541; }
.blog-media.is-art::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: radial-gradient(circle at center, #000 30%, transparent 75%); mask-image: radial-gradient(circle at center, #000 30%, transparent 75%); }
.blog-art-ic { position: relative; z-index: 1; display: grid; place-items: center; width: 74px; height: 74px; border-radius: 22px; color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); box-shadow: 0 20px 50px -20px rgba(59, 130, 246, .9); transition: transform .5s var(--ease); }
.blog-card:hover .blog-art-ic { transform: translateY(-4px) rotate(-6deg); }
.blog-art-ic .icon { width: 34px; height: 34px; }
.blog-body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px 24px 24px; flex: 1; }
.blog-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--text-3); font-size: 13.5px; }
.blog-body h3 { font-size: 20px; line-height: 1.35; letter-spacing: -.01em; }
.blog-body h3 a:hover { color: var(--blue-xl); }
.blog-body p { color: var(--text-2); font-size: 15px; line-height: 1.65; }
.blog-min { color: var(--text-3); font-weight: 500; }
.blog-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 36px; }
.blog-cat { padding: 9px 17px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--text-2); font-size: 14px; font-weight: 500; transition: all .2s; }
.blog-cat:hover { color: var(--text); border-color: rgba(255, 255, 255, .3); }
.blog-cat.is-active { color: #fff; border-color: var(--blue); background: linear-gradient(135deg, rgba(59, 130, 246, .35), rgba(34, 211, 238, .15)); }
@media (max-width: 1024px) { .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }

/* ---------- Article page ---------- */
.post-title { font-size: clamp(32px, 4.4vw, 52px); }
.post-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; color: var(--text-3); font-size: 14.5px; }
.post-meta > * { display: inline-flex; align-items: center; gap: 7px; }
.post-meta strong { color: var(--text-2); }
.post-meta .icon { width: 16px; height: 16px; }
.post-cover { margin: 0 0 12px; border-radius: 18px; overflow: hidden; border: 1px solid var(--border); }
.post-layout { display: grid; grid-template-columns: 240px minmax(0, 760px); justify-content: center; gap: clamp(28px, 4vw, 60px); align-items: start; }
.post-layout > .post-body:only-child { grid-column: 1 / -1; max-width: 760px; margin-inline: auto; }
.post-toc { position: sticky; top: calc(var(--header-h) + 24px); padding: 20px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); }
.post-toc strong { display: block; margin-bottom: 12px; font-size: 13px; color: var(--text-3); text-transform: uppercase; letter-spacing: .1em; font-family: var(--font-mono); font-weight: 500; }
[dir="rtl"] .post-toc strong { font-family: var(--font-ar); font-size: 14px; }
.post-toc ol { display: grid; gap: 9px; counter-reset: t; }
.post-toc li { counter-increment: t; display: flex; gap: 10px; color: var(--text-2); font-size: 14px; line-height: 1.45; }
.post-toc li::before { content: counter(t); flex-shrink: 0; color: var(--blue-l); font-family: var(--font-mono); font-size: 12.5px; padding-top: 1px; }
.post-share { display: flex; justify-content: center; gap: 10px; margin: 44px 0 28px; }
.post-share a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-strong); color: var(--text-2); transition: all .25s; }
.post-share a:hover { color: #fff; background: var(--blue); border-color: var(--blue); transform: translateY(-2px); }
.post-share .icon { width: 18px; height: 18px; }
@media (max-width: 960px) { .post-layout { grid-template-columns: 1fr; } .post-toc { position: static; } }

/* ---------- Small CTA band ---------- */
.note-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; padding: clamp(24px, 4vw, 36px) clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); border: 1px solid rgba(96, 165, 250, .3); background: linear-gradient(120deg, rgba(59, 130, 246, .2), rgba(139, 92, 246, .08) 60%, rgba(34, 211, 238, .06)); }
.note-cta strong { display: block; font-family: var(--font-display); font-size: clamp(21px, 2.2vw, 26px); margin-bottom: 6px; }
.note-cta p { color: var(--text-2); max-width: 560px; }

/* ---------- Arabic & RTL page ---------- */
.rtl-stats { display: flex; flex-wrap: wrap; gap: 14px 34px; margin: 38px 0 0; }
.rtl-stats div { min-width: 120px; }
.rtl-stats dt { font-family: var(--font-display); font-size: clamp(26px, 2.8vw, 34px); font-weight: 800; line-height: 1.2; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rtl-stats dd { margin: 4px 0 0; color: var(--text-2); font-size: 14px; }
.rtl-stage { position: relative; min-height: 420px; }
.rtl-glow { position: absolute; inset: 10% 5%; border-radius: 50%; background: radial-gradient(circle, rgba(59, 130, 246, .45), transparent 65%); filter: blur(40px); }
.rtl-screen { position: absolute; width: 62%; border-radius: 18px; overflow: hidden; background: #0b3a46; border: 1px solid var(--border-strong); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .95); }
.rtl-screen.is-ltr { top: 4%; left: 0; rotate: -3deg; animation: rtl-float 7s ease-in-out infinite; }
.rtl-screen.is-rtl { bottom: 2%; right: 0; rotate: 3deg; border-color: rgba(96, 165, 250, .5); animation: rtl-float 7s ease-in-out -3.5s infinite; }
@keyframes rtl-float { 50% { translate: 0 -10px; } }
.rtl-bar { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; background: rgba(255, 255, 255, .04); border-bottom: 1px solid var(--border); }
.rtl-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.rtl-bar span { margin-inline-start: auto; font-size: 11px; font-weight: 700; color: var(--blue-xl); padding: 2px 8px; border-radius: 6px; background: rgba(59, 130, 246, .16); }
.rtl-body { display: grid; gap: 10px; padding: 22px; }
.rtl-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--grad); }
.rtl-body strong { font-size: 20px; color: var(--text); font-family: var(--font-display); }
.rtl-screen.is-rtl strong { font-family: var(--font-ar); }
.rtl-screen.is-ltr strong { font-family: "Plus Jakarta Sans", "Inter", sans-serif; }
.rtl-line { height: 9px; border-radius: 6px; background: rgba(255, 255, 255, .1); }
.rtl-line.w80 { width: 80%; } .rtl-line.w60 { width: 60%; }
.rtl-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.rtl-row b { flex: 1; height: 38px; border-radius: 10px; border: 1px solid var(--border-strong); background: rgba(255, 255, 255, .03); }
.rtl-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: #fff; background: var(--blue); font-weight: 700; }
.rtl-swap { position: absolute; top: 50%; left: 50%; translate: -50% -50%; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; color: #fff; background: var(--grad); box-shadow: 0 0 0 8px rgba(4, 34, 42, .8), 0 20px 50px -10px rgba(59, 130, 246, .9); z-index: 2; }
.rtl-swap .icon { width: 28px; height: 28px; }
@media (max-width: 960px) { .rtl-stage { min-height: 360px; max-width: 560px; margin-inline: auto; width: 100%; } }
@media (max-width: 560px) { .rtl-screen { width: 78%; } .rtl-stage { min-height: 380px; } }
@media (prefers-reduced-motion: reduce) { .rtl-screen { animation: none !important; } }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq-item { border-radius: 16px; border: 1px solid var(--border); background: var(--surface); transition: border-color .3s, background-color .3s; }
.faq-item[open] { border-color: rgba(96, 165, 250, .4); background: rgba(59, 130, 246, .06); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--text); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chev { width: 20px; height: 20px; flex-shrink: 0; color: var(--text-3); transition: transform .3s var(--ease); }
.faq-item[open] .faq-chev { transform: rotate(180deg); color: var(--blue-l); }
.faq-a { padding: 0 24px 22px; color: var(--text-2); line-height: 1.8; }

/* ---------- Start a project ---------- */
.start-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(24px, 4vw, 48px); align-items: start; }
.start-aside { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 24px); }
.start-aside .card { padding: 24px; }
.start-aside h2 { font-size: 18px; margin-bottom: 14px; }
.start-next ol { display: grid; gap: 14px; }
.start-next li { display: flex; gap: 14px; }
.start-next li span { display: grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 9px; font-size: 13px; font-weight: 700; color: var(--blue-xl); background: rgba(59, 130, 246, .14); border: 1px solid rgba(96, 165, 250, .3); }
.start-next li p { color: var(--text-2); font-size: 14.5px; line-height: 1.6; }
.start-talk p { color: var(--text-2); font-size: 14.5px; margin-bottom: 16px; }
.start-talk-actions { display: grid; gap: 10px; }
.start-proof ul { display: grid; gap: 4px; }
.start-proof a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; color: var(--text-2); font-size: 14.5px; border-bottom: 1px solid var(--border); }
.start-proof li:last-child a { border-bottom: 0; }
.start-proof a:hover { color: var(--blue-xl); }
.start-proof .icon { width: 16px; height: 16px; flex-shrink: 0; }
.form-note { display: flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--text-3); font-size: 13.5px; }
.form-note .icon { width: 15px; height: 15px; flex-shrink: 0; }
@media (max-width: 1024px) { .start-grid { grid-template-columns: 1fr; } .start-aside { position: static; } }

/* ---------- SEO page & service page extras ---------- */
.page-slogan { margin-top: 14px; font-family: var(--font-display); font-size: clamp(18px, 2vw, 23px); font-weight: 600; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.audit-card { padding: clamp(24px, 3vw, 34px); border-color: rgba(96, 165, 250, .35); background: linear-gradient(160deg, rgba(59, 130, 246, .16), rgba(255, 255, 255, .02)); }
.audit-card h2 { font-size: 21px; margin-bottom: 18px; }
.audit-card ul { display: grid; gap: 12px; margin-bottom: 26px; }
.audit-card li { display: flex; align-items: flex-start; gap: 10px; color: var(--text-2); }
.audit-card li .icon { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; color: var(--green); }
.local-seo { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .local-seo { grid-template-columns: 1fr; } }
.review-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); color: var(--text-2); }
.review-strip a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--text); font-weight: 600; font-size: 14.5px; }
.review-strip a .icon { width: 16px; height: 16px; color: #fbbf24; }
.review-strip a.is-write { border-color: rgba(96, 165, 250, .5); color: var(--blue-xl); }
.review-strip a:hover { background: var(--surface-2); }
.center-link { text-align: center; }
.rel-links { display: grid; gap: 16px; padding: 26px clamp(20px, 3vw, 32px); border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.rel-list { display: flex; flex-wrap: wrap; gap: 10px; }
.rel-list a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--text-2); font-size: 14.5px; font-weight: 500; transition: all .2s; }
.rel-list a:hover { color: #fff; border-color: var(--blue); background: rgba(59, 130, 246, .14); }
.rel-list .icon { width: 15px; height: 15px; }

/* ==========================================================================
   OUR WORK — hero wall, featured showcase, gallery, full-screen preview
   ========================================================================== */
.wp-hero { position: relative; isolation: isolate; overflow: hidden; min-height: min(92vh, 900px); display: flex; align-items: center; padding: calc(var(--header-h) + 64px) 0 72px; }
.wp-wall { position: absolute; inset: 0; z-index: -2; perspective: 1600px; overflow: hidden; }
.wp-wall-tilt { position: absolute; top: -30%; inset-inline-start: 28%; width: 110%; height: 170%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; transform: rotateX(22deg) rotateZ(-16deg) skewX(4deg); transform-origin: center; opacity: .55; }
[dir="rtl"] .wp-wall-tilt { transform: rotateX(22deg) rotateZ(16deg) skewX(-4deg); }
.wp-col { display: flex; flex-direction: column; gap: 22px; animation: wp-up var(--dur, 70s) linear infinite; will-change: transform; }
.wp-col.is-down { animation-name: wp-down; }
.wp-col img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }
@keyframes wp-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes wp-down { from { transform: translateY(-50%); } to { transform: translateY(0); } }
.wp-hero-shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, var(--bg) 0%, rgba(4, 34, 42, .94) 32%, rgba(4, 34, 42, .55) 62%, rgba(4, 34, 42, .2) 100%),
  linear-gradient(0deg, var(--bg) 0%, transparent 30%, transparent 75%, rgba(4, 34, 42, .8) 100%),
  radial-gradient(60% 60% at 20% 40%, rgba(37, 99, 235, .25), transparent 70%); }
[dir="rtl"] .wp-hero-shade { background:
  linear-gradient(270deg, var(--bg) 0%, rgba(4, 34, 42, .94) 32%, rgba(4, 34, 42, .55) 62%, rgba(4, 34, 42, .2) 100%),
  linear-gradient(0deg, var(--bg) 0%, transparent 30%, transparent 75%, rgba(4, 34, 42, .8) 100%),
  radial-gradient(60% 60% at 80% 40%, rgba(37, 99, 235, .25), transparent 70%); }
.wp-hero-inner { text-align: start; }
.wp-hero-inner .page-title { margin-inline: 0; max-width: 720px; font-size: clamp(42px, 6.2vw, 84px); }
.wp-hero-inner .page-sub { margin-inline: 0; max-width: 560px; }
.wp-hero-inner .page-actions { justify-content: flex-start; }
.wp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, auto)); justify-content: start; gap: 18px clamp(24px, 4vw, 52px); margin: 48px 0 0; padding-top: 28px; border-top: 1px solid var(--border); max-width: 720px; }
.wp-stats dt { font-family: var(--font-display); font-size: clamp(32px, 3.6vw, 46px); font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wp-stats dd { margin: 8px 0 0; color: var(--text-2); font-size: 14px; }
@media (max-width: 900px) {
  .wp-wall-tilt { inset-inline-start: -10%; width: 140%; opacity: .32; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wp-wall-tilt .wp-col:nth-child(4) { display: none; }
  .wp-hero-shade, [dir="rtl"] .wp-hero-shade { background: linear-gradient(0deg, var(--bg) 4%, rgba(4, 34, 42, .78) 45%, rgba(4, 34, 42, .7) 100%); }
  .wp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Featured showcase */
.wp-featured { padding-top: clamp(40px, 6vw, 80px); }
.wp-show { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 5vw, 80px); align-items: center; margin-top: clamp(48px, 7vw, 96px); }
.wp-show.is-flip { grid-template-columns: .8fr 1.2fr; }
.wp-show.is-flip .wp-show-media { order: 2; }
.wp-show-media { position: relative; display: block; perspective: 1400px; }
.wp-show-glow { position: absolute; inset: 10% 6%; border-radius: 50%; background: radial-gradient(circle, rgba(59, 130, 246, .5), rgba(139, 92, 246, .2) 45%, transparent 70%); filter: blur(50px); z-index: -1; transition: opacity .5s; opacity: .7; }
.wp-frame { display: block; border-radius: 18px; overflow: hidden; background: var(--panel); border: 1px solid var(--border-strong); box-shadow: 0 50px 100px -50px rgba(0, 0, 0, .95); transform: rotateY(-7deg) rotateX(3deg); transition: transform .8s var(--ease), border-color .4s, box-shadow .6s; }
.wp-show.is-flip .wp-frame { transform: rotateY(7deg) rotateX(3deg); }
[dir="rtl"] .wp-frame { transform: rotateY(7deg) rotateX(3deg); }
[dir="rtl"] .wp-show.is-flip .wp-frame { transform: rotateY(-7deg) rotateX(3deg); }
.wp-show-media:hover .wp-frame { transform: rotateY(0) rotateX(0) translateY(-6px); border-color: rgba(96, 165, 250, .5); box-shadow: 0 60px 120px -50px rgba(59, 130, 246, .65); }
.wp-show-media:hover .wp-show-glow { opacity: 1; }
.wp-frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.wp-show-copy { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.wp-show-num { font-family: var(--font-display); font-size: clamp(64px, 8vw, 110px); font-weight: 800; line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(147, 197, 253, .35); }
.wp-show-copy h3 { font-size: clamp(28px, 3vw, 40px); line-height: 1.15; letter-spacing: -.02em; }
.wp-show-copy h3 a:hover { color: var(--blue-xl); }
.wp-show-copy > p { color: var(--text-2); font-size: 17px; line-height: 1.7; }
.wp-points { display: grid; gap: 10px; }
.wp-points li { display: flex; gap: 10px; color: var(--text-2); font-size: 15px; line-height: 1.6; }
.wp-points .icon { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; color: var(--green); }
.wp-show-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
@media (max-width: 960px) {
  .wp-show, .wp-show.is-flip { grid-template-columns: 1fr; }
  .wp-show.is-flip .wp-show-media { order: 0; }
  .wp-frame, .wp-show.is-flip .wp-frame, [dir="rtl"] .wp-frame, [dir="rtl"] .wp-show.is-flip .wp-frame { transform: none; }
  .wp-show-num { position: absolute; top: -10px; inset-inline-end: 0; font-size: 72px; }
}

/* Gallery */
.wp-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -12px 0 36px; }
.wp-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-inline-start: 6px; padding: 0 6px; border-radius: 999px; font-size: 12px; background: rgba(255, 255, 255, .08); }
.wp-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); grid-auto-flow: dense; }
.wp-item { margin: 0; display: flex; flex-direction: column; min-width: 0; }
.wp-item.is-wide { grid-column: span 2; grid-row: span 2; }
.wp-item.is-wide .wp-open { flex: 1; min-height: 240px; }
.wp-item.is-wide .wp-open img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
.wp-item[hidden] { display: none; }
.wp-open { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; border-radius: 16px; border: 1px solid var(--border); background: var(--panel); cursor: zoom-in; transition: border-color .4s, box-shadow .5s var(--ease), transform .5s var(--ease); }
.wp-open img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; transition: transform 1.1s var(--ease), object-position 4s ease; }
.wp-open::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(4, 34, 42, .7)); opacity: 0; transition: opacity .4s; }
.wp-zoom { position: absolute; top: 50%; left: 50%; z-index: 1; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; color: #fff; background: rgba(37, 99, 235, .85); box-shadow: 0 16px 40px -10px rgba(59, 130, 246, .9); transform: translate(-50%, -50%) scale(.6); opacity: 0; transition: transform .4s var(--ease), opacity .3s; }
.wp-zoom .icon { width: 24px; height: 24px; }
.wp-open:hover, .wp-open:focus-visible { border-color: rgba(96, 165, 250, .5); box-shadow: 0 40px 80px -40px rgba(59, 130, 246, .7); transform: translateY(-4px); }
.wp-open:hover img, .wp-open:focus-visible img { transform: scale(1.04); object-position: bottom center; }
.wp-open:hover::after, .wp-open:focus-visible::after { opacity: 1; }
.wp-open:hover .wp-zoom, .wp-open:focus-visible .wp-zoom { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.wp-item figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 4px 0; }
.wp-cap { min-width: 0; }
.wp-cap strong { display: block; font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wp-cap small { display: block; margin-top: 2px; color: var(--text-3); font-size: 13px; font-family: var(--font-mono); }
.wp-cap-actions { display: flex; gap: 8px; flex-shrink: 0; }
.wp-cap-actions a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border-strong); color: var(--text-2); transition: all .25s; }
.wp-cap-actions a:hover { color: #fff; background: var(--blue); border-color: var(--blue); }
.wp-cap-actions .icon { width: 16px; height: 16px; }
@media (max-width: 1024px) { .wp-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .wp-gallery { grid-template-columns: 1fr; } .wp-item.is-wide { grid-column: auto; grid-row: auto; } .wp-item.is-wide .wp-open { min-height: 0; } .wp-item.is-wide .wp-open img { position: static; height: auto; aspect-ratio: 16 / 10; } }

/* Full-screen preview */
body.lb-open { overflow: hidden; }
.wp-lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: clamp(12px, 3vw, 40px); }
.wp-lightbox[hidden] { display: none; }
.wp-lb-backdrop { position: absolute; inset: 0; background: rgba(2, 24, 30, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity .25s; }
.wp-lb-panel { position: relative; display: flex; flex-direction: column; width: min(1180px, 100%); max-height: 100%; border-radius: 18px; overflow: hidden; background: var(--panel); border: 1px solid var(--border-strong); box-shadow: 0 60px 140px -40px rgba(0, 0, 0, .95); transform: translateY(18px) scale(.97); opacity: 0; transition: transform .35s var(--ease), opacity .25s; }
.wp-lightbox.is-open .wp-lb-backdrop { opacity: 1; }
.wp-lightbox.is-open .wp-lb-panel { transform: none; opacity: 1; }
.wp-lb-bar { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: rgba(255, 255, 255, .04); border-bottom: 1px solid var(--border); }
.wp-lb-dots { display: flex; gap: 6px; }
.wp-lb-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.wp-lb-title { flex: 1; min-width: 0; }
.wp-lb-title strong { display: block; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wp-lb-title small { display: block; color: var(--text-3); font-size: 12.5px; font-family: var(--font-mono); }
.wp-lb-actions { display: flex; align-items: center; gap: 8px; }
.wp-lb-actions [hidden] { display: none; }
.wp-lb-x { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border-strong); color: var(--text); }
.wp-lb-x:hover { background: var(--surface-2); }
.wp-lb-x .icon { width: 18px; height: 18px; }
.wp-lb-view { overflow: auto; overscroll-behavior: contain; background: #073039; }
.wp-lb-view img { width: 100%; height: auto; display: block; }
.wp-lb-nav { position: absolute; top: 55%; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: #fff; background: rgba(4, 34, 42, .7); border: 1px solid var(--border-strong); backdrop-filter: blur(6px); transition: background-color .25s; }
.wp-lb-nav:hover { background: var(--blue); }
.wp-lb-nav.is-prev { inset-inline-start: 14px; }
.wp-lb-nav.is-next { inset-inline-end: 14px; }
.wp-lb-nav .icon { width: 20px; height: 20px; }
.wp-rot { display: grid; transform: rotate(180deg); }
@media (max-width: 640px) {
  .wp-lb-actions .btn { padding: 8px 10px; font-size: 0; gap: 0; }
  .wp-lb-actions .btn .icon { width: 17px; height: 17px; }
  .wp-lb-dots { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wp-col { animation: none; }
  .wp-frame, .wp-show.is-flip .wp-frame { transform: none !important; }
}

/* ==========================================================================
   OUR WORK — scroll-driven motion
   --p (0 -> 1) is written by the site engine (data-progress) while an element crosses the
   viewport. Without it (phones, reduced motion, no JS) every var() falls back to the
   finished state, so nothing stays tilted or hidden.
   ========================================================================== */

/* Featured rows: the frame swings in, straightens and grows; the screenshot settles; the glow lights up. */
.wp-show { --q: calc(1 - var(--p, 1)); --s: 1; }
.wp-show.is-flip { --s: -1; }
[dir="rtl"] .wp-show { --s: -1; }
[dir="rtl"] .wp-show.is-flip { --s: 1; }
.wp-frame, .wp-show.is-flip .wp-frame, [dir="rtl"] .wp-frame, [dir="rtl"] .wp-show.is-flip .wp-frame {
  transform:
    translateY(calc(var(--q) * 70px))
    rotateY(calc(var(--s) * (-5deg - var(--q) * 26deg)))
    rotateX(calc(2deg + var(--q) * 14deg))
    scale(calc(1 - var(--q) * .18));
  filter: saturate(calc(.55 + var(--p, 1) * .45)) brightness(calc(.75 + var(--p, 1) * .25));
  transition: transform .45s cubic-bezier(.2, .7, .2, 1), filter .45s linear, border-color .4s, box-shadow .6s;
}
.wp-show-media:hover .wp-frame, [dir="rtl"] .wp-show-media:hover .wp-frame {
  transform: translateY(-6px) rotateY(0) rotateX(0) scale(1.01); filter: none;
}
.wp-frame img { transform: scale(calc(1 + var(--q) * .22)) translateY(calc(var(--q) * -5%)); transform-origin: top center; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.wp-show-glow { opacity: calc(.15 + var(--p, 1) * .75); transform: scale(calc(.6 + var(--p, 1) * .45)); transition: opacity .45s linear, transform .45s linear; }
.wp-show-copy { translate: calc(var(--s) * var(--q) * 40px) 0; transition: translate .45s cubic-bezier(.2, .7, .2, 1); }
.wp-points li.reveal { transform: translateX(calc(var(--s, 1) * -18px)); }
.wp-points li.reveal.in { transform: none; }

/* Gallery: tiles tip back as they enter and straighten while they rise; the picture slides inside. */
.wp-item { --q: calc(1 - var(--p, 1)); }
.wp-open, .wp-open:hover, .wp-open:focus-visible {
  transform: perspective(1100px) rotateX(calc(var(--q) * 22deg)) scale(calc(1 - var(--q) * .1));
  transform-origin: 50% 0%;
  transition: transform .4s cubic-bezier(.2, .7, .2, 1), translate .4s var(--ease), border-color .4s, box-shadow .5s var(--ease);
}
.wp-open:hover, .wp-open:focus-visible { translate: 0 -5px; }
.wp-open img { object-position: 50% calc(var(--q) * 55%); transition: transform 1.1s var(--ease), object-position .5s ease-out; }
.wp-open:hover img, .wp-open:focus-visible img { object-position: 50% 100%; transition: transform 1.1s var(--ease), object-position 4s ease; }

/* "Mutation" entrance: projects un-clip from a rounded window, de-blur and rise (also home + case cards). */
.js .wp-item.reveal, .js .work-card.reveal, .js .case-card.reveal {
  opacity: 0;
  transform: translateY(56px) scale(.93);
  filter: blur(8px);
  clip-path: inset(12% 7% 12% 7% round 22px);
  transition: opacity .8s var(--ease), transform 1s var(--ease), filter .8s var(--ease), clip-path 1.15s cubic-bezier(.65, 0, .25, 1);
  transition-delay: var(--d, 0ms);
}
.js .wp-item.reveal.in, .js .work-card.reveal.in, .js .case-card.reveal.in {
  opacity: 1; transform: none; filter: none; clip-path: inset(-60px -60px -60px -60px round 0);
}
.js .case-card.reveal.in:hover { transform: translateY(-6px); }

/* Phones: keep the entrance, drop the 3D (the engine is off there anyway). */
@media (max-width: 960px) {
  .wp-frame, .wp-show.is-flip .wp-frame, [dir="rtl"] .wp-frame, [dir="rtl"] .wp-show.is-flip .wp-frame { transform: none; filter: none; }
  .wp-show-copy { translate: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js .wp-item.reveal, .js .work-card.reveal, .js .case-card.reveal { filter: none; clip-path: none; transform: none; }
  .wp-frame, .wp-show.is-flip .wp-frame, [dir="rtl"] .wp-frame, [dir="rtl"] .wp-show.is-flip .wp-frame, .wp-frame img, .wp-open { transform: none !important; filter: none !important; }
  .wp-show-copy { translate: none; }
}
.wp-show-num { display: block; margin-bottom: 4px; transform: translateY(calc(var(--q, 0) * 46px)); opacity: calc(.25 + var(--p, 1) * .75); transition: transform .45s cubic-bezier(.2, .7, .2, 1), opacity .45s linear; }
@media (max-width: 960px) { .wp-show-num { transform: none; opacity: 1; } }

/* ==========================================================================
   FOOTER 2026-11 — full-width office band + living background behind the name
   ========================================================================== */
.site-footer { isolation: isolate; }
.site-footer > .container { position: relative; z-index: 2; }

/* Grid: four tidy columns, no rows left empty */
@media (min-width: 1025px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr; align-items: start; }
  .footer-brand, .footer-contact { grid-column: auto; grid-row: auto; }
}

/* Office band: map + side panel, full width */
.footer-band { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 20px; margin-top: 48px; }
.footer-band .footer-map { grid-column: auto; grid-row: auto; align-self: stretch; display: flex; flex-direction: column; padding: 18px 22px 16px; border-radius: 22px; }
.footer-band .fm-stage { flex: 1; min-height: 150px; aspect-ratio: auto; }
.footer-band .footer-map::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(96, 165, 250, .14) 48%, rgba(34, 211, 238, .22) 50%, transparent 52%);
  background-size: 220% 100%; background-position: 120% 0; opacity: 0;
}
.site-footer.is-live .footer-band .footer-map::after { opacity: 1; animation: ff-scan 7s linear infinite; }
@keyframes ff-scan { from { background-position: 120% 0; } to { background-position: -120% 0; } }

.fb-side {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: 22px 24px; border-radius: 22px; border: 1px solid rgba(96, 165, 250, .28);
  background: radial-gradient(120% 90% at 100% 0%, rgba(59, 130, 246, .28), transparent 60%), linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01));
}
[dir="rtl"] .fb-side { background: radial-gradient(120% 90% at 0% 0%, rgba(59, 130, 246, .28), transparent 60%), linear-gradient(200deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01)); }
.fb-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--green); font-size: 13px; font-weight: 600; }
.fb-title { font-family: var(--font-display); font-size: clamp(22px, 2vw, 28px); line-height: 1.25; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fb-side p { color: var(--text-2); font-size: 14.5px; line-height: 1.7; }
.fb-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.fb-side .to-top { margin-top: auto; padding-top: 10px; }
@media (max-width: 900px) { .footer-band { grid-template-columns: 1fr; } }

/* Living background behind the giant name */
.footer-fx { position: absolute; z-index: 0; inset-inline: 0; bottom: 0; height: min(520px, 70%); overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, #000 55%, transparent); mask-image: linear-gradient(to top, #000 55%, transparent); }
.ff-blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.ff-b1 { width: 520px; height: 320px; left: 8%; bottom: -60px; background: radial-gradient(circle, rgba(37, 99, 235, .9), transparent 70%); }
.ff-b2 { width: 460px; height: 300px; left: 42%; bottom: 10px; background: radial-gradient(circle, rgba(139, 92, 246, .75), transparent 70%); }
.ff-b3 { width: 420px; height: 280px; right: 6%; bottom: -40px; background: radial-gradient(circle, rgba(34, 211, 238, .6), transparent 70%); }
.ff-floor {
  position: absolute; left: -40%; right: -40%; bottom: 0; height: 75%;
  background-image: linear-gradient(rgba(96, 165, 250, .22) 1px, transparent 1px), linear-gradient(90deg, rgba(96, 165, 250, .16) 1px, transparent 1px);
  background-size: 64px 64px; transform: perspective(420px) rotateX(64deg); transform-origin: 50% 100%;
  -webkit-mask-image: radial-gradient(70% 100% at 50% 100%, #000 30%, transparent 75%); mask-image: radial-gradient(70% 100% at 50% 100%, #000 30%, transparent 75%);
}
.ff-sparks i { position: absolute; bottom: -10px; width: 3px; height: 3px; border-radius: 50%; background: #bfdbfe; box-shadow: 0 0 8px 2px rgba(96, 165, 250, .8); opacity: 0; }
.ff-sparks i:nth-child(1) { left: 12%; } .ff-sparks i:nth-child(2) { left: 24%; } .ff-sparks i:nth-child(3) { left: 37%; } .ff-sparks i:nth-child(4) { left: 49%; }
.ff-sparks i:nth-child(5) { left: 58%; } .ff-sparks i:nth-child(6) { left: 69%; } .ff-sparks i:nth-child(7) { left: 81%; } .ff-sparks i:nth-child(8) { left: 91%; }

.site-footer.is-live .ff-b1 { animation: ff-drift-a 16s ease-in-out infinite alternate; }
.site-footer.is-live .ff-b2 { animation: ff-drift-b 19s ease-in-out infinite alternate; }
.site-footer.is-live .ff-b3 { animation: ff-drift-a 22s ease-in-out -6s infinite alternate-reverse; }
.site-footer.is-live .ff-floor { animation: ff-floor 3.2s linear infinite; }
.site-footer.is-live .ff-sparks i { animation: ff-rise 7s linear infinite; }
.site-footer.is-live .ff-sparks i:nth-child(2) { animation-delay: -1.2s; animation-duration: 8.5s; }
.site-footer.is-live .ff-sparks i:nth-child(3) { animation-delay: -3.1s; }
.site-footer.is-live .ff-sparks i:nth-child(4) { animation-delay: -4.6s; animation-duration: 9s; }
.site-footer.is-live .ff-sparks i:nth-child(5) { animation-delay: -2.2s; animation-duration: 6.5s; }
.site-footer.is-live .ff-sparks i:nth-child(6) { animation-delay: -5.4s; }
.site-footer.is-live .ff-sparks i:nth-child(7) { animation-delay: -0.6s; animation-duration: 8s; }
.site-footer.is-live .ff-sparks i:nth-child(8) { animation-delay: -3.8s; animation-duration: 7.5s; }
@keyframes ff-drift-a { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(140px, -40px) scale(1.25); } }
@keyframes ff-drift-b { 0% { transform: translate(0, 0) scale(1.1); } 100% { transform: translate(-160px, -30px) scale(.9); } }
@keyframes ff-floor { from { background-position: 0 0, 0 0; } to { background-position: 0 64px, 0 0; } }
@keyframes ff-rise { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: .9; } 80% { opacity: .5; } 100% { transform: translateY(-380px); opacity: 0; } }

/* Giant name: light sweeping across the letters */
.footer-giant { position: relative; z-index: 1;
  background-image: linear-gradient(100deg, transparent 0 42%, rgba(224, 242, 254, .85) 50%, transparent 58% 100%), linear-gradient(180deg, rgba(147, 197, 253, .32), rgba(147, 197, 253, .06) 85%);
  background-size: 260% 100%, 100% 100%; background-position: 130% 0, 0 0; background-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 35%, rgba(0, 0, 0, .25) 100%); mask-image: linear-gradient(180deg, #000 35%, rgba(0, 0, 0, .25) 100%);
}
.site-footer.is-live .footer-giant { animation: ff-shine 6.5s cubic-bezier(.45, 0, .2, 1) infinite; }
@keyframes ff-shine { 0%, 15% { background-position: 130% 0, 0 0; } 70%, 100% { background-position: -30% 0, 0 0; } }
.footer-bottom { position: relative; z-index: 2; }

@media (max-width: 640px) {
  .ff-b1, .ff-b2, .ff-b3 { width: 260px; height: 180px; }
  .ff-floor { background-size: 44px 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .ff-blob, .ff-floor, .ff-sparks i, .footer-giant, .footer-band .footer-map::after { animation: none !important; }
}
/* footer fx tuning */
.ff-floor { background-image: linear-gradient(rgba(96, 165, 250, .42) 1px, transparent 1px), linear-gradient(90deg, rgba(96, 165, 250, .3) 1px, transparent 1px); height: 85%; }
/* colour beam sweeping over the letters: blue -> cyan -> violet -> pink */
.footer-giant { background-image: linear-gradient(100deg, transparent 0 34%, rgba(59, 130, 246, .9) 40%, rgba(34, 211, 238, 1) 46%, rgba(240, 249, 255, 1) 50%, rgba(167, 139, 250, 1) 54%, rgba(236, 72, 153, .9) 60%, transparent 66% 100%), linear-gradient(180deg, rgba(147, 197, 253, .5), rgba(147, 197, 253, .12) 85%); }
.site-footer.is-live .footer-giant { animation: ff-shine 6.5s cubic-bezier(.45, 0, .2, 1) infinite, ff-hue 13s linear infinite; }
@keyframes ff-hue { 0% { filter: drop-shadow(0 0 18px rgba(59, 130, 246, .25)); } 50% { filter: drop-shadow(0 0 26px rgba(139, 92, 246, .35)); } 100% { filter: drop-shadow(0 0 18px rgba(59, 130, 246, .25)); } }
.footer-band .footer-map::after { background: linear-gradient(90deg, transparent 0%, rgba(96, 165, 250, .07) 47%, rgba(34, 211, 238, .14) 50%, transparent 53%); background-size: 260% 100%; }
/* slower, wider colour beam */
.footer-giant { background-size: 200% 100%, 100% 100%; background-image: linear-gradient(100deg, transparent 0 22%, rgba(59, 130, 246, .9) 31%, rgba(34, 211, 238, 1) 40%, rgba(240, 249, 255, 1) 50%, rgba(167, 139, 250, 1) 60%, rgba(236, 72, 153, .95) 69%, transparent 78% 100%), linear-gradient(180deg, rgba(147, 197, 253, .5), rgba(147, 197, 253, .12) 85%); }
.site-footer.is-live .footer-giant { animation: ff-shine 9s linear infinite, ff-hue 13s linear infinite; }
@keyframes ff-shine { 0% { background-position: 160% 0, 0 0; } 85%, 100% { background-position: -60% 0, 0 0; } }
/* calmer floor: no slanted lines crossing the letters, only soft horizontal glow lines */
.ff-floor { background-image: linear-gradient(rgba(96, 165, 250, .16) 1px, transparent 1px), linear-gradient(90deg, rgba(96, 165, 250, .035) 1px, transparent 1px); height: 70%;
  -webkit-mask-image: radial-gradient(60% 90% at 50% 100%, #000 20%, transparent 70%); mask-image: radial-gradient(60% 90% at 50% 100%, #000 20%, transparent 70%); }
.footer-giant { background-image: linear-gradient(100deg, transparent 0 22%, rgba(59, 130, 246, .9) 31%, rgba(34, 211, 238, 1) 40%, rgba(240, 249, 255, 1) 50%, rgba(167, 139, 250, 1) 60%, rgba(236, 72, 153, .95) 69%, transparent 78% 100%), linear-gradient(180deg, rgba(120, 160, 230, .62), rgba(70, 100, 170, .5) 85%); }

/* ==========================================================================
   PRICING + OFFER PILL
   ========================================================================== */
.price-offer { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; margin-top: 30px; padding: 12px 20px; border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, .45); background: linear-gradient(90deg, rgba(251, 191, 36, .14), rgba(236, 72, 153, .12)); color: var(--text); font-size: 15px; }
.price-offer-ic .icon { width: 20px; height: 20px; color: #fbbf24; }
.price-offer-txt strong { color: #fde68a; }
.price-offer-end { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 13.5px; }
.price-offer-end .icon { width: 15px; height: 15px; }

.price-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px 24px; border-radius: var(--radius-lg);
  border: 1px solid var(--border); background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)); transition: transform .45s var(--ease), border-color .35s, box-shadow .45s var(--ease); }
.price-card:hover { transform: translateY(-6px); border-color: rgba(96, 165, 250, .4); }
.price-card.is-featured { border-color: rgba(96, 165, 250, .6); background: radial-gradient(120% 70% at 50% 0%, rgba(59, 130, 246, .3), transparent 65%), linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  box-shadow: 0 40px 90px -40px rgba(59, 130, 246, .8); }
.price-card .card-icon { margin-bottom: 0; }
.price-card h2 { font-size: 21px; line-height: 1.3; }
.price-desc { color: var(--text-2); font-size: 14.5px; line-height: 1.65; }
.price-amount { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.price-amount small { width: 100%; color: var(--text-3); font-size: 13px; }
.price-amount strong { font-family: var(--font-display); font-size: 44px; font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price-amount strong.is-quote { font-size: 22px; line-height: 1.3; }
.price-amount s { color: var(--text-3); font-size: 18px; }
.price-list { display: grid; gap: 10px; flex: 1; }
.price-list li { display: flex; gap: 10px; color: var(--text-2); font-size: 14.5px; line-height: 1.55; }
.price-list .icon { width: 17px; height: 17px; flex-shrink: 0; margin-top: 3px; color: var(--green); }
.price-badge { position: absolute; top: -13px; inset-inline-start: 22px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; color: #1c1206; background: linear-gradient(90deg, #fbbf24, #f472b6); box-shadow: 0 10px 24px -8px rgba(251, 191, 36, .8); }
.price-badge .icon { width: 14px; height: 14px; }
.price-note { display: flex; align-items: flex-start; gap: 8px; justify-content: center; margin-top: 26px; color: var(--text-3); font-size: 14px; text-align: center; }
.price-note .icon { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; }
@media (max-width: 1100px) { .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .price-grid { grid-template-columns: 1fr; } }

.promo-pill { position: fixed; z-index: 49; bottom: calc(26px + env(safe-area-inset-bottom)); left: 50%; display: flex; align-items: center; gap: 10px;
  width: max-content; max-width: min(760px, calc(100% - 180px)); padding: 8px 8px 8px 14px; border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, .5); background: rgba(5, 40, 49, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px -16px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .04); transform: translate(-50%, 140%); opacity: 0; transition: transform .6s var(--ease), opacity .4s; }
[dir="rtl"] .promo-pill { padding: 8px 14px 8px 8px; }
.promo-pill.is-in { transform: translate(-50%, 0); opacity: 1; }
.promo-ic .icon { width: 20px; height: 20px; color: #fbbf24; }
.promo-txt { color: var(--text); font-size: 14px; line-height: 1.4; }
.promo-txt strong { display: inline-flex; align-items: center; gap: 4px; margin-inline-start: 6px; color: #fde68a; white-space: nowrap; }
.promo-txt strong .icon { width: 15px; height: 15px; }
.promo-x { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; color: var(--text-2); background: rgba(255, 255, 255, .06); }
.promo-x:hover { color: #fff; background: rgba(255, 255, 255, .14); }
.promo-x .icon { width: 15px; height: 15px; }
@media (max-width: 700px) {
  .promo-pill { left: 12px; right: 84px; max-width: none; width: auto; border-radius: 18px; transform: translateY(140%); bottom: calc(24px + env(safe-area-inset-bottom)); }
  [dir="rtl"] .promo-pill { left: 84px; right: 12px; }
  .promo-pill.is-in { transform: none; }
  .promo-txt { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .promo-pill { transition: none; } }

/* Hero code window: live typing loop (JS adds .is-typing; without JS the lines fade in as before) */
.code-window.is-typing .line { opacity: 1; transform: none; animation: none; transition: background-color .25s; }
.code-window.is-typing .caret { animation: blink 1.05s steps(1) infinite; margin-left: 2px; box-shadow: 0 0 12px rgba(96, 165, 250, .8); }
.code-window .line.is-sel { background: linear-gradient(90deg, rgba(59, 130, 246, .38), rgba(59, 130, 246, .2)); border-radius: 4px; }
.code-window.is-wiping .line { opacity: 0; transform: translateY(-4px); filter: blur(3px); transition: opacity .25s, transform .25s, filter .25s; }
.code-window.is-done .line:last-child .c { color: #34d399; text-shadow: 0 0 14px rgba(52, 211, 153, .75); transition: color .4s, text-shadow .4s; }
.code-window.is-done { box-shadow: 0 0 0 1px rgba(52, 211, 153, .35), 0 50px 120px -40px rgba(52, 211, 153, .35); transition: box-shadow .6s; }

/* ==========================================================================
   SERVICES CARD — "a website being built" loop (12s per round, 4 rounds = 4 real screenshots)
   Runs only while visible (.is-live from data-live); otherwise it rests in the finished "live" state.
   ========================================================================== */
.mb-live { --T: 12s; position: relative; }
.mb-live .mb-bar { position: relative; }
.mb-live .mb-bar > span { position: relative; }
.mb-url { position: absolute; inset-inline-start: 60px; top: 50%; translate: 0 -50%; display: flex; align-items: center; gap: 1px; max-width: calc(100% - 150px); overflow: hidden; white-space: nowrap; font-family: var(--font-mono); font-size: 10.5px; color: var(--text-3); padding-inline: 10px; }
[dir="rtl"] .mb-url { inset-inline-start: auto; left: 60px; }
.mb-url strong { display: inline-block; overflow: hidden; color: var(--text-2); font-weight: 500; }
.mb-pub { position: absolute; inset-inline-end: 12px; top: 50%; translate: 0 -50%; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; color: #052e1c; background: #34d399; box-shadow: 0 0 14px rgba(52, 211, 153, .7); }
.mb-pub .icon { width: 11px; height: 11px; }
.mb-live .mb-body { position: relative; }
.mb-live .mb-hero-img { position: relative; overflow: hidden; }
.mb-hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; }
.mb-hero-img img:first-child { opacity: 1; }
.mb-scan { position: absolute; inset-inline: 0; top: 0; height: 30%; background: linear-gradient(180deg, transparent, rgba(34, 211, 238, .55), transparent); opacity: 0; pointer-events: none; }
.mb-cards span { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 10px; }
.mb-cards span i { width: 16px; height: 16px; border-radius: 5px; background: linear-gradient(135deg, var(--blue), var(--cyan)); }
.mb-cards span u { width: 70%; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .16); text-decoration: none; }
.mb-cursor { position: absolute; z-index: 3; top: 92%; inset-inline-start: 94%; opacity: 0; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .6)); pointer-events: none; }
.mb-cursor svg { display: block; }
[dir="rtl"] .mb-cursor svg { transform: scaleX(-1); }

/* ---- the timeline (only while visible) ---- */
.mb-live.is-live .mb-nav b { animation: mb-pop var(--T) var(--ease) infinite; }
.mb-live.is-live .mb-nav span { transform-origin: left; animation: mb-grow-nav var(--T) var(--ease) infinite; }
.mb-live.is-live .mb-nav span:nth-child(3) { animation-delay: .08s; }
.mb-live.is-live .mb-nav span:nth-child(4) { animation-delay: .16s; }
.mb-live.is-live .mb-hero-txt span { transform-origin: left; animation: mb-type var(--T) steps(14) infinite; }
[dir="rtl"] .mb-live.is-live .mb-hero-txt span { transform-origin: right; }
.mb-live.is-live .mb-hero-txt span:nth-child(2) { animation-name: mb-type2; }
.mb-live.is-live .mb-hero-txt em { animation: mb-btn var(--T) var(--ease) infinite; }
.mb-live.is-live .mb-hero-img { animation: mb-img var(--T) ease infinite; }
.mb-live.is-live .mb-hero-img img { opacity: 0; animation: mb-shot calc(var(--T) * 4) ease infinite; animation-delay: calc(var(--n) * var(--T)); }
.mb-live.is-live .mb-scan { animation: mb-scan var(--T) linear infinite; }
.mb-live.is-live .mb-cards span { animation: mb-card var(--T) var(--ease) infinite; animation-delay: calc(var(--c) * .14s); }
.mb-live.is-live .mb-cursor { animation: mb-cursor var(--T) cubic-bezier(.5, 0, .3, 1) infinite; }
.mb-live.is-live .mb-url strong { animation: mb-url var(--T) steps(14) infinite; }
.mb-live.is-live .mb-pub { animation: mb-pub var(--T) var(--ease) infinite; }
.mb-live.is-live .mb-body { animation: mb-mutate var(--T) ease-in-out infinite; }
.mb-live.is-live { animation: mb-wire var(--T) linear infinite; }

/* 0-14% wireframe · 14-42% build · 44-78% cursor + publish · 80-90% mutation · 92-100% take apart */
@keyframes mb-wire { 0%, 12% { box-shadow: 0 0 0 1px rgba(147, 197, 253, .35), 0 30px 60px -30px rgba(59, 130, 246, .5); } 20%, 100% { box-shadow: 0 30px 60px -30px rgba(59, 130, 246, .5); } }
@keyframes mb-pop { 0%, 12% { transform: scale(0); } 16% { transform: scale(1.35); } 19%, 92% { transform: scale(1); } 97%, 100% { transform: scale(0); } }
@keyframes mb-grow-nav { 0%, 14% { transform: scaleX(0); } 21%, 92% { transform: scaleX(1); } 97%, 100% { transform: scaleX(0); } }
@keyframes mb-type { 0%, 22% { transform: scaleX(0); } 28%, 93% { transform: scaleX(1); } 98%, 100% { transform: scaleX(0); } }
@keyframes mb-type2 { 0%, 27% { transform: scaleX(0); } 32%, 93% { transform: scaleX(1); } 98%, 100% { transform: scaleX(0); } }
@keyframes mb-btn {
  0%, 31% { transform: scale(0); box-shadow: none; }
  35% { transform: scale(1.2); } 38%, 58% { transform: scale(1); box-shadow: none; }
  61% { transform: scale(.86); box-shadow: 0 0 0 0 rgba(96, 165, 250, .9); }
  66% { transform: scale(1); box-shadow: 0 0 0 10px rgba(96, 165, 250, 0); }
  67%, 92% { transform: scale(1); box-shadow: none; } 97%, 100% { transform: scale(0); }
}
@keyframes mb-img { 0%, 20% { opacity: .35; filter: grayscale(1) blur(2px); } 30%, 92% { opacity: 1; filter: none; } 98%, 100% { opacity: .35; filter: grayscale(1) blur(2px); } }
/* one 48s cycle per screenshot, its own 12s slot = 0-25% */
@keyframes mb-shot { 0%, 5% { opacity: 0; transform: scale(1.12); } 8% { opacity: 1; } 23% { opacity: 1; transform: scale(1); } 24.5%, 100% { opacity: 0; transform: scale(1); } }
@keyframes mb-scan { 0%, 21% { opacity: 0; top: -30%; } 22% { opacity: 1; } 31% { opacity: 1; top: 100%; } 32%, 100% { opacity: 0; top: 100%; } }
@keyframes mb-card { 0%, 34% { opacity: 0; transform: translateY(14px) scale(.9); } 40%, 79% { opacity: 1; transform: none; } 85% { opacity: 1; transform: rotateY(180deg); } 90%, 93% { opacity: 1; transform: rotateY(360deg); } 98%, 100% { opacity: 0; transform: translateY(14px) scale(.9); } }
@keyframes mb-cursor {
  0%, 44% { opacity: 0; top: 92%; inset-inline-start: 94%; }
  47% { opacity: 1; top: 88%; inset-inline-start: 88%; }
  58% { opacity: 1; top: 47%; inset-inline-start: 12%; transform: scale(1); }
  61% { transform: scale(.82); } 64% { transform: scale(1); top: 47%; inset-inline-start: 12%; }
  74% { opacity: 1; top: 70%; inset-inline-start: 60%; } 78%, 100% { opacity: 0; top: 70%; inset-inline-start: 60%; }
}
@keyframes mb-url { 0%, 40% { max-width: 0; } 55%, 93% { max-width: 14ch; } 98%, 100% { max-width: 0; } }
@keyframes mb-pub { 0%, 62% { opacity: 0; transform: scale(.4); } 66% { opacity: 1; transform: scale(1.15); } 69%, 90% { opacity: 1; transform: scale(1); } 94%, 100% { opacity: 0; transform: scale(.4); } }
@keyframes mb-mutate { 0%, 79% { filter: none; } 84%, 88% { filter: hue-rotate(70deg) saturate(1.3); } 93%, 100% { filter: none; } }

@media (prefers-reduced-motion: reduce) {
  .mb-live *, .mb-live { animation: none !important; }
}
[dir="rtl"] .mb-live.is-live .mb-nav span { transform-origin: right; }

/* ---- build loop v2: real project name + address, work stages, loading bar, click sparks ---- */
.mb-hosts { display: grid; overflow: hidden; color: var(--text-2); }
.mb-hosts em { grid-area: 1 / 1; font-style: normal; white-space: nowrap; opacity: 0; }
.mb-hosts em:first-child { opacity: 1; }
.mb-load { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: linear-gradient(90deg, var(--blue), var(--cyan)); box-shadow: 0 0 10px rgba(34, 211, 238, .8); }
[dir="rtl"] .mb-load { left: auto; right: 0; }
.mb-titles { display: grid; }
.mb-titles strong { grid-area: 1 / 1; font-family: var(--font-display); font-size: 13.5px; font-weight: 700; line-height: 1.3; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; }
.mb-titles strong:first-child { opacity: 1; }
.mb-hero-txt em { position: relative; display: inline-flex; align-items: center; justify-content: center; width: auto; height: 22px; padding: 0 12px; justify-self: start; overflow: visible; }
.mb-hero-txt em b { font-size: 10.5px; font-weight: 700; color: #fff; white-space: nowrap; }
.mb-burst { position: absolute; inset: 0; pointer-events: none; }
.mb-burst i { position: absolute; top: 50%; left: 50%; width: 5px; height: 5px; margin: -2.5px; border-radius: 50%; background: #fde68a; box-shadow: 0 0 8px #fbbf24; opacity: 0; }
.mb-cards span { flex-direction: row; align-items: center; justify-content: flex-start; gap: 8px; transition: none; }
.mb-cards span i { display: grid; place-items: center; flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; color: #fff; }
.mb-cards span i .icon { width: 14px; height: 14px; }
.mb-cards span u { width: auto; height: auto; background: none; font-size: 11.5px; font-weight: 600; color: var(--text-2); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* timeline */
.mb-live.is-live .mb-hosts { animation: mb-url var(--T) steps(14) infinite; }
.mb-live.is-live .mb-hosts em, .mb-live.is-live .mb-titles strong { animation: mb-text calc(var(--T) * 4) linear infinite; animation-delay: calc(var(--n) * var(--T)); }
.mb-live.is-live .mb-titles { animation: mb-reveal var(--T) steps(18) infinite; }
.mb-live.is-live .mb-load { animation: mb-load var(--T) ease-out infinite; }
.mb-live.is-live .mb-burst i { animation: mb-burst var(--T) ease-out infinite; }
.mb-burst i:nth-child(1) { --x: -26px; --y: -16px; } .mb-burst i:nth-child(2) { --x: 0px; --y: -22px; } .mb-burst i:nth-child(3) { --x: 26px; --y: -16px; }
.mb-burst i:nth-child(4) { --x: -24px; --y: 14px; } .mb-burst i:nth-child(5) { --x: 2px; --y: 20px; } .mb-burst i:nth-child(6) { --x: 26px; --y: 14px; }
.mb-live.is-live .mb-cards span { animation: mb-card var(--T) var(--ease) infinite, mb-step var(--T) linear infinite; animation-delay: calc(var(--c) * .14s), 0s; }
.mb-live.is-live .mb-cards span:nth-child(2) { animation-name: mb-card, mb-step2; }
.mb-live.is-live .mb-cards span:nth-child(3) { animation-name: mb-card, mb-step3; }

@keyframes mb-text { 0%, 4% { opacity: 0; } 6%, 23.5% { opacity: 1; } 24.5%, 100% { opacity: 0; } }
@keyframes mb-reveal { 0%, 20% { clip-path: inset(0 100% 0 0); } 27%, 93% { clip-path: inset(0 0 0 0); } 98%, 100% { clip-path: inset(0 100% 0 0); } }
@keyframes mb-load { 0%, 13% { width: 0; opacity: 1; } 40% { width: 100%; opacity: 1; } 46%, 100% { width: 100%; opacity: 0; } }
@keyframes mb-burst { 0%, 60% { opacity: 0; transform: translate(0, 0) scale(.4); } 62% { opacity: 1; } 70% { opacity: 0; transform: translate(var(--x), var(--y)) scale(1); } 100% { opacity: 0; } }
/* cards appear early (wireframe) and light up at their stage: design 14-30%, develop 30-46%, launch 58-78% */
@keyframes mb-card { 0%, 6% { opacity: 0; transform: translateY(14px) scale(.9); } 12%, 79% { opacity: 1; transform: none; } 85% { opacity: 1; transform: rotateY(180deg); } 90%, 93% { opacity: 1; transform: rotateY(360deg); } 98%, 100% { opacity: 0; transform: translateY(14px) scale(.9); } }
@keyframes mb-step { 0%, 13% { border-color: var(--border); box-shadow: none; } 16%, 29% { border-color: rgba(96, 165, 250, .8); box-shadow: 0 0 18px -4px rgba(59, 130, 246, .9), inset 0 0 0 1px rgba(96, 165, 250, .3); } 33%, 100% { border-color: rgba(52, 211, 153, .45); box-shadow: none; } }
@keyframes mb-step2 { 0%, 29% { border-color: var(--border); box-shadow: none; } 32%, 45% { border-color: rgba(96, 165, 250, .8); box-shadow: 0 0 18px -4px rgba(59, 130, 246, .9), inset 0 0 0 1px rgba(96, 165, 250, .3); } 49%, 100% { border-color: rgba(52, 211, 153, .45); box-shadow: none; } }
@keyframes mb-step3 { 0%, 57% { border-color: var(--border); box-shadow: none; } 61%, 77% { border-color: rgba(52, 211, 153, .9); box-shadow: 0 0 20px -4px rgba(52, 211, 153, .9), inset 0 0 0 1px rgba(52, 211, 153, .35); } 81%, 100% { border-color: rgba(52, 211, 153, .45); box-shadow: none; } }
[dir="rtl"] .mb-live.is-live .mb-titles { animation-name: mb-reveal-rtl; }
@keyframes mb-reveal-rtl { 0%, 20% { clip-path: inset(0 0 0 100%); } 27%, 93% { clip-path: inset(0 0 0 0); } 98%, 100% { clip-path: inset(0 0 0 100%); } }
@keyframes mb-url { 0%, 40% { max-width: 0; } 55%, 93% { max-width: 30ch; } 98%, 100% { max-width: 0; } }
.mb-url { max-width: calc(100% - 120px); }

/* ==========================================================================
   BRAND PRESENCE — bigger logo at the top, name above the hero headline
   ========================================================================== */
.site-header .logo-mark { width: 48px; height: 48px; transition: width .4s var(--ease), height .4s var(--ease), transform .5s var(--ease); }
.site-header .logo-word { font-size: 26px; transition: font-size .4s var(--ease); }
.site-header .logo-a { background: linear-gradient(100deg, #93c5fd, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site-header .logo-word { text-shadow: 0 0 28px rgba(34, 211, 238, .25); }
.site-header.is-scrolled .logo-mark { width: 38px; height: 38px; }
.site-header.is-scrolled .logo-word { font-size: 20px; }
@media (max-width: 1280px) { .site-header .logo-word { font-size: 22px; } .site-header .logo-mark { width: 42px; height: 42px; } }
@media (max-width: 760px) { .site-header .logo-word, .site-header.is-scrolled .logo-word { font-size: 18px; } .site-header .logo-mark, .site-header.is-scrolled .logo-mark { width: 34px; height: 34px; } }

.hero-brand { display: inline-flex; align-items: center; gap: 14px; margin: 0 0 18px; }
.hero-brand .logo-mark { width: clamp(44px, 3.6vw, 60px); height: clamp(44px, 3.6vw, 60px); filter: drop-shadow(0 10px 30px rgba(59, 130, 246, .7)); }
.hb-word { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; font-size: clamp(34px, 3.6vw, 54px); line-height: 1; letter-spacing: -.035em !important; white-space: nowrap; }
.hb-a { background: linear-gradient(100deg, #93c5fd 0%, #22d3ee 45%, #a78bfa 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hb-b { margin-left: .22em; color: #fff; }
.hb-word { background-image: linear-gradient(100deg, transparent 0 40%, rgba(255, 255, 255, .9) 50%, transparent 60% 100%); background-size: 250% 100%; background-position: 150% 0; background-repeat: no-repeat; -webkit-background-clip: text; background-clip: text; }
.js .hero-brand.in .hb-word { animation: hb-shine 2.2s .6s cubic-bezier(.45, 0, .2, 1) 1 both; }
@keyframes hb-shine { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.hb-word .hb-b, .hb-word .hb-a { -webkit-background-clip: text; background-clip: text; }
@media (max-width: 560px) { .hero-brand { gap: 10px; margin-bottom: 14px; } }
@media (prefers-reduced-motion: reduce) { .js .hero-brand.in .hb-word { animation: none; } }
.nav-link { white-space: nowrap; }
@media (max-width: 1599px) { .site-header .logo-word { font-size: 22px; } .site-header .logo-mark { width: 42px; height: 42px; } .site-header.is-scrolled .logo-word { font-size: 19px; } }
@media (min-width: 1101px) and (max-width: 1439px) { .site-header .logo-word { font-size: 20px; } .site-header .logo-mark { width: 38px; height: 38px; } .nav-list { gap: 0; } .nav-link { padding-inline: 10px; } }
