/* ==========================================================
   Design tokens
   ========================================================== */
:root {
  /* Brand palette (user-specified) */
  --ink: #1f2937;
  --ink-2: #374151;
  --soft: #9ca3af;
  --bg: #f3f4f6;
  --surface: #ffffff;
  --muted: #5b6472;
  --line: #e5e7eb;
  --wa: #128c4b;

  /* Subtle industry tints for mockup visuals */
  --tint-estate: #64748b;
  --tint-food: #a16207;
  --tint-clinic: #0e7490;
  --tint-store: #7c5cbf;
  --tint-fit: #15803d;
  --tint-build: #b45309;

  --font-en: "Manrope", system-ui, sans-serif;
  --font-ar: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", Consolas, "SF Mono", monospace;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;

  --shadow-sm: 0 1px 2px rgba(31, 41, 55, 0.05);
  --shadow: 0 10px 30px -12px rgba(31, 41, 55, 0.16);
  --shadow-lg: 0 24px 60px -20px rgba(31, 41, 55, 0.25);
  --shadow-xl: 0 40px 90px -24px rgba(31, 41, 55, 0.35);

  --container: 1160px;
  --section-y: clamp(88px, 12vw, 150px);

  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font-en);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }

html[lang="ar"] body { font-family: var(--font-ar); }

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.35; }

h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
h1, h2 { text-wrap: balance; }
p { margin: 0 0 1em; }

/* Anchored sections stop below the fixed nav instead of hiding under it */
section[id], [id="contact"] { scroll-margin-top: 90px; }

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

/* Subtle scrollbar that matches the palette */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #c7ccd3; border-radius: 8px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--soft); }

/* Focus rings must stay visible on dark surfaces */
.section--dark :focus-visible, .closing :focus-visible, .footer :focus-visible {
  outline: 3px solid #f3f4f6;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  inset-inline-start: 10px;
  z-index: 300;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.3s var(--ease-smooth);
}
.skip-link:focus-visible { transform: none; outline: 3px solid #fff; outline-offset: 2px; }

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

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

/* ==========================================================
   Preloader
   ========================================================== */
/* Hidden unless JS is running — the site must never be blocked by a dead script */
.preloader { display: none; }
html.js .preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--ink);
  transition: transform 0.75s var(--ease-out-expo);
}
.preloader.is-done { transform: translateY(-101%); }
.preloader__inner { display: grid; justify-items: center; gap: 10px; }
.preloader__logo {
  height: clamp(110px, 18vw, 170px);
  width: auto;
  animation: mark-pop 1s var(--ease-out-expo) both;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.35));
  margin-bottom: 14px;
}
/* Chrome/silver wordmark, matching the metallic logo */
.preloader__name {
  font-weight: 800;
  background: linear-gradient(180deg, #fafbfc 15%, #a8aeb8 55%, #eceef1 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fade-up 0.8s var(--ease-smooth) 0.35s both;
}
.preloader__name--ar {
  font-family: var(--font-ar);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.3;
}
.preloader__name--en {
  font-family: var(--font-en);
  font-size: clamp(0.8rem, 1.6vw, 1rem);
  letter-spacing: 0.42em;
  margin-inline-start: 0.42em; /* optically recenter the tracked text */
  animation-delay: 0.5s;
}
.preloader__bar { margin-top: 18px; }
@keyframes mark-pop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.preloader__bar {
  width: 130px; height: 2px;
  background: rgba(243, 244, 246, 0.15);
  border-radius: 2px;
  overflow: hidden;
}
.preloader__bar span {
  display: block;
  height: 100%;
  background: #f3f4f6;
  transform-origin: left;
  animation: bar-fill 1s var(--ease-smooth) 0.15s both;
}
@keyframes bar-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ==========================================================
   Scroll progress
   ========================================================== */
.progress {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: 3px;
  z-index: 90;
  background: linear-gradient(90deg, var(--ink-2), var(--soft));
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}
html[dir="rtl"] .progress { transform-origin: right; background: linear-gradient(-90deg, var(--ink-2), var(--soft)); }

/* ==========================================================
   Buttons
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease-smooth), box-shadow 0.35s var(--ease-smooth),
              background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn:focus-visible { outline: 3px solid var(--ink-2); outline-offset: 3px; }

/* sheen sweep on hover */
.btn--primary::after, .btn--light::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.25) 50%, transparent 65%);
  transform: translateX(-130%);
  transition: transform 0.7s var(--ease-smooth);
  pointer-events: none;
}
html[dir="rtl"] .btn--primary::after, html[dir="rtl"] .btn--light::after { transform: translateX(130%); }
.btn--primary:hover::after, .btn--light:hover::after { transform: translateX(130%); }
html[dir="rtl"] .btn--primary:hover::after, html[dir="rtl"] .btn--light:hover::after { transform: translateX(-130%); }

.btn--primary { background: var(--ink-2); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--ink); box-shadow: var(--shadow); }

.btn--whatsapp { background: #fff; color: var(--wa); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn--whatsapp:hover { border-color: var(--wa); box-shadow: var(--shadow); }

.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { box-shadow: var(--shadow-lg); }

.btn--lg { padding: 16px 32px; font-size: 1.05rem; }
.btn--sm { padding: 9px 20px; font-size: 0.9rem; }
.btn--full { width: 100%; }

[data-magnetic] { will-change: transform; }

/* ==========================================================
   Nav
   ========================================================== */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.45s var(--ease-smooth);
}
.nav.is-scrolled {
  background: rgba(243, 244, 246, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 76px;
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.12rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav__logo-img {
  height: 36px;
  width: auto;
  flex: none;
  transition: transform 0.4s var(--ease-smooth);
}
.nav__logo:hover .nav__logo-img { transform: rotate(-6deg) scale(1.08); }
.nav__logo-text {
  letter-spacing: 0.1em;
  font-size: 0.98rem;
}
html[lang="ar"] .nav__logo-text { letter-spacing: 0; font-size: 1.1rem; }

.nav__links {
  display: flex;
  gap: 26px;
  margin-inline-start: auto;
}
.nav__links a {
  position: relative;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--muted);
  transition: color 0.2s ease;
  padding-block: 4px;
}
.nav__links a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--ink-2);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s var(--ease-smooth);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__links a.is-active { color: var(--ink); }
.nav__links a.is-active::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: 12px; }

.lang-toggle {
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  color: var(--ink-2);
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.3s var(--ease-smooth);
  font-family: var(--font-ar);
}
html[lang="ar"] .lang-toggle { font-family: var(--font-en); }
.lang-toggle:hover { border-color: var(--soft); background: #fff; transform: translateY(-1px); }
.lang-toggle:focus-visible { outline: 3px solid var(--ink-2); outline-offset: 2px; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease-smooth), opacity 0.2s;
}
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 24px;
  background: rgba(243, 244, 246, 0.97);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__mobile a {
  text-decoration: none;
  font-weight: 600;
  padding: 12px 4px;
  color: var(--ink-2);
}
.nav__mobile .btn { margin-top: 10px; }
.nav__mobile.is-open { display: flex; }

/* ==========================================================
   Hero
   ========================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(140px, 18vw, 200px);
  padding-bottom: clamp(40px, 6vw, 80px);
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(55, 65, 81, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(55, 65, 81, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 75%);
  animation: grid-pan 26s linear infinite;
}
@keyframes grid-pan { to { background-position: 56px 56px; } }
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  animation: drift 14s ease-in-out infinite alternate;
  transition: translate 0.6s var(--ease-smooth);
}
.hero__orb--1 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(156, 163, 175, 0.55), transparent 70%);
  top: -120px; inset-inline-end: 6%;
}
.hero__orb--2 {
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(55, 65, 81, 0.22), transparent 70%);
  bottom: -100px; inset-inline-start: 4%;
  animation-delay: -7s;
}
.hero__ring {
  position: absolute;
  width: 560px; height: 560px;
  border: 1.5px dashed rgba(55, 65, 81, 0.12);
  border-radius: 50%;
  top: 40px;
  inset-inline-start: 50%;
  margin-inline-start: -280px;
  animation: ring-spin 60s linear infinite;
  transition: translate 0.6s var(--ease-smooth);
}
@keyframes ring-spin { to { transform: rotate(360deg); } }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-40px, 30px) scale(1.08); }
}

.hero__inner {
  position: relative;
  text-align: center;
  max-width: 980px;
}
/* Hero entrances: visible by default, animated in when .is-in lands */
.hero.is-in .hero__eyebrow { animation: fade-up 0.7s var(--ease-smooth) 0.05s both; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

.hero__title { margin-inline: auto; max-width: 18ch; }
/* word-by-word reveal */
.hero__title .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.hero__title .w > span { display: inline-block; }
.hero.is-in .hero__title .w > span {
  animation: word-up 0.9s var(--ease-out-expo) both;
  animation-delay: var(--wd, 0s);
}
@keyframes word-up { from { transform: translateY(115%); } to { transform: none; } }
/* highlighted keyword */
.hero__title .w.shine > span {
  background: linear-gradient(100deg, var(--ink) 20%, var(--soft) 40%, var(--ink) 60%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine-slide 4.5s ease-in-out 1.4s infinite;
}
@keyframes shine-slide { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }

.hero__sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 46ch;
  margin-inline: auto;
  margin-bottom: 2.2em;
}
.hero.is-in .hero__fade { animation: fade-up 0.9s var(--ease-smooth) both; }
.hero.is-in .hero__sub { animation-delay: 0.35s; }
.hero.is-in .hero__actions { animation-delay: 0.5s; }
.hero.is-in .hero__mockup { animation-delay: 0.65s; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: clamp(48px, 6vw, 72px);
}

/* --- Hero mockup --- */
.hero__mockup {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
  perspective: 1200px;
}
.mockup {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  position: relative;
  transform-style: preserve-3d;
}
.mockup--hero { animation: mockup-float 7s ease-in-out infinite alternate; }
@keyframes mockup-float { from { transform: translateY(0); } to { transform: translateY(-12px); } }

.mockup__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.mockup__bar i { width: 9px; height: 9px; border-radius: 50%; background: #d1d5db; }
.mockup__bar i:first-child { background: #cbd5e1; }
.mockup__url {
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 16px;
  max-width: 220px;
  margin-inline-start: 12px;
  border-radius: 8px;
  background: var(--line);
  padding: 2px 10px;
}
.mockup__url b {
  font-weight: 600;
  font-size: 9.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.mockup__url b::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 9px;
  background: var(--muted);
  margin-inline-start: 2px;
  vertical-align: -1px;
  animation: caret-blink 1s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }
.mockup__body { padding: 22px 26px 26px; display: grid; gap: 18px; }
.mockup__nav { display: flex; align-items: center; gap: 10px; }
.mockup__nav b { width: 26px; height: 10px; border-radius: 4px; background: var(--ink-2); }
.mockup__nav em { width: 34px; height: 7px; border-radius: 4px; background: var(--line); }
.mockup__nav u { width: 44px; height: 14px; border-radius: 7px; background: var(--ink-2); margin-inline-start: auto; }
.mockup__heroblock { display: grid; gap: 9px; padding: 18px 0 6px; justify-items: start; }
.mockup__line { border-radius: 5px; background: var(--line); }
.mockup__line--xl { width: 62%; height: 16px; background: #d7dade; }
.mockup__line--lg { width: 48%; height: 12px; }
.mockup__line--sm { width: 34%; height: 8px; }
.mockup__pills { display: flex; gap: 8px; margin-top: 8px; }
.mockup__pills i { width: 56px; height: 16px; border-radius: 8px; background: var(--ink-2); }
.mockup__pills i:last-child { background: var(--bg); border: 1px solid var(--line); }
.mockup__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mockup__cards i { height: 52px; border-radius: 9px; background: var(--bg); border: 1px solid var(--line); }
.mockup__sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.5) 50%, transparent 65%);
  transform: translateX(-130%);
  animation: mockup-sheen 6s ease-in-out 2s infinite;
  pointer-events: none;
}
@keyframes mockup-sheen { 0%, 55%, 100% { transform: translateX(-130%); } 70% { transform: translateX(130%); } }

.hero__chip {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  padding: 9px 18px;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--ink-2);
  animation: chip-float 5s ease-in-out infinite alternate;
  white-space: nowrap;
}
.hero__chip--1 { top: 8%; inset-inline-start: -3%; animation-delay: -1s; }
.hero__chip--2 { top: 42%; inset-inline-end: -5%; animation-delay: -2.5s; }
.hero__chip--3 { bottom: -4%; inset-inline-start: 10%; animation-delay: -4s; }
@keyframes chip-float { from { transform: translateY(-6px); } to { transform: translateY(8px); } }

/* ==========================================================
   Marquee
   ========================================================== */
.marquee {
  overflow: hidden;
  background: var(--surface);
  border-block: 1px solid var(--line);
  padding-block: 20px;
  position: relative;
  z-index: 2;
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee__item {
  display: flex;
  align-items: center;
  gap: 56px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.marquee__item::after {
  content: "✦";
  color: var(--soft);
  font-size: 0.8rem;
}

/* ==========================================================
   Sections — shared
   ========================================================== */
.section { padding-block: var(--section-y); position: relative; }
.section--alt { background: var(--surface); }
.section--dark {
  background:
    radial-gradient(ellipse 70% 90% at 80% 0%, rgba(156, 163, 175, 0.14), transparent 60%),
    var(--ink-2);
  color: #f3f4f6;
  overflow: hidden;
}
.why__bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(243, 244, 246, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(243, 244, 246, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.section__head { max-width: 640px; margin-bottom: clamp(44px, 6vw, 72px); position: relative; }
.section__head h2 { position: relative; display: inline-block; }
.section__head h2::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: -10px;
  width: 56px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--ink-2), var(--soft));
  transform: scaleX(0);
  transform-origin: var(--underline-origin, left);
  transition: transform 0.8s var(--ease-smooth) 0.3s;
}
html[dir="rtl"] .section__head h2::after { --underline-origin: right; background: linear-gradient(-90deg, var(--ink-2), var(--soft)); }
.section__head.is-visible h2::after { transform: scaleX(1); }

.section__lead { color: var(--muted); font-size: 1.08rem; max-width: 46ch; }
.section--dark .section__lead { color: #d1d5db; }
.section__cta { text-align: center; margin-top: clamp(40px, 5vw, 56px); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 20px;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; }
.eyebrow--light { color: #e5e7eb; border-color: rgba(229, 231, 235, 0.25); background: rgba(255, 255, 255, 0.06); }

/* ==========================================================
   Reveal system
   ========================================================== */
/* Content is ALWAYS visible by default — a blank page is impossible.
   When an element enters the viewport, .is-visible plays an entrance
   animation over it. If the observers never fire, the site simply
   shows without motion. */
html.js .reveal.is-visible {
  animation: reveal-in 0.9s var(--ease-smooth) both;
  animation-delay: var(--d, 0s);
}
.reveal--left { --from: translateX(-44px); }
.reveal--right { --from: translateX(44px); }
html[dir="rtl"] .reveal--left { --from: translateX(44px); }
html[dir="rtl"] .reveal--right { --from: translateX(-44px); }
.reveal--zoom { --from: scale(0.92); }
@keyframes reveal-in {
  from { opacity: 0; transform: var(--from, translateY(34px)); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}

/* Emergency mode: animation engine confirmed dead — everything instant */
html.no-anim *, html.no-anim *::before, html.no-anim *::after {
  animation: none !important;
  transition: none !important;
}

/* ==========================================================
   2 · Problems
   ========================================================== */
.problems__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  perspective: 1000px;
}
.problem-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 36px);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.4s var(--ease-smooth), border-color 0.3s ease;
  transform-style: preserve-3d;
  overflow: hidden;
}
.problem-card:hover { box-shadow: var(--shadow); border-color: #d8dbe0; }
.problem-card__index {
  position: absolute;
  top: -18px;
  inset-inline-end: -6px;
  font-size: 7rem;
  font-weight: 800;
  color: var(--bg);
  line-height: 1;
  z-index: 0;
  user-select: none;
}
.problem-card__quote, .problem-card__body { position: relative; z-index: 1; }
.problem-card__quote {
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 0.6em;
}
html[lang="ar"] .problem-card__quote { letter-spacing: 0; }
.problem-card__body { color: var(--muted); margin: 0; }

/* ==========================================================
   3 · Included
   ========================================================== */
.included__layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
/* --- The build terminal (brand slate-gray) --- */
.terminal {
  background: linear-gradient(165deg, #414b5b, #2a3140);
  border: 1px solid rgba(229, 231, 235, 0.12);
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.terminal__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(229, 231, 235, 0.08);
}
.terminal__dot { width: 11px; height: 11px; border-radius: 50%; }
.terminal__dot--r { background: #e9807a; }
.terminal__dot--y { background: #e6c06b; }
.terminal__dot--g { background: #7fc98a; }
.terminal__title {
  margin-inline: auto;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  color: #9ca3af;
  /* optically recenter against the dots */
  padding-inline-end: 40px;
}
.terminal__body {
  list-style: none;
  margin: 0;
  padding: 20px 22px 24px;
  display: grid;
  gap: 13px;
}
.terminal__body li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: #d1d5db;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
}
.terminal__cmd {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: #e5e7eb;
  margin-bottom: 4px;
  text-align: left;
  display: block !important;
}
.terminal__prompt { color: #e5e7eb; font-weight: 700; margin-right: 8px; }
.terminal__flag { color: #9aa2ae; }
.terminal__ok { color: #d5dae0; font-weight: 800; flex: none; font-family: var(--font-mono); }
.terminal__done {
  color: #f3f4f6;
  font-weight: 700;
  border-top: 1px dashed rgba(229, 231, 235, 0.2);
  padding-top: 15px;
  margin-top: 3px;
}
.terminal__cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: #d5dae0;
  margin-inline-start: 8px;
  align-self: center;
  animation: caret-blink 1s steps(1) infinite;
}
/* Lines added live by clicking the optional-addition chips */
.terminal__add { color: #eceef1; animation: line-in 0.45s var(--ease-smooth) both; }
.terminal__plus { color: #d5dae0; font-weight: 800; flex: none; font-family: var(--font-mono); }
/* Lines "print" one by one when the terminal scrolls into view */
.terminal.is-visible .terminal__body li {
  animation: line-in 0.5s var(--ease-smooth) both;
  animation-delay: calc(0.3s + var(--i, 0) * 0.12s);
}
.terminal.is-visible .terminal__cmd { animation-delay: 0.1s; }
@keyframes line-in {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: none; }
}

/* Intro side: code-brace watermark + stat tiles */
.included__intro { position: relative; }
.included__intro::before {
  content: "{ }";
  position: absolute;
  top: -54px;
  inset-inline-end: -18px;
  font-family: var(--font-mono);
  font-size: 200px;
  font-weight: 600;
  line-height: 1;
  color: rgba(55, 65, 81, 0.05);
  pointer-events: none;
  user-select: none;
}
.included__intro > * { position: relative; }

.incstats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}
.incstat {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  transition: transform 0.35s var(--ease-smooth), box-shadow 0.35s var(--ease-smooth);
}
.incstat:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.incstat b {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.incstat span { font-size: 0.82rem; font-weight: 600; color: var(--muted); line-height: 1.4; display: block; margin-top: 2px; }

/* Optional additions as clickable "+" chips (brand grays) */
.included__optional { margin-top: 34px; }
.included__optional h3 { font-size: 0.95rem; color: var(--muted); font-weight: 700; margin-bottom: 14px; }
.included__optional h3::before {
  content: "// ";
  font-family: var(--font-mono);
  color: var(--soft);
  font-weight: 600;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font: inherit;
  border: 1.5px solid var(--line);
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 999px;
  padding: 8px 16px;
  background: #fff;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease,
              transform 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
}
.chip::before {
  content: "+";
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--ink-2);
  margin-inline-end: 7px;
  transition: color 0.25s ease;
}
.chip:hover { border-color: var(--soft); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.chip:focus-visible { outline: 3px solid var(--ink-2); outline-offset: 2px; }
.chip.is-added { background: var(--ink-2); border-color: var(--ink-2); color: #fff; }
.chip.is-added::before { content: "✓"; color: #fff; }
.chip-hint {
  margin: 14px 0 0;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--muted);
}
.chip-hint::before {
  content: "→ ";
  color: var(--soft);
  font-weight: 800;
}
html[dir="rtl"] .chip-hint::before { content: "← "; }

/* ==========================================================
   4 · Process
   ========================================================== */
.process__wrap { position: relative; }
.process__line {
  position: absolute;
  top: 52px;
  inset-inline: 40px;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.process__line span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--ink-2), var(--soft));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.6s var(--ease-smooth) 0.2s;
}
html[dir="rtl"] .process__line span { transform-origin: right; background: linear-gradient(-90deg, var(--ink-2), var(--soft)); }
.process__wrap.is-visible .process__line span { transform: scaleX(1); }

.process {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.process__step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth),
              opacity 0.9s var(--ease-smooth), filter 0.9s var(--ease-smooth);
}
.process__step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.process__num {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 20px;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.4s var(--ease-smooth);
}
.process__step:hover .process__num { background: var(--ink-2); color: #fff; transform: rotate(-6deg) scale(1.08); }
.process__step p { color: var(--muted); margin: 0; font-size: 0.96rem; }

/* ==========================================================
   5 · Pricing
   ========================================================== */
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: stretch;
  perspective: 1200px;
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: box-shadow 0.4s var(--ease-smooth), border-color 0.3s ease;
  transform-style: preserve-3d;
}
.price-card:hover { box-shadow: var(--shadow); border-color: #d8dbe0; }
.price-card--featured {
  background: var(--ink-2);
  color: #f3f4f6;
  border-color: var(--ink-2);
  box-shadow: var(--shadow-lg);
  /* no overflow:hidden — it was clipping the "Most popular" badge */
}
.price-card--featured::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse 80% 60% at 70% -10%, rgba(156, 163, 175, 0.25), transparent 60%);
  pointer-events: none;
}
.price-card--featured .price-card__desc { color: #d1d5db; }
.price-card--featured .price-card__from { color: #9ca3af; }
.price-card__badge {
  position: absolute;
  top: -13px;
  inset-inline-start: 26px;
  background: #fff;
  color: var(--ink-2);
  border: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 5px 13px;
  box-shadow: var(--shadow-sm);
  z-index: 2;
}
html[lang="ar"] .price-card__badge { letter-spacing: 0; }
.price-card__desc { color: var(--muted); font-size: 0.95rem; flex: 1; }
.price-card__from { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 18px 0 2px; }
html[lang="ar"] .price-card__from { letter-spacing: 0; }
.price-card__amount { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; margin: 0; font-variant-numeric: tabular-nums; }
.price-card__cur { font-size: 1rem; font-weight: 700; color: var(--muted); }
.price-card--featured .price-card__cur { color: #d1d5db; }

/* Whole card is clickable via the stretched "View details" link */
.price-card__link {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink-2);
  text-decoration: none;
}
.price-card__link::after {
  content: "→";
  transition: transform 0.3s var(--ease-smooth);
}
html[dir="rtl"] .price-card__link::after { content: "←"; }
.price-card:hover .price-card__link::after { transform: translateX(4px); }
html[dir="rtl"] .price-card:hover .price-card__link::after { transform: translateX(-4px); }
.price-card__link::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.price-card__link:focus-visible { outline: 3px solid var(--ink-2); outline-offset: 3px; }
.price-card--featured .price-card__link { color: #e5e7eb; }

/* Special request — the "doesn't fit any package" card */
.special-card {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 30px);
  margin-top: 22px;
  padding: 26px 30px;
  border: 1.5px dashed var(--soft);
  border-radius: var(--radius);
  background: var(--bg);
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s var(--ease-smooth), box-shadow 0.35s var(--ease-smooth), border-color 0.25s ease;
}
.special-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--ink-2); }
.special-card:focus-visible { outline: 3px solid var(--ink-2); outline-offset: 3px; }
.special-card__icon {
  flex: none;
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--ink-2);
  color: #fff;
  font-size: 1.2rem;
  transition: transform 0.4s var(--ease-smooth);
}
.special-card:hover .special-card__icon { transform: rotate(-8deg) scale(1.08); }
.special-card__text { flex: 1; min-width: 0; }
.special-card__text h3 { margin-bottom: 4px; }
.special-card__text p { margin: 0; color: var(--muted); font-size: 0.95rem; max-width: 62ch; }
.special-card__side { flex: none; text-align: end; display: grid; gap: 6px; justify-items: end; }
.special-card__side b { font-size: 1.05rem; font-weight: 800; color: var(--ink-2); }
.special-card__cta {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.special-card__cta::after { content: "→"; transition: transform 0.3s var(--ease-smooth); }
html[dir="rtl"] .special-card__cta::after { content: "←"; }
.special-card:hover .special-card__cta::after { transform: translateX(4px); }
html[dir="rtl"] .special-card:hover .special-card__cta::after { transform: translateX(-4px); }

/* Pulse the contact form when arriving from the special-request card */
@keyframes form-glow {
  0% { box-shadow: var(--shadow), 0 0 0 0 rgba(55, 65, 81, 0.35); }
  70% { box-shadow: var(--shadow), 0 0 0 16px rgba(55, 65, 81, 0); }
  100% { box-shadow: var(--shadow); }
}
.contact__form.is-highlight { animation: form-glow 1.3s var(--ease-smooth) 2; }

.maintenance {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 30px;
}
.maintenance {
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s var(--ease-smooth), box-shadow 0.35s var(--ease-smooth), border-color 0.25s ease;
}
.maintenance:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--soft); }
.maintenance:focus-visible { outline: 3px solid var(--ink-2); outline-offset: 3px; }
.maintenance h3 { margin-bottom: 4px; }
.maintenance p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.maintenance__side { display: grid; gap: 4px; justify-items: end; text-align: end; flex: none; }
.maintenance__price { font-weight: 800; font-size: 1.15rem; color: var(--ink-2) !important; }
.maintenance__cta {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.maintenance__cta::after { content: "→"; transition: transform 0.3s var(--ease-smooth); }
html[dir="rtl"] .maintenance__cta::after { content: "←"; }
.maintenance:hover .maintenance__cta { color: var(--ink-2); }
.maintenance:hover .maintenance__cta::after { transform: translateX(4px); }
html[dir="rtl"] .maintenance:hover .maintenance__cta::after { transform: translateX(-4px); }
.work__note a { color: inherit; text-decoration: none; border-bottom: 1px dashed var(--soft); transition: color 0.2s ease, border-color 0.2s ease; }
.work__note a:hover { color: var(--ink); border-color: var(--ink-2); }
@media (max-width: 560px) {
  .maintenance__side { justify-items: start; text-align: start; }
}

/* ==========================================================
   6 · Work — mini mockups
   ========================================================== */
.work__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  perspective: 1200px;
}
.work-card {
  display: block;
  color: inherit;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.4s var(--ease-smooth), border-color 0.3s ease;
  transform-style: preserve-3d;
}
.work-card:focus-visible { outline: 3px solid var(--ink-2); outline-offset: 3px; }
.work-card:hover { box-shadow: var(--shadow-lg); border-color: #d8dbe0; }
.work-card__media {
  padding: 26px 26px 0;
  background: linear-gradient(180deg, var(--bg), transparent);
  overflow: hidden;
}
.mockup--mini {
  border-radius: 12px 12px 0 0;
  box-shadow: var(--shadow);
  transform: translateY(6px);
  transition: transform 0.5s var(--ease-smooth), box-shadow 0.5s var(--ease-smooth);
}
.work-card:hover .mockup--mini { transform: translateY(-4px) scale(1.02); box-shadow: var(--shadow-lg); }
.mockup--mini .mockup__body { padding: 14px 16px 16px; gap: 10px; }

/* Mini-site typography — small but readable, real content in both languages */
.mockup__mininav { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mockup__brand {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
}
html[lang="ar"] .mockup__brand { letter-spacing: 0; }
.mockup__brand--estate { color: var(--tint-estate); }
.mockup__brand--food { color: var(--tint-food); }
.mockup__brand--clinic { color: var(--tint-clinic); }
.mockup__cta {
  font-size: 8px;
  font-weight: 700;
  color: #fff;
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}
.mockup__cta--estate { background: var(--tint-estate); }
.mockup__cta--food { background: var(--tint-food); }
.mockup__cta--clinic { background: var(--tint-clinic); }

.mockup__heroblock--estate, .mockup__heroblock--food, .mockup__heroblock--clinic {
  border-radius: 8px;
  padding: 14px;
  gap: 4px;
}
.mockup__heroblock--estate { background: linear-gradient(135deg, rgba(100, 116, 139, 0.18), rgba(100, 116, 139, 0.06)); }
.mockup__heroblock--food { background: linear-gradient(135deg, rgba(161, 98, 7, 0.16), rgba(161, 98, 7, 0.05)); }
.mockup__heroblock--clinic { background: linear-gradient(135deg, rgba(14, 116, 144, 0.15), rgba(14, 116, 144, 0.05)); }
.mockup__head { font-size: 13px; font-weight: 800; color: var(--ink); line-height: 1.25; }
.mockup__subline { font-size: 8.5px; font-weight: 600; color: var(--muted); }

/* Estate: two property cards with prices */
.mockup__props { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mockup__prop {
  display: grid;
  gap: 3px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 6px;
}
.mockup__propimg {
  height: 26px;
  border-radius: 5px;
  background: linear-gradient(135deg, rgba(100, 116, 139, 0.35), rgba(100, 116, 139, 0.12));
}
.mockup__propimg--alt { background: linear-gradient(135deg, rgba(100, 116, 139, 0.22), rgba(100, 116, 139, 0.4)); }
.mockup__prop b { font-size: 8px; font-weight: 700; color: var(--ink-2); }
.mockup__prop u { font-size: 8.5px; font-weight: 800; color: var(--tint-estate); text-decoration: none; }

/* Restaurant: menu rows with dotted leaders and prices */
.mockup__menu { display: grid; gap: 5px; }
.mockup__menu span {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 8.5px;
}
.mockup__menu b { font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.mockup__menu span::after {
  content: "";
  order: 2;
  flex: 1;
  border-bottom: 1px dotted rgba(161, 98, 7, 0.4);
}
.mockup__menu b { order: 1; }
.mockup__menu u { order: 3; font-weight: 800; color: var(--tint-food); text-decoration: none; }

/* Clinic: booking form with labels and a button */
.mockup__bookform { display: grid; gap: 5px; }
.mockup__bookform i {
  font-style: normal;
  font-size: 8px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(14, 116, 144, 0.06);
  border: 1px solid rgba(14, 116, 144, 0.18);
  border-radius: 6px;
  padding: 4px 8px;
}
.mockup__bookform b {
  font-size: 8.5px;
  font-weight: 800;
  color: #fff;
  background: var(--tint-clinic);
  border-radius: 6px;
  padding: 5px 8px;
  text-align: center;
}

.work-card__text { padding: 22px 26px 24px; }
.work-card__text h3 { margin-bottom: 6px; }
.work-card__text p { margin: 0; color: var(--muted); font-size: 0.96rem; }
.work__note {
  text-align: center;
  color: var(--muted);
  font-weight: 600;
  margin-top: 36px;
}

/* ==========================================================
   Testimonials
   ========================================================== */
.tst__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  perspective: 1000px;
}
/* Each testimonial is a small WhatsApp-style chat window —
   the same way clients actually talk to Amasi */
.tst {
  position: relative;
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.4s var(--ease-smooth), border-color 0.3s ease;
  transform-style: preserve-3d;
  display: flex;
  flex-direction: column;
}
.tst:hover { box-shadow: var(--shadow); border-color: #d8dbe0; }
.tst__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.tst__avatar {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink-2);
  color: #fff;
  font-weight: 800;
  font-size: 0.92rem;
}
.tst__who { flex: 1; min-width: 0; display: grid; }
.tst__who b { font-size: 0.93rem; }
.tst__who small { color: var(--muted); font-size: 0.78rem; font-weight: 600; }
.tst__online {
  flex: none;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #22c55e;
  position: relative;
}
.tst__online::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(34, 197, 94, 0.5);
  animation: wa-pulse 2.4s ease-out infinite;
}
.tst__chat {
  position: relative;
  flex: 1;
  background:
    radial-gradient(rgba(55, 65, 81, 0.045) 1px, transparent 1px) 0 0 / 16px 16px,
    #eef1ec;
  padding: 20px 16px 16px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.tst__typing {
  position: absolute;
  top: 20px;
  inset-inline-start: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  border-start-start-radius: 3px;
  padding: 10px 12px;
  opacity: 0;
  pointer-events: none;
}
.tst__typing u {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--soft);
  animation: dot-bounce 1.2s ease-in-out infinite;
}
.tst__typing u:nth-child(2) { animation-delay: 0.15s; }
.tst__typing u:nth-child(3) { animation-delay: 0.3s; }
.tst__bubble {
  margin: 0;
  justify-self: start;
  max-width: 95%;
  background: #fff;
  border-radius: 12px;
  border-start-start-radius: 3px;
  box-shadow: var(--shadow-sm);
  padding: 12px 14px 8px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.65;
  color: var(--ink);
}
.tst__meta {
  display: block;
  text-align: end;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--soft);
  margin-top: 5px;
}
.tst__meta b { color: #53bdeb; letter-spacing: -2px; }
.tst__rating {
  justify-self: end;
  background: #dcf5d0;
  border-radius: 12px;
  border-start-end-radius: 3px;
  box-shadow: var(--shadow-sm);
  padding: 7px 13px;
  font-size: 0.8rem;
  letter-spacing: 2.5px;
  color: #d9a821;
}
/* Conversation plays out when the card scrolls into view:
   typing dots blip, then the message pops, then the rating lands */
html.js .tst.is-visible .tst__typing { animation: typing-blip 1.15s ease both; }
html.js .tst.is-visible .tst__bubble { animation: bubble-pop 0.5s var(--ease-smooth) 1.05s both; }
html.js .tst.is-visible .tst__rating { animation: bubble-pop 0.45s var(--ease-smooth) 1.55s both; }
@keyframes typing-blip {
  0% { opacity: 0; transform: translateY(6px); }
  18% { opacity: 1; transform: none; }
  80% { opacity: 1; }
  100% { opacity: 0; }
}

/* ==========================================================
   7 · Why us — spotlight cards
   ========================================================== */
.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
/* Bento layout: featured AI card spans two columns, the process
   tracker spans the full row */
.why-item--ai {
  grid-column: span 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.why-item--ai .why-item__text { flex: 1; min-width: 0; }
.why-item--steps {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.why-item--steps .why-item__text { flex: 1; min-width: 240px; }
.why-item--steps .why-item__text p { max-width: 52ch; }

/* Cards slide in from alternating sides */
.why__grid .why-item:nth-child(odd) { --from: translateX(-40px); }
.why__grid .why-item:nth-child(even) { --from: translateX(40px); }
html[dir="rtl"] .why__grid .why-item:nth-child(odd) { --from: translateX(40px); }
html[dir="rtl"] .why__grid .why-item:nth-child(even) { --from: translateX(-40px); }
.why__grid .why-item--steps { --from: translateY(36px); }

/* AI pipeline: prompt → code → website, with flowing dashes */
.why-pipeline { display: flex; align-items: center; gap: 10px; flex: none; }
.why-pipeline__node {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(229, 231, 235, 0.2);
  color: #e5e7eb;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
}
.why-item.is-visible .why-pipeline__node:nth-child(1) { animation: node-pop 0.5s var(--ease-out-expo) 0.35s both; }
.why-item.is-visible .why-pipeline__node:nth-child(3) { animation: node-pop 0.5s var(--ease-out-expo) 0.6s both; }
.why-item.is-visible .why-pipeline__node:nth-child(5) { animation: node-pop 0.5s var(--ease-out-expo) 0.85s both; }
@keyframes node-pop { from { opacity: 0; transform: scale(0.5); } to { opacity: 1; transform: scale(1); } }
.why-pipeline__dash {
  width: 30px; height: 2px;
  background-image: linear-gradient(90deg, rgba(229, 231, 235, 0.5) 0 6px, transparent 6px 12px);
  background-size: 12px 2px;
  animation: dash-flow 1.1s linear infinite;
}
@keyframes dash-flow { to { background-position: 12px 0; } }
html[dir="rtl"] .why-pipeline__dash { animation-name: dash-flow-rtl; }
@keyframes dash-flow-rtl { to { background-position: -12px 0; } }

/* Corner visuals: bilingual glyphs and the zero-hidden-costs counter */
.why-glyphs, .why-zero b {
  background: linear-gradient(180deg, #fafbfc 20%, #a8aeb8 60%, #e5e7eb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.why-glyphs {
  position: absolute;
  top: 20px;
  inset-inline-end: 22px;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}
.why-zero {
  position: absolute;
  top: 16px;
  inset-inline-end: 22px;
  text-align: center;
}
.why-zero b { display: block; font-size: 2.1rem; font-weight: 800; line-height: 1; }
.why-zero > span { font-size: 0.66rem; font-weight: 700; color: #9ca3af; letter-spacing: 0.04em; }
html[lang="ar"] .why-zero > span { letter-spacing: 0; }
.why-item.is-visible .why-glyphs,
.why-item.is-visible .why-zero { animation: node-pop 0.6s var(--ease-out-expo) 0.5s both; }

/* Process tracker: steps light up one after another */
.why-steps { display: flex; align-items: center; flex: none; }
.why-steps u {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(229, 231, 235, 0.28);
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  place-items: center;
  color: #f3f4f6;
  font-weight: 800;
  font-size: 0.82rem;
  text-decoration: none;
}
.why-steps u:last-child { background: #f3f4f6; color: var(--ink-2); border-color: #f3f4f6; }
.why-steps i { width: 34px; height: 2px; background: rgba(229, 231, 235, 0.2); }
.why-item.is-visible .why-steps u:nth-of-type(1) { animation: step-on 0.45s var(--ease-smooth) 0.3s both; }
.why-item.is-visible .why-steps u:nth-of-type(2) { animation: step-on 0.45s var(--ease-smooth) 0.5s both; }
.why-item.is-visible .why-steps u:nth-of-type(3) { animation: step-on 0.45s var(--ease-smooth) 0.7s both; }
.why-item.is-visible .why-steps u:nth-of-type(4) { animation: step-on 0.45s var(--ease-smooth) 0.9s both; }
@keyframes step-on { from { opacity: 0.25; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } }
.why-item {
  position: relative;
  border: 1px solid rgba(229, 231, 235, 0.14);
  border-radius: var(--radius);
  padding: 26px 26px 24px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  transition: border-color 0.3s ease, background-color 0.3s ease,
              opacity 0.9s var(--ease-smooth), transform 0.9s var(--ease-smooth), filter 0.9s var(--ease-smooth);
}
.why-item:hover { border-color: rgba(229, 231, 235, 0.3); background: rgba(255, 255, 255, 0.05); }
.why-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(243, 244, 246, 0.12), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.why-item:hover::before { opacity: 1; }
.why-item__icon {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(243, 244, 246, 0.08);
  border: 1px solid rgba(229, 231, 235, 0.16);
  color: #e5e7eb;
  margin-bottom: 16px;
  transition: transform 0.4s var(--ease-smooth), background-color 0.3s ease;
}
.why-item:hover .why-item__icon { transform: rotate(-6deg) scale(1.08); background: rgba(243, 244, 246, 0.14); }
.why-item h3 { color: #fff; }
.why-item p { color: #d1d5db; margin: 0; font-size: 0.97rem; }

/* ==========================================================
   8 · Contact
   ========================================================== */
.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.contact__promise { margin-top: 18px; color: var(--muted); font-size: 0.92rem; font-weight: 600; }
.contact__form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3.5vw, 40px);
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}
.field { display: grid; gap: 7px; }
.field--row { grid-template-columns: 1fr 1fr; gap: 16px; }
.field--row > div { display: grid; gap: 7px; }
.field label { font-weight: 700; font-size: 0.9rem; }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 0.98rem;
  padding: 12px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ink-2);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(55, 65, 81, 0.1);
}
.field textarea { resize: vertical; min-height: 110px; }
.contact__hint { margin: 0; font-size: 0.85rem; color: var(--muted); text-align: center; }

/* ==========================================================
   Closing band
   ========================================================== */
.closing {
  position: relative;
  background: var(--ink);
  color: #f3f4f6;
  padding-block: clamp(80px, 10vw, 130px);
  overflow: hidden;
}
.closing__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 100% at 50% 0%, rgba(156, 163, 175, 0.18), transparent 65%);
  animation: closing-pulse 8s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes closing-pulse { from { opacity: 0.6; } to { opacity: 1; } }
.closing__inner { position: relative; text-align: center; max-width: 720px; }
.closing p { color: #d1d5db; font-size: 1.1rem; margin-bottom: 2em; }

/* ==========================================================
   Footer
   ========================================================== */
.footer { background: var(--ink); color: #9ca3af; padding-top: 56px; border-top: 1px solid rgba(229, 231, 235, 0.08); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: clamp(28px, 5vw, 64px);
  padding-bottom: 44px;
}
.footer__brand p { margin: 14px 0 0; font-size: 0.92rem; max-width: 30ch; }
.footer__follow {
  margin: 20px 0 0 !important;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7280;
}
html[lang="ar"] .footer__follow { letter-spacing: 0; }
.footer__social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.footer__social-link {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding-inline: 10px;
  border-radius: 999px;
  border: 1px solid rgba(229, 231, 235, 0.16);
  color: #9ca3af;
  text-decoration: none;
  transition: background 0.3s ease, color 0.25s ease, transform 0.3s var(--ease-smooth),
              border-color 0.25s ease, box-shadow 0.3s ease;
}
.footer__social-link:hover { transform: translateY(-2px); color: #fff; }
/* the platform name slides out of the pill on hover */
.footer__social-label {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 700;
  transition: max-width 0.45s var(--ease-smooth), opacity 0.3s ease, margin 0.45s var(--ease-smooth);
}
.footer__social-link:hover .footer__social-label { max-width: 110px; opacity: 1; margin-inline-start: 8px; }
/* brand colors on hover */
.footer__social-link--ig:hover {
  background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 62%, #285aeb 95%);
  border-color: transparent;
}
.footer__social-link--x:hover { background: #000; border-color: rgba(229, 231, 235, 0.35); }
.footer__social-link--tt:hover {
  background: #000;
  border-color: transparent;
  box-shadow: 2px 2px 0 rgba(254, 44, 85, 0.65), -2px -2px 0 rgba(37, 244, 238, 0.65);
}
.footer__social-link--gb:hover { background: #fff; color: #4285f4; border-color: transparent; }
.nav__logo--footer { color: #f3f4f6; }
.footer__col h4 {
  color: #e5e7eb;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 4px 0 14px;
}
html[lang="ar"] .footer__col h4 { letter-spacing: 0; }
.footer__col a {
  display: block;
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
  padding-block: 5px;
  transition: color 0.2s ease, transform 0.25s var(--ease-smooth);
}
.footer__col a:hover { color: #f3f4f6; transform: translateX(4px); }
html[dir="rtl"] .footer__col a:hover { transform: translateX(-4px); }
.footer__wa { display: inline-flex !important; align-items: center; gap: 8px; }
.footer__wa svg { color: #25d366; }
.footer__promise { font-size: 0.85rem; margin: 10px 0 0; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.85rem;
  padding-block: 20px;
  border-top: 1px solid rgba(229, 231, 235, 0.08);
}
.footer p { margin: 0; }
.footer__legal {
  color: #d1d5db;
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px dashed rgba(229, 231, 235, 0.3);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.footer__legal:hover { color: #fff; border-color: #fff; }

/* ==========================================================
   Back to top
   ========================================================== */
.to-top {
  position: fixed;
  inset-inline-start: 22px;
  bottom: 22px;
  z-index: 40;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  color: var(--ink-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.35s var(--ease-smooth), transform 0.35s var(--ease-smooth),
              background-color 0.2s ease;
}
.to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: #fff; }
.to-top:focus-visible { outline: 3px solid var(--ink-2); outline-offset: 3px; }

/* ==========================================================
   Floating WhatsApp
   ========================================================== */
.wa-float {
  position: fixed;
  inset-inline-end: 22px;
  bottom: 22px;
  z-index: 40;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 26px -8px rgba(18, 140, 75, 0.6);
  transition: transform 0.35s var(--ease-smooth), box-shadow 0.35s var(--ease-smooth);
}
.wa-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.5);
  animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 1; }
  70%, 100% { transform: scale(1.55); opacity: 0; }
}
.wa-float:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 16px 34px -8px rgba(18, 140, 75, 0.7); }
.wa-float:focus-visible { outline: 3px solid var(--ink-2); outline-offset: 3px; }

/* Language switch fade */
body.lang-switching main, body.lang-switching .nav { opacity: 0; }
main, .nav { transition: opacity 0.25s ease; }

/* ==========================================================
   Illustrated vignettes — the mini-UI language of the site
   ========================================================== */

/* Problem cards */
.pvis {
  height: 96px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}
.pvis__win {
  width: 72%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  transform: rotate(-2deg);
  filter: saturate(0.4) contrast(0.92);
  box-shadow: var(--shadow-sm);
}
.pvis__bar { display: flex; align-items: center; gap: 4px; padding: 5px 8px; border-bottom: 1px solid var(--line); }
.pvis__bar i { width: 6px; height: 6px; border-radius: 50%; background: #d1d5db; }
.pvis__year {
  margin-inline-start: auto;
  font-size: 8.5px;
  font-weight: 800;
  color: #b45309;
  background: rgba(180, 83, 9, 0.1);
  border-radius: 999px;
  padding: 1px 7px;
}
.pvis__body { padding: 9px 10px 11px; display: grid; gap: 5px; justify-items: start; }
.pvis__line { height: 6px; border-radius: 3px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 11px); }
.pvis__img { width: 42%; height: 16px; border-radius: 4px; background: var(--line); position: relative; }
.pvis__img::after {
  content: "✕";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 9px;
  color: var(--soft);
}

.pvis__searchbar {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 78%;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.pvis__searchbar span::after {
  content: "";
  display: inline-block;
  width: 1.5px;
  height: 12px;
  background: var(--muted);
  margin-inline-start: 3px;
  vertical-align: -2px;
  animation: caret-blink 1.1s steps(1) infinite;
}
.pvis__noresults {
  position: absolute;
  bottom: 9px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #b91c1c;
  background: rgba(185, 28, 28, 0.08);
  border-radius: 999px;
  padding: 2px 10px;
}
.pvis__maze { width: 82%; color: var(--soft); }
.pvis__maze-end { fill: var(--ink-2); }

/* Process step vignettes */
.stepvis {
  margin-top: 20px;
  height: 68px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 10px 12px;
  position: relative;
  overflow: hidden;
}
.stepvis--chat { display: grid; gap: 6px; justify-items: start; }
.stepvis__bubble { display: block; height: 12px; border-radius: 8px; }
.stepvis__bubble--them { width: 52%; background: #fff; border: 1px solid var(--line); border-start-start-radius: 3px; }
.stepvis__bubble--us { width: 40%; background: var(--ink-2); justify-self: end; border-start-end-radius: 3px; }
.stepvis__bubble--dots {
  width: 34px; height: 14px;
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-start-start-radius: 3px;
}
.stepvis__bubble--dots u {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--soft);
  animation: dot-bounce 1.2s ease-in-out infinite;
}
.stepvis__bubble--dots u:nth-child(2) { animation-delay: 0.15s; }
.stepvis__bubble--dots u:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot-bounce { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-3px); } }

.stepvis--code { display: grid; gap: 8px; align-content: center; justify-items: start; }
.stepvis--code i {
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--ink-2) 0 18%, var(--soft) 18% 40%, var(--line) 40%);
  opacity: 0.85;
}

.stepvis--check { display: grid; gap: 7px; align-content: center; }
.stepvis--check > span { display: flex; align-items: center; gap: 8px; }
.stepvis--check em {
  width: 13px; height: 13px;
  border-radius: 4px;
  border: 1.5px solid var(--soft);
  flex: none;
  position: relative;
}
.stepvis--check em.is-done { background: var(--ink-2); border-color: var(--ink-2); }
.stepvis--check em.is-done::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
}
.stepvis--check i { height: 7px; border-radius: 4px; background: var(--line); }
.stepvis__v2 {
  position: absolute;
  top: 8px;
  inset-inline-end: 10px;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 8px;
}

.stepvis--launch { display: flex; align-items: flex-end; gap: 8px; padding-inline: 16px; }
.stepvis--launch i {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--soft), var(--ink-2));
  opacity: 0.75;
  transform-origin: bottom;
}
.process__step.is-visible .stepvis--launch i { animation: bar-rise 0.9s var(--ease-smooth) both; }
.process__step.is-visible .stepvis--launch i:nth-child(2) { animation-delay: 0.12s; }
.process__step.is-visible .stepvis--launch i:nth-child(3) { animation-delay: 0.24s; }
@keyframes bar-rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.stepvis__live {
  position: absolute;
  top: 10px;
  inset-inline-end: 12px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #22c55e;
}
.stepvis__live::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(34, 197, 94, 0.5);
  animation: wa-pulse 2s ease-out infinite;
}

/* Hero phone mockup */
.hero__phone {
  position: absolute;
  inset-inline-end: -34px;
  bottom: -36px;
  z-index: 2;
  animation: chip-float 6s ease-in-out -2s infinite alternate;
}
.phone {
  width: 118px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 8px;
  box-shadow: var(--shadow-xl);
  transform: rotate(6deg);
}
html[dir="rtl"] .phone { transform: rotate(-6deg); }
.phone__notch {
  display: block;
  width: 34px; height: 5px;
  border-radius: 3px;
  background: var(--line);
  margin: 2px auto 8px;
}
.phone__screen {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 9px;
  display: grid;
  gap: 6px;
  justify-items: start;
}
.phone__dot { width: 14px; height: 14px; border-radius: 5px; background: var(--ink-2); }
.phone__line { height: 6px; border-radius: 3px; background: #dcdfe4; }
.phone__btn { width: 46px; height: 13px; border-radius: 7px; background: var(--ink-2); }
.phone__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; width: 100%; }
.phone__cards i { height: 24px; border-radius: 6px; background: #fff; border: 1px solid var(--line); }

/* Contact WhatsApp chat preview */
.chatvis {
  background: #eef2ec;
  border: 1px solid #dde5da;
  border-radius: 14px;
  padding: 14px;
  display: grid;
  gap: 8px;
  max-width: 380px;
  margin-bottom: 24px;
}
.chatvis__bubble {
  max-width: 85%;
  padding: 8px 13px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.chatvis__bubble--in {
  background: #fff;
  color: var(--ink);
  justify-self: start;
  border-start-start-radius: 3px;
}
.chatvis__bubble--out {
  background: #dcf5d0;
  color: #14532d;
  justify-self: end;
  border-start-end-radius: 3px;
}
.contact__intro.is-visible .chatvis__bubble--in { animation: bubble-pop 0.5s var(--ease-smooth) 0.45s both; }
.contact__intro.is-visible .chatvis__bubble--out { animation: bubble-pop 0.5s var(--ease-smooth) 0.85s both; }
@keyframes bubble-pop {
  from { opacity: 0; transform: translateY(10px) scale(0.92); }
  to   { opacity: 1; transform: none; }
}

/* ==========================================================
   Assembly animations — the mini-UI illustrations build
   themselves piece by piece when they scroll into view.
   All use `backwards` fill so the finished state is the
   element's natural style (hover effects keep working, and
   nothing can get stuck invisible).
   ========================================================== */
@keyframes piece-in {
  from { opacity: 0; transform: translateY(8px) scale(0.94); }
  to   { opacity: 1; transform: none; }
}
@keyframes pop-in {
  from { opacity: 0; transform: scale(0.4); }
  to   { opacity: 1; transform: none; }
}
@keyframes grow-x {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes slide-in {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: none; }
}
@keyframes draw-path {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}
/* lines grow from the reading edge */
.pvis__line, .stepvis--code i, .stepvis--check i, .mockup__line, .phone__line {
  transform-origin: left center;
}
html[dir="rtl"] .pvis__line,
html[dir="rtl"] .stepvis--code i,
html[dir="rtl"] .stepvis--check i,
html[dir="rtl"] .mockup__line,
html[dir="rtl"] .phone__line { transform-origin: right center; }

/* --- 2 · problem vignettes --- */
html.js .problem-card.is-visible .pvis__win { animation: piece-in 0.6s var(--ease-smooth) 0.3s backwards; }
html.js .problem-card.is-visible .pvis__bar i { animation: pop-in 0.4s var(--ease-out-expo) backwards; }
html.js .problem-card.is-visible .pvis__bar i:nth-child(1) { animation-delay: 0.5s; }
html.js .problem-card.is-visible .pvis__bar i:nth-child(2) { animation-delay: 0.57s; }
html.js .problem-card.is-visible .pvis__bar i:nth-child(3) { animation-delay: 0.64s; }
html.js .problem-card.is-visible .pvis__year { animation: pop-in 0.45s var(--ease-out-expo) 0.95s backwards; }
html.js .problem-card.is-visible .pvis__line { animation: grow-x 0.55s var(--ease-smooth) backwards; }
html.js .problem-card.is-visible .pvis__line:nth-of-type(1) { animation-delay: 0.7s; }
html.js .problem-card.is-visible .pvis__line:nth-of-type(2) { animation-delay: 0.82s; }
html.js .problem-card.is-visible .pvis__img { animation: piece-in 0.5s var(--ease-smooth) 0.95s backwards; }

html.js .problem-card.is-visible .pvis__searchbar { animation: piece-in 0.6s var(--ease-smooth) 0.3s backwards; }
html.js .problem-card.is-visible .pvis__noresults { animation: pop-in 0.5s var(--ease-out-expo) 1.15s backwards; }

html.js .problem-card.is-visible .pvis__maze { animation: draw-path 1.3s var(--ease-smooth) 0.35s backwards; }
html.js .problem-card.is-visible .pvis__maze-end { animation: pop-in 0.5s var(--ease-out-expo) 1.5s backwards; transform-origin: center; }

/* --- 4 · process step vignettes --- */
html.js .process__step.is-visible .stepvis { animation: piece-in 0.55s var(--ease-smooth) 0.25s backwards; }
html.js .process__step.is-visible .stepvis__bubble { animation: slide-in 0.45s var(--ease-smooth) backwards; }
html.js .process__step.is-visible .stepvis__bubble--them { animation-delay: 0.55s; }
html.js .process__step.is-visible .stepvis__bubble--us { animation-delay: 0.75s; }
html.js .process__step.is-visible .stepvis__bubble--dots { animation-delay: 0.95s; }
html.js .process__step.is-visible .stepvis--code i { animation: grow-x 0.5s var(--ease-smooth) backwards; }
html.js .process__step.is-visible .stepvis--code i:nth-child(1) { animation-delay: 0.5s; }
html.js .process__step.is-visible .stepvis--code i:nth-child(2) { animation-delay: 0.62s; }
html.js .process__step.is-visible .stepvis--code i:nth-child(3) { animation-delay: 0.74s; }
html.js .process__step.is-visible .stepvis--check > span { animation: slide-in 0.45s var(--ease-smooth) backwards; }
html.js .process__step.is-visible .stepvis--check > span:nth-child(1) { animation-delay: 0.5s; }
html.js .process__step.is-visible .stepvis--check > span:nth-child(2) { animation-delay: 0.62s; }
html.js .process__step.is-visible .stepvis--check > span:nth-child(3) { animation-delay: 0.74s; }
html.js .process__step.is-visible .stepvis--check em.is-done::after { animation: pop-in 0.4s var(--ease-out-expo) backwards; }
html.js .process__step.is-visible .stepvis--check > span:nth-child(1) em.is-done::after { animation-delay: 0.95s; }
html.js .process__step.is-visible .stepvis--check > span:nth-child(2) em.is-done::after { animation-delay: 1.12s; }
html.js .process__step.is-visible .stepvis__v2 { animation: pop-in 0.45s var(--ease-out-expo) 1.3s backwards; }
html.js .process__step.is-visible .stepvis__live { animation: pop-in 0.5s var(--ease-out-expo) 1.15s backwards; }

/* --- 6 · work-sample mini sites --- */
html.js .work-card.is-visible .mockup--mini { animation: piece-in 0.6s var(--ease-smooth) 0.25s backwards; }
html.js .work-card.is-visible .mockup__bar i { animation: pop-in 0.4s var(--ease-out-expo) backwards; }
html.js .work-card.is-visible .mockup__bar i:nth-child(1) { animation-delay: 0.45s; }
html.js .work-card.is-visible .mockup__bar i:nth-child(2) { animation-delay: 0.52s; }
html.js .work-card.is-visible .mockup__bar i:nth-child(3) { animation-delay: 0.59s; }
html.js .work-card.is-visible .mockup__brand { animation: slide-in 0.45s var(--ease-smooth) 0.65s backwards; }
html.js .work-card.is-visible .mockup__cta { animation: pop-in 0.45s var(--ease-out-expo) 0.78s backwards; }
html.js .work-card.is-visible .mockup__heroblock { animation: piece-in 0.55s var(--ease-smooth) 0.85s backwards; }
html.js .work-card.is-visible .mockup__head { animation: slide-in 0.45s var(--ease-smooth) 0.98s backwards; }
html.js .work-card.is-visible .mockup__subline { animation: slide-in 0.45s var(--ease-smooth) 1.08s backwards; }
html.js .work-card.is-visible .mockup__prop,
html.js .work-card.is-visible .mockup__menu span,
html.js .work-card.is-visible .mockup__bookform i,
html.js .work-card.is-visible .mockup__bookform b { animation: slide-in 0.45s var(--ease-smooth) backwards; }
html.js .work-card.is-visible .mockup__prop:nth-child(1),
html.js .work-card.is-visible .mockup__menu span:nth-child(1),
html.js .work-card.is-visible .mockup__bookform i:nth-child(1) { animation-delay: 1.2s; }
html.js .work-card.is-visible .mockup__prop:nth-child(2),
html.js .work-card.is-visible .mockup__menu span:nth-child(2),
html.js .work-card.is-visible .mockup__bookform i:nth-child(2) { animation-delay: 1.32s; }
html.js .work-card.is-visible .mockup__menu span:nth-child(3),
html.js .work-card.is-visible .mockup__bookform b { animation-delay: 1.44s; }

/* --- 1 · hero mockup assembles after the intro --- */
html.js .hero.is-in .mockup--hero .mockup__bar i { animation: pop-in 0.4s var(--ease-out-expo) backwards; }
html.js .hero.is-in .mockup--hero .mockup__bar i:nth-child(1) { animation-delay: 1s; }
html.js .hero.is-in .mockup--hero .mockup__bar i:nth-child(2) { animation-delay: 1.07s; }
html.js .hero.is-in .mockup--hero .mockup__bar i:nth-child(3) { animation-delay: 1.14s; }
html.js .hero.is-in .mockup--hero .mockup__nav > * { animation: slide-in 0.45s var(--ease-smooth) backwards; }
html.js .hero.is-in .mockup--hero .mockup__nav > *:nth-child(1) { animation-delay: 1.2s; }
html.js .hero.is-in .mockup--hero .mockup__nav > *:nth-child(2) { animation-delay: 1.27s; }
html.js .hero.is-in .mockup--hero .mockup__nav > *:nth-child(3) { animation-delay: 1.34s; }
html.js .hero.is-in .mockup--hero .mockup__nav > *:nth-child(4) { animation-delay: 1.41s; }
html.js .hero.is-in .mockup--hero .mockup__nav > *:nth-child(5) { animation-delay: 1.48s; }
html.js .hero.is-in .mockup--hero .mockup__line { animation: grow-x 0.6s var(--ease-smooth) backwards; }
html.js .hero.is-in .mockup--hero .mockup__line--xl { animation-delay: 1.55s; }
html.js .hero.is-in .mockup--hero .mockup__line--lg { animation-delay: 1.67s; }
html.js .hero.is-in .mockup--hero .mockup__line--sm { animation-delay: 1.79s; }
html.js .hero.is-in .mockup--hero .mockup__pills i { animation: pop-in 0.45s var(--ease-out-expo) backwards; }
html.js .hero.is-in .mockup--hero .mockup__pills i:nth-child(1) { animation-delay: 1.9s; }
html.js .hero.is-in .mockup--hero .mockup__pills i:nth-child(2) { animation-delay: 2s; }
html.js .hero.is-in .mockup--hero .mockup__cards i { animation: piece-in 0.5s var(--ease-smooth) backwards; }
html.js .hero.is-in .mockup--hero .mockup__cards i:nth-child(1) { animation-delay: 2.1s; }
html.js .hero.is-in .mockup--hero .mockup__cards i:nth-child(2) { animation-delay: 2.2s; }
html.js .hero.is-in .mockup--hero .mockup__cards i:nth-child(3) { animation-delay: 2.3s; }
/* the phone builds alongside it */
html.js .hero.is-in .phone__dot { animation: pop-in 0.45s var(--ease-out-expo) 1.5s backwards; }
html.js .hero.is-in .phone__line { animation: grow-x 0.5s var(--ease-smooth) backwards; }
html.js .hero.is-in .phone__line:nth-of-type(1) { animation-delay: 1.62s; }
html.js .hero.is-in .phone__line:nth-of-type(2) { animation-delay: 1.72s; }
html.js .hero.is-in .phone__btn { animation: pop-in 0.45s var(--ease-out-expo) 1.85s backwards; }
html.js .hero.is-in .phone__cards i { animation: piece-in 0.45s var(--ease-smooth) backwards; }
html.js .hero.is-in .phone__cards i:nth-child(1) { animation-delay: 1.98s; }
html.js .hero.is-in .phone__cards i:nth-child(2) { animation-delay: 2.08s; }

/* Pricing hairline accents */
.price-card::after {
  content: "";
  position: absolute;
  top: -1px;
  inset-inline: 20px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--soft), var(--ink-2));
  opacity: 0.45;
}
.price-card--featured::after { background: linear-gradient(90deg, #9ca3af, #f3f4f6); opacity: 0.9; }

/* Micro-interactions inside the work mockups */
.mockup__cta, .mockup__bookform b, .mockup__prop { transition: transform 0.35s var(--ease-smooth); }
.work-card:hover .mockup__cta { transform: scale(1.09); }
.work-card:hover .mockup__bookform b { transform: translateY(-1px); }
.work-card:hover .mockup__prop { transform: translateY(-2px); }

/* Dotted paper texture behind key sections */
#problems, #contact {
  background-image: radial-gradient(rgba(55, 65, 81, 0.055) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* ==========================================================
   Package detail page
   ========================================================== */
.pkg-hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(140px, 16vw, 190px);
  padding-bottom: clamp(60px, 8vw, 100px);
}
.pkg-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
  position: relative;
}
.pkg-hero__inner > * { min-width: 0; }
.pkg-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); max-width: 16ch; }
.pkg-hero__lead { color: var(--muted); font-size: 1.08rem; max-width: 48ch; }
.pkg-price { display: flex; align-items: baseline; gap: 10px; margin: 20px 0 4px; }
.pkg-price b { font-size: clamp(2.2rem, 4vw, 2.9rem); font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pkg-price span { font-weight: 700; color: var(--muted); }
.pkg-price__from { font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
html[lang="ar"] .pkg-price__from { letter-spacing: 0; }
.pkg-note { color: var(--muted); font-size: 0.9rem; max-width: 42ch; }
.pkg-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.pkgmock { max-width: 440px; width: 100%; margin-inline: auto; }
.pkgmock[hidden] { display: none; }
.pkg-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 18px;
  transition: color 0.2s ease;
}
.pkg-back:hover { color: var(--ink); }
.pkg-back::before { content: "←"; }
html[dir="rtl"] .pkg-back::before { content: "→"; }

.pkg-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.pill {
  display: inline-block;
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-2);
}
.pkg-for { display: flex; flex-wrap: wrap; gap: 10px; }
.chip--static { cursor: default; }
.chip--static:hover { transform: none; box-shadow: none; border-color: var(--line); }
.pkg-addons-note { color: var(--muted); font-size: 0.88rem; margin-top: 14px; }
.pkgmock .mockup__cta--cart { background: var(--ink-2); }

/* Hero visual cluster: ghost window behind, phone + chips around */
.pkg-visual { position: relative; }
.pkg-visual .pkgmock { position: relative; z-index: 1; }
.pkg-visual__ghost {
  position: absolute;
  inset-inline-start: -30px;
  top: -28px;
  width: 78%;
  height: 76%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  transform: rotate(-5deg);
  opacity: 0.55;
}
html[dir="rtl"] .pkg-visual__ghost { transform: rotate(5deg); }
.pkg-visual__ghost::before {
  content: "";
  display: block;
  height: 26px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  border-radius: 15px 15px 0 0;
}
.pkg-visual__phone {
  position: absolute;
  inset-inline-end: -20px;
  bottom: -30px;
  z-index: 2;
  animation: chip-float 6s ease-in-out -2s infinite alternate;
}
.pkg-chip { z-index: 2; }
.pkg-chip--1 { top: -16px; inset-inline-start: -12px; }
.pkg-chip--2 { top: 38%; inset-inline-end: -28px; animation-delay: -2.5s; }
.pkg-chip--3 { bottom: -12px; inset-inline-start: 16%; animation-delay: -4s; }

/* Compare strip */
.cmp {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.cmp-card {
  position: relative;
  display: block;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px 20px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s var(--ease-smooth), box-shadow 0.35s var(--ease-smooth), border-color 0.25s ease;
}
.cmp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d8dbe0; }
.cmp-card:focus-visible { outline: 3px solid var(--ink-2); outline-offset: 3px; }
.cmp-card h3 { font-size: 1.02rem; margin-bottom: 4px; }
.cmp-price { font-weight: 800; font-size: 1.06rem; color: var(--ink); margin: 0 0 6px; font-variant-numeric: tabular-nums; }
.cmp-line { color: var(--muted); font-size: 0.86rem; margin: 0; }
.cmp-card.is-current { background: var(--ink-2); border-color: var(--ink-2); color: #f3f4f6; box-shadow: var(--shadow-lg); }
.cmp-card.is-current .cmp-price { color: #fff; }
.cmp-card.is-current .cmp-line { color: #d1d5db; }
.cmp-card--special {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-style: dashed;
  border-color: var(--soft);
  background: var(--surface);
}
.cmp-card--special:hover { border-color: var(--ink-2); }
.cmp-card--special h3 { display: inline; margin: 0; }
.cmp-card--special .cmp-line { margin-top: 4px; }
.cmp-card--special .cmp-price { margin: 0; }
.cmp-badge {
  position: absolute;
  top: -11px;
  inset-inline-start: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
html[lang="ar"] .cmp-badge { letter-spacing: 0; }

/* FAQ accordion */
.faq { max-width: 760px; display: grid; gap: 12px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2px 22px;
  transition: box-shadow 0.3s var(--ease-smooth), border-color 0.25s ease;
}
.faq details[open] { box-shadow: var(--shadow); border-color: #d8dbe0; }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 17px 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--soft);
  flex: none;
  transition: transform 0.3s var(--ease-smooth), color 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); color: var(--ink-2); }
.faq__a { color: var(--muted); margin: 0; padding: 0 0 18px; max-width: 60ch; }

@media (max-width: 860px) {
  .pkg-hero__inner, .pkg-grid2 { grid-template-columns: 1fr; }
  .cmp { grid-template-columns: 1fr 1fr; }
  .pkg-chip--2 { inset-inline-end: -6px; }
}
@media (max-width: 560px) {
  .cmp { grid-template-columns: 1fr; }
  .pkg-visual__phone, .pkg-visual__ghost { display: none; }
}

/* ==========================================================
   Launch-offer tape — red ribbon "taped" across the pricing section
   ========================================================== */
/* A fabric ribbon nailed to the hero's top-left corner,
   hanging loose and swaying around the nail */
.launch-tape {
  position: absolute;
  top: 88px;
  left: clamp(14px, 4vw, 60px);
  z-index: 6;
  width: 176px;
  display: block;
  text-decoration: none;
  cursor: pointer;
  filter: drop-shadow(0 14px 16px rgba(31, 41, 55, 0.25));
  transition: filter 0.25s ease;
}
.launch-tape:hover { filter: drop-shadow(0 18px 22px rgba(31, 41, 55, 0.35)) brightness(1.04); }
.launch-tape:focus-visible { outline: 3px solid #b91c1c; outline-offset: 5px; border-radius: 4px; }
/* the nail head */
.launch-tape__pin {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 13px; height: 13px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fafbfc, #9ca3af 55%, #6b7280);
  border: 1px solid #6b7280;
  box-shadow: 0 2px 4px rgba(31, 41, 55, 0.4);
  z-index: 2;
}
/* the ribbon itself: woven fabric + grain + swallowtail tail */
/* the vintage screen: silver plastic shell hanging from the nail */
.crt {
  display: block;
  position: relative;
  background: linear-gradient(160deg, #d3d7dd, #a9afb8 60%, #8f95a0);
  border-radius: 14px;
  padding: 10px 10px 15px;
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.75),
    inset 0 -3px 5px rgba(31, 41, 55, 0.28),
    0 18px 28px -12px rgba(31, 41, 55, 0.5);
  transform-origin: 50% -8px; /* pivot at the nail */
  animation: tape-sway 5.2s ease-in-out infinite alternate;
}
@keyframes tape-sway {
  from { transform: rotate(-3.5deg); }
  to   { transform: rotate(2deg); }
}
/* the dark glass with a pixel-matrix grid over the glowing text */
.crt__screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 15px 12px 17px;
  border-radius: 8px;
  border: 2px solid #4b525d;
  background: radial-gradient(130% 100% at 50% 15%, #241012, #150809 72%);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.85);
}
/* the pixel grid sits ON TOP of the text, chopping it into LED dots */
.crt__screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.38) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.38) 0 1px, transparent 1px 3px);
  pointer-events: none;
}
/* curved-glass reflection */
.crt__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.09) 8%, transparent 30%);
  pointer-events: none;
}
.crt__title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #ff5a5a;
  text-shadow: 0 0 6px rgba(255, 90, 90, 0.85), 0 0 16px rgba(220, 38, 38, 0.5);
  animation: led-blink 3s steps(1) infinite;
}
@keyframes led-blink {
  0%, 91%, 95%, 100% { opacity: 1; }
  93% { opacity: 0.3; }
}
.crt__ticker { width: 100%; overflow: hidden; }
.crt__ticker-text {
  display: inline-block;
  white-space: nowrap;
  font-size: 0.74rem;
  font-weight: 700;
  color: #ff9d9d;
  text-shadow: 0 0 5px rgba(255, 120, 120, 0.7);
  animation: crt-ticker 9s linear infinite;
}
@keyframes crt-ticker { from { transform: translateX(-110%); } to { transform: translateX(110%); } }
html[dir="ltr"] .crt__ticker-text { animation-name: crt-ticker-ltr; }
@keyframes crt-ticker-ltr { from { transform: translateX(110%); } to { transform: translateX(-110%); } }
/* CTA styled like a selected menu item on the screen */
.crt__cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ff5a5a;
  color: #180a0b;
  border-radius: 3px;
  padding: 5px 13px;
  font-size: 0.76rem;
  font-weight: 800;
  box-shadow: 0 0 12px rgba(255, 90, 90, 0.65);
  transition: box-shadow 0.25s ease;
}
.crt__cta::after { content: "→"; transition: transform 0.3s var(--ease-smooth); }
html[dir="rtl"] .crt__cta::after { content: "←"; }
.launch-tape:hover .crt__cta { box-shadow: 0 0 18px rgba(255, 90, 90, 0.9); }
.launch-tape:hover .crt__cta::after { transform: translateX(3px); }
html[dir="rtl"] .launch-tape:hover .crt__cta::after { transform: translateX(-3px); }
/* a scanline sweeping down the glass */
.crt__scan {
  position: absolute;
  inset-inline: 0;
  top: -30%;
  height: 24%;
  z-index: 2;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.07), transparent);
  animation: crt-scan 4.5s linear infinite;
  pointer-events: none;
}
@keyframes crt-scan { to { top: 115%; } }
/* power LED on the shell */
.crt__led {
  position: absolute;
  bottom: 5px;
  inset-inline-end: 11px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 7px rgba(34, 197, 94, 0.9);
  animation: led-breathe 2.2s ease-in-out infinite alternate;
}
@keyframes led-breathe { from { opacity: 1; } to { opacity: 0.45; } }
/* narrower screens: the corner would collide with the headline —
   the ribbon joins the flow between the buttons and the mockup */
@media (max-width: 1100px) {
  .launch-tape {
    position: static;
    width: 192px;
    margin: -16px auto clamp(34px, 5vw, 48px);
  }
}

/* ==========================================================
   Interaction polish — page fade + press feedback
   ========================================================== */
.page-veil {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--bg);
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.32s var(--ease-smooth);
}
.page-veil.is-out { opacity: 0; }
/* if JS never runs, the veil never exists — nothing can cover the page */

.is-pressed { transform: scale(0.976) !important; transition-duration: 0.09s !important; }
.btn.is-pressed { transform: translateY(1px) scale(0.978) !important; }
.proj-card.is-pressed, .work-card.is-pressed, .special-card.is-pressed, .cmp-card.is-pressed {
  transform: translateY(-2px) scale(0.99) !important;
}

/* subpage nav keeps its quote button on small screens */
.nav--sub .nav__actions .btn { display: inline-flex; }
@media (max-width: 620px) {
  .nav--sub .nav__actions .btn { padding: 8px 14px; font-size: 0.82rem; }
  .nav--sub .lang-toggle { padding: 7px 12px; font-size: 0.82rem; }
}

/* ==========================================================
   Projects gallery + project detail
   ========================================================== */
.work-hero, .prj-hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(120px, 15vw, 168px);
  padding-bottom: clamp(34px, 5vw, 54px);
}
.work-hero h1, .prj-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); max-width: 18ch; }
.work-note-concept {
  margin-top: 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--soft);
  border-radius: 10px;
  padding: 10px 15px;
  display: inline-block;
  max-width: 60ch;
}

/* filter chips */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; }
.filter-chip {
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-2);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease-smooth);
}
.filter-chip:hover { border-color: var(--soft); transform: translateY(-2px); }
.filter-chip:focus-visible { outline: 3px solid var(--ink-2); outline-offset: 2px; }
.filter-chip.is-on { background: var(--ink-2); border-color: var(--ink-2); color: #fff; }
.filters__count {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  margin-inline-start: auto;
}
html[lang="ar"] .filters__count { font-family: var(--font-ar); }

/* project cards */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.proj-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth), border-color 0.3s ease;
}
.proj-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #d8dbe0; }
.proj-card:focus-visible { outline: 3px solid var(--ink-2); outline-offset: 3px; }
.proj-card__badge {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 10px;
}
html[lang="ar"] .proj-card__badge { letter-spacing: 0; }
.proj-card__media {
  display: block;
  padding: 24px 24px 0;
  background: linear-gradient(180deg, var(--bg), transparent);
  overflow: hidden;
}
.proj-card__media .mockup--mini {
  border-radius: 12px 12px 0 0;
  box-shadow: var(--shadow);
  transform: translateY(6px);
  transition: transform 0.5s var(--ease-smooth), box-shadow 0.5s var(--ease-smooth);
}
.proj-card:hover .mockup--mini { transform: translateY(-3px) scale(1.02); box-shadow: var(--shadow-lg); }
.proj-card__body { display: block; padding: 22px 24px 24px; }
.proj-card__industry {
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
html[lang="ar"] .proj-card__industry { letter-spacing: 0; }
.proj-card__body h3 { margin-bottom: 6px; }
.proj-card__body p { color: var(--muted); font-size: 0.94rem; margin: 0 0 14px; }
.proj-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.proj-tag {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink-2);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 11px;
}
.proj-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--ink-2);
}
.proj-card__cta::after { content: "→"; transition: transform 0.3s var(--ease-smooth); }
html[dir="rtl"] .proj-card__cta::after { content: "←"; }
.proj-card:hover .proj-card__cta::after { transform: translateX(4px); }
html[dir="rtl"] .proj-card:hover .proj-card__cta::after { transform: translateX(-4px); }

/* ---- project detail ---- */
.prj-head {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: end;
}
.prj-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px dashed var(--soft);
  border-radius: 999px;
  padding: 5px 13px;
  margin-bottom: 16px;
}
html[lang="ar"] .prj-badge { letter-spacing: 0; }
.prj-industry {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
html[lang="ar"] .prj-industry { letter-spacing: 0; }
.prj-tagline { color: var(--muted); font-size: 1.08rem; max-width: 48ch; margin-bottom: 16px; }
.prj-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.prj-hint { color: var(--muted); font-size: 0.88rem; font-weight: 600; }

/* the big screen stage + phone beside it */
.prj-showcase {
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: clamp(22px, 3vw, 40px);
  align-items: start;
}
.mockup--stage { border-radius: 16px; box-shadow: var(--shadow-xl); }
.mockup--stage .mockup__body { padding: 26px 30px 30px; gap: 16px; }
.mockup--stage .mockup__brand { font-size: 13px; }
.mockup--stage .mockup__cta { font-size: 11px; padding: 5px 13px; }
.mockup--stage .mockup__head { font-size: 21px; }
.mockup--stage .mockup__subline { font-size: 12px; }
.mockup--stage .mockup__heroblock { padding: 24px 22px; gap: 7px; }
.mockup--stage .mockup__prop b { font-size: 11px; }
.mockup--stage .mockup__prop u { font-size: 12px; }
.mockup--stage .mockup__propimg { height: 46px; }
.mockup--stage .mockup__menu span { font-size: 12px; }
.mockup--stage .mockup__bookform i { font-size: 11px; padding: 7px 12px; }
.mockup--stage .mockup__bookform b { font-size: 12px; padding: 8px 12px; }
.prj-side { display: grid; gap: 10px; justify-items: center; }
.prj-side__label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
html[lang="ar"] .prj-side__label { letter-spacing: 0; }
.prj-phone {
  width: 176px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 10px;
  box-shadow: var(--shadow-xl);
}
.prj-phone__notch {
  display: block;
  width: 44px; height: 5px;
  border-radius: 3px;
  background: var(--line);
  margin: 2px auto 9px;
}
.prj-phone__screen { border-radius: 14px; overflow: hidden; }
.prj-phone__screen .mockup { border: 0; border-radius: 0; box-shadow: none; }

/* screen thumbnails */
.prj-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-top: clamp(24px, 3vw, 34px);
  max-width: 760px;
}
.prj-thumb {
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}
.prj-thumb__frame {
  display: block;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-smooth), border-color 0.25s ease, box-shadow 0.35s var(--ease-smooth);
}
.prj-thumb:hover .prj-thumb__frame { transform: translateY(-3px); box-shadow: var(--shadow); }
.prj-thumb.is-on .prj-thumb__frame { border-color: var(--ink-2); box-shadow: var(--shadow); }
.prj-thumb:focus-visible .prj-thumb__frame { outline: 3px solid var(--ink-2); outline-offset: 2px; }
.prj-thumb__label { font-size: 0.84rem; font-weight: 700; color: var(--muted); }
.prj-thumb.is-on .prj-thumb__label { color: var(--ink); }
.mockup--thumb { box-shadow: none; border-radius: 8px; }
.mockup--thumb .mockup__bar { padding: 5px 8px; gap: 3px; }
.mockup--thumb .mockup__bar i { width: 4px; height: 4px; }
.mockup--thumb .mockup__body { padding: 9px 10px 11px; gap: 7px; }
.mockup--thumb .mockup__brand { font-size: 6.5px; }
.mockup--thumb .mockup__cta { font-size: 6px; padding: 2px 6px; }
.mockup--thumb .mockup__head { font-size: 9px; }
.mockup--thumb .mockup__subline { font-size: 6.5px; }
.mockup--thumb .mockup__heroblock { padding: 9px 8px; gap: 3px; }
.mockup--thumb .mockup__prop b, .mockup--thumb .mockup__prop u { font-size: 6px; }
.mockup--thumb .mockup__propimg { height: 18px; }
.mockup--thumb .mockup__menu span { font-size: 6.5px; }
.mockup--thumb .mockup__bookform i, .mockup--thumb .mockup__bookform b { font-size: 6px; padding: 3px 6px; }

.prj-grid2 {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

/* --- page furniture that makes a screen read like a real page --- */
.mockup__navlinks { display: none; align-items: center; gap: 10px; margin-inline: auto; }
.mockup__navlinks em { width: 22px; height: 5px; border-radius: 3px; background: var(--line); }
.mockup--stage .mockup__navlinks, .mockup--mini .mockup__navlinks { display: flex; }
.mockup--mini .mockup__navlinks em { width: 14px; height: 4px; }

/* hero becomes text + a visual, instead of one empty box */
.mockup__heroblock:has(.mockup__herotext) {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 14px;
}
.mockup__herotext { display: grid; gap: 5px; justify-items: start; }
.mockup__herobtn {
  margin-top: 4px;
  font-size: 7.5px;
  font-weight: 800;
  color: #fff;
  border-radius: 999px;
  padding: 4px 11px;
}
.mockup__herobtn--estate { background: var(--tint-estate); }
.mockup__herobtn--food { background: var(--tint-food); }
.mockup__herobtn--clinic { background: var(--tint-clinic); }
.mockup__herobtn--store { background: var(--tint-store); }
.mockup__herobtn--fit { background: var(--tint-fit); }
.mockup__herobtn--build { background: var(--tint-build); }
.mockup__herovis {
  align-self: stretch;
  min-height: 46px;
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.25));
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 6px rgba(31, 41, 55, 0.08);
  position: relative;
  overflow: hidden;
}
.mockup__herovis::after {
  content: "";
  position: absolute;
  inset: 22% 18% 18%;
  border-radius: 5px;
  background: currentColor;
  opacity: 0.22;
}
.mockup__herovis--estate { color: var(--tint-estate); }
.mockup__herovis--food { color: var(--tint-food); }
.mockup__herovis--clinic { color: var(--tint-clinic); }
.mockup__herovis--store { color: var(--tint-store); }
.mockup__herovis--fit { color: var(--tint-fit); }
.mockup__herovis--build { color: var(--tint-build); }

/* small section label above the content block */
.mockup__seclabel {
  display: none;
  font-size: 8px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 2px;
}
html[lang="ar"] .mockup__seclabel { letter-spacing: 0; }
.mockup--stage .mockup__seclabel { display: block; font-size: 11px; }

/* footer strip */
.mockup__foot { display: none; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); margin-top: 2px; }
.mockup__foot i { height: 6px; flex: 1; border-radius: 3px; background: var(--line); }
.mockup--stage .mockup__foot { display: flex; }
.mockup--stage .mockup__foot i { height: 8px; }

/* stage proportions — a page, not a stretched form */
.mockup--stage .mockup__heroblock:has(.mockup__herotext) { gap: 26px; padding: 30px 26px; }
.mockup--stage .mockup__herobtn { font-size: 11px; padding: 6px 16px; }
.mockup--stage .mockup__herovis { min-height: 96px; }
.mockup--stage .mockup__bookform { max-width: 62%; gap: 8px; }
.mockup--stage .mockup__menu { max-width: 82%; }
.mockup--stage .mockup__navlinks em { width: 34px; height: 7px; }
.mockup--mini .mockup__herovis { min-height: 38px; }
.mockup--mini .mockup__herobtn { font-size: 6.5px; padding: 3px 8px; }
.mockup--thumb .mockup__herotext { gap: 3px; }
.mockup--thumb .mockup__herobtn { font-size: 5px; padding: 2px 6px; }
.mockup--thumb .mockup__herovis { min-height: 24px; }
.mockup--thumb .mockup__url { display: none; }
.mockup--mini .mockup__url { display: none; }

/* caption describing what a screen is */
.prj-caption {
  margin-top: 14px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  align-items: flex-start;
  gap: 9px;
  max-width: 62ch;
}
.prj-caption::before {
  content: "▪";
  color: var(--ink-2);
  flex: none;
  line-height: 1.5;
}

/* extra mini-site blocks used by project screens */
.mockup__feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mockup__feats span {
  display: grid;
  gap: 5px;
  justify-items: center;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 5px;
}
.mockup__feats i {
  width: 14px; height: 14px;
  border-radius: 4px;
  background: currentColor;
  opacity: 0.35;
}
.mockup__feats b { font-size: 7.5px; font-weight: 700; color: var(--ink-2); line-height: 1.3; }
.mockup--stage .mockup__feats b { font-size: 11px; }
.mockup--thumb .mockup__feats b { font-size: 5.5px; }
.mockup__gal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.mockup__gal i {
  height: 34px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.16), rgba(31, 41, 55, 0.05));
}
.mockup__gal i.is-alt { background: linear-gradient(135deg, rgba(31, 41, 55, 0.07), rgba(31, 41, 55, 0.2)); }
.mockup--stage .mockup__gal i { height: 56px; }
.mockup--thumb .mockup__gal i { height: 16px; }

/* industry tints for the newer projects */
.mockup--store .mockup__brand, .mockup--store .mockup__prop u { color: var(--tint-store); }
.mockup--store .mockup__cta, .mockup--store .mockup__bookform b { background: var(--tint-store); }
.mockup--store .mockup__heroblock { background: linear-gradient(135deg, rgba(124, 92, 191, 0.16), rgba(124, 92, 191, 0.05)); }
.mockup--fit .mockup__brand, .mockup--fit .mockup__prop u { color: var(--tint-fit); }
.mockup--fit .mockup__cta, .mockup--fit .mockup__bookform b { background: var(--tint-fit); }
.mockup--fit .mockup__heroblock { background: linear-gradient(135deg, rgba(21, 128, 61, 0.15), rgba(21, 128, 61, 0.05)); }
.mockup--build .mockup__brand, .mockup--build .mockup__prop u { color: var(--tint-build); }
.mockup--build .mockup__cta, .mockup--build .mockup__bookform b { background: var(--tint-build); }
.mockup--build .mockup__heroblock { background: linear-gradient(135deg, rgba(180, 83, 9, 0.15), rgba(180, 83, 9, 0.05)); }
.mockup--estate .mockup__feats i { color: var(--tint-estate); }
.mockup--food .mockup__feats i { color: var(--tint-food); }
.mockup--clinic .mockup__feats i { color: var(--tint-clinic); }
.mockup--store .mockup__feats i { color: var(--tint-store); }
.mockup--fit .mockup__feats i { color: var(--tint-fit); }
.mockup--build .mockup__feats i { color: var(--tint-build); }

@media (max-width: 1020px) {
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .prj-head { grid-template-columns: 1fr; align-items: start; }
  .prj-showcase { grid-template-columns: 1fr; }
  .prj-side { justify-items: start; }
  .prj-grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .proj-grid { grid-template-columns: 1fr; }
  .prj-stats { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================
   Legal page (privacy + terms) — vintage terminal document
   ========================================================== */
.legal-hero {
  padding-top: clamp(120px, 15vw, 165px);
  padding-bottom: clamp(30px, 4vw, 46px);
  background-image: radial-gradient(rgba(55, 65, 81, 0.055) 1px, transparent 1px);
  background-size: 22px 22px;
}
/* the document header, framed like an old monitor */
.legal-crt {
  max-width: 760px;
  background: linear-gradient(160deg, #d3d7dd, #a9afb8 60%, #8f95a0);
  border-radius: 16px;
  padding: 10px;
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.75),
    inset 0 -3px 5px rgba(31, 41, 55, 0.28),
    var(--shadow-lg);
}
.legal-crt__bar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 2px 6px 9px;
}
.legal-crt__led {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 7px rgba(34, 197, 94, 0.9);
  animation: led-breathe 2.2s ease-in-out infinite alternate;
  flex: none;
}
.legal-crt__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #4b525d;
}
.legal-crt__screen {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 4vw, 40px) clamp(20px, 3vw, 34px) clamp(28px, 4vw, 38px);
  border-radius: 9px;
  border: 2px solid #4b525d;
  background: radial-gradient(130% 100% at 50% 12%, #253038, #131a20 74%);
  box-shadow: inset 0 0 26px rgba(0, 0, 0, 0.85);
}
/* pixel matrix over the glowing text */
.legal-crt__screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.32) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.32) 0 1px, transparent 1px 3px);
  pointer-events: none;
}
.legal-crt__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.07) 8%, transparent 32%);
  pointer-events: none;
}
.legal-crt__screen h1 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  margin-bottom: 12px;
  color: #d9e6dd;
  text-shadow: 0 0 8px rgba(160, 230, 190, 0.5), 0 0 22px rgba(34, 197, 94, 0.25);
}
.legal-crt__sub {
  color: #9fb3a8;
  font-size: 1rem;
  max-width: 46ch;
  margin-bottom: 14px;
  text-shadow: 0 0 6px rgba(160, 230, 190, 0.25);
}
.legal-crt__date {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: #6ee7a8;
  margin: 0;
  text-shadow: 0 0 7px rgba(110, 231, 168, 0.6);
}

/* jump links, styled like little pixel keys */
.legal-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.legal-jump a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink-2);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  padding: 8px 15px;
  box-shadow: 0 2px 0 var(--soft);
  transition: transform 0.2s var(--ease-smooth), box-shadow 0.2s var(--ease-smooth), border-color 0.2s ease;
}
html[lang="ar"] .legal-jump a { font-family: var(--font-ar); }
.legal-jump a:hover { transform: translateY(2px); box-shadow: 0 0 0 var(--soft); border-color: var(--ink-2); }

/* the document body — each half framed as a terminal window
   printing onto dot-matrix paper */
.legal-doc { max-width: 860px; }
.legal-panel {
  border: 1.5px solid #cfd4da;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}
.legal-panel__bar {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 18px;
  background: linear-gradient(180deg, #3f4854, #2b323c);
  border-bottom: 2px solid #1f2937;
}
.legal-panel__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #6ee7a8;
  box-shadow: 0 0 8px rgba(110, 231, 168, 0.85);
  flex: none;
  animation: led-breathe 2.4s ease-in-out infinite alternate;
}
.legal-h {
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  font-weight: 800;
  margin: 0;
  color: #f3f4f6;
  flex: 1;
  min-width: 0;
}
.legal-h::before {
  content: "> ";
  font-family: var(--font-mono);
  color: #6ee7a8;
}
.legal-panel__file {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #9ca3af;
  flex: none;
}
/* dot-matrix paper */
.legal-panel__body {
  position: relative;
  padding: clamp(24px, 3.4vw, 38px);
  background-color: #fcfcfd;
  background-image: radial-gradient(rgba(55, 65, 81, 0.06) 1px, transparent 1px);
  background-size: 4px 4px;
}
/* blinking cursor where the printout ends */
.legal-panel__body::after {
  content: "";
  display: block;
  width: 9px;
  height: 16px;
  background: var(--ink-2);
  margin-top: 4px;
  animation: caret-blink 1.1s steps(1) infinite;
}

.legal-sec {
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px dashed #d9dde2;
}
.legal-sec:last-of-type { border-bottom: 0; padding-bottom: 6px; margin-bottom: 8px; }
.legal-sec h3 {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1.04rem;
  margin-bottom: 11px;
}
/* section number as a small LED readout */
.legal-sec__num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: #6ee7a8;
  background: #262d38;
  border-radius: 3px;
  padding: 3px 8px;
  flex: none;
  text-shadow: 0 0 6px rgba(110, 231, 168, 0.7);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
}
.legal-sec p {
  color: #4b5563;
  line-height: 1.85;
  margin: 0 0 10px;
  max-width: 72ch;
}
.legal-sec ul {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  max-width: 72ch;
}
.legal-sec li {
  position: relative;
  color: #4b5563;
  line-height: 1.8;
  padding-inline-start: 24px;
}
.legal-sec li::before {
  content: "▪";
  position: absolute;
  inset-inline-start: 4px;
  color: var(--ink-2);
  font-size: 0.85rem;
}

.legal-contact {
  margin-top: 44px;
  padding: clamp(24px, 3vw, 32px);
  background: var(--bg);
  border: 1.5px dashed var(--soft);
  border-radius: var(--radius);
}
.legal-contact h3 { margin-bottom: 8px; }
.legal-contact p { color: var(--muted); max-width: 60ch; }

/* ==========================================================
   FAQ chatbot — same chat-window language as the testimonials
   ========================================================== */
.bot-toggle {
  position: fixed;
  inset-inline-end: 22px;
  bottom: 90px;
  z-index: 45;
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 0;
  background: var(--ink-2);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: transform 0.35s var(--ease-smooth), background-color 0.25s ease;
}
.bot-toggle:hover { transform: translateY(-3px); background: var(--ink); }
.bot-toggle:focus-visible { outline: 3px solid var(--ink-2); outline-offset: 3px; }
.bot-toggle svg { grid-area: 1 / 1; }
.bot-toggle b {
  grid-area: 1 / 1;
  font-size: 0.62rem;
  line-height: 1;
  transform: translateY(-1px);
}
.bot-toggle__dot {
  position: absolute;
  top: 3px;
  inset-inline-end: 3px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #fff;
}
.bot-toggle.is-open .bot-toggle__dot { display: none; }

.bot-panel {
  position: fixed;
  inset-inline-end: 22px;
  bottom: 156px;
  z-index: 60;
  width: min(92vw, 370px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(16px) scale(0.95);
  pointer-events: none;
  transform-origin: bottom right;
  transition: opacity 0.3s var(--ease-smooth), transform 0.35s var(--ease-smooth);
}
html[dir="rtl"] .bot-panel { transform-origin: bottom left; }
.bot-panel.is-open { opacity: 1; transform: none; pointer-events: auto; }

.bot__bar {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.bot__avatar {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--ink-2);
  display: grid;
  place-items: center;
}
.bot__avatar img { height: 20px; width: auto; }
.bot__who { flex: 1; min-width: 0; display: grid; }
.bot__who b { font-size: 0.92rem; }
.bot__who small { color: var(--muted); font-size: 0.74rem; font-weight: 600; }
.bot__online {
  flex: none;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #22c55e;
  position: relative;
}
.bot__online::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(34, 197, 94, 0.5);
  animation: wa-pulse 2.4s ease-out infinite;
}
.bot__close {
  background: none;
  border: 0;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 8px;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.bot__close:hover { color: var(--ink); background: var(--line); }

.bot__chat {
  height: min(300px, 42vh);
  overflow-y: auto;
  background:
    radial-gradient(rgba(55, 65, 81, 0.045) 1px, transparent 1px) 0 0 / 16px 16px,
    #eef1ec;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bot__msg {
  max-width: 86%;
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.6;
  box-shadow: var(--shadow-sm);
  animation: bubble-pop 0.4s var(--ease-smooth) both;
}
.bot__msg--bot {
  background: #fff;
  color: var(--ink);
  align-self: flex-start;
  border-start-start-radius: 3px;
}
.bot__msg--user {
  background: #dcf5d0;
  color: #14532d;
  align-self: flex-end;
  border-start-end-radius: 3px;
}
.bot__typing {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  border-start-start-radius: 3px;
  padding: 10px 12px;
  animation: bubble-pop 0.3s var(--ease-smooth) both;
}
.bot__typing u {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--soft);
  animation: dot-bounce 1.2s ease-in-out infinite;
}
.bot__typing u:nth-child(2) { animation-delay: 0.15s; }
.bot__typing u:nth-child(3) { animation-delay: 0.3s; }

.bot__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 12px 14px;
  background: #fff;
  border-top: 1px solid var(--line);
  max-height: 118px;
  overflow-y: auto;
}
.bot__chip {
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-2);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.25s var(--ease-smooth);
}
.bot__chip:hover { border-color: var(--ink-2); background: #fff; transform: translateY(-1px); }
.bot__chip:focus-visible { outline: 2px solid var(--ink-2); outline-offset: 2px; }

.bot__wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px;
  background: #fff;
  border-top: 1px solid var(--line);
  color: var(--wa);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.bot__wa:hover { background: #f2faf4; }

@media (max-width: 560px) {
  .bot-toggle { bottom: 84px; inset-inline-end: 16px; width: 50px; height: 50px; }
  .bot-panel { inset-inline-end: 4vw; bottom: 144px; }
}

/* ==========================================================
   Reduced motion
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero__fade, .hero__eyebrow { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .hero__title .w > span { transform: none !important; transition: none !important; animation: none !important; }
  .preloader { display: none; }
  body.is-loading { overflow: auto; }
  .marquee__track, .hero__orb, .hero__ring, .hero__grid, .mockup--hero, .hero__chip,
  .mockup__sheen, .wa-float::after, .closing__bg { animation: none !important; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1020px) {
  .pricing__grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .process__line { display: none; }
}

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__actions .btn { display: none; }
  .nav__burger { display: flex; }
  .problems__grid, .work__grid, .tst__grid { grid-template-columns: 1fr; }
  .included__layout, .contact__layout { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: 1fr 1fr; }
  .why-item--ai { grid-column: 1 / -1; flex-wrap: wrap; }
  .hero__chip--1 { inset-inline-start: 2%; }
  .hero__chip--2 { inset-inline-end: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__phone { inset-inline-end: -8px; bottom: -24px; }
  .phone { width: 96px; }
}

@media (max-width: 560px) {
  .process, .pricing__grid, .why__grid { grid-template-columns: 1fr; }
  .why-item--ai, .why-item--steps { grid-column: auto; flex-direction: column; align-items: flex-start; }
  .why-pipeline, .why-steps { align-self: center; }
  .field--row { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .maintenance { flex-direction: column; align-items: flex-start; }
  .special-card { flex-direction: column; align-items: flex-start; }
  .special-card__side { justify-items: start; text-align: start; }
  .hero__chip { display: none; }
  .hero__phone { display: none; }
  .marquee__item { font-size: 0.9rem; }
  .footer__grid { grid-template-columns: 1fr; }
  .to-top { width: 42px; height: 42px; inset-inline-start: 16px; bottom: 16px; }
}
