/* RevConnect Solutions · WIDUNI C-SaaS (UAE)
   Layout: warm off-white page with petal shapes behind the hero, a deep-plum chat
   demo, then alternating content bands in a 1200px column. Logical properties
   throughout so the same rules serve English (LTR) and Arabic (RTL). */
:root {
  /* Brand (taken from revconnectsolutions.com/demo) */
  --brand: #AC1549;          /* crimson: text accents, logo */
  --btn: #AC1549;            /* crimson: button fill */
  --btn-hover: #8F0F3C;
  --on-btn: #FFFFFF;
  --orange: #D5611D;
  --plum: #311722;           /* deep plum: demo card, contact band, footer */
  --plum-2: #3D252F;
  --plum-3: #503A43;
  --plum-fg: #F7EEF1;
  --plum-muted: #BCA9B1;
  --plum-line: rgba(247, 238, 241, 0.13);

  /* Neutrals (rose-biased) */
  --bg: #FBF7F8;
  --surface: #FFFFFF;
  --surface-2: #F6EDF0;
  --fg: #1E1418;
  --muted: #6A5A61;
  --line: #EBDDE2;
  --blob-1: #F5E7EB;
  --blob-2: #F8EDE8;
  --header-bg: rgba(251, 247, 248, 0.92);

  /* Semantic */
  --good: #1E8A52;
  --good-bg: #E2F3EA;
  --warn: #93550F;
  --warn-bg: #FCEFD9;
  --danger: #B3261E;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --font-logo: "Oswald", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-ar-display: "Noto Kufi Arabic", "IBM Plex Sans Arabic", "Geeza Pro", Tahoma, sans-serif;
  --font-ar-body: "IBM Plex Sans Arabic", "Noto Kufi Arabic", "Geeza Pro", Tahoma, sans-serif;

  --radius: 16px;
  --shadow: 0 1px 2px rgba(49, 23, 34, 0.05), 0 10px 30px rgba(49, 23, 34, 0.08);
  --max: 1200px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #F06A93;
    --btn: #C7245A;
    --btn-hover: #DB3C70;
    --orange: #F0823F;
    --plum: #2A1320;
    --plum-2: #3A2130;
    --plum-3: #4C3240;
    --bg: #140A0F;
    --surface: #1D1016;
    --surface-2: #28161F;
    --fg: #F4EAEE;
    --muted: #B8A3AC;
    --line: #3A2430;
    --blob-1: #2A1220;
    --blob-2: #281812;
    --header-bg: rgba(20, 10, 15, 0.9);
    --good: #4CC488;
    --good-bg: #173527;
    --warn: #F0B060;
    --warn-bg: #3A2A14;
    --danger: #FF8A80;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand: #F06A93;
  --btn: #C7245A;
  --btn-hover: #DB3C70;
  --orange: #F0823F;
  --plum: #2A1320;
  --plum-2: #3A2130;
  --plum-3: #4C3240;
  --bg: #140A0F;
  --surface: #1D1016;
  --surface-2: #28161F;
  --fg: #F4EAEE;
  --muted: #B8A3AC;
  --line: #3A2430;
  --blob-1: #2A1220;
  --blob-2: #281812;
  --header-bg: rgba(20, 10, 15, 0.9);
  --good: #4CC488;
  --good-bg: #173527;
  --warn: #F0B060;
  --warn-bg: #3A2A14;
  --danger: #FF8A80;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .25s ease, color .25s ease;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--bg);
}
img, svg { max-width: 100%; }
a { color: var(--brand); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -0.015em; }
p { margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Arabic typography */
html[lang="ar"] body { font-family: var(--font-ar-body); line-height: 1.75; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { font-family: var(--font-ar-display); letter-spacing: 0; line-height: 1.35; }
html[lang="ar"] .eyebrow, html[lang="ar"] .mono-ar { font-family: var(--font-ar-body); letter-spacing: 0; text-transform: none; font-size: 14px; }
.latin { font-family: var(--font-body); }
.num { direction: ltr; unicode-bidi: isolate; display: inline-block; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 48px);
  margin-inline: auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
@media (max-width: 600px) {
  .wrap {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
}
.section { padding-block: clamp(64px, 9vw, 112px); }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
}
.section-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 18px; max-width: 62ch; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 26px;
  border-radius: 999px;
  font: 600 16px/1 var(--font-body);
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
html[lang="ar"] .btn { font-family: var(--font-ar-body); }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--btn); color: var(--on-btn); }
.btn-primary:hover { background: var(--btn-hover); }
.btn-ghost { background: var(--surface); color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- Logo ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; direction: ltr; }
.brand-mark { width: 44px; height: 44px; flex-shrink: 0; }
.brand-word {
  display: grid; font-family: var(--font-logo); font-weight: 300; color: var(--brand);
  font-size: 23px; line-height: 0.98; letter-spacing: -0.01em;
}
.leaf-a, .leaf-b { fill: var(--brand); }
.leaf-c { fill: var(--orange); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(49, 23, 34, 0.08); }
.nav { display: flex; align-items: center; gap: 16px; min-height: 76px; }
.nav-links { display: flex; gap: 2px; margin: 0; margin-inline-start: auto; list-style: none; padding: 0; }
.nav-links a {
  display: block; padding: 8px 11px; border-radius: 8px;
  color: var(--fg); text-decoration: none; font-weight: 500; font-size: 15.5px; white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--brand); background: var(--surface-2); }
.nav-tools { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 42px; height: 42px; padding: 0 12px;
  background: var(--surface); color: var(--fg);
  border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  font: 600 14px var(--font-body);
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.icon-btn svg { width: 18px; height: 18px; }
.lang-btn .ar-label { font-family: var(--font-ar-body); font-size: 15px; }
.theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }
:root[data-theme="dark"] .theme-btn .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: none; }
}
.nav-cta { padding: 13px 20px; font-size: 15px; }
.nav-toggle { display: none; }
.nav-links .mobile-cta { display: none; }

@media (max-width: 1180px) {
  .nav-links a { padding: 8px 8px; font-size: 15px; }
}
@media (max-width: 1080px) {
  .nav-links, .nav-cta { display: none; }
  .nav-tools { margin-inline-start: auto; }
  .nav-toggle { display: inline-flex; }
  .site-header.open .nav-links {
    display: grid; position: absolute; inset-inline: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(49, 23, 34, 0.12);
    padding: 8px max(16px, env(safe-area-inset-right, 0px)) 20px max(16px, env(safe-area-inset-left, 0px));
    margin: 0;
  }
  .site-header.open .nav-links a { padding: 13px 10px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-header.open .nav-links .mobile-cta { display: block; margin-top: 12px; }
  .site-header.open .nav-links .mobile-cta a { background: var(--btn); color: var(--on-btn); text-align: center; border-radius: 999px; border: 0; font-weight: 600; }
}
@media (max-width: 480px) {
  .brand-mark { width: 38px; height: 38px; }
  .brand-word { font-size: 19px; }
  .nav { gap: 10px; min-height: 68px; }
  .icon-btn { min-width: 40px; height: 40px; padding: 0 10px; }
  .nav-toggle .label { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(44px, 7vw, 96px) clamp(48px, 7vw, 88px); }
.petals { position: absolute; inset-block-start: -40px; inset-inline-end: -120px; width: min(760px, 70vw); aspect-ratio: 1; pointer-events: none; }
.petals span { position: absolute; display: block; }
.petals .p1 { inset-block-start: 0; inset-inline-start: 18%; width: 46%; height: 66%; background: var(--blob-1); border-radius: 0 100% 0 100%; }
.petals .p2 { inset-block-start: 0; inset-inline-end: 0; width: 34%; height: 46%; background: var(--blob-1); border-radius: 100% 0 100% 0; opacity: .8; }
.petals .p3 { inset-block-start: 50%; inset-inline-end: 0; width: 34%; height: 42%; background: var(--blob-2); border-radius: 0 100% 0 100%; }
html[dir="rtl"] .petals { transform: scaleX(-1); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.hero-copy { display: grid; gap: 24px; min-width: 0; }
.hero h1 { font-size: clamp(40px, 6vw, 76px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
html[lang="ar"] .hero h1 { font-size: clamp(34px, 5vw, 60px); line-height: 1.3; letter-spacing: 0; }
.hero h1 .c1 { font-style: normal; color: var(--brand); }
.hero h1 .c2 { font-style: normal; color: var(--orange); }
.hero-lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 54ch; }
.hero-lead strong { color: var(--fg); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.ticks li { display: inline-flex; align-items: center; gap: 9px; }
.ticks li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); flex-shrink: 0; }
@media (max-width: 480px) {
  .hero-actions .btn { flex: 1 1 100%; }
}

/* Chat + app demo */
.demo { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; min-width: 0; }
.demo > * { min-width: 0; }
.chat {
  background: var(--plum); color: var(--plum-fg);
  border-radius: 24px; padding: 18px;
  box-shadow: 0 30px 60px rgba(49, 23, 34, 0.28);
}
.chat-bar { display: flex; align-items: center; gap: 12px; padding: 4px 6px 14px; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: #AC1549; color: #FFFFFF; font: 800 15px var(--font-display);
}
.who { display: grid; line-height: 1.25; min-width: 0; }
.who b { font-size: 15px; }
.who span { font-size: 12.5px; color: #8FE0B5; display: inline-flex; align-items: center; gap: 6px; }
.who span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #8FE0B5; }
.replay {
  margin-inline-start: auto; background: transparent; border: 1px solid var(--plum-line); color: var(--plum-muted);
  font: 600 11.5px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; border-radius: 999px; padding: 7px 12px; cursor: pointer;
}
html[lang="ar"] .replay { font-family: var(--font-ar-body); letter-spacing: 0; font-size: 13px; }
.replay:hover { color: var(--plum-fg); border-color: #F06A93; }
.chat-body {
  display: grid; gap: 10px; padding: 16px; min-height: 300px; align-content: start;
  background: var(--plum-2); border-radius: 16px;
}
.msg {
  max-width: 88%; padding: 11px 15px; border-radius: 16px; font-size: 15px; line-height: 1.45;
  animation: pop .35s ease both;
}
.msg.user { justify-self: end; background: #AC1549; color: #FFFFFF; border-end-end-radius: 4px; }
.msg.bot { justify-self: start; background: var(--plum-3); color: var(--plum-fg); border-end-start-radius: 4px; }
.msg.live { background: #D5611D; color: #FFFFFF; }
.msg .meta { display: block; margin-top: 4px; font: 500 10.5px var(--font-mono); opacity: 0.7; }
.msg.typing { display: inline-flex; gap: 4px; padding: 13px 15px; }
.msg.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--plum-muted); animation: blink 1.2s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; }
.msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

.app {
  position: relative;
  background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px;
  box-shadow: var(--shadow);
  margin-top: -28px; margin-inline-start: clamp(16px, 8%, 56px); margin-inline-end: -8px;
}
@media (max-width: 600px) { .app { margin-inline: 10px; } }
.app-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.app-top svg { width: 20px; height: 20px; }
.app-top b { font: 700 14.5px var(--font-display); }
html[lang="ar"] .app-top b { font-family: var(--font-ar-display); font-size: 13.5px; }
.status {
  margin-inline-start: auto; font: 600 11px var(--font-mono); letter-spacing: .04em;
  padding: 4px 9px; border-radius: 999px; background: var(--warn-bg); color: var(--warn);
  transition: background-color .3s ease, color .3s ease;
}
html[lang="ar"] .status { font-family: var(--font-ar-body); font-size: 12px; letter-spacing: 0; }
.status.live { background: var(--good-bg); color: var(--good); }
.table-scroll { overflow-x: auto; }
.app table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.app th { text-align: start; font: 600 10.5px var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 6px 4px; border-bottom: 1px solid var(--line); white-space: nowrap; }
html[lang="ar"] .app th { font-family: var(--font-ar-body); font-size: 12px; letter-spacing: 0; }
.app td { padding: 8px 4px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.app tr:last-child td { border-bottom: 0; }
.app td:last-child, .app th:last-child { text-align: end; }
.bar { display: inline-block; height: 6px; border-radius: 4px; background: var(--surface-2); width: 64px; vertical-align: middle; position: relative; overflow: hidden; }
.bar i { position: absolute; inset-block: 0; inset-inline-start: 0; background: var(--brand); border-radius: 4px; }
.pill { font: 600 11px var(--font-body); padding: 3px 8px; border-radius: 6px; }
.pill.ok { background: var(--good-bg); color: var(--good); }
.pill.wait { background: var(--warn-bg); color: var(--warn); }
@media (max-width: 520px) { .app .hide-sm { display: none; } }

/* ---------- Stats ---------- */
.stats-band { border-block: 1px solid var(--line); background: var(--surface); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 28px 22px 30px; border-inline-end: 1px solid var(--line); display: grid; gap: 4px; align-content: start; }
.stat:first-child { padding-inline-start: 0; }
.stat:last-child { border-inline-end: 0; }
.stat b { font: 800 clamp(28px, 3.4vw, 40px)/1 var(--font-display); color: var(--brand); }
html[lang="ar"] .stat b { font-family: var(--font-ar-display); }
.stat span { color: var(--muted); font-size: 14.5px; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat, .stat:first-child { padding-inline: 0 16px; }
  .stat:nth-child(2) { border-inline-end: 0; padding-inline-start: 16px; }
  .stat:nth-child(4) { padding-inline-start: 16px; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- Problem ---------- */
.problem { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
@media (max-width: 900px) { .problem { grid-template-columns: 1fr; } }
.problem-copy { display: grid; gap: 18px; min-width: 0; }
.problem-copy h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
.problem-copy p { color: var(--muted); font-size: 17.5px; max-width: 58ch; }
.problem-copy p strong { color: var(--fg); }
.merge { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); min-width: 0; }
.merge-label { font: 600 12px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; display: flex; justify-content: space-between; gap: 12px; }
html[lang="ar"] .merge-label { font-family: var(--font-ar-body); letter-spacing: 0; font-size: 13px; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; }
.tools span { font-size: 13.5px; padding: 6px 10px; border-radius: 8px; background: var(--surface-2); color: var(--muted); border: 1px dashed var(--line); }
.merge-arrow { display: flex; align-items: center; gap: 10px; margin: 18px 0; color: var(--orange); font: 600 12px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
html[lang="ar"] .merge-arrow { font-family: var(--font-ar-body); letter-spacing: 0; font-size: 13.5px; }
.merge-arrow::before, .merge-arrow::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.one { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; background: var(--plum); color: var(--plum-fg); }
.one .brand-mark { width: 38px; height: 38px; }
.one .leaf-a, .one .leaf-b { fill: #F06A93; }
.one b { font: 700 16.5px var(--font-display); display: block; }
html[lang="ar"] .one b { font-family: var(--font-ar-display); }
.one small { color: var(--plum-muted); font-size: 13.5px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; list-style: none; padding: 0; margin: 0; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 36px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-inline-end: 24px; display: grid; gap: 10px; align-content: start; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font: 600 14px var(--font-mono); color: var(--on-btn); background: var(--btn);
}
.step:nth-child(4)::before { background: var(--orange); color: #FFFFFF; }
.step::after { content: ""; position: absolute; top: 22px; inset-inline-start: 54px; inset-inline-end: 10px; height: 1px; background: var(--line); }
.step:last-child::after { display: none; }
@media (max-width: 900px) { .step:nth-child(2)::after { display: none; } }
@media (max-width: 520px) { .step::after { display: none; } }
.step h3 { font-size: 23px; margin-top: 6px; }
.step p { color: var(--muted); font-size: 15.5px; }
.step .tag { font: 600 12px var(--font-mono); color: var(--brand); background: var(--surface-2); border-radius: 6px; padding: 4px 9px; justify-self: start; }
html[lang="ar"] .step .tag { font-family: var(--font-ar-body); font-size: 13px; }

/* 30-day timeline */
.timeline {
  margin-top: 56px; background: var(--bg); border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(20px, 3vw, 34px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; align-items: center;
}
@media (max-width: 860px) { .timeline { grid-template-columns: 1fr; } }
.timeline h3 { font-size: 23px; margin-bottom: 6px; }
.timeline .hint { color: var(--muted); font-size: 15px; }
.day-readout { display: flex; align-items: baseline; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.day-readout b { font: 800 60px/1 var(--font-display); color: var(--brand); font-variant-numeric: tabular-nums; min-width: 2ch; }
.day-readout span { font-size: 14px; color: var(--muted); }
input[type="range"] { width: 100%; accent-color: var(--btn); margin: 12px 0 4px; }
.scale { display: flex; justify-content: space-between; font: 500 12px var(--font-mono); color: var(--muted); }
html[lang="ar"] .scale { font-family: var(--font-ar-body); }
.phase-card { border-inline-start: 3px solid var(--orange); padding-block: 6px; padding-inline-start: 20px; display: grid; gap: 8px; min-width: 0; }
.phase-card .phase { font: 600 12.5px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--orange); }
html[lang="ar"] .phase-card .phase { font-family: var(--font-ar-body); letter-spacing: 0; font-size: 14px; }
.phase-card h4 { font-size: 25px; }
.phase-card p { color: var(--muted); }
.phase-card .note { font-size: 14px; color: var(--fg); background: var(--surface-2); border-radius: 8px; padding: 8px 12px; justify-self: start; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
@media (max-width: 760px) { .services { grid-template-columns: 1fr; } }
.service { background: var(--surface); padding: clamp(22px, 3vw, 36px); display: grid; gap: 12px; align-content: start; }
.service .icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--blob-1); color: var(--brand); }
.service:nth-child(even) .icon { background: var(--blob-2); color: var(--orange); }
.service .icon svg { width: 24px; height: 24px; }
.service h3 { font-size: 23px; }
.service p { color: var(--muted); }
.covers { margin-top: 40px; display: grid; gap: 14px; }
.covers h3 { font: 600 13px var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
html[lang="ar"] .covers h3 { font-family: var(--font-ar-body); letter-spacing: 0; font-size: 15px; }
.cover-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.cover-list li { padding: 8px 15px; border: 1px solid var(--line); border-radius: 999px; font-size: 14.5px; background: var(--surface); }
.cover-list.tech li { background: transparent; border-style: dashed; color: var(--muted); }

/* ---------- Industries ---------- */
.ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .ind-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ind-grid { grid-template-columns: 1fr; } }
.ind { padding: 24px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); display: grid; gap: 8px; align-content: start; transition: border-color .15s ease, transform .15s ease; }
.ind:hover { border-color: var(--brand); transform: translateY(-2px); }
.ind h3 { font-size: 20px; display: flex; align-items: center; gap: 10px; }
.ind h3 .dot { width: 12px; height: 18px; border-radius: 0 100% 0 100%; background: var(--brand); flex-shrink: 0; }
.ind:nth-child(3n+2) h3 .dot { background: var(--orange); }
.ind p { color: var(--muted); font-size: 15.5px; }
.ind .mods { font: 500 12.5px var(--font-mono); color: var(--fg); opacity: .85; }
html[lang="ar"] .ind .mods { font-family: var(--font-ar-body); font-size: 13.5px; }

/* ---------- Pricing ---------- */
.price-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 36px; }
.price-head .section-head { margin-bottom: 0; }
.seg { display: inline-flex; padding: 4px; background: var(--surface-2); border-radius: 999px; border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; color: var(--muted); font: 600 14px var(--font-body); padding: 8px 18px; border-radius: 999px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--fg); box-shadow: 0 1px 3px rgba(49, 23, 34, .15); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }
.plan {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 30px 26px 26px; display: grid; gap: 18px; align-content: start;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.plan.featured { border-color: var(--brand); box-shadow: var(--shadow); }
.plan.recommended { border-color: var(--orange); box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 28%, transparent); }
.plan .badge {
  position: absolute; top: -13px; inset-inline-start: 24px; font: 600 11px var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
  background: var(--btn); color: var(--on-btn); padding: 5px 11px; border-radius: 999px;
}
html[lang="ar"] .plan .badge { font-family: var(--font-ar-body); letter-spacing: 0; font-size: 12px; }
.plan .badge.rec { background: var(--orange); color: #FFFFFF; inset-inline-start: auto; inset-inline-end: 24px; }
.plan-name { display: grid; gap: 2px; }
.plan-name h3 { font-size: 28px; font-family: var(--font-display); }
.plan-name span { color: var(--muted); font-size: 14.5px; }
.price { display: flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; flex-wrap: wrap; }
.price b { font: 800 44px/1 var(--font-display); letter-spacing: -0.02em; direction: ltr; unicode-bidi: isolate; }
.price small { color: var(--muted); font-size: 14.5px; }
.plan-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.plan-facts div { background: var(--surface-2); padding: 10px 12px; display: grid; }
.plan-facts small { font: 600 11px var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
html[lang="ar"] .plan-facts small { font-family: var(--font-ar-body); letter-spacing: 0; font-size: 12.5px; }
.plan-facts b { font-size: 16.5px; font-variant-numeric: tabular-nums; }
.feat { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; }
.feat li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.feat li::before { content: ""; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--btn) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.feat li.no { color: var(--muted); }
.feat li.no::before { background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5.5 5.5l5 5M10.5 5.5l-5 5' fill='none' stroke='%23927E87' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.plan .btn { width: 100%; }
.price-note { margin-top: 18px; color: var(--muted); font-size: 14.5px; }

.price-extra { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; margin-top: 28px; }
@media (max-width: 900px) { .price-extra { grid-template-columns: 1fr; } }
.finder, .enterprise { border-radius: 20px; padding: 28px; display: grid; gap: 16px; align-content: start; min-width: 0; }
.finder { background: var(--surface); border: 1px solid var(--line); }
.finder h3, .enterprise h3 { font-size: 23px; }
.finder p.sub { color: var(--muted); }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field .label { font-weight: 600; font-size: 14.5px; }
.users-row { display: flex; align-items: center; gap: 14px; }
.users-row output { font: 700 22px var(--font-display); min-width: 4ch; text-align: end; font-variant-numeric: tabular-nums; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.checks label { display: inline-flex; align-items: center; gap: 9px; font-weight: 500; font-size: 15px; cursor: pointer; }
.checks input { width: 18px; height: 18px; accent-color: var(--btn); flex-shrink: 0; }
.result { border-radius: 12px; padding: 14px 16px; background: var(--surface-2); border-inline-start: 4px solid var(--orange); display: grid; gap: 4px; }
.result b { font: 700 21px var(--font-display); }
.result span { color: var(--muted); font-size: 14.5px; }
.enterprise { background: var(--plum); color: var(--plum-fg); }
.enterprise p { color: var(--plum-muted); }
.enterprise .btn { justify-self: start; background: transparent; color: var(--plum-fg); border-color: var(--plum-line); }
.enterprise .btn:hover { border-color: #F06A93; color: #FFFFFF; }

.compare-wrap { margin-top: 40px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.compare caption { text-align: start; padding: 20px 20px 8px; font: 700 19px var(--font-display); }
html[lang="ar"] .compare caption { font-family: var(--font-ar-display); }
.compare th, .compare td { padding: 12px 20px; text-align: start; border-top: 1px solid var(--line); }
.compare thead th { font: 600 12px var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
html[lang="ar"] .compare thead th { font-family: var(--font-ar-body); letter-spacing: 0; font-size: 13px; }
.compare tbody th { font-weight: 500; color: var(--muted); }
.compare td.y { color: var(--good); font-weight: 600; }
.compare td.n { color: var(--muted); }

/* ---------- Testimonial + Why ---------- */
.quote-block { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .quote-block { grid-template-columns: 1fr; } }
blockquote { margin: 0; display: grid; gap: 24px; }
blockquote p { font: 600 clamp(22px, 2.8vw, 33px)/1.32 var(--font-display); letter-spacing: -0.01em; text-wrap: pretty; }
html[lang="ar"] blockquote p { font-family: var(--font-ar-display); line-height: 1.6; letter-spacing: 0; font-size: clamp(20px, 2.4vw, 28px); }
blockquote p::before { content: "\201C"; color: var(--brand); }
blockquote p::after { content: "\201D"; color: var(--brand); }
blockquote footer { display: flex; align-items: center; gap: 12px; }
blockquote footer .avatar { width: 46px; height: 46px; background: var(--orange); }
blockquote footer b { display: block; }
blockquote footer span { color: var(--muted); font-size: 14.5px; }
.why { display: grid; list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.why li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.why svg { width: 22px; height: 22px; color: var(--brand); margin-top: 3px; }
.why b { display: block; font-size: 16.5px; }
.why span { color: var(--muted); font-size: 15px; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }
.about-copy { display: grid; gap: 18px; align-content: start; min-width: 0; }
.about-copy h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
.about-copy p { color: var(--muted); font-size: 17px; max-width: 60ch; }
.vmv { display: grid; gap: 14px; min-width: 0; }
.vmv article { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; background: var(--surface); display: grid; gap: 8px; }
.vmv h3 { font: 600 12.5px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
html[lang="ar"] .vmv h3 { font-family: var(--font-ar-body); letter-spacing: 0; font-size: 15px; }
.vmv p, .vmv li { font-size: 15.5px; }
.vmv ul { margin: 0; padding-inline-start: 18px; display: grid; gap: 6px; }
.partners { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.partners span { font-size: 14px; padding: 7px 13px; border-radius: 8px; background: var(--surface-2); color: var(--fg); }
.partners span b { color: var(--brand); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.faq-tabs button { border: 1px solid var(--line); background: var(--bg); color: var(--muted); padding: 9px 17px; border-radius: 999px; font: 600 14.5px var(--font-body); cursor: pointer; }
html[lang="ar"] .faq-tabs button { font-family: var(--font-ar-body); }
.faq-tabs button[aria-pressed="true"] { background: var(--btn); border-color: var(--btn); color: var(--on-btn); }
.faq-list { display: grid; gap: 10px; max-width: 900px; }
.faq-item { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; }
.faq-item summary { list-style: none; cursor: pointer; padding-block: 18px; padding-inline: 20px 56px; font-weight: 600; font-size: 16.5px; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; inset-inline-end: 22px; top: 50%; width: 11px; height: 11px; margin-top: -8px;
  border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(45deg); transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq-item[open] { border-color: var(--brand); }
.faq-item .answer { padding: 0 20px 20px; color: var(--muted); max-width: 72ch; }

/* ---------- Contact ---------- */
.contact-band { background: var(--plum); color: var(--plum-fg); }
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 72px); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact-info { display: grid; gap: 22px; align-content: start; min-width: 0; }
.contact-info .eyebrow { color: #F28BAB; }
.contact-info h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
.contact-info > p { color: var(--plum-muted); font-size: 17px; }
.office { display: grid; gap: 6px; padding: 18px 20px; border: 1px solid var(--plum-line); border-radius: var(--radius); background: rgba(255, 255, 255, 0.03); }
.office small { font: 600 11.5px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: #F0A06E; }
html[lang="ar"] .office small { font-family: var(--font-ar-body); letter-spacing: 0; font-size: 13px; }
.office address { font-style: normal; color: var(--plum-fg); line-height: 1.6; }
.copy-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.copy-row code { font: 500 15px var(--font-mono); color: var(--plum-fg); user-select: all; word-break: break-all; direction: ltr; }
.copy-btn { background: transparent; border: 1px solid var(--plum-line); color: var(--plum-muted); border-radius: 999px; padding: 6px 13px; font: 600 12.5px var(--font-body); cursor: pointer; }
.copy-btn:hover { color: var(--plum-fg); border-color: #F06A93; }

form.enquiry { background: var(--surface); color: var(--fg); border-radius: 22px; padding: clamp(20px, 3vw, 34px); display: grid; gap: 16px; box-shadow: 0 24px 50px rgba(0, 0, 0, .25); min-width: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
form.enquiry input[type="text"], form.enquiry input[type="email"], form.enquiry input[type="tel"], form.enquiry select, form.enquiry textarea {
  width: 100%; font: 400 15.5px var(--font-body); color: var(--fg); background: var(--bg);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
}
html[lang="ar"] form.enquiry input, html[lang="ar"] form.enquiry select, html[lang="ar"] form.enquiry textarea { font-family: var(--font-ar-body); }
form.enquiry input[type="email"], form.enquiry input[type="tel"] { direction: ltr; text-align: start; }
html[dir="rtl"] form.enquiry input[type="email"], html[dir="rtl"] form.enquiry input[type="tel"] { text-align: right; }
form.enquiry textarea { min-height: 120px; resize: vertical; }
form.enquiry input:focus, form.enquiry select:focus, form.enquiry textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.radio-group { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.radio-group legend { font-weight: 600; font-size: 14.5px; margin-bottom: 6px; padding: 0; }
.radio-group label { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: 14.5px; }
.radio-group input { accent-color: var(--btn); }
.radio-group label:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 9%, var(--surface)); }
.error { color: var(--danger); font-size: 13px; }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.form-status { border-radius: 12px; padding: 12px 14px; font-size: 15px; background: var(--good-bg); color: var(--fg); border: 1px solid color-mix(in srgb, var(--good) 40%, transparent); }
.small { font-size: 13px; color: var(--muted); }

/* ---------- CTA + Footer ---------- */
.cta-band { background: var(--blob-1); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: 48px; }
.cta-inner h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; }
.cta-inner p { color: var(--muted); margin-top: 6px; }

.site-footer { background: var(--plum); color: var(--plum-muted); padding-block: 60px 34px; font-size: 14.5px; border-top: 1px solid var(--plum-line); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-grid h4 { font: 600 12px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--plum-fg); margin-bottom: 12px; }
html[lang="ar"] .foot-grid h4 { font-family: var(--font-ar-body); letter-spacing: 0; font-size: 14px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-grid a { color: var(--plum-muted); text-decoration: none; }
.foot-grid a:hover { color: var(--plum-fg); }
.foot-brand { display: grid; gap: 16px; align-content: start; }
.foot-brand .brand { justify-self: start; }
.foot-brand .brand-word { color: var(--plum-fg); }
.foot-brand .leaf-a, .foot-brand .leaf-b { fill: #F06A93; }
.foot-brand p { max-width: 38ch; }
.foot-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--plum-line); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13.5px; }

/* Reveal: content is always visible; offscreen blocks only lift slightly in */
.reveal { transition: transform .6s ease; }
.reveal.pre { transform: translateY(14px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal.pre { transform: none; }
}
