/* Pendar Gostar Mana: company website. Brand colours from the proposal: orange #E85B26, charcoal #303843. */

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Variable.woff2?v=2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --brand: #e85b26;
  --brand-600: #d14a17;
  --brand-300: #f59a72;
  --brand-50: #fdf1eb;
  --ink: #1b222c;
  --ink-2: #2a3441;
  --charcoal: #303843;
  --muted: #5d6877;
  --line: #e3e7ec;
  --soft: #f4f6f9;
  --white: #ffffff;
  --sun: #f6b73c;
  --ok: #2fb47c;
  --warn: #f2a33a;
  --bad: #e5534b;
  --navy-900: #121820;
  --navy-800: #18202b;
  --navy-700: #202a37;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-line: rgba(255, 255, 255, 0.12);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px -24px rgba(17, 24, 39, 0.35);
  --shadow-brand: 0 14px 34px -14px rgba(232, 91, 38, 0.65);
  --container: 1200px;
  --header-h: 72px;
}

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

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

body {
  margin: 0;
  font-family: "Vazirmatn", Tahoma, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.45; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100;
  background: var(--brand); color: #fff; padding: 8px 16px; border-radius: 10px; transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 640px) { .container { padding-inline: 24px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 22px; border-radius: 14px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; line-height: 1.4; cursor: pointer; white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn .icon { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, #f0713d, var(--brand) 55%, var(--brand-600)); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { box-shadow: 0 18px 40px -14px rgba(232, 91, 38, 0.8); }
.btn-ghost { background: rgba(255, 255, 255, 0.06); color: #fff; border-color: rgba(255, 255, 255, 0.22); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.4); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand-600); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--charcoal); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  color: #fff; transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}
.site-header.is-solid {
  background: rgba(255, 255, 255, 0.92); color: var(--ink);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(17, 24, 39, 0.25);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand-mark { position: relative; width: 46px; height: 40px; }
.brand-mark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity 0.3s ease; }
.brand-mark .on-light { opacity: 0; }
.site-header.is-solid .brand-mark .on-light { opacity: 1; }
.site-header.is-solid .brand-mark .on-dark { opacity: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.35; }
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.brand-name b { color: var(--brand); font-weight: 800; }
.brand-sub { font-size: 11.5px; opacity: 0.7; font-weight: 500; }

.nav { margin-inline-start: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: block; padding: 8px 12px; border-radius: 10px; font-size: 15px; font-weight: 600;
  opacity: 0.85; transition: opacity 0.2s, background-color 0.2s, color 0.2s;
}
.nav-link:hover { opacity: 1; background: rgba(127, 127, 127, 0.12); }
.nav-link.is-active { opacity: 1; color: var(--brand); }
.header-cta { flex: none; }
.header-cta .btn { min-height: 42px; padding: 8px 18px; font-size: 14px; }

.menu-toggle {
  display: none; margin-inline-start: auto; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid rgba(127, 127, 127, 0.3); background: transparent; color: inherit; cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle .icon-close { display: none; }
.menu-open .menu-toggle .icon-menu { display: none; }
.menu-open .menu-toggle .icon-close { display: block; }

@media (max-width: 1080px) {
  .nav-link { padding: 8px 9px; font-size: 14px; }
}
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
    background: #fff; color: var(--ink); border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px -20px rgba(17, 24, 39, 0.35);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .menu-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 18px; }
  .nav-link { padding: 12px 14px; font-size: 16px; }
  .nav-list .nav-cta { display: block; margin-top: 8px; }
}
.nav-list .nav-cta { display: none; }
@media (max-width: 960px) { .nav-list .nav-cta { display: block; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(232, 91, 38, 0.35), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(47, 180, 124, 0.12), transparent 60%),
    linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 60%, #0d1218 100%);
  padding: calc(var(--header-h) + 56px) 0 96px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.55;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 85%);
}
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 48px; align-items: center; }

.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14);
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(47, 180, 124, 0.2); }
.hero h1 { font-size: clamp(30px, 4.6vw, 54px); line-height: 1.35; margin: 22px 0 18px; font-weight: 900; text-wrap: balance; }
.hero h1 .accent {
  background: linear-gradient(120deg, #ff9a6b, var(--brand) 45%, #ffb36b);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { font-size: clamp(16px, 1.6vw, 18.5px); color: rgba(255, 255, 255, 0.78); max-width: 590px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 36px; font-size: 14.5px; color: rgba(255, 255, 255, 0.82); }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points .icon { width: 20px; height: 20px; color: var(--brand-300); }

.hero-copy > * { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.32s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* hero scene */
.hero-visual { position: relative; animation: rise 1s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.scene {
  position: relative; border-radius: 28px; padding: 14px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--glass-line); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}
.scene svg { width: 100%; height: auto; }
.scene-caption { position: absolute; inset-inline-end: 22px; top: 16px; font-size: 11.5px; color: rgba(255, 255, 255, 0.45); }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px;
  background: rgba(21, 28, 37, 0.78); border: 1px solid var(--glass-line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.7); font-size: 13px; line-height: 1.5; white-space: nowrap;
  animation: bob 6s ease-in-out infinite;
}
.float-card .fc-icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: rgba(232, 91, 38, 0.16); color: var(--brand-300); }
.float-card .fc-icon.ok { background: rgba(47, 180, 124, 0.16); color: #5fd3a2; }
.float-card .fc-icon .icon { width: 20px; height: 20px; }
.float-card small { display: block; color: rgba(255, 255, 255, 0.55); font-size: 11.5px; }
.float-card strong { font-weight: 700; }
.fc-1 { top: -18px; inset-inline-start: -14px; }
.fc-2 { bottom: 40px; inset-inline-end: -22px; animation-delay: -2s; }
.fc-3 { bottom: -22px; inset-inline-start: 40px; animation-delay: -4s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* SVG scene animations */
.flow-dash { stroke-dasharray: 6 10; animation: dash 1.4s linear infinite; }
.flow-dash.slow { animation-duration: 2.4s; }
@keyframes dash { to { stroke-dashoffset: -32; } }
.radio-wave { transform-box: fill-box; transform-origin: center; animation: wave 2.4s ease-out infinite; opacity: 0; }
.radio-wave.w2 { animation-delay: 0.8s; }
.radio-wave.w3 { animation-delay: 1.6s; }
@keyframes wave { 0% { opacity: 0.9; transform: scale(0.4); } 100% { opacity: 0; transform: scale(1.6); } }
.chart-line { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.6s 0.6s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.sun-glow { transform-box: fill-box; transform-origin: center; animation: pulse 4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 0.35; transform: scale(1); } 50% { opacity: 0.6; transform: scale(1.12); } }
.blink { animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.25; } }

@media (max-width: 960px) {
  .hero { padding: calc(var(--header-h) + 36px) 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { max-width: 620px; margin-inline: auto; width: 100%; }
}
@media (max-width: 640px) {
  .fc-3 { display: none; }
  .fc-1 { inset-inline-start: 6px; top: -22px; }
  .fc-2 { inset-inline-end: 6px; bottom: -22px; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Facts strip ---------- */
.facts { position: relative; z-index: 2; margin-top: -44px; }
.facts-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: 22px;
  border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden;
}
.fact { display: flex; gap: 14px; align-items: center; padding: 22px 24px; }
.fact + .fact { border-inline-start: 1px solid var(--line); }
.fact-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); flex: none; }
.fact strong { display: block; font-size: 15.5px; line-height: 1.5; }
.fact span { display: block; font-size: 13px; color: var(--muted); line-height: 1.6; }
@media (max-width: 960px) {
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-inline-start: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .facts-grid { grid-template-columns: 1fr; }
  .fact + .fact { border-inline-start: 0; border-top: 1px solid var(--line); }
}

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section-soft { background: var(--soft); }
.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; color: var(--brand);
  letter-spacing: 0.01em; margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: currentColor; }
.section-head.center .eyebrow::after { content: ""; width: 26px; height: 2px; border-radius: 2px; background: currentColor; }
.section-title { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.45; text-wrap: balance; }
.section-lead { margin-top: 14px; font-size: 17px; color: var(--muted); text-wrap: pretty; }
@media (max-width: 640px) { .section { padding: 76px 0; } .section-head { margin-bottom: 36px; } }

/* service cards */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px 24px 24px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.service-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), #ffad7f); transform: scaleX(0); transform-origin: right; transition: transform 0.35s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; color: #fff; margin-bottom: 6px;
  background: linear-gradient(140deg, #f27c4a, var(--brand-600)); box-shadow: var(--shadow-brand);
}
.service-icon .icon { width: 28px; height: 28px; }
.service-card h3 { font-size: 19px; }
.service-card p { color: var(--muted); font-size: 15px; line-height: 1.85; flex: 1; }
.service-tag { font-size: 12.5px; font-weight: 700; color: var(--charcoal); background: var(--soft); border-radius: 8px; padding: 2px 10px; align-self: flex-start; }
.card-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14.5px; color: var(--brand-600); margin-top: 4px; }
.card-link .icon { width: 18px; height: 18px; transition: transform 0.2s; }
.card-link:hover .icon { transform: translateX(-4px); }
.services-note {
  margin-top: 28px; display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; border-radius: 16px;
  background: var(--brand-50); color: #7a3417; font-size: 15px;
}
.services-note .icon { color: var(--brand); margin-top: 4px; }
@media (max-width: 1080px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- Solutions (tabs) ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px; border-radius: 18px; background: #fff; border: 1px solid var(--line); margin-bottom: 28px; }
.tab {
  flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 8px 14px;
  border: 0; border-radius: 13px; background: transparent; cursor: pointer; font-weight: 700; font-size: 15px; color: var(--muted);
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.tab .icon { width: 22px; height: 22px; }
.tab:hover { color: var(--ink); background: var(--soft); }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -12px rgba(27, 34, 44, 0.7); }
.tab[aria-selected="true"] .icon { color: var(--brand-300); }
@media (max-width: 760px) { .tab { flex: 1 1 calc(50% - 8px); font-size: 14px; } }

.panel { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; }
.panel[hidden] { display: none; }
.panel.is-entering { animation: fadeIn 0.45s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.panel-main, .panel-side { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.panel-main h3 { font-size: 24px; margin-bottom: 10px; }
.panel-main > p { color: var(--muted); }
.panel-side { display: flex; flex-direction: column; gap: 22px; }
.panel-side h4 { font-size: 16.5px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.panel-side h4 .icon { color: var(--brand); width: 20px; height: 20px; }
@media (max-width: 960px) { .panel { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .panel-main, .panel-side { padding: 22px 18px; } }

.check-list { display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.8; }
.check-list .icon { width: 20px; height: 20px; color: var(--ok); margin-top: 4px; flex: none; }

.mini-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mini-card { padding: 16px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); }
.mini-card strong { display: block; font-size: 15px; margin-bottom: 4px; }
.mini-card span { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.75; }
@media (max-width: 480px) { .mini-cards { grid-template-columns: 1fr; } }

.note {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; font-size: 14px; line-height: 1.85;
  background: var(--ink); color: rgba(255, 255, 255, 0.86);
}
.note .icon { color: var(--brand-300); width: 20px; height: 20px; margin-top: 3px; }

/* flow diagrams */
.flow { margin: 26px 0 8px; display: flex; align-items: stretch; gap: 0; }
.flow-node {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
  padding: 16px 10px; border-radius: 16px; background: var(--soft); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; line-height: 1.6;
}
.flow-node .icon { width: 26px; height: 26px; color: var(--charcoal); }
.flow-node.hl { background: var(--brand-50); border-color: #f6c9b3; }
.flow-node.hl .icon { color: var(--brand); }
.flow-node.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.flow-node.dark .icon { color: var(--brand-300); }
.flow-node small { font-weight: 500; color: var(--muted); font-size: 12px; }
.flow-node.dark small { color: rgba(255, 255, 255, 0.6); }
.flow-arrow { flex: 0 0 34px; position: relative; display: flex; align-items: center; }
.flow-arrow::before {
  content: ""; position: absolute; inset-inline: 4px; top: 50%; height: 2px; transform: translateY(-50%);
  background: repeating-linear-gradient(270deg, var(--brand) 0 6px, transparent 6px 11px); background-size: 22px 2px;
  animation: flowx 0.9s linear infinite;
}
.flow-arrow::after {
  content: ""; position: absolute; inset-inline-end: 2px; top: 50%; width: 8px; height: 8px; transform: translateY(-50%) rotate(45deg);
  border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
}
@keyframes flowx { to { background-position: -22px 0; } }
.flow-stack { flex: 1 1 0; display: flex; flex-direction: column; gap: 8px; }
.flow-stack .flow-node { padding: 10px; flex-direction: row; gap: 8px; }
.flow-stack .flow-node .icon { width: 20px; height: 20px; }
.flow-split { flex: 1.2 1 0; display: grid; gap: 8px; }
@media (max-width: 640px) {
  .flow { flex-direction: column; }
  .flow-arrow { flex: 0 0 30px; justify-content: center; }
  .flow-arrow::before { inset-inline: auto; top: 4px; bottom: 4px; left: 50%; width: 2px; height: auto; transform: translateX(-50%);
    background: repeating-linear-gradient(180deg, var(--brand) 0 6px, transparent 6px 11px); background-size: 2px 22px; animation-name: flowy; }
  .flow-arrow::after { inset-inline-end: auto; top: auto; bottom: 2px; left: 50%; transform: translateX(-50%) rotate(-45deg); }
  .flow-node { flex-direction: row; justify-content: flex-start; text-align: start; padding: 12px 14px; }
}
@keyframes flowy { to { background-position: 0 22px; } }

/* ---------- Features ---------- */
.features-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.feature {
  grid-column: span 2; padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature:nth-child(4), .feature:nth-child(5) { grid-column: span 3; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.feature-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--ink); color: var(--brand-300); flex: none; }
.feature h3 { font-size: 18px; }
.feature p { color: var(--muted); font-size: 15px; }
.feature .use { margin-top: 12px; display: inline-flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 700; color: var(--charcoal); background: var(--soft); padding: 4px 12px; border-radius: 999px; }
.feature .use .icon { width: 16px; height: 16px; color: var(--brand); }
@media (max-width: 960px) { .features-grid { grid-template-columns: repeat(2, 1fr); } .feature, .feature:nth-child(4), .feature:nth-child(5) { grid-column: span 1; } .feature:nth-child(5) { grid-column: span 2; } }
@media (max-width: 600px) { .features-grid { grid-template-columns: 1fr; } .feature:nth-child(5) { grid-column: span 1; } }

.pipeline { margin-top: 44px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.pipe {
  position: relative; padding: 20px 20px 18px; border-radius: 18px; background: var(--soft); border: 1px dashed #cfd6de; counter-increment: step;
}
.pipe::before {
  content: counter(step, persian); position: absolute; top: -14px; inset-inline-start: 18px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 800; font-size: 14px; box-shadow: var(--shadow-brand);
}
.pipe strong { display: block; margin-top: 4px; font-size: 16px; }
.pipe span { font-size: 13.5px; color: var(--muted); }
.pipe:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; inset-inline-end: -16px; width: 16px; height: 2px; background: var(--brand);
}
@media (max-width: 860px) { .pipeline { grid-template-columns: 1fr 1fr; row-gap: 28px; } .pipe:nth-child(2)::after { display: none; } }
@media (max-width: 480px) { .pipeline { grid-template-columns: 1fr; } .pipe::after { display: none; } }

/* ---------- Dashboard demo ---------- */
.section-dark {
  color: #fff; position: relative; isolation: isolate;
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(232, 91, 38, 0.18), transparent 60%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
}
.section-dark .section-lead { color: rgba(255, 255, 255, 0.7); }
.dash {
  border-radius: 26px; padding: 18px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--glass-line);
  box-shadow: 0 50px 100px -50px rgba(0, 0, 0, 0.9); display: grid; gap: 16px;
}
.dash-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 6px; }
.dash-title { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.dash-title .icon { color: var(--sun); }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: #6be0ae; background: rgba(47, 180, 124, 0.12); padding: 4px 12px; border-radius: 999px; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: blink 1.6s infinite; }
.dash-meta { display: flex; align-items: center; gap: 14px; font-size: 13px; color: rgba(255, 255, 255, 0.6); }
.dash-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi { padding: 16px 18px; border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-line); }
.kpi-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, 0.65); }
.kpi-label .icon { width: 18px; height: 18px; color: var(--brand-300); }
.kpi-value { margin-top: 6px; font-size: 28px; font-weight: 800; line-height: 1.3; font-variant-numeric: tabular-nums; }
.kpi-value small { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.55); margin-inline-start: 4px; }
.kpi-bar { margin-top: 10px; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.kpi-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), #ffb27d); transition: width 0.8s ease; }
.dash-main { display: grid; grid-template-columns: 1.65fr 1fr; gap: 12px; }
.dash-card { padding: 18px; border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-line); min-width: 0; }
.dash-card h3 { font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.dash-card h3 span { font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, 0.5); }
.chart { width: 100%; height: auto; overflow: visible; direction: ltr; }
.chart .grid line { stroke: rgba(255, 255, 255, 0.07); }
.chart .axis text { fill: rgba(255, 255, 255, 0.45); font-size: 11px; font-family: inherit; }
.inv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.inv { padding: 10px 6px; border-radius: 12px; text-align: center; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); font-size: 11.5px; line-height: 1.5; }
.inv b { display: block; font-size: 14px; font-variant-numeric: tabular-nums; }
.inv i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-inline-end: 4px; vertical-align: middle; }
.inv.warn i { background: var(--warn); }
.inv.warn { border-color: rgba(242, 163, 58, 0.45); background: rgba(242, 163, 58, 0.08); }
.inv.off i { background: var(--bad); }
.inv.off { border-color: rgba(229, 83, 75, 0.5); background: rgba(229, 83, 75, 0.08); }
.legend { display: flex; gap: 14px; margin-top: 12px; font-size: 12px; color: rgba(255, 255, 255, 0.6); flex-wrap: wrap; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-inline-end: 6px; }
.legend .lg-ok { background: var(--ok); }
.legend .lg-warn { background: var(--warn); }
.legend .lg-off { background: var(--bad); }
.dash-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.events li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); font-size: 13.5px; }
.events li:last-child { border-bottom: 0; }
.sev { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.sev .icon { width: 16px; height: 16px; }
.sev.warn { background: rgba(242, 163, 58, 0.15); color: var(--warn); }
.sev.info { background: rgba(80, 160, 255, 0.15); color: #7db7ff; }
.sev.ok { background: rgba(47, 180, 124, 0.15); color: #6be0ae; }
.events time { margin-inline-start: auto; color: rgba(255, 255, 255, 0.45); font-size: 12px; font-variant-numeric: tabular-nums; }
.links li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 9px 0; font-size: 13.5px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.links li:last-child { border-bottom: 0; }
.links .icon { width: 18px; height: 18px; color: var(--brand-300); }
.links .q { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.links .q span { display: block; height: 100%; background: linear-gradient(90deg, #2fb47c, #6be0ae); border-radius: inherit; transition: width 0.8s ease; }
.links em { font-style: normal; color: rgba(255, 255, 255, 0.55); font-size: 12px; font-variant-numeric: tabular-nums; min-width: 72px; text-align: end; }
.demo-note { margin-top: 18px; display: flex; gap: 10px; align-items: center; justify-content: center; font-size: 13.5px; color: rgba(255, 255, 255, 0.55); text-align: center; }
.demo-note .icon { width: 18px; height: 18px; flex: none; }
@media (max-width: 1000px) { .dash-kpis { grid-template-columns: repeat(2, 1fr); } .dash-main, .dash-bottom { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .dash { padding: 12px; } .kpi-value { font-size: 23px; } .inv-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Roles ---------- */
.roles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.role { padding: 30px 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--brand); }
.role-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); margin-bottom: 16px; }
.role h3 { font-size: 19px; margin-bottom: 8px; }
.role p { color: var(--muted); font-size: 15px; }
.role ul { margin-top: 14px; display: grid; gap: 8px; }
.role li { font-size: 14px; display: flex; gap: 8px; align-items: flex-start; }
.role li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); margin-top: 11px; flex: none; }
.multisite {
  margin-top: 28px; display: grid; grid-template-columns: 1.3fr 2fr; gap: 28px; align-items: center; padding: 30px; border-radius: 24px;
  background: linear-gradient(135deg, var(--ink), var(--charcoal)); color: #fff;
}
.multisite h3 { font-size: 22px; margin-bottom: 8px; }
.multisite p { color: rgba(255, 255, 255, 0.75); font-size: 15px; }
.ms-tags { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ms-tag { padding: 18px 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--glass-line); text-align: center; font-weight: 700; font-size: 14.5px; }
.ms-tag .icon { margin: 0 auto 8px; color: var(--brand-300); width: 28px; height: 28px; }
@media (max-width: 960px) { .roles-grid { grid-template-columns: 1fr; } .multisite { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .ms-tags { grid-template-columns: 1fr; } .multisite { padding: 22px 18px; } }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.steps::before { content: ""; position: absolute; top: 34px; inset-inline: 12%; height: 2px; background: repeating-linear-gradient(270deg, var(--brand) 0 8px, transparent 8px 14px); opacity: 0.5; }
.step { position: relative; text-align: center; padding: 0 8px; }
.step-num {
  width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 22px; display: grid; place-items: center; position: relative;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--brand);
}
.step-num .icon { width: 30px; height: 30px; }
.step-num b { position: absolute; top: -8px; inset-inline-end: -8px; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 13px; display: grid; place-items: center; }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14.5px; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .steps::before { display: none; }
}
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

.start-grid { margin-top: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.start-card { padding: 30px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.start-card h3 { font-size: 20px; margin-bottom: 6px; display: flex; gap: 10px; align-items: center; }
.start-card h3 .icon { color: var(--brand); }
.start-card > p { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.deliver { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.deliver li { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; background: var(--soft); font-weight: 600; font-size: 14.5px; line-height: 1.6; }
.deliver .icon { color: var(--brand); flex: none; }
@media (max-width: 860px) { .start-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .deliver { grid-template-columns: 1fr; } .start-card { padding: 22px 18px; } }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: 28px; padding: 52px 48px; color: #fff;
  background: radial-gradient(600px 300px at 0% 100%, rgba(255, 255, 255, 0.18), transparent 60%), linear-gradient(120deg, #f07a45, var(--brand) 50%, #c9441a);
  display: grid; grid-template-columns: 1.4fr auto; gap: 28px; align-items: center; box-shadow: 0 40px 80px -40px rgba(232, 91, 38, 0.8);
}
.cta::after {
  content: ""; position: absolute; inset-inline-end: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%;
  border: 40px solid rgba(255, 255, 255, 0.08);
}
.cta h2 { font-size: clamp(24px, 3vw, 34px); }
.cta p { margin-top: 8px; color: rgba(255, 255, 255, 0.88); font-size: 16.5px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.cta .btn-light { background: #fff; color: var(--brand-600); }
.cta .btn-light:hover { box-shadow: 0 16px 30px -14px rgba(0, 0, 0, 0.4); }
.cta .btn-ghost { border-color: rgba(255, 255, 255, 0.5); }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; padding: 36px 24px; } }
@media (max-width: 480px) { .cta-actions .btn { flex: 1 1 100%; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: start; }
.form-card { padding: 32px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-card h3 { font-size: 21px; }
.form-card > p { color: var(--muted); font-size: 14.5px; margin: 6px 0 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 700; }
.field label span { color: var(--brand); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1px solid #d5dbe2; background: #fbfcfd;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s; font-size: 15px;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.8; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(232, 91, 38, 0.15); background: #fff; }
.field input[dir="ltr"] { text-align: right; }
.form-actions { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-hint { margin-top: 12px; font-size: 13px; color: var(--muted); }
.form-error { margin-top: 10px; font-size: 13.5px; color: var(--bad); min-height: 1em; }
@media (max-width: 560px) { .form-grid, .form-actions { grid-template-columns: 1fr; } .form-card { padding: 22px 18px; } }

.contact-cards { display: grid; gap: 14px; }
.c-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border-radius: 18px; background: #fff; border: 1px solid var(--line); transition: border-color 0.2s, transform 0.2s; }
a.c-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.c-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--ink); color: var(--brand-300); flex: none; }
.c-card small { display: block; font-size: 13px; color: var(--muted); }
.c-card strong { display: block; font-size: 17px; line-height: 1.6; }
.c-card p { font-size: 14.5px; line-height: 1.85; }
.c-channels { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.c-channels a, .c-channels span { font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); }
.c-channels a:hover { border-color: var(--brand); color: var(--brand-600); }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, 0.72); padding: 64px 0 28px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.footer-brand img { width: 56px; height: auto; }
.footer-brand strong { display: block; color: #fff; font-size: 18px; }
.footer-brand span { font-size: 12.5px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-links { display: grid; gap: 8px; }
.footer-links a:hover { color: var(--brand-300); }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.08); display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: 13px; color: rgba(255, 255, 255, 0.5); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* back to top */
.to-top {
  position: fixed; inset-inline-start: 18px; bottom: 18px; z-index: 40; width: 46px; height: 46px; border-radius: 14px; border: 0; cursor: pointer;
  background: var(--ink); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.5);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity 0.25s, transform 0.25s, background-color 0.2s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--brand); }
.to-top .icon { transform: rotate(90deg); }

/* reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-group > .reveal:nth-child(2) { transition-delay: 0.08s; }
.js .reveal-group > .reveal:nth-child(3) { transition-delay: 0.16s; }
.js .reveal-group > .reveal:nth-child(4) { transition-delay: 0.24s; }
.js .reveal-group > .reveal:nth-child(5) { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .chart-line { stroke-dashoffset: 0; }
  .js .reveal { opacity: 1; transform: none; }
}

/* 404 */
.page-404 { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 24px 16px; color: #fff;
  background: radial-gradient(700px 400px at 80% 0%, rgba(232, 91, 38, 0.3), transparent 60%), linear-gradient(160deg, var(--navy-800), var(--navy-900)); }
.page-404 img { width: 96px; margin: 0 auto 18px; }
.page-404 h1 { font-size: clamp(56px, 12vw, 120px); line-height: 1.1; color: var(--brand); }
.page-404 p { margin: 10px 0 26px; color: rgba(255, 255, 255, 0.75); font-size: 18px; }
