/* JOTransform v2: benchmarked on Cogna, Augury, Instrumental, MaintainX, Tulip */

:root {
  --black: #0D0F12;
  --dark-2: #17191D;
  --white: #FFFFFF;
  --tint: #F2F2EF;
  --text: var(--black);
  --muted: #5E636B;
  --line: #E3E3DF;
  --line-dark: rgba(255, 255, 255, .14);
  --muted-dark: rgba(255, 255, 255, .66);
  --accent: #22C37A;       /* on dark */
  --accent-ink: #0B7F4C;   /* on light */
  --red: #C8452F;

  --font: "Inter", "IBM Plex Sans Arabic", system-ui, -apple-system, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
html[lang="ar"] { --font: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--text); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.h-xl { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.04; letter-spacing: -.035em; font-weight: 600; }
.h-lg { font-size: clamp(32px, 4vw, 52px); line-height: 1.08; letter-spacing: -.03em; font-weight: 600; }
html[lang="ar"] .h-xl, html[lang="ar"] .h-lg, html[lang="ar"] h1 { letter-spacing: 0; line-height: 1.3; }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); max-width: 56ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px;
  font: 600 16px/1 var(--font); text-decoration: none; border-radius: 4px; border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-light { background: var(--white); color: var(--black); }
.btn-light:hover { background: var(--accent); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .45); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--accent-ink); }

/* Announcement bar */
.announce { background: var(--accent); color: var(--black); text-align: center; font-size: 14px; padding: 9px var(--gutter); display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.announce a { font-weight: 600; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(var(--bg-rgb), .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--white); border-bottom: 1px solid var(--line-dark); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 6px; font: 600 19px/1 "Inter", sans-serif; letter-spacing: -.02em; text-decoration: none; direction: ltr; }
.logo-jo { display: grid; place-items: center; width: 30px; height: 30px; background: var(--accent); color: var(--black); border-radius: 4px; font-size: 14px; font-weight: 700; letter-spacing: 0; }
.nav-links { display: flex; gap: 28px; margin-inline-start: auto; }
.nav-links a { text-decoration: none; font-size: 15px; color: var(--muted-dark); transition: color .2s; }
.nav-links a:hover { color: var(--white); }
.nav-end { display: flex; gap: 10px; align-items: center; }
.lang { background: none; border: 1px solid var(--line-dark); color: var(--white); min-height: 40px; padding: 0 12px; border-radius: 4px; font: 500 14px/1 "IBM Plex Sans Arabic", sans-serif; cursor: pointer; }
html[lang="ar"] .lang { font-family: "Inter", sans-serif; }
.lang:hover { border-color: var(--white); }

/* Hero */
.hero { position: relative; background: var(--black); color: var(--white); min-height: min(88vh, 860px); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) contrast(1.05); animation: drift 24s var(--ease) both; }
.hero-media::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(var(--bg-rgb),.92) 0%, rgba(var(--bg-rgb),.7) 45%, rgba(var(--bg-rgb),.25) 100%),
  linear-gradient(0deg, rgba(var(--bg-rgb),1) 0%, rgba(var(--bg-rgb),0) 40%); }
html[dir="rtl"] .hero-media::after { background:
  linear-gradient(270deg, rgba(var(--bg-rgb),.92) 0%, rgba(var(--bg-rgb),.7) 45%, rgba(var(--bg-rgb),.25) 100%),
  linear-gradient(0deg, rgba(var(--bg-rgb),1) 0%, rgba(var(--bg-rgb),0) 40%); }
@keyframes drift { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero-in { width: 100%; padding-top: 120px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(46px, 7.4vw, 104px); line-height: .98; letter-spacing: -.045em; font-weight: 600; max-width: 11ch; }
.hero-sub { margin-top: 24px; font-size: clamp(17px, 1.5vw, 21px); color: var(--muted-dark); max-width: 50ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero h1, .hero-sub, .hero-ctas { animation: rise .9s var(--ease) both; }
.hero-sub { animation-delay: .12s; }
.hero-ctas { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

.logos { width: 100%; display: flex; align-items: center; gap: 32px; padding-top: 26px; padding-bottom: 30px; border-top: 1px solid var(--line-dark); }
.logos p { font-size: 14px; color: var(--muted-dark); white-space: nowrap; }
.logos ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; flex: 1; }
.logos li { flex: 1; min-height: 52px; display: grid; place-items: center; border-radius: 4px; }
.logo-real { font: 700 26px/1 "Inter", sans-serif; letter-spacing: -.04em; color: var(--white); }
.logo-hold { border: 1px dashed rgba(255, 255, 255, .25); color: rgba(255, 255, 255, .4); font-size: 13px; }

/* Sections */
.sec { padding: clamp(72px, 10vw, 136px) 0; scroll-margin-top: 64px; }
.sec-tint { background: var(--tint); }
.sec-dark { background: var(--black); color: var(--white); }
.sec-dark .lead { color: var(--muted-dark); }
.sec-head { margin-bottom: clamp(36px, 5vw, 60px); display: grid; gap: 16px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: start; }

/* Comparison (legacy vs new) */
.wrap.compare { padding: 0; width: min(calc(100% - 2 * var(--gutter)), calc(var(--wrap) - 2 * var(--gutter))); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: clamp(48px, 7vw, 88px); border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.compare-col h3 { font-size: 15px; font-weight: 600; padding: 18px 28px; border-bottom: 1px solid var(--line); }
.compare-col ul { list-style: none; margin: 0; padding: 0; }
.compare-col li { position: relative; padding: 22px 28px 22px 60px; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 500; }
html[dir="rtl"] .compare-col li { padding: 22px 60px 22px 28px; }
.compare-col li:last-child { border-bottom: 0; }
.compare-col li::before { content: ""; position: absolute; inset-inline-start: 28px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); border-radius: 50%; }
.compare-old { background: var(--tint); color: var(--muted); }
.compare-old li::before { border: 1.5px solid #B9BAB4; background: linear-gradient(45deg, transparent 45%, #B9BAB4 45% 55%, transparent 55%); }
.compare-new { background: var(--black); color: var(--white); }
.compare-new h3, .compare-new li { border-color: var(--line-dark); }
.compare-new li::before { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.2l2.6 2.6L13 6.4' fill='none' stroke='%230E0F11' stroke-width='2'/%3E%3C/svg%3E") center/100% no-repeat; }

/* Solutions tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; flex: none; background: none; border: 0; padding: 16px 18px 18px; font: 500 15px/1.2 var(--font); color: var(--muted); cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); font-weight: 600; }
.tab .bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--line); overflow: hidden; opacity: 0; }
.tab[aria-selected="true"] .bar { opacity: 1; }
.tab .bar i { position: absolute; inset: 0; background: var(--black); transform-origin: left; transform: scaleX(0); }
html[dir="rtl"] .tab .bar i { transform-origin: right; }
.tab[aria-selected="true"] .bar i { animation: fill var(--dur, 7s) linear forwards; }
.tabs.paused .tab .bar i { animation: none; transform: scaleX(1); }
@keyframes fill { to { transform: scaleX(1); } }

.panel { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding-top: clamp(32px, 4vw, 56px); }
.panel-copy h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -.02em; font-weight: 600; }
.panel-copy p { margin-top: 14px; color: var(--muted); font-size: 18px; }
.panel-copy ul { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.panel-copy li { display: flex; gap: 12px; align-items: baseline; font-weight: 500; }
.panel-copy li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-ink); transform: translateY(-2px); }
.panel-media { position: relative; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: var(--black); }
.panel-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.7); }
.panel-fade { animation: pfade .5s var(--ease); }
@keyframes pfade { from { opacity: 0; transform: translateY(8px); } }

/* Product UI card over the photo */
.ui {
  position: absolute; inset-inline-end: 20px; bottom: 20px; width: min(340px, calc(100% - 40px));
  background: rgba(255, 255, 255, .96); color: var(--text); border-radius: 6px; padding: 16px 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35); font-size: 13px; animation: uiIn .6s .15s var(--ease) both;
}
@keyframes uiIn { from { opacity: 0; transform: translateY(14px); } }
.ui-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.ui-tag { font-size: 11px; font-weight: 600; color: var(--accent-ink); background: rgba(var(--ink-rgb), .1); padding: 3px 8px; border-radius: 3px; white-space: nowrap; }
.ui-rows { display: grid; gap: 7px; padding-top: 10px; }
.ui-row { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.ui-row b { color: var(--text); font-weight: 500; text-align: end; }
.ui-ok { color: var(--accent-ink) !important; }

/* Industries (kinetic list) */
.industries { display: grid; grid-template-columns: 1fr 2.4fr; gap: 40px; align-items: center; }
.ind-side { display: grid; gap: 20px; justify-items: start; align-self: center; }
.ind-side p { font-size: 18px; font-weight: 500; max-width: 14ch; }
.ind-list { list-style: none; margin: 0; padding: 0; text-align: center; }
.ind-list li { font-size: clamp(30px, 4.8vw, 64px); line-height: 1.22; letter-spacing: -.035em; font-weight: 500; color: #C9CAC5; transition: color .5s var(--ease), transform .5s var(--ease); }
html[lang="ar"] .ind-list li { letter-spacing: 0; line-height: 1.5; }
.ind-list li.on { color: var(--text); }
.ind-list li.near { color: #8E9089; }

/* Results */
.results { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.result {
  position: relative; min-height: 420px; border-radius: 6px; overflow: hidden; padding: 24px; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(180deg, rgba(var(--bg-rgb),.78) 0%, rgba(var(--bg-rgb),.25) 55%, rgba(var(--bg-rgb),.85) 100%), var(--img) center/cover;
  isolation: isolate;
}
.result::before { content: ""; position: absolute; inset: 0; z-index: -1; background: inherit; transition: transform .7s var(--ease); }
.result:hover::before { transform: scale(1.05); }
.result-top { display: grid; gap: 10px; }
.result-top span:last-child { color: rgba(255, 255, 255, .85); font-size: 16px; line-height: 1.45; }
.result .num { font-size: clamp(40px, 4vw, 56px); line-height: 1; letter-spacing: -.04em; font-weight: 600; color: var(--white); }
html[lang="ar"] .result .num { letter-spacing: 0; }
.result-client { font: 700 20px/1 "Inter", sans-serif; letter-spacing: -.03em; }
.result-hold { filter: grayscale(1); }
.result-hold .result-client { font: 500 14px/1 var(--font); color: rgba(255, 255, 255, .6); }
.hold { justify-self: start; font-size: 12px; font-weight: 600; padding: 5px 9px; border: 1px dashed rgba(255, 255, 255, .6); border-radius: 3px; color: var(--white); }

/* Sprint */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--tint); border-radius: 6px; padding: 32px 28px 36px; display: grid; gap: 12px; align-content: start; }
.step-day { font-size: 14px; font-weight: 600; color: var(--accent-ink); }
.step h3 { font-size: 24px; letter-spacing: -.02em; font-weight: 600; }
.step p { color: var(--muted); }
.step:last-child { background: var(--black); color: var(--white); }
.step:last-child .step-day { color: var(--accent); }
.step:last-child p { color: var(--muted-dark); }
.badges { list-style: none; margin: 40px 0 0; padding: 32px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; border-top: 1px solid var(--line); }
.badges li { display: grid; gap: 4px; }
.badges strong { font-size: 18px; font-weight: 600; }
.badges span { color: var(--muted); font-size: 15px; }

/* Testimonial */
.quote { display: grid; grid-template-columns: 160px 1fr; gap: 40px; align-items: center; max-width: 960px; }
.quote-photo, .founder-photo { aspect-ratio: 1; border-radius: 6px; border: 1px dashed #B9BAB4; display: grid; place-items: center; color: var(--muted); font-size: 13px; background: var(--white); }
.quote blockquote { margin: 0; }
.quote p { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.3; letter-spacing: -.02em; font-weight: 500; }
.hold-text { color: var(--muted); }
.quote footer { margin-top: 20px; display: flex; gap: 10px; color: var(--muted); }
.quote footer strong { color: var(--text); }

/* About */
.founders { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.founders figure { margin: 0; }
.founder-photo { aspect-ratio: 4 / 5; background: var(--tint); }
.founders figcaption { margin-top: 12px; display: grid; }
.founders strong { font-size: 18px; }
.founders span { color: var(--muted); font-size: 15px; }
#about .lead { margin-top: 20px; }

/* Contact */
.cta .lead { margin: 20px 0 32px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: var(--dark-2); border: 1px solid var(--line-dark); border-radius: 6px; padding: clamp(20px, 3vw, 32px); }
.form label { display: grid; gap: 8px; font-size: 14px; color: var(--muted-dark); }
.form .wide { grid-column: 1 / -1; }
.form input, .form textarea { width: 100%; min-height: 48px; padding: 12px 14px; font: 400 16px/1.4 var(--font); color: var(--white); background: rgba(255,255,255,.04); border: 1px solid var(--line-dark); border-radius: 4px; }
.form textarea { resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form .bad { border-color: var(--red); }
.form-status { font-size: 15px; min-height: 1.4em; color: var(--accent); }
.form-status.err { color: #FF8A73; }

/* Footer */
.foot { background: var(--black); color: var(--muted-dark); border-top: 1px solid var(--line-dark); }
.foot-in { display: flex; align-items: center; gap: 24px; padding-top: 28px; padding-bottom: 28px; font-size: 14px; }
.foot .logo { color: var(--white); margin-inline-end: auto; }

/* WhatsApp */
.wa-float { position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 60; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: #25D366; color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: transform .2s var(--ease); }
.wa-float:hover { transform: scale(1.07); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1024px) {
  .results { grid-template-columns: 1fr 1fr; }
  .result { min-height: 340px; }
  .panel { grid-template-columns: 1fr; }
  .panel-media { order: -1; }
  .badges { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-end { margin-inline-start: auto; }
  .split, .compare, .industries, .steps { grid-template-columns: 1fr; }
  .industries { gap: 28px; }
  .ind-list { text-align: start; }
  .logos { flex-direction: column; align-items: flex-start; gap: 14px; }
  .logos ul { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .quote { grid-template-columns: 96px 1fr; gap: 20px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav .btn-sm { display: none; }
  .hero { min-height: min(84vh, 720px); }
  .hero-in { padding-top: 80px; padding-bottom: 48px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .results { grid-template-columns: 1fr; }
  .result { min-height: 300px; }
  .compare-col li { padding-block: 18px; font-size: 16px; }
  .form { grid-template-columns: 1fr; }
  .quote { grid-template-columns: 1fr; }
  .quote-photo { width: 96px; }
  .badges { grid-template-columns: 1fr; }
  .ui { inset-inline-end: 12px; bottom: 12px; width: calc(100% - 24px); padding: 12px 14px; }
  .foot-in { flex-wrap: wrap; gap: 8px 20px; }
  .wa-float { width: 54px; height: 54px; bottom: 14px; inset-inline-end: 14px; }
}

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

/* ---------- v2.1 additions ---------- */

/* Hero: text + proof card */
.hero-in { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 48px; align-items: end; }
.proof {
  background: rgba(var(--bg-rgb), .62); border: 1px solid var(--line-dark); border-radius: 8px; padding: 22px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); animation: rise .9s .36s var(--ease) both;
}
.proof-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line-dark); font-size: 13px; color: var(--muted-dark); }
.proof-client { font: 700 20px/1 "Inter", sans-serif; letter-spacing: -.03em; color: var(--white); }
.proof-row { padding-top: 16px; display: grid; gap: 8px; }
.proof-row p { font-size: 14px; font-weight: 500; }
.bar { position: relative; height: 28px; display: flex; align-items: center; font-size: 13px; font-weight: 600; }
.bar::before { content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: calc(var(--w) * 100%); min-width: 6px; border-radius: 3px; transform-origin: left; animation: grow 1.2s .8s var(--ease) both; }
html[dir="rtl"] .bar::before { transform-origin: right; }
.bar span { position: relative; padding-inline-start: 10px; }
.bar-old::before { background: rgba(255, 255, 255, .16); }
.bar-old span { color: rgba(255, 255, 255, .7); }
.bar-new::before { background: var(--accent); }
.bar-new span { color: var(--accent); padding-inline-start: 18px; }
@keyframes grow { from { transform: scaleX(0); } }
.proof-link { display: inline-block; margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--white); text-underline-offset: 4px; }
.proof-link:hover { color: var(--accent); }

/* Solution panel CTA */
.panel-cta { margin-top: 28px; }

/* Calculator */
.calc { display: grid; grid-template-columns: 1fr 1fr; border-radius: 8px; overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.calc-in { padding: clamp(24px, 3vw, 40px); display: grid; gap: 26px; }
.rng { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: baseline; }
.rng span { color: var(--muted); font-size: 15px; }
.rng output { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rng input { grid-column: 1 / -1; width: 100%; accent-color: var(--accent-ink); height: 24px; cursor: pointer; }
.calc-out { background: var(--black); color: var(--white); padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 24px; }
.calc-out span { display: block; }
.calc-big { font-size: clamp(56px, 7vw, 96px); line-height: 1; letter-spacing: -.045em; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.calc-out span:not([class]) { color: var(--muted-dark); margin-top: 6px; }
.calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 20px; border-top: 1px solid var(--line-dark); }
.calc-mid { font-size: 32px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.calc-note { font-size: 14px; color: var(--muted-dark); }
.calc-out .btn { align-self: flex-start; margin-top: auto; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font-size: 18px; font-weight: 600; }
html[dir="rtl"] .faq summary { padding: 22px 0 22px 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; inset-inline-end: 4px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(var(--text), var(--text)) center/14px 2px no-repeat, linear-gradient(var(--text), var(--text)) center/2px 14px no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent-ink); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 60ch; }
.faq details[open] p { animation: pfade .35s var(--ease); }

/* Mobile sticky CTA bar */
.mbar { display: none; }
@media (max-width: 560px) {
  .mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: flex; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(var(--bg-rgb), .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line-dark);
    transform: translateY(110%); transition: transform .35s var(--ease); }
  .mbar.show { transform: none; }
  .mbar .btn { flex: 1; min-height: 48px; }
  .mbar-wa { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 4px; background: #25D366; color: #fff; }
  .wa-float { display: none; }
  .foot { padding-bottom: 72px; }
}

@media (max-width: 1024px) {
  .hero-in { grid-template-columns: 1fr; gap: 32px; }
  .proof { max-width: 520px; }
  .calc { grid-template-columns: 1fr; }
}

/* ---------- Live demo ---------- */
.demo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.demo-in { display: grid; gap: 22px; }
.demo-in fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.demo-in legend { width: 100%; font-size: 14px; color: var(--muted-dark); margin-bottom: 10px; padding: 0; }
.demo-in label { position: relative; cursor: pointer; }
.demo-in input { position: absolute; opacity: 0; pointer-events: none; }
.demo-in label span {
  display: inline-grid; place-items: center; min-width: 52px; min-height: 42px; padding: 0 14px; border-radius: 4px;
  border: 1px solid var(--line-dark); color: var(--white); font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums;
  transition: background-color .2s, border-color .2s, color .2s;
}
.demo-in label:hover span { border-color: rgba(255,255,255,.5); }
.demo-in input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--black); font-weight: 600; }
.demo-in input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.race { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 6px; padding-top: 22px; border-top: 1px solid var(--line-dark); }
.race span { display: block; font-size: 13px; color: var(--muted-dark); }
.race b { display: block; margin-top: 4px; font-size: 28px; letter-spacing: -.03em; font-weight: 600; font-variant-numeric: tabular-nums; }
.race-old { color: rgba(255,255,255,.55); text-decoration: line-through; text-decoration-thickness: 2px; }
.race-new { color: var(--accent); }

.sheet-doc { background: var(--white); color: var(--text); border-radius: 6px; padding: clamp(20px, 3vw, 32px); box-shadow: 0 30px 80px rgba(0,0,0,.45); font-size: 14px; }
.sheet-doc.flash { animation: docIn .45s var(--ease); }
@keyframes docIn { from { opacity: .35; transform: translateY(6px); } }
.doc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 16px; border-bottom: 2px solid var(--text); }
.doc-top h3 { font-size: 20px; letter-spacing: -.02em; font-weight: 600; }
.doc-top p { color: var(--muted); font-size: 13px; margin-top: 4px; direction: ltr; text-align: start; }
.doc-badge { flex: none; font-size: 12px; font-weight: 600; color: var(--accent-ink); background: rgba(var(--ink-rgb),.1); padding: 5px 10px; border-radius: 3px; }
.doc-code { margin: 16px 0 6px; font-size: 22px; font-weight: 600; letter-spacing: -.02em; direction: ltr; text-align: start; }
.doc-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.doc-table th { text-align: start; font-weight: 500; color: var(--muted); padding: 9px 0; border-bottom: 1px solid var(--line); width: 52%; }
.doc-table td { padding: 9px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-variant-numeric: tabular-nums; }
.doc-table tr.chg td { animation: hl 1.1s var(--ease); }
@keyframes hl { from { background: rgba(var(--acc-rgb),.28); } }
.doc-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; color: var(--muted); font-size: 12px; }
.doc-foot b { color: var(--accent-ink); font-weight: 600; }
.demo-note { margin-top: 24px; font-size: 13px; color: var(--muted-dark); max-width: 80ch; }

@media (max-width: 1100px) { .nav-links a[href="#faq"], .nav-links a[href="#about"] { display: none; } }
@media (max-width: 900px) { .demo { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .sheet-doc.flash, .doc-table tr.chg td { animation: none; } }
html[dir="rtl"] .race b { text-align: right; }

/* ---------- Skimmable: icons, figures, flow ---------- */
.ic { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Hero facts */
.facts { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.facts li { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: rgba(255,255,255,.88); }
.facts .ic { width: 20px; height: 20px; color: var(--accent); }

/* Old → new flow */
.flow { display: grid; gap: 10px; }
.flow-head { display: grid; grid-template-columns: 1fr 56px 1fr; font-size: 14px; font-weight: 600; color: var(--muted); padding: 0 4px 4px; }
.flow-head span:last-child { color: var(--accent-ink); }
.flow-row { display: grid; grid-template-columns: 1fr 56px 1fr; align-items: center; }
.f-old, .f-new { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: 6px; font-size: clamp(16px, 1.5vw, 19px); font-weight: 600; min-height: 76px; }
.f-old { background: var(--tint); color: #8A8D93; text-decoration: line-through; text-decoration-color: rgba(200,69,47,.6); text-decoration-thickness: 2px; }
.f-old .ic { color: #A3A6AB; }
.f-new { background: var(--black); color: var(--white); }
.f-new .ic { color: var(--accent); width: 28px; height: 28px; }
.f-arrow { width: 26px; height: 26px; justify-self: center; fill: none; stroke: var(--accent-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html[dir="rtl"] .f-arrow { transform: scaleX(-1); }
.flow-row.reveal { transform: translateX(-16px); }
html[dir="rtl"] .flow-row.reveal { transform: translateX(16px); }
.flow-row.reveal.in { transform: none; }

/* Tabs with icons */
.tab { display: inline-flex; align-items: center; gap: 8px; }
.tab .ic { width: 18px; height: 18px; }
.tab[aria-selected="true"] .ic { color: var(--accent-ink); }

/* Result figures */
.pct { justify-self: start; font-size: 14px; font-weight: 700; color: var(--black); background: var(--accent); padding: 4px 10px; border-radius: 3px; letter-spacing: 0; }

/* Sprint timeline */
.timeline { display: grid; grid-template-columns: 1fr auto; gap: clamp(24px, 4vw, 64px); align-items: center; }
.tl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.tl::before { content: ""; position: absolute; top: 32px; inset-inline-start: 32px; width: 66.67%; height: 2px; background: var(--line); }
.tl::after { content: ""; position: absolute; top: 32px; inset-inline-start: 32px; height: 2px; width: 66.67%; background: var(--accent-ink); transform: scaleX(0); transform-origin: left; transition: transform 1.4s .3s var(--ease); }
html[dir="rtl"] .tl::after { transform-origin: right; }
.timeline.in .tl::after { transform: scaleX(1); }
.tl li { position: relative; display: grid; gap: 6px; justify-items: start; padding-inline-end: 16px; }
.tl-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 2px solid var(--accent-ink); color: var(--accent-ink); position: relative; z-index: 1; margin-bottom: 10px; }
.tl-ic .ic { width: 28px; height: 28px; }
.tl li:last-child .tl-ic { background: var(--accent-ink); color: var(--white); }
.tl-day { font-size: 14px; font-weight: 600; color: var(--accent-ink); }
.tl h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; letter-spacing: -.02em; }
.tl p { color: var(--muted); }
.tl-free { background: var(--black); color: var(--white); border-radius: 8px; padding: 28px 32px; text-align: center; }
.tl-big { display: block; font-size: clamp(44px, 5vw, 64px); font-weight: 700; letter-spacing: -.04em; line-height: 1; color: var(--accent); }
.tl-free span:last-child { display: block; margin-top: 6px; color: var(--muted-dark); }

/* Badges with icons */
.badges li { display: flex; align-items: center; gap: 12px; }
.badges .ic { color: var(--accent-ink); width: 28px; height: 28px; }

/* Founder credentials */
.creds { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.creds li { font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 4px; background: var(--tint); }

@media (max-width: 820px) {
  .timeline { grid-template-columns: 1fr; }
  .tl { grid-template-columns: 1fr; gap: 28px; }
  .tl::before, .tl::after { display: none; }
  .tl li { grid-template-columns: 64px 1fr; column-gap: 18px; align-items: center; justify-items: start; }
  .tl-ic { grid-row: span 3; margin: 0; }
  .tl-free { justify-self: start; }
}
@media (max-width: 560px) {
  .flow-head { display: none; }
  .flow-row { grid-template-columns: 1fr; gap: 6px; }
  .f-arrow { transform: rotate(90deg); width: 20px; height: 20px; }
  html[dir="rtl"] .f-arrow { transform: rotate(90deg); }
  .f-old, .f-new { min-height: 60px; padding: 14px 16px; }
}
@media (prefers-reduced-motion: reduce) { .tl::after { transform: scaleX(1); } }
html[dir="rtl"] .flow-row.reveal.in { transform: none; }

/* alfanar logo */
.alf { height: 30px; width: auto; }
.alf-sm { height: 22px; }
.result-client .alf { height: 26px; }

/* Standards strip */
.std-sec { padding-bottom: 0; }
.std { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.std li { display: grid; gap: 8px; align-content: start; padding: 28px; border: 1px solid var(--line); border-radius: 8px; }
.std-mark { justify-self: start; display: grid; place-items: center; min-width: 76px; height: 76px; padding: 0 14px; border-radius: 50%; border: 2px solid var(--text);
  font: 700 24px/1 "Inter", sans-serif; letter-spacing: -.02em; margin-bottom: 10px; box-shadow: inset 0 0 0 4px var(--white), inset 0 0 0 5px var(--text); }
.std strong { font-size: 18px; font-weight: 600; line-height: 1.3; }
.std li > span:last-child { color: var(--muted); font-size: 15px; }
.std-note { margin-top: 16px; font-size: 13px; color: var(--muted); }
@media (max-width: 820px) { .std { grid-template-columns: 1fr; } .std li { grid-template-columns: 76px 1fr; column-gap: 18px; align-items: center; } .std-mark { grid-row: span 2; margin: 0; } }

/* ---------- v3: cleanup ---------- */
[data-hold] { display: none !important; }   /* placeholders: remove the attribute when real content arrives */
.announce { background: var(--dark-2); color: rgba(255,255,255,.85); border-bottom: 1px solid var(--line-dark); }
.announce a { color: var(--accent); }
.hero h1 { max-width: 13ch; }
.results { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.result { min-height: 380px; }
.result .num { font-size: clamp(56px, 6vw, 88px); }
.std-sec { padding-bottom: clamp(72px, 10vw, 136px); }
.std li { background: var(--white); }
.std-sec .badges { border-top: 0; margin-top: 16px; padding-top: 8px; grid-template-columns: repeat(3, 1fr); }
.mono { aspect-ratio: 1; max-width: 120px; border-radius: 50%; display: grid; place-items: center; background: var(--black); color: var(--accent); font: 600 44px/1 "Inter", sans-serif; }
.founders { grid-template-columns: repeat(2, minmax(0, 160px)); }
.founders strong { font-size: 20px; }
.logos ul { flex: 0 1 auto; }
.logos li { flex: none; padding: 0 8px; }
@media (max-width: 820px) { .logos ul { display: flex; } }
@media (max-width: 560px) { .std-sec .badges { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(42px, 5.8vw, 84px); max-width: 15ch; }
.result { background: linear-gradient(180deg, rgba(var(--bg-rgb),.93) 0%, rgba(var(--bg-rgb),.6) 55%, rgba(var(--bg-rgb),.9) 100%), var(--img) center/cover; }

/* ---------- v4: AI, integrations, trust ---------- */
.ai-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 4px; font-size: 14px; font-weight: 600;
  color: var(--accent); background: rgba(var(--acc-rgb),.1); border: 1px solid rgba(var(--acc-rgb),.35); margin-bottom: 22px; justify-self: start; }
.ai-chip .ic { width: 18px; height: 18px; }
.hero .ai-chip { animation: rise .9s var(--ease) both; }

/* Integrations marquee */
.int-sec { padding-bottom: clamp(56px, 8vw, 96px); overflow: hidden; }
.marquee { display: flex; gap: 14px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); direction: ltr; }
.mq-track { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; flex: none; animation: mq 40s linear infinite; }
.marquee:hover .mq-track { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(calc(-100% - 14px)); } }
.mq-track li { display: flex; align-items: center; gap: 14px; padding: 18px 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); white-space: nowrap; }
.mq-track .ic { width: 28px; height: 28px; color: var(--text); }
.mq-track b { display: block; font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.mq-track small { display: block; font-size: 13px; color: var(--muted); }
.trust-row { list-style: none; margin: clamp(32px, 4vw, 48px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust-row li { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 8px; background: var(--tint); font-weight: 600; font-size: 16px; line-height: 1.3; }
.trust-row .ic { width: 30px; height: 30px; color: var(--accent-ink); }
.tm-note { margin-top: 14px; font-size: 12px; color: var(--muted); }

/* AI section */
.ai-sec { position: relative; overflow: hidden; }
.ai-sec::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 60%; aspect-ratio: 1; background: radial-gradient(circle, rgba(var(--acc-rgb),.16), transparent 62%); pointer-events: none; }
.ai-sec .wrap { position: relative; }
.ai-demo { display: grid; grid-template-columns: 1fr 48px 1fr; gap: 16px; align-items: center; }
.ai-spec { position: relative; overflow: hidden; background: var(--white); color: #3A3D42; border-radius: 8px; padding: 22px 24px 26px; font-size: 16px; line-height: 1.75; min-height: 300px; }
.ai-file { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.ai-file .ic { width: 18px; height: 18px; }
.ai-spec mark { background: transparent; color: inherit; border-radius: 3px; padding: 1px 2px; transition: background-color .35s, color .35s, box-shadow .35s; }
.ai-scan { position: absolute; left: 0; right: 0; top: 0; height: 60px; background: linear-gradient(180deg, transparent, rgba(var(--acc-rgb),.22), transparent); transform: translateY(-60px); }
.ai-demo.run .ai-scan { animation: scan 2.6s linear; }
@keyframes scan { to { transform: translateY(320px); } }
.ai-arrow { width: 34px; height: 34px; justify-self: center; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ai-out { background: var(--dark-2); border: 1px solid var(--line-dark); border-radius: 8px; padding: 20px 22px; }
.ai-out-head { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--muted-dark); padding-bottom: 12px; border-bottom: 1px solid var(--line-dark); }
.ai-count { color: var(--accent); font-variant-numeric: tabular-nums; }
.ai-fields { list-style: none; margin: 0; padding: 6px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.ai-fields li { display: flex; justify-content: space-between; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line-dark); font-size: 14px; color: var(--muted-dark); }
.ai-fields b { color: var(--white); font-weight: 600; opacity: 0; transform: translateY(4px); transition: opacity .35s, transform .35s var(--ease); }
.ai-done { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: 6px; background: rgba(var(--acc-rgb),.12); color: var(--accent); font-weight: 600; font-size: 15px; opacity: 0; transition: opacity .4s; }
.ai-done .ic { width: 22px; height: 22px; }
/* step states: .st-1 … .st-8 reveal fields in order; .st-9 = done */
.ai-spec mark.on { background: rgba(var(--acc-rgb),.22); color: #0B5C38; box-shadow: inset 0 -2px 0 var(--accent-ink); }
.ai-fields li.on b { opacity: 1; transform: none; }
.ai-demo.done .ai-done { opacity: 1; }
.ai-caps { list-style: none; margin: clamp(32px, 4vw, 48px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ai-caps li { display: grid; gap: 14px; padding: 22px; border-radius: 8px; border: 1px solid var(--line-dark); background: rgba(255,255,255,.02); }
.ai-caps .ic { width: 30px; height: 30px; color: var(--accent); }
.ai-caps strong { font-size: 17px; font-weight: 600; line-height: 1.3; }
.ai-note { display: flex; align-items: center; gap: 10px; margin-top: 20px; font-size: 14px; color: var(--muted-dark); }
.ai-note .ic { width: 20px; height: 20px; color: var(--accent); }

@media (max-width: 1024px) { .trust-row, .ai-caps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 820px) {
  .ai-demo { grid-template-columns: 1fr; }
  .ai-arrow { transform: rotate(90deg); }
  .ai-spec { min-height: 0; }
}
@media (max-width: 560px) { .trust-row, .ai-caps, .ai-fields { grid-template-columns: 1fr; } .mq-track li { padding: 14px 18px; } }
@media (prefers-reduced-motion: reduce) { .mq-track { animation: none; } .marquee { flex-wrap: wrap; -webkit-mask-image: none; mask-image: none; } .mq-track[aria-hidden] { display: none; } .mq-track { flex-wrap: wrap; } }
html[dir="rtl"] .ai-arrow { transform: scaleX(-1); }
@media (max-width: 820px) { html[dir="rtl"] .ai-arrow { transform: rotate(90deg); } }

/* Integration logos */
.int-logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.int-logos li { min-height: 112px; display: grid; place-items: center; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.int-logos li:hover { border-color: #C9CAC5; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(var(--bg-rgb),.07); }
.lg { width: auto; display: block; }
.lg-sap { height: 44px; }
.lg-sie { height: 26px; }
.lg-ms { display: inline-flex; align-items: center; gap: 10px; direction: ltr; }
.lg-ms svg { width: 30px; height: 30px; }
.lg-ms b { font: 600 25px/1 "Segoe UI", "Inter", sans-serif; color: #737373; letter-spacing: -.01em; }
.lg-ora { font: 800 27px/1 "Inter", "Arial Black", sans-serif; letter-spacing: .06em; color: #C74634; direction: ltr; }
.int-more { gap: 10px; text-align: center; color: var(--muted); font-size: 14px; font-weight: 600; border-style: dashed !important; }
.int-more .ic { width: 28px; height: 28px; color: var(--accent-ink); }
@media (max-width: 1024px) { .int-logos { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .int-logos { grid-template-columns: 1fr 1fr; } .int-logos li { min-height: 88px; } .int-more { grid-column: 1 / -1; } }

/* Where AI fits picker */
.ai-map { margin-top: clamp(40px, 5vw, 64px); padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line-dark); border-radius: 10px; background: rgba(255,255,255,.02); display: grid; gap: 22px; }
.ai-map h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; letter-spacing: -.02em; }
.ai-depts { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-dept { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 4px; border: 1px solid var(--line-dark); background: none; color: var(--white); font: 600 15px/1 var(--font); cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.ai-dept .ic { width: 18px; height: 18px; color: var(--accent); }
.ai-dept:hover { border-color: rgba(255,255,255,.5); }
.ai-dept[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--black); }
.ai-dept[aria-selected="true"] .ic { color: var(--black); }
.ai-uses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ai-uses li { display: flex; gap: 12px; align-items: flex-start; padding: 18px; border-radius: 8px; background: var(--dark-2); font-size: 17px; font-weight: 600; line-height: 1.35; }
.ai-uses .ic { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 1px; }
.ai-uses.pop li { animation: rise .45s var(--ease) both; animation-delay: calc(var(--k) * 70ms); }
.ai-map .btn { justify-self: start; }
@media (max-width: 820px) { .ai-uses { grid-template-columns: 1fr; } }

/* What happens next + form trust */
.next { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 18px; }
.next li { display: flex; gap: 16px; align-items: flex-start; }
.next-n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--black); font-weight: 700; font-size: 15px; }
.next strong { display: block; font-size: 17px; font-weight: 600; }
.next div span { display: block; color: var(--muted-dark); font-size: 15px; }
.form-trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.form-trust li { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted-dark); }
.form-trust .ic { width: 16px; height: 16px; color: var(--accent); }
.foot-mail { text-decoration: none; }
.foot-mail:hover { color: var(--white); }

/* Automation + AI pillars */
.pillars { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: stretch; margin-bottom: clamp(40px, 5vw, 64px); }
.pillar { display: grid; gap: 10px; align-content: start; padding: clamp(22px, 3vw, 32px); border-radius: 10px; background: var(--dark-2); border: 1px solid var(--line-dark); }
.pillar > .ic { width: 36px; height: 36px; color: var(--white); }
.pillar-ai { border-color: rgba(var(--acc-rgb),.45); background: linear-gradient(160deg, rgba(var(--acc-rgb),.12), var(--dark-2) 60%); }
.pillar-ai > .ic { color: var(--accent); }
.pillar h3 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; letter-spacing: -.02em; }
.pillar p { color: var(--muted-dark); font-size: 17px; }
.pillar ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pillar li { font-size: 14px; font-weight: 600; padding: 7px 12px; border-radius: 4px; background: rgba(255,255,255,.06); }
.pillar-ai li { background: rgba(var(--acc-rgb),.14); color: var(--accent); }
.pillar-plus { align-self: center; font-size: 36px; font-weight: 300; color: var(--muted-dark); }
.ai-ex { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 15px; font-weight: 600; color: var(--accent); }
.ai-ex .ic { width: 18px; height: 18px; }
.ai-uses { grid-template-columns: repeat(2, 1fr); }
.ai-uses li em { display: block; font-style: normal; font-size: 12px; font-weight: 700; margin-bottom: 4px; color: var(--muted-dark); }
.ai-uses li.is-auto .ic { color: var(--white); }
.ai-uses li.is-ai { background: rgba(var(--acc-rgb),.08); }
.ai-uses li.is-ai em { color: var(--accent); }
@media (max-width: 820px) { .pillars { grid-template-columns: 1fr; } .pillar-plus { justify-self: center; line-height: 1; } .ai-uses { grid-template-columns: 1fr; } }

/* ---------- Hero: AI vision overlay ---------- */
.hero h1 { font-size: clamp(48px, 7vw, 108px); max-width: 10ch; }
html[lang="ar"] .hero h1 { max-width: 12ch; }
.hero-sub { max-width: 46ch; }
.hero-media::after { background:
  linear-gradient(90deg, rgba(var(--bg-rgb),.95) 0%, rgba(var(--bg-rgb),.82) 38%, rgba(var(--bg-rgb),.35) 70%, rgba(var(--bg-rgb),.45) 100%),
  linear-gradient(0deg, rgba(var(--bg-rgb),1) 0%, rgba(var(--bg-rgb),0) 38%); }
.vision { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-in, .logos { position: relative; z-index: 1; }
.v-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(var(--acc-rgb),.09) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--acc-rgb),.09) 1px, transparent 1px); background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 45% 60% at 76% 40%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse 45% 60% at 76% 40%, #000 0%, transparent 70%); }
.v-scan { position: absolute; top: 0; bottom: 0; width: 22%; left: 50%; background: linear-gradient(90deg, transparent, rgba(var(--acc-rgb),.13) 70%, rgba(var(--acc-rgb),.5) 99%, transparent); animation: vscan 6s var(--ease) infinite; opacity: 0; }
@keyframes vscan { 0% { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } 75% { opacity: 1; } 100% { transform: translateX(200%); opacity: 0; } }
.vbox { position: absolute; left: 63%; top: 13%; width: 25%; height: 33%; animation: vbox .9s .6s var(--ease) both; }
@keyframes vbox { from { opacity: 0; transform: scale(1.08); } }
.vbox > b { position: absolute; width: 26px; height: 26px; border: 2.5px solid var(--accent); }
.vbox > b:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.vbox > b:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.vbox > b:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.vbox > b:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.vbox::before { content: ""; position: absolute; inset: 0; border: 1px solid rgba(var(--acc-rgb),.35); background: rgba(var(--acc-rgb),.05); }
.vtag, .vchip { position: absolute; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 4px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.vtag .ic, .vchip .ic { width: 15px; height: 15px; }
.vtag-a { left: -2px; top: -34px; background: var(--accent); color: var(--black); }
.vtag-b { right: -2px; bottom: -34px; background: rgba(var(--bg-rgb),.85); color: var(--accent); border: 1px solid rgba(var(--acc-rgb),.5); animation: pop .5s 1.8s var(--ease) both; }
.vchip { background: rgba(var(--bg-rgb),.78); color: var(--white); border: 1px solid var(--line-dark); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.vchip .ic { color: var(--accent); }
.vchip-1 { left: 89%; top: 20%; animation: pop .5s 2.3s var(--ease) both, bob 5s 3s ease-in-out infinite; }
.vchip-2 { left: 56%; top: 40%; animation: pop .5s 2.8s var(--ease) both, bob 5s 3.6s ease-in-out infinite; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.96); } }
@keyframes bob { 50% { transform: translateY(-5px); } }
.vdot { position: absolute; left: var(--x); top: var(--y); width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(var(--acc-rgb),.6); animation: ping 2.4s ease-out infinite; }
.vdot:nth-of-type(2) { animation-delay: .8s; } .vdot:nth-of-type(3) { animation-delay: 1.6s; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(var(--acc-rgb),.6); } 100% { box-shadow: 0 0 0 16px rgba(var(--acc-rgb),0); } }
.vline { position: absolute; left: 75.5%; top: calc(46% + 34px); height: calc(4% + 8px); width: 2px; background: repeating-linear-gradient(180deg, var(--accent) 0 6px, transparent 6px 12px); background-size: 2px 24px; animation: flowv 1s linear infinite; opacity: .8; }
@keyframes flowv { to { background-position: 0 24px; } }
.proof { border-color: rgba(var(--acc-rgb),.45); box-shadow: 0 0 0 1px rgba(var(--acc-rgb),.15), 0 30px 80px rgba(0,0,0,.4); }
html[dir="rtl"] .vision { transform: none; }
@media (max-width: 1024px) {
  .vbox, .vchip, .vline { display: none; }
  .v-grid { -webkit-mask-image: radial-gradient(ellipse 70% 50% at 70% 30%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse 70% 50% at 70% 30%, #000 0%, transparent 70%); }
}
@media (prefers-reduced-motion: reduce) { .v-scan { display: none; } }
.vbox { left: 64%; top: 9%; width: 21%; height: 21%; }
.vtag-b { right: 8px; bottom: 8px; }
.vchip-1 { left: auto; right: 2%; top: 13%; }
.vchip-2 { left: auto; right: 2%; top: 20.5%; }
.vline { left: 74.5%; top: 30%; height: 4%; }
.v-scan { background: linear-gradient(90deg, transparent, rgba(var(--acc-rgb),.06) 70%, rgba(var(--acc-rgb),.32) 99%, transparent); width: 16%; }
html[dir="rtl"] .vbox { left: 15%; }
html[dir="rtl"] .vchip-1, html[dir="rtl"] .vchip-2 { right: auto; left: 2%; }
html[dir="rtl"] .vline { left: 25.5%; }
html[dir="rtl"] .v-grid { -webkit-mask-image: radial-gradient(ellipse 45% 60% at 24% 40%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse 45% 60% at 24% 40%, #000 0%, transparent 70%); }
html[dir="rtl"] .v-scan { left: 30%; }

/* Detection box lives in the hero's right column, above the proof card */
.hero-col { display: grid; gap: 0; align-self: end; }
.vstage { position: relative; height: clamp(150px, 22vh, 230px); margin-bottom: 18px; }
.vstage .vbox { left: 4%; right: 30%; width: auto; top: 30px; bottom: 0; height: auto; }
html[dir="rtl"] .vstage .vbox { left: 30%; right: 4%; }
.vstage .vchip-1 { right: 0; left: auto; top: 22%; }
.vstage .vchip-2 { right: 0; left: auto; top: calc(22% + 44px); }
html[dir="rtl"] .vstage .vchip-1, html[dir="rtl"] .vstage .vchip-2 { left: 0; right: auto; }
.vstage .vline { left: 37%; top: 100%; height: 18px; }
html[dir="rtl"] .vstage .vline { left: auto; right: 37%; }
@media (max-width: 1024px) { .vstage { display: none; } }

/* ---------- v7: calmer hero ---------- */
.hero { min-height: min(84vh, 800px); }
.hero-in { padding-bottom: clamp(56px, 8vh, 96px); }
.hero h1 { font-size: clamp(46px, 6.4vw, 96px); }
.hero-sub { margin-top: 20px; font-size: clamp(18px, 1.6vw, 22px); }
.hero-ctas { margin-top: 32px; }
.v-grid { opacity: .55; }
.v-scan { opacity: 0; animation-duration: 9s; }
.vbox { animation-delay: 1s; }
.vbox::before { background: transparent; border-color: rgba(var(--acc-rgb),.22); }
.vbox > b { border-color: rgba(var(--acc-rgb),.8); width: 22px; height: 22px; border-width: 2px; }
.vtag-a { background: rgba(var(--bg-rgb),.8); color: var(--accent); border: 1px solid rgba(var(--acc-rgb),.5); }
.vstage .vline { opacity: .5; }
.proof { padding: 22px 24px; }
.pstat { display: grid; gap: 2px; padding-top: 16px; }
.pstat + .pstat { border-top: 1px solid var(--line-dark); margin-top: 16px; }
.pstat b { font-size: clamp(36px, 3.4vw, 48px); line-height: 1; letter-spacing: -.04em; font-weight: 600; color: var(--accent); }
html[lang="ar"] .pstat b { letter-spacing: 0; }
.pstat span { font-size: 15px; color: var(--muted-dark); }
.hero-media::after { background:
  linear-gradient(90deg, rgba(var(--bg-rgb),.95) 0%, rgba(var(--bg-rgb),.85) 40%, rgba(var(--bg-rgb),.55) 72%, rgba(var(--bg-rgb),.6) 100%),
  linear-gradient(0deg, rgba(var(--bg-rgb),1) 0%, rgba(var(--bg-rgb),0) 35%); }
html[dir="rtl"] .hero-media::after { background:
  linear-gradient(270deg, rgba(var(--bg-rgb),.95) 0%, rgba(var(--bg-rgb),.85) 40%, rgba(var(--bg-rgb),.55) 72%, rgba(var(--bg-rgb),.6) 100%),
  linear-gradient(0deg, rgba(var(--bg-rgb),1) 0%, rgba(var(--bg-rgb),0) 35%); }

/* Hero capability rotator */
.rot { margin-top: 26px; display: grid; gap: 14px; max-width: 640px; animation: rise .9s .12s var(--ease) both; }
.rot-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.rot-tab { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 12px; border-radius: 4px; border: 1px solid rgba(255,255,255,.14); background: rgba(var(--bg-rgb),.4);
  color: rgba(255,255,255,.62); font: 600 14px/1 var(--font); cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.rot-tab .ic { width: 16px; height: 16px; }
.rot-tab:hover { color: var(--white); border-color: rgba(255,255,255,.4); }
.rot-tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--black); }
.rot-line { font-size: clamp(19px, 1.8vw, 24px); font-weight: 500; color: var(--white); min-height: 2.6em; line-height: 1.3; }
.swap { animation: swapIn .45s var(--ease); }
@keyframes swapIn { from { opacity: 0; transform: translateY(8px); } }
.hero-ctas { margin-top: 18px; }
@media (max-width: 560px) { .rot-tab { min-height: 32px; padding: 0 10px; font-size: 13px; } }

.rot { max-width: 700px; }
.rot-tabs { flex-wrap: nowrap; }
.rot-tab { padding: 0 11px; font-size: 13.5px; white-space: nowrap; }
@media (max-width: 1180px) { .rot-tabs { flex-wrap: wrap; } }

/* v8: hero without proof card; detection box sits over the press */
@media (min-width: 1025px) { .hero-in { grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr); align-items: center; } }
.hero-col { align-self: stretch; }
.vstage { height: 100%; min-height: 320px; margin: 0; }
.vstage .vbox { left: 8%; right: 12%; top: 8%; bottom: 22%; }
html[dir="rtl"] .vstage .vbox { left: 12%; right: 8%; }

/* v9: value-led hero */
.hero h1 { font-size: clamp(44px, 5.8vw, 88px); max-width: 12ch; line-height: 1; }
html[lang="ar"] .hero h1 { max-width: 13ch; line-height: 1.25; }
.hero-sub { margin-top: 20px; font-size: clamp(18px, 1.6vw, 22px); color: rgba(255,255,255,.82); max-width: 44ch; animation: rise .9s .1s var(--ease) both; }
.rot { margin-top: 28px; }
.rot-line { font-size: clamp(17px, 1.5vw, 20px); color: rgba(255,255,255,.9); min-height: 1.5em; }
.hero-proof { display: flex; align-items: center; gap: 12px; margin-top: 26px; font-size: 15px; color: rgba(255,255,255,.7); animation: rise .9s .3s var(--ease) both; }
.alf-xs { height: 20px; width: auto; flex: none; }
@media (max-width: 560px) { .hero-proof { align-items: flex-start; } .alf-xs { margin-top: 2px; } }

.hero h1 { font-size: clamp(40px, 5.4vw, 80px); max-width: none; }
.h1l { display: block; }
.h1-accent { color: var(--accent); }
@media (min-width: 1025px) { .h1l { white-space: nowrap; } }

/* v10: rotating-task headline */
@media (min-width: 1025px) { .hero-in { grid-template-columns: 1fr; } }
.hero-text { max-width: 980px; }
.hero h1.h1-rot { font-size: clamp(40px, 6vw, 92px); line-height: 1.02; max-width: none; }
.h1-rot .h1l { display: block; white-space: normal; }
.rotw { display: grid; color: var(--accent); min-height: 1.04em; }
.rotw > span { grid-area: 1 / 1; white-space: nowrap; transition: opacity .45s var(--ease), transform .45s var(--ease); }
.rotw > span.in { opacity: 0; transform: translateY(.35em); }
.rotw > span.out { opacity: 0; transform: translateY(-.35em); }
html[lang="ar"] .hero h1.h1-rot { line-height: 1.3; }
.hero-sub { max-width: 50ch; }
.hero-ctas { margin-top: 30px; }
@media (max-width: 560px) { .rotw > span { white-space: normal; } .rotw { min-height: 2.1em; align-items: start; } }
.hero-sub { max-width: 58ch; }
.hero-sub { max-width: 66ch; }

/* v11: "Automate anything" headline */
.h1-a { display: flex; flex-wrap: wrap; column-gap: .25em; }
.h1-a .rotw { display: inline-grid; }
.h1-ai { display: block; margin-top: .12em; font-size: .62em; line-height: 1.1; color: rgba(255,255,255,.92); letter-spacing: -.03em; }
html[lang="ar"] .h1-ai { letter-spacing: 0; }
.hero h1.h1-rot { font-size: clamp(42px, 6.2vw, 96px); }
.h1-a { display: block; } .h1-a > span:first-child { display: block; } .h1-a .rotw { display: grid; }

/* ---------- v12: hero before → after card ---------- */
@media (min-width: 1025px) { .hero-in { grid-template-columns: minmax(0, 1.15fr) minmax(380px, .85fr); align-items: center; gap: 56px; } }
.hero h1.h1-rot { font-size: clamp(42px, 4.9vw, 74px); }
.hero-sub { max-width: 46ch; }
.btn-lg { min-height: 54px; padding: 0 30px; font-size: 17px; }
.hero-trust { display: flex; align-items: center; gap: 12px; margin-top: 28px; color: rgba(255,255,255,.66); font-size: 16px; animation: rise .9s .3s var(--ease) both; }
.hero-trust em { font-style: italic; font-family: Georgia, "Times New Roman", serif; letter-spacing: .01em; }
html[lang="ar"] .hero-trust em { font-family: var(--font); font-style: normal; }
.hero-trust .alf-xs { height: 24px; }

.xf-col { animation: rise 1s .35s var(--ease) both; }
.xform { --bad: #E8704F; position: relative; background: rgba(var(--bg-rgb),.72); border: 1px solid var(--line-dark); border-radius: 12px; padding: 16px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 90px rgba(0,0,0,.45); transition: border-color .6s; }
.xform.is-after { border-color: rgba(var(--acc-rgb),.5); }
.xf-head { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 14px; }
.xf-title { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.85); }
.xf-state { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(232,112,79,.5); background: rgba(232,112,79,.12); color: var(--bad);
  font: 700 13px/1 var(--font); cursor: pointer; transition: all .5s var(--ease); }
.xf-state i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.xform.is-after .xf-state { border-color: rgba(var(--acc-rgb),.6); background: rgba(var(--acc-rgb),.14); color: var(--accent); }
.xform.is-after .xf-state i { animation: none; }
.xform .s-after { display: none; } .xform.is-after .s-after { display: inline; } .xform.is-after .s-before { display: none; }

.xf-stage { position: relative; height: 300px; border-radius: 8px; overflow: hidden; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); }
/* Before: the messy desk */
.pp { position: absolute; left: var(--x); top: var(--y); width: 30%; height: 34%; padding: 10px; border-radius: 4px; background: #E9E8E2; box-shadow: 0 6px 16px rgba(0,0,0,.35);
  transform: rotate(var(--r)); display: grid; align-content: start; gap: 6px; transition: transform .7s var(--ease), opacity .5s, left .7s var(--ease), top .7s var(--ease); animation: jitter 2.6s ease-in-out infinite; animation-delay: var(--d); }
.pp i { display: block; height: 5px; border-radius: 3px; background: #BEBDB5; }
.pp i:nth-child(2) { width: 80%; } .pp i:nth-child(3) { width: 60%; background: rgba(232,112,79,.75); } .pp i:nth-child(4) { width: 70%; }
@keyframes jitter { 0%, 100% { transform: rotate(var(--r)) translate(0, 0); } 50% { transform: rotate(calc(var(--r) * -0.6)) translate(2px, -3px); } }
.pp-xls { background: #DCE3DA; place-items: center; background-image: linear-gradient(rgba(0,0,0,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,.12) 1px, transparent 1px); background-size: 100% 20%, 25% 100%; }
.pp-xls b { font: 800 15px/1 "Inter", sans-serif; color: #3E6B45; background: #DCE3DA; padding: 3px 6px; border-radius: 3px; }
.pp-note { width: 26%; height: 26%; background: #F2CF5B; place-items: center; font: 700 13px/1.1 var(--font); color: #5A4300; }
.pp-mail { width: 44%; height: auto; padding: 10px 12px; display: flex; align-items: center; gap: 8px; background: #F4F4F1; font-size: 12.5px; font-weight: 600; color: #6A6D72; }
.pp-mail .ic { width: 16px; height: 16px; color: var(--bad); }
.scrib { position: absolute; left: var(--x); top: var(--y); width: 36%; fill: none; stroke: var(--bad); stroke-width: 2.4; stroke-linecap: round; opacity: .85; stroke-dasharray: 260; stroke-dashoffset: 260; transition: opacity .4s; }
.xform.is-before .scrib { animation: scrib 1.4s .6s var(--ease) forwards; }
@keyframes scrib { to { stroke-dashoffset: 0; } }
/* Scan + collapse */
.xf-scan { position: absolute; top: 0; bottom: 0; left: -30%; width: 30%; background: linear-gradient(90deg, transparent, rgba(var(--acc-rgb),.22) 70%, rgba(var(--acc-rgb),.9) 98%, transparent); opacity: 0; pointer-events: none; }
.xform.is-scan .xf-scan { animation: xscan .9s var(--ease) forwards; }
@keyframes xscan { 0% { opacity: 1; transform: translateX(0); } 100% { opacity: 1; transform: translateX(440%); } }
.xform.is-after .pp, .xform.is-scan .pp { animation: none; }
.xform.is-after .pp { left: 35%; top: 33%; transform: rotate(0) scale(.2); opacity: 0; }
.xform.is-after .scrib, .xform.is-scan .scrib { opacity: 0; }
/* After: one clean, checked document */
.xf-clean { position: absolute; inset: 0; display: grid; place-content: center; gap: 14px; padding: 18px; }
.doc { width: min(320px, 86%); justify-self: center; background: var(--white); color: var(--text); border-radius: 6px; padding: 14px 16px; box-shadow: 0 16px 40px rgba(0,0,0,.4);
  opacity: 0; transform: translateY(14px) scale(.94); transition: opacity .5s .25s, transform .6s .25s var(--ease); }
.doc-h { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); padding-bottom: 8px; border-bottom: 2px solid var(--text); margin-bottom: 4px; direction: ltr; }
.doc-h b { color: var(--text); font-size: 13px; }
.doc-r { display: grid; grid-template-columns: 1fr auto 18px; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.doc-r span { color: var(--muted); }
.doc-r b { font-weight: 600; direction: ltr; }
.doc-r .ic { width: 16px; height: 16px; color: var(--accent-ink); opacity: 0; transform: scale(.4); transition: opacity .3s, transform .4s var(--ease); transition-delay: calc(.7s + var(--i) * .18s); }
.xf-badges { display: flex; justify-content: center; gap: 8px; }
.xf-badges span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 4px; background: rgba(var(--acc-rgb),.14); color: var(--accent); font-size: 12.5px; font-weight: 700;
  opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .4s var(--ease); transition-delay: calc(1.5s + var(--i) * .15s); }
.xf-badges em { font-style: normal; }
.xf-badges .ic { width: 14px; height: 14px; }
.xform.is-after .doc { opacity: 1; transform: none; }
.xform.is-after .doc-r .ic { opacity: 1; transform: none; }
.xform.is-after .xf-badges span { opacity: 1; transform: none; }
.xform:not(.is-after) .doc, .xform:not(.is-after) .doc-r .ic, .xform:not(.is-after) .xf-badges span { transition-delay: 0s; }
/* Footer metrics */
.xf-foot { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 14px 4px 2px; }
.xf-m { display: flex; align-items: center; gap: 10px; }
.xf-m b { font-size: 26px; font-weight: 700; letter-spacing: -.03em; color: var(--bad); font-variant-numeric: tabular-nums; min-width: 4.2ch; transition: color .4s; }
.xform.is-after .xf-m b { color: var(--accent); }
.xf-q { justify-content: flex-end; font-size: 14px; font-weight: 600; color: var(--bad); }
.xform.is-after .xf-q { color: var(--accent); }
.clock { position: relative; width: 26px; height: 26px; border-radius: 50%; border: 2px solid currentColor; color: var(--bad); flex: none; transition: color .4s; }
.clock i { position: absolute; left: 50%; top: 3px; width: 2px; height: 9px; margin-left: -1px; background: currentColor; transform-origin: 50% 100%; animation: spin .6s linear infinite; }
.xform.is-after .clock { color: var(--accent); }
.xform.is-after .clock i { animation: none; transform: rotate(40deg); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 1024px) { .xf-col { max-width: 520px; width: 100%; margin-top: 8px; } }
@media (max-width: 560px) { .xf-stage { height: 250px; } .xf-m b { font-size: 22px; } .xf-q { font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { .pp { animation: none; } }
.doc { width: min(370px, 92%); }
.doc-r b { white-space: nowrap; }
.doc-r { grid-template-columns: auto 1fr 18px; }
.doc-r b { text-align: end; }

/* v13: static before/after card (replaces animation) */
.xf-col { animation: rise 1s .3s var(--ease) both; }
.cmp { border-radius: 12px; overflow: hidden; border: 1px solid var(--line-dark); background: rgba(var(--bg-rgb),.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 30px 90px rgba(0,0,0,.45); }
.cmp-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; font-size: 13px; font-weight: 600; }
.cmp-h b { font-size: 20px; letter-spacing: -.02em; }
.cmp-before { padding: 18px 20px; color: rgba(255,255,255,.5); border-bottom: 1px solid var(--line-dark); }
.cmp-before .cmp-h b { color: rgba(255,255,255,.55); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.cmp-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; counter-reset: st; }
.cmp-steps li { counter-increment: st; font-size: 13px; padding: 6px 10px; border-radius: 4px; border: 1px dashed rgba(255,255,255,.18); }
.cmp-steps li::before { content: counter(st) ". "; opacity: .6; }
.cmp-after { padding: 18px 20px 20px; background: linear-gradient(180deg, rgba(var(--acc-rgb),.08), transparent 60%); }
.cmp-after .cmp-h { color: var(--accent); }
.cmp-after .cmp-h b { color: var(--accent); }
.cmp .doc { width: 100%; opacity: 1; transform: none; transition: none; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.cmp .doc-h b { font-size: 13px; }
.cmp .doc-r .ic { opacity: 1; transform: none; transition: none; }
.cmp-tags { display: flex; gap: 8px; margin-top: 12px; }
.cmp-tags span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 4px; background: rgba(var(--acc-rgb),.12); color: var(--accent); font-size: 12.5px; font-weight: 600; }
.cmp-tags em { font-style: normal; }
.cmp-tags .ic { width: 14px; height: 14px; }

/* v14: centered hero + product window */
.hero { min-height: 0; justify-content: flex-start; }
@media (min-width: 1025px) { .hero-in { grid-template-columns: 1fr; } }
.hero-in { padding-top: clamp(64px, 10vh, 120px); padding-bottom: 48px; }
.hero-text { max-width: 900px; margin: 0 auto; text-align: center; }
.hero-text .h1-a { display: block; }
.hero h1.h1-rot { font-size: clamp(42px, 6vw, 88px); }
.hero-sub { margin-left: auto; margin-right: auto; max-width: 54ch; }
.hero-ctas { justify-content: center; }
.hero-trust { justify-content: center; }
.hero-media::after { background: linear-gradient(180deg, rgba(var(--bg-rgb),.88) 0%, rgba(var(--bg-rgb),.82) 45%, rgba(var(--bg-rgb),1) 88%); }
html[dir="rtl"] .hero-media::after { background: linear-gradient(180deg, rgba(var(--bg-rgb),.88) 0%, rgba(var(--bg-rgb),.82) 45%, rgba(var(--bg-rgb),1) 88%); }
.shot-wrap { position: relative; z-index: 1; width: 100%; }
.shot { max-width: 1040px; margin: 0 auto; border-radius: 12px 12px 0 0; overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-bottom: 0;
  background: #F7F7F5; color: #16181C; box-shadow: 0 -10px 80px rgba(var(--acc-rgb),.12), 0 40px 120px rgba(0,0,0,.6); animation: rise 1s .35s var(--ease) both; direction: ltr; text-align: left; }
.shot-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #ECECE8; border-bottom: 1px solid #DEDED9; font-size: 12.5px; color: #6B6E73; }
.shot-bar i { width: 11px; height: 11px; border-radius: 50%; background: #D3D3CE; }
.shot-bar span { margin-left: 10px; font-weight: 500; }
.shot-body { display: grid; grid-template-columns: 250px 1fr; min-height: 330px; }
.shot-side { padding: 20px; border-right: 1px solid #E3E3DE; background: #FBFBFA; }
.sl { font-size: 11.5px; font-weight: 600; color: #7A7D82; margin: 0 0 8px; }
.sl:not(:first-child) { margin-top: 16px; }
.sc { display: flex; flex-wrap: wrap; gap: 5px; }
.sc b { font-size: 12.5px; font-weight: 500; padding: 5px 9px; border-radius: 4px; border: 1px solid #DCDCD6; background: #fff; }
.sc b.on { background: #16181C; color: #fff; border-color: #16181C; }
.sbtn { margin-top: 22px; text-align: center; font-size: 13px; font-weight: 600; padding: 9px; border-radius: 5px; background: var(--accent-ink); color: #fff; }
.shot-main { padding: 20px 26px; }
.sm-h { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 12px; border-bottom: 2px solid #16181C; }
.sm-h b { display: block; font-size: 17px; }
.sm-h span { font-size: 13px; color: #6B6E73; }
.sm-h em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--accent-ink); background: rgba(var(--ink-rgb),.1); padding: 4px 9px; border-radius: 4px; white-space: nowrap; }
.shot table { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: 13.5px; }
.shot th { text-align: left; font-weight: 400; color: #6B6E73; padding: 8px 0; border-bottom: 1px solid #E6E6E1; width: 50%; }
.shot td { font-weight: 600; padding: 8px 0; border-bottom: 1px solid #E6E6E1; }
.sm-f { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; font-size: 12px; color: #7A7D82; }
.sm-f .ok { color: var(--accent-ink); font-weight: 600; }
@media (max-width: 760px) { .shot-body { grid-template-columns: 1fr; } .shot-side { display: none; } .shot-main { padding: 16px; } .shot th { width: 55%; } }
.shot-body { grid-template-columns: 290px 1fr; }

/* v15: left-aligned hero + big-picture flow */
.hero { min-height: min(86vh, 820px); justify-content: center; }
@media (min-width: 1025px) { .hero-in { grid-template-columns: minmax(0, 1fr) minmax(460px, 1fr); align-items: center; gap: 48px; } }
.hero-in { padding-top: 72px; padding-bottom: 72px; }
.hero-text { margin: 0; text-align: start; max-width: 620px; }
.hero h1.h1-rot { font-size: clamp(42px, 5vw, 76px); }
.hero-sub { margin-left: 0; margin-right: 0; max-width: 46ch; }
.hero-ctas, .hero-trust { justify-content: flex-start; }
.hero-media::after { background: linear-gradient(90deg, rgba(var(--bg-rgb),.94) 0%, rgba(var(--bg-rgb),.86) 50%, rgba(var(--bg-rgb),.8) 100%), linear-gradient(0deg, rgba(var(--bg-rgb),1) 0%, rgba(var(--bg-rgb),0) 30%); }
html[dir="rtl"] .hero-media::after { background: linear-gradient(270deg, rgba(var(--bg-rgb),.94) 0%, rgba(var(--bg-rgb),.86) 50%, rgba(var(--bg-rgb),.8) 100%), linear-gradient(0deg, rgba(var(--bg-rgb),1) 0%, rgba(var(--bg-rgb),0) 30%); }

.bp-col { animation: rise 1s .3s var(--ease) both; }
.bp { position: relative; display: grid; grid-template-columns: 1fr 132px 1fr; gap: 44px; align-items: center; }
.bp-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.bp-lines path { fill: none; stroke-width: 1.5; }
.bp-lines .ln-in { stroke: rgba(255,255,255,.2); stroke-dasharray: 3 5; }
.bp-lines .ln-out { stroke: rgba(var(--acc-rgb),.65); }
.bp-side { position: relative; z-index: 1; }
.bp-cap { font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.5); margin-bottom: 12px; }
.bp-cap-out { color: var(--accent); }
.bp-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bp-n { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 6px; font-size: 13.5px; font-weight: 600; line-height: 1.25; }
.bp-n .ic { width: 17px; height: 17px; flex: none; }
.bp-n-in { color: rgba(255,255,255,.62); background: rgba(255,255,255,.04); border: 1px dashed rgba(255,255,255,.18); }
.bp-n-in:nth-child(odd) { transform: rotate(-1.2deg); }
.bp-n-in:nth-child(even) { transform: rotate(1deg) translateX(6px); }
html[dir="rtl"] .bp-n-in:nth-child(even) { transform: rotate(-1deg) translateX(-6px); }
.bp-n-out { color: var(--white); background: rgba(var(--bg-rgb),.75); border: 1px solid rgba(var(--acc-rgb),.4); }
.bp-n-out .ic { color: var(--accent); }
.bp-hub { position: relative; z-index: 1; display: grid; justify-items: center; gap: 4px; text-align: center; padding: 20px 10px; border-radius: 14px;
  background: rgba(var(--bg-rgb),.9); border: 1px solid rgba(var(--acc-rgb),.55); box-shadow: 0 0 0 6px rgba(var(--acc-rgb),.06), 0 0 60px rgba(var(--acc-rgb),.18); }
.bp-logo { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; background: var(--accent); color: var(--black); font: 700 18px/1 "Inter", sans-serif; margin-bottom: 8px; }
.bp-hub b { font-size: 15px; font-weight: 700; color: var(--white); }
.bp-hub i { font-style: normal; color: rgba(255,255,255,.4); font-size: 14px; line-height: 1; }
.bp-ai { display: inline-flex; align-items: center; gap: 5px; color: var(--accent) !important; }
.bp-ai .ic { width: 15px; height: 15px; }
.bp-hub small { margin-top: 6px; font-size: 11.5px; color: rgba(255,255,255,.5); line-height: 1.3; }
@media (max-width: 1024px) { .bp-col { margin-top: 12px; } }
@media (max-width: 640px) {
  .bp { grid-template-columns: 1fr; gap: 18px; }
  .bp-lines { display: none; }
  .bp-side ul { grid-template-columns: 1fr 1fr; gap: 8px; }
  .bp-n { font-size: 12.5px; padding: 8px 10px; }
  .bp-n-in:nth-child(n) { transform: none; }
  .bp-hub { grid-auto-flow: column; align-items: center; padding: 12px 16px; justify-content: center; gap: 8px; }
  .bp-logo { width: 32px; height: 32px; font-size: 14px; margin: 0; }
  .bp-hub small { display: none; }
}

/* v16: polished big-picture diagram */
@media (min-width: 1025px) { .hero-in { grid-template-columns: minmax(0, .95fr) minmax(500px, 1.05fr); gap: 40px; } }
.bp { grid-template-columns: 1fr 150px 1fr; gap: 52px; align-items: stretch; }
.bp-side { display: flex; flex-direction: column; }
.bp-side ul { flex: 1; grid-auto-rows: 1fr; gap: 10px; }
.bp-n { min-height: 48px; padding: 0 12px; }
.bp-n-in:nth-child(odd) { transform: rotate(-1.5deg) translateX(-3px); }
.bp-n-in:nth-child(even) { transform: rotate(1.2deg) translateX(5px); }
.bp-n-in { background: rgba(255,255,255,.035); }
.bp-n-out { position: relative; padding-inline-end: 34px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.bp-ok { position: absolute; inset-inline-end: 10px; top: 50%; transform: translateY(-50%); width: 16px !important; height: 16px !important; color: var(--accent); opacity: .9; }
.bp-cap { height: 18px; margin-bottom: 12px; }
.bp-hub { align-self: center; margin-top: 30px; padding: 22px 12px 18px; gap: 6px; border-radius: 16px; background: linear-gradient(180deg, rgba(22,26,24,.96), rgba(var(--bg-rgb),.96)); }
.bp-logo { width: 48px; height: 48px; font-size: 19px; margin-bottom: 10px; box-shadow: 0 0 24px rgba(var(--acc-rgb),.45); }
.bp-row { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; color: var(--white); }
.bp-row b { font-weight: 700; }
.bp-row .ic { width: 17px; height: 17px; color: rgba(255,255,255,.8); }
.bp-row.bp-ai, .bp-row.bp-ai .ic { color: var(--accent); }
.bp-plus { color: rgba(255,255,255,.35); font-size: 13px; line-height: 1; }
.bp-hub small { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.1); width: 100%; }
.bp-lines .ln-in { stroke-dasharray: none; stroke-width: 1.4; }
.bp-lines .ln-out { stroke: rgba(var(--acc-rgb),.7); stroke-width: 1.6; }
.bp-lines .dt-in { fill: rgba(var(--acc-rgb),.8); }
.bp-lines .dt-out { fill: var(--accent); }
.bp-glow { position: absolute; left: 50%; top: 55%; width: 420px; height: 420px; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(circle, rgba(var(--acc-rgb),.16) 0%, transparent 62%),
    linear-gradient(rgba(var(--acc-rgb),.07) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, rgba(var(--acc-rgb),.07) 1px, transparent 1px) 0 0 / 28px 28px;
  -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 65%); mask-image: radial-gradient(circle, #000 0%, transparent 65%); }
@media (max-width: 640px) {
  .bp { gap: 16px; }
  .bp-side ul { grid-auto-rows: auto; }
  .bp-n { min-height: 40px; }
  .bp-hub { margin-top: 0; }
  .bp-hub .bp-row { font-size: 14px; }
  .bp-plus { display: inline; }
  .bp-glow { display: none; }
  .bp-n-out { padding-inline-end: 30px; }
}
@media (max-width: 640px) {
  .bp { grid-template-columns: 1fr; gap: 14px; align-items: stretch; }
  .bp-hub { grid-auto-flow: column; justify-content: center; align-items: center; gap: 10px; padding: 12px 16px; margin: 0; }
  .bp-logo { width: 34px; height: 34px; font-size: 14px; margin: 0; box-shadow: none; }
  .bp-hub small { display: none; }
  .bp-n-in:nth-child(n) { transform: none; }
}

/* v17: design-system pass (8px rhythm, AA contrast, one-word nodes, Segment-style tangle) */
.bp { grid-template-columns: 168px 1fr 168px; gap: 40px; padding-inline: 48px 0; }
html[dir="rtl"] .bp { padding-inline: 48px 0; }
.bp-side ul { gap: 8px; grid-auto-rows: 48px; flex: 0; }
.bp-n { min-height: 48px; padding: 0 16px; gap: 10px; border-radius: 8px; font-size: 14px; white-space: nowrap; }
.bp-n .ic { width: 18px; height: 18px; }
.bp-n-in { color: rgba(255,255,255,.74); border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.04); }
.bp-n-in .ic { color: rgba(255,255,255,.6); }
.bp-n-in:nth-child(odd) { transform: rotate(-2deg); }
.bp-n-in:nth-child(even) { transform: rotate(1.5deg) translateX(8px); }
html[dir="rtl"] .bp-n-in:nth-child(even) { transform: rotate(-1.5deg) translateX(-8px); }
.bp-n-out { border-color: rgba(var(--acc-rgb),.45); padding-inline-end: 40px; }
.bp-ok { inset-inline-end: 14px; }
.bp-cap { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.72); height: 16px; margin-bottom: 16px; }
.bp-cap-out { color: var(--accent); }
.bp-hub { width: 100%; max-width: 176px; justify-self: center; margin-top: 32px; padding: 24px 16px 16px; border-radius: 16px; gap: 8px; }
.bp-logo { width: 64px; height: 64px; border-radius: 16px; font-size: 24px; margin-bottom: 8px; }
.bp-row { font-size: 16px; }
.bp-hub small { font-size: 12px; color: rgba(255,255,255,.66); margin-top: 8px; padding-top: 8px; }
.bp-lines .ln-tangle { fill: none; stroke: rgba(255,255,255,.22); stroke-width: 1.2; stroke-dasharray: 3 4; }
.bp-lines path { stroke-linecap: round; }
@media (max-width: 1180px) and (min-width: 1025px) { .bp { grid-template-columns: 150px 1fr 150px; gap: 28px; } }
@media (max-width: 640px) {
  .bp { grid-template-columns: 1fr; padding: 0; gap: 16px; }
  .bp-side ul { grid-auto-rows: 44px; }
  .bp-n { min-height: 44px; padding: 0 12px; font-size: 13px; }
  .bp-hub { max-width: none; margin: 0; padding: 12px 16px; }
  .bp-logo { width: 36px; height: 36px; font-size: 14px; border-radius: 8px; margin: 0; }
}
@media (max-width: 640px) { .bp-n-in:nth-child(odd), .bp-n-in:nth-child(even), html[dir="rtl"] .bp-n-in:nth-child(even) { transform: none; } }

/* ---------- v18: one visual language across the page ---------- */
/* Solutions: mini flow instead of stock photo + fake UI */
.panel-flow { background: var(--black); border-radius: 14px; padding: 40px 28px; position: relative; overflow: hidden; }
.panel-flow::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(var(--acc-rgb),.16), transparent 55%); pointer-events: none; }
.bp.mini { grid-template-columns: 1fr 150px 1fr; gap: 36px; padding: 0; }
.bp.mini .bp-side ul { grid-auto-rows: 48px; gap: 12px; }
.bp.mini .bp-hub { margin: 0; padding: 18px 12px; max-width: 160px; }
.bp.mini .bp-logo { width: 52px; height: 52px; font-size: 20px; border-radius: 14px; }
.bp.mini .bp-row { font-size: 13px; text-align: center; }
.bp.mini .bp-row .ic { color: var(--accent); }
.bp.mini .bp-n { white-space: normal; line-height: 1.2; font-size: 13.5px; }

/* Integrations: hub diagram in light theme */
.int-hub { --ln-grey: rgba(var(--bg-rgb),.2); grid-template-columns: 1fr 200px 1fr; gap: 56px; padding: 0; max-width: 980px; margin: 0 auto; }
.int-hub .bp-side ul { grid-auto-rows: 72px; gap: 14px; }
.int-hub .lg-node { justify-content: center; background: var(--white); border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(var(--bg-rgb),.06); transform: none !important; padding: 0 18px; }
.int-hub .lg-txt { color: var(--text); font-weight: 600; font-size: 14px; gap: 10px; }
.int-hub .lg-txt .ic { color: var(--accent-ink); }
.int-hub .bp-hub { margin: 0; max-width: 200px; background: var(--black); border-color: rgba(var(--acc-rgb),.6); }
.int-hub .bp-row { font-size: 14px; text-align: center; }
.int-hub .bp-lines .ln-out { stroke: rgba(var(--ink-rgb),.55); stroke-width: 1.6; }
.int-hub .bp-lines .dt-out { fill: var(--accent-ink); }

/* Problem rows: same dashed→solid language */
.flow-row { position: relative; }
.f-arrow { visibility: hidden; }
.flow-row::after { content: ""; position: absolute; top: 50%; height: 2px; margin-top: -1px; left: calc(50% - 24px); width: 48px; background: linear-gradient(90deg, #C9CAC5, var(--accent-ink)); }
html[dir="rtl"] .flow-row::after { background: linear-gradient(270deg, #C9CAC5, var(--accent-ink)); }
.f-old { background: transparent; border: 1.5px dashed #C9CAC5; color: #8A8D93; }
.flow-row:nth-child(odd) .f-old { transform: rotate(-.8deg); }
.flow-row:nth-child(even) .f-old { transform: rotate(.6deg); }
.f-new { position: relative; border: 1px solid rgba(var(--acc-rgb),.5); padding-inline-end: 52px; }
.f-new::after { content: ""; position: absolute; inset-inline-end: 20px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; border: 1.5px solid var(--accent);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.3l2.6 2.6L14 7.5' fill='none' stroke='%233CC8C8' stroke-width='1.8'/%3E%3C/svg%3E") center/100% no-repeat; }

@media (max-width: 820px) {
  .int-hub { grid-template-columns: 1fr; gap: 14px; }
  .int-hub .bp-side ul { grid-template-columns: 1fr 1fr 1fr; grid-auto-rows: 64px; gap: 8px; }
  .int-hub .bp-lines { display: none; }
  .int-hub .bp-hub { max-width: none; grid-auto-flow: column; justify-content: center; align-items: center; gap: 10px; padding: 12px; }
  .int-hub .bp-logo { width: 36px; height: 36px; font-size: 14px; margin: 0; border-radius: 8px; }
}
@media (max-width: 640px) {
  .bp.mini { grid-template-columns: 1fr; gap: 12px; }
  .bp.mini .bp-lines { display: none; }
  .bp.mini .bp-hub { max-width: none; grid-auto-flow: column; justify-content: center; align-items: center; gap: 10px; }
  .bp.mini .bp-logo { width: 34px; height: 34px; font-size: 13px; margin: 0; border-radius: 8px; }
  .bp.mini .bp-side ul { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .panel-flow { padding: 20px 16px; }
  .int-hub .bp-side ul { grid-template-columns: 1fr 1fr; }
  .flow-row::after { display: none; }
}

/* v21: circular hub + directional outputs */
.bp:not(.int-hub):not(.mini) .bp-hub { width: 176px; max-width: none; height: 176px; padding: 0; border-radius: 50%; margin-top: 32px; align-content: center; gap: 6px;
  background: radial-gradient(circle at 50% 40%, rgba(var(--acc-rgb),.18), rgba(var(--bg-rgb),.96) 70%); border: 1.5px solid rgba(var(--acc-rgb),.7);
  box-shadow: 0 0 0 10px rgba(var(--acc-rgb),.06), 0 0 0 22px rgba(var(--acc-rgb),.03), 0 0 70px rgba(var(--acc-rgb),.25); }
.bp:not(.int-hub):not(.mini) .bp-hub small { display: none; }
.bp:not(.int-hub):not(.mini) .bp-logo { width: 52px; height: 52px; border-radius: 50%; font-size: 19px; margin-bottom: 4px; }
.bp:not(.int-hub):not(.mini) .bp-row { font-size: 14px; }
.bp:not(.int-hub):not(.mini) .bp-plus { line-height: .8; }
.bp-lines .ln-in { stroke-dasharray: 4 5; }
.bp.mini .bp-hub { width: 148px; height: 148px; border-radius: 50%; padding: 0; align-content: center; justify-self: center;
  border: 1.5px solid rgba(var(--acc-rgb),.7); box-shadow: 0 0 0 8px rgba(var(--acc-rgb),.06), 0 0 50px rgba(var(--acc-rgb),.22); }
.bp.mini .bp-logo { border-radius: 50%; width: 46px; height: 46px; font-size: 17px; }
.bp.mini .bp-row { font-size: 12px; max-width: 110px; }
@media (max-width: 640px) {
  .bp:not(.int-hub):not(.mini) .bp-hub, .bp.mini .bp-hub { width: auto; height: auto; border-radius: 999px; padding: 10px 18px; margin: 0; box-shadow: 0 0 40px rgba(var(--acc-rgb),.2); }
  .bp:not(.int-hub):not(.mini) .bp-logo, .bp.mini .bp-logo { width: 34px; height: 34px; font-size: 13px; margin: 0; }
}
.bp:not(.int-hub):not(.mini) { grid-template-columns: 150px 1fr 150px; gap: 30px; padding-inline: 34px 0; }
.bp:not(.int-hub):not(.mini) .bp-hub { width: 160px; height: 160px; }
.bp:not(.int-hub):not(.mini) .bp-n { padding: 0 12px; font-size: 13.5px; }
@media (max-width: 1180px) and (min-width: 1025px) { .bp:not(.int-hub):not(.mini) { grid-template-columns: 132px 1fr 132px; gap: 22px; } .bp:not(.int-hub):not(.mini) .bp-hub { width: 140px; height: 140px; } }
@media (max-width: 640px) { .bp:not(.int-hub):not(.mini) { grid-template-columns: 1fr; padding: 0; } }
/* hub: no JO mark, just Automation + AI */
.bp:not(.int-hub) .bp-hub .bp-logo { display: none; }
.bp:not(.int-hub):not(.mini) .bp-row { font-size: 16px; }
.bp:not(.int-hub):not(.mini) .bp-row .ic { width: 20px; height: 20px; }
.bp:not(.int-hub):not(.mini) .bp-hub { gap: 8px; }
.bp:not(.int-hub):not(.mini) .bp-n-out { padding-inline-end: 34px; }
.bp:not(.int-hub):not(.mini) .bp-ok { inset-inline-end: 10px; }
@media (max-width: 640px) {
  .bp:not(.int-hub):not(.mini) .bp-hub { width: auto; height: auto; border-radius: 999px; padding: 12px 20px; margin: 0; }
}

/* ---------- brand palette: Desert gold ---------- */
:root { --accent: #3CC8C8; --accent-ink: #157C80; --acc-rgb: 60,200,200; --ink-rgb: 21,124,128; --tint: #EEF3F5; }
.hero, .sec-dark, .foot { background-color: var(--black); }
.bp-lines { color: var(--accent); }
.int-hub .bp-lines { color: var(--accent-ink); }

/* ---------- dark background tone: Midnight navy ---------- */
:root { --black: #0B1220; --dark-2: #131C2E; --bg-rgb: 11,18,32; --bg2-rgb: 19,28,46; }
/* Saudi Made / Saudi Tech badge slot (shows only when assets/saudi-made.svg exists) */
.sm-slot { display: inline-flex; align-items: center; }
.sm-slot img { height: 40px; width: auto; display: block; }
.hero-trust .sm-slot { margin-inline-start: 18px; padding-inline-start: 18px; border-inline-start: 1px solid rgba(255,255,255,.18); }
.foot .sm-slot img { height: 34px; }

/* ---------- logo: hex nut ---------- */
.logo { gap: 10px; }
.logo-jo { display: none; }
.logo-mk { width: 30px; height: 30px; color: currentColor; flex: none; }
.logo-tx { font-weight: 500; letter-spacing: -.02em; }
.logo-tx b { font-weight: 800; }
.bp-logo.bp-hex { background: transparent; box-shadow: none; }
.bp-hex .hex-mk { width: 100%; height: 100%; color: #fff; }

/* ---------- v24: premium hero polish ---------- */
/* nav: solid navy, hairline border, no grey */
.nav { background: rgba(var(--bg-rgb), .86); border-bottom: 1px solid rgba(255,255,255,.07); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }
.nav-in { height: 68px; }
.nav-links a { font-size: 14.5px; color: rgba(255,255,255,.62); }
.nav-links a:hover { color: #fff; }
.lang { border-color: rgba(255,255,255,.12); font-size: 13.5px; }
.nav .btn-sm { background: var(--accent); color: var(--black); border-color: var(--accent); font-weight: 700; }
.nav .btn-sm:hover { background: #fff; border-color: #fff; }

/* photo: deeper, even navy wash + soft vignette, hero blends into the page */
.hero-media img { filter: grayscale(1) contrast(1.1) brightness(.85); }
.hero-media::after, html[dir="rtl"] .hero-media::after { background:
  radial-gradient(ellipse 70% 60% at 75% 45%, rgba(var(--acc-rgb), .08), transparent 60%),
  linear-gradient(180deg, rgba(var(--bg-rgb), .55) 0%, rgba(var(--bg-rgb), .72) 55%, rgba(var(--bg-rgb), 1) 100%),
  linear-gradient(90deg, rgba(var(--bg-rgb), .92) 0%, rgba(var(--bg-rgb), .6) 55%, rgba(var(--bg-rgb), .5) 100%); }
html[dir="rtl"] .hero-media::after { background:
  radial-gradient(ellipse 70% 60% at 25% 45%, rgba(var(--acc-rgb), .08), transparent 60%),
  linear-gradient(180deg, rgba(var(--bg-rgb), .55) 0%, rgba(var(--bg-rgb), .72) 55%, rgba(var(--bg-rgb), 1) 100%),
  linear-gradient(270deg, rgba(var(--bg-rgb), .92) 0%, rgba(var(--bg-rgb), .6) 55%, rgba(var(--bg-rgb), .5) 100%); }
.hero { min-height: min(84vh, 780px); }

/* layout: text column sized so the longest rotating word always fits */
@media (min-width: 1025px) { .hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; } }
.hero-text { max-width: 600px; }
.hero h1.h1-rot { font-size: clamp(40px, 4.3vw, 64px); line-height: 1.04; letter-spacing: -.04em; font-weight: 600; }
.h1-a { display: block; }
.rotw { color: var(--accent); }
.h1-ai { display: block; margin-top: 14px; font-size: .5em; font-weight: 500; letter-spacing: -.02em; color: rgba(255,255,255,.72); }
.hero-sub { margin-top: 22px; font-size: 18px; line-height: 1.6; color: rgba(255,255,255,.62); max-width: 46ch; }
html[lang="ar"] .hero-sub { font-size: 19px; }
.hero-ctas { margin-top: 34px; }
.hero .btn-lg { min-height: 52px; padding: 0 28px; font-size: 16px; font-weight: 700; background: var(--accent); color: var(--black); border-color: var(--accent); border-radius: 8px;
  box-shadow: 0 10px 30px rgba(var(--acc-rgb), .25); }
.hero .btn-lg:hover { background: #fff; border-color: #fff; }

/* trusted-by: same family, quiet */
.hero-trust { margin-top: 30px; gap: 14px; font-size: 13.5px; color: rgba(255,255,255,.5); }
.hero-trust em { font-family: var(--font); font-style: normal; font-weight: 500; }
.hero-trust .alf-xs { height: 22px; opacity: .9; }

/* diagram: slightly lighter so the headline leads */
.bp-col { opacity: .96; }
.bp-cap { font-size: 11.5px; letter-spacing: .02em; }
@media (max-width: 1024px) { .hero-text { max-width: none; } }
.nav { background: rgba(var(--bg-rgb), .97); }
.hero { min-height: 0; }
.hero-in { padding-top: clamp(72px, 12vh, 120px); padding-bottom: clamp(72px, 12vh, 120px); }
.hero-sub, .hero h1 { text-wrap: pretty; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(var(--acc-rgb), .35), transparent); }
/* v25: clean "works with" logo row */
.lrow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--white); }
.lrow li { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 104px; padding: 16px; border-inline-end: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--text); text-align: center; }
.lrow li:last-child { border-inline-end: 0; }
.lrow .ic { width: 20px; height: 20px; color: var(--accent-ink); }
.lrow .lg-sap { height: 38px; } .lrow .lg-sie { height: 22px; } .lrow .lg-ms b { font-size: 21px; } .lrow .lg-ms svg { width: 24px; height: 24px; } .lrow .lg-ora { font-size: 22px; }
@media (max-width: 900px) { .lrow { grid-template-columns: repeat(3, 1fr); } .lrow li:nth-child(3) { border-inline-end: 0; } .lrow li:nth-child(-n+3) { border-bottom: 1px solid var(--line); } }
@media (max-width: 520px) { .lrow { grid-template-columns: 1fr 1fr; } .lrow li { border-inline-end: 1px solid var(--line) !important; border-bottom: 1px solid var(--line); min-height: 80px; } .lrow li:nth-child(2n) { border-inline-end: 0 !important; } }

/* v26: longer action labels in hero diagram */
@media (min-width: 1025px) { .bp:not(.int-hub):not(.mini) { grid-template-columns: 178px 1fr 186px; gap: 26px; padding-inline: 30px 0; } .bp:not(.int-hub):not(.mini) .bp-hub { width: 148px; height: 148px; } }
@media (max-width: 1240px) and (min-width: 1025px) { .bp:not(.int-hub):not(.mini) .bp-n { font-size: 12.5px; padding: 0 10px; } .bp:not(.int-hub):not(.mini) { grid-template-columns: 158px 1fr 166px; } }
@media (min-width: 1025px) {
  .hero-in { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; }
  .bp:not(.int-hub):not(.mini) { grid-template-columns: 162px 1fr 172px; gap: 20px; padding-inline: 24px 0; }
  .bp:not(.int-hub):not(.mini) .bp-hub { width: 132px; height: 132px; }
  .bp:not(.int-hub):not(.mini) .bp-row { font-size: 14px; }
  .bp:not(.int-hub):not(.mini) .bp-n { font-size: 13px; padding: 0 10px; gap: 8px; }
  .bp:not(.int-hub):not(.mini) .bp-n-out { padding-inline-end: 30px; }
  .bp:not(.int-hub):not(.mini) .bp-ok { inset-inline-end: 9px; }
}
@media (max-width: 1240px) and (min-width: 1025px) {
  .bp:not(.int-hub):not(.mini) { grid-template-columns: 148px 1fr 158px; gap: 14px; padding-inline: 16px 0; }
  .bp:not(.int-hub):not(.mini) .bp-n { font-size: 12px; }
  .bp:not(.int-hub):not(.mini) .bp-hub { width: 116px; height: 116px; }
  .bp:not(.int-hub):not(.mini) .bp-row { font-size: 12.5px; }
}

/* ---------- v28: cleaner hero ---------- */
.hero-media img { opacity: .55; }
.bp-glow { display: none; }
.bp .bp-n-in:nth-child(n), html[dir="rtl"] .bp .bp-n-in:nth-child(n) { transform: none; }
.bp:not(.int-hub) .bp-n-in { background: rgba(255,255,255,.03); border: 1px dashed rgba(255,255,255,.16); color: rgba(255,255,255,.62); }
.bp:not(.int-hub) .bp-n-in .ic { color: rgba(255,255,255,.4); }
.bp:not(.int-hub) .bp-n-out { background: rgba(var(--bg-rgb), .7); border: 1px solid rgba(var(--acc-rgb), .32); box-shadow: none; }
.bp:not(.int-hub):not(.mini) .bp-n-out { padding-inline-end: 12px; }
.bp:not(.int-hub) .bp-ok { display: none; }
.bp:not(.int-hub):not(.mini) .bp-hub { background: rgba(var(--bg-rgb), .9); border: 1px solid rgba(var(--acc-rgb), .55);
  box-shadow: 0 0 40px rgba(var(--acc-rgb), .12); }
.bp:not(.int-hub) .bp-lines .ln-in { stroke-dasharray: none; stroke-width: 1; opacity: .7; }
.bp:not(.int-hub) .bp-lines .ln-out { stroke-width: 1.2; opacity: .75; }
.bp:not(.int-hub) .bp-lines .dt-out { r: 2; opacity: .8; }
.bp-cap { color: rgba(255,255,255,.45); font-weight: 500; }
.bp-cap-out { color: var(--accent); }
.hero-sub { max-width: 40ch; }
.foot-legal { margin: 0 auto; padding-top: 0; padding-bottom: 24px; font-size: 12px; line-height: 1.5; color: rgba(255,255,255,.4); }
.timeline { grid-template-columns: 1fr; }

/* ---------- v30: boxless hero diagram ---------- */
.bp:not(.int-hub):not(.mini) .bp-n { background: none !important; border: 0 !important; box-shadow: none !important; min-height: 0; padding: 0 !important; gap: 10px; font-size: 15px; }
.bp:not(.int-hub):not(.mini) .bp-side ul { grid-auto-rows: 44px; align-items: center; }
.bp:not(.int-hub):not(.mini) .bp-n .ic:not(.bp-ok) { display: none; }
.bp:not(.int-hub):not(.mini) .bp-n-in { color: rgba(255,255,255,.45); font-weight: 500; }
.bp:not(.int-hub):not(.mini) .bp-n-in::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.28); flex: none; }
.bp:not(.int-hub):not(.mini) .bp-n-out { color: #fff; font-weight: 600; }
.bp:not(.int-hub):not(.mini) .bp-ok { display: block !important; position: static; transform: none; width: 18px !important; height: 18px !important; color: var(--accent); order: -1; }
.bp:not(.int-hub):not(.mini) .bp-n-in { justify-content: flex-end; text-align: end; }
.bp:not(.int-hub):not(.mini) .bp-n-in::before { order: 2; }
.bp:not(.int-hub):not(.mini) .bp-lines .ln-in { opacity: .45; }
.bp:not(.int-hub):not(.mini) .bp-lines .ln-out { opacity: .6; }
.bp:not(.int-hub):not(.mini) .bp-lines path[marker-end] { marker-end: none; }
.bp:not(.int-hub):not(.mini) .bp-lines .dt-out { display: none; }
.bp:not(.int-hub):not(.mini) .bp-cap { margin-bottom: 10px; }
.bp:not(.int-hub):not(.mini) .bp-in .bp-cap { text-align: end; }
@media (min-width: 1025px) { .bp:not(.int-hub):not(.mini) { grid-template-columns: 170px 1fr 190px; gap: 22px; } }
@media (max-width: 640px) {
  .bp:not(.int-hub):not(.mini) .bp-n-in, .bp:not(.int-hub):not(.mini) .bp-in .bp-cap { justify-content: flex-start; text-align: start; }
  .bp:not(.int-hub):not(.mini) .bp-n-in::before { order: 0; }
  .bp:not(.int-hub):not(.mini) .bp-side ul { grid-auto-rows: 34px; }
  .bp:not(.int-hub):not(.mini) .bp-n { font-size: 14px; }
}

@media (min-width: 1025px) { .bp:not(.int-hub):not(.mini) { grid-template-columns: 200px 1fr 200px; gap: 18px; padding-inline: 0; } .bp:not(.int-hub):not(.mini) .bp-hub { width: 124px; height: 124px; } .bp:not(.int-hub):not(.mini) .bp-row { font-size: 13px; } }
.bp:not(.int-hub):not(.mini) .bp-n { font-size: 14px; line-height: 1.3; white-space: normal; }
.bp:not(.int-hub):not(.mini) .bp-side ul { grid-auto-rows: 48px; }
.hero-in { gap: 40px; }

/* ---------- v31: hub = JOTransform hex nut ---------- */
.bp:not(.int-hub):not(.mini) .bp-hub.bp-hub-hex { position: relative; width: 148px; height: 170px; border: 0; border-radius: 0; background: none; box-shadow: none; padding: 0;
  display: grid; align-content: center; justify-items: center; gap: 2px; }
.hub-shape { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 24px rgba(var(--acc-rgb), .18)); }
.hub-shape polygon { fill: rgba(var(--bg-rgb), .92); stroke: rgba(255,255,255,.85); stroke-width: 3; stroke-linejoin: round; }
.bp-hub-hex > :not(.hub-shape) { position: relative; }
.hub-ring { width: 26px; height: 26px; margin-bottom: 8px; }
.hub-ring circle { fill: none; stroke: var(--accent); stroke-width: 3.6; }
.bp-hub-hex b { font-size: 15px; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.bp-hub-hex .hub-ai { color: var(--accent); }
.bp-hub-hex .bp-plus { font-size: 12px; color: rgba(255,255,255,.4); line-height: 1; }
@media (max-width: 1240px) and (min-width: 1025px) { .bp:not(.int-hub):not(.mini) .bp-hub.bp-hub-hex { width: 124px; height: 143px; } }
@media (max-width: 640px) {
  .bp:not(.int-hub):not(.mini) .bp-hub.bp-hub-hex { width: 120px; height: 138px; justify-self: center; margin: 4px auto; padding: 0; border-radius: 0; grid-auto-flow: row; }
  .bp-hub-hex b { font-size: 13px; }
}

/* ---------- v32: flat-top nut hub, 6 rows ---------- */
.hero-text { max-width: 560px; }
@media (min-width: 1025px) {
  .hero-in { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 36px; }
  .bp:not(.int-hub):not(.mini) { grid-template-columns: 210px 1fr 210px; gap: 16px; }
}
.bp:not(.int-hub):not(.mini) .bp-hub.bp-hub-hex { width: 168px; height: 146px; }
.hub-shape { filter: drop-shadow(0 0 30px rgba(var(--acc-rgb), .16)); }
.hub-shape .hx-o { fill: rgba(var(--bg-rgb), .94); stroke: rgba(var(--acc-rgb), .75); stroke-width: 1.6; stroke-linejoin: round; }
.hub-shape .hx-i { fill: none; stroke: rgba(var(--acc-rgb), .22); stroke-width: 1; stroke-linejoin: round; }
.hub-ring { display: none; }
.bp-hub-hex b { font-size: 15px; }
.bp:not(.int-hub):not(.mini) .bp-side ul { grid-auto-rows: 44px; }
.bp:not(.int-hub):not(.mini) .bp-n { font-size: 13.5px; }
@media (max-width: 1240px) and (min-width: 1025px) {
  .bp:not(.int-hub):not(.mini) { grid-template-columns: 180px 1fr 184px; gap: 12px; }
  .bp:not(.int-hub):not(.mini) .bp-hub.bp-hub-hex { width: 140px; height: 122px; }
  .bp:not(.int-hub):not(.mini) .bp-n { font-size: 12.5px; }
  .bp-hub-hex b { font-size: 13px; }
}
@media (max-width: 640px) { .bp:not(.int-hub):not(.mini) .bp-hub.bp-hub-hex { width: 150px; height: 130px; } }
/* v34: original dark hero, photo slightly more visible on the right */
.hero-media img { opacity: .72; }
.hero-media::after { background:
  linear-gradient(90deg, rgba(var(--bg-rgb), .92) 0%, rgba(var(--bg-rgb), .82) 40%, rgba(var(--bg-rgb), .62) 72%, rgba(var(--bg-rgb), .55) 100%),
  linear-gradient(180deg, rgba(var(--bg-rgb), .45) 0%, rgba(var(--bg-rgb), .2) 40%, rgba(var(--bg-rgb), .45) 75%, rgba(var(--bg-rgb), 1) 100%); }
html[dir="rtl"] .hero-media::after { background:
  linear-gradient(270deg, rgba(var(--bg-rgb), .92) 0%, rgba(var(--bg-rgb), .82) 40%, rgba(var(--bg-rgb), .62) 72%, rgba(var(--bg-rgb), .55) 100%),
  linear-gradient(180deg, rgba(var(--bg-rgb), .45) 0%, rgba(var(--bg-rgb), .2) 40%, rgba(var(--bg-rgb), .45) 75%, rgba(var(--bg-rgb), 1) 100%); }

/* ---------- v35: slot-style word swap (no overlap) ---------- */
.rotw { overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.rotw > span { transition: transform .5s var(--ease), opacity .35s ease; }
.rotw > span.in { opacity: 0; transform: translateY(105%); }
.rotw > span.out { opacity: 0; transform: translateY(-105%); }

/* ---------- v35: diagram items as clean cards ---------- */
.bp:not(.int-hub):not(.mini) .bp-side ul { grid-auto-rows: 42px; gap: 10px; }
.bp:not(.int-hub):not(.mini) .bp-n { padding: 0 14px !important; border-radius: 8px; height: 42px; font-size: 13.5px; justify-content: flex-start !important; text-align: start !important; text-shadow: none; white-space: nowrap; }
.bp:not(.int-hub):not(.mini) .bp-n-in { background: rgba(var(--bg-rgb), .72) !important; border: 1px solid rgba(255,255,255,.08) !important; color: rgba(255,255,255,.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.bp:not(.int-hub):not(.mini) .bp-n-in::before { order: 0 !important; width: 5px; height: 5px; background: rgba(255,255,255,.3); }
.bp:not(.int-hub):not(.mini) .bp-n-out { background: rgba(var(--bg-rgb), .85) !important; border: 1px solid rgba(var(--acc-rgb), .35) !important; box-shadow: 0 6px 18px rgba(0,0,0,.25) !important; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.bp:not(.int-hub):not(.mini) .bp-in .bp-cap { text-align: start; }
.bp:not(.int-hub):not(.mini) .bp-cap { margin-bottom: 12px; }
@media (min-width: 1025px) { .bp:not(.int-hub):not(.mini) { grid-template-columns: 214px 1fr 214px; gap: 14px; } }
@media (max-width: 1240px) and (min-width: 1025px) { .bp:not(.int-hub):not(.mini) { grid-template-columns: 190px 1fr 190px; } .bp:not(.int-hub):not(.mini) .bp-n { font-size: 12.5px; padding: 0 10px !important; } }
@media (max-width: 640px) { .bp:not(.int-hub):not(.mini) .bp-n { white-space: normal; height: auto; min-height: 40px; padding: 8px 10px !important; line-height: 1.25; } .bp:not(.int-hub):not(.mini) .bp-side ul { grid-auto-rows: auto; } }

/* v36: AI example merged into "What we build" */
.ai-block { margin-top: clamp(40px, 5vw, 64px); padding: clamp(24px, 3vw, 40px); border-radius: 16px; background: var(--black); color: #fff; position: relative; overflow: hidden; }
.ai-block::before { content: ""; position: absolute; right: -10%; top: -40%; width: 55%; aspect-ratio: 1; background: radial-gradient(circle, rgba(var(--acc-rgb), .14), transparent 62%); pointer-events: none; }
.ai-block > * { position: relative; }
.ai-block .ai-ex { margin-bottom: 18px; }
/* v37: clearer manual side */
.bp:not(.int-hub):not(.mini) .bp-n-in { color: rgba(255,255,255,.84) !important; background: rgba(255,255,255,.06) !important; border: 1px solid rgba(255,255,255,.18) !important; }
.bp:not(.int-hub):not(.mini) .bp-n-in::before { background: rgba(255,255,255,.55) !important; }
.bp:not(.int-hub):not(.mini) { --ln-grey: rgba(255,255,255,.42); }
.bp:not(.int-hub):not(.mini) .bp-lines .ln-in { opacity: 1 !important; stroke-width: 1.4 !important; }
.bp:not(.int-hub):not(.mini) .bp-lines .ln-out { opacity: .9 !important; stroke-width: 1.4 !important; }
.bp:not(.int-hub):not(.mini) .bp-cap { color: rgba(255,255,255,.62); }
.bp:not(.int-hub):not(.mini) .bp-cap-out { color: var(--accent); }
@media (min-width: 1025px) {
  .bp:not(.int-hub):not(.mini) { grid-template-columns: 200px 1fr 200px; gap: 36px; }
  .bp:not(.int-hub):not(.mini) .bp-hub.bp-hub-hex { width: 140px; height: 122px; }
  .bp-hub-hex b { font-size: 14px; }
}
@media (max-width: 1240px) and (min-width: 1025px) {
  .bp:not(.int-hub):not(.mini) { grid-template-columns: 178px 1fr 178px; gap: 26px; }
  .bp:not(.int-hub):not(.mini) .bp-hub.bp-hub-hex { width: 118px; height: 103px; }
  .bp-hub-hex b { font-size: 12.5px; }
}

/* v38: What we build as scrolling cards (left to right) */
.sc-wrap { overflow: hidden; margin-inline: calc(-1 * var(--gutter)); padding: 8px 0 24px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); direction: ltr; }
.sc-track { display: flex; width: max-content; animation: scr 55s linear infinite; }
.sc-wrap:hover .sc-track { animation-play-state: paused; }
@keyframes scr { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.sc-set { display: flex; gap: 18px; padding-inline-end: 18px; }
.scard { width: 300px; flex: none; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: grid; gap: 12px; align-content: start; box-shadow: 0 8px 24px rgba(11,18,32,.05); transition: transform .3s var(--ease), box-shadow .3s; }
html[dir="rtl"] .scard { direction: rtl; }
.scard:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(11,18,32,.1); }
.sc-ic { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--black); color: var(--accent); }
.sc-ic .ic { width: 22px; height: 22px; }
.scard h3 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.scard p { color: var(--muted); font-size: 15px; line-height: 1.5; }
.sc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.sc-tags span { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: rgba(var(--ink-rgb), .1); color: var(--accent-ink); }
@media (prefers-reduced-motion: reduce) { .sc-track { animation: none; } .sc-wrap { overflow-x: auto; } }

/* v41: four simple steps */
.steps4 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
.steps4::before { content: ""; position: absolute; top: 46px; inset-inline: 12.5%; height: 2px; background: linear-gradient(90deg, rgba(var(--ink-rgb), .15), rgba(var(--ink-rgb), .6)); }
html[dir="rtl"] .steps4::before { background: linear-gradient(270deg, rgba(var(--ink-rgb), .15), rgba(var(--ink-rgb), .6)); }
.steps4 li { position: relative; display: grid; justify-items: center; text-align: center; gap: 10px; padding: 24px 18px 28px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); }
.s4-n { position: absolute; top: 14px; inset-inline-start: 16px; font-size: 13px; font-weight: 700; color: var(--accent-ink); }
.s4-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--black); color: var(--accent); position: relative; z-index: 1; }
.s4-ic .ic { width: 22px; height: 22px; }
.steps4 h3 { font-size: 19px; font-weight: 600; margin-top: 6px; }
.steps4 p { color: var(--muted); font-size: 15px; max-width: 24ch; }
.steps4 li:last-child { background: var(--black); border-color: var(--black); }
.steps4 li:last-child h3 { color: #fff; } .steps4 li:last-child p { color: rgba(255,255,255,.65); }
.steps4 li:last-child .s4-ic { background: var(--accent); color: var(--black); }
.steps4 li:last-child .s4-n { color: var(--accent); }
.steps4-cta { margin-top: 32px; }
@media (max-width: 900px) { .steps4 { grid-template-columns: 1fr 1fr; } .steps4::before { display: none; } }
@media (max-width: 520px) { .steps4 { grid-template-columns: 1fr; } .steps4 li { justify-items: start; text-align: start; padding-inline-start: 72px; } .s4-ic { position: absolute; inset-inline-start: 16px; top: 22px; } .s4-n { display: none; } }
/* v42: new hero photo framing + tighter section spacing */
.hero-media img { object-position: 50% 40%; }
.sec { padding: clamp(48px, 6vw, 88px) 0; }
.sec-head { margin-bottom: clamp(24px, 3vw, 40px); }
.std-sec { padding-bottom: clamp(48px, 6vw, 88px); }
.int-sec { padding-bottom: clamp(48px, 6vw, 80px); }
.ai-block { margin-top: clamp(28px, 3vw, 40px); }
.steps4-cta { margin-top: 24px; }
.sc-wrap { padding-bottom: 8px; }
/* v43: new hall photo, clearly visible */
.hero-media img { opacity: 1; filter: grayscale(.85) contrast(1.05) brightness(.9); }
.hero-media::after { background:
  linear-gradient(90deg, rgba(var(--bg-rgb), .9) 0%, rgba(var(--bg-rgb), .72) 40%, rgba(var(--bg-rgb), .5) 72%, rgba(var(--bg-rgb), .45) 100%),
  linear-gradient(180deg, rgba(var(--bg-rgb), .4) 0%, rgba(var(--bg-rgb), .1) 35%, rgba(var(--bg-rgb), .35) 75%, rgba(var(--bg-rgb), 1) 100%); }
html[dir="rtl"] .hero-media::after { background:
  linear-gradient(270deg, rgba(var(--bg-rgb), .9) 0%, rgba(var(--bg-rgb), .72) 40%, rgba(var(--bg-rgb), .5) 72%, rgba(var(--bg-rgb), .45) 100%),
  linear-gradient(180deg, rgba(var(--bg-rgb), .4) 0%, rgba(var(--bg-rgb), .1) 35%, rgba(var(--bg-rgb), .35) 75%, rgba(var(--bg-rgb), 1) 100%); }
.bp:not(.int-hub):not(.mini) .bp-n-in { background: rgba(var(--bg-rgb), .78) !important; }
.hero-media img { object-position: 50% 50%; }

/* v45: Based in Riyadh */
.ruh-sec { background: var(--tint); }
.ruh { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.ruh-chip { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 6px 12px; border-radius: 999px; background: rgba(var(--ink-rgb), .1); color: var(--accent-ink); font-size: 14px; font-weight: 600; }
.ruh-chip .ic { width: 16px; height: 16px; }
.ruh-copy .lead { margin-top: 14px; }
.ruh-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.ruh-list li { display: flex; gap: 10px; align-items: center; font-size: 16px; font-weight: 500; }
.ruh-list .ic { width: 20px; height: 20px; color: var(--accent-ink); flex: none; }
.ruh-pics { position: relative; height: 440px; }
.ruh-pics img { position: absolute; object-fit: cover; border-radius: 14px; box-shadow: 0 20px 50px rgba(11,18,32,.18); }
.rp-1 { inset-inline-end: 0; top: 0; width: 56%; height: 100%; }
.rp-2 { inset-inline-start: 0; bottom: 28px; width: 52%; height: 62%; border: 6px solid var(--tint); }
@media (max-width: 820px) { .ruh { grid-template-columns: 1fr; } .ruh-pics { height: 340px; } }
.hero-media img { object-position: 55% 45%; filter: grayscale(.7) contrast(1.05) brightness(.9); }

/* ---------- v47: de-template pass ---------- */
/* calmer motion: no fade-up on every section */
.reveal, .reveal.in { opacity: 1 !important; transform: none !important; transition: none !important; }
/* no glows */
.hero .btn-lg { box-shadow: none; border-radius: 6px; }
.btn { border-radius: 6px; }
.hub-shape { filter: none; }
.ai-block::before, .ai-sec::before, .panel-flow::before { display: none; }
.result, .scard:hover { box-shadow: none; }
/* tighter, consistent radii */
.scard, .steps4 li, .std li, .ai-block, .lrow, .form, .ai-spec, .ai-out, .ruh-pics img { border-radius: 8px; }
/* What we build cards: type only */
.scard { width: 280px; padding: 22px 22px 20px; gap: 8px; box-shadow: none; border-color: var(--line); }
.scard:hover { transform: none; border-color: rgba(var(--ink-rgb), .45); }
.scard h3 { font-size: 18px; }
.sc-meta { margin-top: 6px; font-size: 13px !important; font-weight: 600; color: var(--accent-ink) !important; }
/* How we work: numbered, left-aligned, no icon tiles */
.steps4::before { display: none; }
.steps4 li { justify-items: start; text-align: start; padding: 22px; gap: 6px; }
.s4-n { position: static; font-size: 13px; font-weight: 700; color: var(--accent-ink); margin-bottom: 6px; }
.steps4 h3 { margin-top: 0; font-size: 18px; }
.steps4 p { max-width: none; }
@media (max-width: 520px) { .steps4 li { padding-inline-start: 22px; } .s4-n { display: block; } }
/* Standards: plain typographic marks instead of fake badges */
.std-mark { box-shadow: none; border: 0; border-radius: 0; min-width: 0; height: auto; padding: 0; justify-self: start; font-size: 28px; letter-spacing: -.02em; color: var(--text); margin-bottom: 4px; }
.std li { padding: 24px; }
@media (max-width: 820px) { .std li { grid-template-columns: 1fr; } .std-mark { grid-row: auto; } }
/* Riyadh label: plain text, not a pill */
.ruh-chip { padding: 0; background: none; border-radius: 0; font-size: 13px; letter-spacing: .02em; color: var(--accent-ink); }
.ruh-pics img { box-shadow: none; }
.rp-2 { border-width: 4px; }
/* AI block labels plain */
.ai-ex, .ai-note { gap: 0; }
/* FAQ heading spacing */
#faq .lead { margin-top: 10px; }
.ruh-sec { background: var(--white); } .rp-2 { border-color: var(--white); }

/* v48: How we work as big image cards */
.steps4 { gap: 18px; }
.steps4 li { padding: 0 !important; overflow: hidden; display: flex; flex-direction: column; justify-items: unset; }
.s4-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.s4-body { padding: 20px 22px 24px; display: grid; gap: 6px; }
.steps4 li:last-child .s4-img { filter: brightness(.9); }
@media (max-width: 520px) { .steps4 li { padding: 0 !important; } .s4-img { aspect-ratio: 16 / 9; } }

/* v49: What we build = Automation + AI cards with project pills */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.big { border-radius: 10px; padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 14px; }
.big-auto { background: var(--white); border: 1px solid var(--line); }
.big-ai { background: var(--black); color: #fff; }
.big-h { display: flex; align-items: center; gap: 12px; }
.big-h .ic { width: 28px; height: 28px; color: var(--accent-ink); }
.big-ai .big-h .ic { color: var(--accent); }
.big h3 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; letter-spacing: -.02em; }
.big > p { color: var(--muted); font-size: 16px; max-width: 46ch; }
.big-ai > p { color: rgba(255,255,255,.65); }
.pills { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pl { font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: 999px; line-height: 1.2; }
.big-auto .pl-0 { background: var(--tint); color: var(--text); }
.big-auto .pl-1 { background: rgba(var(--ink-rgb), .1); color: var(--accent-ink); }
.big-auto .pl-2 { background: var(--accent-ink); color: #fff; font-weight: 600; }
.big-ai .pl-0 { background: rgba(255,255,255,.08); color: rgba(255,255,255,.85); }
.big-ai .pl-1 { background: rgba(var(--acc-rgb), .16); color: var(--accent); }
.big-ai .pl-2 { background: var(--accent); color: var(--black); font-weight: 600; }
.scale { margin-top: auto; padding-top: 18px; display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; color: var(--muted); }
.big-ai .scale { color: rgba(255,255,255,.5); }
.scale i { flex: 1; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--tint), var(--accent-ink)); }
.big-ai .scale i { background: linear-gradient(90deg, rgba(255,255,255,.12), var(--accent)); }
html[dir="rtl"] .scale i { background: linear-gradient(270deg, var(--tint), var(--accent-ink)); }
html[dir="rtl"] .big-ai .scale i { background: linear-gradient(270deg, rgba(255,255,255,.12), var(--accent)); }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; } }
html[dir="rtl"] .scale { flex-direction: row; }
html[dir="rtl"] .scale i { background: linear-gradient(270deg, var(--tint), var(--accent-ink)) !important; }
html[dir="rtl"] .big-ai .scale i { background: linear-gradient(270deg, rgba(255,255,255,.12), var(--accent)) !important; }
.big-auto .pl { background: var(--tint); color: var(--text); }
.big-ai .pl { background: rgba(255,255,255,.08); color: rgba(255,255,255,.88); }

/* v50: grouped pills */
.groups { display: grid; gap: 18px; margin-top: 10px; }
.grp { display: grid; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.big-ai .grp { border-top-color: rgba(255,255,255,.1); }
.grp-h { font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: var(--accent-ink); }
.big-ai .grp-h { color: var(--accent); }
.grp .pills { margin: 0; }

/* v51: steps with symbols instead of photos */
.s4-art { aspect-ratio: auto; height: 150px; display: grid; place-items: center; background: var(--tint); border-bottom: 1px solid var(--line); }
.s4-sym { width: 56px; height: 56px; fill: none; stroke: var(--accent-ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.s4-art svg[viewBox="0 0 64 64"] { width: 76px; height: 76px; stroke-width: 2; }
.steps4 li:last-child .s4-art { background: rgba(255,255,255,.04); border-bottom-color: rgba(255,255,255,.08); }
.steps4 li:last-child .s4-sym { stroke: var(--accent); }
.s4-note { justify-self: start; margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--accent-ink); background: rgba(var(--ink-rgb), .1); padding: 4px 10px; border-radius: 999px; }
@media (max-width: 520px) { .s4-art { height: 110px; } }
.s4-sym .kc { fill: rgba(var(--ink-rgb), .12); }
.s4-art svg[viewBox="0 0 64 64"] { width: 84px; height: 84px; }

/* v52: small, quiet photo strips */
.s4-art { display: none; }
.s4-pic { position: relative; margin: 12px 12px 0; height: 116px; border-radius: 6px; overflow: hidden; }
.s4-pic img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.55) saturate(.8) contrast(1.02); transition: filter .4s; }
.s4-pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--bg-rgb), .05), rgba(var(--bg-rgb), .35)); mix-blend-mode: multiply; }
.steps4 li:hover .s4-pic img { filter: grayscale(0) saturate(1); }
.steps4 li:last-child .s4-pic::after { background: linear-gradient(180deg, rgba(var(--bg-rgb), .2), rgba(var(--bg-rgb), .55)); }
.s4-body { padding: 18px 22px 22px; }
@media (max-width: 520px) { .s4-pic { height: 140px; } }

/* =========================================================
   v53: one system. Every section uses the same tokens.
   ========================================================= */
:root { --r: 10px; --r-sm: 6px; --gap: 20px; --card-b: 1px solid var(--line); --card-b-dark: 1px solid rgba(255,255,255,.1); }

/* rhythm: dark hero → white → tint → white → tint → white → tint → dark contact */
.sec { padding: clamp(64px, 8vw, 104px) 0; }
.std-sec, .int-sec { padding-bottom: clamp(64px, 8vw, 104px); }

/* one heading style everywhere, with the same teal hex-tick above it */
.sec-head, .ruh-copy, #faq .split > div:first-child, .cta .split > div:first-child { position: relative; }
.sec-head::before, .ruh-copy::before, #faq .split > div:first-child::before, .cta .split > div:first-child::before {
  content: ""; display: block; width: 28px; height: 3px; border-radius: 2px; background: var(--accent-ink); margin-bottom: 18px; }
.cta .split > div:first-child::before { background: var(--accent); }
.h-lg { font-size: clamp(32px, 3.8vw, 48px); line-height: 1.08; letter-spacing: -.03em; font-weight: 600; }
.sec-head { margin-bottom: clamp(28px, 3.5vw, 44px); gap: 12px; }
.lead { font-size: clamp(16px, 1.3vw, 18px); line-height: 1.6; max-width: 58ch; }
#faq .lead, .ruh-copy .lead, .cta .lead { margin-top: 12px; }

/* one card language */
.lrow, .big-auto, .steps4 li, .std li, .form, .ai-block, .big-ai, .ai-out, .ai-spec { border-radius: var(--r) !important; }
.big-auto, .steps4 li, .std li, .lrow { border: var(--card-b) !important; background: var(--white); box-shadow: none !important; }
.big-ai, .ai-block, .steps4 li:last-child, .form { border: var(--card-b-dark) !important; }
.steps4, .two, .std { gap: var(--gap); }
.std li { padding: 24px; }
.s4-pic { border-radius: var(--r-sm); }
.ruh-pics img { border-radius: var(--r); }

/* one primary button: teal, everywhere */
.btn-primary { background: var(--accent); color: var(--black); border: 1px solid var(--accent); font-weight: 700; border-radius: var(--r-sm); }
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.sec-dark .btn-primary:hover, .hero .btn-primary:hover, .nav .btn-primary:hover { background: #fff; border-color: #fff; color: var(--black); }
.hero .btn-lg { background: var(--accent); color: var(--black); }

/* one pill style */
.pl, .s4-note { border-radius: 999px; font-size: 13.5px; padding: 7px 13px; }
.s4-note { font-size: 12px; padding: 4px 10px; }

/* FAQ sits on tint now: rows on white */
#faq .faq { border-top-color: var(--line); }
#faq details { border-bottom-color: var(--line); }

/* contact headline same size as the rest */
.cta .h-lg { color: #fff; }

/* footer tidy */
.foot-legal { border-top: 1px solid rgba(255,255,255,.06); padding-top: 16px; }

/* v54: Who we are, logo over photos */
.ab-logo { position: absolute; inset-inline-start: 6%; top: 6%; z-index: 2; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: var(--r); background: var(--black); color: #fff; font-size: 20px; direction: ltr; }
.ab-logo .logo-mk { width: 30px; height: 30px; color: #fff; }
.ab-logo .logo-tx b { font-weight: 800; }

/* ---------- v55: How we work, richer cards ---------- */
.steps4 { counter-reset: none; gap: 16px; padding-top: 34px; position: relative; }
.steps4::before { display: block !important; content: ""; position: absolute; top: 10px; inset-inline: 0; height: 2px; background: linear-gradient(90deg, rgba(var(--ink-rgb), .2), var(--accent-ink)); border-radius: 2px; }
html[dir="rtl"] .steps4::before { background: linear-gradient(270deg, rgba(var(--ink-rgb), .2), var(--accent-ink)); }
.steps4 li { position: relative; min-height: 360px; border: 0 !important; background: var(--black) !important; color: #fff; overflow: visible !important; isolation: isolate; }
.steps4 li::before { content: ""; position: absolute; top: -29px; inset-inline-start: 22px; width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 2px solid var(--accent-ink); }
.steps4 li:last-child::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--acc-rgb), .2); }
.s4-pic { position: absolute !important; inset: 0; margin: 0 !important; height: auto !important; border-radius: var(--r) !important; z-index: -1; }
.s4-pic img { filter: grayscale(.35) saturate(.85) !important; transition: transform .6s var(--ease), filter .4s !important; }
.s4-pic::after { mix-blend-mode: normal !important; background: linear-gradient(180deg, rgba(var(--bg-rgb), .15) 0%, rgba(var(--bg-rgb), .55) 45%, rgba(var(--bg-rgb), .96) 100%) !important; }
.steps4 li:hover .s4-pic img { transform: scale(1.05); filter: grayscale(0) saturate(1) !important; }
.s4-body { position: relative; height: 100%; display: flex !important; flex-direction: column; justify-content: flex-end; padding: 22px !important; gap: 8px !important; }
.s4-n { position: absolute !important; top: 18px; inset-inline-start: 22px; font-size: 44px !important; font-weight: 700 !important; line-height: 1; letter-spacing: -.04em; color: transparent !important; -webkit-text-stroke: 1.2px rgba(255,255,255,.75); margin: 0 !important; }
.steps4 li:last-child .s4-n { -webkit-text-stroke-color: var(--accent); }
.steps4 h3 { color: #fff !important; font-size: 20px !important; }
.steps4 p { color: rgba(255,255,255,.72) !important; font-size: 14.5px; }
.steps4 li:last-child { box-shadow: inset 0 0 0 1.5px var(--accent) !important; }
.steps4 li:last-child h3 { color: var(--accent) !important; }
.s4-note { background: rgba(var(--acc-rgb), .18) !important; color: var(--accent) !important; margin-top: 4px; }
@media (max-width: 900px) { .steps4::before, .steps4 li::before { display: none !important; } .steps4 { padding-top: 0; } }
@media (max-width: 520px) { .steps4 li { min-height: 260px; } }
.s4-note { align-self: flex-start; } .s4-pic img { object-position: center 35%; }
/* v56: tighter section spacing */
.sec, .std-sec, .int-sec { padding: clamp(44px, 5vw, 64px) 0 !important; }
.sec-head { margin-bottom: clamp(20px, 2.5vw, 30px) !important; }
.sec-head::before, .ruh-copy::before, #faq .split > div:first-child::before, .cta .split > div:first-child::before { margin-bottom: 12px; }
.steps4-cta { margin-top: 20px !important; }
.hero-in { padding-top: clamp(56px, 9vh, 96px); padding-bottom: clamp(56px, 9vh, 96px); }

/* v58: standards cards with photos */
.std li { padding: 0 !important; overflow: hidden; display: flex !important; flex-direction: column; gap: 6px; }
.std-pic { height: 140px; overflow: hidden; margin-bottom: 14px; position: relative; }
.std-pic img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.4) saturate(.85); transition: transform .6s var(--ease), filter .4s; }
.std-pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(var(--bg-rgb), .35)); }
.std li:hover .std-pic img { transform: scale(1.05); filter: none; }
.std li > :not(.std-pic) { margin-inline: 24px; }
.std li > :last-child { margin-bottom: 24px; }
.std li .std-mark { align-self: flex-start; justify-self: start; text-align: start; }
.std-logo { height: 44px; width: auto; align-self: flex-start; margin-bottom: 6px; object-fit: contain; }
.std-logo[alt="SEC"] { height: 60px; margin-top: -8px; margin-bottom: 0; } .std-logo[alt="IEC"] { height: 46px; }

/* v59: standards = logos only */
.std li { padding: 28px 24px !important; align-items: flex-start; }
.std li > :not(.std-pic) { margin-inline: 0; }
.std li > :last-child { margin-bottom: 0; }
.std-logo { height: 56px !important; margin: 0 0 14px !important; }
.std-logo[alt="SEC"] { height: 68px !important; margin-top: -6px !important; }
.std { grid-template-columns: repeat(4, 1fr) !important; } .std-logo[alt="SASO"] { height: 48px !important; }
@media (max-width: 1024px) { .std { grid-template-columns: 1fr 1fr !important; } } @media (max-width: 560px) { .std { grid-template-columns: 1fr !important; } }

/* =========================================================
   v60: mobile polish
   ========================================================= */
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .wrap { padding-left: 18px; padding-right: 18px; }
  .sec, .std-sec, .int-sec { padding: 44px 0 !important; }
  .h-lg { font-size: 30px; }
  .lead { font-size: 15.5px; }

  /* hero: tighter, one-line rotating word */
  .hero-in { padding-top: 36px !important; padding-bottom: 36px !important; gap: 28px !important; }
  .hero h1.h1-rot { font-size: 44px; }
  .rotw { min-height: 1.08em !important; }
  .rotw > span { white-space: nowrap !important; }
  .h1-ai { font-size: .52em; margin-top: 10px; }
  .hero-sub { font-size: 15.5px; margin-top: 16px; }
  .hero-ctas { margin-top: 22px; }
  .hero-ctas .btn { width: 100%; }
  .hero-trust { margin-top: 18px; }

  /* hero diagram: compact, 3 → hex → 3 */
  .bp:not(.int-hub):not(.mini) { gap: 10px !important; }
  .bp:not(.int-hub):not(.mini) .bp-side ul { grid-template-columns: 1fr !important; gap: 6px !important; }
  .bp:not(.int-hub):not(.mini) .bp-n:nth-child(2), .bp:not(.int-hub):not(.mini) .bp-n:nth-child(4), .bp:not(.int-hub):not(.mini) .bp-n:nth-child(5) { display: none !important; }
  .bp:not(.int-hub):not(.mini) .bp-n { min-height: 38px !important; height: auto !important; font-size: 13.5px !important; padding: 8px 12px !important; }
  .bp:not(.int-hub):not(.mini) .bp-cap { margin-bottom: 6px; }
  .bp:not(.int-hub):not(.mini) .bp-hub.bp-hub-hex { width: 120px !important; height: 104px !important; margin: 4px auto !important; }
  .bp-hub-hex b { font-size: 13px !important; }

  /* systems row: 3 compact columns */
  .lrow { grid-template-columns: repeat(3, 1fr) !important; }
  .lrow li { min-height: 64px !important; padding: 10px 6px !important; border-inline-end: 1px solid var(--line) !important; border-bottom: 1px solid var(--line); font-size: 11.5px !important; }
  .lrow li:nth-child(3n) { border-inline-end: 0 !important; }
  .lrow li:nth-child(n+4) { border-bottom: 0; }
  .lrow .lg-sap { height: 24px !important; } .lrow .lg-sie { height: 13px !important; } .lrow .lg-ms b { font-size: 14px !important; } .lrow .lg-ms svg { width: 15px !important; height: 15px !important; } .lrow .lg-ora { font-size: 14px !important; }
  .lrow .ic { width: 16px; height: 16px; }

  /* what we build: tighter cards and pills */
  .big { padding: 22px 18px !important; gap: 10px !important; }
  .big h3 { font-size: 24px !important; }
  .big > p { font-size: 14.5px !important; }
  .groups { gap: 12px !important; }
  .grp { padding-top: 12px !important; gap: 6px !important; }
  .pills { gap: 6px !important; }
  .pl { font-size: 12.5px !important; padding: 6px 11px !important; }

  /* how we work: 2x2 grid of shorter cards */
  .steps4 { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .steps4 li { min-height: 210px !important; }
  .s4-body { padding: 14px !important; gap: 4px !important; }
  .s4-n { font-size: 30px !important; top: 12px !important; inset-inline-start: 14px !important; }
  .steps4 h3 { font-size: 15.5px !important; line-height: 1.25; }
  .steps4 p { font-size: 12.5px !important; line-height: 1.4; }
  .s4-note { font-size: 10.5px !important; padding: 3px 8px !important; }
  .steps4-cta { width: 100%; }

  /* standards: 2x2 logo tiles */
  .std { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .std li { padding: 16px 14px !important; }
  .std-logo { height: 34px !important; margin-bottom: 10px !important; }
  .std-logo[alt="SEC"] { height: 40px !important; margin-top: -3px !important; }
  .std li strong { font-size: 13px !important; line-height: 1.3; }
  .std li > span:last-child { display: none; }

  /* who we are: smaller photo stack */
  .ruh-pics { height: 260px !important; }
  .ab-logo { font-size: 15px; padding: 9px 13px; }
  .ab-logo .logo-mk { width: 22px; height: 22px; }
  .ruh-list li { font-size: 14.5px; }

  /* FAQ */
  .faq summary { font-size: 15.5px; padding: 16px 36px 16px 0; }
  html[dir="rtl"] .faq summary { padding: 16px 0 16px 36px; }

  /* contact */
  .form { padding: 18px !important; gap: 12px !important; }
  .form input, .form textarea { min-height: 44px; }

  /* footer */
  .foot-in { flex-direction: column; align-items: flex-start; gap: 8px !important; }
  .foot .logo { margin-inline-end: 0; }
  .foot-legal { font-size: 11px; }
}
