/* ==========================================================
   Malzam Al Massiah — ملز الماسية — malzalmassiah.com
   ========================================================== */

:root {
  --ink: #14112e;
  --ink-2: #1c1840;
  --ink-3: #2a2560;
  --ink-deep: #0d0b22;
  --frost: #f6f5fb;
  --frost-2: #ecebf6;
  --card: #ffffff;

  --facet: #5b4cf5;
  --facet-2: #8075ff;
  --facet-d: #4334d8;
  --ice: #9fe3f0;
  --teal: #0e9fb5;
  --spark: #d6f55a;

  --muted: #5f5b7a;
  --muted-light: rgba(236, 235, 246, .68);
  --line: rgba(20, 17, 46, .1);
  --line-light: rgba(236, 235, 246, .12);

  --prism: linear-gradient(110deg, #9d93ff 0%, #c3bcff 30%, #9fe3f0 62%, #d6f55a 100%);
  --prism-ink: linear-gradient(110deg, #5b4cf5 0%, #7c4ff0 45%, #0e9fb5 100%);

  --f-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-display: 'Bricolage Grotesque', 'Manrope', system-ui, sans-serif;
  --f-num: 'Bricolage Grotesque', 'Manrope', system-ui, sans-serif;

  --radius: 24px;
  --cut: 18px;
  --ease: cubic-bezier(.22, .8, .12, 1);
  --container: 1260px;
  --gutter: clamp(16px, 4vw, 40px);
}

html[lang="ar"] {
  --f-body: 'Alexandria', system-ui, Tahoma, sans-serif;
  --f-display: 'Reem Kufi', 'Alexandria', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--frost);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body { font-size: 16.5px; line-height: 1.85; font-weight: 300; }
html[lang="ar"] b, html[lang="ar"] strong { font-weight: 600; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.1; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--facet); color: #fff; }
:focus-visible { outline: 2px solid var(--facet); outline-offset: 3px; }
.dark :focus-visible { outline-color: var(--spark); }

.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(80px, 11vw, 140px); position: relative; }
.dark { background: var(--ink); color: var(--frost); }

/* Cut-corner signature shape (diamond facet) */
.cut {
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}

/* ---------- Progress ---------- */
.progress { position: fixed; inset-inline: 0; top: 0; height: 3px; z-index: 60; }
.progress span {
  display: block; height: 100%; width: 100%;
  background: var(--prism);
  transform-origin: left; transform: scaleX(0);
}
[dir="rtl"] .progress span { transform-origin: right; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--ink);
  transition: opacity .6s var(--ease), visibility .6s;
}
.loader-gem { width: 72px; height: 72px; animation: loaderGem 1.4s var(--ease) infinite; }
@keyframes loaderGem {
  0% { transform: scale(.8) rotate(0); opacity: .5; }
  50% { transform: scale(1.05) rotate(0); opacity: 1; filter: drop-shadow(0 0 24px rgba(159, 227, 240, .7)); }
  100% { transform: scale(.8); opacity: .5; }
}
html:not(.is-loading) .loader { opacity: 0; visibility: hidden; }

/* ---------- Buttons ---------- */
.btn {
  --cut: 10px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 24px;
  font-weight: 600; font-size: 15px; line-height: 1;
  white-space: nowrap;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
  will-change: transform;
}
html[lang="ar"] .btn { font-weight: 500; }
.btn:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--spark); }
.btn-sm { padding: 11px 18px; font-size: 14px; --cut: 8px; }
.btn-lg { padding: 19px 30px; font-size: 16px; --cut: 12px; }
.btn-block { width: 100%; }
.btn .arrow { width: 18px; height: 18px; transition: transform .35s var(--ease); }
[dir="rtl"] .btn .arrow { transform: scaleX(-1); }
.btn:hover .arrow { transform: translateX(4px); }
[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(4px); }

.btn-primary { background: var(--facet); color: #fff; }
.btn-primary:hover { background: var(--ink); }
.dark .btn-primary:hover, .site-header .btn-primary:hover, .mobile-menu .btn-primary:hover { background: var(--spark); color: var(--ink); }
.btn-spark { background: var(--spark); color: var(--ink); }
.btn-spark:hover { background: #fff; }
.btn-ghost { color: inherit; padding-inline: 6px; clip-path: none; }
.play-ic {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid currentColor; border-radius: 50%;
  transition: background .3s, color .3s, border-color .3s, transform .4s var(--ease);
}
.play-ic svg { width: 14px; height: 14px; }
[dir="rtl"] .play-ic svg { transform: scaleX(-1); }
.btn-ghost:hover .play-ic { background: var(--spark); color: var(--ink); border-color: var(--spark); transform: scale(1.06); }
.btn-outline { background: var(--frost-2); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  padding-top: 16px;
  transition: transform .5s var(--ease), padding .4s var(--ease);
}
.site-header.scrolled { padding-top: 10px; }
.site-header.hide { transform: translateY(-120%); }
.header-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 10px 10px 10px 16px;
  border-radius: 18px;
  background: rgba(20, 17, 46, .55);
  border: 1px solid rgba(236, 235, 246, .1);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  color: var(--frost);
  transition: background .4s, box-shadow .4s;
}
[dir="rtl"] .header-bar { padding: 10px 16px 10px 10px; }
.scrolled .header-bar { background: rgba(20, 17, 46, .86); box-shadow: 0 18px 40px -24px rgba(13, 11, 34, .6); }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 40px; height: 40px; flex: none; transition: transform .7s var(--ease); filter: drop-shadow(0 4px 10px rgba(91, 76, 245, .45)); }
.brand:hover .brand-mark { transform: rotate(-10deg) scale(1.06); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--f-display); font-weight: 700; font-size: 20px; letter-spacing: -.01em; white-space: nowrap; }
html[lang="ar"] .brand-name { font-size: 22px; letter-spacing: 0; }
.brand-tag { font-size: 11.5px; opacity: .6; white-space: nowrap; }

.nav { display: flex; gap: 2px; }
.nav a {
  position: relative; padding: 8px 14px; font-size: 14.5px;
  border-radius: 10px; color: rgba(236, 235, 246, .78);
  transition: background .3s, color .3s;
}
.nav a:hover { background: rgba(236, 235, 246, .08); color: #fff; }
.nav a.active { color: var(--spark); }
.nav a.active::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px;
  background: var(--spark); transform: translateX(-50%) rotate(45deg);
}

.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  min-width: 52px; height: 40px; padding: 0 12px;
  border-radius: 10px; border: 1px solid rgba(236, 235, 246, .2);
  font-size: 14px; font-weight: 600;
  transition: background .3s, border-color .3s;
}
.lang-toggle:hover { background: rgba(236, 235, 246, .1); border-color: rgba(236, 235, 246, .4); }
html[lang="en"] .lang-toggle { font-family: 'Alexandria', sans-serif; font-weight: 500; }

.burger { display: none; width: 42px; height: 42px; border-radius: 10px; background: var(--facet); position: relative; }
.burger span {
  position: absolute; left: 12px; right: 12px; height: 2px; background: #fff;
  border-radius: 2px; transition: transform .4s var(--ease), top .4s var(--ease);
}
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 24px; }
.menu-open .burger span:first-child { top: 20px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 20px; transform: rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed; inset: 0; z-index: -1;
  background: var(--ink); color: var(--frost);
  padding: 120px var(--gutter) 40px;
  flex-direction: column; gap: 4px;
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.mobile-menu::before {
  content: ""; position: absolute; width: 480px; height: 480px; inset-inline-end: -160px; bottom: -160px;
  background: radial-gradient(closest-side, rgba(91, 76, 245, .45), transparent); pointer-events: none;
}
.mobile-menu a:not(.btn) {
  position: relative;
  font-family: var(--f-display); font-size: 32px; font-weight: 600; padding-block: 8px;
  border-bottom: 1px solid var(--line-light);
  opacity: 0; transform: translateY(16px);
  transition: opacity .5s, transform .5s var(--ease);
}
.mobile-menu .btn { margin-top: 24px; position: relative; }
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.menu-open .mobile-menu a { opacity: 1; transform: none; }
.menu-open .mobile-menu a:nth-child(2) { transition-delay: .04s; }
.menu-open .mobile-menu a:nth-child(3) { transition-delay: .08s; }
.menu-open .mobile-menu a:nth-child(4) { transition-delay: .12s; }
.menu-open .mobile-menu a:nth-child(5) { transition-delay: .16s; }
.menu-open .mobile-menu a:nth-child(6) { transition-delay: .2s; }

/* ---------- Common typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 100px;
  background: rgba(236, 235, 246, .07); border: 1px solid var(--line-light);
  font-size: 13.5px; font-weight: 500;
}
.dot-live {
  position: relative; width: 8px; height: 8px; border-radius: 50%;
  background: var(--spark); display: inline-block; flex: none;
}
.dot-live::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--spark); animation: ping 1.8s var(--ease) infinite;
}
@keyframes ping { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.9); opacity: 0; } }

.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--facet);
}
html[lang="ar"] .kicker { letter-spacing: 0; font-size: 14.5px; font-weight: 500; }
.kicker::before { content: ""; width: 9px; height: 9px; background: currentColor; transform: rotate(45deg); }
.dark .kicker { color: var(--spark); }

.section-title {
  font-family: var(--f-display);
  font-size: clamp(38px, 5.6vw, 76px);
  font-weight: 600; line-height: 1; letter-spacing: -.035em;
}
html[lang="ar"] .section-title { letter-spacing: 0; line-height: 1.3; font-size: clamp(34px, 4.8vw, 64px); }
.section-title em, .shine-text {
  font-style: normal;
  background: var(--prism-ink);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.dark .section-title em, .dark .shine-text { background-image: var(--prism); }
.section-title.big { font-size: clamp(44px, 7vw, 100px); }
html[lang="ar"] .section-title.big { font-size: clamp(38px, 5.8vw, 82px); }
.section-lead { margin-top: 24px; max-width: 520px; font-size: 18px; color: var(--muted); }
.dark .section-lead { color: var(--muted-light); }
.section-head { margin-bottom: clamp(44px, 6vw, 72px); max-width: 860px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .section-lead { margin-inline: auto; }
.section-head.center .kicker { justify-content: center; }
.section-head.split { max-width: none; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; }
.section-head.split .section-lead { margin-top: 0; justify-self: end; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding-block: 150px 100px; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(20px); }
.g1 {
  width: 820px; height: 820px; inset-inline-end: -220px; top: -260px;
  background: radial-gradient(closest-side, rgba(91, 76, 245, .5), rgba(91, 76, 245, 0));
  animation: drift 16s ease-in-out infinite alternate;
}
.g2 {
  width: 600px; height: 600px; inset-inline-start: -260px; bottom: -280px;
  background: radial-gradient(closest-side, rgba(159, 227, 240, .22), rgba(159, 227, 240, 0));
  animation: drift 20s ease-in-out infinite alternate-reverse;
}
@keyframes drift { to { transform: translate(-60px, 90px) scale(1.08); } }
.hero-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(236, 235, 246, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 235, 246, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000, transparent);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000, transparent);
}

.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.hero-title {
  margin-top: 26px;
  font-family: var(--f-display);
  font-size: clamp(52px, 7.8vw, 112px);
  font-weight: 600; line-height: .96; letter-spacing: -.045em;
}
html[lang="ar"] .hero-title { letter-spacing: 0; line-height: 1.25; font-size: clamp(46px, 6.6vw, 96px); font-weight: 700; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero-title .line > * { display: inline-block; transform: translateY(110%); transition: transform 1.2s var(--ease); }
.hero-title .line:nth-child(2) > * { transition-delay: .1s; }
.hero-title .line:nth-child(3) > * { transition-delay: .2s; }
.ready .hero-title .line > * { transform: none; }
.shine-text { position: relative; background-size: 200% 100%; animation: prismShift 6s ease-in-out infinite alternate; }
@keyframes prismShift { to { background-position: 100% 0; } }

.hero-sub { margin-top: 26px; max-width: 540px; font-size: 18.5px; color: var(--muted-light); }
.hero-ctas { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.hero-points { margin-top: 42px; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 14px; color: rgba(236, 235, 246, .75); }
.hero-points li { display: flex; align-items: center; gap: 10px; }
.hero-points li::before { content: ""; width: 7px; height: 7px; background: var(--spark); transform: rotate(45deg); }

/* Hero visual */
.hero-visual { position: relative; }
.gem-stage { position: relative; width: 82%; margin-inline: auto; perspective: 1000px; transition: transform .6s var(--ease); }
.gem {
  width: 100%; height: auto; overflow: visible;
  filter: drop-shadow(0 40px 60px rgba(91, 76, 245, .55));
  animation: gemFloat 7s ease-in-out infinite;
}
@keyframes gemFloat { 50% { transform: translateY(-14px); } }
.gem-shine { animation: gemShine 5.5s var(--ease) infinite; }
@keyframes gemShine { 0% { transform: translateX(0); } 55%, 100% { transform: translateX(640px); } }
.tw { transform-box: fill-box; transform-origin: center; animation: twinkle 2.6s ease-in-out infinite; }
.tw-2 { animation-delay: -.9s; }
.tw-3 { animation-delay: -1.7s; }
@keyframes twinkle { 0%, 100% { transform: scale(.3) rotate(0); opacity: .2; } 50% { transform: scale(1) rotate(45deg); opacity: 1; } }
.gem-ring {
  position: absolute; left: 50%; top: 52%; width: 120%; aspect-ratio: 1;
  border: 1px dashed rgba(236, 235, 246, .18); border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: spin 60s linear infinite;
}
.gem-ring::before {
  content: ""; position: absolute; top: -6px; left: 50%; width: 12px; height: 12px;
  background: var(--ice); transform: rotate(45deg); box-shadow: 0 0 18px var(--ice);
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.chip {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px;
  padding: 10px 16px 10px 10px; border-radius: 16px;
  background: #fff; color: var(--ink);
  box-shadow: 0 24px 50px -22px rgba(0, 0, 0, .55);
  font-size: 12.5px; line-height: 1.3;
  animation: floaty 6s ease-in-out infinite;
}
[dir="rtl"] .chip { padding: 10px 10px 10px 16px; }
.chip strong { display: block; font-size: 15px; font-weight: 700; }
.chip span:not(.chip-ic) { color: var(--muted); }
.chip-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--facet); color: var(--spark); font-size: 18px; }
.chip-ic-wa { background: #25d366; color: #fff; }
.chip-ic-wa svg { width: 20px; height: 20px; }
.chip-rate { top: 4%; inset-inline-start: -2%; }
.chip-wa { top: 34%; inset-inline-end: -4%; animation-delay: -3s; }
@keyframes floaty { 50% { transform: translateY(-10px); } }

.desk {
  position: relative; z-index: 1;
  margin-top: -18%;
  padding: 20px; border-radius: 22px;
  background: rgba(28, 24, 64, .78);
  border: 1px solid rgba(236, 235, 246, .12);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7);
}
.desk-head { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; }
.desk-title { display: flex; align-items: center; gap: 10px; opacity: .9; }
.desk-clock { font-family: var(--f-num); font-variant-numeric: tabular-nums; direction: ltr; opacity: .55; font-size: 13px; letter-spacing: .04em; }
.desk-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.metric { padding: 12px 14px; border-radius: 14px; background: rgba(236, 235, 246, .06); }
.metric-label { display: block; font-size: 11.5px; opacity: .6; line-height: 1.3; }
.metric-value { display: block; margin-top: 4px; font-family: var(--f-num); font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; direction: ltr; text-align: left; }
[dir="rtl"] .metric-value { text-align: right; }
.metric-value small { font-size: 13px; opacity: .6; margin-inline-start: 2px; font-family: var(--f-body); }
.metric:first-child .metric-value { color: var(--spark); }

.desk-calls { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; min-height: 162px; }
.call {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  padding: 10px 12px; border-radius: 12px; background: rgba(236, 235, 246, .05);
  font-size: 13px;
  animation: callIn .7s var(--ease) both;
}
.call.out { animation: callOut .5s var(--ease) both; }
@keyframes callIn { from { opacity: 0; transform: translateY(-12px) scale(.97); } }
@keyframes callOut { to { opacity: 0; transform: translateY(10px) scale(.97); } }
.call-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(159, 227, 240, .14); color: var(--ice); }
.call-ic svg { width: 15px; height: 15px; }
.call-ic.wa { background: rgba(37, 211, 102, .14); color: #3ee07f; }
.call-ic.chat { background: rgba(128, 117, 255, .2); color: #b6aeff; }
.call-ic.mail { background: rgba(214, 245, 90, .12); color: var(--spark); }
.call b { display: block; font-weight: 500; }
.call span { opacity: .55; font-size: 11.5px; }
.call-state { font-size: 11px; padding: 4px 10px; border-radius: 100px; background: rgba(214, 245, 90, .14); color: var(--spark); white-space: nowrap; opacity: 1 !important; }
.call-state.done { background: rgba(236, 235, 246, .08); color: rgba(236, 235, 246, .7); }

/* ---------- Ticker ---------- */
.ticker {
  overflow: hidden; background: var(--ink-deep); color: var(--frost);
  padding-block: 22px; border-block: 1px solid var(--line-light);
}
.ticker-track { display: flex; width: max-content; animation: marquee 44s linear infinite; }
[dir="rtl"] .ticker-track { animation-name: marquee-rtl; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group { display: flex; align-items: center; flex: none; }
.marquee-item { display: inline-flex; align-items: center; gap: 30px; padding-inline: 15px; font-family: var(--f-display); font-size: clamp(20px, 2.6vw, 30px); font-weight: 500; white-space: nowrap; opacity: .9; }
.marquee-item::after { content: ""; width: 10px; height: 10px; background: var(--spark); transform: rotate(45deg); }
.marquee-item:nth-child(3n+2)::after { background: var(--ice); }
.marquee-item:nth-child(3n)::after { background: var(--facet-2); }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* ---------- Numbers ---------- */
.numbers { padding-block: clamp(70px, 9vw, 110px); }
.numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.num {
  position: relative; padding: 28px 26px 30px;
  background: var(--card); border-radius: var(--radius);
  box-shadow: 0 1px 0 var(--line);
}
.num::before {
  content: ""; position: absolute; top: 30px; inset-inline-end: 26px;
  width: 10px; height: 10px; background: var(--facet); transform: rotate(45deg);
}
.num:nth-child(2)::before { background: var(--teal); }
.num:nth-child(3)::before { background: var(--spark); }
.num:nth-child(4)::before { background: var(--facet-2); }
.num-value { display: block; direction: ltr; text-align: left; font-family: var(--f-num); font-weight: 600; font-size: clamp(50px, 5.4vw, 78px); line-height: 1; letter-spacing: -.05em; }
[dir="rtl"] .num-value { text-align: right; }
.num-value small { font-size: .38em; color: var(--muted); margin-inline-start: 4px; font-family: var(--f-body); letter-spacing: 0; }
.num-label { display: block; margin-top: 16px; font-size: 15px; color: var(--muted); max-width: 260px; }

/* ---------- Services (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; gap: 14px; }
.svc {
  position: relative; overflow: hidden;
  padding: 30px 26px 32px;
  background: var(--card);
  transition: transform .5s var(--ease), background .5s, opacity 1s var(--ease);
  isolation: isolate;
}
.svc::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(91, 76, 245, .13), transparent 50%);
  transition: opacity .4s;
}
.svc:hover::before { opacity: 1; }
.svc:hover { transform: translateY(-5px); }
.svc-icon {
  width: 54px; height: 54px; display: grid; place-items: center;
  background: var(--frost-2); color: var(--facet); margin-bottom: 24px;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  transition: transform .6s var(--ease), background .4s, color .4s;
}
.svc-icon svg { width: 24px; height: 24px; }
.svc:hover .svc-icon { background: var(--facet); color: #fff; transform: rotate(90deg); }
.svc:hover .svc-icon svg { transform: rotate(-90deg); }
.svc-icon svg { transition: transform .6s var(--ease); }
.svc h3 { font-family: var(--f-display); font-size: 21px; font-weight: 600; line-height: 1.3; margin-bottom: 10px; letter-spacing: -.01em; }
.svc p { font-size: 15px; color: var(--muted); line-height: 1.65; }

.svc-feature { grid-column: span 2; grid-row: span 2; background: var(--ink); color: var(--frost); padding: 38px 36px; display: flex; flex-direction: column; }
.svc-feature h3 { font-size: clamp(28px, 3vw, 40px); line-height: 1.15; margin-bottom: 16px; }
.svc-feature p { color: var(--muted-light); font-size: 16.5px; max-width: 460px; }
.svc-feature .svc-icon { background: rgba(236, 235, 246, .08); color: var(--spark); }
.svc-feature::before { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(128, 117, 255, .3), transparent 55%); }
.svc-feature::after {
  content: ""; position: absolute; width: 380px; height: 380px; inset-inline-end: -140px; top: -140px; z-index: -1;
  background: radial-gradient(closest-side, rgba(91, 76, 245, .5), transparent);
}

.callmock {
  margin-top: auto; padding: 14px; padding-inline-end: 14px;
  display: flex; align-items: center; gap: 14px;
  border-radius: 18px; background: rgba(236, 235, 246, .07); border: 1px solid var(--line-light);
  max-width: 400px;
}
.svc-feature .callmock { margin-top: 36px; }
.callmock-av { position: relative; width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--facet); color: #fff; }
.callmock-av svg { width: 20px; height: 20px; animation: ring 1.4s ease-in-out infinite; }
.callmock-av i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--facet-2); animation: ping 2s var(--ease) infinite; }
.callmock-av i:nth-child(2) { animation-delay: 1s; }
@keyframes ring { 0%, 50%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(-14deg); } 20%, 40% { transform: rotate(14deg); } }
.callmock-txt { flex: 1; line-height: 1.35; }
.callmock-txt b { display: block; font-size: 15px; font-weight: 600; }
.callmock-txt span { font-size: 12.5px; opacity: .6; }
.callmock-btn { padding: 9px 18px; border-radius: 100px; background: var(--spark); color: var(--ink); font-size: 13.5px; font-weight: 600; }

.svc-wide { grid-column: span 2; }
.svc-wide-body { display: grid; gap: 22px; }
.svc-channels { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-channels span { padding: 6px 12px; border-radius: 100px; background: var(--frost-2); font-size: 13px; font-weight: 500; color: var(--ink-3); }

/* ---------- Standard (4Cs) ---------- */
.standard { overflow: hidden; border-radius: 40px 40px 0 0; }
.standard-gem { position: absolute; width: 520px; height: 520px; inset-inline-end: -180px; top: -120px; opacity: .08; pointer-events: none; }
.standard-gem svg { width: 100%; height: 100%; animation: slowSpin 80s linear infinite; }
@keyframes slowSpin { to { transform: rotate(360deg); } }
.cs-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.c-card {
  --cut: 22px;
  position: relative; display: flex; flex-direction: column;
  padding: 28px 26px 32px;
  background: var(--ink-2);
  transition: background .5s var(--ease), transform .5s var(--ease), opacity 1s var(--ease);
}
.c-card:hover { background: var(--ink-3); transform: translateY(-6px); }
.c-top { display: flex; justify-content: space-between; align-items: center; }
.c-code { font-family: var(--f-num); font-size: 13px; letter-spacing: .1em; opacity: .55; direction: ltr; }
.c-ic { width: 30px; height: 30px; color: var(--ice); }
.c-word {
  margin-top: 40px; font-family: var(--f-display); font-weight: 700;
  font-size: clamp(40px, 4vw, 58px); line-height: 1; letter-spacing: -.04em;
  background: var(--prism); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .1em;
}
html[lang="ar"] .c-word { letter-spacing: 0; line-height: 1.3; font-size: clamp(36px, 3.6vw, 52px); }
.c-card h3 { margin-top: 18px; font-size: 19px; font-weight: 600; line-height: 1.35; }
.c-card p { margin-top: 10px; color: var(--muted-light); font-size: 15px; }
.dialects { margin-top: 22px; }
.dialects-label { font-size: 12.5px; opacity: .55; display: block; margin-bottom: 10px; }
.dialect-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.dialect-tags span {
  padding: 5px 11px; border-radius: 100px; font-size: 12.5px;
  border: 1px solid var(--line-light); transition: background .3s, color .3s, border-color .3s;
}
.dialect-tags span:hover { background: var(--spark); color: var(--ink); border-color: var(--spark); }

.vault {
  position: relative; margin-top: 14px;
  display: grid; grid-template-columns: auto 1fr 1.6fr; gap: 24px; align-items: center;
  padding: 26px 30px; border-radius: var(--radius);
  border: 1px solid var(--line-light);
  background: linear-gradient(110deg, rgba(91, 76, 245, .16), rgba(159, 227, 240, .06));
}
.vault-ic { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: var(--spark); color: var(--ink); }
.vault-ic svg { width: 28px; height: 28px; }
.vault h3 { font-family: var(--f-display); font-size: 22px; line-height: 1.3; }
.vault ul { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14.5px; color: rgba(236, 235, 246, .82); }
.vault li { display: flex; align-items: center; gap: 10px; }
.vault li::before { content: ""; width: 6px; height: 6px; background: var(--ice); transform: rotate(45deg); flex: none; }

/* ---------- Demo ---------- */
.demo-grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(40px, 9vw, 130px); align-items: center; }
.demo-notes { margin-top: 36px; display: grid; gap: 10px; max-width: 460px; }
.demo-notes li {
  display: flex; gap: 16px; align-items: center; font-size: 16px;
  padding: 14px 16px; background: var(--card); border-radius: 16px;
  transition: transform .4s var(--ease);
}
.demo-notes li:hover { transform: translateX(6px); }
[dir="rtl"] .demo-notes li:hover { transform: translateX(-6px); }
.demo-notes .n {
  flex: none; width: 30px; height: 30px; display: grid; place-items: center;
  background: var(--facet); color: #fff; font-family: var(--f-num); font-size: 13px; font-weight: 600;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.phone-wrap { position: relative; }
.phone-glow {
  position: absolute; inset: 10% -20%; z-index: 0;
  background: radial-gradient(closest-side, rgba(91, 76, 245, .35), rgba(159, 227, 240, .15) 60%, transparent);
  filter: blur(20px);
}
.phone {
  position: relative; z-index: 1; width: 350px; height: 680px;
  border-radius: 50px; padding: 11px;
  background: var(--ink);
  box-shadow: 0 60px 120px -50px rgba(20, 17, 46, .7), 0 0 0 2px #2f2a66 inset;
  display: flex; flex-direction: column; overflow: hidden;
}
.phone::before {
  content: ""; position: absolute; inset: 11px; border-radius: 40px; z-index: 0;
  background: #efeae2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36'%3E%3Cpath d='M18 12l4 6-4 6-4-6z' fill='%2314112e' fill-opacity='.05'/%3E%3C/svg%3E");
}
.phone > * { position: relative; z-index: 1; }
.phone-notch { position: absolute; top: 21px; left: 50%; width: 96px; height: 26px; border-radius: 20px; background: var(--ink); transform: translateX(-50%); z-index: 3; }
.phone-top {
  display: flex; align-items: center; gap: 12px;
  padding: 58px 18px 14px; border-radius: 40px 40px 0 0;
  background: #075e54; color: #fff; font-size: 13px; line-height: 1.3;
}
.phone-top strong { display: block; font-size: 15.5px; font-weight: 600; }
.phone-status { opacity: .75; }
.phone-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #e7b6c8, #a65a7a); font-weight: 700; font-size: 18px; }
.chat { flex: 1; padding: 16px 14px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; justify-content: flex-end; }
.msg {
  max-width: 82%; padding: 9px 13px 7px; border-radius: 14px;
  font-size: 13.5px; line-height: 1.55; box-shadow: 0 1px 1px rgba(0, 0, 0, .06);
  animation: msgIn .45s var(--ease) both;
}
.msg time { display: block; font-size: 10.5px; opacity: .5; text-align: end; margin-top: 2px; direction: ltr; }
.msg.them { align-self: flex-start; background: #fff; border-start-start-radius: 4px; }
.msg.us { align-self: flex-end; background: #d9fdd3; border-start-end-radius: 4px; }
.msg.typing { display: flex; gap: 4px; padding: 13px 14px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: #8696a0; animation: typing 1s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; }
.msg.typing i:nth-child(3) { animation-delay: .3s; }
.msg.rate { background: #fff; text-align: center; align-self: center; font-size: 12.5px; }
.msg.rate .stars { color: #f5a623; font-size: 18px; letter-spacing: 3px; }
@keyframes msgIn { from { opacity: 0; transform: translateY(12px) scale(.96); } }
@keyframes typing { 50% { transform: translateY(-4px); opacity: .5; } }
.phone-input {
  margin: 0 10px 10px; padding: 12px 16px; border-radius: 100px;
  background: #fff; color: #8696a0; font-size: 13.5px;
  display: flex; justify-content: space-between; align-items: center;
}
.send { width: 30px; height: 30px; border-radius: 50%; background: #00a884; display: block; }

/* ---------- Process ---------- */
.process { background: var(--frost-2); }
.timeline { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.timeline-line { position: absolute; top: 13px; inset-inline: 14px; height: 2px; background: var(--line); }
.timeline-line span { display: block; height: 100%; width: 100%; background: var(--prism-ink); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform .2s linear; }
[dir="rtl"] .timeline-line span { transform-origin: right; }
.step { position: relative; padding-top: 56px; }
.step::before {
  content: ""; position: absolute; top: 4px; inset-inline-start: 6px;
  width: 20px; height: 20px; transform: rotate(45deg);
  background: var(--frost-2); border: 2px solid var(--facet);
  box-shadow: 0 0 0 6px var(--frost-2);
  transition: background .4s;
}
.step.in::before { background: var(--facet); transition-delay: .4s; }
.step:last-child::before { border-color: var(--teal); }
.step.in:last-child::before { background: var(--spark); }
.step-day { display: inline-block; padding: 4px 12px; border-radius: 8px; background: var(--card); color: var(--facet); font-size: 12.5px; font-weight: 600; margin-bottom: 16px; }
.step h3 { font-family: var(--f-display); font-size: 25px; font-weight: 600; margin-bottom: 10px; letter-spacing: -.02em; }
html[lang="ar"] .step h3 { letter-spacing: 0; }
.step p { font-size: 15px; color: var(--muted); max-width: 240px; }

/* ---------- Industries ---------- */
.ind-layout { display: grid; grid-template-columns: 330px 1fr; gap: 24px; align-items: start; }
.tabs { display: flex; flex-direction: column; gap: 4px; }
.tab {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 16px 18px; border-radius: 14px; font-size: 16px; text-align: start;
  color: rgba(236, 235, 246, .7);
  transition: background .35s var(--ease), color .35s;
}
.tab-i { font-family: var(--f-num); font-size: 12.5px; opacity: .5; letter-spacing: .05em; }
.tab:hover { color: #fff; background: rgba(236, 235, 246, .05); }
.tab.is-active { background: var(--frost); color: var(--ink); }
.tab.is-active .tab-i { color: var(--facet); opacity: 1; }
.tab-panels { position: relative; }
.tab-panel {
  display: none; grid-template-columns: auto 1fr; gap: clamp(28px, 4vw, 52px); align-items: center;
  padding: clamp(28px, 4vw, 52px); border-radius: 30px; background: var(--ink-2);
  border: 1px solid var(--line-light); min-height: 100%;
}
.tab-panel.is-active { display: grid; animation: panelIn .7s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(18px); } }
.panel-art {
  position: relative; width: clamp(150px, 16vw, 210px); aspect-ratio: 1;
  display: grid; place-items: center; color: var(--ink);
}
.panel-art::before {
  content: ""; position: absolute; inset: 12%;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  transform: rotate(45deg); border-radius: 22px;
  box-shadow: 0 30px 60px -20px var(--c2);
  animation: breathe 6s ease-in-out infinite;
}
.panel-art::after {
  content: ""; position: absolute; inset: 0;
  border: 1.5px dashed rgba(236, 235, 246, .2); border-radius: 50%;
  animation: slowSpin 40s linear infinite;
}
.panel-art svg { position: relative; z-index: 1; width: 34%; height: 34%; }
@keyframes breathe { 50% { transform: rotate(45deg) scale(1.05); } }
.panel-text h3 { font-family: var(--f-display); font-size: clamp(26px, 3vw, 40px); line-height: 1.15; margin-bottom: 18px; letter-spacing: -.02em; }
html[lang="ar"] .panel-text h3 { letter-spacing: 0; line-height: 1.4; font-size: clamp(24px, 2.6vw, 34px); }
.panel-text p { color: var(--muted-light); max-width: 540px; }
.panel-text ul { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.panel-text li { padding: 7px 14px; border-radius: 100px; background: rgba(236, 235, 246, .07); font-size: 14px; }

/* ---------- Reports ---------- */
.reports-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 110px); align-items: center; }
.report-card {
  padding: 30px; border-radius: 28px; background: var(--card);
  box-shadow: 0 40px 80px -50px rgba(20, 17, 46, .4);
}
.report-head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.report-badge { padding: 4px 12px; border-radius: 100px; background: rgba(214, 245, 90, .45); color: #3f5206; font-size: 13px; font-weight: 600; direction: ltr; }
.chart { width: 100%; height: 180px; margin-block: 20px; overflow: visible; }
[dir="rtl"] .chart { transform: scaleX(-1); }
.chart-grid line { stroke: var(--line); stroke-dasharray: 4 6; }
.chart-line { stroke-dasharray: 700; stroke-dashoffset: 700; transition: stroke-dashoffset 2.2s var(--ease); }
.chart-area { opacity: 0; transition: opacity 1.2s var(--ease) .8s; }
.report-card.in .chart-line { stroke-dashoffset: 0; }
.report-card.in .chart-area { opacity: 1; }
.report-bars { display: grid; gap: 14px; }
.report-bars > div { display: grid; grid-template-columns: 1fr 1.2fr 42px; gap: 14px; align-items: center; font-size: 14px; }
.report-bars b { font-family: var(--f-num); font-weight: 600; direction: ltr; text-align: end; }
.bar { height: 8px; border-radius: 8px; background: var(--frost-2); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w); border-radius: 8px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) .4s; }
[dir="rtl"] .bar i { transform-origin: right; margin-inline-start: auto; }
.report-card.in .bar i { transform: scaleX(1); }
.report-bars > div:nth-child(2) .bar i { transition-delay: .6s; background: var(--facet); }
.report-bars > div:nth-child(3) .bar i { transition-delay: .8s; background: var(--teal); }
.report-note { margin-top: 18px; font-size: 12px; color: var(--muted); }
.checks { margin-top: 32px; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; }
.checks li::before {
  content: "✓"; flex: none; width: 26px; height: 26px; margin-top: 2px; border-radius: 8px;
  display: grid; place-items: center; background: var(--facet); color: #fff; font-size: 13px;
}

/* ---------- Models ---------- */
.models { background: var(--frost-2); }
.models-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.model {
  display: flex; flex-direction: column;
  padding: 34px 30px; border-radius: 28px; background: var(--card);
  border: 1.5px solid transparent;
  transition: transform .5s var(--ease), box-shadow .5s, opacity 1s var(--ease);
}
.model:hover { transform: translateY(-8px); box-shadow: 0 40px 70px -40px rgba(20, 17, 46, .35); }
.model-tag { align-self: flex-start; padding: 5px 12px; border-radius: 8px; background: var(--frost-2); color: var(--facet); font-size: 12.5px; font-weight: 600; }
.model h3 { margin-block: 22px 12px; font-family: var(--f-display); font-size: 36px; line-height: 1.05; letter-spacing: -.03em; }
html[lang="ar"] .model h3 { font-size: 30px; line-height: 1.35; letter-spacing: 0; }
.model p { color: var(--muted); font-size: 15.5px; }
.model ul { margin-block: 26px 34px; display: grid; gap: 12px; flex: 1; align-content: start; }
.model li { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.model li::before { content: ""; width: 7px; height: 7px; background: var(--facet); transform: rotate(45deg); flex: none; }
.model.featured {
  color: var(--frost);
  background: linear-gradient(var(--ink), var(--ink)) padding-box, var(--prism) border-box;
  transform: translateY(-14px);
  box-shadow: 0 50px 90px -40px rgba(91, 76, 245, .55);
}
.model.featured:hover { transform: translateY(-20px); }
.model.featured .model-tag { background: var(--spark); color: var(--ink); }
.model.featured p { color: var(--muted-light); }
.model.featured li::before { background: var(--spark); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 8vw, 110px); align-items: start; }
.accordion { display: grid; gap: 10px; }
.acc { background: var(--card); border-radius: 18px; padding-inline: 24px; transition: box-shadow .3s; }
.acc[open] { box-shadow: 0 20px 50px -30px rgba(20, 17, 46, .3); }
.acc summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding-block: 22px; font-size: 18px; font-weight: 600;
  transition: color .3s;
}
html[lang="ar"] .acc summary { font-weight: 500; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { color: var(--facet); }
.acc summary i {
  position: relative; flex: none; width: 30px; height: 30px; margin-inline-end: 4px;
  background: var(--frost-2); transform: rotate(45deg); border-radius: 6px;
  transition: background .3s, transform .5s var(--ease);
}
.acc summary i::before, .acc summary i::after { content: ""; position: absolute; top: 50%; left: 50%; width: 11px; height: 1.6px; background: currentColor; transform: translate(-50%, -50%) rotate(-45deg); transition: transform .4s var(--ease); }
.acc summary i::after { transform: translate(-50%, -50%) rotate(45deg); }
.acc[open] summary i { background: var(--facet); color: #fff; transform: rotate(225deg); }
.acc[open] summary i::after { transform: translate(-50%, -50%) rotate(-45deg); }
.acc p { padding-bottom: 24px; color: var(--muted); max-width: 620px; animation: panelIn .5s var(--ease); }

/* ---------- Contact ---------- */
.contact { overflow: hidden; }
.contact-gem { position: absolute; width: 640px; height: 640px; inset-inline-start: -220px; bottom: -260px; opacity: .1; pointer-events: none; }
.contact-gem svg { width: 100%; height: 100%; animation: slowSpin 90s linear infinite reverse; }
.contact::before {
  content: ""; position: absolute; width: 700px; height: 700px; inset-inline-end: -200px; top: -200px;
  background: radial-gradient(closest-side, rgba(91, 76, 245, .35), transparent); pointer-events: none;
}
.contact-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 100px); align-items: start; }
.contact-lines { margin-top: 44px; display: grid; gap: 12px; }
.contact-line { display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: 18px; border: 1px solid var(--line-light); transition: background .3s, border-color .3s; max-width: 420px; }
.contact-line[hidden] { display: none; }
.contact-line:hover { background: rgba(236, 235, 246, .06); border-color: rgba(236, 235, 246, .3); }
.contact-line small { display: block; font-size: 12.5px; opacity: .6; }
.contact-line b { font-weight: 500; font-size: 17px; }
.cl-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--facet); color: #fff; flex: none; }
.cl-icon svg { width: 22px; height: 22px; }

.contact-form {
  --cut: 26px;
  padding: clamp(24px, 3vw, 40px);
  background: var(--frost); color: var(--ink);
  display: grid; gap: 14px;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.form-title { font-family: var(--f-display); font-size: 26px; margin-bottom: 6px; letter-spacing: -.02em; }
html[lang="ar"] .form-title { letter-spacing: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; padding: 24px 16px 10px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fff;
  font: inherit; font-size: 16px; color: var(--ink);
  transition: border-color .3s, box-shadow .3s; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--facet); box-shadow: 0 0 0 4px rgba(91, 76, 245, .12); }
.field label {
  position: absolute; inset-inline-start: 17px; top: 17px;
  font-size: 15px; color: var(--muted); pointer-events: none;
  transform-origin: left top; transition: transform .3s var(--ease), color .3s;
}
[dir="rtl"] .field label { transform-origin: right top; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-11px) scale(.75); color: var(--facet); }
.field.error input { border-color: #e5484d; background: #fff5f5; }
.chips-field { border: 0; padding: 4px 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips-field legend { font-size: 14px; color: var(--muted); margin-bottom: 10px; padding: 0; }
.chip-check { position: relative; cursor: pointer; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check span { display: inline-block; padding: 9px 15px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font-size: 14px; transition: all .3s var(--ease); }
.chip-check:hover span { border-color: var(--facet); }
.chip-check input:checked + span { background: var(--facet); color: #fff; border-color: var(--facet); }
.chip-check input:focus-visible + span { outline: 2px solid var(--facet); outline-offset: 2px; }
.form-msg { font-size: 14px; min-height: 1em; color: var(--muted); text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-deep); color: var(--frost); padding-bottom: 28px; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-block: 70px 30px; }
.footer-about { margin-top: 18px; max-width: 340px; color: rgba(236, 235, 246, .6); font-size: 15px; }
.footer-grid h4 { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--spark); margin-bottom: 18px; font-weight: 600; }
html[lang="ar"] .footer-grid h4 { letter-spacing: 0; font-size: 14px; }
.footer-grid a:not(.brand) { display: block; width: fit-content; padding-block: 5px; color: rgba(236, 235, 246, .75); font-size: 15px; transition: color .3s, transform .3s var(--ease); }
.footer-grid a:not(.brand):hover { color: #fff; transform: translateX(4px); }
[dir="rtl"] .footer-grid a:not(.brand):hover { transform: translateX(-4px); }
.footer-big {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(90px, 21vw, 320px); line-height: 1;
  letter-spacing: -.05em; text-align: center; padding-block: 10px 20px;
  background: linear-gradient(to bottom, rgba(157, 147, 255, .35), rgba(159, 227, 240, .05) 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none; white-space: nowrap;
}
html[lang="ar"] .footer-big { letter-spacing: 0; line-height: 1.35; font-size: clamp(90px, 22vw, 300px); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line-light); font-size: 13.5px; color: rgba(236, 235, 246, .5); }

/* ---------- Floating things ---------- */
.to-top, .wa-float {
  position: fixed; bottom: 22px; z-index: 40;
  width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center;
  box-shadow: 0 16px 36px -14px rgba(0, 0, 0, .5);
  transition: transform .5s var(--ease), opacity .5s, background .3s, color .3s;
}
.to-top { inset-inline-end: 22px; background: var(--ink); color: var(--frost); opacity: 0; transform: translateY(20px); pointer-events: none; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--spark); color: var(--ink); }
.to-top svg { width: 22px; height: 22px; }
.wa-float { inset-inline-start: 22px; background: #25d366; color: #fff; border-radius: 50%; }
.wa-float[hidden] { display: none; }
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { transform: scale(1.08); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ping 2s var(--ease) infinite; }

.toast {
  position: fixed; left: 50%; bottom: 30px; z-index: 90;
  padding: 14px 22px; border-radius: 14px; background: var(--ink); color: var(--frost);
  font-size: 15px; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .5);
  transform: translate(-50%, 140%); opacity: 0; transition: transform .6s var(--ease), opacity .6s;
  max-width: calc(100% - 32px); text-align: center;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Language switch fade ---------- */
body { transition: opacity .25s ease; }
html.switching body { opacity: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .brand-tag { display: none; }
  .cs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .svc-feature { grid-row: auto; }
  .timeline { grid-template-columns: 1fr; gap: 0; padding-inline-start: 48px; }
  .timeline-line { top: 0; bottom: 0; inset-inline-start: 13px; inset-inline-end: auto; width: 2px; height: auto; }
  .timeline-line span { transform: scaleY(var(--p, 0)); transform-origin: top; }
  [dir="rtl"] .timeline-line span { transform-origin: top; }
  .step { padding: 0 0 40px; }
  .step::before { inset-inline-start: -42px; top: 6px; }
  .step p { max-width: 520px; }
  .ind-layout { grid-template-columns: 1fr; }
  .tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { width: auto; white-space: nowrap; flex: none; border: 1px solid var(--line-light); }
  .vault { grid-template-columns: auto 1fr; }
  .vault ul { grid-column: 1 / -1; }
}

@media (max-width: 980px) {
  .nav, .header-actions > .btn { display: none; }
  .burger { display: block; }
  .mobile-menu { display: flex; }
  .hero-grid, .demo-grid, .reports-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .section-head.split { grid-template-columns: 1fr; gap: 0; align-items: start; }
  .section-head.split .section-lead { margin-top: 22px; justify-self: start; }
  .hero { padding-top: 130px; }
  .hero-visual { max-width: 520px; width: 100%; margin-inline: auto; }
  .numbers-grid { grid-template-columns: 1fr 1fr; }
  .models-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .model.featured { transform: none; }
  .model.featured:hover { transform: translateY(-8px); }
  .phone-wrap { margin-inline: auto; order: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  html[lang="ar"] body { font-size: 16px; }
  .header-bar { padding: 8px 8px 8px 12px; }
  [dir="rtl"] .header-bar { padding: 8px 12px 8px 8px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-name { font-size: 17px; }
  html[lang="ar"] .brand-name { font-size: 19px; }
  .bento { grid-template-columns: 1fr; }
  .svc-feature, .svc-wide { grid-column: auto; }
  .svc-feature { padding: 30px 24px; }
  .callmock-btn { display: none; }
  .cs-grid { grid-template-columns: 1fr; }
  .c-word { margin-top: 26px; }
  .vault { grid-template-columns: 1fr; padding: 24px; }
  .numbers-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .chip { font-size: 11.5px; }
  .chip strong { font-size: 13.5px; }
  .chip-ic { width: 32px; height: 32px; font-size: 15px; }
  .chip-rate { inset-inline-start: -4px; top: 0; }
  .chip-wa { inset-inline-end: -4px; top: 24%; }
  .desk { padding: 16px; border-radius: 18px; }
  .metric { padding: 10px; }
  .metric-value { font-size: 21px; }
  .phone { width: 100%; max-width: 340px; height: 620px; }
  .hero-ctas .btn-primary { flex: 1 1 auto; }
  .acc { padding-inline: 18px; }
  .acc summary { font-size: 16.5px; }
  .tab-panel { grid-template-columns: 1fr; }
  .panel-art { width: 140px; }
  .report-card { padding: 22px; }
  .report-bars > div { grid-template-columns: 1fr 42px; }
  .report-bars .bar { grid-column: 1 / -1; grid-row: 2; }
  .footer-grid { grid-template-columns: 1fr; }
  .standard { border-radius: 28px 28px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-title .line > * { transform: none; }
}
