/* StaffGateway marketing website. Built on the IT-RANKS design system tokens (itranks-ds.css, brand "staffgateway").
   Logical properties throughout, so Arabic (dir="rtl") mirrors without separate rules. */

:root {
  --navy: var(--brand-950);
  --navy-2: var(--brand-900);
  --blue: var(--primary);
  --ink: var(--foreground);
  --soft: var(--brand-50);
  --soft-2: color-mix(in oklch, var(--brand-50) 60%, var(--background));
  --line: var(--border);
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --shadow-1: 0 1px 2px rgb(16 24 40 / 6%), 0 1px 3px rgb(16 24 40 / 8%);
  --shadow-2: 0 12px 32px -12px rgb(11 31 58 / 22%), 0 4px 10px -4px rgb(11 31 58 / 10%);
  --shadow-3: 0 30px 60px -24px rgb(6 18 40 / 45%), 0 12px 24px -12px rgb(6 18 40 / 25%);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--background); color: var(--ink);
  font-family: var(--brand-font); font-size: 1rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
html[lang="ar"] body { font-family: var(--brand-font-arabic); line-height: 1.85; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.15; margin: 0; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
html[lang="ar"] :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.4; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ring, var(--blue)); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.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; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
[dir="rtl"] .icon-dir { transform: scaleX(-1); }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow { max-width: 880px; }

.skip-link { position: absolute; inset-inline-start: 16px; top: -100px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600; }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }

/* ---------- buttons and links ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--h); padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 1rem; text-decoration: none;
  cursor: pointer; white-space: nowrap; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn .btn-arrow { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }
[dir="rtl"] .btn:hover .btn-arrow { transform: scaleX(-1) translateX(3px); }
.btn-sm { --h: 40px; padding: 0 16px; font-size: .9375rem; }
.btn-lg { --h: 54px; padding: 0 28px; font-size: 1.0625rem; }
.btn-primary { background: var(--blue); color: var(--primary-foreground); box-shadow: 0 6px 16px -6px color-mix(in oklch, var(--blue) 70%, transparent); }
.btn-primary:hover { background: var(--brand-800); }
.btn-secondary { background: var(--card); color: var(--blue); border-color: color-mix(in oklch, var(--blue) 35%, var(--line)); }
.btn-secondary:hover { border-color: var(--blue); background: var(--soft); }
.btn-ghost { background: rgb(255 255 255 / 6%); color: #fff; border-color: rgb(255 255 255 / 35%); }
.btn-ghost:hover { background: rgb(255 255 255 / 14%); border-color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--brand-100); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn-row.center { justify-content: center; }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--blue); }
.link .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link:hover .icon { transform: translateX(3px); }
[dir="rtl"] .link:hover .icon { transform: scaleX(-1) translateX(3px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in oklch, var(--background) 88%, transparent); 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;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgb(11 31 58 / 40%); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand img { height: 30px; width: auto; }
.main-nav { flex: 1; display: flex; justify-content: center; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 8px; border: 0; background: none;
  color: var(--ink); font-weight: 500; font-size: .9875rem; text-decoration: none; cursor: pointer;
}
.nav-link:hover, .nav-trigger[aria-expanded="true"] { background: var(--soft); color: var(--blue); }
.nav-link[aria-current="page"], .nav-link.is-section { color: var(--blue); font-weight: 600; }
.nav-link .chev { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.nav-trigger[aria-expanded="true"] .chev { transform: rotate(180deg); }
.has-menu { position: relative; }
.mega {
  position: absolute; top: calc(100% + 10px); inset-inline-start: 50%; translate: -50% 0; z-index: 60;
  width: min(640px, 90vw); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-3);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s;
}
[dir="rtl"] .mega { translate: 50% 0; }
.mega-sm { width: 320px; }
.has-menu.is-open .mega { opacity: 1; visibility: visible; transform: none; transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s; }
.mega-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; padding: 18px; }
.mega-sm .mega-inner { grid-template-columns: 1fr; }
.mega-title { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-foreground); padding: 4px 10px 8px; }
html[lang="ar"] .mega-title { letter-spacing: 0; text-transform: none; font-size: .8125rem; }
.mega ul { display: grid; gap: 2px; }
.mega li a { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.mega li a:hover, .mega li a[aria-current="page"] { background: var(--soft); }
.mega li b { display: block; font-weight: 600; font-size: .9375rem; }
.mega li small { display: block; color: var(--muted-foreground); font-size: .8125rem; line-height: 1.4; }
.mm-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--soft); color: var(--blue); flex: none; }
.mm-icon .icon { width: 18px; height: 18px; }
.mega .link { padding: 8px 10px; font-size: .9375rem; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-link { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .9375rem; }
.lang-link:hover { background: var(--soft); color: var(--blue); }
.lang-link .icon { width: 18px; height: 18px; }
.lang-link[lang="ar"] { font-family: var(--brand-font-arabic); }
.lang-link[lang="en"] { font-family: var(--brand-font); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); place-items: center; cursor: pointer; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
.nav-mobile-foot { display: none; }

@media (max-width: 1080px) {
  .menu-btn { display: grid; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; display: flex; flex-direction: column; justify-content: space-between;
    background: var(--background); padding: 16px var(--gutter) 24px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link { height: 52px; width: 100%; justify-content: space-between; font-size: 1.0625rem; padding: 0 12px; }
  .mega { position: static; translate: none; width: auto; box-shadow: none; border: 0; border-radius: 0; opacity: 1; visibility: visible; transform: none;
    display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); background: none; }
  [dir="rtl"] .mega { translate: none; }
  .mega > .mega-inner { overflow: hidden; min-height: 0; padding: 0 0 0 0; grid-template-columns: 1fr; }
  .has-menu.is-open .mega { grid-template-rows: 1fr; }
  .has-menu.is-open .mega > .mega-inner { padding: 4px 0 12px; }
  .nav-mobile-foot { display: block; padding-top: 16px; border-top: 1px solid var(--line); }
  .nav-mobile-foot .btn { width: 100%; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 520px) {
  .lang-link span { display: none; }
  .brand img { height: 26px; }
}

/* ---------- typography blocks ---------- */
.eyebrow { font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
html[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: .9375rem; }
.lead { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.7; }
.sec-head { max-width: 780px; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head h2, .split-copy h2 { font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.75rem); }
.sec-intro { margin-top: 16px; color: var(--muted-foreground); font-size: 1.125rem; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--navy); padding-block: clamp(48px, 7vw, 96px) clamp(56px, 7vw, 96px); isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 70% at 85% 10%, color-mix(in oklch, var(--brand-500) 55%, transparent) 0%, transparent 60%),
    radial-gradient(50% 60% at 0% 100%, color-mix(in oklch, var(--brand-600) 45%, transparent) 0%, transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
}
[dir="rtl"] .hero-bg { transform: scaleX(-1); }
.hero-bg::after { content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgb(255 255 255 / 5%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 5%) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(80% 70% at 70% 30%, #000 0%, transparent 75%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 5vw, 72px); }
.hero-compact .hero-grid, .hero:not(:has(.hero-visual)) .hero-grid { grid-template-columns: minmax(0, 860px); }
.hero .eyebrow { color: var(--brand-300); }
.hero h1 { font-size: clamp(2rem, 1.3rem + 2vw, 3rem); line-height: 1.1; }
html[lang="ar"] .hero h1 { line-height: 1.3; }
.hero .lead { margin-top: 20px; color: rgb(255 255 255 / 82%); max-width: 640px; }
.hero-message { margin-top: 18px; font-weight: 600; color: var(--brand-200); }
.hero-logo { height: 34px; width: auto; margin-bottom: 20px; }
.hero-home { padding-block-end: clamp(32px, 4vw, 48px); }
.hero-home .hero-grid { grid-template-columns: minmax(0, .92fr) minmax(0, 1.25fr); }
.hero-home h1 { font-size: clamp(2.5rem, 1.6rem + 2.8vw, 3.6rem); }
.crumbs { margin-bottom: 20px; font-size: .875rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li { color: rgb(255 255 255 / 70%); display: inline-flex; gap: 6px; align-items: center; }
.crumbs li + li::before { content: "/"; opacity: .5; }
.crumbs a { color: rgb(255 255 255 / 85%); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs [aria-current] { color: #fff; font-weight: 600; }
.strip { display: flex; flex-wrap: wrap; gap: 10px; }
.strip li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: .9375rem; font-weight: 500; }
.strip .icon { width: 18px; height: 18px; }
.strip-hero { margin-top: clamp(40px, 5vw, 64px); justify-content: center; }
.strip-hero li { background: rgb(255 255 255 / 7%); border: 1px solid rgb(255 255 255 / 14%); color: rgb(255 255 255 / 90%); }
.strip-hero .icon { color: var(--brand-300); }
.strip-light { margin-top: 32px; justify-content: center; }
.strip-light li { background: var(--soft); color: var(--brand-800); }

/* devices in heroes */
.devices { position: relative; padding-block-end: 28px; padding-inline-end: 56px; }
.devices .browser { transform: perspective(1800px) rotateY(-7deg) rotateX(2deg); transform-origin: 0 50%; }
[dir="rtl"] .devices .browser { transform: perspective(1800px) rotateY(7deg) rotateX(2deg); transform-origin: 100% 50%; }
.devices .phone-over { position: absolute; inset-inline-end: 0; bottom: 0; width: 27%; min-width: 120px; }
.devices-care .phone-over { width: 24%; }
.devices-care .phone-over.two { inset-inline-end: 22%; bottom: -14px; z-index: 0; }
.devices-care .phone-over:not(.two) { z-index: 1; }
.float {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; z-index: 2;
  background: rgb(255 255 255 / 96%); color: var(--ink); box-shadow: var(--shadow-3); font-size: .8125rem; line-height: 1.35; max-width: 250px;
  animation: floaty 6s ease-in-out infinite;
}
.float .icon { width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: var(--soft); color: var(--blue); }
.float b { display: block; font-size: .875rem; }
.float span { color: var(--muted-foreground); }
.float-1 { top: 8%; inset-inline-start: -28px; }
.float-2 { bottom: 30%; inset-inline-start: -40px; animation-delay: -2s; }
.float-3 { top: -14px; inset-inline-end: 12%; animation-delay: -4s; }
.float-1 .icon { color: var(--success, #16a34a); background: color-mix(in oklch, var(--success, #16a34a) 14%, white); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* frames */
.browser { margin: 0; border-radius: 14px; background: var(--card); box-shadow: var(--shadow-3); overflow: hidden; border: 1px solid rgb(255 255 255 / 10%); }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding-inline: 12px; background: var(--it-gray-100, #f2f4f7); border-bottom: 1px solid var(--line); }
.browser-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--it-gray-300, #d0d5dd); }
.browser-bar i { margin-inline: auto; font-style: normal; font-size: .6875rem; color: var(--muted-foreground); background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 1px 40px; }
.phone { margin: 0; position: relative; padding: 7px; border-radius: 30px; background: #0b1220; box-shadow: var(--shadow-3); }
.phone .shot { border-radius: 24px; overflow: hidden; padding-top: 22px; background: #fff; }
.phone .shot::before { content: ""; position: absolute; top: 7px; inset-inline-start: 18px; width: 22px; height: 7px; border-radius: 3px; background: #0b1220; opacity: .75; }
.phone-notch { position: absolute; top: 12px; left: 50%; translate: -50% 0; width: 30%; height: 13px; border-radius: 999px; background: #0b1220; z-index: 2; }
.shot { position: relative; display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none; cursor: zoom-in; }
.shot img { width: 100%; height: auto; }
.shot-zoom { position: absolute; inset-inline-end: 10px; bottom: 10px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: rgb(11 31 58 / 78%); color: #fff; opacity: 0; transform: scale(.9); transition: opacity .2s, transform .2s; }
.shot:hover .shot-zoom, .shot:focus-visible .shot-zoom { opacity: 1; transform: none; }
.shot-zoom .icon { width: 18px; height: 18px; }
.phone .shot-zoom { inset-inline-end: 8px; bottom: 8px; }

/* ---------- sections ---------- */
.section { padding-block: clamp(64px, 8vw, 112px); }
.section-soft { background: linear-gradient(180deg, var(--soft-2), var(--background)); }
.section + .section-soft, .section-soft + .section { border-top: 1px solid color-mix(in oklch, var(--line) 60%, transparent); }

/* dimension cards */
.dims { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.dim, .card, .modcard, .uc, .journey, .role {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; box-shadow: var(--shadow-1);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.dim:hover, .card:hover, .modcard:hover, .uc:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: color-mix(in oklch, var(--blue) 30%, var(--line)); }
.dim { display: flex; flex-direction: column; gap: 10px; }
.dim-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.dim-icon, .card-icon, .role-icon, .step-icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; color: #fff;
  background: linear-gradient(145deg, var(--brand-500), var(--brand-700)); box-shadow: 0 10px 20px -10px var(--brand-600); flex: none;
}
.dim-icon .icon, .card-icon .icon, .role-icon .icon, .step-icon .icon { width: 24px; height: 24px; }
.dim-num { font-family: var(--brand-font-mono); font-size: 1.75rem; font-weight: 700; color: var(--brand-200); line-height: 1; }
.dim h3 { font-size: 1.375rem; }
.dim-sub { color: var(--blue); font-weight: 600; font-size: .9375rem; }
.dim p:not(.dim-sub) { color: var(--muted-foreground); font-size: .9375rem; }
.dim .ticks { margin-top: 4px; }
.dim-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.foundation { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 18px 24px; border-radius: var(--r); background: var(--soft); border: 1px solid color-mix(in oklch, var(--blue) 15%, var(--line)); }
.foundation b { font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-800); }
html[lang="ar"] .foundation b { letter-spacing: 0; text-transform: none; font-size: .9375rem; }
.foundation ul { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foundation li { font-weight: 600; font-size: .9375rem; display: inline-flex; align-items: center; gap: 8px; }
.foundation li + li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brand-400); margin-inline-end: 12px; }

/* switch */
.switch { display: inline-flex; align-items: center; gap: 10px; border: 0; background: none; padding: 4px 0; cursor: pointer; font-size: .875rem; color: var(--muted-foreground); }
.switch-track { position: relative; width: 44px; height: 26px; border-radius: 999px; background: var(--it-gray-300, #d0d5dd); transition: background .2s var(--ease); flex: none; }
.switch-track span { position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 25%); transition: inset-inline-start .25s var(--ease); }
.switch[aria-checked="true"] .switch-track { background: var(--blue); }
.switch[aria-checked="true"] .switch-track span { inset-inline-start: 21px; }
.switch[aria-checked="true"] { color: var(--ink); font-weight: 600; }

.mix { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; border-radius: var(--r);
  background: var(--navy); color: #fff; }
.mix b { display: block; }
.mix span { color: rgb(255 255 255 / 75%); font-size: .9375rem; }
.mix .btn-primary { background: #fff; color: var(--navy); box-shadow: none; }
.mix .btn-primary:hover { background: var(--brand-100); }

/* ticks */
.ticks { display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: .9375rem; }
.ticks .icon { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--soft); color: var(--blue); margin-top: 3px; }
.ticks-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.ticks-light li { color: rgb(255 255 255 / 88%); }
.ticks-light .icon { background: rgb(255 255 255 / 12%); color: var(--brand-200); }

/* tour */
.tour-tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-1); margin-bottom: 28px; }
.tour-tabs [role="tab"] { border: 0; background: none; padding: 10px 18px; border-radius: 10px; font-weight: 600; color: var(--muted-foreground); cursor: pointer; transition: background .2s, color .2s; }
.tour-tabs [role="tab"]:hover { color: var(--ink); background: var(--soft); }
.tour-tabs [role="tab"][aria-selected="true"] { background: var(--blue); color: #fff; }
.tour-panels { display: grid; }
.tour-panel { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(220px, .55fr) minmax(0, 1.6fr); gap: 36px; align-items: center; }
.js .tour-panel[data-inactive] { visibility: hidden; opacity: 0; pointer-events: none; }
.js .tour-panel { transition: opacity .35s var(--ease), visibility 0s; }
.js .tour-panel[data-inactive] { transition: opacity .2s var(--ease), visibility 0s .2s; }
.tour-caption h3 { font-size: 1.5rem; margin-bottom: 10px; }
.tour-caption p { color: var(--muted-foreground); }
.no-js .tour-panel + .tour-panel { margin-top: 40px; }
.no-js .tour-panels { display: block; }

/* split */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.split-reverse .split-copy { order: 2; }
.split-wide { grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); }
.split-copy > p:not(.eyebrow) { margin-top: 16px; color: var(--muted-foreground); font-size: 1.0625rem; }
.split-copy > .eyebrow + h2 { margin-bottom: 4px; }
.split-copy .chips, .split-copy .ticks, .split-copy .features, .split-copy .numbered { margin-top: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 14px; border-radius: 999px; background: var(--soft); color: var(--brand-800); font-weight: 600; font-size: .875rem; }
.chips-solid li { background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.features li { display: flex; gap: 12px; align-items: flex-start; }
.features .icon { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--soft); color: var(--blue); }
.features b { display: block; margin-bottom: 2px; }
.features p { color: var(--muted-foreground); font-size: .9375rem; line-height: 1.55; }
.numbered { display: grid; gap: 14px; }
.numbered li { display: flex; gap: 14px; align-items: flex-start; }
.numbered li > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; flex: none; }
.numbered p { color: var(--muted-foreground); font-size: .9375rem; }
.callout { margin-top: 22px; display: flex; gap: 10px; align-items: center; padding: 14px 18px; border-radius: 12px; background: var(--soft); color: var(--brand-900); font-weight: 600; }
.callout .icon { color: var(--blue); }
.note { margin-top: 18px; font-size: .875rem; color: var(--muted-foreground); padding-inline-start: 12px; border-inline-start: 3px solid var(--brand-200); }
.media-phone { display: grid; justify-items: center; }
.media-phone .phone { width: min(300px, 70%); }
.media-phone.sm .phone { width: min(220px, 60%); }
.media-phones { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; justify-items: center; align-items: start; padding-inline: 4%; }
.media-phones .phone:nth-child(2) { margin-top: 48px; }
.split-media .browser { border-color: var(--line); }
.split-aside { padding: 28px; border-radius: var(--r-lg); background: var(--soft-2); border: 1px solid var(--line); }
.split-aside .chips { gap: 10px; }
.split-aside .chips li { background: var(--card); border: 1px solid var(--line); color: var(--ink); padding: 8px 16px; }

/* cards */
.cards { display: grid; gap: 20px; }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; gap: 10px; }
.card h3 { font-size: 1.1875rem; margin-top: 8px; }
.card p { color: var(--muted-foreground); font-size: .9375rem; }
.card .link { margin-top: auto; padding-top: 8px; }
.banner-note { margin-top: 28px; display: flex; gap: 12px; align-items: center; justify-content: center; text-align: center; font-weight: 600; font-size: 1.125rem; color: var(--brand-900); }
.banner-note .icon { color: var(--blue); }

/* roles */
.roles { display: grid; gap: 16px; }
.roles-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.roles-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.role { padding: 22px; }
.role-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--soft); color: var(--blue); box-shadow: none; }
.role-icon .icon { width: 22px; height: 22px; }
.role h3 { font-size: 1.0625rem; margin: 14px 0 6px; }
.role p { color: var(--muted-foreground); font-size: .9375rem; }

/* steps */
.steps { display: grid; gap: 16px; counter-reset: s; position: relative; }
.steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow-1); }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; inset-inline-end: -13px; width: 10px; height: 10px; z-index: 1;
  border-top: 2px solid var(--brand-400); border-inline-end: 2px solid var(--brand-400); transform: translateY(-50%) rotate(45deg);
}
[dir="rtl"] .step:not(:last-child)::after { transform: translateY(-50%) rotate(-45deg); }
.step-num { position: absolute; top: 18px; inset-inline-end: 20px; font-family: var(--brand-font-mono); font-weight: 700; font-size: 1.5rem; color: var(--brand-200); }
.step-icon { width: 46px; height: 46px; border-radius: 13px; }
.step h3 { font-size: 1.125rem; margin: 16px 0 6px; text-transform: none; }
.step p { color: var(--muted-foreground); font-size: .9375rem; }

/* systems */
.systems { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sysbox { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.sysbox-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: .875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-800); }
html[lang="ar"] .sysbox-head { letter-spacing: 0; text-transform: none; font-size: 1rem; }
.sysbox-head .icon { color: var(--blue); }

/* diagrams */
.pdiag { display: grid; gap: 14px; }
.pdiag-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 14px 18px; border-radius: 14px; background: rgb(255 255 255 / 8%); border: 1px solid rgb(255 255 255 / 14%); }
.pdiag-bar b { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-300); margin-inline-end: 4px; }
html[lang="ar"] .pdiag-bar b { letter-spacing: 0; text-transform: none; font-size: .875rem; }
.pdiag-bar span { display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; color: rgb(255 255 255 / 88%); }
.pdiag-bar .icon { width: 16px; height: 16px; color: var(--brand-300); }
.pdiag-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pdiag-tile { position: relative; display: grid; gap: 6px; padding: 18px; border-radius: 14px; background: #fff; color: var(--ink); box-shadow: var(--shadow-2); }
.pdiag-tile .icon { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: linear-gradient(145deg, var(--brand-500), var(--brand-700)); color: #fff; }
.pdiag-tile b { font-size: 1.0625rem; }
.pdiag-tile span:not(.num) { font-size: .8125rem; color: var(--muted-foreground); line-height: 1.4; }
.pdiag-tile .num { position: absolute; top: 14px; inset-inline-end: 16px; font-family: var(--brand-font-mono); font-weight: 700; color: var(--brand-200); }
.pdiag-tile.opt { background: color-mix(in oklch, var(--brand-50) 85%, white); }
.pdiag-found { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding: 12px 16px; border-radius: 12px; background: rgb(255 255 255 / 92%); color: var(--ink); }
.pdiag-found b { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-800); }
html[lang="ar"] .pdiag-found b { letter-spacing: 0; text-transform: none; font-size: .8125rem; }
.pdiag-found span { font-size: .8125rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--soft); color: var(--brand-800); }

.modviz { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.modviz-tile { position: relative; display: grid; gap: 6px; padding: 20px; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: var(--shadow-2); }
.modviz-tile .icon { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--navy); color: #fff; }
.modviz-tile b { font-size: 1.125rem; }
.modviz-tile span { font-size: .875rem; color: var(--blue); font-weight: 600; }
.modviz-tile .sw { position: absolute; top: 20px; inset-inline-end: 20px; width: 40px; height: 24px; border-radius: 999px; background: var(--blue); }
.modviz-tile .sw::after { content: ""; position: absolute; top: 3px; inset-inline-end: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; }
.modviz-tile:nth-child(2) { transform: translateY(22px); }
.modviz-tile:nth-child(4) { transform: translateY(22px); }

.idiag-arrow { display: grid; place-items: center; color: var(--brand-400); }
.idiag-arrow .icon { width: 26px; height: 26px; }
.idiag-compact { display: grid; grid-template-columns: 1fr auto 1.2fr auto 1fr; gap: 12px; align-items: center; }
.ic-col { display: grid; gap: 10px; padding: 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.ic-label { font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--muted-foreground); }
html[lang="ar"] .ic-label { letter-spacing: 0; text-transform: none; font-size: .8125rem; }
.ic-who { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .875rem; }
.ic-who .icon { width: 32px; height: 32px; padding: 7px; border-radius: 9px; background: var(--blue); color: #fff; }
.ic-core { border: 2px solid var(--blue); background: color-mix(in oklch, var(--brand-50) 70%, white); }
.ic-logo { height: 24px; width: auto; }
.ic-chips { display: grid; gap: 6px; }
.ic-chips span { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: .8125rem; font-weight: 600; }
.ic-chips .icon { width: 16px; height: 16px; color: var(--blue); }
.ic-sys { display: flex; flex-wrap: wrap; gap: 6px; }
.ic-sys span { font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--soft); color: var(--brand-800); }

.idiag-full { display: grid; grid-template-columns: .9fr 40px 1.4fr 40px 1.1fr; gap: 0; align-items: stretch; }
.if-col { display: grid; gap: 14px; align-content: center; }
.if-who { display: flex; gap: 12px; align-items: center; padding: 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.if-who .icon { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--blue); color: #fff; }
.if-who b { display: block; }
.if-who span { font-size: .8125rem; color: var(--muted-foreground); }
.if-link { position: relative; }
.if-link::before { content: ""; position: absolute; top: 50%; inset-inline: 6px; height: 2px; background: repeating-linear-gradient(90deg, var(--brand-400) 0 6px, transparent 6px 10px); }
.if-core { padding: 22px; border-radius: 18px; border: 2px solid var(--blue); background: color-mix(in oklch, var(--brand-50) 65%, white); display: grid; gap: 16px; align-content: center; }
.if-core-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.if-core-head img { height: 28px; width: auto; }
.if-core-head span { font-size: .8125rem; color: var(--blue); font-weight: 600; }
.if-channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.if-channels span { display: grid; justify-items: center; gap: 6px; padding: 16px 8px; border-radius: 12px; color: #fff; font-weight: 600; font-size: .875rem; text-align: center; }
.if-channels .c1 { background: var(--brand-600); }
.if-channels .c2 { background: color-mix(in oklch, var(--brand-chart-3) 85%, black); }
.if-channels .c3 { background: color-mix(in oklch, var(--brand-chart-2) 90%, black); }
.if-channels .icon { width: 26px; height: 26px; }
.if-layer { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.if-layer span { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: .8125rem; font-weight: 600; }
.if-layer .icon { width: 18px; height: 18px; color: var(--blue); }
.if-sys { padding: 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-1); display: grid; gap: 12px; }
.if-sys > .icon { color: var(--blue); }
.if-sys b { font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; }
html[lang="ar"] .if-sys b { letter-spacing: 0; text-transform: none; font-size: .9375rem; }
.if-sys > div { display: flex; flex-wrap: wrap; gap: 6px; }
.if-sys > div span { font-size: .8125rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--soft); color: var(--brand-800); }
.checks-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; margin-top: 32px; }
.checks-row li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.checks-row .icon { color: var(--blue); }

.adiag { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 14px; align-items: center; }
.adiag-box { padding: 24px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-1); display: grid; gap: 8px; }
.adiag-box .icon { width: 28px; height: 28px; color: var(--blue); }
.adiag-box p { color: var(--muted-foreground); font-size: .9375rem; }
.adiag-core { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 30px 24px; border-radius: 18px; color: #fff; background: linear-gradient(145deg, var(--brand-600), var(--brand-800)); box-shadow: var(--shadow-2); }
.adiag-core .icon { width: 40px; height: 40px; }
.adiag-core b { font-size: 1.125rem; }
.adiag-core span { color: rgb(255 255 255 / 80%); font-size: .875rem; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 28px; }
.gal h3 { font-size: 1.1875rem; margin: 18px 0 6px; }
.gal p { color: var(--muted-foreground); font-size: .9375rem; }
.gal .browser, .flow .browser, .tour .browser { border-color: var(--line); box-shadow: var(--shadow-2); }

/* flow */
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.flow-step { display: grid; gap: 18px; }
.flow-media { height: 340px; display: grid; align-items: end; }
.flow .media-phone.sm .phone { width: 150px; }
.flow-copy { position: relative; }
.flow-num { font-family: var(--brand-font-mono); font-weight: 700; color: var(--brand-300); font-size: 1.25rem; }
.flow-copy h3 { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; margin: 4px 0 6px; }
.flow-copy h3 .icon { color: var(--blue); }
.flow-copy p { color: var(--muted-foreground); font-size: .9375rem; }
.safeguards { margin-top: 36px; padding: 24px 28px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }

/* module cards */
.modcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.modcard { display: flex; flex-direction: column; gap: 8px; }
.modcard-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 10px; }
.modcard-top .switch-label { font-size: .75rem; }
.modcard h3 { font-size: 1.3125rem; }
.modcard p:not(.dim-sub) { color: var(--muted-foreground); font-size: .9375rem; }
.modcard .link { margin-top: auto; padding-top: 10px; }
.roadmap { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 20px 24px; border-radius: var(--r); border: 1px dashed var(--brand-300); background: var(--soft-2); }
.roadmap > .icon { width: 28px; height: 28px; color: var(--blue); }
.roadmap b { display: block; }
.roadmap span { color: var(--muted-foreground); font-size: .9375rem; }
.roadmap ul { display: flex; flex-wrap: wrap; gap: 8px; }
.roadmap li { padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: .875rem; color: var(--muted-foreground); }

/* use cases and journeys */
.uc-filters, .faq-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip-btn { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-weight: 600; font-size: .9375rem; cursor: pointer; color: var(--muted-foreground); transition: all .2s var(--ease); }
.chip-btn:hover { color: var(--ink); border-color: var(--brand-300); }
.chip-btn[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.usecases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.uc { display: flex; flex-direction: column; gap: 10px; transition: opacity .25s, transform .25s; }
.uc[hidden] { display: none; }
.uc h3 { font-size: 1.1875rem; margin-top: 6px; }
.uc p { color: var(--muted-foreground); font-size: .9375rem; }
.uc .uc-mods { margin-top: auto; padding-top: 10px; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--ink); }
html[lang="ar"] .uc .uc-mods { letter-spacing: 0; text-transform: none; font-size: .875rem; }
.modchips { display: flex; flex-wrap: wrap; gap: 6px; }
.modchips a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--soft); color: var(--brand-800); font-weight: 600; font-size: .8125rem; text-decoration: none; }
.modchips a:hover { background: var(--brand-100); }
.modchips .icon { width: 15px; height: 15px; }
.journeys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.journey { position: relative; display: grid; gap: 10px; align-content: start; }
.journey .card-icon { width: 44px; height: 44px; border-radius: 12px; }
.journey .step-num { top: 22px; }
.journey h3 { font-size: 1.125rem; }
.journey p { color: var(--muted-foreground); font-size: .9375rem; }

/* table */
.table-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow-1); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { text-align: start; padding: 16px 20px; vertical-align: top; border-bottom: 1px solid var(--line); font-size: .9375rem; }
thead th { background: var(--soft); font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-900); }
html[lang="ar"] thead th { letter-spacing: 0; text-transform: none; font-size: .9375rem; }
tbody th { font-weight: 700; }
tbody tr:last-child > * { border-bottom: 0; }
td { color: var(--muted-foreground); }

/* faq */
.faq-tools { display: grid; gap: 16px; margin-bottom: 32px; }
.search { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); box-shadow: var(--shadow-1); }
.search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in oklch, var(--blue) 20%, transparent); }
.search .icon { color: var(--muted-foreground); }
.search input { flex: 1; border: 0; outline: none; font: inherit; background: none; height: 100%; color: var(--ink); }
.faq-filters { margin-bottom: 0; }
.faq-count { font-size: .875rem; color: var(--muted-foreground); }
.faq-group { margin-bottom: 40px; }
.faq-group h2 { font-size: 1.5rem; margin-bottom: 16px; }
.faq-group[hidden] { display: none; }
.faq-list { display: grid; gap: 10px; }
.qa { border: 1px solid var(--line); border-radius: 14px; background: var(--card); transition: border-color .2s, box-shadow .2s; }
.qa[hidden] { display: none; }
.qa[open] { border-color: color-mix(in oklch, var(--blue) 35%, var(--line)); box-shadow: var(--shadow-1); }
.qa summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 20px; cursor: pointer; font-weight: 600; font-size: 1.0625rem; }
.qa summary::-webkit-details-marker { display: none; }
.qa-chev { color: var(--blue); transition: transform .3s var(--ease); }
.qa[open] .qa-chev { transform: rotate(180deg); }
.qa-body { padding: 0 20px 20px; color: var(--muted-foreground); }
.faq-more { margin-top: 20px; }
.faq-empty { padding: 32px; text-align: center; color: var(--muted-foreground); border: 1px dashed var(--line); border-radius: var(--r); }

/* cta */
.cta { position: relative; overflow: hidden; color: #fff; background: var(--navy); padding-block: clamp(72px, 9vw, 120px); isolation: isolate; text-align: center; }
.cta-bg { position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(50% 80% at 50% 120%, color-mix(in oklch, var(--brand-500) 60%, transparent), transparent 70%), linear-gradient(160deg, var(--navy), var(--navy-2)); }
.cta-bg::after { content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgb(255 255 255 / 18%) 1px, transparent 1px); background-size: 22px 22px; mask-image: radial-gradient(60% 70% at 50% 50%, #000, transparent 75%); }
.cta-inner { max-width: 820px; }
.cta h2 { font-size: clamp(1.875rem, 1.2rem + 2.2vw, 3rem); }
.cta p { margin-top: 16px; color: rgb(255 255 255 / 80%); font-size: 1.125rem; }

/* demo */
.hero-demo { padding-block: clamp(40px, 6vw, 80px); }
.demo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.expect-title { font-size: 1.125rem; margin: 32px 0 14px; }
.reassure { margin-top: 24px; color: rgb(255 255 255 / 70%); font-size: .9375rem; }
.demo-card { background: var(--card); color: var(--ink); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow-3); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.field { display: grid; gap: 6px; margin-bottom: 4px; }
.demo-form > .field, .demo-form > fieldset { margin-top: 18px; }
.field label, .field legend { font-weight: 600; font-size: .9375rem; }
.field legend { margin-bottom: 4px; }
.req { color: var(--destructive, #d92d20); }
.field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--input, var(--line));
  background: var(--background); font: inherit; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 110px; resize: vertical; border-radius: 20px; }
.field input:not([type=checkbox]):focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in oklch, var(--blue) 20%, transparent); }
.field.is-invalid input:not([type=checkbox]), .field.is-invalid select { border-color: var(--destructive, #d92d20); }
.field-hint { font-size: .8125rem; color: var(--muted-foreground); }
.field-err { font-size: .875rem; color: var(--destructive, #d92d20); font-weight: 600; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.check { display: flex; align-items: flex-start; gap: 10px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 500; font-size: .9375rem; line-height: 1.45; }
.check:has(input:checked) { border-color: var(--blue); background: var(--soft); }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--blue); flex: none; }
.field[data-field="consent"] .check { border: 0; padding: 0; }
.field[data-field="consent"] .check:has(input:checked) { background: none; }
.demo-form .btn-lg { width: 100%; margin-top: 22px; }
.form-alert { padding: 12px 16px; border-radius: 10px; background: color-mix(in oklch, var(--destructive, #d92d20) 10%, white); color: var(--destructive, #b42318); font-weight: 600; margin-bottom: 8px; }
.form-done { text-align: center; padding: 40px 12px; display: grid; justify-items: center; gap: 12px; }
.form-done:focus { outline: none; }
.done-icon { width: 64px; height: 64px; color: var(--success, #16a34a); }
.form-done h2 { font-size: 1.5rem; }
.form-done p { color: var(--muted-foreground); max-width: 420px; }

/* prose */
.prose p { margin-bottom: 16px; font-size: 1.0625rem; }

/* illustrative interfaces */
.illus { position: relative; margin: 0; padding: 22px; border-radius: 22px; background: linear-gradient(160deg, #fff, var(--brand-50)); color: var(--ink); box-shadow: var(--shadow-3); }
.hero .illus { max-width: 460px; margin-inline: auto; }
.illus-label { position: absolute; top: -12px; inset-inline-end: 18px; font-size: .6875rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--it-amber-100, #fef0c7); color: var(--it-amber-900, #7a2e0e); letter-spacing: .04em; }
.ill-mini { font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-foreground); }
html[lang="ar"] .ill-mini { letter-spacing: 0; text-transform: none; font-size: .8125rem; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--blue); color: #fff; font-size: .75rem; font-weight: 600; }
.pill .icon { width: 14px; height: 14px; }
.ill-chat { display: grid; gap: 12px; }
.ill-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.ill-head .icon { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--navy); color: #fff; }
.dot-online { width: 9px; height: 9px; border-radius: 50%; background: var(--success, #16a34a); margin-inline-start: auto; }
.bubble { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: .9rem; line-height: 1.5; }
.bubble.bot { background: #fff; border: 1px solid var(--line); border-end-start-radius: 4px; }
.bubble.me { background: var(--blue); color: #fff; justify-self: end; border-end-end-radius: 4px; }
.ill-card { margin-top: 10px; display: grid; gap: 4px; padding: 12px; border-radius: 12px; background: var(--soft); }
.ill-card span:not(.pill) { font-size: .8125rem; color: var(--muted-foreground); }
.ill-card .pill { justify-self: start; margin-top: 4px; }
.ill-input { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 10px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--muted-foreground); font-size: .875rem; }
[dir="rtl"] .ill-input { padding: 10px 16px 10px 10px; }
.ill-input .icon { width: 32px; height: 32px; padding: 7px; border-radius: 50%; background: var(--blue); color: #fff; }
.ill-skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ill-skill { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 18px 10px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .8125rem; }
.ill-skill .icon { width: 38px; height: 38px; padding: 8px; border-radius: 11px; background: var(--soft); color: var(--blue); }
.ill-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ill-focus { display: grid; justify-items: center; gap: 12px; padding: 18px; border-radius: 16px; background: var(--navy); color: #fff; }
.ill-focus .ill-mini { color: var(--brand-300); justify-self: start; }
.ring { display: grid; place-items: center; align-content: center; width: 130px; height: 130px; border-radius: 50%; border: 8px solid rgb(255 255 255 / 15%); border-top-color: var(--brand-400); border-inline-end-color: var(--brand-400); }
.ring b { font-size: 1.75rem; font-family: var(--brand-font-mono); }
.ring span { font-size: .6875rem; color: rgb(255 255 255 / 70%); }
.ill-challenge { display: grid; gap: 6px; align-content: start; padding: 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.ill-challenge b { font-size: 1.125rem; }
.ill-challenge > span:not(.ill-mini) { font-size: .8125rem; color: var(--muted-foreground); }
.ill-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 8px; }
.ill-grid i { aspect-ratio: 1; border-radius: 3px; background: var(--it-gray-200, #eaecf0); }
.ill-grid i.on { background: var(--success, #16a34a); }
.ill-feed { display: grid; gap: 12px; }
.ill-compose { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--muted-foreground); font-size: .875rem; }
.ill-compose .icon { color: var(--blue); }
.ill-post { padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); display: grid; gap: 12px; }
.ill-post header { display: flex; gap: 10px; align-items: center; }
.av { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: .8125rem; }
.ill-post header b { display: block; font-size: .9375rem; }
.ill-post header span { font-size: .75rem; color: var(--muted-foreground); }
.ill-post p { font-size: .9rem; }
.ill-photo { display: grid; place-items: center; height: 150px; border-radius: 12px; color: #fff;
  background: radial-gradient(circle at 30% 40%, var(--brand-chart-2), transparent 55%), radial-gradient(circle at 75% 60%, var(--brand-chart-5), transparent 55%), linear-gradient(135deg, var(--brand-400), var(--brand-700)); }
.ill-photo .icon { width: 32px; height: 32px; opacity: .8; }
.ill-post footer { display: flex; gap: 18px; font-size: .8125rem; color: var(--muted-foreground); }
.ill-post footer span { display: inline-flex; gap: 6px; align-items: center; }
.ill-post footer .icon { width: 16px; height: 16px; }
.ill-poll { display: grid; gap: 10px; }
.ill-poll > b { font-size: 1.0625rem; margin-bottom: 4px; }
.ill-bar { position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line); overflow: hidden; font-size: .875rem; font-weight: 600; isolation: isolate; }
.ill-bar i { position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--w); background: var(--brand-100); z-index: -1; }
.ill-note { font-size: .8125rem; color: var(--muted-foreground); }
.ill-events { display: grid; gap: 12px; }
.ill-week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.ill-week span { display: grid; justify-items: center; gap: 2px; padding: 10px 4px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.ill-week i { font-style: normal; font-size: .6875rem; color: var(--muted-foreground); }
.ill-week b { font-size: 1.125rem; }
.ill-week span.on { background: var(--blue); color: #fff; border-color: var(--blue); }
.ill-week span.on i { color: rgb(255 255 255 / 80%); }
.ill-event { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.ill-event .time { font-family: var(--brand-font-mono); font-weight: 700; color: var(--blue); font-size: .875rem; }
.ill-event b { display: block; font-size: .9375rem; }
.ill-event div span { font-size: .75rem; color: var(--muted-foreground); }
.ill-ticket { display: grid; gap: 10px; padding: 22px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.ill-ticket-top { display: flex; align-items: center; gap: 8px; color: var(--blue); font-weight: 600; font-size: .875rem; }
.ill-ticket > b { font-size: 1.375rem; }
.ill-ticket > span { color: var(--muted-foreground); font-size: .9375rem; }
.ill-ticket-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.ill-ticket-row span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; background: var(--soft); font-size: .8125rem; font-weight: 600; }
.ill-ticket-row i { font-style: normal; }
.ill-ticket-row .icon { width: 16px; height: 16px; color: var(--blue); }
.btn-fake { margin-top: 8px; display: grid; place-items: center; height: 46px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 600; }

/* lightbox */
.lightbox { width: min(1400px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: 16px; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgb(6 14 30 / 82%); backdrop-filter: blur(4px); }
.lightbox img { width: 100%; height: auto; max-height: 88vh; object-fit: contain; border-radius: 14px; background: #fff; }
.lightbox-close { position: absolute; top: -14px; inset-inline-end: -14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-2); }
.lightbox[open] { animation: lb-in .25s var(--ease); }
@keyframes lb-in { from { opacity: 0; transform: scale(.97); } }

/* footer */
.site-footer { background: var(--navy); color: rgb(255 255 255 / 78%); padding-top: clamp(56px, 7vw, 88px); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.8fr; gap: 48px; padding-bottom: 48px; }
.footer-brand img { height: 30px; width: auto; margin-bottom: 18px; }
.footer-brand .f-logo-light { display: none; }
.footer-brand p { max-width: 420px; font-size: .9375rem; }
.footer-tag { margin: 14px 0 22px; color: #fff; font-weight: 600; }
.footer-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer-nav h2 { font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
html[lang="ar"] .footer-nav h2 { letter-spacing: 0; text-transform: none; font-size: 1rem; }
.footer-nav ul { display: grid; gap: 10px; }
.footer-nav a { color: rgb(255 255 255 / 78%); text-decoration: none; font-size: .9375rem; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-block: 22px; border-top: 1px solid rgb(255 255 255 / 12%); font-size: .875rem; }
.footer-bottom .lang-link { color: #fff; }
.footer-bottom .lang-link:hover { background: rgb(255 255 255 / 10%); color: #fff; }

/* 404 */
.nf { display: grid; place-items: center; min-height: 100vh; text-align: center; padding: 24px; }
.nf-main { display: grid; gap: 28px; justify-items: center; }
.nf-main section { display: grid; gap: 10px; justify-items: center; }
html .nf section[lang="ar"] { font-family: var(--brand-font-arabic); }

/* reveal on scroll */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .float { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .dims { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roles-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps-5 .step:nth-child(3)::after { display: none; }
  .modcards, .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .idiag-full { grid-template-columns: 1fr; gap: 16px; }
  .if-link { height: 26px; }
  .if-link::before { top: 0; bottom: 0; inset-inline: auto; left: 50%; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--brand-400) 0 6px, transparent 6px 10px); }
  .if-col { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .if-col .ic-label { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .hero-grid, .hero-home .hero-grid, .split, .split-wide, .demo-grid { grid-template-columns: minmax(0, 1fr); }
  .split-reverse .split-copy { order: 0; }
  .hero-visual { max-width: 720px; }
  .devices { padding-inline-end: 40px; }
  .float-1 { inset-inline-start: 0; }
  .float-2 { inset-inline-start: 0; }
  .tour-panel { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .cards-3, .usecases, .journeys, .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-4 .step:nth-child(2)::after { display: none; }
  .gallery, .systems { grid-template-columns: minmax(0, 1fr); }
  .idiag-compact, .adiag { grid-template-columns: minmax(0, 1fr); }
  .idiag-arrow .icon, .adiag .idiag-arrow .icon { transform: rotate(90deg); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .dims, .roles-5, .roles-4, .steps-5, .steps-4, .cards-2, .cards-3, .cards-4, .modcards, .usecases, .journeys, .flow { grid-template-columns: minmax(0, 1fr); }
  .step::after { display: none; }
  .features, .ticks-2, .form-grid, .checks { grid-template-columns: minmax(0, 1fr); }
  .float { display: none; }
  .devices { padding-inline-end: 28px; padding-block-end: 20px; }
  .devices .browser, [dir="rtl"] .devices .browser { transform: none; }
  .devices .phone-over { width: 34%; min-width: 0; }
  .devices-care .phone-over.two { display: none; }
  .tour-tabs { display: flex; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .tour-tabs [role="tab"] { white-space: nowrap; }
  .media-phones { gap: 14px; padding-inline: 0; }
  .ill-skills { grid-template-columns: repeat(2, 1fr); }
  .ill-tools { grid-template-columns: minmax(0, 1fr); }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mix { padding: 16px; }
  .mix .btn { width: 100%; }
  .browser-bar i { padding: 1px 20px; }
  .modviz-tile:nth-child(2), .modviz-tile:nth-child(4) { transform: none; }
  .modviz { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .modviz-tile { padding: 14px; }
  .modviz-tile .sw { display: none; }
}
