/* ==========================================================
   Abyan — abyanstw.com
   ========================================================== */

:root {
  --ink: #0e1a2b;
  --ink-2: #16263d;
  --ink-3: #22364f;
  --paper: #f4ede2;
  --paper-2: #ebe2d3;
  --sand: #d9cab2;
  --signal: #ff5a36;
  --signal-2: #ff7a55;
  --mint: #1fc49c;
  --muted: #5d6b7d;
  --line: rgba(14, 26, 43, .12);
  --line-light: rgba(244, 237, 226, .14);

  --f-body: 'Readex Pro', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --f-display: 'Instrument Serif', Georgia, serif;

  --radius: 22px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
}

html[lang="ar"] {
  --f-display: 'Readex Pro', 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(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

html[lang="ar"] body { font-size: 17.5px; line-height: 1.8; }

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: 500; line-height: 1.1; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--signal); color: #fff; }

.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, 12vw, 150px); position: relative; }
.dark { background: var(--ink); color: var(--paper); }

/* ---------- Grain + progress ---------- */
.grain {
  position: fixed; inset: -50%;
  pointer-events: none; z-index: 100;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
}

.progress { position: fixed; inset-inline: 0; top: 0; height: 3px; z-index: 60; }
.progress span {
  display: block; height: 100%; width: 100%;
  background: var(--signal);
  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-wave { display: flex; gap: 6px; align-items: center; height: 60px; }
.loader-wave i {
  width: 6px; height: 100%; border-radius: 4px;
  background: var(--paper);
  animation: wave 1s var(--ease) infinite alternate;
}
.loader-wave i:nth-child(4) { background: var(--signal); }
.loader-wave i:nth-child(2) { animation-delay: .1s; }
.loader-wave i:nth-child(3) { animation-delay: .2s; }
.loader-wave i:nth-child(4) { animation-delay: .3s; }
.loader-wave i:nth-child(5) { animation-delay: .4s; }
.loader-wave i:nth-child(6) { animation-delay: .5s; }
.loader-wave i:nth-child(7) { animation-delay: .6s; }
@keyframes wave { from { transform: scaleY(.2); } to { transform: scaleY(1); } }
html:not(.is-loading) .loader { opacity: 0; visibility: hidden; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px;
  border-radius: 100px;
  font-weight: 500; font-size: 15.5px; line-height: 1;
  white-space: nowrap;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s, box-shadow .3s, transform .3s var(--ease);
  will-change: transform;
}
.btn-sm { padding: 10px 18px; font-size: 14.5px; }
.btn-lg { padding: 18px 30px; font-size: 16.5px; }
.btn-block { width: 100%; }
.btn .arrow, .btn .play { 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-signal { background: var(--signal); color: #fff; box-shadow: 0 10px 30px -10px rgba(255, 90, 54, .7); }
.btn-signal:hover { background: var(--ink); box-shadow: 0 10px 30px -12px rgba(14, 26, 43, .6); }
.dark .btn-signal:hover { background: var(--paper); color: var(--ink); }
.btn-ghost { color: var(--ink); }
.btn-ghost .play {
  width: 40px; height: 40px; padding: 12px;
  border-radius: 50%; background: var(--ink); color: var(--paper);
}
.btn-ghost:hover .play { background: var(--signal); transform: scale(1.08); }
.btn-outline { border: 1.5px solid var(--line); }
.btn-outline:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  padding-block: 18px;
  transition: padding .4s var(--ease), background .4s, box-shadow .4s, transform .5s var(--ease);
}
.site-header.scrolled {
  padding-block: 10px;
  background: rgba(244, 237, 226, .82);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.hide { transform: translateY(-110%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand-mark { width: 38px; height: 38px; transition: transform .6s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.05); }
.brand-name { font-weight: 600; font-size: 22px; letter-spacing: -.01em; }
html[lang="en"] .brand-name { font-family: var(--f-display); font-weight: 400; font-size: 28px; }
.brand-light { color: var(--paper); }

.nav { display: flex; gap: 6px; }
.nav a {
  position: relative; padding: 8px 14px; font-size: 15px; color: var(--ink-2);
  border-radius: 100px; transition: background .3s, color .3s;
}
.nav a:hover { background: rgba(14, 26, 43, .06); }
.nav a.active { color: var(--signal); }

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

.lang-toggle {
  position: relative; display: flex; padding: 4px;
  border-radius: 100px; background: rgba(14, 26, 43, .07);
  font-size: 13px; font-weight: 600;
}
.lang-opt {
  position: relative; z-index: 1; min-width: 36px; padding: 6px 8px;
  text-align: center; border-radius: 100px; transition: color .3s;
}
.lang-toggle::before {
  content: ""; position: absolute; top: 4px; bottom: 4px; width: calc(50% - 4px);
  border-radius: 100px; background: var(--ink);
  inset-inline-start: 4px; transition: inset-inline-start .4s var(--ease);
}
/* Button is always laid out [ع][EN] in the current direction; the pill slides to the active one */
html[lang="ar"] .lang-toggle::before { inset-inline-start: 4px; }
html[lang="en"] .lang-toggle::before { inset-inline-start: calc(50%); }
html[lang="ar"] .lang-opt[data-l="ar"],
html[lang="en"] .lang-opt[data-l="en"] { color: var(--paper); }

.burger { display: none; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); position: relative; }
.burger span {
  position: absolute; left: 12px; right: 12px; height: 2px; background: var(--paper);
  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; top: 0; z-index: -1;
  background: var(--ink); color: var(--paper);
  padding: 110px var(--gutter) 40px;
  flex-direction: column; gap: 6px;
  clip-path: circle(0 at calc(100% - 40px) 40px);
  transition: clip-path .7s var(--ease);
}
[dir="rtl"] .mobile-menu { clip-path: circle(0 at 40px 40px); }
.mobile-menu a:not(.btn) {
  font-size: 34px; font-weight: 500; padding-block: 6px;
  border-bottom: 1px solid var(--line-light);
  opacity: 0; transform: translateY(20px);
  transition: opacity .5s, transform .5s var(--ease);
}
.mobile-menu .btn { margin-top: 24px; }
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 40px) 40px); }
[dir="rtl"].menu-open .mobile-menu, .menu-open[dir="rtl"] .mobile-menu { clip-path: circle(150% at 40px 40px); }
.menu-open .mobile-menu a { opacity: 1; transform: none; }
.menu-open .mobile-menu a:nth-child(2) { transition-delay: .05s; }
.menu-open .mobile-menu a:nth-child(3) { transition-delay: .1s; }
.menu-open .mobile-menu a:nth-child(4) { transition-delay: .15s; }
.menu-open .mobile-menu a:nth-child(5) { transition-delay: .2s; }
.menu-open .site-header { background: transparent; box-shadow: none; backdrop-filter: none; }
.menu-open .brand { color: var(--paper); }
.menu-open .burger { background: var(--signal); }
.menu-open .lang-toggle { background: rgba(244, 237, 226, .12); color: var(--paper); }
.menu-open .lang-toggle::before { background: var(--signal); }

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

.kicker {
  display: inline-block; margin-bottom: 22px;
  font-size: 13.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--signal);
}
.section-title {
  font-family: var(--f-display);
  font-size: clamp(40px, 6.2vw, 84px);
  font-weight: 400; line-height: .98; letter-spacing: -.02em;
}
html[lang="ar"] .section-title { font-weight: 600; letter-spacing: -.01em; line-height: 1.2; font-size: clamp(34px, 5.2vw, 68px); }
.section-title em { font-style: italic; color: var(--signal); }
html[lang="ar"] .section-title em { font-style: normal; }
.section-title.big { font-size: clamp(48px, 8vw, 116px); }
html[lang="ar"] .section-title.big { font-size: clamp(40px, 6.4vw, 90px); }
.section-lead { margin-top: 26px; max-width: 520px; font-size: 18.5px; color: var(--muted); }
.dark .section-lead { color: rgba(244, 237, 226, .7); }
.section-head { margin-bottom: clamp(48px, 7vw, 80px); max-width: 820px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .section-lead { margin-inline: auto; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(34px); 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: 140px 90px; overflow: hidden;
}
.hero-glow {
  position: absolute; width: 900px; height: 900px; border-radius: 50%;
  inset-inline-end: -260px; top: -240px;
  background: radial-gradient(closest-side, rgba(255, 90, 54, .22), rgba(255, 90, 54, 0));
  filter: blur(10px);
  animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(-80px, 120px) scale(1.1); } }

.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.hero-title {
  margin-top: 28px;
  font-family: var(--f-display);
  font-size: clamp(54px, 8.4vw, 124px);
  font-weight: 400; line-height: .95; letter-spacing: -.03em;
}
html[lang="ar"] .hero-title { font-weight: 700; line-height: 1.18; letter-spacing: -.015em; font-size: clamp(44px, 6.6vw, 94px); }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.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; }
.accent { color: var(--signal); font-style: italic; position: relative; }
html[lang="ar"] .accent { font-style: normal; }
.accent::after {
  content: ""; position: absolute; inset-inline: 0; bottom: .02em; height: .08em;
  background: currentColor; border-radius: 4px; transform: scaleX(0); transform-origin: left;
  transition: transform 1s var(--ease) 1s;
}
[dir="rtl"] .accent::after { transform-origin: right; }
.ready .accent::after { transform: scaleX(1); }

.hero-sub { margin-top: 28px; max-width: 540px; font-size: 19px; color: var(--muted); }
.hero-ctas { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.hero-points { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 14.5px; color: var(--ink-3); }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 16px; height: 2px; background: var(--signal); }

/* Floor card */
.hero-visual { position: relative; perspective: 1200px; }
.floor-card {
  position: relative;
  background: var(--ink); color: var(--paper);
  border-radius: 28px; padding: 26px;
  box-shadow: 0 50px 100px -40px rgba(14, 26, 43, .55), 0 0 0 1px rgba(255, 255, 255, .04) inset;
  transform-style: preserve-3d;
  transition: transform .5s var(--ease);
}
.floor-head { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.floor-title { display: flex; align-items: center; gap: 10px; opacity: .85; }
.floor-clock { font-variant-numeric: tabular-nums; direction: ltr; opacity: .6; font-size: 13px; letter-spacing: .04em; }

.floor-wave { display: flex; align-items: center; gap: 4px; height: 70px; margin-block: 22px 18px; }
.floor-wave i {
  flex: 1; height: 100%; border-radius: 4px;
  background: linear-gradient(to top, var(--signal), var(--signal-2));
  opacity: .9;
  transform: scaleY(.15);
  animation: bar 1.2s ease-in-out infinite alternate;
}
.floor-wave i:nth-child(3n) { animation-duration: .9s; background: var(--paper); opacity: .35; }
.floor-wave i:nth-child(4n) { animation-duration: 1.5s; }
.floor-wave i:nth-child(5n) { animation-duration: .7s; }
@keyframes bar { 0% { transform: scaleY(.12); } 50% { transform: scaleY(var(--h, .7)); } 100% { transform: scaleY(.3); } }

.floor-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.metric { padding: 14px; border-radius: 16px; background: rgba(244, 237, 226, .06); }
.metric-label { display: block; font-size: 12px; opacity: .6; line-height: 1.3; }
.metric-value { display: block; margin-top: 6px; font-size: 28px; font-weight: 500; font-variant-numeric: tabular-nums; direction: ltr; text-align: start; }
[dir="rtl"] .metric-value { text-align: right; }
.metric-value small { font-size: 14px; opacity: .6; margin-inline-start: 2px; }

.floor-calls { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; min-height: 212px; }
.call {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  padding: 12px 14px; border-radius: 14px; background: rgba(244, 237, 226, .05);
  font-size: 13.5px;
  animation: callIn .7s var(--ease) both;
}
.call.out { animation: callOut .5s var(--ease) both; }
@keyframes callIn { from { opacity: 0; transform: translateY(-14px) scale(.97); } }
@keyframes callOut { to { opacity: 0; transform: translateY(10px) scale(.97); } }
.call-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(31, 196, 156, .15); color: var(--mint); }
.call-ic svg { width: 16px; height: 16px; }
.call-ic.wa { background: rgba(37, 211, 102, .14); color: #25d366; }
.call-ic.chat { background: rgba(255, 90, 54, .15); color: var(--signal-2); }
.call-ic.mail { background: rgba(244, 237, 226, .1); color: var(--paper); }
.call b { display: block; font-weight: 500; }
.call span { opacity: .55; font-size: 12px; }
.call-state { font-size: 11.5px; padding: 4px 10px; border-radius: 100px; background: rgba(31, 196, 156, .15); color: var(--mint); white-space: nowrap; }

.float-chip {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px; border-radius: 18px;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 20px 50px -20px rgba(14, 26, 43, .45);
  font-size: 13px; line-height: 1.3;
  animation: float 6s ease-in-out infinite;
}
.float-chip strong { display: block; font-size: 15px; font-weight: 600; }
.float-chip span:not(.chip-icon) { color: var(--muted); }
.chip-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--signal); color: #fff; font-size: 18px; }
.chip-wa { background: #25d366; }
.chip-wa svg { width: 20px; height: 20px; }
.chip-1 { top: -26px; inset-inline-start: -40px; }
.chip-2 { bottom: 40px; inset-inline-end: -36px; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-12px); } }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; background: var(--signal); color: #fff;
  padding-block: 22px; transform: rotate(-1.5deg) scale(1.03); margin-block: 10px;
}
[dir="rtl"] .marquee { transform: rotate(1.5deg) scale(1.03); }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; flex: none; }
.marquee-item { display: inline-flex; align-items: center; gap: 28px; padding-inline: 14px; font-size: clamp(22px, 3vw, 36px); font-weight: 500; white-space: nowrap; }
html[lang="en"] .marquee-item { font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: clamp(26px, 3.6vw, 44px); }
.marquee-item::after { content: "✳"; font-size: .6em; opacity: .7; font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* ---------- Numbers ---------- */
.numbers { padding-block: clamp(70px, 10vw, 120px); }
.numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.num { padding: 34px 24px 0 0; border-inline-end: 1px solid var(--line); padding-inline: 0 24px; }
.num:not(:first-child) { padding-inline-start: 24px; }
.num:last-child { border-inline-end: 0; }
.num-value { display: block; direction: ltr; text-align: start; font-family: 'Instrument Serif', Georgia, serif; font-size: clamp(56px, 6.4vw, 92px); line-height: 1; letter-spacing: -.03em; }
[dir="rtl"] .num-value { text-align: right; }
.num-value small { font-size: .4em; color: var(--muted); margin-inline-start: 4px; font-family: var(--f-body); }
.num-label { display: block; margin-top: 14px; font-size: 15px; color: var(--muted); max-width: 240px; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service-card {
  position: relative; overflow: hidden;
  padding: 30px 26px 70px; border-radius: var(--radius);
  background: #fbf7f0; border: 1px solid var(--line);
  transition: transform .5s var(--ease), background .5s, color .5s, border-color .5s, opacity 1s var(--ease);
  isolation: isolate;
}
.service-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 90, 54, .16), transparent 45%);
  transition: opacity .4s;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover { transform: translateY(-6px); border-color: rgba(255, 90, 54, .35); }
.service-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--ink); color: var(--paper); margin-bottom: 26px;
  transition: transform .6s var(--ease), background .4s;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card:hover .service-icon { background: var(--signal); transform: rotate(-8deg) scale(1.05); }
.service-card h3 { font-size: 20px; font-weight: 600; line-height: 1.3; margin-bottom: 12px; }
.service-card p { font-size: 15px; color: var(--muted); line-height: 1.65; }
.service-num { position: absolute; bottom: 22px; inset-inline-end: 24px; font-family: 'Instrument Serif', serif; font-size: 34px; color: rgba(14, 26, 43, .14); transition: color .4s; }
.service-card:hover .service-num { color: var(--signal); }

/* ---------- Why ---------- */
.why { border-radius: 40px 40px 0 0; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 120px); align-items: start; }
.why-sticky { position: sticky; top: 120px; }
.dialects { margin-top: 40px; }
.dialects-label { font-size: 14px; opacity: .6; display: block; margin-bottom: 14px; }
.dialect-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.dialect-tags span {
  padding: 8px 16px; border-radius: 100px; font-size: 14.5px;
  border: 1px solid var(--line-light); transition: background .3s, color .3s, border-color .3s;
}
.dialect-tags span:hover { background: var(--signal); border-color: var(--signal); }
.why-list { counter-reset: w; }
.why-item {
  display: grid; grid-template-columns: 70px 1fr; gap: 20px;
  padding-block: 38px; border-bottom: 1px solid var(--line-light);
}
.why-item:first-child { padding-top: 0; }
.why-idx { font-family: 'Instrument Serif', serif; font-size: 44px; line-height: 1; color: var(--signal); }
.why-item h3 { font-size: 23px; font-weight: 500; line-height: 1.35; margin-bottom: 12px; }
.why-item p { color: rgba(244, 237, 226, .65); font-size: 16px; }

/* ---------- Demo ---------- */
.demo-grid { display: grid; grid-template-columns: 1fr auto; gap: clamp(40px, 8vw, 120px); align-items: center; }
.demo-notes { margin-top: 36px; display: grid; gap: 12px; }
.demo-notes li { display: flex; gap: 14px; align-items: center; font-size: 16.5px; }
.demo-notes li span:first-child {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--mint); color: #fff; font-size: 13px;
}

.phone {
  position: relative; width: 360px; height: 680px;
  border-radius: 48px; padding: 12px;
  background: var(--ink);
  box-shadow: 0 60px 120px -50px rgba(14, 26, 43, .6), 0 0 0 2px #2b3c55 inset;
  display: flex; flex-direction: column; overflow: hidden;
}
.phone::before {
  content: ""; position: absolute; inset: 12px; border-radius: 38px; z-index: 0;
  background: #e9e0d2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='2' cy='2' r='1.2' fill='%230e1a2b' fill-opacity='.07'/%3E%3C/svg%3E");
}
.phone > * { position: relative; z-index: 1; }
.phone-notch { position: absolute; top: 22px; 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: 38px 38px 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: var(--signal); font-weight: 600; font-family: var(--f-display); font-size: 20px; }
.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(--paper-2); }
.timeline { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.timeline-line { position: absolute; top: 9px; inset-inline: 0; height: 2px; background: var(--line); }
.timeline-line span { display: block; height: 100%; width: 100%; background: var(--signal); 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: 44px; }
.step::before {
  content: ""; position: absolute; top: 0; inset-inline-start: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--paper-2); border: 2px solid var(--signal);
  box-shadow: 0 0 0 6px var(--paper-2);
  transition: background .4s;
}
.step.in::before { background: var(--signal); transition-delay: .4s; }
.step-day { display: inline-block; padding: 4px 12px; border-radius: 100px; background: var(--ink); color: var(--paper); font-size: 12.5px; margin-bottom: 18px; }
.step h3 { font-size: 22px; font-weight: 600; margin-bottom: 10px; }
.step p { font-size: 15px; color: var(--muted); }

/* ---------- Industries ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.tab {
  padding: 12px 20px; border-radius: 100px; font-size: 15px;
  border: 1px solid var(--line-light); color: rgba(244, 237, 226, .75);
  transition: all .35s var(--ease);
}
.tab:hover { color: var(--paper); border-color: rgba(244, 237, 226, .4); }
.tab.is-active { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.tab-panels { position: relative; }
.tab-panel {
  display: none; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
  padding: clamp(28px, 4vw, 56px); border-radius: 30px; background: var(--ink-2);
  border: 1px solid var(--line-light);
}
.tab-panel.is-active { display: grid; animation: panelIn .7s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(20px); } }
.panel-text h3 { font-family: var(--f-display); font-size: clamp(28px, 3.4vw, 46px); line-height: 1.1; margin-bottom: 20px; }
html[lang="ar"] .panel-text h3 { font-weight: 600; line-height: 1.35; font-size: clamp(24px, 2.8vw, 36px); }
.panel-text p { color: rgba(244, 237, 226, .7); max-width: 520px; }
.panel-text ul { margin-top: 26px; display: grid; gap: 10px; }
.panel-text li { display: flex; gap: 12px; align-items: center; }
.panel-text li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); flex: none; }

.panel-art { position: relative; aspect-ratio: 1; max-width: 340px; width: 100%; justify-self: center; }
.panel-art span { position: absolute; border-radius: 50%; }
.panel-art span:nth-child(1) { inset: 0; border: 1.5px dashed rgba(244, 237, 226, .25); animation: spin 30s linear infinite; }
.panel-art span:nth-child(2) { inset: 16%; background: radial-gradient(circle at 30% 30%, var(--signal-2), var(--signal) 60%, #c73d1f); animation: breathe 5s ease-in-out infinite; }
.panel-art span:nth-child(3) { width: 22%; height: 22%; top: 4%; inset-inline-end: 8%; background: var(--paper); animation: orbit 9s linear infinite; transform-origin: -120% 180%; }
.art-1 span:nth-child(2) { background: radial-gradient(circle at 30% 30%, #5ee2c1, var(--mint) 60%, #0f8c6d); border-radius: 30%; }
.art-2 span:nth-child(2) { border-radius: 12% 12% 50% 50%; background: linear-gradient(160deg, var(--sand), #a88f6a); }
.art-3 span:nth-child(2) { border-radius: 24%; background: linear-gradient(135deg, #3e5a83, var(--ink-3)); box-shadow: 0 0 0 10px rgba(255, 90, 54, .4) inset; }
.art-4 span:nth-child(2) { background: radial-gradient(circle at 70% 30%, #ffd4a8, var(--signal-2) 55%, #b03a1e); }
.art-5 span:nth-child(2) { border-radius: 50% 50% 12% 50%; background: linear-gradient(135deg, var(--paper), var(--sand)); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: scale(1.06) rotate(6deg); } }
@keyframes orbit { to { transform: rotate(360deg); } }

/* ---------- 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: #fbf7f0; border: 1px solid var(--line);
  box-shadow: 0 40px 80px -50px rgba(14, 26, 43, .45);
}
.report-head { display: flex; justify-content: space-between; align-items: center; font-weight: 500; }
.report-badge { padding: 4px 12px; border-radius: 100px; background: rgba(31, 196, 156, .15); color: #0f8c6d; font-size: 13px; 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-weight: 600; direction: ltr; text-align: end; }
.bar { height: 8px; border-radius: 8px; background: var(--paper-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(--signal); }
.report-bars > div:nth-child(3) .bar i { transition-delay: .8s; background: var(--mint); }
.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(--ink); color: var(--paper); font-size: 13px;
}

/* ---------- Models ---------- */
.models { background: var(--paper-2); }
.models-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.model {
  display: flex; flex-direction: column;
  padding: 36px 30px; border-radius: 28px; background: var(--paper); border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s, opacity 1s var(--ease);
}
.model:hover { transform: translateY(-8px); box-shadow: 0 40px 70px -40px rgba(14, 26, 43, .35); }
.model-tag { align-self: flex-start; padding: 5px 12px; border-radius: 100px; background: rgba(14, 26, 43, .07); font-size: 12.5px; font-weight: 500; }
.model h3 { margin-block: 22px 12px; font-family: var(--f-display); font-size: 40px; line-height: 1; }
html[lang="ar"] .model h3 { font-weight: 600; font-size: 30px; line-height: 1.3; }
.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; gap: 10px; font-size: 15px; }
.model li::before { content: "—"; color: var(--signal); }
.model.featured { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: translateY(-14px); }
.model.featured:hover { transform: translateY(-20px); }
.model.featured .model-tag { background: var(--signal); color: #fff; }
.model.featured p { color: rgba(244, 237, 226, .7); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 8vw, 110px); align-items: start; }
.acc { border-bottom: 1px solid var(--line); }
.acc summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding-block: 26px; font-size: 20px; font-weight: 500;
  transition: color .3s;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { color: var(--signal); }
.acc summary i { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); transition: background .3s, transform .5s var(--ease); }
.acc summary i::before, .acc summary i::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .4s var(--ease); }
.acc summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc[open] summary i { background: var(--signal); color: #fff; border-color: var(--signal); transform: rotate(180deg); }
.acc[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.acc p { padding-bottom: 26px; color: var(--muted); max-width: 620px; animation: panelIn .5s var(--ease); }

/* ---------- Contact ---------- */
.contact { overflow: hidden; }
.contact-rings { position: absolute; inset-inline-start: -200px; bottom: -200px; width: 700px; height: 700px; pointer-events: none; }
.contact-rings i { position: absolute; inset: 0; border: 1px solid rgba(255, 90, 54, .35); border-radius: 50%; animation: rings 6s var(--ease) infinite; }
.contact-rings i:nth-child(2) { animation-delay: 2s; }
.contact-rings i:nth-child(3) { animation-delay: 4s; }
@keyframes rings { from { transform: scale(.2); opacity: 1; } to { transform: scale(1); opacity: 0; } }
.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(244, 237, 226, .06); border-color: rgba(244, 237, 226, .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(--signal); color: #fff; flex: none; }
.cl-icon svg { width: 22px; height: 22px; }

.contact-form {
  padding: clamp(24px, 3vw, 40px); border-radius: 30px;
  background: var(--paper); color: var(--ink);
  display: grid; gap: 14px;
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .6);
}
.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: 14px;
  border: 1.5px solid var(--line); background: #fbf7f0;
  font: inherit; font-size: 16px; color: var(--ink);
  transition: border-color .3s, background .3s, box-shadow .3s; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(14, 26, 43, .07); }
.field label {
  position: absolute; inset-inline-start: 17px; top: 17px;
  font-size: 15.5px; 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(--ink); }
.field.error input { border-color: var(--signal); background: #fff4f0; }
.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: 100px; border: 1.5px solid var(--line); font-size: 14px; transition: all .3s var(--ease); }
.chip-check:hover span { border-color: var(--ink); }
.chip-check input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip-check input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 2px; }
.form-msg { font-size: 14px; min-height: 1em; color: var(--muted); text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding-bottom: 30px; overflow: hidden; border-top: 1px solid var(--line-light); }
.footer-big {
  font-family: var(--f-display); font-size: clamp(120px, 26vw, 380px); line-height: .9;
  letter-spacing: -.04em; text-align: center; padding-top: 50px;
  background: linear-gradient(to bottom, rgba(244, 237, 226, .14), rgba(244, 237, 226, 0) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
}
html[lang="ar"] .footer-big { font-weight: 700; line-height: 1.3; font-size: clamp(100px, 22vw, 320px); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-block: 50px 40px; border-bottom: 1px solid var(--line-light); }
.footer-about { margin-top: 18px; max-width: 340px; color: rgba(244, 237, 226, .6); font-size: 15px; }
.footer-grid h4 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--signal); margin-bottom: 18px; font-weight: 500; }
.footer-grid a:not(.brand) { display: block; width: fit-content; padding-block: 5px; color: rgba(244, 237, 226, .78); font-size: 15px; transition: color .3s, transform .3s var(--ease); }
.footer-grid a:not(.brand):hover { color: var(--paper); transform: translateX(4px); }
[dir="rtl"] .footer-grid a:not(.brand):hover { transform: translateX(-4px); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 26px; font-size: 13.5px; color: rgba(244, 237, 226, .5); }

/* ---------- Floating things ---------- */
.to-top, .wa-float {
  position: fixed; bottom: 22px; z-index: 40;
  width: 52px; height: 52px; border-radius: 50%;
  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;
}
.to-top { inset-inline-end: 22px; background: var(--ink); color: var(--paper); opacity: 0; transform: translateY(20px); pointer-events: none; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--signal); }
.to-top svg { width: 22px; height: 22px; }
.wa-float { inset-inline-start: 22px; background: #25d366; color: #fff; }
.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: 100px; background: var(--ink); color: var(--paper);
  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: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: 1fr; gap: 0; padding-inline-start: 40px; }
  .timeline-line { top: 0; bottom: 0; inset-inline-start: 9px; inset-inline-end: auto; width: 2px; height: auto; }
  .timeline-line span { transform: scaleY(var(--p, 0)); transform-origin: top; }
  .step { padding: 0 0 44px; }
  .step::before { inset-inline-start: -40px; }
}

@media (max-width: 980px) {
  .nav, .header-actions > .btn { display: none; }
  .burger { display: block; }
  .mobile-menu { display: flex; }
  .hero-grid, .why-grid, .demo-grid, .reports-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
  .hero-visual { max-width: 520px; width: 100%; margin-inline: auto; }
  .why-sticky { position: static; }
  .numbers-grid { grid-template-columns: 1fr 1fr; }
  .num { padding: 30px 20px 30px 0 !important; padding-inline: 0 20px !important; border-bottom: 1px solid var(--line); }
  .num:nth-child(2n) { border-inline-end: 0; padding-inline: 20px 0 !important; }
  .tab-panel { grid-template-columns: 1fr; }
  .panel-art { max-width: 220px; order: -1; }
  .models-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .model.featured { transform: none; }
  .model.featured:hover { transform: translateY(-8px); }
  .phone { margin-inline: auto; }
  .reports-copy { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .services-grid { grid-template-columns: 1fr; }
  .numbers-grid { grid-template-columns: 1fr; }
  .num, .num:nth-child(2n) { border-inline-end: 0; padding-inline: 0 !important; }
  .field-row { grid-template-columns: 1fr; }
  .chip-1 { inset-inline-start: -6px; top: -30px; }
  .chip-2 { inset-inline-end: -6px; bottom: -24px; }
  .floor-card { padding: 18px; border-radius: 22px; }
  .metric { padding: 10px; }
  .metric-value { font-size: 22px; }
  .phone { width: 100%; max-width: 340px; height: 620px; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .acc summary { font-size: 17px; }
  .report-bars > div { grid-template-columns: 1fr 42px; }
  .report-bars .bar { grid-column: 1 / -1; grid-row: 2; }
  .footer-grid { grid-template-columns: 1fr; }
  .why-item { grid-template-columns: 50px 1fr; }
  .why-idx { font-size: 34px; }
}

@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; }
}
