/* ==========================================================================
   Smart Code — Phase 1 homepage
   Arabic RTL / English LTR. Logical properties are used throughout so that
   layout, spacing and ordering mirror automatically with the document dir.
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL OFL 1.1 — see assets/fonts/*.txt) ---------- */
/* Inter is the official variable font (wght axis 100–900), so a range is correct here. */
@font-face {
  font-family: 'Inter Var';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/inter-latin-wght-normal.woff2) format('woff2-variations'), url(../fonts/inter-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* IBM Plex Sans Arabic ships as static files: one @font-face per real weight
   (400/500/600/700). No ranges, so no weight is claimed that a file lacks. */
@font-face {
  font-family: 'Plex Arabic';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(../fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Plex Arabic';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(../fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Plex Arabic';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(../fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Plex Arabic';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(../fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

/* ---------- Tokens ---------- */
:root {
  --navy: #09264b;
  --navy-2: #0e3466;
  --blue: #1670c5;
  --blue-600: #115da6;
  --blue-50: #eaf3fc;
  --yellow: #ffc400;
  --bg: #f5f5f7;
  --white: #ffffff;
  --ink: #0b1b33;
  --muted: #55657a;
  --line: rgba(9, 38, 75, 0.1);
  --ok: #1a9b62;

  --font: 'Inter Var', 'Plex Arabic', system-ui, -apple-system, 'Segoe UI', Tahoma, Arial, sans-serif;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(9, 38, 75, 0.06), 0 4px 14px rgba(9, 38, 75, 0.06);
  --shadow-md: 0 2px 6px rgba(9, 38, 75, 0.06), 0 18px 40px rgba(9, 38, 75, 0.1);
  --shadow-device: 0 30px 60px -20px rgba(9, 38, 75, 0.35), 0 12px 24px -12px rgba(9, 38, 75, 0.25);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 68px;
  --gutter: clamp(20px, 5vw, 40px);
  --dirx: 1;
}
[dir='rtl'] { --dirx: -1; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
  overflow-x: hidden;
}
@supports (overflow-x: clip) { body { overflow-x: clip; } }
:lang(ar) body, html[lang='ar'] body { line-height: 1.75; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
address { font-style: normal; }
main:focus { outline: none; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
[dir='rtl'] .arrow { transform: scaleX(-1); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--navy);
  color: #fff;
  border-radius: 10px;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Typography ---------- */
.eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-block-end: 14px;
}
:lang(ar) .eyebrow, [lang='ar'] .eyebrow { letter-spacing: 0; text-transform: none; font-size: 0.875rem; font-weight: 500; }

.section { padding-block: clamp(72px, 10vw, 128px); }
.section__head { max-width: 760px; margin-block-end: clamp(36px, 5vw, 56px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__title {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--navy);
  text-wrap: balance;
}
:lang(ar) .section__title, [lang='ar'] .section__title { letter-spacing: 0; line-height: 1.3; }
.section__lead {
  margin-block-start: 18px;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--muted);
  max-width: 62ch;
  text-wrap: pretty;
}
.section__head--center .section__lead { margin-inline: auto; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 44px;
  padding: 0.7em 1.4em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.2;
  white-space: nowrap;
  border: 1.5px solid transparent;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.btn .arrow { width: 1.05em; height: 1.05em; transition: transform 0.25s var(--ease); }
.btn:hover .arrow, .link-arrow:hover .arrow { transform: translateX(calc(3px * var(--dirx))) scaleX(var(--dirx)); }
.btn:active { transform: scale(0.98); }
.btn--lg { min-height: 54px; padding: 0.85em 1.8em; font-size: 1.05rem; }
.btn--sm { min-height: 40px; padding: 0.55em 1.15em; font-size: 0.92rem; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px -8px rgba(22, 112, 197, 0.55); }
.btn--primary:hover { background: var(--blue-600); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-2); }
.btn--ghost { background: rgba(255, 255, 255, 0.7); color: var(--navy); border-color: rgba(9, 38, 75, 0.18); }
.btn--ghost:hover { border-color: var(--navy); background: #fff; }
.btn--outline-light { color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 44px;
  font-weight: 600;
  color: var(--blue);
}
.link-arrow:hover span:first-child { text-decoration: underline; text-underline-offset: 4px; }
.link-arrow .arrow { width: 1.1em; height: 1.1em; transition: transform 0.25s var(--ease); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 50;
  background: rgba(245, 245, 247, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-block-end: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.3s;
}
.site-header.is-scrolled { border-block-end-color: var(--line); background: rgba(255, 255, 255, 0.82); }
.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; flex: none; }
.brand__logo { width: 46px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-weight: 700; font-size: 1.08rem; color: var(--navy); letter-spacing: -0.01em; }
:lang(en) .brand__name { text-transform: uppercase; letter-spacing: 0.01em; }
.brand__tag { font-size: 0.68rem; color: var(--muted); }
:lang(ar) .brand__tag { font-size: 0.74rem; }

.nav { display: none; margin-inline-start: auto; }
.nav__list { display: flex; gap: 6px; }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  border-radius: 10px;
  transition: color 0.2s;
}
.nav__link::after {
  content: '';
  position: absolute;
  inset-inline: 14px;
  bottom: 6px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}
.nav__link:hover { color: var(--blue); }
.nav__link[aria-current='true'] { color: var(--navy); font-weight: 600; }
.nav__link[aria-current='true']::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding-inline: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  border-radius: 10px;
}
.lang-toggle:hover { color: var(--blue); }
.lang-toggle .icon { width: 1.15em; height: 1.15em; }
.header__cta { display: none; }
.menu-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--navy);
}
.menu-btn:hover { background: rgba(9, 38, 75, 0.06); }
.menu-btn .icon { width: 24px; height: 24px; grid-area: 1 / 1; transition: opacity 0.2s, transform 0.3s var(--ease); }
.menu-btn .icon--close { opacity: 0; transform: rotate(-45deg); }
.menu-btn[aria-expanded='true'] .icon--menu { opacity: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded='true'] .icon--close { opacity: 1; transform: none; }

.mobile-menu { display: none; }
.js .mobile-menu {
  display: block;
  position: absolute;
  inset-inline: 0;
  top: 100%;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-block-end: 1px solid var(--line);
  box-shadow: 0 24px 40px -24px rgba(9, 38, 75, 0.35);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
}
.js .mobile-menu.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.mobile-menu__inner { padding-block: 12px 24px; }
.mobile-menu__list a {
  display: flex;
  align-items: center;
  min-height: 52px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  border-block-end: 1px solid var(--line);
}
.mobile-menu__list a[aria-current='true'] { color: var(--blue); }
.mobile-menu__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 20px; }

@media (min-width: 600px) {
  .header__cta { display: inline-flex; }
}
@media (min-width: 1024px) {
  :root { --header-h: 76px; }
  .nav { display: block; }
  .header__actions { margin-inline-start: 8px; }
  .menu-btn, .js .mobile-menu { display: none; }
  .brand__logo { width: 52px; }
}
@media (max-width: 520px) {
  :lang(en) .brand__tag { display: none; }
}
@media (max-width: 380px) {
  .brand__tag { display: none; }
  .lang-toggle__label { font-size: 0.9rem; }
}

/* No-JS: keep navigation reachable without the toggle. */
.no-js .site-header { position: relative; }
.no-js .menu-btn { display: none; }
@media (max-width: 1023.98px) {
  .no-js .mobile-menu { display: block; }
  .no-js .mobile-menu__list { display: flex; flex-wrap: wrap; gap: 0 18px; }
  .no-js .mobile-menu__list a { border: 0; min-height: 44px; font-size: 1rem; }
  .no-js .mobile-menu__actions { display: none; }
}
.no-js main > section:first-child { padding-block-start: 32px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: calc(var(--header-h) + clamp(32px, 6vw, 72px)) clamp(48px, 6vw, 88px);
  background:
    radial-gradient(80% 60% at 85% 20%, rgba(22, 112, 197, 0.1), transparent 70%),
    linear-gradient(180deg, #f5f5f7 0%, #fbfbfd 60%, #ffffff 100%);
  overflow: hidden;
}
[dir='rtl'] .hero {
  background:
    radial-gradient(80% 60% at 15% 20%, rgba(22, 112, 197, 0.1), transparent 70%),
    linear-gradient(180deg, #f5f5f7 0%, #fbfbfd 60%, #ffffff 100%);
}
.hero__inner {
  display: grid;
  gap: clamp(40px, 6vw, 56px);
  align-items: center;
}
.hero__eyebrow { margin-block-end: 18px; }
.hero__title {
  font-size: clamp(2.375rem, 6.6vw, 4.5rem);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--navy);
}
:lang(ar) .hero__title, [lang='ar'] .hero__title { letter-spacing: 0; line-height: 1.3; font-weight: 700; }
.hero__line { display: block; }
@media (min-width: 1024px) { .hero__line { white-space: nowrap; } .hero__title { font-size: clamp(3rem, 4.6vw, 4.5rem); } }
.hero__line--accent { color: var(--blue); }
.hero__lead {
  margin-block-start: 22px;
  font-size: clamp(1.1rem, 1.9vw, 1.35rem);
  color: #2c3d55;
  max-width: 34ch;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 34px; }

.hero__art {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  aspect-ratio: 1.18 / 1;
}
.hero__glow {
  position: absolute;
  inset: 8% 4% 0;
  background: radial-gradient(closest-side, rgba(22, 112, 197, 0.16), transparent);
  filter: blur(10px);
}
.hero__monitor { position: absolute; top: 2%; inset-inline-end: 0; width: 80%; }
.hero__laptop { position: absolute; bottom: 9%; inset-inline-start: 0; width: 54%; }
.hero__phone { position: absolute; bottom: 4%; inset-inline-end: 3%; width: 17%; }
.hero__pedestal { position: absolute; bottom: 4%; inset-inline-end: 23%; width: 19%; }
.demo-caption {
  position: absolute;
  bottom: -6px;
  inset-inline-start: 0;
  font-size: 0.72rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.85);
  padding: 3px 10px;
  border-radius: 99px;
  border: 1px solid var(--line);
}

@media (min-width: 1024px) {
  .hero { min-height: min(100vh, 900px); display: flex; align-items: center; }
  .hero__inner { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); }
  .hero__art { max-width: none; }
}

/* ---------- Devices (pure CSS illustrations) ---------- */
.device { pointer-events: none; user-select: none; }
.screen {
  position: relative;
  overflow: hidden;
  background: #fff;
  container-type: inline-size;
}
.monitor__frame {
  background: linear-gradient(180deg, #1a2433, #0b111b);
  padding: 1.6%;
  border-radius: 14px;
  box-shadow: var(--shadow-device);
}
.monitor .screen { aspect-ratio: 16 / 10; border-radius: 6px; }
.monitor__neck {
  width: 13%;
  aspect-ratio: 1 / 0.9;
  margin-inline: auto;
  background: linear-gradient(90deg, #b9c2cf, #eef1f5 45%, #a8b2c0);
}
.monitor__base {
  width: 36%;
  aspect-ratio: 9 / 0.5;
  margin-inline: auto;
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, #e6eaf0, #b7c0cd);
  box-shadow: 0 14px 20px -10px rgba(9, 38, 75, 0.4);
}
.laptop__lid {
  background: linear-gradient(180deg, #1a2433, #0b111b);
  padding: 2.2% 2.2% 3%;
  border-radius: 12px 12px 2px 2px;
  box-shadow: var(--shadow-device);
  width: 86%;
  margin-inline: auto;
}
.laptop .screen { aspect-ratio: 16 / 10; border-radius: 3px; }
.laptop__base {
  height: 0;
  padding-block-end: 4%;
  border-radius: 2px 2px 14px 14px;
  background: linear-gradient(180deg, #e9edf2, #aab4c2);
  box-shadow: 0 18px 24px -14px rgba(9, 38, 75, 0.45);
  position: relative;
}
.laptop__base::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline: 42%;
  height: 40%;
  border-radius: 0 0 8px 8px;
  background: #c5cdd8;
}
.phone__frame {
  background: linear-gradient(160deg, #273246, #0a0f18);
  padding: 4.5%;
  border-radius: 18% / 8.5%;
  box-shadow: var(--shadow-device);
}
.phone .screen { aspect-ratio: 9 / 19; border-radius: 14% / 6.6%; }

.pedestal { display: flex; flex-direction: column; align-items: center; }
/* The glass frame contains the logo, so the logo is centred by layout (grid)
   and moves with the frame during the entrance and parallax transforms. */
.pedestal__block {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 0.7 / 1;  /* approved R3 preview: portrait glass frame */
  border-radius: 6px;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.9), rgba(206, 224, 246, 0.45) 55%, rgba(255, 255, 255, 0.75));
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 1px 0 #fff, inset 0 -20px 30px rgba(22, 112, 197, 0.12), 0 26px 30px -18px rgba(9, 38, 75, 0.35);
}
.pedestal__logo {
  /* logo-240.webp is trimmed to its visible bounds, so box centre = visual centre */
  width: 92%;
  filter: drop-shadow(0 10px 12px rgba(9, 38, 75, 0.22));
}

/* Illustrated UI — sized relative to its screen via container query units */
.ui {
  position: absolute;
  inset: 0;
  display: flex;
  font-size: 1.75cqi;
  line-height: 1.35;
  background: #f4f7fb;
  color: var(--ink);
}
.ui--compact { font-size: 2.4cqi; }
.ui--ent { font-size: 1.6cqi; }
.ui .icon { width: 1.2em; height: 1.2em; }
.ui__side {
  width: 21%;
  padding: 1.2em 0.7em;
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  background: #fff;
  border-inline-end: 1px solid #e6ecf3;
}
.ui__side--navy { background: var(--navy); color: #b9c8de; border: 0; }
.ui__brand { display: flex; align-items: center; gap: 0.45em; font-weight: 700; font-size: 0.78em; color: var(--navy); margin-block-end: 0.9em; }
.ui__side--navy .ui__brand { color: #fff; }
.ui__side--navy .ui__brand img { background: #fff; border-radius: 50%; padding: 0.15em; }
.ui__brand img { width: 2.1em; }
.ui__nav { display: flex; align-items: center; gap: 0.55em; padding: 0.55em 0.6em; border-radius: 0.55em; font-size: 0.74em; color: #5b6b80; transition: background-color 0.4s, color 0.4s; }
.ui__side--navy .ui__nav { color: #b9c8de; }
.ui__nav.is-on { background: var(--blue); color: #fff; }
.ui__main, .ui__screen { flex: 1; min-width: 0; padding: 1.3em 1.5em; display: flex; flex-direction: column; gap: 0.85em; }
.ui__top { display: flex; align-items: center; justify-content: space-between; gap: 1em; }
.ui__search { display: inline-flex; align-items: center; gap: 0.5em; font-size: 0.7em; color: #55657a; background: #fff; border: 1px solid #e3e9f1; border-radius: 2em; padding: 0.45em 1em; min-width: 40%; }
.ui__hello { font-size: 0.68em; color: var(--muted); margin-block-end: -0.7em; }
.ui__title { font-weight: 700; font-size: 1.2em; color: var(--navy); }
.ui__btn { font-size: 0.72em; background: var(--blue); color: #fff; padding: 0.4em 0.9em; border-radius: 0.5em; font-weight: 600; white-space: nowrap; }
.ui__kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.7em; }
.kpi { background: #fff; border-radius: 0.75em; padding: 0.75em 0.85em; display: flex; flex-direction: column; gap: 0.25em; box-shadow: 0 1px 2px rgba(9, 38, 75, 0.06); }
.kpi__ico { width: 1.9em; height: 1.9em; border-radius: 0.55em; display: grid; place-items: center; margin-block-end: 0.2em; }
.kpi__ico .icon { width: 1.05em; height: 1.05em; }
.kpi__ico--green { background: #e3f6ee; color: var(--ok); }
.kpi__ico--blue { background: var(--blue-50); color: var(--blue); }
.kpi__ico--yellow { background: #fff5d1; color: #b88a00; }
.kpi__ico--navy { background: #e6ebf3; color: var(--navy); }
.kpi__label { font-size: 0.64em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi__value { font-weight: 700; font-size: 1.12em; color: var(--navy); white-space: nowrap; }
.kpi__value small { font-size: 0.55em; color: var(--muted); font-weight: 500; }
.ui__row { display: grid; grid-template-columns: 1.55fr 1fr; gap: 0.7em; flex: 1; min-height: 0; }
.card { background: #fff; border-radius: 0.75em; padding: 0.85em; display: flex; flex-direction: column; gap: 0.5em; min-height: 0; min-width: 0; box-shadow: 0 1px 2px rgba(9, 38, 75, 0.06); }
.card__title { font-weight: 600; font-size: 0.72em; color: var(--navy); }
.linechart { width: 100%; flex: 1; min-height: 0; }
.linechart__line { stroke-dasharray: 1; stroke-dashoffset: 0; }
.donut { width: 62%; margin: auto; transform: rotate(-90deg); }
.bars { display: flex; align-items: flex-end; gap: 7%; flex: 1; min-height: 5em; padding-block-end: 1.4em; }
.bars > span { position: relative; flex: 1; height: var(--h); border-radius: 0.3em 0.3em 0 0; background: linear-gradient(180deg, #3b8fe0, var(--blue)); transform-origin: bottom; }
.bars i { position: absolute; top: calc(100% + 0.4em); inset-inline: -60%; text-align: center; font-style: normal; font-size: 0.55em; color: var(--muted); white-space: nowrap; }
.bars--pair > span { height: 100%; background: none; display: flex; align-items: flex-end; gap: 12%; }
.bars--pair > span::before, .bars--pair > span::after { content: ''; flex: 1; border-radius: 0.3em 0.3em 0 0; }
.bars--pair > span::before { height: var(--h); background: var(--blue); }
.bars--pair > span::after { height: var(--h2); background: var(--yellow); }
.legend { display: flex; align-items: center; gap: 0.5em; font-size: 0.6em; color: var(--muted); }
.legend i { width: 0.8em; height: 0.8em; border-radius: 0.2em; }
.legend__a { background: var(--blue); }
.legend__b { background: var(--yellow); margin-inline-start: 0.8em; }
.people { display: flex; flex-direction: column; gap: 0.55em; }
.person { display: flex; align-items: center; gap: 0.6em; font-size: 0.68em; }
.person__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.person__text b { font-weight: 600; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person__text small { color: var(--muted); font-size: 0.85em; }
.avatar { width: 2.2em; height: 2.2em; border-radius: 50%; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); flex: none; }
.avatar--b { background: #fff5d1; color: #b88a00; }
.avatar--c { background: #e3f6ee; color: var(--ok); }
.avatar--doc { border-radius: 0.6em; background: #eef1f6; color: var(--navy); }
.pill { font-size: 0.82em; padding: 0.2em 0.65em; border-radius: 1em; background: #e3f6ee; color: #137a4c; font-weight: 600; white-space: nowrap; }
.pill--low { background: #fff1d6; color: #7d4f00; }
.table { display: flex; flex-direction: column; font-size: 0.7em; background: #fff; border-radius: 0.7em; overflow: hidden; }
.card .table { font-size: 0.92em; }
.table__row { display: grid; grid-template-columns: 1.6fr 1.2fr 1fr 0.5fr; gap: 0.6em; align-items: center; padding: 0.6em 0.9em; border-block-end: 1px solid #eef2f7; white-space: nowrap; }
.table__row > span { overflow: hidden; text-overflow: ellipsis; }
.table__row > .pill { justify-self: start; }
.table__row--head { color: var(--muted); font-size: 0.9em; background: #f8fafc; }
.card--wide { padding: 0; overflow: hidden; }
.meters { display: flex; flex-direction: column; gap: 1.9em; padding-block-start: 1.4em; }
.meters > span { position: relative; display: block; height: 0.6em; border-radius: 1em; background: #e8eef6; }
.meters > span::before { content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--w); border-radius: 1em; background: var(--blue); }
.meters > span.is-low::before { background: var(--yellow); }
.meters i { position: absolute; bottom: calc(100% + 0.35em); inset-inline-start: 0; font-style: normal; font-size: 0.62em; color: var(--muted); }
.demo-badge { font-size: 0.6em; font-weight: 600; color: #7a5a00; background: #fff6d6; border: 1px solid #ffe08a; padding: 0.25em 0.7em; border-radius: 2em; white-space: nowrap; }

/* Phone app UI */
.app {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 6%;
  padding: 16% 8% 7%;
  font-size: 6.4cqi;
  line-height: 1.3;
  background: linear-gradient(180deg, #f4f7fb, #e9f0f9);
  color: var(--navy);
}
.app .icon { width: 1.8em; height: 1.8em; color: var(--blue); }
.app__head { display: flex; align-items: center; gap: 0.4em; font-weight: 700; font-size: 1.05em; }
.app__head img { width: 2.4em; }
.app__head--center { flex-direction: column; text-align: center; }
.app__head--center img { width: 3.6em; }
.app__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6em; }
.app__tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.4em; aspect-ratio: 1; border-radius: 0.8em; background: #fff; font-size: 0.85em; font-weight: 600; box-shadow: 0 1px 3px rgba(9, 38, 75, 0.08); text-align: center; }
.app__bar { margin-block-start: auto; display: flex; justify-content: space-around; padding: 0.7em; border-radius: 1em; background: #fff; }
.app__bar i { width: 1.2em; height: 1.2em; border-radius: 0.35em; background: #c9d6e8; }
.app__bar i:first-child { background: var(--blue); }
.app--navy { background: linear-gradient(170deg, #1670c5, #0b3c78 70%); color: #fff; }
.app--navy .app__tile { background: rgba(255, 255, 255, 0.96); color: var(--navy); }
.app--navy .app__head img { background: #fff; border-radius: 50%; padding: 0.25em; }
.app--photo { padding-block-start: 12%; gap: 5%; }
.app__hero {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 0.9em;
  overflow: hidden;
  background: linear-gradient(180deg, #8fc0f0, #d9ebfb 70%, #f1f6fc);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6%;
  padding-inline: 10%;
}
.app__tower { width: 26%; height: 82%; background: linear-gradient(90deg, #1d4f8c, #3d78bb 50%, #234f86); border-radius: 0.2em 0.2em 0 0; background-image: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0 2px, transparent 2px 9px), linear-gradient(90deg, #1d4f8c, #3d78bb 50%, #234f86); }
.app__tower--2 { height: 60%; }
.app__tower--3 { height: 44%; }
.app__headline { font-weight: 700; font-size: 1.15em; line-height: 1.25; }
.app__line { display: block; height: 0.45em; border-radius: 1em; background: #cdd9e8; }
.app__line--short { width: 60%; }

/* ---------- Credibility strip ---------- */
.cred { background: #fff; border-block: 1px solid var(--line); }
.cred__list { display: grid; gap: 4px; padding-block: 18px; }
.cred__item { display: flex; align-items: center; gap: 14px; padding-block: 10px; font-weight: 600; font-size: 1.05rem; color: var(--navy); }
.cred__icon { width: 30px; height: 30px; }
.cred__icon--yellow { color: var(--yellow); }
@media (min-width: 768px) {
  .cred__list { grid-template-columns: repeat(3, 1fr); padding-block: 26px; }
  .cred__item { justify-content: center; }
  .cred__item + .cred__item { border-inline-start: 1px solid var(--line); }
}

/* ---------- About ---------- */
.about { background: #fff; }
.about__grid { display: grid; gap: clamp(36px, 5vw, 56px); }
.about__journey {
  display: inline-block;
  margin-block-start: 26px;
  padding: 10px 18px;
  border-radius: 99px;
  background: var(--bg);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
}
.about__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: start; }
.fact { display: flex; flex-direction: column; gap: 6px; padding: 26px; border-radius: var(--radius-md); background: var(--bg); }
.fact__value { font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 700; line-height: 1; letter-spacing: -0.03em; color: var(--navy); }
.fact__label { color: var(--muted); font-weight: 500; }
.fact--accent { background: var(--navy); }
.fact--accent .fact__value { color: var(--yellow); }
.fact--accent .fact__label { color: #c4d2e6; }
.about__pillars { display: grid; gap: 16px; }
.pillar { padding: 28px; border-radius: var(--radius-md); border: 1px solid var(--line); background: #fff; }
.pillar__icon { width: 34px; height: 34px; color: var(--blue); margin-block-end: 16px; }
.pillar__title { font-size: 1.15rem; color: var(--navy); margin-block-end: 6px; }
.pillar p { color: var(--muted); }
@media (min-width: 900px) {
  .about__grid { grid-template-columns: 1.25fr 1fr; align-items: center; }
  .about__pillars { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Enterprise story ---------- */
.ent { background: linear-gradient(180deg, var(--bg), #eef2f7); }
.ent__sticky { padding-block: clamp(72px, 10vw, 120px); }
.ent__grid { display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; }
.ent__copy .section__lead { margin-block-end: 28px; }

.tabs {
  position: relative;
  display: grid;
  width: 100%;
  max-width: 480px;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  padding: 5px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  max-width: 100%;
}
.tab {
  position: relative;
  z-index: 1;
  min-height: 44px;
  padding: 0.55em 0.7em;
  border-radius: 11px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.25;
  color: var(--navy);
  transition: color 0.3s;
}
.tab:hover { color: var(--blue); }
.tab[aria-selected='true'] { color: #fff; }
.tab:focus-visible { outline-offset: -3px; outline-color: var(--yellow); }
.tabs__ink {
  position: absolute;
  top: 5px;
  bottom: 5px;
  inset-inline-start: 5px;
  width: calc((100% - 10px) / 3);
  border-radius: 11px;
  background: var(--blue);
  box-shadow: 0 6px 14px -6px rgba(22, 112, 197, 0.6);
  transform: translateX(calc(var(--tab, 0) * 100% * var(--dirx)));
  transition: transform 0.5s var(--ease);
}
.no-js .tabs { display: none; }

.ent__panels { margin-block: 28px 8px; min-height: 13.5em; }
.js .ent__panel:not(.is-active) { display: none; }
.no-js .ent__panel + .ent__panel { margin-block-start: 28px; }
.ent__panel:focus-visible { outline-offset: 8px; }
.ent__panel-title { font-size: 1.35rem; color: var(--navy); }
.ent__panel > p { color: var(--muted); margin-block: 6px 16px; }
.ent__panel.is-active .checks li { animation: panel-in 0.5s var(--ease) both; }
.ent__panel.is-active .checks li:nth-child(2) { animation-delay: 0.06s; }
.ent__panel.is-active .checks li:nth-child(3) { animation-delay: 0.12s; }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.checks { display: grid; gap: 10px; }
.checks li { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.75); border: 1px solid var(--line); }
.checks .icon { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--blue-50); color: var(--blue); }
.ent__note { margin-block-start: 14px; font-size: 0.82rem; color: var(--muted); max-width: 60ch; margin-inline: auto; text-align: center; }

.ent__art { position: relative; }
.monitor--large { width: 100%; }
.ui__stage { position: relative; flex: 1; min-width: 0; }
.ui__screen { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: translateY(1.5%) scale(0.99); transition: opacity 0.55s var(--ease), transform 0.65s var(--ease), visibility 0s linear 0.6s; }
.ui__screen.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.ui__screen.is-active .bars > span { animation: bar-grow 0.8s var(--ease) both; }
.ui__screen.is-active .bars > span:nth-child(2) { animation-delay: 0.05s; }
.ui__screen.is-active .bars > span:nth-child(3) { animation-delay: 0.1s; }
.ui__screen.is-active .bars > span:nth-child(4) { animation-delay: 0.15s; }
.ui__screen.is-active .bars > span:nth-child(5) { animation-delay: 0.2s; }
.ui__screen.is-active .bars > span:nth-child(6) { animation-delay: 0.25s; }
@keyframes bar-grow { from { transform: scaleY(0.15); } to { transform: none; } }
.ent__dots { display: flex; justify-content: center; gap: 8px; margin-block-start: 22px; }
.ent__dots i { width: 8px; height: 8px; border-radius: 8px; background: rgba(9, 38, 75, 0.2); transition: width 0.4s var(--ease), background-color 0.4s; }
.ent__dots i.is-on { width: 28px; background: var(--blue); }

@media (min-width: 1024px) {
  .ent__grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
}
/* Pinned scroll story (enabled by JS only when the viewport is suitable). */
.ent-pinned .ent__track { height: calc(100vh + 125vh); }
.ent-pinned .ent__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  padding-block: calc(var(--header-h) + 8px) 24px;
}
.ent-pinned .ent__sticky > .container { width: 100%; }
.ent-pinned .ent__copy .section__title { font-size: clamp(2rem, 3.4vw, 2.9rem); }
.ent-pinned .ent__copy .section__lead { margin-block: 10px 20px; }
.ent-pinned .ent__panels { margin-block: 20px 4px; min-height: 0; }
.ent-pinned .checks { gap: 8px; }
.ent-pinned .checks li { padding: 8px 14px; }
@media (max-height: 880px) {
  .ent-pinned .ent__copy .eyebrow { margin-block-end: 6px; }
  .ent-pinned .ent__copy .section__title { font-size: clamp(1.9rem, 3vw, 2.5rem); }
  .ent-pinned .ent__panels { margin-block-start: 14px; }
  .ent-pinned .ent__panel > p { margin-block: 2px 10px; }
  .ent-pinned .checks li { padding: 5px 12px; font-size: 0.95rem; line-height: 1.45; }
  .ent-pinned .checks .icon { width: 30px; height: 30px; padding: 6px; }
  .ent-pinned .ent__copy .link-arrow { min-height: 40px; }
}

/* ---------- Solutions ---------- */
.sol { background: #fff; }
.features { display: grid; gap: 20px; }
.feature {
  position: relative;
  display: grid;
  overflow: hidden;
  border-radius: var(--radius-lg);
  min-height: 420px;
  isolation: isolate;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.feature__copy { position: relative; z-index: 2; padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; align-items: flex-start; }
.feature__title { font-size: clamp(1.8rem, 3.2vw, 2.4rem); line-height: 1.12; letter-spacing: -0.025em; font-weight: 700; margin-block-end: 14px; }
:lang(ar) .feature__title, [lang='ar'] .feature__title { letter-spacing: 0; line-height: 1.35; }
.feature__desc { margin-block-end: 26px; max-width: 34ch; }
.feature .btn { margin-block-start: auto; }
.feature--light { background: linear-gradient(150deg, #eef5fe 0%, #f7faff 55%, #e3eefb 100%); color: var(--navy); }
.feature--light .feature__desc { color: #3a4b62; }
.feature--dark { background: radial-gradient(90% 70% at 80% 30%, #18457f 0%, transparent 70%), linear-gradient(160deg, #0d2f5c, #071c38); color: #fff; }
[dir='rtl'] .feature--dark { background: radial-gradient(90% 70% at 20% 30%, #18457f 0%, transparent 70%), linear-gradient(200deg, #0d2f5c, #071c38); }
.feature--dark .eyebrow { color: #a9bedb; }
.feature--dark .feature__desc { color: #cbd8ea; }
.feature__art { position: relative; min-height: 280px; }
.feature__blob { position: absolute; inset: 18% 6% 6% 6%; border-radius: 50%; background: radial-gradient(closest-side, rgba(22, 112, 197, 0.28), transparent); }
.feature__art--phones .phone { position: absolute; bottom: -6%; }
.phone--a { width: 44%; inset-inline-start: 10%; transform: rotate(calc(-6deg * var(--dirx))); bottom: 4% !important; z-index: 1; }
.phone--b { width: 40%; inset-inline-end: 6%; transform: rotate(calc(5deg * var(--dirx))); }
.feature__art--hw { display: flex; align-items: flex-end; justify-content: center; min-height: 0; }
/* Company-supplied illustrative photo. Natural aspect ratio is kept (height: auto);
   only the dark top/inner edges are faded into the card. Pixels are never mirrored. */
.feature__photo {
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%), linear-gradient(to right, transparent 0, #000 8%, #000 97%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent 0, #000 16%), linear-gradient(to right, transparent 0, #000 8%, #000 97%, transparent 100%);
  mask-composite: intersect;
}
/* Inner (copy-side) edge fades more; the outer edge only softly. Image itself is not mirrored. */
[dir='rtl'] .feature__photo {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%), linear-gradient(to left, transparent 0, #000 8%, #000 97%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 16%), linear-gradient(to left, transparent 0, #000 8%, #000 97%, transparent 100%);
}
@media (max-width: 639.98px) {
  .feature__photo, [dir='rtl'] .feature__photo {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 18%);
  }
}

@media (hover: hover) {
  .feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
  .feature:hover .phone--a { transform: rotate(calc(-6deg * var(--dirx))) translateY(-6px); }
}
.feature:focus-within { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.phone--a, .phone--b { transition: transform 0.5s var(--ease); }

@media (min-width: 640px) {
  .feature { grid-template-columns: 1fr 1fr; }
  .feature__art { min-height: 0; }
  /* Approved R3 composition: copy keeps the full card width (text block and CTA
     on the reading-start side); the supplied photo is anchored to the bottom
     outer corner and sized so its devices end before the CTA. */
  .feature--dark { grid-template-columns: 1fr; container-type: inline-size; }
  .feature--dark .feature__desc { max-width: 30ch; }
  .feature--dark .btn { padding-inline: 1.2em; font-size: 0.95rem; }
  .feature--dark .feature__art--hw {
    position: absolute;
    bottom: 0;
    inset-inline-end: 0;
    z-index: 1;
    /* devices end at 92% of the image width; keep them clear of a ~240px CTA + 44px gutter */
    width: min(54%, calc((100cqi - 300px) / 0.92));
    pointer-events: none;
  }
}
@media (min-width: 1100px) {
  .features { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .feature { min-height: 460px; }
}

.mini-grid { display: grid; gap: 16px; margin-block-start: 20px; }
.mini {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--bg);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), background-color 0.22s;
}
.mini__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #fff; color: var(--blue); margin-block-end: 18px; box-shadow: var(--shadow-sm); }
.mini__icon .icon { width: 26px; height: 26px; }
.mini__title { font-size: 1.2rem; color: var(--navy); margin-block-end: 6px; }
.mini p { color: var(--muted); margin-block-end: 14px; }
.mini .link-arrow { margin-block-start: auto; }
@media (hover: hover) { .mini:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); background: #fff; } }
.mini:focus-within { transform: translateY(-5px); box-shadow: var(--shadow-md); background: #fff; }
@media (min-width: 768px) { .mini-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Process ---------- */
.proc { background: var(--bg); }
.steps { position: relative; display: grid; gap: 28px; counter-reset: step; }
.step { position: relative; padding-inline-start: 76px; }
.step__num {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  font-weight: 700;
  font-size: 1.05rem;
  border: 2px solid var(--blue);
  z-index: 1;
}
.step:first-child .step__num { background: var(--blue); color: #fff; }
.step:last-child .step__num { background: var(--navy); border-color: var(--navy); color: var(--yellow); }
.step__title { font-size: 1.25rem; color: var(--navy); margin-block: 12px 6px; }
.step p { color: var(--muted); }
/* Connector: vertical on small screens, horizontal (following reading direction) on wide. */
.step:not(:last-child)::before {
  content: '';
  position: absolute;
  inset-inline-start: 27px;
  top: 56px;
  bottom: -28px;
  width: 2px;
  background: linear-gradient(180deg, var(--blue), var(--navy));
}
@media (min-width: 900px) {
  .step:not(:last-child)::before { content: none; }
  .steps::before {
    content: '';
    position: absolute;
    transition: transform 1.2s var(--ease) 0.2s;
  }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .step { padding-inline-start: 0; padding-block-start: 80px; }
  .steps::before {
    top: 28px;
    bottom: auto;
    inset-inline-start: 28px;
    inset-inline-end: calc(25% - 4px);
    width: auto;
    height: 2px;
    background: linear-gradient(90deg, var(--blue), var(--navy));
    transform-origin: left;
  }
  [dir='rtl'] .steps::before { background: linear-gradient(270deg, var(--blue), var(--navy)); transform-origin: right; }
  .js .steps:not(.is-in)::before { transform: scaleX(0); }
  .step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 22px;
    inset-inline-end: 12px;
    width: 12px;
    height: 12px;
    border-block-start: 2px solid var(--blue);
    border-inline-end: 2px solid var(--blue);
    transform: rotate(calc(45deg * var(--dirx)));
    background: var(--bg);
  }
}

/* ---------- Projects (hidden until real content exists) ---------- */
.projects { background: #fff; }
.projects__grid { display: grid; gap: 20px; }
@media (min-width: 768px) { .projects__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .projects__grid { grid-template-columns: repeat(3, 1fr); } }
.project { border-radius: var(--radius-md); overflow: hidden; background: var(--bg); }
.project__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.project__body { padding: 24px; }
.project__year { color: var(--muted); font-size: 0.85rem; }
.project__title { font-size: 1.2rem; color: var(--navy); margin-block: 4px 8px; }
.project__summary { color: var(--muted); }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; background: #fff; }
.contact__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(60% 80% at 0% 100%, rgba(22, 112, 197, 0.16), transparent 70%),
    radial-gradient(50% 70% at 100% 0%, rgba(22, 112, 197, 0.12), transparent 70%),
    linear-gradient(180deg, #f7f9fc, #fff);
}
.contact > .container { position: relative; z-index: 1; }
.contact .section__head .btn { margin-block-start: 30px; }
.contact__grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.ccard__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  height: 100%;
  padding: 26px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s;
}
a.ccard__link:hover, a.ccard__link:focus-visible { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(22, 112, 197, 0.35); }
.ccard__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--blue-50); color: var(--blue); margin-block-end: 6px; }
.ccard__icon .icon { width: 24px; height: 24px; }
.ccard--wa .ccard__icon { background: #e3f6ee; color: #128c4b; }
.ccard__label { font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.ccard__value { display: inline-block; font-weight: 600; color: var(--navy); font-size: 1.05rem; unicode-bidi: isolate; }
.ccard__hint { font-size: 0.85rem; color: #128c4b; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: #fff; border-block-start: 1px solid var(--line); padding-block: 36px; }
.footer__inner { display: grid; gap: 22px; align-items: center; }
.brand--footer .brand__logo { width: 50px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer__nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-weight: 500; }
.footer__nav a:hover { color: var(--blue); }
.footer__contact { display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--muted); }
.footer__contact li { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.footer__contact a { unicode-bidi: isolate; }
.footer__contact a:hover { color: var(--blue); }
.footer__copy { color: var(--muted); font-size: 0.88rem; }
@media (min-width: 1024px) {
  .footer__inner { grid-template-columns: auto 1fr auto; }
  .footer__nav { justify-content: center; }
  .footer__copy { grid-column: 1 / -1; padding-block-start: 18px; border-block-start: 1px solid var(--line); }
}

/* ---------- Dialogs ---------- */
.dialog {
  width: min(640px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 40px 80px -20px rgba(9, 38, 75, 0.45);
  overflow: auto;
  overscroll-behavior: contain;
}
.dialog::backdrop { background: rgba(9, 25, 50, 0.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dialog[open] { animation: dialog-in 0.32s var(--ease); }
.dialog[open]::backdrop { animation: fade-in 0.3s ease; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.dialog__inner { padding: clamp(24px, 4vw, 36px); }
.dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-block-end: 12px; }
.dialog__title { font-size: clamp(1.4rem, 3vw, 1.8rem); line-height: 1.25; color: var(--navy); }
.dialog__close { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--bg); color: var(--navy); flex: none; }
.dialog__close:hover { background: #e7ebf1; }
.dialog__body { color: #33445b; }
.dialog__body p { margin-block-end: 14px; }
.dialog__body ul { display: grid; gap: 10px; margin-block-end: 16px; }
.dialog__body li { position: relative; padding-inline-start: 28px; }
.dialog__body li::before { content: ''; position: absolute; inset-inline-start: 4px; top: 0.62em; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--blue-50); }
.dialog__note { font-size: 0.88rem; color: var(--muted); }
.dialog__foot { margin-block-start: 22px; }

/* No-JS: details become a normal content section. */
.no-js .details { background: #fff; padding-block: 48px; }
.no-js .dialog { display: block; position: static; margin: 0 auto 24px; box-shadow: none; border: 1px solid var(--line); max-height: none; }
.no-js .dialog__close { display: none; }

/* ---------- Motion: reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s var(--ease) var(--d, 0s), transform 0.6s var(--ease) var(--d, 0s); }
.js .reveal--scale { transform: translateY(20px) scale(0.97); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .feature.reveal.is-in { transition: opacity 0.6s var(--ease) var(--d, 0s), transform 0.22s var(--ease), box-shadow 0.22s var(--ease); }
.js .mini.reveal.is-in, .js .ccard.reveal.is-in { transition: opacity 0.55s var(--ease) var(--d, 0s), transform 0.22s var(--ease), box-shadow 0.22s var(--ease), background-color 0.22s; }

/* Hero entrance */
.js [data-hero-step] { opacity: 0; transform: translateY(22px); }
/* The headline stays painted from the first frame (fast LCP); it only rises into place. */
.js .hero__title [data-hero-step] { opacity: 1; }
.js [data-hero-art] .device, .js [data-hero-art] .pedestal, .js [data-hero-art] .demo-caption { opacity: 0; }
.js [data-hero-art] .hero__monitor { transform: translateY(16px) scale(0.965); }
.js [data-hero-art] .hero__laptop { transform: translateY(22px) scale(0.965); }
.js [data-hero-art] .hero__phone { transform: translateY(28px) scale(0.965); }
.js [data-hero-art] .hero__pedestal { transform: translateY(18px) scale(0.965); }
.js .hero-in [data-hero-step] { opacity: 1; transform: none; transition: opacity 0.7s var(--ease) calc(var(--i, 0) * 110ms), transform 0.75s var(--ease) calc(var(--i, 0) * 110ms); }
.js .hero-in [data-hero-art] .device, .js .hero-in [data-hero-art] .pedestal, .js .hero-in [data-hero-art] .demo-caption {
  opacity: 1;
  transform: translate3d(0, var(--py, 0px), 0);
  transition: opacity 0.9s var(--ease) var(--delay, 0.25s), transform 1.1s var(--ease) var(--delay, 0.25s);
}
.js .hero-in [data-hero-art].is-settled .device, .js .hero-in [data-hero-art].is-settled .pedestal { transition: none; }
.hero__monitor { --delay: 0.2s; }
.hero__laptop { --delay: 0.34s; }
.hero__pedestal { --delay: 0.48s; }
.hero__phone { --delay: 0.56s; }
.demo-caption { --delay: 0.9s; }
.js .hero-in .linechart__line { animation: draw 1.6s var(--ease) 0.6s both; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.linechart__line { stroke-dasharray: 1; }

/* Safety net if main.js never runs: show everything. */
.reveal-all .reveal, .reveal-all [data-hero-step], .reveal-all [data-hero-art] .device, .reveal-all [data-hero-art] .pedestal, .reveal-all [data-hero-art] .demo-caption { opacity: 1 !important; transform: none !important; }
.reveal-all .steps::before { transform: none !important; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .js .reveal, .js [data-hero-step], .js [data-hero-art] .device, .js [data-hero-art] .pedestal, .js [data-hero-art] .demo-caption { opacity: 1; transform: none; }
  .js .steps:not(.is-in)::before { transform: none; }
  .feature:hover, .feature:focus-within, .mini:hover, .mini:focus-within, a.ccard__link:hover { transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .menu-btn, .hero__art, .ent__art, .feature__art { display: none !important; }
  .reveal, [data-hero-step] { opacity: 1 !important; transform: none !important; }
}
html.dialog-open { overflow: hidden; }

/* ---------- Smart signature: progressive enhancement, four seconds ---------- */
.smart-intro { display: none; }
html.intro-pending, html.intro-pending body { overflow: hidden; }
.intro-pending .smart-intro {
  display: block; position: fixed; inset: 0; z-index: 1000; isolation: isolate;
  color: var(--navy); background: radial-gradient(ellipse at 50% 41%, #fff 15%, #f6f9fd 62%, #edf3fa 100%);
  opacity: 1; transition: opacity .8s ease; overscroll-behavior: contain;
  animation: siDeadline 4s step-end forwards;
}
.intro-pending.intro-leaving .smart-intro { opacity: 0; }
.smart-intro .si-grid {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background-image: linear-gradient(#09264b08 1px, transparent 1px), linear-gradient(90deg, #09264b08 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse, #000 0%, transparent 69%);
  mask-image: radial-gradient(ellipse, #000 0%, transparent 69%);
}
.smart-intro .si-light {
  position: absolute; left: 50%; top: 40%; width: min(360px, 90vw); aspect-ratio: 1;
  transform: translate(-50%, -50%); opacity: 0;
  background: radial-gradient(circle, #1670c512, transparent 65%);
}
.smart-intro .si-focus {
  position: absolute; left: 50%; top: 40%; width: clamp(144px, 27vmin, 192px);
  aspect-ratio: 240 / 203; transform: translate(-50%, -50%); z-index: 6; perspective: 700px;
}
.smart-intro .si-mark { position: relative; width: 100%; height: 100%; transform-origin: center; will-change: transform; }
.smart-intro .si-mark img { width: 100%; height: 100%; object-fit: contain; display: block; opacity: 0; filter: drop-shadow(0 6px 9px #09264b0a); }
.smart-intro .si-sheen {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(110deg, transparent 30%, #ffc400e0 48%, #fff5b7 50%, transparent 66%);
  background-size: 330% 100%; background-position: 170% 0;
  -webkit-mask: url('../img/logo-240.webp') center / contain no-repeat;
  mask: url('../img/logo-240.webp') center / contain no-repeat;
}
.smart-intro .si-signature {
  position: absolute; inset-inline: 18px; top: calc(40% + clamp(86px, 16vmin, 122px));
  text-align: center; transition: opacity .35s, transform .35s;
}
.smart-intro .si-name { font-size: clamp(25px, 4vw, 30px); font-weight: 700; line-height: 1.6; opacity: 0; }
.smart-intro .si-english { font-size: 11px; letter-spacing: .2em; color: var(--muted); margin: 8px auto 0; direction: ltr; opacity: 0; max-width: 38ch; }
.smart-intro .si-rule { height: 2px; width: 50px; background: var(--yellow); margin: 23px auto 0; transform: scaleX(0); transform-origin: right; }
.smart-intro .si-signature.dim { opacity: 0; transform: translateY(-8px); }
.smart-intro .si-traces { position: absolute; width: min(560px, 100%); height: 280px; left: 50%; top: 40%; transform: translate(-50%, -50%); pointer-events: none; direction: ltr; }
.smart-intro .si-trace { position: absolute; width: 100px; height: 46px; opacity: 0; border-top: 1px solid #1670c52b; border-left: 1px solid #1670c52b; }
.smart-intro .si-trace::before { content: ''; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 12px #ffc40070; opacity: 0; right: 0; top: -3px; }
.smart-intro .si-trace.t1 { right: 14%; top: 22%; transform: rotate(180deg); }
.smart-intro .si-trace.t2 { left: 14%; top: 22%; transform: scaleX(-1) rotate(180deg); }
.smart-intro .si-trace.t3 { right: 15%; bottom: 16%; }
.smart-intro .si-trace.t4 { left: 15%; bottom: 16%; transform: scaleX(-1); }
.smart-intro .si-node { position: absolute; width: 12px; height: 12px; border: 1.5px solid var(--yellow); border-radius: 50%; opacity: 0; box-shadow: 0 0 15px #ffc40030; z-index: 7; }
.smart-intro .si-node.n1 { left: 53%; top: 22%; }
.smart-intro .si-node.n2 { left: 32%; top: 56%; }
.smart-intro .si-node.n3 { left: 69%; top: 48%; }
.smart-intro .si-skip {
  position: absolute; bottom: max(18px, env(safe-area-inset-bottom)); inset-inline-end: max(20px, env(safe-area-inset-left));
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 8px 12px;
  border-radius: 24px; color: var(--muted); font-size: 13px; font-weight: 500;
}
.smart-intro .si-skip:focus:not(:focus-visible) { outline: none; }
.smart-intro .si-skip:hover { background: #09264b06; color: var(--navy); }
.smart-intro .si-number { position: absolute; bottom: max(33px, calc(env(safe-area-inset-bottom) + 15px)); left: 28px; color: var(--muted); font-size: 10px; letter-spacing: .12em; direction: ltr; }
[dir='rtl'] .smart-intro .si-number { left: auto; right: 28px; }
.intro-pending .si-grid { animation: siGrid 3s .2s both; }
.intro-pending .si-light { animation: siLight 2.8s .2s both; }
.intro-pending .si-mark img { animation: siReveal 1.1s .25s cubic-bezier(.16,1,.3,1) both; }
.intro-pending .si-sheen { animation: siSheen 1.4s 1s both; }
.intro-pending .si-name { animation: siWords .7s 1s both; }
.intro-pending .si-english { animation: siWords .7s 1.2s both; }
.intro-pending .si-rule { animation: siRule .6s 1.55s both; }
.intro-pending .si-trace { animation: siTrace 1.75s .35s both; }
.intro-pending .si-trace::before { animation: siSignal 1.3s .5s both; }
.intro-pending .t2, .intro-pending .t2::before { animation-delay: .65s; }
.intro-pending .t3, .intro-pending .t3::before { animation-delay: .85s; }
.intro-pending .t4, .intro-pending .t4::before { animation-delay: 1.05s; }
.intro-pending .si-node { animation: siNode .85s 1.1s both; }
.intro-pending .si-node.n2 { animation-delay: 1.35s; }
.intro-pending .si-node.n3 { animation-delay: 1.6s; }
@keyframes siReveal { 0% { opacity: 0; clip-path: inset(100% 0 0); transform: translateY(8px) rotateY(-12deg) scale(.94); } 45% { opacity: 1; } 100% { opacity: 1; clip-path: inset(0); transform: none; } }
@keyframes siSheen { 0% { opacity: 0; background-position: 170% 0; } 20% { opacity: .65; } 85% { opacity: .5; } 100% { opacity: 0; background-position: -60% 0; } }
@keyframes siWords { from { opacity: 0; transform: translateY(10px); filter: blur(3px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes siGrid { 0% { opacity: 0; transform: scale(1.07); } 45% { opacity: .8; } 100% { opacity: 0; transform: scale(1); } }
@keyframes siLight { 0% { opacity: 0; } 50% { opacity: 1; } 100% { opacity: .4; } }
@keyframes siTrace { 0% { opacity: 0; clip-path: inset(0 100% 0 0); } 35% { opacity: 1; clip-path: inset(0); } 75% { opacity: .8; } 100% { opacity: 0; clip-path: inset(0); } }
@keyframes siSignal { 0% { opacity: 0; transform: translate(0,0); } 15% { opacity: 1; } 70% { opacity: 1; transform: translate(-97px,0); } 100% { opacity: 0; transform: translate(-97px,44px); } }
@keyframes siNode { 0% { opacity: 0; transform: scale(.6); } 25% { opacity: .9; } 100% { opacity: 0; transform: scale(2.8); } }
@keyframes siRule { to { transform: scaleX(1); } }
@keyframes siDeadline { from { visibility: visible; } to { visibility: hidden; pointer-events: none; } }
@media (max-width: 480px) {
  .smart-intro .si-trace { width: 74px; }
  .smart-intro .si-trace.t1, .smart-intro .si-trace.t3 { right: 10%; }
  .smart-intro .si-trace.t2, .smart-intro .si-trace.t4 { left: 10%; }
  .smart-intro .si-number { font-size: 9px; left: 18px; }
  [dir='rtl'] .smart-intro .si-number { left: auto; right: 18px; }
}
@media (max-height: 480px) {
  .smart-intro .si-focus { width: 128px; top: 34%; }
  .smart-intro .si-traces { top: 34%; height: 200px; }
  .smart-intro .si-signature { top: calc(34% + 72px); }
  .smart-intro .si-name { font-size: 23px; }
  .smart-intro .si-english { margin-top: 2px; font-size: 9px; }
  .smart-intro .si-rule { margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html.intro-pending, html.intro-pending body { overflow: revert; }
  .intro-pending .smart-intro { display: none; }
  .smart-intro *, .smart-intro *::before { animation: none !important; transition: none !important; }
}

/* Responsive header: leave enough room for the complete navigation in both languages. */
@media (min-width:1024px) and (max-width:1199.98px) {
  .nav{display:none}
  .header__actions{margin-inline-start:auto}
  .menu-btn{display:inline-grid}
  .js .mobile-menu{display:block}
  .no-js .mobile-menu{display:block}
  .no-js .mobile-menu__list{display:flex;flex-wrap:wrap;gap:0 18px}
}
@media (max-width:480px) {
  .header__inner{width:calc(100% - 32px);gap:8px}
  .site-header .brand{gap:7px;min-width:0;flex-shrink:1}
  .site-header .brand__logo{width:36px;flex:none}
  .site-header .brand__name{font-size:.93rem;white-space:nowrap}
  .site-header .brand__text{min-width:0}
  .header__actions{gap:4px;flex:none}
  .lang-toggle{padding-inline:6px;gap:5px;font-size:.88rem}
  .lang-toggle .icon{width:16px;height:16px}
  .lang-toggle__label{font-size:.88rem}
}
@media (max-width:360px) {
  .header__inner{gap:6px}
  .lang-toggle .icon{display:none}
}
/* Keep the expanded menu reachable on short landscape screens. */
.mobile-menu{max-height:calc(100vh - var(--header-h));max-height:calc(100dvh - var(--header-h));overflow-y:auto;overscroll-behavior:contain}

/* Allow grid children to shrink on narrow screens instead of following long English words. */
.hero__copy,.about__copy,.about__facts,.about__pillars,.ent__copy,.feature__copy,.feature__art{min-width:0}
.about__facts{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:639.98px){.feature{grid-template-columns:minmax(0,1fr)}.feature__title,.pillar__title{overflow-wrap:anywhere}}
@media(max-width:480px){.fact{padding:22px 16px}.fact__value{font-size:clamp(1.9rem,9vw,2.4rem)}.fact__label{font-size:.9rem;overflow-wrap:anywhere}}
