@charset "utf-8";

/* =====================================================================
   سیما نوین — Landing site
   Palette is taken from the application design tokens
   (IstgOfficeAutomation/Content/design-system/tokens.css) so the site and
   the product read as one brand.
   ===================================================================== */

/* ---------- Fonts (self-hosted, no external dependency) ---------- */
@font-face {
  font-family: "Vazir";
  src: url("../fonts/Vazir.woff") format("woff"), url("../fonts/Vazir.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IRANSansDisplay";
  src: url("../fonts/IRANSans-Bold-web.woff") format("woff"), url("../fonts/IRANSans-Bold-web.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IRANSansDisplay";
  src: url("../fonts/IRANSans-Light-web.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --navy: #192d4e;
  --navy-dark: #13233e;
  --navy-deep: #0f1c33;
  --navy-mid: #1e4d8c;
  --accent: #2a6db5;
  --accent-light: #3d84d0;
  --accent-soft: rgba(42, 109, 181, .12);
  --gold: #e8a317;
  --gold-soft: #fff4d6;
  --teal: #0e8a8a;
  --purple: #6b4fa0;
  --green: #1a8a5a;

  --ink: #172a48;
  --ink-2: #3f5170;
  --muted: #5f6e88;
  --faint: #a6b2c7;

  --panel: #fff;
  --subtle: #f6f8fc;
  --subtle-2: #eef2f9;
  --border: #e2e8f3;
  --border-light: #eef2f8;
  --border-medium: #d2dcec;
  --danger: #c0392b;

  --sh-1: 0 1px 2px rgba(23, 42, 72, .06);
  --sh-2: 0 4px 16px rgba(23, 42, 72, .08);
  --sh-3: 0 14px 40px rgba(23, 42, 72, .12);
  --sh-4: 0 26px 70px rgba(15, 28, 51, .20);

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --container: 1200px;
  --header-h: 76px;

  --ease: cubic-bezier(.22, .68, .32, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Vazir", Tahoma, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 2;
  color: var(--ink-2);
  background: var(--panel);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand__text b {
  font-family: "IRANSansDisplay", "Vazir", Tahoma, sans-serif;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.65;
  margin: 0 0 .6em;
  letter-spacing: 0;
}

h1 { font-size: clamp(1.9rem, 1.15rem + 2.6vw, 3.3rem); line-height: 1.45; }
h2 { font-size: clamp(1.45rem, 1rem + 1.7vw, 2.3rem); }
h3 { font-size: clamp(1.1rem, .95rem + .6vw, 1.4rem); }

p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--navy-mid); }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { max-width: 100%; }
button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--accent-light);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  inset-block-start: -100px;
  inset-inline-start: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--navy);
  color: #fff;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  transition: inset-block-start .2s var(--ease);
}
.skip-link:focus { inset-block-start: 0; color: #fff; }

/* Persian digits and Latin identifiers keep their own direction */
.ltr-num { direction: ltr; unicode-bidi: isolate; display: inline-block; }

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}
.container--narrow { width: min(100% - 40px, 860px); }

.i { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* =====================================================================
   Scroll progress
   ===================================================================== */
.scroll-progress {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  z-index: 120;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transition: width .1s linear;
}

/* =====================================================================
   Topbar + header
   ===================================================================== */
.topbar {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, .72);
  font-size: .82rem;
  line-height: 1.9;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
  flex-wrap: wrap;
}
.topbar__contact { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar__contact li { display: flex; align-items: center; gap: 7px; }
.topbar__contact .i { opacity: .65; }
.topbar__contact span { color: rgba(255, 255, 255, .45); }
.topbar a { color: rgba(255, 255, 255, .82); }
.topbar a:hover { color: #fff; }
.topbar__links { display: flex; align-items: center; gap: 16px; }
.topbar__links .sep { width: 1px; height: 14px; background: rgba(255, 255, 255, .18); }
.topbar__login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--r-pill);
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.topbar__login:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .4); }

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-block-end: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.is-stuck {
  box-shadow: 0 6px 24px rgba(15, 28, 51, .08);
  border-block-end-color: var(--border-light);
  background: rgba(255, 255, 255, .95);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
  transition: height .3s var(--ease);
}
.site-header.is-stuck .site-header__inner { height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; flex: none; }
.brand__mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  filter: drop-shadow(0 6px 14px rgba(42, 109, 181, .28));
  transition: transform .4s var(--ease-out);
}
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.06); }
.brand__text { display: flex; flex-direction: column; line-height: 1.35; }
.brand__text b { font-size: 1.12rem; color: var(--navy); margin: 0; }
.brand__text i { font-style: normal; font-size: .7rem; color: var(--muted); }

.nav { margin-inline-start: auto; }
.nav > ul { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative;
  display: block;
  padding: 8px 13px;
  border-radius: var(--r-sm);
  color: var(--ink-2);
  font-size: .93rem;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  inset-block-end: 2px;
  inset-inline: 13px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: inline-end;
  transition: transform .28s var(--ease-out);
}
.nav a:hover { color: var(--navy); background: var(--subtle); }
.nav a.is-active { color: var(--navy); font-weight: 400; }
.nav a.is-active::after { transform: scaleX(1); transform-origin: inline-start; }

.site-header__cta { display: flex; align-items: center; gap: 10px; flex: none; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--r-sm);
  padding: 11px 9px;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block; height: 2px; border-radius: 2px;
  background: var(--navy);
  transition: transform .3s var(--ease), opacity .2s linear;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.nav-scrim {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(15, 28, 51, .45);
  backdrop-filter: blur(2px);
  animation: fadeIn .25s var(--ease);
}

/* =====================================================================
   Buttons
   ===================================================================== */
.btn {
  --btn-bg: var(--accent);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: .95rem;
  line-height: 1.6;
  white-space: nowrap;
  overflow: hidden;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn::after {
  content: "";
  position: absolute;
  inset-block: -60%;
  inset-inline-start: -40%;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .38), transparent);
  transform: skewX(-18deg) translateX(0);
  opacity: 0;
}
.btn:hover::after { animation: sheen .8s var(--ease-out); }
.btn .i { transition: transform .25s var(--ease-out); }
.btn:hover .i { transform: translateX(-4px); }

.btn--primary {
  background: linear-gradient(135deg, var(--accent-light), var(--accent) 55%, var(--navy-mid));
  color: #fff;
  box-shadow: 0 10px 24px rgba(42, 109, 181, .3);
}
.btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 34px rgba(42, 109, 181, .38); }
.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
  box-shadow: var(--sh-1);
}
.btn--ghost:hover { color: var(--navy); background: var(--panel); border-color: var(--accent-light); transform: translateY(-2px); box-shadow: var(--sh-2); }
.btn--sm { padding: 8px 16px; font-size: .88rem; }
.btn--lg { padding: 14px 30px; font-size: 1.02rem; }
.btn--block { width: 100%; }

/* Buttons on dark backgrounds */
.hero .btn--ghost, .cta .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .06);
  box-shadow: none;
}
.hero .btn--ghost:hover, .cta .btn--ghost:hover { color: #fff; background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .55); }

/* =====================================================================
   Section scaffolding
   ===================================================================== */
.section { padding-block: clamp(64px, 7vw, 110px); position: relative; }
.section--tight { padding-block: clamp(36px, 4vw, 56px); }
.section--alt { background: var(--subtle); }

.section-head { max-width: 780px; margin: 0 auto clamp(36px, 4vw, 60px); text-align: center; }
.section-head h2 { margin-bottom: .35em; }
.section-head__lead { color: var(--muted); font-size: 1.03rem; margin: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  padding: 5px 15px 5px 12px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: .84rem;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(232, 163, 23, .55);
  animation: pulse 2.4s var(--ease) infinite;
}
.eyebrow--light { background: rgba(255, 255, 255, .12); color: #d8e6f7; }

/* =====================================================================
   Hero
   ===================================================================== */
.hero {
  position: relative;
  padding-block: clamp(56px, 6vw, 96px) clamp(96px, 10vw, 150px);
  background: linear-gradient(160deg, #16294a 0%, var(--navy-deep) 55%, #0b1526 100%);
  color: rgba(255, 255, 255, .78);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 25%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 25%, #000 30%, transparent 75%);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
  will-change: transform;
}
.blob--1 { width: 480px; height: 480px; inset-block-start: -140px; inset-inline-end: -80px; background: #2a6db5; animation: drift 18s var(--ease) infinite alternate; }
.blob--2 { width: 380px; height: 380px; inset-block-end: -120px; inset-inline-start: 4%; background: #16788c; opacity: .4; animation: drift 22s var(--ease) infinite alternate-reverse; }
.blob--3 { width: 260px; height: 260px; inset-block-start: 42%; inset-inline-start: 44%; background: var(--gold); opacity: .16; animation: drift 26s var(--ease) infinite alternate; }

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
}
.hero h1 { color: #fff; }
.hero__lead { font-size: 1.06rem; max-width: 34em; color: rgba(255, 255, 255, .74); }
.hero__lead b { color: #fff; font-weight: 400; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-block: 26px 30px; }

.hero__badges { display: flex; flex-direction: column; gap: 9px; font-size: .9rem; color: rgba(255, 255, 255, .6); }
.hero__badges li { display: flex; align-items: center; gap: 9px; }
.hero__badges .i { width: 1.15em; height: 1.15em; color: var(--gold); }

/* Rotating word */
.rotator {
  display: inline-grid;
  overflow: hidden;
  vertical-align: bottom;
  height: 1.45em;
  margin-inline: .12em;
  /* Width is set per word by site.js so the sentence closes up around it. */
  transition: width .45s var(--ease-out);
}
.rotator__track {
  display: grid;
  transition: transform .6s var(--ease-out);
}
.rotator b {
  height: 1.45em;
  width: max-content;
  justify-self: start;
  display: flex;
  align-items: center;
  background: linear-gradient(120deg, var(--gold), #ffd479 60%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.hero__wave { position: absolute; inset-inline: 0; inset-block-end: -1px; line-height: 0; }
.hero__wave svg { width: 100%; height: clamp(48px, 6vw, 90px); display: block; }
.hero__wave path { fill: var(--panel); }

/* ---------- App mockup ---------- */
.hero__visual { position: relative; }
.mock {
  border-radius: var(--r-lg);
  background: var(--panel);
  box-shadow: var(--sh-4);
  overflow: hidden;
  transform: perspective(1400px) rotateY(6deg) rotateX(3deg);
  transition: transform .6s var(--ease-out);
  will-change: transform;
}
.mock:hover { transform: perspective(1400px) rotateY(0) rotateX(0) translateY(-6px); }
.mock__chrome {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: var(--subtle-2);
  border-block-end: 1px solid var(--border);
}
.mock__dots { display: flex; gap: 6px; }
.mock__dots i { width: 9px; height: 9px; border-radius: 50%; background: #cfd8e8; }
.mock__dots i:first-child { background: #f0a3a3; }
.mock__dots i:nth-child(2) { background: #f2d09a; }
.mock__url { font-size: .72rem; color: var(--muted); }

.mock__body { display: grid; grid-template-columns: 138px 1fr; min-height: 300px; }
.mock__side { background: var(--navy-deep); padding: 12px 10px; }
.mock__side-head { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.mock__side .av { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-light), var(--accent)); flex: none; }
.mock__side .ln { background: rgba(255, 255, 255, .22); }
.mock__side li {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 8px;
  border-radius: 7px;
  margin-bottom: 3px;
}
.mock__side li.is-active { background: rgba(42, 109, 181, .3); }
.mock__side li.is-active .ln { background: rgba(255, 255, 255, .6); }
.mock__side li.grp { padding-block: 12px 4px; }
.mock__side li.grp .ln { background: rgba(255, 255, 255, .12); height: 6px; }
.mock__side .sq { width: 13px; height: 13px; border-radius: 4px; background: rgba(255, 255, 255, .28); flex: none; }
.mock__side .pill {
  margin-inline-start: auto;
  font-size: .62rem;
  background: var(--gold);
  color: #3a2c10;
  border-radius: var(--r-pill);
  padding: 0 6px;
  line-height: 1.6;
}

.mock__main { padding: 12px; background: var(--subtle); }
.mock__toolbar { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.chip { width: 34px; height: 20px; border-radius: 6px; background: #dde5f1; }
.chip--accent { width: 52px; background: linear-gradient(135deg, var(--accent-light), var(--accent)); }
.mock__search { margin-inline-start: auto; width: 90px; height: 20px; border-radius: var(--r-pill); background: #e6ecf6; }

.mock__rows li {
  position: relative;
  display: flex; align-items: center; gap: 9px;
  background: var(--panel);
  border: 1px solid var(--border-light);
  border-radius: 9px;
  padding: 9px 12px 9px 10px;
  margin-bottom: 6px;
  overflow: hidden;
  opacity: 0;
  animation: rowIn .5s var(--ease-out) forwards;
  animation-delay: calc(.45s + var(--i) * .09s);
}
.mock__rows .stripe { position: absolute; inset-block: 0; inset-inline-start: 0; width: 3px; background: #d8e0ec; }
.mock__rows .stripe--red { background: #c0392b; }
.mock__rows .stripe--gold { background: var(--gold); }
.mock__rows .stripe--teal { background: var(--teal); }
.mock__rows .av { width: 20px; height: 20px; border-radius: 50%; background: #d6e0ee; flex: none; }
.mock__rows .tag { width: 30px; height: 14px; border-radius: var(--r-pill); background: #e6ecf6; margin-inline-start: auto; flex: none; }
.mock__rows .tag--red { background: #fbe8e6; }
.mock__rows .tag--gold { background: var(--gold-soft); }
.mock__rows .tag--teal { background: #e0f2f2; }

.ln { display: block; height: 8px; border-radius: var(--r-pill); background: #dde5f1; }
.ln.muted { background: #eaeff7; }
.ln--26 { width: 26px; } .ln--28 { width: 28px; } .ln--30 { width: 30px; }
.ln--31 { width: 31px; } .ln--33 { width: 33px; } .ln--35 { width: 35px; }
.ln--40 { width: 40%; } .ln--45 { width: 45%; } .ln--50 { width: 50%; }
.ln--55 { width: 55%; } .ln--60 { width: 60%; } .ln--65 { width: 65%; }
.ln--70 { width: 70%; } .ln--72 { width: 72px; } .ln--80 { width: 80px; }
.ln--85 { width: 85px; } .ln--90 { width: 90px; }

/* ---------- Floating cards ---------- */
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, .96);
  border-radius: var(--r);
  box-shadow: var(--sh-3);
  color: var(--ink);
  font-size: .8rem;
  animation: floaty 6s var(--ease) infinite alternate;
  will-change: transform;
}
.float-card b { display: block; font-size: .86rem; color: var(--navy); line-height: 1.7; }
.float-card i { font-style: normal; font-size: .72rem; color: var(--muted); }
.float-card__icon { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.float-card__icon svg { width: 17px; height: 17px; fill: currentColor; }
.float-card__icon--green { background: #e4f4ec; color: var(--green); }
.float-card__icon--blue { background: #e6eff8; color: var(--accent); }
.float-card--1 { inset-block-start: 8%; inset-inline-start: -8%; animation-delay: -1s; }
.float-card--2 { inset-block-end: 16%; inset-inline-end: -6%; animation-delay: -3s; }
.float-card--3 { inset-block-end: -6%; inset-inline-start: 6%; animation-delay: -5s; }
.float-card--3 b { font-size: 1.15rem; font-family: "IRANSansDisplay", "Vazir", sans-serif; }

.spark { display: flex; align-items: flex-end; gap: 3px; height: 30px; }
.spark i {
  width: 5px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent-light), var(--accent));
  height: calc(var(--h) * 100%);
  transform-origin: bottom;
  animation: bar 2.6s var(--ease) infinite alternate;
}
.spark i:nth-child(2) { animation-delay: .2s; }
.spark i:nth-child(3) { animation-delay: .4s; }
.spark i:nth-child(4) { animation-delay: .6s; }
.spark i:nth-child(5) { animation-delay: .8s; }
.spark i:nth-child(6) { animation-delay: 1s; }

/* =====================================================================
   Stats
   ===================================================================== */
.stats { background: var(--panel); }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: clamp(22px, 3vw, 34px) clamp(16px, 3vw, 34px);
  background: var(--panel);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
  margin-block-start: calc(-1 * clamp(50px, 6vw, 90px));
  position: relative;
  z-index: 2;
}
.stat { text-align: center; padding-inline: 8px; position: relative; }
.stat + .stat::before {
  content: "";
  position: absolute;
  inset-inline-end: calc(-7px);
  inset-block: 12%;
  width: 1px;
  background: var(--border-light);
}
.stat b {
  display: block;
  font-family: "IRANSansDisplay", "Vazir", sans-serif;
  font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.5rem);
  line-height: 1.4;
  background: linear-gradient(120deg, var(--navy), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { font-size: .85rem; color: var(--muted); line-height: 1.8; display: block; }

/* =====================================================================
   Client marquee
   ===================================================================== */
.clients-strip { padding-block: clamp(40px, 5vw, 64px); overflow: hidden; }
.clients-strip__title { text-align: center; color: var(--muted); font-size: .95rem; margin-bottom: 26px; }
.marquee {
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; gap: 14px; padding-inline-end: 14px; }
.logo-chip {
  display: grid;
  place-items: center;
  min-width: 210px;
  padding: 16px 26px;
  background: var(--panel);
  border: 1px solid var(--border-light);
  border-radius: var(--r);
  color: var(--ink-2);
  font-size: .92rem;
  white-space: nowrap;
  box-shadow: var(--sh-1);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.logo-chip:hover { transform: translateY(-4px); color: var(--navy); border-color: var(--accent-light); box-shadow: var(--sh-2); }

/* =====================================================================
   Cards
   ===================================================================== */
.cards { display: grid; gap: clamp(16px, 2vw, 24px); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  position: relative;
  padding: clamp(22px, 2.4vw, 32px);
  background: var(--panel);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transform: scaleX(0);
  transform-origin: inline-end;
  transition: transform .45s var(--ease-out);
}
.card:hover { transform: translateY(-7px); box-shadow: var(--sh-3); border-color: var(--border); }
.card:hover::before { transform: scaleX(1); transform-origin: inline-start; }
.card h3 { margin-bottom: .5em; }
.card p { color: var(--muted); font-size: .94rem; margin-bottom: 1.1em; }

.card__icon {
  width: 54px; height: 54px;
  border-radius: 16px;
  display: grid; place-items: center;
  margin-bottom: 18px;
  transition: transform .4s var(--ease-out);
}
.card:hover .card__icon { transform: rotate(-8deg) scale(1.08); }
.card__icon svg { width: 26px; height: 26px; fill: currentColor; }
.card__icon--blue { background: #e6eff8; color: var(--accent); }
.card__icon--gold { background: var(--gold-soft); color: #b57c07; }
.card__icon--teal { background: #e0f2f2; color: var(--teal); }
.card__icon--purple { background: #efe9f7; color: var(--purple); }
.card__icon--green { background: #e4f4ec; color: var(--green); }

.card__list li {
  position: relative;
  padding-inline-start: 20px;
  font-size: .87rem;
  color: var(--ink-2);
  line-height: 2.1;
}
.card__list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: .82em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 2px solid var(--accent);
}

.ticks li {
  position: relative;
  padding-inline-start: 26px;
  font-size: .93rem;
  line-height: 2.2;
}
/* A check glyph is not mirrored in RTL, so the borders here are physical. */
.ticks li::before {
  content: "";
  position: absolute;
  inset-inline-start: 3px;
  inset-block-start: .62em;
  width: 7px; height: 13px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
}

/* Flat service cards */
.cards--flat .svc {
  padding: clamp(20px, 2.2vw, 28px);
  background: var(--panel);
  border: 1px solid var(--border-light);
  border-radius: var(--r);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease);
}
.cards--flat .svc:hover { transform: translateY(-5px); box-shadow: var(--sh-2); }
.svc b {
  display: block;
  font-family: "IRANSansDisplay", "Vazir", sans-serif;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: .4em;
  padding-inline-start: 34px;
  position: relative;
}
.svc b::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: .18em;
  width: 22px; height: 22px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  opacity: .18;
}
.svc p { color: var(--muted); font-size: .92rem; margin: 0; }

/* =====================================================================
   Tabs (subsystems)
   ===================================================================== */
.tabs { background: var(--panel); border: 1px solid var(--border-light); border-radius: var(--r-xl); box-shadow: var(--sh-2); overflow: hidden; }
.tabs__nav {
  position: relative;
  display: flex;
  gap: 4px;
  padding: 8px;
  background: var(--subtle-2);
  border-block-end: 1px solid var(--border-light);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs__nav::-webkit-scrollbar { display: none; }
.tabs__nav button {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 130px;
  padding: 12px 16px;
  border: 0;
  background: transparent;
  border-radius: var(--r-sm);
  color: var(--ink-2);
  font-size: .95rem;
  transition: color .25s var(--ease);
}
.tabs__nav button:hover { color: var(--navy); }
.tabs__nav button.is-active { color: var(--navy); font-family: "IRANSansDisplay", "Vazir", sans-serif; font-weight: 700; }
.tabs__ink {
  /* Positioned physically (left) because JS drives it from offsetLeft. */
  position: absolute;
  inset-block: 8px;
  left: 0;
  right: auto;
  width: 0;
  background: var(--panel);
  border-radius: var(--r-sm);
  box-shadow: var(--sh-1);
  transition: transform .4s var(--ease-out), width .4s var(--ease-out);
}

.tabs__panel {
  display: none;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(24px, 4vw, 50px);
  align-items: center;
  padding: clamp(24px, 3.4vw, 46px);
}
.tabs__panel.is-active { display: grid; animation: panelIn .45s var(--ease-out); }
.tabs__text p { color: var(--muted); }
.tabs__art { display: grid; place-items: center; min-height: 210px; }

/* Flowchart art */
.flowchart { display: flex; align-items: center; gap: 0; flex-wrap: wrap; justify-content: center; }
.node {
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--sh-1);
  font-size: .85rem;
  color: var(--navy);
  animation: popIn .5s var(--ease-out) backwards;
}
.node--a { animation-delay: .05s; }
.node--b { animation-delay: .35s; background: var(--accent-soft); border-color: var(--accent-light); }
.node--c { animation-delay: .65s; }
.node--d { animation-delay: .95s; background: var(--gold-soft); border-color: #f0cf86; }
.link { width: 34px; height: 2px; background: var(--border); position: relative; overflow: hidden; }
.link::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: -30%;
  width: 30%;
  background: var(--accent);
  animation: dash 2.2s linear infinite;
}
.link--2::after { animation-delay: .4s; }
.link--3::after { animation-delay: .8s; }

/* Stacked cards art */
.stack-cards { position: relative; width: 190px; height: 150px; }
.sc { position: absolute; inset-inline: 0; height: 96px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--border); box-shadow: var(--sh-2); }
.sc--1 { inset-block-start: 44px; transform: scale(.88); opacity: .55; }
.sc--2 { inset-block-start: 24px; transform: scale(.94); opacity: .78; }
.sc--3 { inset-block-start: 0; background: linear-gradient(135deg, #fff, #eef4fb); animation: floaty 5s var(--ease) infinite alternate; }

/* Org chart art */
.orgchart { position: relative; width: 220px; height: 160px; }
.oc { position: absolute; height: 26px; border-radius: 8px; background: var(--accent-soft); border: 1px solid var(--accent-light); animation: popIn .5s var(--ease-out) backwards; }
.oc--root { inset-inline: 60px; inset-block-start: 0; background: linear-gradient(135deg, var(--accent-light), var(--accent)); border: 0; }
.oc--l1 { width: 78px; inset-block-start: 64px; }
.oc--l1.a { inset-inline-start: 6px; animation-delay: .15s; }
.oc--l1.b { inset-inline-end: 6px; animation-delay: .25s; }
.oc--l2 { width: 58px; inset-block-start: 126px; background: var(--subtle-2); border-color: var(--border); }
.oc--l2.a { inset-inline-start: 0; animation-delay: .35s; }
.oc--l2.b { inset-inline-start: 81px; animation-delay: .45s; }
.oc--l2.c { inset-inline-end: 0; animation-delay: .55s; }

/* Printer art */
.printer { position: relative; width: 170px; height: 150px; }
.pr-top { position: absolute; inset-inline: 26px; inset-block-start: 0; height: 44px; border-radius: 8px 8px 0 0; background: var(--subtle-2); border: 1px solid var(--border); }
.pr-body { position: absolute; inset-inline: 0; inset-block-start: 44px; height: 56px; border-radius: 10px; background: linear-gradient(135deg, var(--navy), var(--navy-deep)); }
.pr-paper { position: absolute; inset-inline: 26px; inset-block-start: 96px; height: 50px; border-radius: 0 0 8px 8px; background: #fff; border: 1px solid var(--border); animation: printOut 3.2s var(--ease) infinite; transform-origin: top; }

.modules__subtitle { text-align: center; margin-block: clamp(40px, 5vw, 64px) 22px; }
.modules-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.module {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--border-light);
  border-radius: var(--r);
  font-size: .9rem;
  color: var(--ink-2);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease), color .3s var(--ease);
}
.module svg { width: 19px; height: 19px; fill: var(--accent); flex: none; opacity: .75; transition: transform .35s var(--ease-out); }
.module:hover { transform: translateY(-4px); box-shadow: var(--sh-2); color: var(--navy); }
.module:hover svg { transform: scale(1.15) rotate(-6deg); opacity: 1; }

/* =====================================================================
   AI section
   ===================================================================== */
.ai {
  position: relative;
  background: linear-gradient(155deg, #16294a, var(--navy-deep));
  color: rgba(255, 255, 255, .74);
  overflow: hidden;
  isolation: isolate;
}
.ai h2 { color: #fff; }
.ai__bg { position: absolute; inset: 0; z-index: -1; }
.blob--ai1 { width: 420px; height: 420px; inset-block-start: -120px; inset-inline-start: -60px; background: #2a6db5; opacity: .45; animation: drift 20s var(--ease) infinite alternate; }
.blob--ai2 { width: 320px; height: 320px; inset-block-end: -100px; inset-inline-end: 8%; background: var(--purple); opacity: .35; animation: drift 24s var(--ease) infinite alternate-reverse; }
.ai__inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(30px, 5vw, 64px); align-items: center; }
.ai__lead { color: rgba(255, 255, 255, .7); }
.ai__list { display: grid; gap: 14px; margin-top: 26px; }
.ai__list li {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: var(--r);
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease-out);
}
.ai__list li:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .2); transform: translateX(-5px); }
.ai__list span {
  font-family: "IRANSansDisplay", "Vazir", sans-serif;
  color: var(--gold);
  font-size: .9rem;
  flex: none;
  opacity: .9;
}
.ai__list b { display: block; color: #fff; font-weight: 400; font-size: .98rem; }
.ai__list i { font-style: normal; font-size: .86rem; color: rgba(255, 255, 255, .58); }

.assistant {
  background: rgba(255, 255, 255, .96);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-4);
  overflow: hidden;
  color: var(--ink);
}
.assistant__head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  background: linear-gradient(120deg, var(--navy), var(--accent));
  color: #fff;
}
.assistant__head b { font-family: "IRANSansDisplay", "Vazir", sans-serif; font-size: .95rem; }
.assistant__avatar { width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .18); display: grid; place-items: center; }
.assistant__avatar svg { width: 17px; height: 17px; fill: var(--gold); animation: twinkle 2.6s var(--ease) infinite; }
.assistant__body { padding: 18px; }
.bubble { border-radius: var(--r); padding: 12px 15px; font-size: .9rem; margin-bottom: 12px; }
.bubble--user { background: var(--subtle-2); color: var(--ink-2); border-end-end-radius: 4px; }
.bubble--bot { background: var(--accent-soft); color: var(--navy); border-end-start-radius: 4px; min-height: 3.2em; }
.typing { display: inline-flex; gap: 4px; align-items: center; height: 1.6em; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: blink 1.2s var(--ease) infinite; }
.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }
.typed { display: none; }
.is-typed .typing { display: none; }
.is-typed .typed { display: inline; }
.assistant__chips { display: flex; gap: 8px; flex-wrap: wrap; }
.assistant__chips span {
  font-size: .78rem;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.assistant__chips span:hover { border-color: var(--accent-light); color: var(--accent); }

/* =====================================================================
   Steps
   ===================================================================== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 26px); position: relative; }
.steps::before {
  content: "";
  position: absolute;
  inset-block-start: 26px;
  inset-inline: 12%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--border) 0 10px, transparent 10px 18px);
  z-index: 0;
}
.steps li { position: relative; z-index: 1; text-align: center; }
.steps__num {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--panel);
  border: 2px solid var(--accent-light);
  color: var(--accent);
  font-family: "IRANSansDisplay", "Vazir", sans-serif;
  font-size: 1.15rem;
  box-shadow: 0 0 0 8px var(--panel);
  transition: transform .35s var(--ease-out), background .35s var(--ease), color .35s var(--ease);
}
.steps li:hover .steps__num { transform: translateY(-4px) scale(1.06); background: linear-gradient(135deg, var(--accent-light), var(--accent)); color: #fff; }
.steps h3 { font-size: 1.05rem; margin-bottom: .3em; }
.steps p { color: var(--muted); font-size: .9rem; margin: 0; }

/* =====================================================================
   Deployment
   ===================================================================== */
.deploy { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 2.4vw, 28px); align-items: stretch; }
.deploy__card {
  padding: clamp(26px, 3vw, 40px);
  background: var(--panel);
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-1);
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease);
}
.deploy__card:hover { transform: translateY(-6px); box-shadow: var(--sh-3); }
.deploy__card--featured {
  background: linear-gradient(160deg, #172c4d, var(--navy-deep));
  border-color: transparent;
  color: rgba(255, 255, 255, .72);
  box-shadow: var(--sh-3);
}
.deploy__card--featured h3 { color: #fff; }
.deploy__card--featured .ticks li::before { border-color: var(--gold); }
.deploy__tag {
  align-self: flex-start;
  padding: 4px 14px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: .78rem;
  letter-spacing: .04em;
  margin-bottom: 16px;
  direction: ltr;
}
.deploy__tag--gold { background: rgba(232, 163, 23, .18); color: #f3c161; }
.deploy__card p { color: var(--muted); }
.deploy__card--featured p { color: rgba(255, 255, 255, .68); }
.deploy__card .btn { align-self: flex-start; margin-top: 22px; }
.deploy__card .ticks { margin-top: 6px; }

/* =====================================================================
   FAQ
   ===================================================================== */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--panel);
  border: 1px solid var(--border-light);
  border-radius: var(--r);
  overflow: hidden;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.faq details[open] { box-shadow: var(--sh-2); border-color: var(--border); }
.faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 18px 22px 18px 56px;
  font-family: "IRANSansDisplay", "Vazir", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  transition: color .25s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  inset-inline-end: 22px;
  inset-block-start: 50%;
  width: 10px; height: 10px;
  margin-top: -6px;
  border-inline-end: 2px solid var(--accent);
  border-block-end: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform .3s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -1px; }
.faq summary:hover { color: var(--accent); }
.faq details > div { padding: 0 22px 20px; animation: fadeUpSm .35s var(--ease-out); }
.faq details p { color: var(--muted); font-size: .93rem; margin: 0; }

/* =====================================================================
   CTA / contact
   ===================================================================== */
.cta {
  position: relative;
  padding-block: clamp(56px, 6vw, 96px);
  background: linear-gradient(150deg, var(--navy), var(--navy-deep));
  color: rgba(255, 255, 255, .74);
  overflow: hidden;
  isolation: isolate;
}
.cta__bg { position: absolute; inset: 0; z-index: -1; }
.blob--c1 { width: 420px; height: 420px; inset-block-start: -160px; inset-inline-end: 12%; background: var(--accent); opacity: .4; animation: drift 19s var(--ease) infinite alternate; }
.blob--c2 { width: 300px; height: 300px; inset-block-end: -120px; inset-inline-start: 6%; background: var(--gold); opacity: .18; animation: drift 25s var(--ease) infinite alternate-reverse; }
.cta__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: clamp(30px, 5vw, 60px); align-items: center; }
.cta h2 { color: #fff; }
.cta__copy > p { color: rgba(255, 255, 255, .7); max-width: 40em; }
.cta__contact { display: grid; gap: 10px; margin-top: 26px; }
.cta__contact li { display: flex; align-items: baseline; gap: 12px; font-size: .93rem; }
.cta__contact span {
  min-width: 62px;
  font-size: .78rem;
  color: rgba(255, 255, 255, .45);
}
.cta__contact a, .cta__contact b { color: #fff; font-weight: 400; }
.cta__contact a:hover { color: var(--gold); }

.cta__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: clamp(24px, 3vw, 34px);
  background: var(--panel);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-4);
}
.cta__form h3 { grid-column: 1 / -1; margin-bottom: 0; font-size: 1.2rem; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .84rem; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: .93rem;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--subtle);
  color: var(--ink);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  width: 100%;
}
.field textarea { resize: vertical; line-height: 1.9; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  background: var(--panel);
  border-color: var(--accent-light);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.field input.is-invalid { border-color: #c0392b; box-shadow: 0 0 0 4px rgba(192, 57, 43, .1); }
.cta__form .btn { grid-column: 1 / -1; }
.cta__form-note { grid-column: 1 / -1; margin: 0; font-size: .86rem; color: var(--green); min-height: 1.6em; text-align: center; }
.cta__form-note.is-error { color: #c0392b; }

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .55); font-size: .9rem; }
.site-footer__top {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: clamp(24px, 3vw, 44px);
  padding-block: clamp(44px, 5vw, 68px) 34px;
}
.site-footer__brand p { max-width: 32em; margin-top: 14px; line-height: 2.1; }
.brand--footer .brand__text b { color: #fff; }
.brand--footer .brand__text i { color: rgba(255, 255, 255, .45); }
.site-footer h4 {
  font-size: .95rem;
  color: #fff;
  margin-bottom: 14px;
  position: relative;
  padding-block-end: 10px;
}
.site-footer h4::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  width: 28px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.site-footer__col li { line-height: 2.4; }
.site-footer a { color: rgba(255, 255, 255, .62); }
.site-footer a:hover { color: #fff; }
.site-footer__contact li { line-height: 2.3; }
.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-block: 18px;
  border-block-start: 1px solid rgba(255, 255, 255, .08);
  font-size: .84rem;
}
.site-footer__bottom p { margin: 0; }

/* =====================================================================
   Back to top
   ===================================================================== */
.to-top {
  position: fixed;
  inset-inline-start: 22px;
  inset-block-end: 22px;
  z-index: 80;
  width: 46px; height: 46px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px rgba(42, 109, 181, .38);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .3s var(--ease), transform .3s var(--ease-out), visibility .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translateY(-3px); }
.to-top svg { width: 22px; height: 22px; fill: currentColor; }

/* =====================================================================
   Inner pages (products / support / training / about / contact)
   ===================================================================== */
.page-hero {
  position: relative;
  padding-block: clamp(44px, 5vw, 72px) clamp(52px, 6vw, 84px);
  background: linear-gradient(150deg, #16294a 0%, var(--navy-deep) 70%, #0b1526 100%);
  color: rgba(255, 255, 255, .72);
  overflow: hidden;
  isolation: isolate;
}
.page-hero__bg { position: absolute; inset: 0; z-index: -1; }
.blob--p1 { width: 400px; height: 400px; inset-block-start: -160px; inset-inline-start: -60px; background: var(--accent); opacity: .42; animation: drift 21s var(--ease) infinite alternate; }
.blob--p2 { width: 280px; height: 280px; inset-block-end: -140px; inset-inline-end: 10%; background: var(--gold); opacity: .14; animation: drift 27s var(--ease) infinite alternate-reverse; }
.page-hero h1 { color: #fff; font-size: clamp(1.7rem, 1.15rem + 1.7vw, 2.6rem); margin-bottom: .35em; }
.page-hero__lead { color: rgba(255, 255, 255, .72); max-width: 48em; font-size: 1.02rem; margin: 0; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .84rem; margin: 0 0 16px; color: rgba(255, 255, 255, .5); }
.breadcrumb a { color: rgba(255, 255, 255, .72); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb li + li::before { content: "‹"; margin-inline-end: 8px; opacity: .45; }
.breadcrumb li { display: flex; align-items: center; }

/* Long-form body copy */
.prose > p { color: var(--ink-2); }
.prose h3 { margin-top: 1.6em; }
.prose h3:first-child { margin-top: 0; }

/* Alternating text / art rows */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(26px, 4vw, 56px);
  align-items: center;
}
.split + .split { margin-top: clamp(44px, 5vw, 76px); padding-top: clamp(44px, 5vw, 76px); border-top: 1px solid var(--border-light); }
.split--flip .split__art { order: -1; }
.split__art { display: grid; place-items: center; min-height: 220px; }
.split__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 14px; margin-bottom: 12px;
  border-radius: var(--r-pill);
  background: var(--accent-soft); color: var(--accent);
  font-size: .8rem;
}
.split__text p { color: var(--muted); }

/* Capability groups */
.group + .group { margin-top: clamp(34px, 4vw, 54px); }
.group__head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
  font-family: "IRANSansDisplay", "Vazir", sans-serif;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.12rem;
}
.group__head::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.group__head i {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  opacity: .16;
}

.feat {
  padding: clamp(18px, 2vw, 24px);
  background: var(--panel);
  border: 1px solid var(--border-light);
  border-radius: var(--r);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.feat:hover { transform: translateY(-5px); box-shadow: var(--sh-2); border-color: var(--border); }
.feat h3 { font-size: 1rem; margin-bottom: .45em; }
.feat p { color: var(--muted); font-size: .9rem; margin: 0; }
.feat ul { margin-top: 10px; }
.feat ul li {
  position: relative;
  padding-inline-start: 15px;
  font-size: .85rem;
  color: var(--ink-2);
  line-height: 2;
}
.feat ul li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: .85em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

/* Contact / info tiles */
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 22px); }
.info {
  padding: clamp(22px, 2.4vw, 30px);
  background: var(--panel);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease);
}
.info:hover { transform: translateY(-5px); box-shadow: var(--sh-2); }
.info__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; }
.info__icon svg { width: 22px; height: 22px; fill: currentColor; }
.info h3 { font-size: 1.05rem; margin-bottom: .4em; }
.info p { color: var(--muted); font-size: .92rem; }
.info a.big {
  display: inline-block;
  font-family: "IRANSansDisplay", "Vazir", sans-serif;
  font-size: 1.12rem;
  color: var(--navy);
  margin-top: 4px;
}
.info a.big:hover { color: var(--accent); }

/* Numbered phases */
.phases { display: grid; gap: 18px; }
.phase {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: clamp(20px, 2.2vw, 28px);
  background: var(--panel);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease);
}
.phase:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.phase__num {
  display: grid; place-items: center;
  width: 66px; height: 66px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: "IRANSansDisplay", "Vazir", sans-serif;
  font-size: .84rem;
  line-height: 1.4;
  text-align: center;
}
.phase h3 { margin-bottom: .35em; }
.phase p { color: var(--muted); margin: 0; }

/* Pull quote / stat callout */
.callout {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  padding: clamp(24px, 3vw, 38px);
  background: linear-gradient(140deg, #172c4d, var(--navy-deep));
  border-radius: var(--r-xl);
  color: rgba(255, 255, 255, .74);
  box-shadow: var(--sh-3);
}
.callout b {
  font-family: "IRANSansDisplay", "Vazir", sans-serif;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem);
  line-height: 1.3;
  color: var(--gold);
  flex: none;
}
.callout p { margin: 0; font-size: 1.02rem; }

/* Sector chips (about page) */
.sectors { display: flex; flex-wrap: wrap; gap: 10px; }
.sector {
  padding: 9px 18px;
  border-radius: var(--r-pill);
  background: var(--panel);
  border: 1px solid var(--border);
  font-size: .9rem;
  color: var(--ink-2);
  transition: transform .3s var(--ease-out), border-color .3s var(--ease), color .3s var(--ease);
}
.sector:hover { transform: translateY(-3px); border-color: var(--accent-light); color: var(--navy); }

@media (max-width: 1080px) {
  .info-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  /* Single column: the illustration always leads, flipped or not. */
  .split { grid-template-columns: 1fr; }
  .split__art, .split--flip .split__art { order: -1; }
}
@media (max-width: 640px) {
  .info-cards { grid-template-columns: 1fr; }
  .callout { flex-direction: column; text-align: center; }
  .phase { grid-template-columns: 1fr; gap: 12px; }
  .phase__num { width: 54px; height: 54px; }
}

/* =====================================================================
   Product illustrations
   ---------------------------------------------------------------------
   Inline SVG scenes that animate the thing they describe. Every animation
   is gated behind .is-playing, which site.js adds when the scene scrolls
   into view — so nothing burns CPU off-screen and the motion reads as a
   response to the reader arriving.
   ===================================================================== */
.art { width: 100%; max-width: 360px; }
.art svg { width: 100%; height: auto; overflow: visible; display: block; }
.art text {
  font-family: "Vazir", Tahoma, sans-serif;
  font-size: 11px;
  fill: var(--ink-2);
  text-anchor: middle;
  dominant-baseline: middle;
}
.art .paper { fill: var(--panel); stroke: var(--border); stroke-width: 1.2; }
.art .ln-fill { fill: #dde5f1; }
.art .ln-soft { fill: #eaeff7; }

/*
 * SVG transforms resolve against the whole viewBox by default, which makes
 * "center" and "right" mean the wrong thing for individual shapes.
 */
.art .fl-stop, .art .fl-token, .art .rg-paper, .art .rg-stamp, .art .rg-lines rect,
.art .og-node, .art .og-lock, .art .sp-card, .art .pt-page, .art .tr-fill {
  transform-box: fill-box;
  transform-origin: center;
}
.art .rg-lines rect, .art .tr-fill { transform-origin: right center; }
.art .pt-page { transform-origin: center top; }

/* ---------- Flow: letter travelling through the workflow ---------- */
.fl-track { stroke: var(--border); stroke-width: 2; stroke-linecap: round; }
.fl-draw {
  stroke: var(--accent); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 280; stroke-dashoffset: 280;
}
.art--flow.is-playing .fl-draw { animation: drawLine 1.1s var(--ease-out) .2s forwards; }

.fl-stop circle { fill: var(--panel); stroke: var(--border-medium); stroke-width: 2; }
.fl-stop text { font-size: 10.5px; fill: var(--muted); }
.art--flow.is-playing .fl-stop { animation: popIn .45s var(--ease-out) backwards; animation-delay: calc(.3s + var(--i) * .22s); }
.art--flow.is-playing .fl-stop circle { animation: stopLit 5.2s var(--ease) infinite; animation-delay: calc(1.2s + var(--i) * .9s); }

.fl-token { opacity: 0; }
.art--flow.is-playing .fl-token { animation: tokenIn .4s var(--ease-out) 1.1s forwards, flTravel 5.2s var(--ease) 1.1s infinite; }
.fl-token rect { fill: var(--accent); }
.fl-token path { stroke: #fff; stroke-width: 1.6; stroke-linecap: round; }

/* ---------- Register: secretariat stamping a letter ---------- */
.rg-paper { opacity: 0; transform-origin: center; }
.art--register.is-playing .rg-paper { animation: popIn .55s var(--ease-out) .1s forwards; }

.rg-lines rect { transform-origin: right center; transform: scaleX(0); }
/* `both`, not `backwards` — these must hold their finished state. */
.art--register.is-playing .rg-lines rect { animation: growX .5s var(--ease-out) both; animation-delay: calc(.45s + var(--i) * .09s); }

.rg-stamp { opacity: 0; }
.rg-stamp circle { fill: none; stroke: var(--danger, #c0392b); stroke-width: 2.4; }
.rg-stamp text { fill: #c0392b; font-size: 10px; }
.art--register.is-playing .rg-stamp { animation: stampIn .5s cubic-bezier(.3, 1.7, .5, 1) 1.05s forwards; }

.rg-scan { fill: url(#rgScan); opacity: 0; }
.art--register.is-playing .rg-scan { animation: scanSweep 3.4s var(--ease) 1.6s infinite; }

.rg-chips g { opacity: .35; }
.rg-chips rect { fill: var(--subtle-2); stroke: var(--border); stroke-width: 1; }
.rg-chips text { font-size: 10px; fill: var(--ink-2); }
.art--register.is-playing .rg-chips g { animation: chipLit 4.2s var(--ease) infinite; animation-delay: calc(1.8s + var(--i) * .5s); }

/* ---------- Org chart: structure + permissions ---------- */
.og-links path {
  fill: none; stroke: var(--border-medium); stroke-width: 1.8;
  stroke-dasharray: 220; stroke-dashoffset: 220;
}
.art--org.is-playing .og-links path { animation: drawLine .7s var(--ease-out) both; animation-delay: calc(.35s + var(--i) * .12s); }

.og-node rect { fill: var(--accent-soft); stroke: var(--accent-light); stroke-width: 1.4; }
.og-node text { font-size: 10px; fill: var(--accent); }
.og-node--root rect { fill: var(--accent); stroke: none; }
.og-node--root text { fill: #fff; }
.og-node--leaf rect { fill: var(--subtle-2); stroke: var(--border); }
.og-node--leaf text { fill: var(--muted); }
.og-node { opacity: 0; transform-origin: center; }
.art--org.is-playing .og-node { animation: popIn .45s var(--ease-out) forwards; animation-delay: calc(.2s + var(--i) * .13s); }

.og-lock { opacity: 0; transform-origin: center; }
.og-lock circle { fill: var(--gold); }
.og-lock path { stroke: #fff; stroke-width: 1.6; fill: none; stroke-linecap: round; }
.art--org.is-playing .og-lock { animation: popIn .5s cubic-bezier(.3, 1.7, .5, 1) 1.35s forwards, lockPulse 3s var(--ease) 1.9s infinite; }

/* ---------- Print manager ---------- */
.pt-tray { fill: var(--subtle-2); stroke: var(--border); stroke-width: 1.2; }
.pt-body { fill: url(#ptNavy); }
.pt-slot { fill: rgba(255, 255, 255, .22); }
.pt-led { fill: var(--gold); }
.art--print.is-playing .pt-led { animation: blink 1.6s var(--ease) infinite; }

/* Page and its content scale together, so the ink never floats off the sheet. */
.pt-page { transform: scaleY(0); }
.art--print.is-playing .pt-page { animation: printFeed 4.2s var(--ease) .5s infinite; }
.pt-head { fill: var(--accent); }

/* ---------- Support: channels orbiting the ticket ---------- */
.sp-ring { fill: none; stroke: var(--border); stroke-width: 1.5; stroke-dasharray: 4 7; }
.art--support.is-playing .sp-ring { animation: spin 34s linear infinite; transform-origin: 150px 118px; }
/* Only the dashed ring turns — spinning the badges would flip their glyphs. */
.sp-dot circle { fill: var(--panel); stroke: var(--accent-light); stroke-width: 1.8; }
.sp-dot path, .sp-dot rect.g { fill: var(--accent); }
.art--support.is-playing .sp-dot { animation: orbitPulse 3.6s var(--ease) infinite; animation-delay: calc(var(--i) * 1.2s); }
.sp-card { opacity: 0; transform-origin: center; }
.art--support.is-playing .sp-card { animation: popIn .55s var(--ease-out) .15s forwards; }
.sp-status { fill: var(--green, #1a8a5a); }
.art--support.is-playing .sp-status { animation: statusCycle 3.6s var(--ease) 1s infinite; }

/* ---------- Training: two phases filling ---------- */
.tr-track { fill: var(--subtle-2); }
.tr-fill { fill: url(#trAccent); transform: scaleX(0); }
.art--training.is-playing .tr-fill { animation: growX 1.5s var(--ease-out) both; animation-delay: calc(.3s + var(--i) * 1.1s); }
.tr-stop circle { fill: var(--panel); stroke: var(--border-medium); stroke-width: 2; }
.tr-stop text { font-size: 10px; fill: var(--muted); }
.art--training.is-playing .tr-stop circle { animation: stopLit 4.4s var(--ease) infinite; animation-delay: calc(.9s + var(--i) * 1.1s); }
.tr-label { font-size: 10.5px; fill: var(--ink-2); }

/* ---------- Shared keyframes for the scenes ---------- */
@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes growX { to { transform: scaleX(1); } }
@keyframes tokenIn { to { opacity: 1; } }
@keyframes stampIn {
  0% { opacity: 0; transform: scale(2.2) rotate(-24deg); }
  100% { opacity: 1; transform: scale(1) rotate(-11deg); }
}
@keyframes flTravel {
  0%, 9%    { transform: translateX(0); }
  21%, 30%  { transform: translateX(-86px); }
  42%, 51%  { transform: translateX(-172px); }
  63%, 100% { transform: translateX(-258px); }
}
@keyframes stopLit {
  0%, 12%  { stroke: var(--border-medium); fill: var(--panel); }
  18%, 30% { stroke: var(--accent); fill: var(--accent-soft); }
  40%, 100% { stroke: var(--border-medium); fill: var(--panel); }
}
@keyframes scanSweep {
  0% { opacity: 0; transform: translateY(0); }
  12% { opacity: 1; }
  68% { opacity: 1; transform: translateY(158px); }
  80%, 100% { opacity: 0; transform: translateY(158px); }
}
@keyframes chipLit {
  0%, 10% { opacity: .35; }
  18%, 34% { opacity: 1; }
  46%, 100% { opacity: .35; }
}
@keyframes lockPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}
@keyframes printFeed {
  0%, 10% { transform: scaleY(0); }
  45%, 88% { transform: scaleY(1); }
  100% { transform: scaleY(0); }
}
@keyframes spin { to { transform: rotate(-360deg); } }
@keyframes orbitPulse {
  0%, 100% { opacity: .55; }
  40% { opacity: 1; }
}
@keyframes statusCycle {
  0%, 40% { fill: #e8a317; }
  55%, 100% { fill: #1a8a5a; }
}

@media (prefers-reduced-motion: reduce) {
  /* Show the finished frame instead of the motion. */
  .art .fl-draw, .art .og-links path { stroke-dashoffset: 0; }
  .art .rg-paper, .art .rg-stamp, .art .og-node, .art .og-lock, .art .sp-card, .art .fl-token { opacity: 1; }
  .art .rg-lines rect, .art .tr-fill { transform: scaleX(1); }
  .art .pt-page { transform: scaleY(1); }
  .art .rg-scan { opacity: 0; }
  .art .rg-chips g { opacity: 1; }
}

/* =====================================================================
   Scroll reveal
   ===================================================================== */
[data-reveal] {
  opacity: 0;
  transition:
    opacity .7s var(--ease-out) var(--d, 0s),
    transform .7s var(--ease-out) var(--d, 0s);
  will-change: opacity, transform;
}
[data-reveal="up"] { transform: translateY(34px); }
[data-reveal="right"] { transform: translateX(38px); }
[data-reveal="left"] { transform: translateX(-38px); }
[data-reveal="zoom"] { transform: scale(.94); }
[data-reveal="fade"] { transform: none; }
[data-reveal].is-in { opacity: 1; transform: none; }

/* =====================================================================
   Keyframes
   ===================================================================== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUpSm { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes popIn { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: scale(1); } }
@keyframes rowIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes sheen { from { transform: skewX(-18deg) translateX(0); opacity: 1; } to { transform: skewX(-18deg) translateX(340%); opacity: 0; } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(232, 163, 23, .55); }
  70% { box-shadow: 0 0 0 9px rgba(232, 163, 23, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 163, 23, 0); }
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-40px, 34px, 0) scale(1.14); }
}
@keyframes floaty {
  from { transform: translateY(0); }
  to { transform: translateY(-13px); }
}
@keyframes bar {
  from { transform: scaleY(.55); }
  to { transform: scaleY(1); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}
@keyframes dash {
  from { inset-inline-start: -30%; }
  to { inset-inline-start: 100%; }
}
@keyframes blink {
  0%, 60%, 100% { opacity: .25; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}
@keyframes twinkle {
  0%, 100% { opacity: .6; transform: scale(.9); }
  50% { opacity: 1; transform: scale(1.15); }
}
@keyframes printOut {
  0%, 20% { transform: scaleY(0); }
  60%, 100% { transform: scaleY(1); }
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { margin-top: 40px; }
  .mock { transform: none; }
  .float-card--1 { inset-inline-start: -2%; }
  .float-card--2 { inset-inline-end: -2%; }
  .ai__inner, .cta__inner { grid-template-columns: 1fr; }
  .cards--3 { grid-template-columns: repeat(2, 1fr); }
  .modules-grid { grid-template-columns: repeat(3, 1fr); }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 66px; }
  /*
   * A non-none backdrop-filter makes the header a containing block for
   * position:fixed descendants, which would trap the drawer inside it.
   * The drawer only exists at this width, so drop the blur here.
   */
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--panel);
  }
  .site-header.is-stuck { background: var(--panel); }
  .nav {
    /* Drawer sits on the leading (right) edge in RTL and slides out past it. */
    position: fixed;
    top: 0;
    bottom: 0;
    inset-inline-start: 0;
    z-index: 95;
    width: min(84vw, 320px);
    background: var(--panel);
    padding: 84px 20px 24px;
    transform: translateX(105%);
    transition: transform .38s var(--ease-out), box-shadow .38s var(--ease);
    overflow-y: auto;
  }
  /* Shadow only while open, otherwise it bleeds back onto the page. */
  .nav.is-open { transform: translateX(0); box-shadow: -18px 0 50px rgba(15, 28, 51, .2); }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav a { padding: 13px 14px; font-size: 1rem; border-radius: var(--r-sm); }
  .nav a::after { inset-inline-start: 14px; inset-inline-end: auto; width: 26px; }
  /* Keep the toggle (now an X) clickable above the open drawer. */
  .nav-toggle { display: flex; position: relative; z-index: 96; }
  .site-header__cta .btn { display: none; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .stat + .stat::before { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .steps::before { display: none; }
  .tabs__panel.is-active { grid-template-columns: 1fr; }
  .tabs__art { order: -1; }
  .deploy { grid-template-columns: 1fr; }
  .topbar__contact { gap: 14px; font-size: .78rem; }
  /*
   * `.topbar__contact li` sets display:flex, which outranks a bare `.only-lg`.
   * Match the same specificity or the row never hides.
   */
  .topbar__contact li.only-lg { display: none; }

  /* The tab strip scrolls here; fade the edges so that reads as scrollable. */
  .tabs__nav {
    mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
  }
}

@media (max-width: 640px) {
  body { font-size: 15px; line-height: 1.95; }
  .container { width: min(100% - 28px, var(--container)); }
  .cards--3 { grid-template-columns: 1fr; }
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer__top { grid-template-columns: 1fr; }
  .cta__form { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 100%; }
  .float-card--1, .float-card--2 { position: static; margin-top: 12px; animation: none; }
  .float-card--3 { inset-block-end: auto; position: static; margin-top: 12px; animation: none; }
  .hero__visual { display: grid; gap: 4px; }
  .topbar__links a:not(.topbar__login), .topbar__links .sep { display: none; }
  .steps { grid-template-columns: 1fr; }
  .stats__grid { margin-block-start: -40px; }
  /* Connector lines leave dangling stubs once the nodes wrap. */
  .flowchart { gap: 10px; }
  .flowchart .link { display: none; }
  .to-top { inset-inline-start: 14px; inset-block-end: 14px; }
}

/* =====================================================================
   Mobile refinements
   ===================================================================== */
@media (max-width: 640px) {
  /*
   * The topbar was stacking into three rows and eating ~110px above the fold.
   * Keep only what is useful on a phone: the support number and the login button.
   */
  .topbar__inner { justify-content: space-between; gap: 10px; min-height: 46px; }
  .topbar__contact { gap: 0; }
  .topbar__contact li { display: none; }
  .topbar__contact li:nth-child(2) { display: flex; }
  .topbar__links a:not(.topbar__login),
  .topbar__links .sep { display: none; }

  /* Illustrations were rendering at ~280px with sub-10px labels. */
  .art { max-width: 100%; }
  .art text { font-size: 13px; }
  .tabs__art, .split__art { min-height: 0; }

  /* Keep the back-to-top button clear of the last footer link. */
  .site-footer__bottom { padding-block-end: 74px; }

  /* Nudge the smallest labels up to a readable size on a phone. */
  .brand__text i { font-size: .76rem; }
  .float-card i { font-size: .76rem; }
}

/*
 * Touch ergonomics. Applied by input type rather than width, so a touch laptop
 * gets the larger targets and a narrow desktop window does not get a stretched
 * footer. 44px is the smallest comfortable target.
 */
@media (pointer: coarse) {
  .site-footer__col li a,
  .site-footer__contact li a,
  .site-footer__bottom a,
  .cta__contact a,
  .info a.big,
  .info p a,
  .callout p a,
  .breadcrumb a,
  .prose a,
  .faq details p a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  /* Short words like «خانه» are tall enough but too narrow to hit reliably. */
  .breadcrumb a { padding-inline: 6px; margin-inline-start: -6px; }
  .site-footer__col li,
  .site-footer__contact li { line-height: 1.7; }

  .topbar__contact a,
  .topbar__links a { min-height: 40px; display: inline-flex; align-items: center; }
  .topbar__login { padding-block: 8px; }

  .nav a { min-height: 48px; display: flex; align-items: center; }
  .assistant__chips span { min-height: 38px; display: inline-flex; align-items: center; }
}

/* =====================================================================
   Reduced motion
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .mock__rows li { opacity: 1; }
}

/* =====================================================================
   Print
   ===================================================================== */
@media print {
  .topbar, .site-header, .to-top, .scroll-progress, .hero__bg, .marquee { display: none !important; }
  .hero, .ai, .cta, .site-footer { background: #fff !important; color: #000 !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

