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

:root {
  --bg: #05070d;
  --bg-2: #080c17;
  --panel: #0b1120;
  --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(5, 7, 13, .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(11, 16, 30, .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(5, 7, 13, .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(20, 27, 45, .92), rgba(9, 13, 24, .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(13, 19, 34, .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(4, 7, 14, .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: #0a1122;
  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%),
    #0a1122;
  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: #0d1426; }
.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: #0a1122;
  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, #0c1530, #070b17);
  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: #0d1424; 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(13, 19, 34, .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(13, 19, 34, .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, #2a3350, #0d1222 40%, #1b2238);
  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, #0a1122 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, 6, 14, .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: #0b1120; 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, 6, 14, .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, 6, 14, .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(15, 23, 42, .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(0, 0, 0, .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: #060a14; }
.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, #0c1530, #070b17);
}
.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(8, 12, 22, .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(20, 27, 45, .95), rgba(9, 13, 24, .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(20, 27, 45, .96), rgba(9, 13, 24, .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(20, 27, 45, .95), rgba(9, 13, 24, .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, #0b1226 55%, rgba(11, 18, 38, 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, .45), transparent 60%),
    radial-gradient(50% 120% at 90% 100%, rgba(34, 211, 238, .28), transparent 60%),
    linear-gradient(120deg, #0a2f7a 0%, #0f4fbf 50%, #0b3a95 100%);
  box-shadow: inset 0 1px 0 rgba(147, 197, 253, .35), inset 0 -1px 0 rgba(147, 197, 253, .2);
}
.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, .16) 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, .12), rgba(255, 255, 255, .04));
  border-color: rgba(255, 255, 255, .22);
  box-shadow: 0 30px 70px -30px rgba(2, 8, 30, .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(5, 7, 13, 0) 22%, rgba(5, 7, 13, 0) 74%, var(--bg) 100%); }
.reach-stage::after { background: radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(5, 7, 13, .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(8, 12, 22, .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(5, 7, 13, 0) 22%, rgba(5, 7, 13, 0) 74%, var(--bg) 100%),
      linear-gradient(90deg, rgba(5, 7, 13, .82) 0%, rgba(5, 7, 13, .5) 26%, rgba(5, 7, 13, 0) 46%); }
  [dir="rtl"] .reach-stage::before { background:
      linear-gradient(180deg, var(--bg) 0%, rgba(5, 7, 13, 0) 22%, rgba(5, 7, 13, 0) 74%, var(--bg) 100%),
      linear-gradient(-90deg, rgba(5, 7, 13, .85) 0%, rgba(5, 7, 13, .55) 28%, rgba(5, 7, 13, 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(5, 7, 13, .86) 0%, rgba(5, 7, 13, .55) 27%, rgba(5, 7, 13, 0) 47%); }
  [dir="rtl"] .reach-stage::before { background: linear-gradient(-90deg, rgba(5, 7, 13, .94) 0%, rgba(5, 7, 13, .72) 30%, rgba(5, 7, 13, 0) 52%); }
}
@media (min-width: 1500px) { .section-head.split > div { max-width: 860px; } }
