/* ═══════════════════════════════════════════════
   ZIDMA – BASE STYLES (v2 · refined)
   Design system, nav, buttons, labels, glass, mock screens,
   loader, stage lights, footer and site-wide effects.
   Section styles live in /assets/css/sections/sectionN.css
   ═══════════════════════════════════════════════ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Brand colors (from the logo) */
  --blue: #1463F3;
  --blue-light: #5B95FF;
  --blue-soft: #9DBBFF;
  --blue-glow: rgba(20, 99, 243, 0.45);
  --navy: #0F2547;

  --bg: #04070F;
  --bg-2: #080D1B;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.13);
  --highlight: inset 0 1px 0 rgba(255, 255, 255, 0.07);

  --text: #EEF2FA;
  --text-dim: #8A94AD;
  --text-faint: #4A5470;

  --font-head: 'Geist', 'Cairo', system-ui, sans-serif;
  --font-body: 'Geist', 'Cairo', system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;

  --nav-h: 96px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.5s var(--ease);
}

html {
  -webkit-text-size-adjust: 100%;
  /* nothing may scroll sideways (matters most in Arabic, where overflow to the left is scrollable) */
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  /* sideways overflow is clipped on <html>; "hidden" here would break sticky elements */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

::selection {
  background: var(--blue);
  color: #fff;
}

#app,
.site-footer {
  position: relative;
  z-index: 1;
}

/* ═════════ TYPE & HELPERS ═════════ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Small bracket label:  [ HOW WE WORK ] */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.eyebrow::before { content: '['; color: var(--blue-light); }
.eyebrow::after { content: ']'; color: var(--blue-light); }

/* Silver headline, last words in soft blue (.hl) */
.section-title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-title,
.section-title .sw-i,
.s1-title,
.s1-title .sw-i {
  background-image: linear-gradient(180deg, #FFFFFF 35%, #A9B4CC 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hl,
.section-title .hl .sw-i,
.s1-title .hl .sw-i {
  background-image: linear-gradient(100deg, #B7CDFF 0%, #6E9FFF 55%, #3D7BFF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* once split into words, each word carries its own gradient */
.is-split,
.is-split .hl:not([data-nosplit]) {
  background-image: none !important;
}

/* Section head with the title on one side and the intro text on the other */
.split-head {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 32px 48px;
  align-items: end;
  margin-bottom: 48px;
}

.split-head .eyebrow {
  margin-bottom: 20px;
}

@media (max-width: 860px) {
  .split-head {
    grid-template-columns: 1fr;
  }
}

.section-lead {
  color: var(--text-dim);
  font-size: clamp(1rem, 1.25vw, 1.08rem);
  line-height: 1.65;
  max-width: 540px;
}

/* Headline words (wrapped by JS) */
.sw {
  display: inline-block;
}

.sw-i {
  display: inline-block;
  will-change: transform, filter, opacity;
  padding-bottom: 0.06em;
}

/* Glass surface used across the site */
.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--border);
  box-shadow: var(--highlight), 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ═════════ BUTTONS ═════════ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 20px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s, border-color 0.3s;
}

.btn-arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  transition: transform 0.35s var(--ease), background 0.3s;
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

[dir="rtl"] .btn-arrow svg {
  transform: scaleX(-1);
}

.btn-primary {
  background: linear-gradient(180deg, #2F78FF, #1463F3);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 10px 30px -10px var(--blue-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 0 0 5px rgba(20, 99, 243, 0.14), 0 16px 40px -10px var(--blue-glow);
}

/* while a form is sending */
.btn.is-busy {
  opacity: 0.6;
  pointer-events: none;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-strong);
  color: var(--text);
  box-shadow: var(--highlight);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-ghost .btn-arrow {
  background: var(--blue);
}

.btn-ghost:hover {
  border-color: rgba(91, 149, 255, 0.5);
  background: rgba(20, 99, 243, 0.08);
}

.btn--plain {
  padding: 13px 22px;
}

/* ═════════ IMAGE PLACEHOLDER (real images replace these) ═════════ */
.ph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(20, 99, 243, 0.3), transparent 60%),
    linear-gradient(160deg, #0D1733, #060A18);
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  overflow: hidden;
}

.ph span {
  border: 1px dashed rgba(255, 255, 255, 0.2);
  padding: 6px 10px;
  border-radius: 6px;
}

/* ═════════ SHARED CALL-TO-ACTION CARD (Solutions pages) ═════════ */
.cta-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr auto;
  align-items: end;
  gap: 32px 48px;
  padding: clamp(32px, 5vw, 64px);
  border-radius: 28px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(170deg, #0B1329, #060A16 75%);
  box-shadow: var(--highlight);
  overflow: hidden;
}

.cta-card-glow {
  position: absolute;
  inset-inline-end: -10%;
  bottom: -70%;
  width: 70%;
  height: 140%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(20, 99, 243, 0.4), transparent);
  filter: blur(20px);
  pointer-events: none;
}

.cta-card-text,
.cta-card-btns {
  position: relative;
}

.cta-card .section-title {
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  max-width: 18ch;
  margin-bottom: 16px;
}

.cta-card-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 900px) {
  .cta-card { grid-template-columns: 1fr; border-radius: 22px; }
}

/* ═════════ MOCK SCREENS (code-built visuals until real images arrive) ═════════ */
.mock-host {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 15% 0%, rgba(20, 99, 243, 0.22), transparent 60%),
    linear-gradient(165deg, #0C1430, #060A17);
}

.mock {
  position: absolute;
  inset: 0;
  padding: 7%;
  display: flex;
  flex-direction: column;
  gap: 6%;
  direction: ltr;
}

.mk-cap {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 3;
  padding: 5px 10px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(4, 7, 15, 0.6);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(8px);
}

.mk-line {
  height: 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
}

.mk-line.is-strong { background: rgba(255, 255, 255, 0.55); height: 12px; }
.mk-line.is-blue { background: var(--blue); }

/* brand: construction circles + swatches */
.mock--brand { align-items: center; justify-content: center; }
.mk-construct { position: relative; width: 46%; aspect-ratio: 1; }
.mk-construct i { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(157, 187, 255, 0.35); }
.mk-construct i:nth-child(2) { inset: 18%; border-style: solid; border-color: rgba(157, 187, 255, 0.25); }
.mk-construct i:nth-child(3) { inset: 0 50% 0 0; border-radius: 0; border: 0; border-right: 1px dashed rgba(157, 187, 255, 0.25); }
.mk-construct b { position: absolute; inset: 30%; border-radius: 28% 50% 28% 50%; background: linear-gradient(145deg, #4D8BFF, #1046B8); box-shadow: 0 0 40px rgba(20, 99, 243, 0.6); animation: mk-spin 12s linear infinite; }
.mk-swatches { display: flex; gap: 8px; }
.mk-swatches i { width: 22px; height: 22px; border-radius: 6px; background: var(--blue); animation: mk-pop 3s var(--ease) infinite; }
.mk-swatches i:nth-child(2) { background: #0F2547; border: 1px solid var(--border-strong); animation-delay: 0.2s; }
.mk-swatches i:nth-child(3) { background: #EEF2FA; animation-delay: 0.4s; }
.mk-swatches i:nth-child(4) { background: #5B95FF; animation-delay: 0.6s; }

/* stationery: card + letterhead */
.mock--stationery { align-items: center; justify-content: center; }
.mk-letter { position: absolute; width: 42%; aspect-ratio: 0.72; left: 18%; top: 14%; border-radius: 6px; background: #EEF2FA; padding: 6%; display: flex; flex-direction: column; gap: 7%; transform: rotate(-6deg); box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.7); }
.mk-letter .mk-line { background: #C9D2E6; height: 5px; }
.mk-letter .mk-line:first-child { width: 30%; height: 10px; background: var(--blue); }
.mk-card { position: absolute; width: 40%; aspect-ratio: 1.75; right: 14%; bottom: 18%; border-radius: 8px; background: linear-gradient(145deg, #1463F3, #0B2C7A); transform: rotate(5deg); box-shadow: 0 30px 50px -15px rgba(0, 0, 0, 0.7); padding: 6%; display: flex; flex-direction: column; justify-content: flex-end; gap: 8%; animation: mk-float 6s ease-in-out infinite; }
.mk-card .mk-line { background: rgba(255, 255, 255, 0.6); height: 5px; width: 50%; }

/* web: browser */
.mk-browser { flex: 1; border-radius: 10px; border: 1px solid var(--border-strong); background: rgba(4, 7, 15, 0.6); overflow: hidden; display: flex; flex-direction: column; }
.mk-bar { display: flex; align-items: center; gap: 5px; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.mk-bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.mk-bar b { margin-left: 8px; flex: 0 1 40%; height: 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.08); }
.mk-page { flex: 1; padding: 7% 8%; display: flex; flex-direction: column; gap: 7%; position: relative; }
.mk-hero { display: flex; flex-direction: column; gap: 10px; width: 60%; }
.mk-btn { width: 30%; height: 14px; border-radius: 10px; background: var(--blue); }
.mk-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: auto; }
.mk-tiles i { height: 34px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border); }
.mk-pointer { position: absolute; width: 12px; height: 12px; border-left: 2px solid #fff; border-top: 2px solid #fff; transform: rotate(-12deg); left: 40%; top: 40%; animation: mk-pointer 5s var(--ease) infinite; }

/* social: post grid */
.mock--social { align-items: center; justify-content: center; }
.mk-phone { height: 100%; aspect-ratio: 0.56; border-radius: 18px; border: 1px solid var(--border-strong); background: rgba(4, 7, 15, 0.7); padding: 8px; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 5px; }
.mk-phone i { border-radius: 6px; background: linear-gradient(145deg, #2A74FF, #0B2C7A); animation: mk-pop 4s var(--ease) infinite; }
.mk-phone i:nth-child(2n) { background: linear-gradient(145deg, #0F2547, #1A3B7A); animation-delay: 0.3s; }
.mk-phone i:nth-child(3n) { background: linear-gradient(145deg, #5B95FF, #1463F3); animation-delay: 0.6s; }
.mk-likes { position: absolute; right: 12%; top: 22%; padding: 6px 10px; border-radius: 100px; background: rgba(255, 255, 255, 0.92); color: #E0245E; font-size: 0.7rem; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); animation: mk-float 5s ease-in-out infinite; }

/* chart: rising area chart */
.mk-chart-head { display: flex; justify-content: space-between; align-items: center; }
.mk-chips { display: flex; gap: 6px; }
.mk-chips span { padding: 3px 9px; border-radius: 100px; font-size: 0.62rem; color: var(--text-dim); border: 1px solid var(--border-strong); }
.mk-chips span:first-child { color: #fff; border-color: var(--blue); background: rgba(20, 99, 243, 0.25); }
.mk-chart { flex: 1; width: 100%; }
.mk-chart .mk-area { fill: url(#mkGrad); }
.mk-chart .mk-path { fill: none; stroke: #5B95FF; stroke-width: 2; stroke-dasharray: 600; stroke-dashoffset: 600; animation: mk-draw 4s var(--ease) infinite; }
.mk-chart .mk-grid { stroke: rgba(255, 255, 255, 0.06); stroke-dasharray: 3 4; }

/* funnel */
.mock--funnel { justify-content: center; align-items: center; gap: 7px; }
.mk-stage { height: 15%; border-radius: 8px; background: linear-gradient(90deg, rgba(20, 99, 243, 0.85), rgba(91, 149, 255, 0.55)); display: flex; align-items: center; justify-content: center; font-size: 0.66rem; font-family: var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: #fff; animation: mk-pop 4s var(--ease) infinite; }
.mk-stage:nth-child(1) { width: 92%; }
.mk-stage:nth-child(2) { width: 72%; animation-delay: 0.2s; opacity: 0.9; }
.mk-stage:nth-child(3) { width: 52%; animation-delay: 0.4s; opacity: 0.8; }
.mk-stage:nth-child(4) { width: 34%; animation-delay: 0.6s; background: #fff; color: var(--blue); }

/* dashboard */
.mock--dash { flex-direction: row; gap: 4%; }
.mk-side { width: 20%; display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.mk-side .mk-line:first-child { background: var(--blue); width: 80%; }
.mk-main { flex: 1; display: flex; flex-direction: column; gap: 8%; }
.mk-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mk-kpis i { height: 44px; border-radius: 8px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); }
.mk-kpis i:first-child { background: linear-gradient(145deg, rgba(20, 99, 243, 0.45), rgba(20, 99, 243, 0.1)); }
.mk-bars { flex: 1; display: flex; align-items: flex-end; gap: 6px; }
.mk-bars i { flex: 1; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, #5B95FF, rgba(20, 99, 243, 0.15)); transform-origin: bottom; animation: mk-bar 3s var(--ease) infinite alternate; }
.mk-bars i:nth-child(1) { height: 40%; }
.mk-bars i:nth-child(2) { height: 62%; animation-delay: 0.2s; }
.mk-bars i:nth-child(3) { height: 48%; animation-delay: 0.4s; }
.mk-bars i:nth-child(4) { height: 76%; animation-delay: 0.6s; }
.mk-bars i:nth-child(5) { height: 66%; animation-delay: 0.8s; }
.mk-bars i:nth-child(6) { height: 90%; animation-delay: 1s; }

/* booth: exhibition stand with a flag */
.mock--booth { align-items: center; justify-content: center; }
.mk-booth { position: relative; width: 74%; aspect-ratio: 1.45; }
.mk-wall { position: absolute; left: 0; top: 0; right: 20%; bottom: 20%; border-radius: 8px 8px 2px 2px; background: linear-gradient(160deg, #2F78FF, #0B2C7A); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9%; box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.7); }
.mk-wall b { width: 22%; aspect-ratio: 1; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.9); }
.mk-wall .mk-line { width: 50%; background: rgba(255, 255, 255, 0.55); }
.mk-wing { position: absolute; top: 5%; bottom: 20%; right: 9%; width: 11%; border-radius: 0 6px 2px 0; background: linear-gradient(180deg, #123E9E, #081D4A); transform: skewY(-14deg); transform-origin: left top; }
.mk-counter { position: absolute; left: 14%; width: 44%; bottom: 0; height: 30%; border-radius: 6px; background: #EEF2FA; box-shadow: 0 24px 40px -12px rgba(0, 0, 0, 0.7); }
.mk-counter::before { content: ''; position: absolute; left: 30%; top: 32%; width: 40%; height: 16%; border-radius: 4px; background: var(--blue); }
.mk-flag { position: absolute; right: 0; bottom: 0; width: 7%; height: 96%; border-radius: 50% 4px 0 0; background: linear-gradient(180deg, #9DBBFF, #1463F3); transform-origin: bottom center; animation: mk-sway 5s ease-in-out infinite; }
.mk-booth::after { content: ''; position: absolute; left: -12%; right: -12%; bottom: -9%; height: 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(20, 99, 243, 0.45), transparent); }

/* video: player with a play button and a running timeline */
.mock--video { gap: 5%; }
.mk-player { position: relative; flex: 1; border-radius: 10px; overflow: hidden; border: 1px solid var(--border-strong); background: radial-gradient(55% 70% at 72% 28%, rgba(91, 149, 255, 0.5), transparent 62%), radial-gradient(60% 60% at 15% 100%, rgba(20, 99, 243, 0.55), transparent 70%), linear-gradient(160deg, #10204A, #060A17); }
.mk-play { position: absolute; left: 50%; top: 46%; width: 50px; height: 50px; margin: -25px 0 0 -25px; border-radius: 50%; background: rgba(255, 255, 255, 0.94); animation: mk-ring 2.4s ease-out infinite; }
.mk-play::after { content: ''; position: absolute; left: 20px; top: 15px; border-style: solid; border-width: 10px 0 10px 15px; border-color: transparent transparent transparent var(--blue); }
.mk-rec { position: absolute; left: 12px; top: 12px; display: flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 100px; background: rgba(4, 7, 15, 0.6); font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.08em; color: #fff; }
.mk-rec i { width: 6px; height: 6px; border-radius: 50%; background: #FF4D5E; animation: mk-blink 1.2s steps(2) infinite; }
.mk-timeline { position: absolute; left: 12px; right: 12px; bottom: 12px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.2); overflow: hidden; }
.mk-timeline i { display: block; height: 100%; background: #fff; transform-origin: left; animation: mk-progress 8s linear infinite; }
.mk-film { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; height: 16%; }
.mk-film i { border-radius: 6px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border); }
.mk-film i:nth-child(2) { background: rgba(20, 99, 243, 0.45); border-color: rgba(91, 149, 255, 0.6); }

/* app: two phones, the front one with cards, rows and a tab bar */
.mock--app { align-items: center; justify-content: center; }
.mk-apps { position: relative; height: 100%; aspect-ratio: 0.5; transform: translateX(-24%); }
.mk-app { position: absolute; inset: 0; border-radius: 18px; border: 1px solid var(--border-strong); background: rgba(6, 10, 23, 0.95); padding: 12px 9px 9px; display: flex; flex-direction: column; gap: 7px; }
.mk-app--back { transform: translateX(62%) rotate(9deg) scale(0.88); opacity: 0.5; }
.mk-app-card { height: 26%; border-radius: 10px; background: linear-gradient(145deg, #2F78FF, #0B2C7A); }
.mk-app-row { display: flex; align-items: center; gap: 6px; }
.mk-app-row b { width: 16px; height: 16px; flex: none; border-radius: 5px; background: rgba(255, 255, 255, 0.1); }
.mk-app-row .mk-line { flex: 1; height: 6px; }
.mk-app-tabs { margin-top: auto; display: flex; justify-content: space-around; padding-top: 7px; border-top: 1px solid var(--border); }
.mk-app-tabs i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.mk-app-tabs i:first-child { background: var(--blue-light); }
.mk-app .mk-app-card { animation: mk-pop 4s var(--ease) infinite; }

/* search: a search bar with the client's result on top */
.mock--search { justify-content: center; gap: 5%; }
.mk-search { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 100px; background: rgba(255, 255, 255, 0.92); }
.mk-search .mk-line { height: 7px; background: rgba(4, 7, 15, 0.22); transform-origin: left; animation: mk-type 5s steps(8) infinite; }
.mk-glass { position: relative; flex: none; width: 12px; height: 12px; border: 2px solid var(--blue); border-radius: 50%; }
.mk-glass::after { content: ''; position: absolute; right: -4px; bottom: -4px; width: 2px; height: 6px; background: var(--blue); transform: rotate(-45deg); }
.mk-result { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.02); }
.mk-result.is-top { border-color: rgba(91, 149, 255, 0.6); background: rgba(20, 99, 243, 0.13); box-shadow: 0 0 30px -10px var(--blue-glow); }
.mk-ad { position: absolute; right: 12px; top: 10px; padding: 2px 7px; border-radius: 4px; background: var(--blue); color: #fff; font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.06em; }

/* radar: a positioning map with competitors and "you" */
.mock--radar { align-items: center; justify-content: center; }
.mk-map { position: relative; width: 84%; aspect-ratio: 1.35; border-radius: 12px; border: 1px solid var(--border); background: radial-gradient(circle at 70% 28%, rgba(20, 99, 243, 0.28), transparent 38%), linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 20px 20px, linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 20px 20px; }
.mk-ax { position: absolute; left: 6%; right: 6%; top: 50%; height: 1px; background: rgba(255, 255, 255, 0.2); }
.mk-ay { position: absolute; top: 7%; bottom: 7%; left: 50%; width: 1px; background: rgba(255, 255, 255, 0.2); }
.mk-axl { position: absolute; font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }
.mk-axl--x { right: 7%; top: calc(50% + 6px); }
.mk-axl--y { left: calc(50% + 6px); top: 7%; }
.mk-dot { position: absolute; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: rgba(255, 255, 255, 0.32); }
.mk-dot.is-you { width: 14px; height: 14px; margin: -7px; background: var(--blue); animation: mk-ring 2.4s ease-out infinite; }
.mk-dot em { position: absolute; left: 50%; bottom: 170%; transform: translateX(-50%); padding: 2px 8px; border-radius: 100px; background: var(--blue); color: #fff; font-style: normal; font-family: var(--font-mono); font-size: 0.58rem; white-space: nowrap; }

/* leads: incoming leads with their status */
.mock--leads { gap: 5%; }
.mk-lead { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.025); }
.mk-lead b { width: 22px; height: 22px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.mk-lead .mk-line { flex: 1; }
.mk-lead span { padding: 3px 8px; border-radius: 100px; background: rgba(255, 255, 255, 0.06); color: var(--text-dim); font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.mk-lead.is-new { border-color: rgba(91, 149, 255, 0.55); background: rgba(20, 99, 243, 0.12); animation: mk-newlead 4s var(--ease) infinite; }
.mk-lead.is-new b { background: linear-gradient(145deg, #5B95FF, #1463F3); }
.mk-lead.is-new span { background: var(--blue); color: #fff; }

@keyframes mk-sway { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(3deg); } }
@keyframes mk-ring { 0% { box-shadow: 0 0 0 0 rgba(91, 149, 255, 0.55); } 100% { box-shadow: 0 0 0 16px rgba(91, 149, 255, 0); } }
@keyframes mk-blink { 50% { opacity: 0; } }
@keyframes mk-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes mk-type { 0% { transform: scaleX(0); } 50%, 100% { transform: scaleX(1); } }
@keyframes mk-newlead { 0%, 100% { transform: translateY(0); } 8% { transform: translateY(-4px); } 16% { transform: translateY(0); } }

@keyframes mk-spin { to { transform: rotate(360deg); } }
@keyframes mk-pop { 0%, 100% { transform: scale(1); } 50% { transform: scale(0.94); } }
@keyframes mk-float { 0%, 100% { transform: translateY(0) rotate(5deg); } 50% { transform: translateY(-8px) rotate(3deg); } }
@keyframes mk-draw { 0% { stroke-dashoffset: 600; } 60%, 100% { stroke-dashoffset: 0; } }
@keyframes mk-bar { from { transform: scaleY(0.55); } to { transform: scaleY(1); } }
@keyframes mk-pointer { 0%, 100% { left: 40%; top: 40%; } 40% { left: 22%; top: 34%; } 60% { left: 22%; top: 34%; transform: rotate(-12deg) scale(0.85); } 80% { left: 60%; top: 72%; } }

/* ═════════ NAV (pill with the emblem in the middle) ═════════ */
#mainNav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: min(calc(100% - 32px), 1180px);
}

.nav-pill {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  height: 60px;
  padding: 0 10px 0 22px;
  border-radius: 100px;
  background: rgba(8, 12, 26, 0.45);
  border: 1px solid var(--border);
  box-shadow: var(--highlight);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

[dir="rtl"] .nav-pill {
  padding: 0 22px 0 10px;
}

#mainNav.scrolled .nav-pill {
  background: rgba(8, 12, 26, 0.82);
  border-color: var(--border-strong);
  box-shadow: var(--highlight), 0 20px 50px -10px rgba(0, 0, 0, 0.6);
}

.nav-side {
  display: flex;
  align-items: center;
  gap: 28px;
  min-width: 0;
}

.nav-side--right {
  justify-content: flex-end;
  gap: 18px;
}

.nav-brand {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.nav-emblem {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
}

.nav-emblem img {
  width: 30px;
  height: auto;
  filter: drop-shadow(0 0 12px rgba(20, 99, 243, 0.55));
  transition: transform 0.6s var(--ease);
}

.nav-emblem:hover img {
  transform: rotate(180deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  font-size: 0.88rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.25s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-lang {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-dim);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 0.25s;
}

.nav-lang:hover {
  color: var(--text);
}

.nav-cta {
  padding: 9px 16px;
  border-radius: 100px;
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-strong);
  box-shadow: var(--highlight);
  transition: background 0.3s, border-color 0.3s;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--blue);
  border-color: var(--blue);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.35s var(--ease), opacity 0.35s;
}

.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 15, 0.97);
  backdrop-filter: blur(16px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.6s var(--ease);
}

.mobile-drawer.open {
  clip-path: inset(0 0 0 0);
}

.mobile-drawer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.mobile-drawer ul li {
  overflow: hidden;
}

.mobile-drawer ul a {
  display: block;
  font-weight: 400;
  font-size: clamp(2rem, 8vw, 2.8rem);
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
  transform: translateY(100%);
  transition: color 0.25s, transform 0.6s var(--ease);
}

.mobile-drawer.open ul a { transform: none; }
.mobile-drawer ul li:nth-child(2) a { transition-delay: 0.05s; }
.mobile-drawer ul li:nth-child(3) a { transition-delay: 0.1s; }
.mobile-drawer ul li:nth-child(4) a { transition-delay: 0.15s; }
.mobile-drawer ul li:nth-child(5) a { transition-delay: 0.2s; }
.mobile-drawer ul li:nth-child(6) a { transition-delay: 0.25s; }
.mobile-drawer ul a:hover { color: var(--blue-light); }

.mobile-lang {
  margin-top: 32px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  background: none;
  border: 1px solid var(--border-strong);
  color: var(--text-dim);
  padding: 10px 24px;
  cursor: pointer;
  border-radius: 100px;
}

/* ═════════ MAIN / STUB PAGES ═════════ */
#app {
  min-height: 100vh;
}

.page-stub {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
}

.page-stub .eyebrow {
  margin-bottom: 20px;
}

/* ═════════ STAGE: corner lights + starfield (fixed behind everything) ═════════ */
.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.stage-light {
  position: absolute;
  top: -30vh;
  width: 46vw;
  height: 90vh;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(150, 175, 255, 0.13), rgba(150, 175, 255, 0) 100%);
  filter: blur(30px);
}

.stage-light--l { left: -16vw; transform: rotate(-28deg); }
.stage-light--r { right: -16vw; transform: rotate(28deg); }

.stars,
.stars::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  border-radius: 50%;
}

.stars--b {
  animation: twinkle 5s ease-in-out infinite;
}

@keyframes twinkle {
  50% { opacity: 0.25; }
}

/* ═════════ FOOTER ═════════ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 80px 0 32px;
  background: linear-gradient(180deg, rgba(4, 7, 15, 0.6), #02040A);
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
}

.footer-brand img {
  height: 34px;
  width: auto;
  margin-bottom: 20px;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 0.92rem;
  max-width: 300px;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-col a {
  color: var(--text);
  opacity: 0.8;
  text-decoration: none;
  font-size: 0.92rem;
  transition: opacity 0.25s, color 0.25s;
}

.footer-col a:hover {
  opacity: 1;
  color: var(--blue-light);
}

/* Giant word with light moving inside the letters */
.footer-word {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(4.5rem, 19vw, 17rem);
  line-height: 0.82;
  letter-spacing: -0.06em;
  text-align: center;
  margin: 72px 0 28px;
  background-image:
    linear-gradient(100deg, transparent 30%, rgba(160, 195, 255, 0.95) 45%, rgba(20, 99, 243, 0.9) 50%, transparent 65%),
    linear-gradient(180deg, rgba(91, 149, 255, 0.35), rgba(20, 99, 243, 0.04));
  background-size: 250% 100%, 100% 100%;
  background-position: 120% 0, 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: word-light 6s var(--ease) infinite;
  user-select: none;
}

@keyframes word-light {
  0% { background-position: 120% 0, 0 0; }
  60%, 100% { background-position: -40% 0, 0 0; }
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 0.85rem;
}

/* WhatsApp floating button */
.wa-float {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  z-index: 900;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25D366;
  color: #fff;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
  transition: transform 0.3s var(--ease);
}

.wa-float:hover {
  transform: scale(1.08);
}

/* ═════════ SITE-WIDE EFFECTS (assets/js/site.js) ═════════ */

/* Smooth scroll (Lenis) */
html.lenis,
html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Generic fade-up */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ─── Loading screen: four puzzle pieces (Brand · Digital · Growth · Software)
       lock together, the emblem appears, then the screen opens from the center ─── */
.loader {
  --hole: 0px;
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: #03050C;
  pointer-events: all;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent var(--hole), #000 calc(var(--hole) + 1px));
  mask-image: radial-gradient(circle at 50% 50%, transparent var(--hole), #000 calc(var(--hole) + 1px));
}

.loader::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(36% 44% at 50% 50%, rgba(20, 99, 243, 0.16), transparent 70%);
}

.loader-stage {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
}

/* the pieces reuse the intro puzzle styles (section3.css) */
.lp-puzzle.s3-puzzle {
  width: 96px;
  height: 96px;
}

.lp-puzzle .s3-piece {
  opacity: 0;
}

.lp-emblem {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 54%;
  z-index: 3;
  opacity: 0;
  filter: brightness(0) invert(1) drop-shadow(0 0 12px rgba(157, 187, 255, 0.9));
}

.lp-words {
  position: relative;
  width: 260px;
  height: 1.6em;
  overflow: hidden;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-dim);
}

.lp-words span {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(100%);
}

.lp-words .lp-name {
  color: var(--text);
  font-weight: 500;
}

.lp-bar {
  position: absolute;
  left: 50%;
  bottom: clamp(28px, 7vh, 60px);
  width: 160px;
  height: 1px;
  margin-left: -80px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.lp-bar i {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--blue), var(--blue-soft));
  transform: scaleX(0);
  transform-origin: left;
}

[dir="rtl"] .lp-bar i {
  transform-origin: right;
}

/* ─── Page transition wipe ─── */
.page-wipe {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: grid;
  place-items: center;
  background: #03050C;
  transform: translateY(100%);
  pointer-events: none;
}

.page-wipe::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(40% 50% at 50% 50%, rgba(20, 99, 243, 0.2), transparent 70%);
}

.page-wipe img {
  position: relative;
  width: 56px;
  filter: drop-shadow(0 0 18px rgba(20, 99, 243, 0.6));
}

/* ─── Custom cursor (mouse devices only) ─── */
.cursor,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2800;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

body.has-cursor .cursor,
body.has-cursor .cursor-ring { opacity: 1; }

body.cursor-out .cursor,
body.cursor-out .cursor-ring { opacity: 0; }

.cursor {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: #fff;
}

.cursor-ring {
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  border: 1px solid rgba(157, 187, 255, 0.4);
  display: grid;
  place-items: center;
  transition: opacity 0.3s, width 0.4s var(--ease), height 0.4s var(--ease), margin 0.4s var(--ease), background 0.4s, border-color 0.4s;
}

.cursor-ring span {
  font-size: 0.72rem;
  font-weight: 500;
  color: #fff;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.25s, transform 0.4s var(--ease);
}

body.cursor-hover .cursor-ring {
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  background: rgba(20, 99, 243, 0.1);
  border-color: rgba(91, 149, 255, 0.7);
}

body.cursor-label .cursor-ring {
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  background: rgba(20, 99, 243, 0.9);
  border-color: transparent;
  backdrop-filter: blur(6px);
}

body.cursor-label .cursor-ring span { opacity: 1; transform: none; }
body.cursor-label .cursor { opacity: 0; }

@media (hover: hover) and (pointer: fine) {
  body.has-cursor,
  body.has-cursor a,
  body.has-cursor button,
  body.has-cursor [data-cursor] { cursor: none; }

  body.has-cursor input,
  body.has-cursor textarea { cursor: text; }
}

/* ─── Scroll progress bar ─── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 1200;
  background: linear-gradient(90deg, var(--blue), var(--blue-soft));
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

[dir="rtl"] .scroll-progress { transform-origin: right; }

/* ─── Film grain ─── */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 1300;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* ═════════ RESPONSIVE ═════════ */
@media (max-width: 1120px) {
  .nav-side { gap: 20px; }
  .nav-links { gap: 18px; }
  .nav-lang { display: none; }
}

@media (max-width: 900px) {
  .nav-links,
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-drawer { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .nav-pill { height: 54px; padding: 0 6px 0 18px; }
  [dir="rtl"] .nav-pill { padding: 0 18px 0 6px; }
  .nav-brand { font-size: 0.88rem; }
}

/* small phones: the brand name and the center emblem don't both fit */
@media (max-width: 480px) {
  .nav-emblem { display: none; }
  .nav-pill { grid-template-columns: 1fr auto; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal { opacity: 1; transform: none; }
  .loader { display: none; }
}
