/* Sinapsis landing — a spatial, Vision Pro-style page. Standalone: nothing here is shared with the app. */

/* Fonts are served with the page (Fontsource files, OFL-1.1), the same families as the app. */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-display: swap; font-weight: 200 800; src: url("/landing/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-display: swap; font-weight: 300 700; src: url("/landing/fonts/space-grotesk-latin-wght-normal.woff2") format("woff2-variations"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-display: swap; font-weight: 400; src: url("/landing/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-display: swap; font-weight: 500; src: url("/landing/fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-display: swap; font-weight: 600; src: url("/landing/fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-display: swap; font-weight: 700; src: url("/landing/fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }

:root {
  --bg: #05060a;
  --bg-2: #0b0d16;
  --text: #f5f6fa;
  --text-2: rgba(245, 246, 250, 0.72);
  --text-3: rgba(245, 246, 250, 0.5);
  --brand: #3654ff;
  --brand-soft: #8a9bff;
  --violet: #8b5cf6;
  --teal: #2dd4bf;
  --ok: #4ade80;
  --warn: #fbbf24;
  --danger: #f87171;

  --glass-fill: linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05) 60%);
  --glass-edge: rgba(255, 255, 255, 0.14);
  --glass-hi: rgba(255, 255, 255, 0.32);
  --glass-shadow: 0 40px 100px rgba(0, 0, 0, 0.55), 0 10px 30px rgba(0, 0, 0, 0.35);

  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-brand: "Space Grotesk", var(--font);
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--brand-soft); outline-offset: 3px; border-radius: 8px; }

.muted { color: var(--text-3); }
.mono { font-family: var(--font-mono); font-size: 0.92em; }

/* ---------- Environment ---------- */
.env { position: fixed; inset: 0; z-index: -1; overflow: hidden; background:
  radial-gradient(120% 80% at 50% 110%, #101a3d 0%, transparent 60%),
  radial-gradient(80% 60% at 50% -10%, #11132a 0%, transparent 70%),
  var(--bg); }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; will-change: transform; }
.orb--a { inline-size: 46vmax; block-size: 46vmax; background: var(--brand); inset-block-start: -12vmax; inset-inline-start: -10vmax; animation: drift 26s ease-in-out infinite alternate; }
.orb--b { inline-size: 40vmax; block-size: 40vmax; background: var(--violet); inset-block-start: 20vh; inset-inline-end: -14vmax; opacity: 0.4; animation: drift 32s ease-in-out -8s infinite alternate-reverse; }
.orb--c { inline-size: 34vmax; block-size: 34vmax; background: var(--teal); inset-block-end: -16vmax; inset-inline-start: 25vw; opacity: 0.22; animation: drift 38s ease-in-out -4s infinite alternate; }
.grain { position: absolute; inset: 0; opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(6vw, 8vh, 0) scale(1.15); }
}

/* ---------- Arabic ---------- */
:root[lang|="ar"] { --font: "IBM Plex Sans Arabic", "Plus Jakarta Sans", system-ui, sans-serif; }
[lang|="ar"] body * { letter-spacing: 0 !important; }
[lang|="ar"] .hero__title { line-height: 1.3; font-weight: 700; }
[lang|="ar"] .h2 { line-height: 1.35; }
[lang|="ar"] .lit { line-height: 1.6; }
[lang|="ar"] .step h3, [lang|="ar"] .tile h3, [lang|="ar"] .layer h3, [lang|="ar"] .app h3 { line-height: 1.45; }
[lang|="ar"] .eyebrow { font-size: 16px; }
[lang|="ar"] body { line-height: 1.8; }

/* ---------- Hindi (Devanagari from the system: Nirmala UI, Noto Sans Devanagari, Kohinoor) ---------- */
:root[lang="hi"] { --font: "Plus Jakarta Sans", "Nirmala UI", "Noto Sans Devanagari", "Kohinoor Devanagari", "Mangal", system-ui, sans-serif; }
[lang="hi"] body * { letter-spacing: 0 !important; }
[lang="hi"] .hero__title { line-height: 1.25; font-size: clamp(36px, 7vw, 100px); }
[lang="hi"] .h2 { line-height: 1.3; }
[lang="hi"] .lit { line-height: 1.45; }
[lang="hi"] body { line-height: 1.75; }

/* ---------- Glass ---------- */
.glass {
  position: relative;
  background: var(--glass-fill);
  -webkit-backdrop-filter: blur(40px) saturate(170%);
  backdrop-filter: blur(40px) saturate(170%);
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-hi), inset 0 0 0 1px var(--glass-edge);
}
/* specular rim, brighter on the top edge like light hitting the pane */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.04) 40%, rgba(255, 255, 255, 0.12));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ---------- Nav ---------- */
.nav { position: fixed; inset-block-start: 14px; inset-inline: 0; z-index: 50; display: flex; justify-content: center; padding-inline: var(--gutter); }
.nav__pill { display: flex; align-items: center; gap: 28px; padding-block: 8px; padding-inline: 18px 8px; border-radius: 999px; inline-size: min(100%, 900px); }
.nav__pill { background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04) 60%), rgba(8, 10, 20, 0.55); }
.nav__links { display: flex; gap: 22px; white-space: nowrap; margin-inline-start: auto; font-size: 15px; color: var(--text-2); }
.nav__links a { transition: color 0.2s; }
.lang-switch {
  flex: none; min-block-size: 44px; min-inline-size: 56px; padding-inline: 14px; border: 0; border-radius: 999px; cursor: pointer;
  font: 600 15px/1 var(--font); color: var(--text); background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  transition: background 0.2s, box-shadow 0.2s;
}
.lang-switch:hover { background: rgba(255, 255, 255, 0.16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); }
.lang-switch:lang(ar) { font-family: "IBM Plex Sans Arabic", var(--font); }
.nav__links a:hover { color: var(--text); }

.brand { display: inline-flex; align-items: center; gap: 10px; min-block-size: 44px; }
.brand__mark { inline-size: 26px; block-size: 26px; color: var(--brand-soft); }
.brand__mark circle:last-child { fill: var(--brand); }
.brand__word { font-family: var(--font-brand); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; }
.brand--small .brand__mark { inline-size: 20px; block-size: 20px; }
.brand--small .brand__word { font-size: 16px; }

/* ---------- Buttons (human actions: white "ink", never brand blue) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  min-block-size: 48px; padding-inline: 26px; border-radius: 999px;
  background: var(--text); color: #05060a; font-weight: 600; font-size: 16px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s;
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.12);
}
.btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 16px 40px rgba(255, 255, 255, 0.2); }
.btn--small { min-block-size: 44px; padding-inline: 20px; font-size: 15px; }
.btn--ghost { background: rgba(255, 255, 255, 0.08); color: var(--text); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); }

/* ---------- Type ---------- */
.eyebrow { font-size: 15px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-soft); margin-block-end: 18px; }
.h2 { font-size: clamp(40px, 6.4vw, 84px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 700; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--text-2); max-inline-size: 36ch; margin-block-start: 24px; }
.shine {
  background: linear-gradient(100deg, #ffffff 10%, var(--brand-soft) 40%, #c4b5fd 60%, #ffffff 90%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 8s linear infinite;
}
@keyframes shine { to { background-position: -200% 0; } }

.section-head { text-align: center; padding-inline: var(--gutter); margin-block-end: clamp(48px, 8vw, 96px); }
.section-head__lede { margin-inline: auto; max-inline-size: 44ch; }

/* ---------- Hero ---------- */
.hero { position: relative; min-block-size: 100vh; padding-block: 140px 40px; display: flex; flex-direction: column; align-items: center; }
.hero__copy { text-align: center; padding-inline: var(--gutter); position: relative; z-index: 2; }
.hero__title { font-size: clamp(48px, 8.4vw, 116px); line-height: 0.98; letter-spacing: -0.035em; font-weight: 800; display: flex; flex-direction: column; }
.hero__lede { font-size: clamp(18px, 1.7vw, 22px); color: var(--text-2); max-inline-size: 40ch; margin-inline: auto; margin-block-start: 28px; }
.hero__ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-block-start: 36px; }

.stage { inline-size: 100%; max-inline-size: 1280px; margin-block-start: clamp(40px, 8vh, 90px); perspective: 1600px; padding-inline: var(--gutter); }
.scene {
  position: relative; block-size: clamp(400px, 38vw, 480px);
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 22deg)) rotateY(var(--ry, 0deg)) scale(var(--s, 0.86)) translateY(var(--ty, 0px));
  transition: transform 0.25s linear;
  will-change: transform;
}

.win { position: absolute; padding: 0 0 22px; overflow: hidden; color: var(--text); }
.win--main { inset-inline-start: 50%; inset-block-start: 0; inline-size: min(520px, 43%); transform: translateX(-50%) translateZ(80px); }
[dir="rtl"] .win--main { transform: translateX(50%) translateZ(80px); }
.win--left { inset-inline-start: 0; inset-block-start: 16%; inline-size: min(340px, 27%); transform: translateZ(-60px) rotateY(16deg); }
.win--right { inset-inline-end: 0; inset-block-start: 10%; inline-size: min(350px, 27%); transform: translateZ(-60px) rotateY(-16deg); }
[dir="rtl"] .win--left { transform: translateZ(-60px) rotateY(-16deg); }
[dir="rtl"] .win--right { transform: translateZ(-60px) rotateY(16deg); }
.float { animation: bob 9s ease-in-out infinite; }
.float--2 { animation-delay: -2s; }
.float--3 { animation-delay: -4s; }
@keyframes bob { 50% { translate: 0 -12px; } }

.win__bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-block-end: 1px solid rgba(255, 255, 255, 0.08); }
.dot { inline-size: 10px; block-size: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); }
.win__title { margin-inline-start: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* deal window */
.deal { padding: 22px 22px 0; display: grid; gap: 18px; }
.deal__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.deal__head .muted { font-size: 13px; }
.deal__amount { font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pipeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.pipeline i { block-size: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); }
.pipeline i.on { background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6)); }

.status { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; font-size: 13px; font-weight: 600; inline-size: fit-content; }
.status svg { inline-size: 14px; block-size: 14px; }
.status--ok { color: var(--ok); background: rgba(74, 222, 128, 0.12); box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.25); }

/* agent activity: brand blue only */
.action { border-radius: var(--radius-md); padding: 16px; background: rgba(54, 84, 255, 0.12); box-shadow: inset 3px 0 0 var(--brand), inset 0 0 0 1px rgba(138, 155, 255, 0.2); display: grid; gap: 8px; }
[dir="rtl"] .action { box-shadow: inset -3px 0 0 var(--brand), inset 0 0 0 1px rgba(138, 155, 255, 0.2); }
.action__who { font-size: 13px; font-weight: 600; color: var(--brand-soft); display: flex; align-items: center; gap: 6px; }
.action__what { font-size: 15px; font-weight: 500; }
.action__why { font-size: 13px; }
.action__btns { display: flex; gap: 8px; margin-block-start: 4px; }
.mini { font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 99px; background: var(--text); color: #05060a; }
.mini--ghost { background: rgba(255, 255, 255, 0.1); color: var(--text); }
.agent-badge { display: inline-grid; place-items: center; inline-size: 22px; block-size: 22px; border-radius: 7px; background: var(--brand); color: #fff; font-size: 12px; box-shadow: 0 0 18px rgba(54, 84, 255, 0.7); }
.agent-line { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--brand-soft); padding: 12px 14px; border-radius: 14px; background: rgba(54, 84, 255, 0.1); }

/* chat */
.chat, .phone { padding: 18px; display: grid; gap: 10px; }
.bubble { position: relative; max-inline-size: 88%; padding: 10px 14px 20px; border-radius: 18px; font-size: 14px; line-height: 1.4; }
.bubble b { display: block; margin-block-end: 2px; }
.bubble--in { background: rgba(255, 255, 255, 0.12); border-end-start-radius: 6px; }
.bubble--out { justify-self: end; background: rgba(37, 211, 102, 0.28); border-end-end-radius: 6px; padding-inline-end: 64px; }
.bubble__time { position: absolute; inset-block-end: 5px; inset-inline-end: 12px; font-size: 11px; color: var(--text-3); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); }

/* log */
.log { padding: 10px 14px 0; display: grid; }
.log li { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; padding: 10px 4px; font-size: 13px; border-block-end: 1px solid rgba(255, 255, 255, 0.06); }
.log li:last-child { border: 0; }
.log b { font-weight: 600; margin-inline-end: 4px; }
.log__tag { grid-column: 2; font-size: 12px; color: var(--brand-soft); }
.log__tag--warn { color: var(--warn); }
.log__tag--ok { color: var(--ok); }
.log__dot { inline-size: 9px; block-size: 9px; border-radius: 50%; }
.log__dot--ai { background: var(--brand); box-shadow: 0 0 10px var(--brand); }
.log__dot--warn { background: var(--warn); }
.log__dot--ok { background: var(--ok); }

/* ---------- Statement (scroll-lit) ---------- */
.statement { min-block-size: 220vh; display: flex; align-items: flex-start; justify-content: center; padding: 8vh var(--gutter) 20vh; }
.lit { max-inline-size: 22ch; font-size: clamp(34px, 5.4vw, 72px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 700; text-align: center; position: sticky; inset-block-start: 30vh; }
.lit .w { color: rgba(255, 255, 255, 0.16); transition: color 0.35s var(--ease); }
.lit .w.on { color: var(--text); }

/* ---------- Systems (the four layers) ---------- */
.systems { padding-block: 12vh 6vh; }
.stack { max-inline-size: var(--max); margin-inline: auto; padding-inline: var(--gutter); display: grid; gap: 18px; perspective: 1600px; }
.layer { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: start; padding: clamp(24px, 3vw, 36px); }
.layer__n { font-family: var(--font-brand); font-size: 14px; font-weight: 600; color: var(--text-3); padding-block-start: 6px; }
.layer h3 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; margin-block-end: 8px; }
.layer p { color: var(--text-2); max-inline-size: 70ch; }
.layer--ai { background: linear-gradient(160deg, rgba(54, 84, 255, 0.32), rgba(54, 84, 255, 0.08) 60%); }
.layer--ai .layer__n { color: var(--brand-soft); }

.apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.app { padding: 26px; display: grid; gap: 12px; align-content: start; transition: transform 0.6s var(--ease); }
.app:hover { transform: translateY(-6px) rotateX(4deg); }
.app__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.app__icon { inline-size: 48px; block-size: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.app__icon svg { inline-size: 26px; block-size: 26px; }
.app h3 { font-size: 24px; letter-spacing: -0.02em; }
.app__what { color: var(--text-2); font-size: 16px; }
.app__agent { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--brand-soft); padding: 12px; border-radius: 14px; background: rgba(54, 84, 255, 0.1); }
.app__agent .agent-badge { flex: none; }
.avail { font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); color: var(--text-2); white-space: nowrap; }
.avail--live { color: var(--ok); background: rgba(74, 222, 128, 0.12); }

/* ---------- Loop ---------- */
.loop { padding-block: 10vh; }
.loop__grid { max-inline-size: var(--max); margin-inline: auto; padding-inline: var(--gutter); display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 96px); }
.loop__steps { display: grid; }
.step { min-block-size: 70vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.28; transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); transform: translateX(-8px); }
[dir="rtl"] .step { transform: translateX(8px); }
.step.is-active, [dir="rtl"] .step.is-active { opacity: 1; transform: none; }
.step__n { font-family: var(--font-brand); font-size: 15px; color: var(--brand-soft); margin-block-end: 14px; }
.step h3 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.1; letter-spacing: -0.025em; font-weight: 700; margin-block-end: 14px; }
.step p { color: var(--text-2); font-size: 18px; max-inline-size: 38ch; }

.loop__view { position: relative; }
.loop__sticky { position: sticky; inset-block-start: 15vh; block-size: 70vh; display: flex; align-items: center; perspective: 1400px; }
.panel { inline-size: 100%; min-block-size: 420px; transform: rotateY(-8deg) rotateX(4deg); transition: transform 0.8s var(--ease); overflow: hidden; }
[dir="rtl"] .panel { transform: rotateY(8deg) rotateX(4deg); }
.panel:hover { transform: none; }
.panes { position: relative; min-block-size: 370px; }
.pane { position: absolute; inset: 0; padding: 22px; display: grid; gap: 16px; align-content: start; opacity: 0; transform: translateY(18px) scale(0.98); filter: blur(6px); transition: opacity 0.6s var(--ease), transform 0.7s var(--ease), filter 0.6s var(--ease); pointer-events: none; }
.pane.is-active { opacity: 1; transform: none; filter: none; }

.kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kcol { display: grid; gap: 8px; align-content: start; padding: 10px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); }
.kcol__h { font-size: 12px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; }
.kcard { font-size: 13px; font-weight: 600; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.1); }
.kcard small { display: block; font-weight: 500; color: var(--text-2); font-family: var(--font-mono); margin-block-start: 2px; }
.kcard--hot { box-shadow: inset 0 0 0 1px rgba(138, 155, 255, 0.6), 0 0 24px rgba(54, 84, 255, 0.35); }

.invoice { display: grid; gap: 4px; }
.invoice__row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 4px; border-block-end: 1px solid rgba(255, 255, 255, 0.07); font-size: 15px; }
.invoice__row--total { font-weight: 700; font-size: 18px; border: 0; }
.invoice .status { margin-block-start: 10px; }

.match { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.match__col { display: grid; gap: 4px; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.25); font-size: 14px; }
.match__col .muted { font-size: 12px; }

/* ---------- In action: visionOS-style window, grabber and ornament ---------- */
.proof { padding-block: 14vh 6vh; }
.theater { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-inline: var(--gutter); perspective: 1800px; }
.vwin {
  margin: 0; inline-size: min(100%, 860px, calc((100vh - 260px) * 1.6)); overflow: hidden; border-radius: 34px;
  transform: rotateX(var(--vx, 10deg)) scale(var(--vs, 0.94)); transform-origin: 50% 100%;
  transition: transform 0.25s linear, inline-size 0.6s var(--ease);
}
.vwin--phone { inline-size: min(100%, 340px, calc((100vh - 300px) * 0.46)); border-radius: 44px; }
.vwin__screen { position: relative; margin: 0 12px 12px; border-radius: 22px; overflow: hidden; background: rgba(0, 0, 0, 0.35); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); aspect-ratio: 16 / 10; }
.vwin--phone .vwin__screen { aspect-ratio: 390 / 844; border-radius: 32px; }
.vwin__screen img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; object-position: top center; transition: opacity 0.35s var(--ease); }
.vwin__screen img.is-swapping { opacity: 0; }
.vwin-wrap { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; inline-size: 100%; }
.vwin-wrap .vwin { max-inline-size: 100%; }
.proof__dock { display: flex; flex-direction: column; align-items: center; gap: 14px; max-inline-size: 100%; }
.vwin__grabber { inline-size: 110px; block-size: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.35); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4); }
.proof__caption { margin: 6px 0 4px; min-block-size: 3.2em; max-inline-size: 52ch; text-align: center; color: var(--text-2); }
.orn { display: flex; gap: 6px; padding: 8px; border-radius: 999px; max-inline-size: 100%; overflow-x: auto; scrollbar-width: none; }
.orn::-webkit-scrollbar { display: none; }
.orn__tab {
  flex: none; min-block-size: 44px; padding-inline: 18px; border: 0; border-radius: 999px; cursor: pointer;
  font: 600 15px/1 var(--font); color: var(--text-2); background: transparent; white-space: nowrap;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}
.orn__tab:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.orn__tab[aria-selected="true"] { color: #05060a; background: var(--text); box-shadow: 0 6px 20px rgba(255, 255, 255, 0.18); }

/* Scroll-driven: the stage pins and the window grows from a card to the full screen */
.proof.is-pinned .proof__track { block-size: 320vh; }
.proof.is-pinned .theater { position: sticky; inset-block-start: 0; block-size: 100vh; justify-content: center; padding: 0; overflow: hidden; }
.proof.is-pinned .vwin-wrap { inline-size: auto; }
.proof.is-pinned .vwin {
  display: flex; flex-direction: column; max-inline-size: none;
  inline-size: var(--vw-w); block-size: var(--vw-h); border-radius: var(--vw-r);
  transform: rotateX(var(--vx, 0deg)); transition: none;
}
.proof.is-pinned .vwin__screen { flex: 1; aspect-ratio: auto; margin: 0 var(--vw-m) var(--vw-m); border-radius: calc(var(--vw-r) * 0.65); }
.proof.is-pinned .vwin__screen img { object-fit: contain; }
.proof.is-pinned .vwin__grabber { position: absolute; inset-block-start: calc(100% + 12px); opacity: var(--vw-ui, 1); }
.proof.is-pinned .proof__dock { position: absolute; inset-inline: 0; inset-block-end: max(18px, env(safe-area-inset-bottom)); z-index: 2; padding-inline: var(--gutter); }
.proof.is-pinned .proof__caption {
  margin: 0; min-block-size: 0; padding: 8px 16px; border-radius: 16px; color: var(--text);
  background: rgba(10, 12, 22, 0.55); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  opacity: var(--vw-cap, 0); transition: opacity 0.3s;
}

.proof.is-pinned .orn { background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04) 60%), rgba(8, 10, 20, 0.62); }

/* ---------- Trust bento ---------- */
.trust { padding-block: 18vh 10vh; }
.bento { max-inline-size: var(--max); margin-inline: auto; padding-inline: var(--gutter); display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile { padding: clamp(24px, 3vw, 38px); display: grid; gap: 12px; align-content: start; overflow: hidden; transition: transform 0.6s var(--ease); }
.tile:hover { transform: translateY(-4px); }
.tile--wide { grid-column: span 2; }
.tile--full { grid-column: 1 / -1; }
.tile h3 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.02em; line-height: 1.15; }
.tile p { color: var(--text-2); max-inline-size: 46ch; }
.tile__big { font-size: clamp(72px, 9vw, 120px); font-weight: 800; line-height: 0.9; letter-spacing: -0.05em; background: linear-gradient(180deg, #fff, rgba(255, 255, 255, 0.35)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.policy { display: flex; gap: 10px; flex-wrap: wrap; margin-block-start: 8px; }
.pill { font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); }
.pill--auto { color: var(--brand-soft); }
.pill--wait { color: var(--warn); }
.pill--no { color: var(--danger); }
.lang { display: flex; gap: 12px; margin-block-start: 8px; font-size: 22px; font-weight: 600; }
.lang span { padding: 8px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.07); }
.lang__ar { font-family: "IBM Plex Sans Arabic", var(--font); }

/* ---------- WhatsApp ---------- */
.wa { max-inline-size: var(--max); margin-inline: auto; padding: 14vh var(--gutter); display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.wa .h2 { font-size: clamp(34px, 3.8vw, 54px); }
.markets { display: flex; gap: 12px; margin-block-start: 32px; flex-wrap: wrap; }
.markets li { display: grid; padding: 12px 20px; border-radius: 18px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.markets b { font-size: 20px; }
.markets span { font-family: var(--font-mono); font-size: 13px; color: var(--text-3); }
.markets .is-here { background: rgba(54, 84, 255, 0.18); box-shadow: inset 0 0 0 1px rgba(138, 155, 255, 0.55); }
.wa__device { border-radius: 44px; padding: 10px 6px 18px; max-inline-size: 380px; justify-self: center; inline-size: 100%; }
.wa__head { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-block-end: 1px solid rgba(255, 255, 255, 0.08); }
.wa__head small { display: block; color: var(--text-3); font-size: 12px; }
.wa__avatar { inline-size: 38px; block-size: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); font-weight: 700; }

/* ---------- CTA ---------- */
.cta { padding: 10vh var(--gutter) 16vh; display: flex; justify-content: center; }
.cta__card { max-inline-size: 980px; inline-size: 100%; text-align: center; padding: clamp(48px, 8vw, 110px) var(--gutter); border-radius: 44px; display: flex; flex-direction: column; align-items: center; }
.cta__card .lede { margin-inline: auto; }
.cta__mark { inline-size: 64px; block-size: 64px; color: var(--brand-soft); margin-block-end: 28px; filter: drop-shadow(0 0 30px rgba(54, 84, 255, 0.8)); }
.cta__mark circle:last-child { fill: var(--brand); }

/* ---------- Book a demo form (SO-334) ---------- */
[hidden] { display: none !important; }
.demo { scroll-margin-block-start: 104px; inline-size: 100%; max-inline-size: 640px; margin-block-start: 40px; padding-block-start: 36px; border-block-start: 1px solid var(--glass-edge); text-align: start; }
.demo--thanks { text-align: center; }
.demo__title { font-size: 22px; font-weight: 600; line-height: 1.3; }
.demo__lede { margin-block-start: 8px; color: var(--text-2); font-size: 16px; }
.demo__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-block-start: 24px; }
.demo__field { display: flex; flex-direction: column; gap: 6px; font-size: 16px; color: var(--text-2); }
.demo__field--wide { grid-column: 1 / -1; }
.demo__req { color: var(--warn); }
.demo__input {
  inline-size: 100%; min-block-size: 48px; padding-block: 10px; padding-inline: 16px; border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(5, 6, 10, 0.55); color: var(--text); font: inherit; font-size: 16px;
}
.demo__input:focus-visible { outline: 2px solid var(--brand-soft); outline-offset: 2px; border-radius: var(--radius-md); }
.demo__input--area { min-block-size: 96px; resize: vertical; }
select.demo__input { appearance: auto; }
select.demo__input option { color: #05060a; background: #f5f6fa; }
.demo__trap { position: absolute; inset-inline-start: -9999px; inline-size: 1px; block-size: 1px; overflow: hidden; }
.demo__consent { display: flex; align-items: flex-start; gap: 12px; margin-block-start: 20px; min-block-size: 44px; font-size: 16px; color: var(--text-2); cursor: pointer; }
.demo__consent input { flex: none; inline-size: 22px; block-size: 22px; margin-block-start: 2px; accent-color: var(--brand-soft); }
.demo__privacy { margin-block-start: 4px; font-size: 16px; }
.demo__privacy a, .demo__back { display: inline-flex; align-items: center; min-block-size: 44px; color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.demo__actions { margin-block-start: 16px; }
.demo__actions .btn { border: 0; cursor: pointer; font-family: inherit; }
.demo__actions .btn:disabled { opacity: 0.6; cursor: progress; transform: none; }
.demo__problem { margin-block-start: 14px; color: var(--danger); font-size: 16px; }
@media (max-width: 640px) {
  .demo__grid { grid-template-columns: minmax(0, 1fr); }
  .demo__actions .btn { inline-size: 100%; }
}

/* ---------- Footer ---------- */
.footer { max-inline-size: var(--max); margin-inline: auto; padding: 32px var(--gutter) 48px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-block-start: 1px solid rgba(255, 255, 255, 0.08); font-size: 15px; }
.footer__links { display: flex; gap: 20px; color: var(--text-3); }
.footer__links a:hover { color: var(--text); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); filter: blur(8px); transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.hero__copy .reveal:nth-child(2) { transition-delay: 0.08s; }
.hero__copy .reveal:nth-child(3) { transition-delay: 0.16s; }
.hero__copy .reveal:nth-child(4) { transition-delay: 0.24s; }
.bento .reveal:nth-child(2) { transition-delay: 0.06s; }
.bento .reveal:nth-child(3) { transition-delay: 0.12s; }
.bento .reveal:nth-child(4) { transition-delay: 0.18s; }
.bento .reveal:nth-child(5) { transition-delay: 0.24s; }
.bento .reveal:nth-child(6) { transition-delay: 0.3s; }
.apps .reveal:nth-child(2) { transition-delay: 0.06s; }
.apps .reveal:nth-child(3) { transition-delay: 0.12s; }
.apps .reveal:nth-child(4) { transition-delay: 0.18s; }

/* ---------- Responsive ---------- */
/* PRICING (SO-91): three plans in the trust section's own tiles */
.pricing { padding-block: 10vh 6vh; }
.plan { gap: 16px; }
.plan--main { box-shadow: inset 0 0 0 1px var(--brand-soft); }
.plan__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.plan__num { font-size: clamp(40px, 5vw, 64px); font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: var(--text); }
.plan__per { font-size: 16px; color: var(--text-3); }
.plan__list { display: grid; gap: 10px; padding-inline-start: 20px; color: var(--text-2); list-style: disc; }
.plan__cta { justify-self: start; margin-block-start: 8px; }
.plan__note { max-inline-size: none; font-size: 16px; }

@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__pill { gap: 8px; padding-inline: 14px 6px; }
  .nav__pill .lang-switch { margin-inline-start: auto; }

  .scene { block-size: auto; transform: none !important; display: grid; gap: 16px; }
  .win, .win--main, .win--left, .win--right, [dir="rtl"] .win--main { position: relative; inset: auto; inline-size: 100%; transform: none; }
  .win--left, .win--right { display: none; }
  .loop__grid { grid-template-columns: 1fr; }
  .loop__view { order: -1; position: sticky; inset-block-start: 76px; z-index: 3; }
  .loop__sticky { position: relative; inset: auto; block-size: auto; }
  .panel, [dir="rtl"] .panel { transform: none; min-block-size: 0; }
  .panes { min-block-size: 300px; }
  .step { min-block-size: 60vh; transform: none; }
  .loop .phone .bubble:last-child { display: none; }
  .bento { grid-template-columns: 1fr; }
  .vwin { transform: none !important; }
  .orn { flex-wrap: wrap; justify-content: center; overflow: visible; border-radius: 28px; }
  .apps { grid-template-columns: 1fr 1fr; }
  .layer { grid-template-columns: 1fr; gap: 8px; }
  .tile--wide, .tile--full { grid-column: auto; }
  .wa { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .nav__pill .btn--small { padding-inline: 14px; font-size: 14px; }
  .brand__word { font-size: 18px; }
  .kanban, .match { grid-template-columns: 1fr; }
  .kcol:nth-child(n + 3) { display: none; }
  .apps { grid-template-columns: 1fr; }
  .markets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .markets li { padding: 10px 12px; }
  .markets b { font-size: 17px; }
  .panes { min-block-size: 340px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .scene, .vwin { transform: none !important; }
  .proof .proof__track { block-size: auto !important; }
  .lit .w { color: var(--text); }
}
