/* ==========================================================================
   TalentLink360 — Design system
   Colors come from the brand palette: black, red #EB001B, orange #FF5F00,
   amber #F79E1B. Green is reserved for success / attendance status only.
   ========================================================================== */

:root {
  --ink: #000000;
  --ink-2: #3C3C43;
  --ink-3: #6E6E78;
  --line: #E6E6EA;
  --line-2: #F0F0F3;
  --paper: #FFFFFF;
  --mist: #F7F7F8;
  --mist-2: #EFEFF2;

  --red: #EB001B;
  --red-dark: #C40016;
  --red-tint: #FFEEF0;
  --orange: #FF5F00;
  --orange-tint: #FFF1E8;
  --amber: #F79E1B;
  --amber-tint: #FFF6E5;
  --green: #16A34A;
  --green-tint: #E8F7EE;
  --whatsapp: #25D366;

  --font-en: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Manrope", system-ui, sans-serif;

  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  --sh-1: 0 1px 2px rgba(0,0,0,.04), 0 1px 1px rgba(0,0,0,.03);
  --sh-2: 0 4px 16px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.04);
  --sh-3: 0 24px 60px -20px rgba(0,0,0,.18), 0 8px 24px -12px rgba(0,0,0,.08);
  --sh-red: 0 8px 24px -8px rgba(235,0,27,.45);

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-spring: cubic-bezier(.34,1.3,.64,1);

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 9vw, 128px);
}

*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { overflow-x: clip; }
.hero__grid > *, .eco > *, .cvflow > *, .att > *, .story > *, .ess > *, .pay > *, .files > *, .agents > *, .integ > *, .download > *, .ai__grid > * { min-width: 0; }
body {
  margin: 0;
  font-family: var(--font-en);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html[dir="rtl"] body { font-family: var(--font-ar); }
html[dir="rtl"] { --font-en: var(--font-ar); }

img { max-width: 100%; height: auto; display: block; }
ol { margin: 0; padding: 0; list-style: none; }
button.link { background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4,p { margin: 0; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }
.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; }

/* Typography scale (ratio ~1.25 modular, display steps larger) */
.display-1 { font-size: clamp(2.5rem, 5.2vw, 4.4rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; }
.display-2 { font-size: clamp(2rem, 4.2vw, 3.25rem); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; }
.h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; }
.h4 { font-size: 1.125rem; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.6; color: var(--ink-2); font-weight: 500; max-width: 38ch; }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }
html[dir="rtl"] .display-1,
html[dir="rtl"] .display-2,
html[dir="rtl"] .h3 { letter-spacing: 0; line-height: 1.25; }
html[dir="rtl"] .display-1 { font-weight: 700; }
html[dir="rtl"] .lead { line-height: 1.8; }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--mist { background: var(--mist); }
.section-head { max-width: 640px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .lead { margin-top: 18px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }

/* Brand bar — the three faces of the logo as a signature accent */
.brand-bar { display: inline-flex; gap: 4px; height: 6px; margin-bottom: 22px; }
.brand-bar i { display: block; width: 34px; border-radius: 3px; }
.brand-bar i:nth-child(1) { background: var(--red); }
.brand-bar i:nth-child(2) { background: var(--orange); width: 22px; }
.brand-bar i:nth-child(3) { background: var(--amber); width: 14px; }
.section-head--center .brand-bar { justify-content: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0 22px; height: 48px; border-radius: var(--r-pill);
  font-weight: 700; font-size: .95rem; letter-spacing: -0.005em;
  border: 1.5px solid transparent; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s, color .18s, border-color .18s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary { background: var(--red); color: #fff; box-shadow: var(--sh-red); }
.btn--primary:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #222; }
.btn--whatsapp { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--whatsapp:hover { border-color: var(--whatsapp); }
.btn--whatsapp svg { color: var(--whatsapp); }
.btn--lg { height: 56px; padding-inline: 28px; font-size: 1.02rem; }
.btn--sm { height: 40px; padding-inline: 16px; font-size: .875rem; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
html[dir="rtl"] .btn .arrow { transform: scaleX(-1); }
html[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(3px); }
.link { font-weight: 700; color: var(--red); display: inline-flex; align-items: center; gap: 8px; }
.link svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link:hover svg { transform: translateX(3px); }
html[dir="rtl"] .link svg { transform: scaleX(-1); }
html[dir="rtl"] .link:hover svg { transform: scaleX(-1) translateX(3px); }

/* Badges / chips */
.chip { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: var(--r-pill); font-size: .8rem; font-weight: 700; background: var(--mist-2); color: var(--ink-2); }
.chip--red { background: var(--red-tint); color: var(--red); }
.chip--green { background: var(--green-tint); color: var(--green); }
.chip--amber { background: var(--amber-tint); color: #B36F0A; }
.chip--orange { background: var(--orange-tint); color: var(--orange); }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: .875rem; font-weight: 700; color: var(--ink-2); }
.input, .select {
  height: 50px; padding: 0 16px; border-radius: var(--r-sm); border: 1.5px solid var(--line);
  background: #fff; font: inherit; font-size: 1rem; color: var(--ink); width: 100%;
  transition: border-color .15s, box-shadow .15s;
  appearance: none; -webkit-appearance: none;
}
.input:focus, .select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(235,0,27,.12); }
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236E6E78' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-inline-end: 42px; }
html[dir="rtl"] .select { background-position: left 14px center; }

/* ==========================================================================
   Header
   ========================================================================== */
.header { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.header.is-scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 28px; height: 76px; }
.logo { display: flex; align-items: center; flex: none; }
.logo img { height: 40px; width: auto; }
.nav__menu { display: flex; gap: 4px; margin-inline-start: 12px; }
.nav__menu a { white-space: nowrap; padding: 10px 14px; border-radius: var(--r-sm); font-weight: 600; font-size: .95rem; color: var(--ink-2); transition: background .15s, color .15s; }
.nav__menu a:hover { background: var(--mist); color: var(--ink); }
.nav__right { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--r-pill); padding: 3px; height: 40px; }
.lang button { height: 32px; padding: 0 12px; border-radius: var(--r-pill); border: 0; background: transparent; font-weight: 700; font-size: .85rem; color: var(--ink-3); transition: background .15s, color .15s; }
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.lang button[data-lang="ar"] { font-family: var(--font-ar); }
.lang button[data-lang="en"] { font-family: "Manrope", system-ui, sans-serif; }
.nav__login { font-weight: 700; padding: 10px 14px; color: var(--ink-2); }
.nav__login:hover { color: var(--ink); }
.burger { display: none; width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; align-items: center; justify-content: center; }
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; border-radius: 2px; }
.burger span::before, .burger span::after { content:""; position:absolute; left:0; width:18px; height:2px; background: var(--ink); border-radius: 2px; transition: transform .2s; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.mobile-menu { display: none; position: fixed; inset: 76px 0 0 0; background: #fff; z-index: 55; padding: 16px var(--gutter) 32px; overflow: auto; }
.mobile-menu.is-open { display: block; }
.mobile-menu a { display: block; padding: 16px 4px; font-weight: 700; font-size: 1.2rem; border-bottom: 1px solid var(--line-2); }
.mobile-menu .mobile-menu__cta { display: grid; gap: 10px; margin-top: 20px; }
.mobile-menu .mobile-menu__cta .btn { width: 100%; }

/* Sticky mobile CTA bar */
.mobile-bar { display: none; position: fixed; bottom: 0; inset-inline: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); gap: 10px; }
.mobile-bar .btn { flex: 1; height: 48px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(48px, 6vw, 96px); overflow: hidden; position: relative; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__copy { max-width: 560px; }
.hero__tag { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: .85rem; color: var(--ink-2); margin-bottom: 26px; }
.hero__tag .brand-bar { margin: 0; height: 8px; }
.hero__tag .brand-bar i { width: 10px; border-radius: 2px; }
.hero h1 { max-width: 13ch; }
.hero .lead { margin-top: 22px; max-width: 44ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__ctas .btn { width: 250px; height: 56px; padding-inline: 28px; font-size: 1.02rem; justify-content: center; }
.hero__wa { margin-top: 18px; }
.hero__wa .link { color: var(--ink); }
.hero__wa .link svg { width: 18px; height: 18px; color: var(--whatsapp); }
.hero__proof { display: flex; gap: 22px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.hero__proof div { display: flex; flex-direction: column; gap: 2px; }
.hero__proof strong { font-size: 1.05rem; letter-spacing: -0.01em; }
.hero__proof span { font-size: .8rem; color: var(--ink-3); }

/* The story stage */
.stage { position: relative; aspect-ratio: 4 / 3.3; min-height: 440px; }
.stage__scene { position: absolute; inset: 0; }
.stage__bg { position: absolute; inset: -6% -10%; background:
  radial-gradient(60% 55% at 70% 30%, var(--red-tint) 0%, transparent 70%),
  radial-gradient(45% 45% at 20% 80%, var(--amber-tint) 0%, transparent 70%);
  z-index: 0; pointer-events: none; }
.stage__grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(70% 70% at 50% 50%, #000 30%, transparent 100%); -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000 30%, transparent 100%); opacity: .8; z-index: 0; }
.stage > * { z-index: 1; }

/* generic panel */
.panel { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-3); transition: transform .8s var(--ease), opacity .6s var(--ease); }
.panel__head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line-2); font-weight: 700; font-size: .85rem; }
.panel__head .dots { display: flex; gap: 5px; }
.panel__head .dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.panel__head img { height: 18px; width: auto; }

/* phone */
.phone { position: absolute; inset-inline-start: 2%; top: 14%; width: 190px; aspect-ratio: 9 / 19; background: #000; border-radius: 34px; padding: 8px; box-shadow: var(--sh-3), inset 0 0 0 1.5px #3a3a3a; }
.phone__screen { position: relative; width: 100%; height: 100%; background: #fff; border-radius: 27px; overflow: hidden; display: flex; flex-direction: column; }
.phone__notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 60px; height: 18px; background: #000; border-radius: 12px; z-index: 3; }
.phone__top { padding: 34px 14px 6px; display: flex; align-items: center; justify-content: space-between; }
.phone__top img { height: 16px; width: auto; }
.phone__top .bell { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }

/* Face scan */
.face { margin: 6px 14px 0; border-radius: 16px; background: #0B0B0F; aspect-ratio: 1 / 1.05; position: relative; overflow: hidden; display: grid; place-items: center; }
.face__ring { width: 58%; aspect-ratio: 1 / 1.15; margin-bottom: 14%; border-radius: 50%; border: 1.5px dashed rgba(255,255,255,.35); position: relative; transition: border-color .4s; }
.face__ring::after { content:""; position:absolute; inset: 8px; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #3a3a44 0 20%, #22222a 21% 100%); }
.face__ring::before { content:""; position:absolute; left: 28%; right: 28%; top: 62%; height: 32%; border-radius: 40% 40% 50% 50%; background: #2b2b33; z-index: 1; }
.face__scan { position: absolute; left: 10%; right: 10%; height: 2px; top: 10%; background: linear-gradient(90deg, transparent, var(--red), transparent); box-shadow: 0 0 12px var(--red); opacity: 0; }
.face__corner { position: absolute; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.6); }
.face__corner.tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; border-radius: 4px 0 0 0; }
.face__corner.tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; border-radius: 0 4px 0 0; }
.face__corner.bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; border-radius: 0 0 0 4px; }
.face__corner.br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; border-radius: 0 0 4px 0; }
.face__status { position: absolute; bottom: 10px; left: 10px; right: 10px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: .68rem; font-weight: 700; color: #fff; background: rgba(255,255,255,.1); border-radius: 8px; padding: 6px; backdrop-filter: blur(6px); }
.face__status .ok { display: none; color: var(--green); }
.face.is-scanning .face__scan { opacity: 1; animation: scan 1.2s ease-in-out infinite; }
.face.is-verified .face__ring { border-color: var(--green); border-style: solid; }
.face.is-verified .face__status { background: var(--green); }
.face.is-verified .face__status .txt { display: none; }
.face.is-verified .face__status .ok { display: inline-flex; color: #fff; }
@keyframes scan { 0% { top: 8%; } 50% { top: 88%; } 100% { top: 8%; } }

.phone__rows { padding: 10px 14px; display: grid; gap: 8px; }
.prow { display: flex; align-items: center; gap: 8px; font-size: .7rem; font-weight: 600; color: var(--ink-2); opacity: .35; transition: opacity .4s; }
.prow .ic { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; background: var(--mist-2); color: var(--ink-3); flex: none; }
.prow .ic svg { width: 12px; height: 12px; }
.prow .check { margin-inline-start: auto; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; }
.prow .check svg { width: 10px; height: 10px; color: #fff; opacity: 0; }
.prow.is-on { opacity: 1; }
.prow.is-on .ic { background: var(--green-tint); color: var(--green); }
.prow.is-on .check { background: var(--green); border-color: var(--green); }
.prow.is-on .check svg { opacity: 1; }
.phone__btn { margin: auto 14px 16px; height: 36px; border-radius: 10px; background: var(--green); color: #fff; display: grid; place-items: center; font-size: .75rem; font-weight: 800; transition: background .3s; }
.phone__btn[data-state="in"] { background: var(--green); }
.phone__btn[data-state="idle"] { background: var(--mist-2); color: var(--ink-3); }

/* dashboard mini */
.dash { width: 62%; right: 0; top: 4%; }
html[dir="rtl"] .dash { right: auto; left: 0; }
.dash__body { padding: 14px 16px 16px; display: grid; gap: 12px; }
.dash__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpi { border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px; }
.kpi span { font-size: .65rem; color: var(--ink-3); font-weight: 600; display: block; }
.kpi strong { font-size: 1.05rem; letter-spacing: -0.02em; display: block; margin-top: 2px; font-variant-numeric: tabular-nums; }
.kpi.is-green strong { color: var(--green); }
.dash__row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: .72rem; font-weight: 600; border: 1px solid var(--line-2); opacity: 0; transform: translateY(6px); transition: all .5s var(--ease); }
.dash__row.is-on { opacity: 1; transform: none; }
.dash__row .avatar { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, #cfcfd6, #9d9da8); flex: none; }
.dash__row .time { margin-inline-start: auto; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.dash__row .chip { height: 20px; padding: 0 8px; font-size: .62rem; }

/* AI card */
.aicard { width: 58%; right: 2%; bottom: 0; }
html[dir="rtl"] .aicard { right: auto; left: 2%; }
.aicard .panel__head .ai-mark { width: 20px; height: 20px; border-radius: 6px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: .6rem; font-weight: 800; }
.aicard__body { padding: 14px 16px 16px; min-height: 150px; }
.chat { display: grid; gap: 8px; }
.bubble { max-width: 88%; padding: 8px 12px; border-radius: 14px; font-size: .74rem; line-height: 1.4; font-weight: 500; opacity: 0; transform: translateY(6px); transition: all .45s var(--ease); }
.bubble.is-on { opacity: 1; transform: none; }
.bubble--user { background: var(--mist-2); border-bottom-left-radius: 4px; justify-self: start; }
.bubble--ai { background: var(--ink); color: #fff; border-bottom-right-radius: 4px; justify-self: end; }
html[dir="rtl"] .bubble--user { border-bottom-left-radius: 14px; border-bottom-right-radius: 4px; }
html[dir="rtl"] .bubble--ai { border-bottom-right-radius: 14px; border-bottom-left-radius: 4px; }
.typing { display: inline-flex; gap: 3px; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .5; animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,100% { opacity: .3; transform: translateY(0);} 50% { opacity: 1; transform: translateY(-2px);} }

/* CV panel inside the hero */
.cvmini { display: none; }
.cvmini.is-on { display: block; }
.cvfile { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px dashed var(--line); border-radius: 10px; font-size: .74rem; font-weight: 600; }
.cvfile .pdf { width: 24px; height: 28px; border-radius: 4px; background: var(--red); color: #fff; font-size: .5rem; font-weight: 800; display: grid; place-items: center; }
.cvbar { height: 4px; border-radius: 2px; background: var(--line-2); margin-top: 10px; overflow: hidden; }
.cvbar i { display: block; height: 100%; width: 0; background: var(--red); transition: width 1.4s var(--ease); }
.cvtags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.cvtags span { font-size: .64rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--mist-2); opacity: 0; transform: scale(.9); transition: all .3s var(--ease-spring); }
.cvtags span.is-on { opacity: 1; transform: none; }
.cvscore { display: flex; align-items: center; gap: 10px; margin-top: 12px; opacity: 0; transition: opacity .4s; }
.cvscore.is-on { opacity: 1; }
.cvscore .ring { width: 44px; height: 44px; border-radius: 50%; background: conic-gradient(var(--green) calc(var(--p, 0) * 1%), var(--line-2) 0); display: grid; place-items: center; transition: --p 1s; }
.cvscore .ring b { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: .7rem; font-weight: 800; }
.cvscore .lbl { font-size: .72rem; font-weight: 700; }
.cvscore .lbl small { display: block; color: var(--green); font-weight: 700; font-size: .66rem; }

/* connectors */
.flow { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
html[dir="rtl"] .flow { transform: scaleX(-1); }
.flow path { fill: none; stroke: var(--red); stroke-width: 1.5; stroke-dasharray: 5 6; opacity: 0; transition: opacity .4s; }
.flow path.is-on { opacity: .8; animation: dash 1.2s linear infinite; }
.flow circle { fill: var(--red); opacity: 0; }
@keyframes dash { to { stroke-dashoffset: -22; } }

/* step caption */
.stage__caption { position: absolute; left: 0; bottom: 0; display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 8px 14px 8px 10px; font-size: .8rem; font-weight: 700; box-shadow: var(--sh-2); z-index: 5; }
html[dir="rtl"] .stage__caption { left: auto; right: 0; padding: 8px 10px 8px 14px; }
.stage__caption .pip { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .68rem; display: grid; place-items: center; font-weight: 800; }
.stage__caption .txt { min-width: 150px; }
.stage__caption .prog { position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; background: var(--red); transform-origin: left; transform: scaleX(0); border-radius: 2px; }
html[dir="rtl"] .stage__caption .prog { transform-origin: right; }

/* ==========================================================================
   Trust / ecosystem
   ========================================================================== */
.eco { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.eco__viz { position: relative; aspect-ratio: 1 / .9; }
.eco__viz svg { width: 100%; height: 100%; overflow: visible; }
.eco__node { font-weight: 700; font-size: 13px; fill: var(--ink); }
html[dir="rtl"] .eco__node { font-size: 12px; }
.eco__sub { font-size: 10.5px; fill: var(--ink-3); font-weight: 600; }
.eco__hub-text { font-size: 15px; font-weight: 800; fill: #fff; letter-spacing: -0.02em; }
.eco__list { display: grid; gap: 22px; }
.eco__item { display: flex; gap: 16px; align-items: flex-start; }
.eco__item .n { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--mist); }
.eco__item .n svg { width: 20px; height: 20px; }
.eco__item h3 { font-size: 1.05rem; font-weight: 700; }
.eco__item p { color: var(--ink-3); font-size: .95rem; margin-top: 4px; max-width: 42ch; }
.logos { margin-top: clamp(48px, 6vw, 80px); padding-top: 32px; border-top: 1px solid var(--line-2); }
.logos p { font-size: .85rem; color: var(--ink-3); font-weight: 600; text-align: center; margin-bottom: 22px; }
.logos ul { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.logos li { height: 56px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; }
.logos li a { display: grid; place-items: center; height: 100%; padding: 10px 14px; color: var(--ink-2); text-decoration: none; }
.logos li img { max-height: 32px; width: auto; max-width: 100%; object-fit: contain; }
.logos li .wordmark { font-size: .8rem; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; }
.logos li a:hover { color: var(--ink); }

/* ==========================================================================
   AI section (dark)
   ========================================================================== */
.ai { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.ai .section-head .lead { color: rgba(255,255,255,.7); }
.ai .brand-bar i { opacity: 1; }
.ai__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.ai__card { background: #111114; border: 1px solid #232328; border-radius: var(--r-lg); padding: 28px; position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 320px; }
.ai__card h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.015em; margin-top: 18px; }
.ai__card p { color: rgba(255,255,255,.65); margin-top: 8px; max-width: 34ch; font-size: .95rem; }
.ai__card .viz { margin-top: auto; padding-top: 24px; }
.ai__card--agents { grid-column: span 7; }
.ai__card--face { grid-column: span 5; }
.ai__card--cv { grid-column: span 5; }
.ai__card--insights { grid-column: span 7; }
.ai__card--law { grid-column: span 12; min-height: 0; }
.ai__card--law p { max-width: 60ch; }
.law-viz { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.law-country__label { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 8px; }
.law-country__list { display: flex; flex-wrap: wrap; gap: 6px; }
.law-country__list button { font-size: .78rem; font-weight: 700; padding: 6px 12px; border-radius: var(--r-pill); background: #1b1b20; color: rgba(255,255,255,.8); border: 1px solid #2a2a30; cursor: pointer; transition: background .18s, color .18s, border-color .18s; }
.law-country__list button:hover { border-color: rgba(255,255,255,.4); color: #fff; }
.law-country__list button.is-on { background: var(--red); border-color: var(--red); color: #fff; }
.law-viz__main .agent-chat { margin-top: 18px; }
.law-viz__main .agent-chat .bubble { max-width: 84%; transition: opacity .25s var(--ease); }
.law-viz__main .agent-chat .bubble.is-swapping { opacity: 0; }
.law-input { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 42px; padding: 0 6px 0 14px; border-radius: var(--r-pill); background: #1b1b20; border: 1px solid #2a2a30; color: rgba(255,255,255,.4); font-size: .82rem; }
html[dir="rtl"] .law-input { padding: 0 14px 0 6px; }
.law-input i { width: 30px; height: 30px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; }
.law-input i svg { width: 14px; height: 14px; }
html[dir="rtl"] .law-input i svg { transform: scaleX(-1); }
.law-viz__topics .agent-topics { margin-top: 0; }
.ai__card .law-disclaimer { margin-top: 20px; padding-top: 16px; border-top: 1px solid #232328; font-size: .76rem; color: rgba(255,255,255,.5); max-width: none; }
.ai__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--red); display: grid; place-items: center; }
.ai__icon svg { width: 22px; height: 22px; color: #fff; }

/* agents viz */
.agent-chat { display: grid; gap: 8px; }
.agent-chat .bubble { font-size: .82rem; max-width: 72%; opacity: 1; transform: none; }
.agent-chat .bubble--user { background: #232328; color: #fff; }
.agent-chat .bubble--ai { background: #fff; color: var(--ink); }
.agent-chat .bubble .ok { color: var(--green); font-weight: 700; }
.agent-topics { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.agent-topics span { font-size: .72rem; font-weight: 700; padding: 5px 10px; border-radius: 8px; background: #1b1b20; color: rgba(255,255,255,.75); border: 1px solid #2a2a30; }

/* face viz */
.face-viz { position: relative; height: 150px; border-radius: 16px; background: #000; overflow: hidden; border: 1px solid #232328; display: grid; place-items: center; }
.face-viz .mesh { width: 120px; height: 140px; }
.face-viz .mesh line, .face-viz .mesh polygon { stroke: var(--red); stroke-width: .8; fill: none; opacity: .6; }
.face-viz .mesh circle { fill: #fff; r: 1.4; }
.face-viz .verified { position: absolute; bottom: 12px; inset-inline-end: 12px; display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; color: #fff; background: var(--green); padding: 5px 10px; border-radius: 8px; }
.face-viz .verified svg { width: 12px; height: 12px; }
.face-viz .scanline { position: absolute; left: 0; right: 0; height: 40px; background: linear-gradient(to bottom, transparent, rgba(235,0,27,.25), transparent); animation: scan2 3s ease-in-out infinite; }
@keyframes scan2 { 0%,100% { top: -40px; } 50% { top: 100%; } }

/* cv viz */
.cv-viz { display: grid; gap: 8px; }
.cv-viz .row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: #1b1b20; border: 1px solid #2a2a30; font-size: .8rem; font-weight: 600; }
.cv-viz .row .ring { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: .62rem; font-weight: 800; background: conic-gradient(var(--green) calc(var(--p) * 1%), #2a2a30 0); }
.cv-viz .row .ring b { width: 22px; height: 22px; background: #1b1b20; border-radius: 50%; display: grid; place-items: center; }
.cv-viz .row .name { flex: 1; }
.cv-viz .row .tag { font-size: .66rem; padding: 3px 7px; border-radius: 6px; background: #232328; color: rgba(255,255,255,.7); }
.cv-viz .row.top { border-color: var(--green); }
.cv-viz .row.top .tag { background: var(--green); color: #fff; }

/* insights viz */
.insight-viz { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; align-items: end; }
.insight-viz .chart { height: 150px; }
.insight-viz .chart--shot { height: auto; border-radius: 12px; overflow: hidden; border: 1px solid #2a2a30; }
.insight-viz .chart--shot img { width: 100%; }
.insight-viz .chart svg { width: 100%; height: 100%; overflow: visible; }
.insight-viz .chart .area { fill: url(#insightFill); }
.insight-viz .chart .line { fill: none; stroke: var(--red); stroke-width: 2; }
.insight-viz .chart .bar { fill: #232328; }
.insight-viz .chart .bar.hi { fill: var(--amber); }
.insight-note { background: #fff; color: var(--ink); border-radius: 14px; padding: 14px; font-size: .8rem; line-height: 1.45; }
.insight-note b { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: .78rem; }
.insight-note b i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }

/* ==========================================================================
   CV screening animation
   ========================================================================== */
.cvflow { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.cvflow__stage { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-3); padding: 28px; min-height: 480px; display: grid; gap: 14px; align-content: start; }
.cvstep { display: flex; gap: 14px; align-items: flex-start; opacity: .25; transform: translateY(6px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.cvstep.is-on { opacity: 1; transform: none; }
.cvstep .st { width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--mist-2); color: var(--ink-3); transition: background .3s, color .3s; }
.cvstep .st svg { width: 16px; height: 16px; }
.cvstep.is-on .st { background: var(--ink); color: #fff; }
.cvstep.is-done .st { background: var(--green); color: #fff; }
.cvstep .bd { flex: 1; }
.cvstep .bd h4 { font-size: .95rem; font-weight: 700; }
.cvstep .bd p { font-size: .85rem; color: var(--ink-3); margin-top: 2px; }
.cvstep .bd .box { margin-top: 10px; border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; background: var(--mist); }
.cvstep .file { display: flex; align-items: center; gap: 10px; font-size: .85rem; font-weight: 700; }
.cvstep .file .pdf { width: 30px; height: 36px; border-radius: 6px; background: var(--red); color: #fff; font-size: .58rem; font-weight: 800; display: grid; place-items: center; }
.cvstep .file .sz { margin-inline-start: auto; color: var(--ink-3); font-weight: 600; font-size: .78rem; }
.cvstep .prog { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.cvstep .prog i { display: block; height: 100%; width: 0; background: var(--red); transition: width 1.6s var(--ease); }
.cvstep .extract { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.cvstep .extract span { display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; }
.cvstep .extract span::before { content:""; width: 14px; height: 14px; border-radius: 50%; background: var(--line); flex: none; transition: background .3s; }
.cvstep .extract span.is-on::before { background: var(--green); }
.cvmatch { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.cvmatch .score { width: 80px; height: 80px; border-radius: 50%; background: conic-gradient(var(--green) calc(var(--p, 0) * 1%), var(--line-2) 0); display: grid; place-items: center; transition: --p 1.2s var(--ease); }
.cvmatch .score b { width: 64px; height: 64px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 1.1rem; font-weight: 800; letter-spacing: -0.02em; }
.cvmatch h5 { margin: 0; font-size: .95rem; font-weight: 800; }
.cvmatch .meta { font-size: .8rem; color: var(--ink-3); margin-top: 2px; }
.cvmatch .skills { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.cvmatch .skills span { font-size: .7rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: #fff; border: 1px solid var(--line); opacity: 0; transform: scale(.9); transition: all .3s var(--ease-spring); }
.cvmatch .skills span.is-on { opacity: 1; transform: none; }
.cvreco { display: flex; align-items: center; gap: 12px; }
.cvreco .badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill); font-weight: 800; font-size: .82rem; background: var(--green-tint); color: var(--green); }
.cvreco .badge svg { width: 14px; height: 14px; }
.cvreco .badge--dark { background: var(--ink); color: #fff; }
.cvflow__copy .checks { display: grid; gap: 12px; margin-top: 28px; }
.checks li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink-2); }
.checks li svg { width: 20px; height: 20px; color: var(--green); flex: none; }

/* ==========================================================================
   Attendance
   ========================================================================== */
.att { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.att__pills { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; }
.att__pills .chip { height: 36px; font-size: .85rem; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.att__pills .plus { color: var(--ink-3); font-weight: 700; padding: 0 2px; }
.att__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; margin-top: 32px; }
.att__list li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; color: var(--ink-2); }
.att__list li i { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.att__viz { position: relative; display: grid; }
.att__timeline { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-3); padding: 24px 28px; display: grid; gap: 4px; }
.att__timeline .who { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line-2); margin-bottom: 8px; }
.att__timeline .who .avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #d9d9df, #a2a2ad); }
.att__timeline .who b { display: block; font-size: 1rem; }
.att__timeline .who span { font-size: .8rem; color: var(--ink-3); }
.tstep { display: grid; grid-template-columns: 28px 1fr auto; gap: 14px; align-items: center; padding: 10px 0; position: relative; opacity: .3; transition: opacity .4s; }
.tstep.is-on { opacity: 1; }
.tstep::before { content:""; position:absolute; left: 13px; top: 38px; bottom: -6px; width: 2px; background: var(--line-2); }
html[dir="rtl"] .tstep::before { left: auto; right: 13px; }
.tstep:last-child::before { display: none; }
.tstep .ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--mist-2); color: var(--ink-3); position: relative; z-index: 1; transition: background .3s, color .3s; }
.tstep .ic svg { width: 14px; height: 14px; }
.tstep.is-on .ic { background: var(--green); color: #fff; }
.tstep.is-on.is-hr .ic { background: var(--red); }
.tstep .lb { font-weight: 700; font-size: .95rem; }
.tstep .lb small { display: block; font-weight: 500; color: var(--ink-3); font-size: .8rem; }
.tstep .tm { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em; }
.att__shot { position: relative; width: 66%; margin-top: -28px; margin-inline-start: auto; margin-inline-end: -4%; z-index: 2; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--sh-3); background: #fff; opacity: 0; transform: translateY(20px); transition: all .7s var(--ease); }
.att__shot.is-on { opacity: 1; transform: none; }
.att__shot img { width: 100%; height: auto; }
.att__shot .live { position: absolute; top: 10px; inset-inline-start: 10px; display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 4px 10px; font-size: .7rem; font-weight: 800; }
.att__shot .live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-tint); }

/* ==========================================================================
   Platform orbit
   ========================================================================== */
.orbit { position: relative; margin: 20px auto 76px; width: min(760px, 100%); aspect-ratio: 1 / .78; }
.orbit__hub { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 210px; height: 210px; border-radius: 50%; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-3); display: grid; place-items: center; text-align: center; z-index: 2; }
.orbit__hub img { height: 46px; width: auto; }
.orbit__hub span { font-size: .78rem; font-weight: 700; color: var(--ink-3); margin-top: 6px; display: block; }
.orbit__ring { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); border-radius: 50%; border: 1px dashed var(--line); }
.orbit__ring--1 { width: 62%; aspect-ratio: 1; }
.orbit__ring--2 { width: 96%; aspect-ratio: 1; }
.orbit__node { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 8px; width: 118px; text-align: center; cursor: default; }
.orbit__node .ico { width: 58px; height: 58px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-2); display: grid; place-items: center; transition: transform .3s var(--ease-spring), border-color .2s, box-shadow .2s; position: relative; overflow: hidden; }
.orbit__node .ico svg { width: 24px; height: 24px; color: var(--ink); transition: color .2s; }
.orbit__node .ico::after { content:""; position:absolute; inset: 0; border-radius: inherit; background: var(--red); opacity: 0; transition: opacity .25s; }
.orbit__node:hover .ico, .orbit__node:focus-within .ico { transform: translateY(-4px) scale(1.06); border-color: var(--red); box-shadow: var(--sh-red); }
.orbit__node:hover .ico::after { opacity: 1; }
.orbit__node:hover .ico svg { color: #fff; position: relative; z-index: 1; }
.orbit__node b { font-size: .85rem; font-weight: 700; line-height: 1.2; }
.orbit__node .hint { position: absolute; top: calc(100% + 4px); left: 50%; transform: translate(-50%, 4px); background: var(--ink); color: #fff; font-size: .72rem; font-weight: 600; padding: 6px 10px; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: all .2s var(--ease); z-index: 5; }
.orbit__node:hover .hint { opacity: 1; transform: translate(-50%, 0); }
/* micro animations per node */
.orbit__node[data-anim="pulse"]:hover .ico svg { animation: nodePulse .8s var(--ease) infinite alternate; }
.orbit__node[data-anim="tick"]:hover .ico svg { animation: nodeTick .6s var(--ease-spring); }
.orbit__node[data-anim="spin"]:hover .ico svg { animation: nodeSpin 1.2s var(--ease); }
.orbit__node[data-anim="bounce"]:hover .ico svg { animation: nodeBounce .7s var(--ease-spring); }
@keyframes nodePulse { to { transform: scale(1.15); } }
@keyframes nodeTick { 0% { transform: rotate(-12deg);} 60% { transform: rotate(8deg);} 100% { transform: rotate(0);} }
@keyframes nodeSpin { to { transform: rotate(360deg);} }
@keyframes nodeBounce { 0% { transform: translateY(0);} 40% { transform: translateY(-6px);} 100% { transform: translateY(0);} }

/* ==========================================================================
   Feature stories (employee mgmt, payroll, files, recruitment...)
   ========================================================================== */
.story { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.story--flip .story__media { order: -1; }
.story__copy .lead { margin-top: 18px; }
.story__copy .cta { margin-top: 28px; }
.story__facets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 22px; margin-top: 28px; }
.story__facets li { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.story__facets li i { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); flex: none; }
.shot { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--sh-3); background: #fff; }
.shot img { width: 100%; height: auto; }
.shot--crop { aspect-ratio: 16 / 10.5; }
.shot--crop img { height: 100%; width: 100%; object-fit: cover; object-position: top left; }
html[dir="rtl"] .shot--crop img { object-position: top left; }
.shot__float { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-3); padding: 12px 14px; font-size: .8rem; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.shot__float .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.shot__float .ic svg { width: 15px; height: 15px; }
.shot__float small { display: block; font-weight: 500; color: var(--ink-3); font-size: .72rem; }
.story__media { position: relative; }
.story__media .shot__float { z-index: 2; }

/* employee profile panel (built UI) */
.emp { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-3); overflow: hidden; }
.emp__top { display: flex; align-items: center; gap: 16px; padding: 22px 24px; border-bottom: 1px solid var(--line-2); }
.emp__top .avatar { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #d9d9df, #a2a2ad); }
.emp__top b { display: block; font-size: 1.05rem; }
.emp__top span { font-size: .82rem; color: var(--ink-3); }
.emp__top > div { min-width: 0; }
.emp__top .chip { margin-inline-start: auto; }
.emp__tabs { display: flex; gap: 4px; padding: 10px 16px 0; border-bottom: 1px solid var(--line-2); overflow: auto; }
.emp__tabs button { border: 0; background: transparent; padding: 10px 12px; font-size: .82rem; font-weight: 700; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.emp__tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--red); }
.emp__body { padding: 20px 24px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; min-height: 220px; }
.emp__body .cell { border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; }
.emp__body .cell span { font-size: .72rem; color: var(--ink-3); font-weight: 600; display: block; }
.emp__body .cell b { display: block; margin-top: 3px; font-size: .92rem; }
.emp__body .cell .bar { height: 6px; border-radius: 3px; background: var(--line-2); margin-top: 8px; overflow: hidden; }
.emp__body .cell .bar i { display: block; height: 100%; background: var(--green); border-radius: 3px; }
.emp__body .cell.wide { grid-column: span 2; }
.emp__body .cell .doc { display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; padding: 6px 0; }
.emp__body .cell .doc svg { width: 14px; height: 14px; color: var(--red); }
.emp__body .cell .doc .chip { margin-inline-start: auto; height: 22px; font-size: .66rem; }

/* ==========================================================================
   Mobile / ESS
   ========================================================================== */
.ess { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.ess__media { position: relative; padding-bottom: 80px; padding-inline-end: 12%; }
.ess__media .shot { border-radius: var(--r-lg); }
.phone-lg { background: #000; border-radius: 40px; padding: 9px; box-shadow: var(--sh-3), inset 0 0 0 2px #3a3a3a; width: 250px; }
.phone-lg .scr { border-radius: 32px; overflow: hidden; background: #fff; }
.phone-lg .scr img { width: 100%; }
.ess__media .phone-lg { position: absolute; inset-inline-end: 0; bottom: 0; width: 210px; z-index: 2; }
.ess__media .phone-lg .scr { height: 330px; }
.ess__media .phone-lg .scr img { object-fit: cover; object-position: top; height: 100%; }
.mobile__phone { display: flex; justify-content: center; }
.mobile__phone .phone-lg { width: 280px; transform: rotate(-3deg); }
.ess__features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 28px; }
.ess__features li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--mist); font-weight: 700; font-size: .88rem; }
.ess__features li svg { width: 18px; height: 18px; color: var(--red); flex: none; }
.ess__features li:hover { background: var(--mist-2); }

/* app download */
.download { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.download__qr { margin-top: 32px; }
.download__qr { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-2); }
.qr { width: 132px; height: 132px; border-radius: 12px; border: 1px dashed var(--line); display: grid; place-items: center; position: relative; background: repeating-linear-gradient(0deg, transparent 0 9px, var(--mist-2) 9px 10px), repeating-linear-gradient(90deg, transparent 0 9px, var(--mist-2) 9px 10px); }
.qr span { font-size: .68rem; font-weight: 700; color: var(--ink-3); background: #fff; padding: 4px 8px; border-radius: 6px; }
.stores { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.stores .btn { height: 44px; padding-inline: 16px; font-size: .85rem; }
.download__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; margin-top: 28px; }
.download__list li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink-2); }
.download__list li svg { width: 18px; height: 18px; color: var(--red); }

/* ==========================================================================
   Payroll
   ========================================================================== */
.pay { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.pay__ui { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-3); overflow: hidden; }
.pay__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line-2); }
.pay__head b { font-size: 1rem; }
.pay__head .chip { transition: all .3s; }
.pay__table { padding: 8px 22px 16px; }
.pay__row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: .85rem; font-variant-numeric: tabular-nums; }
.pay__row.head { font-size: .72rem; font-weight: 700; color: var(--ink-3); }
.pay__row .nm { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.pay__row .nm i { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, #d9d9df, #a2a2ad); flex: none; }
.pay__row .ded { color: var(--red); }
.pay__row .st { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; transition: all .3s; }
.pay__row .st svg { width: 10px; height: 10px; color: #fff; opacity: 0; }
.pay__row.is-done .st { background: var(--green); border-color: var(--green); }
.pay__row.is-done .st svg { opacity: 1; }
.pay__foot { display: flex; align-items: center; justify-content: space-between; padding: 14px 22px 18px; }
.pay__foot .prog { flex: 1; height: 6px; border-radius: 3px; background: var(--line-2); margin-inline: 16px; overflow: hidden; }
.pay__foot .prog i { display: block; height: 100%; width: 0; background: var(--green); transition: width .6s var(--ease); }
.pay__foot b { font-variant-numeric: tabular-nums; font-size: .85rem; }
.pay__foot .btn { height: 38px; padding-inline: 14px; font-size: .82rem; }
.pay__points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; margin-top: 28px; }
.pay__points li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink-2); }
.pay__points li i { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }

/* ==========================================================================
   Recruitment pipeline
   ========================================================================== */
.pipe { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; margin-top: 48px; }
.pipe::before { content:""; position:absolute; top: 34px; left: 10%; right: 10%; height: 2px; background: linear-gradient(90deg, var(--red), var(--orange), var(--amber)); }
html[dir="rtl"] .pipe::before { background: linear-gradient(-90deg, var(--red), var(--orange), var(--amber)); }
.pipe__step { text-align: center; padding: 0 10px; position: relative; }
.pipe__step .n { width: 68px; height: 68px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-2); display: grid; place-items: center; margin: 0 auto 16px; position: relative; }
.pipe__step .n svg { width: 26px; height: 26px; color: var(--ink); }
.pipe__step .n .cnt { position: absolute; top: -8px; inset-inline-end: -8px; background: var(--red); color: #fff; font-size: .66rem; font-weight: 800; padding: 2px 7px; border-radius: 999px; }
.pipe__step .n.ai { background: var(--ink); }
.pipe__step .n.ai svg { color: #fff; }
.pipe__step h4 { font-size: .98rem; font-weight: 700; }
.pipe__step p { font-size: .82rem; color: var(--ink-3); margin-top: 4px; }
.recruit-cta { margin-top: 40px; text-align: center; }

/* ==========================================================================
   Files
   ========================================================================== */
.files { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.files__ui { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-3); display: grid; grid-template-columns: 200px 1fr; min-height: 380px; overflow: hidden; }
.files__side { background: var(--mist); border-inline-end: 1px solid var(--line-2); padding: 18px 10px; display: grid; gap: 2px; align-content: start; }
.files__side button { border: 0; background: transparent; text-align: start; padding: 10px 12px; border-radius: 10px; font-size: .84rem; font-weight: 700; color: var(--ink-2); display: flex; align-items: center; gap: 10px; }
.files__side button svg { width: 16px; height: 16px; color: var(--ink-3); }
.files__side button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: var(--sh-1); }
.files__side button[aria-selected="true"] svg { color: var(--red); }
.files__main { padding: 22px; }
.files__main .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.files__main .top b { font-size: .95rem; }
.frow { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: .85rem; }
.frow .ic { width: 32px; height: 32px; border-radius: 9px; background: var(--red-tint); color: var(--red); display: grid; place-items: center; }
.frow .ic svg { width: 15px; height: 15px; }
.frow b { display: block; font-weight: 700; }
.frow small { color: var(--ink-3); }
.frow .chip { height: 22px; font-size: .66rem; }
.files__points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }
.files__points li { display: flex; gap: 12px; }
.files__points li .ic { width: 38px; height: 38px; border-radius: 11px; background: var(--mist); display: grid; place-items: center; flex: none; }
.files__points li .ic svg { width: 18px; height: 18px; color: var(--red); }
.files__points li b { display: block; font-size: .95rem; }
.files__points li span { font-size: .85rem; color: var(--ink-3); }

/* ==========================================================================
   AI agents section
   ========================================================================== */
.agents { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.convo { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-3); overflow: hidden; }
.convo__head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.convo__head .ai-mark { width: 36px; height: 36px; border-radius: 11px; background: var(--ink); display: grid; place-items: center; color: #fff; }
.convo__head .ai-mark svg { width: 18px; height: 18px; }
.convo__head b { display: block; font-size: .95rem; }
.convo__head span { font-size: .78rem; color: var(--green); font-weight: 700; display: flex; align-items: center; gap: 5px; }
.convo__head span i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.convo__body { padding: 20px; display: grid; gap: 10px; min-height: 300px; align-content: start; }
.convo__body .bubble { font-size: .92rem; max-width: 80%; padding: 12px 16px; border-radius: 18px; }
.convo__body .bubble--user { border-bottom-left-radius: 6px; }
.convo__body .bubble--ai { border-bottom-right-radius: 6px; }
.convo__body .bubble .ok { color: var(--green); }
.convo__body .bubble--ai .ok { color: #7CF0A6; font-weight: 800; }
.convo__input { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line-2); }
.convo__input .fake { flex: 1; height: 42px; border-radius: 12px; background: var(--mist); display: flex; align-items: center; padding: 0 14px; font-size: .85rem; color: var(--ink-3); }
.convo__input .send { width: 42px; height: 42px; border-radius: 12px; background: var(--red); display: grid; place-items: center; color: #fff; }
.convo__input .send svg { width: 18px; height: 18px; }
.convo__replay { border: 0; background: transparent; font-size: .8rem; font-weight: 700; color: var(--ink-3); padding: 8px; }
.agents__examples { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 28px; }
.agents__examples li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); font-size: .88rem; font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s; }
.agents__examples li:hover { border-color: var(--ink); }
.agents__examples li.is-active { border-color: var(--red); background: var(--red-tint); }
.agents__examples li svg { width: 16px; height: 16px; color: var(--red); flex: none; }

/* ==========================================================================
   Industries
   ========================================================================== */
.ind { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.ind__item { padding: 28px 24px; border-inline-end: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); transition: background .2s; position: relative; }
.ind__item:nth-child(4n) { border-inline-end: 0; }
.ind__item:nth-last-child(-n+4) { border-bottom: 0; }
.ind__item:hover { background: var(--mist); }
.ind__item .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--mist); display: grid; place-items: center; margin-bottom: 16px; }
.ind__item:hover .ic { background: #fff; }
.ind__item .ic svg { width: 20px; height: 20px; color: var(--red); }
.ind__item h3 { font-size: 1.05rem; font-weight: 700; }
.ind__item p { font-size: .88rem; color: var(--ink-3); margin-top: 6px; line-height: 1.5; }

/* ==========================================================================
   Integrations
   ========================================================================== */
.integ { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.integ__cloud { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 520px; margin-inline-start: auto; }
.integ__cloud li { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; aspect-ratio: 1 / .85; border-radius: 18px; background: #fff; border: 1px solid var(--line); font-size: .8rem; font-weight: 700; text-align: center; padding: 12px; transition: transform .25s var(--ease-spring), border-color .2s, box-shadow .2s; }
.integ__cloud li:hover { transform: translateY(-3px); border-color: var(--ink); box-shadow: var(--sh-2); }
.integ__cloud li svg { width: 26px; height: 26px; }
.integ__cloud li.hub { background: var(--ink); color: #fff; border-color: var(--ink); }
.integ__cloud li.hub img { height: 30px; width: auto; filter: brightness(0) invert(1); }

/* ==========================================================================
   Social proof
   ========================================================================== */

/* ==========================================================================
   Final CTA
   ========================================================================== */
.final { position: relative; overflow: hidden; }
.final__box { background: var(--ink); color: #fff; border-radius: var(--r-xl); padding: clamp(48px, 7vw, 96px) clamp(28px, 6vw, 96px); position: relative; overflow: hidden; text-align: center; }
.final__box::before { content:""; position:absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(235,0,27,.45), transparent 65%); top: -200px; inset-inline-end: -120px; }
.final__box::after { content:""; position:absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(247,158,27,.28), transparent 65%); bottom: -220px; inset-inline-start: -100px; }
.final__box > * { position: relative; z-index: 1; }
.final__box .lead { color: rgba(255,255,255,.7); margin: 18px auto 0; }
.final__ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.final__ctas .btn--whatsapp { background: #fff; border-color: #fff; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { padding: 64px 0 32px; border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer__brand p { color: var(--ink-3); margin-top: 16px; max-width: 32ch; font-size: .92rem; }
.footer__brand .logo img { height: 40px; }
.footer h4 { font-size: .85rem; font-weight: 800; margin-bottom: 14px; }
.footer ul { display: grid; gap: 9px; }
.footer ul a { font-size: .9rem; color: var(--ink-2); }
.footer ul a:hover { color: var(--red); }
.footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-2); display: flex; align-items: center; gap: 20px; flex-wrap: wrap; font-size: .82rem; color: var(--ink-3); }
.footer__bottom .legal { display: flex; gap: 18px; }
.footer__bottom .social { margin-inline-start: auto; display: flex; gap: 8px; }
.footer__bottom .social a { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2); }
.footer__bottom .social a:hover { border-color: var(--ink); color: var(--ink); }
.footer__bottom .social svg { width: 16px; height: 16px; }
.footer__langs { display: flex; gap: 8px; margin-top: 18px; }
.footer__langs button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 6px 10px; font-size: .82rem; font-weight: 700; }
.footer__langs button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ==========================================================================
   Modals (WhatsApp qualification + demo booking)
   ========================================================================== */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: flex-end; justify-content: center; padding: 0; }
.modal.is-open { display: flex; }
.modal__bg { position: absolute; inset: 0; background: rgba(0,0,0,.5); backdrop-filter: blur(4px); }
.modal__card { position: relative; background: #fff; width: 100%; max-width: 520px; border-radius: 24px 24px 0 0; padding: 22px 22px 28px; max-height: 92vh; overflow: auto; animation: sheetUp .35s var(--ease); }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal__close { position: absolute; top: 14px; inset-inline-end: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--mist); display: grid; place-items: center; }
.modal__close svg { width: 16px; height: 16px; }
.modal__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.modal__brand .wa { width: 36px; height: 36px; border-radius: 11px; background: var(--whatsapp); display: grid; place-items: center; color: #fff; }
.modal__brand .wa svg { width: 20px; height: 20px; }
.modal__brand .dm { background: var(--red); }
.modal__brand b { display: block; font-size: .95rem; }
.modal__brand span { font-size: .78rem; color: var(--ink-3); }
.modal h3 { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; }
.modal .steps { display: flex; gap: 6px; margin: 14px 0 18px; }
.modal .steps i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.modal .steps i.is-on { background: var(--red); }
.modal .options { display: grid; gap: 8px; }
.modal .options button { text-align: start; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: .95rem; display: flex; align-items: center; gap: 12px; transition: border-color .15s, background .15s, transform .15s; }
.modal .options button:hover { border-color: var(--ink); }
.modal .options button:active { transform: scale(.99); }
.modal .options button.is-selected { border-color: var(--red); background: var(--red-tint); }
.modal .options button svg { width: 18px; height: 18px; color: var(--red); flex: none; }
.modal .options .grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.modal .row { display: flex; gap: 10px; margin-top: 20px; }
.modal .row .btn { flex: 1; }
.modal .summary { background: var(--mist); border-radius: 14px; padding: 14px 16px; font-size: .88rem; display: grid; gap: 6px; margin-bottom: 16px; }
.modal .summary div { display: flex; justify-content: space-between; gap: 12px; }
.modal .summary span { color: var(--ink-3); }
.modal .summary b { font-weight: 700; }
.modal .done { text-align: center; padding: 20px 0 8px; }
.modal .done .ok { width: 64px; height: 64px; border-radius: 50%; background: var(--green-tint); color: var(--green); display: grid; place-items: center; margin: 0 auto 16px; }
.modal .done .ok svg { width: 30px; height: 30px; }
.modal .done p { color: var(--ink-2); margin-top: 8px; }
.form-grid { display: grid; gap: 14px; }
.form-grid--2 { grid-template-columns: 1fr 1fr; }
.form-grid--2 .field--full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid--2 { grid-template-columns: 1fr; } }

/* calendar */
.cal { border: 1.5px solid var(--line); border-radius: 16px; padding: 14px; }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal__head b { font-size: .95rem; }
.cal__head button { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; }
.cal__head button svg { width: 14px; height: 14px; }
html[dir="rtl"] .cal__head button svg { transform: scaleX(-1); }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__grid .d { font-size: .68rem; font-weight: 700; color: var(--ink-3); text-align: center; padding: 6px 0; }
.cal__grid button { aspect-ratio: 1; border-radius: 10px; border: 0; background: transparent; font-weight: 700; font-size: .85rem; font-variant-numeric: tabular-nums; }
.cal__grid button:hover:not(:disabled) { background: var(--mist-2); }
.cal__grid button:disabled { color: var(--line); cursor: default; }
.cal__grid button.is-selected { background: var(--red); color: #fff; }
.cal__grid button.is-today { box-shadow: inset 0 0 0 1.5px var(--line); }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.slots button { height: 40px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: .85rem; font-variant-numeric: tabular-nums; }
.slots button:disabled { opacity: .38; text-decoration: line-through; cursor: not-allowed; }
.slots button.is-selected { border-color: var(--red); background: var(--red-tint); color: var(--red); }

/* Floating WhatsApp */
.wa-float { position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 49; display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 18px 0 12px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-3); font-weight: 800; font-size: .88rem; transition: transform .2s var(--ease-spring); }
html[dir="rtl"] .wa-float { padding: 0 12px 0 18px; }
.wa-float:hover { transform: translateY(-2px); }
.wa-float.is-lifted { transition: transform .2s var(--ease-spring); }
.wa-float .ic { width: 34px; height: 34px; border-radius: 50%; background: var(--whatsapp); display: grid; place-items: center; color: #fff; }
.wa-float .ic svg { width: 18px; height: 18px; }

/* Reveal (used once per section head only) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1520px) {
  html[dir="rtl"] .nav__right .btn--ghost { display: none; }
}
@media (max-width: 1400px) {
  .nav__right .btn--ghost { display: none; }
  .nav__menu a { padding: 10px 11px; }
}
@media (max-width: 1080px) {
  .nav__menu { display: none; }
  .burger { display: inline-flex; }
  .nav__right .btn--ghost, .nav__login { display: none; }
  .ai__card--agents, .ai__card--face, .ai__card--cv, .ai__card--insights { grid-column: span 6; }
  .ai__card--law { grid-column: span 12; }
  .law-viz { grid-template-columns: 1fr; }
  .ind { grid-template-columns: repeat(2, 1fr); }
  .ind__item:nth-child(4n) { border-inline-end: 1px solid var(--line-2); }
  .ind__item:nth-child(2n) { border-inline-end: 0; }
  .ind__item:nth-last-child(-n+4) { border-bottom: 1px solid var(--line-2); }
  .ind__item:nth-last-child(-n+2) { border-bottom: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .pipe { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 900px) {
  .hero__grid, .eco, .cvflow, .att, .story, .ess, .pay, .files, .agents, .integ, .download { grid-template-columns: 1fr; }
  .story--flip .story__media { order: 0; }
  .hero h1 { max-width: 14ch; }
  .stage { min-height: 380px; aspect-ratio: auto; height: 460px; }
  .dash { width: 66%; }
  .aicard { width: 62%; }
  .logos ul { grid-template-columns: repeat(3, 1fr); }
  .pipe { grid-template-columns: 1fr; gap: 20px; }
  .pipe::before { display: none; }
  .pipe__step { display: grid; grid-template-columns: auto 1fr; gap: 16px; text-align: start; align-items: center; }
  .pipe__step .n { margin: 0; }
    .ess__media { padding-inline-end: 0; padding-bottom: 0; }
  .ess__media .phone-lg { position: relative; margin: -60px auto 0; inset: auto; }
  .mobile__phone { order: -1; }
  .files__ui { grid-template-columns: 1fr; }
  .files__side { display: flex; overflow: auto; padding: 12px; border-inline-end: 0; border-bottom: 1px solid var(--line-2); }
  .files__side button { white-space: nowrap; }
  .att__shot { position: relative; width: 100%; inset: auto; margin-top: 18px; }
  .integ__cloud { margin-inline-start: 0; max-width: none; }
  .orbit { aspect-ratio: 1; }
  .orbit__node { width: 92px; }
  .orbit__node .ico { width: 48px; height: 48px; border-radius: 14px; }
  .orbit__node b { font-size: .74rem; }
  .orbit__hub { width: 150px; height: 150px; }
  .orbit__hub img { height: 34px; }
}
@media (max-width: 640px) {
  .download__qr { grid-template-columns: 1fr; }
  .download__qr > div { min-width: 0; }
  .stores .btn { flex: 1 1 auto; }
  .logos li { height: auto; min-height: 56px; }
  .logos li .wordmark { white-space: normal; text-align: center; font-size: .72rem; line-height: 1.2; }
  .nav { height: 66px; }
  .logo img { height: 34px; }
  .nav__right .btn--primary { display: none; }
  .mobile-menu { inset-block-start: 66px; }
  .mobile-bar { display: flex; }
  body { padding-bottom: 76px; }
  .wa-float { display: none; }
  .hero { padding-top: 32px; }
  .hero__ctas .btn { width: 100%; }
  .hero__proof { gap: 18px; }
  .stage { height: 510px; min-height: 0; }
  .phone { width: 150px; top: 3%; inset-inline-start: 0; }
  .dash .panel__head .chip { display: none; }
  .dash { width: 60%; top: 0; }
  .dash__kpis { display: none; }
  .dash__body { padding: 10px 12px 12px; }
  .aicard { width: 62%; inset-inline-end: 0; }
  .aicard__body { padding: 10px 12px 12px; min-height: 120px; }
  .stage__caption { bottom: -8px; }
  .stage__caption .txt { min-width: 0; }
  .flow { display: none; }
  .story__facets { grid-template-columns: 1fr 1fr; }
  .orbit__node .hint { display: none; }
  .orbit { width: calc(100% - 48px); }
  .emp__top { flex-wrap: wrap; }
  .emp__top > div { min-width: 0; flex: 1; }
  .emp__top span { display: block; }
  .ess__features { grid-template-columns: repeat(2, 1fr); }
  .ai__card--agents, .ai__card--face, .ai__card--cv, .ai__card--insights { grid-column: span 12; }
  .insight-viz { grid-template-columns: 1fr; }
  .ind { grid-template-columns: 1fr; }
  .ind__item { border-inline-end: 0 !important; border-bottom: 1px solid var(--line-2) !important; }
  .ind__item:last-child { border-bottom: 0 !important; }
  .integ__cloud { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .integ__cloud li { padding: 8px; font-size: .72rem; border-radius: 14px; }
  .integ__cloud li svg { width: 22px; height: 22px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom .social { margin-inline-start: 0; }
  .pay__row { grid-template-columns: 1.4fr 1fr 1fr auto; }
  .pay__row .ded { display: none; }
  .att__list, .pay__points, .download__list, .files__points, .agents__examples { grid-template-columns: 1fr; }
  .final__ctas .btn { width: 100%; }
  .modal .options .grid2 { grid-template-columns: 1fr; }
  .cvflow__stage { padding: 20px; min-height: 0; order: 1; }
  .pay__ui { order: 1; }
  .orbit__node { width: 80px; }
  .orbit__node b { font-size: .68rem; }
  .orbit__node .ico { width: 42px; height: 42px; }
  .orbit__node .ico svg { width: 18px; height: 18px; }
  .orbit__hub { width: 120px; height: 120px; }
  .orbit__hub img { height: 28px; }
  .orbit__hub span { font-size: .66rem; }
  .emp__body { grid-template-columns: 1fr; }
  .emp__body .cell.wide { grid-column: span 1; }
}
@media (min-width: 641px) {
  .modal { align-items: center; padding: 24px; }
  .modal__card { border-radius: 24px; padding: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==================================================================
   Live AI HR Assistant (chat widget)
   ================================================================== */
.ai-float { position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 49; display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 18px 0 12px; border-radius: var(--r-pill); background: #000; color: #fff; border: 1px solid #000; box-shadow: var(--sh-3); font-weight: 800; font-size: .88rem; transition: transform .2s var(--ease-spring), opacity .2s; }
html[dir="rtl"] .ai-float { padding: 0 12px 0 18px; }
.ai-float:hover { transform: translateY(-2px); }
.ai-float .ic { width: 34px; height: 34px; border-radius: 50%; background: var(--red); display: grid; place-items: center; color: #fff; }
.ai-float .ic svg { width: 18px; height: 18px; }
.ai-float.is-open, .ai-float.is-hidden { opacity: 0; pointer-events: none; }
/* the WhatsApp pill sits to the left of the assistant pill on desktop */
.wa-float { inset-inline-end: calc(24px + 190px); }
html[dir="rtl"] .wa-float { inset-inline-end: calc(24px + 172px); }

.ai-panel { position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 60; width: min(420px, calc(100vw - 48px)); height: min(640px, calc(100vh - 48px)); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-3); display: flex; flex-direction: column; overflow: hidden; animation: sheetUp .3s var(--ease); }
.ai-panel[hidden] { display: none; }
.ai-panel__head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 14px 16px; background: #000; color: #fff; }
.ai-panel__head .ai-mark { width: 36px; height: 36px; border-radius: 11px; background: var(--red); display: grid; place-items: center; color: #fff; flex: none; }
.ai-panel__head .ai-mark svg { width: 18px; height: 18px; }
.ai-panel__title { min-width: 0; flex: 1; line-height: 1.2; }
.ai-panel__title b { display: block; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-panel__title > span { display: flex; align-items: center; gap: 6px; font-size: .7rem; color: rgba(255,255,255,.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-panel__title .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex: none; }
.ai-panel__country select { appearance: none; -webkit-appearance: none; height: 32px; padding: 0 26px 0 10px; border-radius: var(--r-pill); border: 1px solid #333; background: #1b1b20 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center / 12px; color: #fff; font: inherit; font-size: .72rem; font-weight: 700; max-width: 118px; cursor: pointer; }
html[dir="rtl"] .ai-panel__country select { padding: 0 10px 0 26px; background-position: left 8px center; }
.ai-panel__close { width: 32px; height: 32px; border-radius: 50%; border: 0; background: #1b1b20; color: #fff; display: grid; place-items: center; flex: none; }
.ai-panel__close svg { width: 14px; height: 14px; }
.ai-panel__body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--mist); scroll-behavior: smooth; }
.ai-msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: .88rem; line-height: 1.55; word-wrap: break-word; animation: bubbleIn .25s var(--ease); }
.ai-msg--user { align-self: flex-end; background: #000; color: #fff; border-end-end-radius: 6px; white-space: pre-wrap; }
.ai-msg--ai { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-end-start-radius: 6px; }
.ai-msg--ai p { margin: 0 0 8px; } .ai-msg--ai p:last-child { margin: 0; }
.ai-msg--ai ul { list-style: disc; margin: 4px 0 8px; padding-inline-start: 18px; }
.ai-msg--ai ol { list-style: decimal; margin: 4px 0 8px; padding-inline-start: 18px; }
.ai-msg--ai li { margin: 2px 0; }
.ai-msg--ai strong { font-weight: 800; }
.ai-msg--ai code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82em; background: var(--mist-2); padding: 1px 5px; border-radius: 5px; }
.ai-msg--ai table { border-collapse: collapse; width: 100%; font-size: .82rem; margin: 6px 0 8px; }
.ai-msg--ai th, .ai-msg--ai td { border: 1px solid var(--line); padding: 5px 8px; text-align: start; }
.ai-msg--ai th { background: var(--mist); }
.ai-msg--ai .tag { display: inline-block; margin-top: 6px; font-size: .66rem; font-weight: 700; color: #B36F0A; background: var(--amber-tint); padding: 3px 7px; border-radius: 6px; }
.ai-msg--err { border-color: var(--red); color: var(--red); }
.ai-typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; border-end-start-radius: 6px; }
.ai-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: aiDot 1s infinite; }
.ai-typing i:nth-child(2) { animation-delay: .15s; } .ai-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes aiDot { 0%, 80%, 100% { transform: translateY(0); opacity: .4; } 40% { transform: translateY(-4px); opacity: 1; } }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ai-cta { align-self: stretch; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px dashed var(--line); font-size: .8rem; color: var(--ink-2); }
.ai-cta .btn { height: 34px; padding-inline: 12px; font-size: .78rem; flex: none; }
.ai-panel__suggest { display: flex; gap: 6px; padding: 10px 12px 0; overflow-x: auto; scrollbar-width: none; background: #fff; border-top: 1px solid var(--line); }
.ai-panel__suggest::-webkit-scrollbar { display: none; }
.ai-panel__suggest:empty { display: none; }
.ai-panel__suggest button { flex: none; font-size: .74rem; font-weight: 700; padding: 6px 11px; border-radius: var(--r-pill); background: var(--mist); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.ai-panel__suggest button:hover { border-color: var(--ink); color: var(--ink); }
.ai-panel__input { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; background: #fff; }
.ai-panel__input textarea { flex: 1; resize: none; min-height: 42px; max-height: 120px; padding: 10px 14px; border-radius: 21px; border: 1.5px solid var(--line); font: inherit; font-size: .88rem; line-height: 1.4; background: var(--mist); }
.ai-panel__input textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.ai-panel__send { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--red); color: #fff; display: grid; place-items: center; flex: none; transition: background .18s, transform .18s; }
.ai-panel__send:hover { background: var(--red-dark); }
.ai-panel__send:disabled { opacity: .5; }
html[dir="rtl"] .ai-panel__send svg { transform: scaleX(-1); }
.ai-panel__send svg { width: 16px; height: 16px; }
.ai-panel__disc { margin: 0; padding: 0 14px 10px; font-size: .66rem; line-height: 1.4; color: var(--ink-3); background: #fff; }
.ai-try { margin-top: 22px; }
.law-input { width: 100%; cursor: pointer; text-align: start; transition: border-color .18s; }
.law-input:hover { border-color: rgba(255,255,255,.4); }
@media (max-width: 640px) {
  .ai-float { bottom: calc(76px + env(safe-area-inset-bottom) + 12px); inset-inline-end: 16px; height: 48px; padding: 0 14px 0 8px; font-size: .82rem; }
  html[dir="rtl"] .ai-float { padding: 0 8px 0 14px; }
  .ai-float .ic { width: 32px; height: 32px; }
  .ai-panel { inset: 0; width: auto; height: auto; border-radius: 0; border: 0; }
  .ai-panel__country select { max-width: 110px; }
  .ai-panel__title > span { display: none; }
}
.ai-handoff { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ai-handoff .btn { height: 38px; padding-inline: 14px; font-size: .8rem; }
.ai-left { align-self: center; font-size: .68rem; font-weight: 700; color: var(--ink-3); background: #fff; border: 1px solid var(--line); padding: 3px 10px; border-radius: var(--r-pill); }
.ai-panel__input textarea:disabled { opacity: .6; }
