/* Codezair — one stylesheet for every language.
   Direction comes from html[dir]; never hard-code `direction` on containers.
   Layout uses logical properties (inline/block) so RTL mirrors itself.
   Motion: animate.css (vendor/) for entrances + a few keyframes here; all of it
   is switched off under prefers-reduced-motion. */

/* ---------- fonts (self-hosted, subset by unicode-range) ---------- */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/plex-sans-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/plex-sans-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/plex-sans-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/plex-arabic-400.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/plex-arabic-600.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/plex-arabic-700.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/plex-mono-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F; }

/* ---------- tokens ---------- */
:root {
  --bg: #f6f4ee;
  --surface: #ffffff;
  --surface-2: #efece3;
  --ink: #0f1c16;
  --ink-2: #34423b;
  --muted: #5f6c65;
  --line: #ddd8cb;
  --accent: #0b6b45;
  --accent-hover: #095a3a;
  --accent-ink: #ffffff;
  --accent-soft: #e0eee6;
  --sand: #c79a4b;
  --sand-soft: #f4ead6;
  --danger: #b3261e;
  /* brand surfaces: the same in light and dark */
  --deep-0: #031a11;
  --deep-1: #06281b;
  --deep-2: #0a3a27;
  --on-deep: #eaf5ef;
  --on-deep-2: rgba(234, 245, 239, .76);
  --mint: #3ccb8b;
  --mint-2: #8ff0c4;
  --gold: #f0cf8a;
  --zellige: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.075' stroke-width='1'%3E%3Crect x='19' y='19' width='26' height='26' rx='3'/%3E%3Crect x='19' y='19' width='26' height='26' rx='3' transform='rotate(45 32 32)'/%3E%3Cpath d='M0 32h6M58 32h6M32 0v6M32 58v6'/%3E%3C/g%3E%3C/svg%3E");
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(15, 28, 22, .05), 0 12px 32px -14px rgba(15, 28, 22, .2);
  --shadow-lg: 0 2px 4px rgba(15, 28, 22, .04), 0 28px 60px -24px rgba(6, 40, 27, .38);
  --font: "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --maxw: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 69px;
  --animate-duration: .8s;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1310;
    --surface: #121d18;
    --surface-2: #0f1915;
    --ink: #e8efea;
    --ink-2: #c4d0c9;
    --muted: #93a39a;
    --line: #26352e;
    --accent: #3ccb8b;
    --accent-hover: #5ad8a0;
    --accent-ink: #062014;
    --accent-soft: #15362a;
    --sand: #dcb46c;
    --sand-soft: #2b2416;
    --danger: #ff8a80;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px -16px rgba(0, 0, 0, .6);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 30px 64px -24px rgba(0, 0, 0, .75);
    color-scheme: dark;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="ar"] body { font-size: 18px; line-height: 1.85; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; text-wrap: balance; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { line-height: 1.45; }
html:not([lang="ar"]) h1, html:not([lang="ar"]) h2 { letter-spacing: -0.025em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--mint); color: var(--deep-0); }
:focus-visible { outline: 3px solid var(--sand); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); position: relative; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }

.icon { width: 22px; height: 22px; flex: none; }
.icon-sm { width: 18px; height: 18px; }
[dir="rtl"] .icon-arrow { transform: scaleX(-1); }

/* illustrative icons: generated from design/icons by tools/import_icons.py, coloured by class */
.art { flex: none; display: block; overflow: visible; }
.art .ic-ink-s { stroke: var(--ink); }
.art .ic-ink-f { fill: var(--ink); }
.art .ic-grn-s { stroke: var(--accent); }
.art .ic-grn-f { fill: var(--accent); }
.art .ic-tint-f { fill: var(--accent-soft); }
.art .ic-tint-s { stroke: var(--accent-soft); }
.art .ic-acc-f { fill: var(--sand); }
.art .ic-acc-s { stroke: var(--sand); }

/* reveal-on-scroll: hidden only when JS runs (site.js adds .is-in + animate.css classes) */
.js [data-animate]:not(.is-in) { opacity: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 16px; line-height: 1;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn:hover .icon-arrow { translate: 3px 0; }
[dir="rtl"] .btn:hover .icon-arrow { translate: -3px 0; }
.icon-arrow { transition: translate .2s; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-glass { background: rgba(255, 255, 255, .07); color: var(--on-deep); border-color: rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 17px; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(14px); backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  transition: background-color .3s, border-color .3s;
}
.header-row { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; text-decoration: none; color: var(--ink); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 21px; letter-spacing: -0.02em; font-family: "IBM Plex Sans", var(--font); line-height: 1; }
.wordmark .mark { width: 34px; height: 34px; filter: drop-shadow(0 4px 10px rgba(11, 107, 69, .25)); }
.wm-text { color: var(--ink); transition: color .3s; }
.wm-zair { color: var(--accent); transition: color .3s; }
.nav-panel { display: flex; align-items: center; gap: 18px; margin-inline-start: auto; }
.nav { display: flex; gap: 2px; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15.5px; padding: 8px 11px; border-radius: 10px; transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.langs { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; transition: border-color .3s; }
.langs a { font-size: 13.5px; font-weight: 600; text-decoration: none; color: var(--muted); padding: 5px 10px; border-radius: 999px; line-height: 1.2; transition: color .2s, background-color .2s; }
.langs a:hover { color: var(--ink); }
.langs a[aria-current="true"] { background: var(--ink); color: var(--bg); }
.menu-btn { display: none; margin-inline-start: auto; background: none; border: 1px solid var(--line); color: var(--ink); width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; cursor: pointer; }
.menu-close { display: none; }

/* home page: header floats transparent over the deep hero until the page scrolls */
.js .page-home .site-header:not(.scrolled):not(.open) { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.js .page-home .site-header:not(.scrolled):not(.open) .wm-text { color: #fff; }
.js .page-home .site-header:not(.scrolled):not(.open) .wm-zair { color: var(--mint); }
.js .page-home .site-header:not(.scrolled):not(.open) .nav a { color: var(--on-deep-2); }
.js .page-home .site-header:not(.scrolled):not(.open) .nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.js .page-home .site-header:not(.scrolled):not(.open) .langs { border-color: rgba(255, 255, 255, .2); }
.js .page-home .site-header:not(.scrolled):not(.open) .langs a { color: var(--on-deep-2); }
.js .page-home .site-header:not(.scrolled):not(.open) .langs a[aria-current="true"] { background: #fff; color: var(--deep-1); }
.js .page-home .site-header:not(.scrolled):not(.open) .btn-primary { background: var(--mint); color: var(--deep-0); }
.js .page-home .site-header:not(.scrolled):not(.open) .menu-btn { color: #fff; border-color: rgba(255, 255, 255, .25); }

@media (max-width: 980px) {
  .js .menu-btn { display: inline-flex; }
  .js .nav-panel {
    display: none; position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 14px;
    padding: 16px var(--gutter) 22px; background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
  }
  .js .site-header.open .nav-panel { display: flex; animation: fadeInDown .25s both; }
  .js .site-header.open .menu-open { display: none; }
  .js .site-header.open .menu-close { display: inline; }
  .nav { flex-direction: column; }
  .nav a { font-size: 17px; padding: 10px 6px; }
  .langs { align-self: flex-start; }
  .no-js .header-row { flex-wrap: wrap; padding-block: 10px; }
  .no-js .nav-panel { flex-wrap: wrap; margin-inline-start: 0; }
  .no-js .nav { flex-direction: row; flex-wrap: wrap; }
}

/* ---------- deep brand surfaces (hero, contact, featured cards, footer) ---------- */
.hero, .contact { position: relative; overflow: hidden; isolation: isolate; color: var(--on-deep);
  background:
    radial-gradient(1100px 560px at 85% -10%, #0f5a3b 0%, transparent 60%),
    linear-gradient(160deg, var(--deep-0) 0%, var(--deep-1) 45%, var(--deep-2) 100%); }
.hero-bg, .contact-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; animation: drift 18s ease-in-out infinite alternate; will-change: transform; }
.orb-1 { width: 540px; height: 540px; background: #1fae6e; top: -180px; inset-inline-end: -140px; }
.orb-2 { width: 440px; height: 440px; background: var(--sand); bottom: -220px; inset-inline-start: -160px; opacity: .32; animation-duration: 23s; }
.orb-3 { width: 320px; height: 320px; background: var(--mint); top: 42%; inset-inline-start: 40%; opacity: .14; animation-duration: 27s; }
@keyframes drift { to { transform: translate3d(48px, 36px, 0) scale(1.1); } }
.hero-pattern { position: absolute; inset: 0; background-image: var(--zellige); background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 72% 35%, #000 0%, transparent 72%); mask-image: radial-gradient(ellipse 70% 80% at 72% 35%, #000 0%, transparent 72%); }
[dir="rtl"] .hero-pattern { -webkit-mask-image: radial-gradient(ellipse 70% 80% at 28% 35%, #000 0%, transparent 72%); mask-image: radial-gradient(ellipse 70% 80% at 28% 35%, #000 0%, transparent 72%); }

/* ---------- hero ---------- */
.hero { margin-top: calc(-1 * var(--header-h)); padding: calc(var(--header-h) + clamp(56px, 8vw, 112px)) 0 clamp(130px, 13vw, 180px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14.5px; color: var(--on-deep); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); padding: 7px 15px; border-radius: 999px; margin-bottom: 26px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(60, 203, 139, .22); animation: beacon 2.4s ease-in-out infinite; }
@keyframes beacon { 50% { box-shadow: 0 0 0 7px rgba(60, 203, 139, .06); } }
.hero h1 { color: #fff; font-size: clamp(38px, 5.2vw, 64px); margin-bottom: 22px; }
html[lang="ar"] .hero h1 { font-size: clamp(36px, 4.8vw, 58px); }
.grad { background: linear-gradient(90deg, var(--gold) 0%, var(--mint-2) 55%, var(--mint) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
[dir="rtl"] .grad { background-image: linear-gradient(270deg, var(--gold) 0%, var(--mint-2) 55%, var(--mint) 100%); }
.lead { font-size: clamp(17.5px, 1.55vw, 20px); color: var(--on-deep-2); max-width: 38em; margin-bottom: 34px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-primary { background: var(--mint); color: var(--deep-0); box-shadow: 0 14px 34px -12px rgba(60, 203, 139, .6); }
.hero .btn-primary:hover { background: #5fe0a6; color: var(--deep-0); }

/* floating demo cards: .float bobs, the card tilts (rotate property, so animate.css
   transforms don't fight it), animate.css handles the entrance */
.demo { display: grid; gap: 16px; position: relative; }
.float { animation: bob 7s ease-in-out infinite; will-change: transform; }
.float-2 { animation-delay: -2.3s; animation-duration: 8s; }
.float-3 { animation-delay: -4.6s; animation-duration: 9s; }
@keyframes bob { 50% { transform: translateY(-9px); } }
.demo-card { background: var(--surface); color: var(--ink); border: 1px solid rgba(255, 255, 255, .5); border-radius: 18px; padding: 16px 18px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 34px 70px -28px rgba(0, 0, 0, .6); }
@media (prefers-color-scheme: dark) { .demo-card { border-color: rgba(255, 255, 255, .1); } }
.demo-card p { margin: 0; }
.demo-chat { margin-inline-end: 34px; rotate: -1.6deg; }
.demo-quiz { margin-inline-start: 46px; rotate: 1.4deg; }
.demo-agent { margin-inline-end: 14px; rotate: -.7deg; }
[dir="rtl"] .demo-chat { rotate: 1.6deg; } [dir="rtl"] .demo-quiz { rotate: -1.4deg; } [dir="rtl"] .demo-agent { rotate: .7deg; }
.demo-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 12px !important; }
.bubble { padding: 10px 14px; border-radius: 14px; font-size: 15px; max-width: 92%; }
.bubble-q { background: var(--surface-2); margin-inline-start: auto !important; border-end-end-radius: 4px; width: fit-content; }
.bubble-a { background: var(--accent-soft); margin-top: 8px !important; border-end-start-radius: 4px; width: fit-content; }
.src { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.quiz-q { font-weight: 600; margin-bottom: 10px !important; }
.quiz-opts { display: flex; gap: 10px; }
.opt { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 600; font-family: var(--mono); }
.opt-right { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.agent-steps { display: grid; gap: 7px; font-size: 14.5px; }
.agent-steps li { display: flex; align-items: center; gap: 8px; }
.agent-steps .icon { color: var(--accent); }
.agent-review { color: var(--ink-2); font-weight: 600; background: var(--sand-soft); border-radius: 10px; padding: 7px 10px; margin-top: 2px; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--sand); flex: none; animation: pulse 1.8s ease-in-out infinite; margin-inline: 4px 2px; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--sand) 25%, transparent); } }

/* ---------- stats: a card that overlaps the hero ---------- */
.stats { position: relative; z-index: 3; margin-top: clamp(-112px, -9vw, -72px); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); }
.stats-grid li { padding: 26px 24px; display: grid; gap: 6px; align-content: start; border-inline-start: 1px solid var(--line); }
.stats-grid li:first-child { border-inline-start: 0; }
.stat-num { font-size: clamp(32px, 3.4vw, 46px); font-weight: 700; line-height: 1.05; font-family: "IBM Plex Sans", var(--font); letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent) 0%, #1fae6e 55%, var(--sand) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-num bdi { display: block; text-align: start; font-variant-numeric: tabular-nums; }
.stats-grid span { color: var(--ink-2); font-size: 15px; line-height: 1.5; }

/* ---------- toolbox marquee ---------- */
.stack { padding: 40px 0 6px; }
.stack-label { text-align: center; font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
html[lang="ar"] .stack-label { font-family: var(--font); font-size: 15px; letter-spacing: 0; text-transform: none; font-weight: 600; }
.marquee { direction: ltr; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; gap: 12px; padding-inline-end: 12px; }
.marquee li { font-family: var(--mono); font-weight: 500; font-size: 14.5px; color: var(--ink-2); padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); white-space: nowrap; }
.marquee li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 2px; background: var(--sand); margin-inline-end: 10px; vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.section-alt { background: var(--surface-2); }
.section-head { max-width: 48em; margin-bottom: clamp(32px, 4.5vw, 52px); }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); background: var(--accent-soft); padding: 6px 13px; border-radius: 999px; margin-bottom: 16px; }
.kicker::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--sand); }
html[lang="ar"] .kicker { font-family: var(--font); font-weight: 600; letter-spacing: 0; text-transform: none; font-size: 14.5px; }
.section h2 { font-size: clamp(30px, 4vw, 48px); }
.section-lead { font-size: 18.5px; color: var(--ink-2); margin: 0; }

.cards { display: grid; gap: 20px; }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }

/* gradient ring + lift on hover */
.glow { position: relative; isolation: isolate; transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s, border-color .3s; }
.glow::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: linear-gradient(135deg, var(--accent), var(--sand) 55%, transparent 85%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .3s; }
.glow:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.glow:hover::before { opacity: 1; }

.service { display: flex; flex-direction: column; }
.service-icon, .why-icon, .note-icon { display: inline-flex; align-items: center; justify-content: center; width: 66px; height: 66px; border-radius: 18px; margin-bottom: 20px;
  background: linear-gradient(135deg, var(--accent-soft), var(--sand-soft)); border: 1px solid color-mix(in srgb, var(--accent) 16%, transparent);
  transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.glow:hover .service-icon, .why:hover .why-icon { transform: rotate(-6deg) scale(1.06); }
[dir="rtl"] .glow:hover .service-icon, [dir="rtl"] .why:hover .why-icon { transform: rotate(6deg) scale(1.06); }
.service h3, .tier h3, .work h3, .why h3, .step h3 { font-size: 20.5px; }
.service p, .work p, .why p, .step p, .tier p { color: var(--ink-2); }
.ticks { display: grid; gap: 9px; margin-top: auto; }
.ticks li { display: flex; gap: 9px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.ticks .icon { color: var(--accent); margin-top: .22em; }
html[lang="ar"] .ticks .icon { margin-top: .35em; }
.services-extra { display: flex; align-items: center; gap: 12px; margin: 30px 0 0; color: var(--ink-2); font-weight: 500; }

/* tiers */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.tier { display: flex; flex-direction: column; position: relative; }
.tier-num { font-family: var(--mono); font-size: 13px; color: var(--sand); font-weight: 500; margin-bottom: 14px; }
.tier h3 { font-size: 26px; }
.tier-featured, .work-featured { color: var(--on-deep); border-color: transparent; overflow: hidden; isolation: isolate;
  background: var(--zellige) 0 0 / 64px 64px, radial-gradient(500px 260px at 100% 0%, rgba(31, 174, 110, .35), transparent 70%), linear-gradient(160deg, var(--deep-1), var(--deep-2));
  box-shadow: var(--shadow-lg); }
.tier-featured h3, .work-featured h3 { color: #fff; }
.tier-featured p, .work-featured p { color: var(--on-deep-2); }
.tier-featured .ticks li, .work-featured .ticks li { color: var(--on-deep); }
.tier-featured .ticks .icon, .work-featured .ticks .icon { color: var(--mint); }
.tier-featured .tier-num { color: var(--gold); }
.tier-featured { transform: translateY(-10px); }
.tiers-note { margin: 30px 0 0; color: var(--ink-2); }
.tiers-note a { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }

/* work */
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.work { display: flex; flex-direction: column; gap: 6px; }
.work .ticks { margin-top: 12px; }
.work-tag { font-size: 13px; font-weight: 600; color: var(--accent); background: var(--accent-soft); display: inline-block; padding: 5px 11px; border-radius: 999px; margin-bottom: 16px; }
.work-featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: clamp(28px, 4vw, 44px); }
.work-featured h3 { font-size: clamp(24px, 2.6vw, 32px); }
.work-featured .work-tag { background: rgba(255, 255, 255, .1); color: var(--mint-2); border: 1px solid rgba(255, 255, 255, .14); }
.work-featured .ticks { margin-top: 0; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; padding: 22px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* process: numbered nodes on a line that draws itself when the list scrolls in */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; position: relative; }
.steps::before { content: ""; position: absolute; top: 23px; inset-inline: 23px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--sand)); transform: scaleX(0); transform-origin: left center; transition: transform 1.6s cubic-bezier(.2, .7, .2, 1); }
[dir="rtl"] .steps::before { background: linear-gradient(270deg, var(--accent), var(--sand)); transform-origin: right center; }
.steps.in::before, .no-js .steps::before { transform: scaleX(1); }
.step { position: relative; }
.step-num { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; margin-bottom: 18px; position: relative; z-index: 1;
  font-family: var(--mono); font-weight: 500; font-size: 15px; color: var(--accent); background: var(--surface); border: 2px solid var(--accent); box-shadow: 0 0 0 7px var(--surface-2); }
.note { display: flex; gap: 20px; align-items: center; margin-top: 48px; padding: 26px 28px; border-radius: var(--radius); position: relative; isolation: isolate;
  background: linear-gradient(120deg, var(--surface) 30%, var(--sand-soft)); border: 1px solid var(--line); }
.note-icon { margin-bottom: 0; flex: none; }
.note h3 { font-size: 20px; margin-bottom: 6px; }
.note p { margin: 0; color: var(--ink-2); }

/* why */
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.why h3 { margin-top: 2px; }

/* faq */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; transition: border-color .2s, box-shadow .2s; }
.faq details:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; padding: 19px 0; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); font-family: var(--mono); font-size: 18px; line-height: 1; color: var(--accent); flex: none; transition: transform .25s, background-color .25s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--sand-soft); color: var(--sand); }
.faq details p { color: var(--ink-2); padding-bottom: 20px; margin: 0; }

/* contact: deep brand section with the form card */
.contact .section-head h2 { color: #fff; }
.contact .section-lead { color: var(--on-deep-2); }
.contact .kicker { background: rgba(255, 255, 255, .08); color: var(--mint-2); }
.contact .orb-1 { top: auto; bottom: -260px; inset-inline-end: auto; inset-inline-start: -120px; opacity: .35; }
.contact .hero-pattern { -webkit-mask-image: radial-gradient(ellipse 60% 70% at 20% 70%, #000 0%, transparent 72%); mask-image: radial-gradient(ellipse 60% 70% at 20% 70%, #000 0%, transparent 72%); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact-head { margin-bottom: 0; position: sticky; top: 110px; }
.contact-direct { margin-top: 20px; font-weight: 600; overflow-wrap: anywhere; }
.contact-direct a { color: var(--mint-2); }
.contact-form { display: grid; gap: 16px; padding: clamp(22px, 3vw, 36px); color: var(--ink); border-color: transparent; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-weight: 600; font-size: 14.5px; color: var(--ink-2); }
input, select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 11px 13px; min-height: 50px; transition: border-color .15s, box-shadow .15s, background-color .15s;
}
textarea { resize: vertical; min-height: 130px; line-height: 1.55; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); background: var(--surface); }
[dir="rtl"] input[dir="ltr"] { text-align: right; }
[dir="rtl"] input[dir="ltr"]::placeholder { text-align: right; }
select { appearance: none; -webkit-appearance: none; padding-inline-end: 38px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-size: 6px 6px; background-repeat: no-repeat;
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; }
[dir="rtl"] select { background-position: 14px 55%, 20px 55%; }
.hint { margin: -6px 0 0; font-size: 14px; color: var(--muted); }
.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.form-privacy { margin: 0; font-size: 14px; color: var(--muted); }
.form-status { margin: 0; font-weight: 600; min-height: 1.2em; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: var(--danger); }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }

/* ---------- footer ---------- */
.site-footer { background: var(--deep-0); color: var(--on-deep-2); border-top: 1px solid rgba(255, 255, 255, .06); padding-block: 44px 52px; font-size: 15px; }
.site-footer .wm-text { color: #fff; }
.site-footer .wm-zair { color: var(--mint); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 24px; }
.footer-tag { margin: 14px 0 0; font-weight: 600; color: var(--on-deep); }
.footer-links { display: grid; gap: 8px; text-align: end; }
.footer-links p { margin: 0; }
.footer-links a { color: var(--on-deep); text-decoration-color: rgba(255, 255, 255, .3); }
.footer-links a:hover { color: var(--mint-2); }

/* ---------- inner pages ---------- */
.page { min-height: 60vh; }
.prose h1 { font-size: clamp(30px, 4vw, 44px); }
.prose h2 { font-size: 21px; margin-top: 1.8em; }
.prose p { color: var(--ink-2); }
.status-page { text-align: center; display: grid; justify-items: center; gap: 10px; padding-block: 40px; }
.status-page h1 { font-size: clamp(22px, 3vw, 30px); max-width: 26em; }
.status-icon { display: inline-flex; width: 64px; height: 64px; border-radius: 50%; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); }
.status-icon .icon { width: 30px; height: 30px; }
.status-bad { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.notfound { display: grid; gap: 22px; padding-block: 40px; }
.nf-code { font-family: var(--mono); font-size: 64px; font-weight: 500; color: var(--accent); margin: 10px 0 0; line-height: 1; }
.nf-block { border-top: 1px solid var(--line); padding-top: 18px; }
.nf-block h1 { font-size: 24px; }
.nf-block p { margin: 0 0 6px; color: var(--ink-2); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; }
  .steps::before { display: none; }
}
@media (max-width: 880px) {
  .hero-grid, .contact-grid, .work-featured { grid-template-columns: 1fr; }
  .contact-head { position: static; }
  .demo { max-width: 470px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid li:nth-child(3) { border-inline-start: 0; }
  .stats-grid li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .tiers, .work-grid { grid-template-columns: 1fr; }
  .tier-featured { transform: none; }
  .footer-links { text-align: start; }
}
@media (max-width: 600px) {
  body { font-size: 16.5px; }
  html[lang="ar"] body { font-size: 17.5px; }
  .cards-3, .why-grid, .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .demo-chat, .demo-quiz, .demo-agent { margin-inline: 0; }
  .card { padding: 22px; }
  .stats-grid li { padding: 18px 16px; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .note { flex-direction: column; align-items: flex-start; }
}

/* ---------- reduced motion: no drifting, bobbing, scrolling or reveals ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orb, .float, .marquee-track, .pulse, .eyebrow .dot { animation: none !important; }
  .js [data-animate]:not(.is-in) { opacity: 1; }
  .steps::before { transform: scaleX(1); transition: none; }
  .glow, .glow::before, .service-icon, .why-icon, .btn { transition: none; }
  .glow:hover, .glow:hover .service-icon { transform: none; }
}
