/* همسامان — سایت معرفی محصولات
   رنگ‌ها از نشان همسامان: سرمه‌ای، آبی، فیروزه‌ای و سبز */

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

:root {
  --navy: #12366e;
  --navy-2: #0c2552;
  --navy-3: #081a3b;
  --blue: #0b6fd0;
  --blue-soft: #e8f1fc;
  --teal: #0f9f8a;
  --teal-soft: #e3f6f2;
  --green: #3fbb5c;
  --green-soft: #e8f7eb;
  --grad: linear-gradient(115deg, #0b5fc4 0%, #0f9f8a 58%, #4cc35a 100%);
  --grad-soft: linear-gradient(115deg, #eaf2fd 0%, #e5f6f2 60%, #ecf8ee 100%);

  --ink: #0f1e36;
  --ink-2: #3c4a63;
  --ink-3: #6a7790;
  --line: #e2e8f1;
  --bg: #ffffff;
  --bg-2: #f5f8fc;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(15, 30, 54, .05), 0 12px 32px -12px rgba(15, 30, 54, .14);
  --shadow-lg: 0 30px 70px -24px rgba(8, 26, 59, .35);
  --wrap: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Vazirmatn", Tahoma, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.9;
  font-size: 16px;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.45; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(30px, 4.6vw, 52px); font-weight: 800; letter-spacing: -.5px; }
h2 { font-size: clamp(25px, 3.2vw, 38px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 1em; color: var(--ink-2); }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.icon { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- دکمه ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 15px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px rgba(11, 111, 208, .7); }
.btn-primary:hover { box-shadow: 0 14px 30px -10px rgba(11, 111, 208, .8); }
.btn-ghost { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-ghost:hover { border-color: var(--blue); }
.btn-light { background: #fff; color: var(--navy); }
.btn-outline-light { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); }
.btn .icon { width: 18px; height: 18px; }

/* ---------- سربرگ ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(15,30,54,.4); }
.nav { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { font-size: 26px; font-weight: 900; letter-spacing: -.3px; line-height: 1; }
.brand small { display: block; font-size: 10.5px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; margin-top: 4px; -webkit-text-fill-color: var(--ink-3); }
.nav-links { display: flex; gap: 4px; margin-inline-start: auto; align-items: center; }
.nav-links a { color: var(--ink-2); font-weight: 600; font-size: 15px; padding: 8px 14px; border-radius: 10px; transition: background .15s, color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--navy); background: var(--bg-2); }
.nav-cta { margin-inline-start: 8px; }
.nav-toggle { display: none; margin-inline-start: auto; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--navy); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; padding: 12px 16px 20px; gap: 2px; margin: 0;
    border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(15,30,54,.3);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .2s;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 14px; }
  .nav-cta { margin: 8px 0 0; justify-content: center; }
}

/* ---------- قهرمان ---------- */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% -20% auto auto; width: 900px; height: 900px;
  background: radial-gradient(circle at center, rgba(15,159,138,.16), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: auto auto -40% -15%; width: 800px; height: 800px;
  background: radial-gradient(circle at center, rgba(11,111,208,.13), transparent 62%);
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 16px; border-radius: 999px;
  background: var(--grad-soft); color: var(--navy); font-weight: 700; font-size: 13.5px;
  border: 1px solid rgba(15,159,138,.2); margin-bottom: 20px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(63,187,92,.2); }
.hero p.lead { font-size: 18.5px; color: var(--ink-2); max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; color: var(--ink-2); font-size: 14.5px; font-weight: 600; }
.hero-points li { display: flex; align-items: center; gap: 7px; }
.hero-points .icon { width: 18px; height: 18px; color: var(--teal); stroke-width: 2.4; }

@media (max-width: 960px) {
  .hero { padding: 40px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
}

/* ---------- قاب نرم‌افزار (ماکت) ---------- */
.app-window {
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(15,30,54,.08); overflow: hidden; direction: rtl;
}
.app-bar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; background: #f4f6fa; border-bottom: 1px solid var(--line); }
.app-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d7dde7; }
.app-bar span { margin-inline-start: 10px; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.app-body { display: grid; grid-template-columns: 132px 1fr; min-height: 340px; }
.app-side { background: var(--navy-2); padding: 16px 10px; display: flex; flex-direction: column; gap: 4px; }
.app-side b { color: #fff; font-size: 14px; padding: 2px 8px 12px; font-weight: 800; }
.app-side span { color: rgba(255,255,255,.62); font-size: 11.5px; padding: 6px 8px; border-radius: 8px; }
.app-side span.on { background: rgba(255,255,255,.12); color: #fff; }
.app-main { padding: 16px; display: grid; gap: 12px; align-content: start; background: #fafbfd; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.kpi small { display: block; font-size: 10.5px; color: var(--ink-3); }
.kpi strong { font-size: 16px; color: var(--navy); }
.kpi em { font-style: normal; font-size: 10.5px; color: var(--green); font-weight: 700; margin-inline-start: 4px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.panel h5 { margin: 0 0 10px; font-size: 12px; color: var(--ink-2); font-weight: 700; }
.bars { display: flex; align-items: flex-end; gap: 7px; height: 96px; }
.bars i { flex: 1; border-radius: 5px 5px 2px 2px; background: var(--grad); opacity: .9; }
.bars i:nth-child(even) { opacity: .55; }
.rows { display: grid; gap: 7px; }
.rows div { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--ink-2); padding: 6px 8px; border-radius: 7px; background: var(--bg-2); }
.tag { font-size: 10px; font-weight: 700; padding: 1px 8px; border-radius: 99px; }
.tag.g { background: var(--green-soft); color: #23853b; }
.tag.b { background: var(--blue-soft); color: var(--blue); }
.tag.a { background: #fff4e0; color: #b26a00; }
.split2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }

.hero-visual { position: relative; }
.float-card {
  position: absolute; background: #fff; border-radius: 14px; box-shadow: var(--shadow);
  border: 1px solid var(--line); padding: 12px 14px; display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; color: var(--navy);
}
.float-card small { display: block; font-weight: 500; color: var(--ink-3); font-size: 11.5px; }
.float-card .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: var(--grad); }
.float-card .ic .icon { width: 20px; height: 20px; }
.float-a { bottom: -22px; inset-inline-start: -26px; }
.float-b { top: 54px; inset-inline-end: -30px; }
@media (max-width: 1100px) { .float-b { inset-inline-end: -8px; } .float-a { inset-inline-start: -8px; } }
@media (max-width: 560px) {
  .app-body { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .float-card { display: none; }
  .split2 { grid-template-columns: 1fr; }
}

/* ---------- بخش‌ها ---------- */
section { position: relative; }
.section { padding: 96px 0; }
.section.alt { background: var(--bg-2); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head .kicker { display: inline-block; font-weight: 800; font-size: 14px; color: var(--teal); margin-bottom: 8px; }
.section-head p { font-size: 17px; }
@media (max-width: 720px) { .section { padding: 68px 0; } .section-head { margin-bottom: 40px; } }

/* نوار اعتماد */
.strip { border-block: 1px solid var(--line); background: #fff; }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-item { padding: 26px 20px; text-align: center; border-inline-start: 1px solid var(--line); }
.strip-item:first-child { border-inline-start: 0; }
.strip-item strong { display: block; font-size: 24px; font-weight: 900; color: var(--navy); line-height: 1.5; }
.strip-item span { font-size: 14px; color: var(--ink-3); font-weight: 500; }
@media (max-width: 760px) {
  .strip-grid { grid-template-columns: 1fr 1fr; }
  .strip-item:nth-child(3) { border-inline-start: 0; }
  .strip-item:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* کارت محصول */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card {
  --c: var(--blue); --c-soft: var(--blue-soft);
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px 28px; display: flex; flex-direction: column; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s, border-color .2s; overflow: hidden;
}
.product-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c); }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.product-card.teal { --c: var(--teal); --c-soft: var(--teal-soft); }
.product-card.green { --c: #2fa34b; --c-soft: var(--green-soft); }
.p-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--c-soft); color: var(--c); margin-bottom: 20px; }
.p-ic .icon { width: 28px; height: 28px; }
.product-card .p-name { font-size: 13.5px; font-weight: 800; color: var(--c); margin-bottom: 2px; }
.product-card h3 { font-size: 21px; }
.product-card ul { margin: 6px 0 24px; display: grid; gap: 8px; }
.product-card li { display: flex; gap: 9px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); }
.product-card li .icon { width: 18px; height: 18px; color: var(--c); margin-top: 5px; stroke-width: 2.4; }
.product-card .more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--c); }
.product-card .more .icon { width: 18px; height: 18px; transition: transform .2s; }
.product-card:hover .more .icon { transform: translateX(-4px); }
@media (max-width: 960px) { .products { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }

/* شبکهٔ ویژگی */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.features.four { grid-template-columns: repeat(4, 1fr); }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px;
  transition: border-color .2s, box-shadow .2s;
}
.feature:hover { border-color: rgba(15,159,138,.4); box-shadow: var(--shadow); }
.feature .f-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--grad-soft); color: var(--teal); margin-bottom: 16px; }
.feature h3 { font-size: 17.5px; margin-bottom: 6px; }
.feature p { font-size: 14.5px; margin: 0; }
@media (max-width: 1060px) { .features.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features, .features.four { grid-template-columns: 1fr; } }

/* بخش تیره */
.dark { background: var(--navy-3); color: #fff; overflow: hidden; }
.dark::before {
  content: ""; position: absolute; inset: -40% auto auto -10%; width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(15,159,138,.28), transparent 60%); pointer-events: none;
}
.dark::after {
  content: ""; position: absolute; inset: auto -10% -50% auto; width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(11,111,208,.3), transparent 60%); pointer-events: none;
}
.dark .wrap { position: relative; z-index: 1; }
.dark h2, .dark h3 { color: #fff; }
.dark p { color: rgba(255,255,255,.72); }
.dark .section-head .kicker { color: #6fe08a; }

/* نمودار یکپارچگی */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 0; }
.flow-node {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius);
  padding: 26px 22px; backdrop-filter: blur(6px);
}
.flow-node .p-name { font-size: 13px; font-weight: 800; color: #6fe08a; }
.flow-node h3 { font-size: 19px; margin: 2px 0 10px; }
.flow-node ul { display: grid; gap: 6px; }
.flow-node li { font-size: 14px; color: rgba(255,255,255,.75); display: flex; gap: 8px; }
.flow-node li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #6fe08a; margin-top: 11px; flex: none; }
.flow-arrow { display: grid; place-items: center; padding: 0 12px; color: rgba(255,255,255,.5); }
.flow-arrow span { display: grid; justify-items: center; gap: 6px; font-size: 12px; font-weight: 600; text-align: center; max-width: 120px; }
.flow-arrow .icon { width: 30px; height: 30px; color: #6fe08a; }
@media (max-width: 960px) {
  .flow { grid-template-columns: 1fr; }
  .flow-arrow { padding: 12px 0; }
  .flow-arrow .icon { transform: rotate(-90deg); }
}

/* نوار معماری */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.pillar { border-top: 2px solid rgba(255,255,255,.18); padding-top: 16px; }
.pillar strong { display: block; color: #fff; font-size: 16px; margin-bottom: 4px; }
.pillar span { font-size: 14px; color: rgba(255,255,255,.65); }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .pillars { grid-template-columns: 1fr; } }

/* دو ستونه با تصویر */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.duo + .duo { margin-top: 96px; }
.duo.rev > :first-child { order: 2; }
.checklist { display: grid; gap: 12px; margin: 20px 0 0; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.checklist .ck { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); flex: none; margin-top: 3px; }
.checklist .ck .icon { width: 16px; height: 16px; stroke-width: 2.6; }
.checklist b { color: var(--ink); }
@media (max-width: 960px) {
  .duo { grid-template-columns: 1fr; gap: 36px; }
  .duo.rev > :first-child { order: 0; }
  .duo + .duo { margin-top: 72px; }
}

/* پرسش‌ها */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 22px; transition: border-color .2s; }
.faq details[open] { border-color: rgba(15,159,138,.45); box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 20px; height: 20px; color: var(--teal); transition: transform .2s; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { padding-bottom: 18px; margin: 0; font-size: 15px; }

/* فراخوان */
.cta-band {
  background: var(--grad); border-radius: 28px; padding: 56px; color: #fff;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
  position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.cta-band::after {
  content: ""; position: absolute; inset: -60% -10% auto auto; width: 520px; height: 520px; border-radius: 50%;
  border: 70px solid rgba(255,255,255,.08); pointer-events: none;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.88); font-size: 17px; margin: 0; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; position: relative; z-index: 1; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; padding: 36px 26px; } .cta-band .actions { justify-content: flex-start; } }

/* فرم تماس */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: start; }
.contact-info { display: grid; gap: 14px; margin-top: 24px; }
.contact-info a, .contact-info div { display: flex; gap: 14px; align-items: center; color: var(--ink); font-weight: 600; }
.contact-info .ci { width: 46px; height: 46px; border-radius: 13px; background: var(--grad-soft); color: var(--teal); display: grid; place-items: center; flex: none; }
.contact-info small { display: block; color: var(--ink-3); font-weight: 500; font-size: 13px; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .full { grid-column: 1 / -1; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.form input, .form select, .form textarea {
  font: inherit; font-size: 15px; padding: 12px 14px; border-radius: 11px; border: 1.5px solid var(--line);
  background: var(--bg-2); color: var(--ink); transition: border-color .15s, background .15s; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--teal); background: #fff; }
.form textarea { min-height: 110px; resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 600; background: #fff; }
.chips input { width: auto; accent-color: var(--teal); }
.chips label:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); color: var(--navy); }
.form-note { font-size: 13px; color: var(--ink-3); margin: 0; }
.form-msg { grid-column: 1 / -1; display: none; padding: 12px 16px; border-radius: 11px; background: var(--green-soft); color: #23743a; font-weight: 600; font-size: 14.5px; }
.form-msg.show { display: block; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; padding: 22px; } }

/* ---------- صفحهٔ محصول ---------- */
.p-hero { padding: 64px 0 80px; position: relative; overflow: hidden; background: var(--grad-soft); }
.p-hero .crumbs { font-size: 14px; color: var(--ink-3); margin-bottom: 18px; font-weight: 600; }
.p-hero .crumbs a { color: var(--ink-3); }
.p-hero .crumbs a:hover { color: var(--blue); }
.p-badge { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--pc, var(--blue)); margin-bottom: 14px; }
.p-badge .p-ic { margin: 0; width: 44px; height: 44px; border-radius: 12px; background: #fff; color: var(--pc, var(--blue)); box-shadow: var(--shadow); }
.p-badge .p-ic .icon { width: 24px; height: 24px; }

.toc { position: sticky; top: 72px; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.toc .wrap { display: flex; gap: 6px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; }
.toc .wrap::-webkit-scrollbar { display: none; }
.toc a { white-space: nowrap; font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
.toc a:hover, .toc a.on { color: #fff; background: var(--navy); border-color: var(--navy); }

.modules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.module {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  scroll-margin-top: 140px; transition: box-shadow .2s, border-color .2s;
}
.module:hover { box-shadow: var(--shadow); border-color: rgba(15,159,138,.35); }
.module-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.module-head .f-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-soft); color: var(--teal); flex: none; }
.module-head h3 { margin: 0; font-size: 19px; }
.module-head small { display: block; color: var(--ink-3); font-size: 13px; font-weight: 500; }
.module > p { font-size: 15px; }
.module ul { display: grid; gap: 8px; }
.module li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-2); line-height: 1.85; }
.module li::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--teal); transform: rotate(45deg); margin-top: 10px; flex: none; }
.module.wide { grid-column: 1 / -1; }
.module.wide ul { grid-template-columns: 1fr 1fr; column-gap: 32px; }
@media (max-width: 900px) { .modules { grid-template-columns: 1fr; } .module.wide ul { grid-template-columns: 1fr; } }

.std-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 15px; }
.std-table th, .std-table td { padding: 14px 18px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
.std-table th { background: var(--bg-2); font-weight: 800; color: var(--navy); font-size: 14px; }
.std-table tr:last-child td { border-bottom: 0; }
.std-table td:last-child { color: var(--teal); font-weight: 700; white-space: nowrap; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
@media (max-width: 640px) { .std-table { font-size: 14px; } .std-table th, .std-table td { padding: 12px; } }

.big-num { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.big-num div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-align: center; }
.big-num strong { display: block; font-size: 36px; font-weight: 900; line-height: 1.4; }
.big-num span { color: var(--ink-2); font-size: 14.5px; }
@media (max-width: 760px) { .big-num { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; position: relative; }
.step::before { counter-increment: s; content: counter(s, persian); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--grad); color: #fff; font-weight: 900; margin-bottom: 14px; }
.step h3 { font-size: 16.5px; margin-bottom: 4px; }
.step p { font-size: 14px; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- پانویس ---------- */
.site-footer { background: var(--navy-3); color: rgba(255,255,255,.7); padding: 64px 0 28px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: #fff; -webkit-text-fill-color: #fff; background: none; }
.site-footer .brand small { -webkit-text-fill-color: rgba(255,255,255,.55); }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.site-footer ul { display: grid; gap: 8px; }
.site-footer a { color: rgba(255,255,255,.7); }
.site-footer a:hover { color: #fff; }
.site-footer p { color: rgba(255,255,255,.6); font-size: 14px; margin-top: 16px; max-width: 340px; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: rgba(255,255,255,.5); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ورود نرم عناصر */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

.to-top {
  position: fixed; bottom: 22px; left: 22px; z-index: 40; width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: var(--navy); color: #fff; display: grid; place-items: center; cursor: pointer;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top .icon { width: 20px; height: 20px; }

@media print {
  .site-header, .toc, .to-top, .cta-band, .form { display: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* اصلاحات پس از بازبینی */
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #fff; background: var(--grad); }
.module-head > div { min-width: 0; }
.module-head h3 { overflow-wrap: anywhere; }

/* نشان همسامان در سربرگ و پانویس */
.brand-logo { display: inline-flex; align-items: center; line-height: 0; }
.brand-logo img { height: 46px; width: auto; }
.site-footer .brand-logo img { height: 54px; }
@media (max-width: 520px) { .brand-logo img { height: 38px; } }

/* ================================================================
   لایهٔ حرفه‌ای — الهام از سایت‌های نرم‌افزاری مطرح (آرام، دقیق، کم‌رنگ)
   یک رنگ برند، خطوط نازک، شبکهٔ کم‌رنگ، حرکت‌های کوتاه و یک‌باره
   ================================================================ */
@property --beam { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

:root {
  --grad: linear-gradient(105deg, #1561d6 0%, #0f8fc4 55%, #12a58e 100%);
  --grad-text: linear-gradient(105deg, #1561d6 0%, #0f8fc4 45%, #12a58e 80%, #4cb84a 100%);
  --line: #e6ebf2;
  --line-2: #d9e1ec;
  --ink: #0b1b33;
  --ink-2: #44526a;
  --ink-3: #6b778c;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 2px rgba(11,27,51,.04), 0 4px 16px -6px rgba(11,27,51,.08);
  --shadow-lg: 0 2px 4px rgba(11,27,51,.04), 0 24px 64px -20px rgba(11,27,51,.22);
}
body { background: #fff; color: var(--ink); }
h1 { letter-spacing: -1px; font-weight: 800; }
h2 { letter-spacing: -.5px; }
.grad-text { background-image: var(--grad-text); }

/* شبکهٔ کم‌رنگ پس‌زمینه (الگوی مشترک بخش‌های شاخص) */
.hero::before, .p-hero::before, .dark::before, .cta-band::before {
  content: ""; position: absolute; inset: 0; width: auto; height: auto; border-radius: 0; pointer-events: none;
  background-image: linear-gradient(rgba(11,27,51,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(11,27,51,.055) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  animation: none;
}

/* سربرگ شیشه‌ای */
.site-header { background: rgba(255,255,255,.72); }
.site-header.scrolled { border-color: var(--line); box-shadow: none; }
.nav-links a { font-weight: 500; color: var(--ink-2); }
.nav-links a:hover, .nav-links a.active { background: transparent; color: var(--ink); }
.nav-links a.active { box-shadow: inset 0 -2px 0 #0f8fc4; border-radius: 0; }

/* دکمه‌ها */
.btn { border-radius: 10px; padding: 11px 20px; font-weight: 600; transition: background .2s, box-shadow .2s, border-color .2s, transform .2s var(--ease); }
.btn:hover { transform: none; }
.btn-primary { background: var(--grad); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 1px 2px rgba(11,27,51,.2), 0 8px 20px -10px rgba(21,97,214,.6); }
.btn-primary:hover { filter: brightness(1.07); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 1px 2px rgba(11,27,51,.2), 0 12px 28px -12px rgba(21,97,214,.75); }
.btn-primary .icon, .more .icon { transition: transform .25s var(--ease); }
.btn-primary:hover .icon { transform: translateX(-3px); }
.btn-ghost { border: 1px solid var(--line-2); box-shadow: 0 1px 2px rgba(11,27,51,.05); }
.btn-ghost:hover { border-color: #b9c6d8; background: #fafcff; }
.nav-links a.btn-primary { color: #fff; }

/* برچسب بالای سرتیترها */
.section-head .kicker, .kicker {
  display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; letter-spacing: .2px;
  color: #0f7fb4; padding: 0; background: none; border: 0;
}
.section-head .kicker::before { content: ""; width: 22px; height: 1.5px; background: var(--grad); }
.dark .section-head .kicker { color: #7fd0e8; }

/* قهرمان */
.hero { background: #fff; padding-top: 88px; }
.hero::after {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 90%; border-radius: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(15,143,196,.12), transparent), radial-gradient(closest-side at 70% 60%, rgba(18,165,142,.08), transparent);
  animation: none;
}
.eyebrow {
  background: #fff; border: 1px solid var(--line-2); color: var(--ink-2); font-weight: 600; font-size: 13px;
  box-shadow: 0 1px 2px rgba(11,27,51,.05); padding: 5px 14px 5px 12px;
}
.eyebrow .dot { background: #12a58e; box-shadow: 0 0 0 3px rgba(18,165,142,.18); }
.hero p.lead, .p-hero .lead { color: var(--ink-2); font-size: 18px; }
.hero-points { gap: 8px 24px; }
.hero-points li { background: none; border: 0; padding: 0; box-shadow: none; font-weight: 500; color: var(--ink-3); }
.hero-points .icon { color: #12a58e; }

/* ورود قهرمان: کوتاه، یک‌باره، پله‌ای */
.hero .eyebrow, .hero h1, .hero .lead, .hero-actions, .hero-points,
.p-hero .crumbs, .p-hero .p-badge, .p-hero h1, .p-hero .lead, .p-hero .hero-actions { animation: enter .9s var(--ease) both; }
.hero h1, .p-hero .p-badge { animation-delay: .08s; }
.hero .lead, .p-hero h1 { animation-delay: .16s; }
.hero-actions, .p-hero .lead { animation-delay: .24s; }
.hero-points, .p-hero .hero-actions { animation-delay: .32s; }
.hero-visual { animation: enterVisual 1.2s .25s var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes enterVisual { from { opacity: 0; transform: translateY(28px) scale(.985); } to { opacity: 1; transform: none; } }

/* ماکت نرم‌افزار با «پرتو» روی لبه */
.hero-visual::before {
  content: ""; position: absolute; inset: 12% 8% -6%; z-index: -1; border-radius: 30px; filter: blur(60px);
  background: linear-gradient(105deg, rgba(21,97,214,.35), rgba(18,165,142,.28)); opacity: .55;
}
.app-window {
  border: 1px solid transparent; border-radius: 14px;
  background: linear-gradient(#fff, #fff) padding-box,
              conic-gradient(from var(--beam), transparent 0 72%, rgba(15,143,196,.0) 74%, #0f8fc4 84%, #4cb84a 88%, transparent 92%) border-box,
              linear-gradient(rgba(11,27,51,.12), rgba(11,27,51,.12)) border-box;
  box-shadow: var(--shadow-lg);
}
.hero-visual .app-window { animation: beam 7s linear infinite; }
@keyframes beam { to { --beam: 360deg; } }
.app-bar { background: #f7f9fc; }
.app-bar i { width: 9px; height: 9px; background: #dfe5ee; }
.app-side { background: #0c2550; }
.app-side span.on { background: rgba(255,255,255,.1); box-shadow: inset 2px 0 0 #4fc3e8; }
.app-main { background: #fbfcfe; }
.kpi, .panel { border-color: var(--line); box-shadow: 0 1px 2px rgba(11,27,51,.03); }
.kpi strong { color: var(--ink); }
.bars i { background: linear-gradient(180deg, #2a8bea, #1561d6); border-radius: 3px 3px 1px 1px; opacity: 1; transform-origin: bottom; animation: barIn 1s var(--ease) both; }
.bars i:nth-child(even) { opacity: .45; }
.bars i:nth-child(n) { animation-delay: calc(.7s + var(--n, 0) * 40ms); }
.bars i:nth-child(1){--n:0} .bars i:nth-child(2){--n:1} .bars i:nth-child(3){--n:2} .bars i:nth-child(4){--n:3}
.bars i:nth-child(5){--n:4} .bars i:nth-child(6){--n:5} .bars i:nth-child(7){--n:6} .bars i:nth-child(8){--n:7}
.bars i:nth-child(9){--n:8} .bars i:nth-child(10){--n:9} .bars i:nth-child(11){--n:10} .bars i:nth-child(12){--n:11}
@keyframes barIn { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.app-main .rows div { animation: fadeRow .7s var(--ease) both; }
.app-main .rows div:nth-child(1) { animation-delay: .9s; } .app-main .rows div:nth-child(2) { animation-delay: 1s; }
.app-main .rows div:nth-child(3) { animation-delay: 1.1s; } .app-main .rows div:nth-child(4) { animation-delay: 1.2s; }
.app-main .rows div:nth-child(5) { animation-delay: 1.3s; } .app-main .rows div:nth-child(6) { animation-delay: 1.4s; }
@keyframes fadeRow { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tag { font-weight: 600; }

/* کارت‌های شناور: شیشه‌ای و ساکن */
.float-card {
  background: rgba(255,255,255,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(11,27,51,.08); box-shadow: 0 12px 32px -14px rgba(11,27,51,.3);
  font-weight: 600; animation: enter .9s 1.3s var(--ease) both;
}
.float-b { animation-delay: 1.5s; }
.float-card .ic { background: #eef5fd; color: #1561d6; }

/* نوار آمار */
.strip { background: #fff; border-block: 1px solid var(--line); }
.strip-item { border-color: var(--line); padding: 30px 20px; }
.strip-item strong { font-size: 22px; color: var(--ink); background: none; -webkit-text-fill-color: currentColor; }
.strip-item [data-count] {
  font-size: 1.45em; font-weight: 800; margin-inline-end: 4px; font-variant-numeric: tabular-nums;
  background-image: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.strip-item span:not([data-count]) { color: var(--ink-3); }

/* نوار نام ماژول‌ها (به سبک ردیف لوگوی مشتریان) */
.marquee {
  padding: 26px 0; overflow: hidden; background: #fff; border-bottom: 1px solid var(--line); direction: ltr;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  direction: rtl; white-space: nowrap; padding: 0 26px; font-weight: 600; font-size: 15.5px; color: #8a96a8;
  display: inline-flex; align-items: center; gap: 26px; transition: color .2s;
}
.marquee-track span::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #c6cfdc; margin-inline-start: 26px; }
.marquee-track span:hover { color: var(--ink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* کارت‌ها: سفید، خط نازک، نور زیر ماوس */
.product-card, .feature, .module, .step, .big-num div, .faq details, .form {
  border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 16px;
  transition: border-color .3s, box-shadow .3s, transform .4s var(--ease);
}
.product-card::before { height: 1px; opacity: 1; background: linear-gradient(90deg, transparent, var(--c), transparent); }
.product-card::after { display: none; }
.product-card:hover, .feature:hover, .module:hover, .step:hover { transform: translateY(-2px); border-color: var(--line-2); box-shadow: var(--shadow-lg); }
.spot { background-image: radial-gradient(420px circle at var(--mx, -999px) var(--my, -999px), rgba(15,143,196,.07), transparent 45%); }
.dark .spot { background-image: radial-gradient(360px circle at var(--mx, -999px) var(--my, -999px), rgba(127,208,232,.10), transparent 45%); }

.p-ic, .feature .f-ic, .module-head .f-ic {
  background: linear-gradient(180deg, #fff, #f2f6fb); color: #1561d6; border: 1px solid var(--line-2);
  box-shadow: 0 1px 2px rgba(11,27,51,.06), inset 0 -1px 0 rgba(11,27,51,.03);
}
.product-card .p-ic { color: var(--c); background: linear-gradient(180deg, #fff, var(--c-soft)); }
.product-card.green { --c: #2c9a48; }
.feature .f-ic, .module-head .f-ic { width: 42px; height: 42px; border-radius: 11px; }
.feature .f-ic .icon, .module-head .f-ic .icon { width: 21px; height: 21px; }
.product-card li .icon, .checklist .ck { color: #12a58e; }
.checklist .ck { background: #eaf7f4; }
.module li::before { width: 5px; height: 5px; border-radius: 50%; transform: none; margin-top: 12px; background: #9fb0c6; }
.module-head h3 { color: var(--ink); }
.more { font-weight: 700; }
.product-card:hover .more .icon { transform: translateX(-4px); }

/* بخش‌های روشن جایگزین */
.section.alt { background: #f8fafc; border-block: 1px solid var(--line); }

/* بخش تیره */
.dark { background: #061733; }
.dark::before {
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000 20%, transparent 75%);
}
.dark::after {
  inset: -30% 15% auto 15%; width: auto; height: 70%; border-radius: 0; animation: none;
  background: radial-gradient(closest-side, rgba(15,143,196,.28), transparent);
}
.flow-node { background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; backdrop-filter: none; transition: border-color .3s, background .3s; }
.flow-node:hover { border-color: rgba(127,208,232,.35); background: rgba(255,255,255,.05); }
.flow-node .p-name { color: #7fd0e8; }
.flow-node li::before { background: #4fc3e8; }
.flow-arrow .icon { color: #4fc3e8; width: 26px; height: 26px; }
.pillar { border-top: 1px solid rgba(255,255,255,.14); }

/* «پرتو» روی پیکان‌های جریان */
.flow-arrow span { position: relative; }
.flow-arrow span::before {
  content: ""; position: absolute; top: 14px; inset-inline: -12px; height: 1px;
  background: linear-gradient(90deg, transparent, #4fc3e8, transparent); background-size: 50% 100%; background-repeat: no-repeat;
  animation: travel 2.6s linear infinite; opacity: .8;
}
@keyframes travel { from { background-position: 200% 0; } to { background-position: -100% 0; } }
@media (max-width: 960px) { .flow-arrow span::before { display: none; } }

/* گام‌ها */
.step::before { background: #f0f5fb; color: #1561d6; border: 1px solid var(--line-2); font-weight: 800; width: 36px; height: 36px; border-radius: 10px; }

/* فراخوان: تیره با درخشش برند */
.cta-band { background: #071c3f; border-radius: 20px; box-shadow: var(--shadow-lg); }
.cta-band::before {
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 60% 100% at 100% 0%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 100% at 100% 0%, #000 10%, transparent 70%);
}
.cta-band::after {
  inset: -60% auto auto -10%; width: 70%; height: 200%; border: 0; border-radius: 0;
  background: radial-gradient(closest-side, rgba(15,143,196,.35), transparent);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band p { color: rgba(255,255,255,.72); }
.btn-light { box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.btn-outline-light { border: 1px solid rgba(255,255,255,.25); }

/* پرسش‌ها و فرم */
.faq details[open] { border-color: var(--line-2); box-shadow: var(--shadow-lg); }
.faq summary .icon { color: var(--ink-3); }
.form input, .form select, .form textarea { background: #fff; border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 1px 2px rgba(11,27,51,.04); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: #0f8fc4; box-shadow: 0 0 0 3px rgba(15,143,196,.15); }
.chips label { border-width: 1px; font-weight: 500; }
.contact-info .ci { background: #fff; border: 1px solid var(--line-2); color: #1561d6; }

/* صفحهٔ محصول */
.p-hero { background: #fff; border-bottom: 1px solid var(--line); }
.p-badge { color: var(--ink-2); font-weight: 600; font-size: 14px; border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 14px; background: #fff; }
.p-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pc, #1561d6); }
.toc { background: rgba(255,255,255,.85); }
.toc a { border: 0; background: none; color: var(--ink-3); font-weight: 500; border-radius: 8px; }
.toc a:hover { background: #f2f5f9; color: var(--ink); }
.toc a.on { background: #0b1b33; color: #fff; }
.big-num strong { font-variant-numeric: tabular-nums; }
.std-table { border-color: var(--line); }

/* پانویس */
.site-footer { background: #061733; border-top: 1px solid rgba(255,255,255,.06); }
.to-top { background: #0b1b33; border: 1px solid rgba(255,255,255,.1); width: 42px; height: 42px; }

/* ورود با پیمایش: کوتاه و بدون بزرگ‌نمایی */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.product-card.reveal.in:hover, .feature.reveal.in:hover, .module.reveal.in:hover, .step.reveal.in:hover { transform: translateY(-2px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ================================================================
   غنی‌سازی حرفه‌ای — بافت رنگی و تصویر، بدون شلوغی
   ================================================================ */

/* بافت گرادیانی متحرک (مش) */
.hero::after, .p-hero::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none; border-radius: 0;
  inset: -30% auto -6% -12%; width: 66%; height: auto;
  transform: skewY(-9deg); transform-origin: 0 0;
  background:
    radial-gradient(at 18% 22%, #38c6f0 0, transparent 46%),
    radial-gradient(at 82% 18%, #1561d6 0, transparent 52%),
    radial-gradient(at 62% 78%, #12b39a 0, transparent 48%),
    radial-gradient(at 12% 88%, #8ad65a 0, transparent 42%),
    radial-gradient(at 92% 92%, #5b6cff 0, transparent 46%),
    #1a7fe0;
  background-size: 170% 170%;
  animation: mesh 22s ease-in-out infinite alternate;
  -webkit-mask-image: linear-gradient(90deg, #000 72%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 72%, transparent 100%);
  opacity: 1;
}
@keyframes mesh { 0% { background-position: 0% 0%; } 50% { background-position: 100% 40%; } 100% { background-position: 30% 100%; } }
.p-hero { overflow: hidden; }
.p-hero::after { inset: -40% auto 10% -12%; width: 58%; opacity: .85; }
@media (max-width: 960px) {
  .hero::after { inset: 52% -20% -10% -20%; width: auto; transform: skewY(-8deg); -webkit-mask-image: none; mask-image: none; }
  .p-hero::after { inset: 50% -20% -10% -20%; width: auto; -webkit-mask-image: none; mask-image: none; }
}
.hero-visual::before { opacity: .35; }
.hero-visual .app-window { transition: transform .35s var(--ease); will-change: transform; }
.float-card { background: rgba(255,255,255,.9); }

/* تصویر کوچک کارت محصول */
.product-card { padding-top: 0; }
.product-card .p-ic { display: none; }
.pc-visual {
  position: relative; height: 168px; margin: 0 -28px 22px; overflow: hidden;
  display: grid; place-items: center; border-bottom: 1px solid var(--line);
  background: radial-gradient(at 20% 20%, rgba(56,198,240,.55), transparent 55%), radial-gradient(at 85% 80%, rgba(21,97,214,.6), transparent 55%), #2a7fe6;
}
.product-card.teal .pc-visual { background: radial-gradient(at 20% 20%, rgba(56,198,240,.6), transparent 55%), radial-gradient(at 85% 85%, rgba(18,165,142,.75), transparent 55%), #139fb6; }
.product-card.green .pc-visual { background: radial-gradient(at 20% 25%, rgba(138,214,90,.75), transparent 55%), radial-gradient(at 85% 85%, rgba(18,165,142,.7), transparent 55%), #3aae6a; }
.pc-visual::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 22px 22px; -webkit-mask-image: linear-gradient(180deg, #000, transparent); mask-image: linear-gradient(180deg, #000, transparent);
}
.pc-visual > * { position: relative; transition: transform .5s var(--ease); }
.product-card:hover .pc-visual > * { transform: translateY(-4px); }
.pcv-panel { width: 72%; background: rgba(255,255,255,.95); border-radius: 12px; padding: 12px 14px; box-shadow: 0 16px 30px -14px rgba(8,26,59,.45); }
.pcv-panel small { display: block; font-size: 11px; color: var(--ink-3); }
.pcv-panel b { font-size: 15px; color: var(--ink); }
.pcv-bars { display: flex; gap: 5px; align-items: flex-end; height: 44px; margin-top: 8px; }
.pcv-bars i { flex: 1; border-radius: 3px 3px 1px 1px; background: linear-gradient(180deg, #38a4f0, #1561d6); transform-origin: bottom; }
.product-card.in .pcv-bars i { animation: barIn .9s var(--ease) both; }
.pcv-bars i:nth-child(2) { animation-delay: .05s; } .pcv-bars i:nth-child(3) { animation-delay: .1s; } .pcv-bars i:nth-child(4) { animation-delay: .15s; }
.pcv-bars i:nth-child(5) { animation-delay: .2s; } .pcv-bars i:nth-child(6) { animation-delay: .25s; } .pcv-bars i:nth-child(7) { animation-delay: .3s; } .pcv-bars i:nth-child(8) { animation-delay: .35s; }
.pc-visual .pcv-chip { position: absolute; top: 12px; left: 14px; font-size: 11.5px; font-weight: 700; color: #fff; background: rgba(8,26,59,.35); border: 1px solid rgba(255,255,255,.3); padding: 3px 10px; border-radius: 999px; backdrop-filter: blur(6px); }
.pcv-stack { display: grid; gap: 6px; width: 70%; }
.pcv-stack span { background: rgba(255,255,255,.9); border-radius: 8px; padding: 5px 12px; font-size: 12px; font-weight: 600; color: var(--ink-2); box-shadow: 0 6px 14px -10px rgba(8,26,59,.5); }
.pcv-stack span:nth-child(2) { margin-inline-start: 10px; } .pcv-stack span:nth-child(3) { margin-inline-start: 20px; }
.pcv-stack span.sum { background: #0b1b33; color: #fff; text-align: center; margin-top: 2px; }
.pcv-flow { display: flex; align-items: center; }
.pcv-flow span { background: rgba(255,255,255,.95); border-radius: 10px; padding: 8px 10px; font-size: 12px; font-weight: 700; color: var(--ink-2); box-shadow: 0 10px 20px -12px rgba(8,26,59,.5); white-space: nowrap; }
.pcv-flow span.ok { background: #0b1b33; color: #9ef07a; }
.pcv-flow i { width: 20px; height: 2px; background: rgba(255,255,255,.4); position: relative; overflow: hidden; }
.pcv-flow i::after { content: ""; position: absolute; inset: 0; width: 50%; background: #fff; animation: dash 1.8s linear infinite; }
@keyframes dash { from { transform: translateX(200%); } to { transform: translateX(-200%); } }

/* چیدمان بنتو */
.features.bento { grid-template-columns: repeat(3, 1fr); }
.feature { overflow: hidden; }
.feature.span2 { grid-column: span 2; }
.feature.span3 { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: center; }
@media (max-width: 960px) { .feature.span2 { grid-column: 1 / -1; } .feature.span3 { grid-template-columns: 1fr; gap: 20px; } }
.chain { display: flex; align-items: center; gap: 22px; margin-top: 22px; flex-wrap: wrap; }
.chain span {
  position: relative; display: grid; gap: 2px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, #fff, #f6f9fc); font-size: 12px; box-shadow: 0 1px 2px rgba(11,27,51,.05);
}
.chain span b { font-weight: 700; color: var(--ink); }
.chain span code { font-family: Consolas, monospace; font-size: 11px; color: #0f8fc4; direction: ltr; text-align: right; }
.chain span:not(:last-child)::after { content: ""; position: absolute; left: -23px; top: 50%; width: 22px; height: 1.5px; background: linear-gradient(90deg, #12a58e, #0f8fc4); }
.chain span.new { border-color: rgba(18,165,142,.5); box-shadow: 0 0 0 3px rgba(18,165,142,.12); }
.feature.in .chain span { animation: fadeRow .6s var(--ease) both; }
.feature.in .chain span:nth-child(2) { animation-delay: .12s; } .feature.in .chain span:nth-child(3) { animation-delay: .24s; } .feature.in .chain span:nth-child(4) { animation-delay: .36s; }
.chat-demo { display: grid; gap: 10px; background: #f6f9fc; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.chat-demo .q { justify-self: start; background: #0b1b33; color: #fff; padding: 8px 14px; border-radius: 14px 14px 14px 4px; font-size: 14px; }
.chat-demo .a { justify-self: end; max-width: 88%; background: #fff; border: 1px solid var(--line-2); padding: 10px 14px; border-radius: 14px 14px 4px 14px; font-size: 14px; color: var(--ink-2); box-shadow: var(--shadow); }
.chat-demo .a u { color: #0f8fc4; text-decoration: none; border-bottom: 1px dashed #0f8fc4; }

/* نور روی لبهٔ کارت زیر ماوس */
.feature, .module, .step, .product-card, .flow-node { position: relative; }
.spot::after {
  content: ""; display: block; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(240px circle at var(--mx, -999px) var(--my, -999px), rgba(15,143,196,.95), rgba(18,165,142,.5) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  opacity: 0; transition: opacity .3s; z-index: 2;
}
.spot:hover::after { opacity: 1; }
.product-card.spot::after { display: block; }

/* بخش تیره: درخشش آرام متحرک و کارت‌های لبه‌دار */
.dark::after { animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translateX(-12%); } to { transform: translateX(12%); } }
.flow-node { box-shadow: inset 0 1px 0 rgba(127,208,232,.22); }

/* فراخوان: همان بافت مش روی زمینهٔ تیره */
.cta-band { background: #0a2a63; }
.cta-band::after {
  inset: 0; width: auto; height: auto; border: 0; border-radius: inherit;
  background:
    radial-gradient(at 0% 0%, rgba(56,198,240,.55) 0, transparent 45%),
    radial-gradient(at 30% 100%, rgba(18,179,154,.5) 0, transparent 45%),
    radial-gradient(at 100% 100%, rgba(91,108,255,.4) 0, transparent 45%);
  background-size: 160% 160%; animation: mesh 18s ease-in-out infinite alternate;
}

.strip { background: linear-gradient(180deg, #f7fafd, #fff); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ================================================================
   صحنه‌های چرخان ماکت‌ها — هر چند ثانیه یک فرم دیگر از برنامه
   ================================================================ */
.scenes { display: grid; overflow: hidden; background: #fbfcfe; }
.scene {
  grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .45s var(--ease), transform .6s var(--ease), visibility 0s linear .6s;
}
.scene.on { opacity: 1; visibility: visible; transform: none; transition: opacity .5s var(--ease) .12s, transform .7s var(--ease) .12s, visibility 0s; }
.scene.out { transform: translateY(-10px); }

/* اجزای هر صحنه با ورود پله‌ای، هر بار که صحنه فعال می‌شود */
.scene .rows div, .scene .bars i, .scene .kpi, .scene .meters div, .scene .wf > * { animation: none; }
.scene.on .kpi { animation: fadeRow .55s var(--ease) both; }
.scene.on .kpi:nth-child(2) { animation-delay: .08s; } .scene.on .kpi:nth-child(3) { animation-delay: .16s; }
.scene.on .rows div { animation: fadeRow .55s var(--ease) both; }
.scene.on .rows div:nth-child(1) { animation-delay: .22s; } .scene.on .rows div:nth-child(2) { animation-delay: .3s; }
.scene.on .rows div:nth-child(3) { animation-delay: .38s; } .scene.on .rows div:nth-child(4) { animation-delay: .46s; }
.scene.on .bars i { animation: barIn .8s var(--ease) both; animation-delay: calc(.2s + var(--n, 0) * 35ms); }
.scene.on .meters div { animation: fadeRow .55s var(--ease) both; }
.scene.on .meters div:nth-child(2) { animation-delay: .08s; } .scene.on .meters div:nth-child(3) { animation-delay: .16s; } .scene.on .meters div:nth-child(4) { animation-delay: .24s; }
.scene.on .meters i::after { animation: grow 1.1s var(--ease) .25s both; }
.scene.on .wf > * { animation: fadeRow .5s var(--ease) both; }
.scene.on .wf > :nth-child(2) { animation-delay: .1s; } .scene.on .wf > :nth-child(3) { animation-delay: .2s; } .scene.on .wf > :nth-child(4) { animation-delay: .3s; }
.scene.on .wf > :nth-child(5) { animation-delay: .4s; } .scene.on .wf > :nth-child(6) { animation-delay: .5s; } .scene.on .wf > :nth-child(7) { animation-delay: .6s; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* نوار پیشرفت ماکت */
.meters { display: grid; gap: 10px; }
.meters div { display: grid; grid-template-columns: minmax(0, 1.1fr) 1.4fr auto; align-items: center; gap: 10px; font-size: 11px; color: var(--ink-2); }
.meters span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meters i { position: relative; height: 6px; border-radius: 99px; background: #eef2f7; overflow: hidden; }
.meters i::after { content: ""; position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: var(--w); border-radius: inherit; background: linear-gradient(270deg, #12a58e, #1561d6); transform-origin: right; }
.meters b { font-size: 11px; color: var(--ink); font-weight: 700; min-width: 34px; text-align: left; }

/* مسیر گردش کار در ماکت */
.wf { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.wf span { font-size: 11px; font-weight: 700; color: var(--ink-3); background: var(--bg-2); padding: 5px 10px; border-radius: 99px; white-space: nowrap; }
.wf span.done { background: var(--green-soft); color: #23853b; }
.wf span.cur { background: var(--blue-soft); color: var(--blue); box-shadow: 0 0 0 0 rgba(21,97,214,.35); }
.scene.on .wf span.cur { animation: fadeRow .5s var(--ease) both, ring 1.8s ease-out 1s infinite; }
.wf em { flex: 1; min-width: 10px; height: 2px; background: #e3e9f1; border-radius: 2px; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(21,97,214,.35); } 100% { box-shadow: 0 0 0 9px rgba(21,97,214,0); } }

/* سربرگ پنجره: عنوان، نقطه‌های صحنه و نوار زمان */
.app-bar { position: relative; }
.app-bar span { transition: opacity .25s ease, transform .25s ease; }
.app-bar span.swap { opacity: 0; transform: translateY(-4px); }
.scene-dots { margin-inline-start: auto; display: flex; gap: 5px; }
.scene-dots button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 99px; background: #d5dce7; cursor: pointer; transition: width .35s var(--ease), background .35s; }
.scene-dots button.on { width: 18px; background: #0f8fc4; }
.scene-prog { position: absolute; right: 0; bottom: -1px; height: 2px; width: 100%; background: linear-gradient(270deg, #12a58e, #1561d6); transform: scaleX(0); transform-origin: right; }
.scene-prog.run { animation: grow var(--dur, 5s) linear forwards; }
.app-window.paused .scene-prog { animation-play-state: paused; }
.app-side span { transition: background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease); }

@media (max-width: 560px) { .wf { gap: 4px; padding: 10px 8px; } .wf span { padding: 4px 7px; font-size: 10px; } }
@media (prefers-reduced-motion: reduce) { .scene-dots, .scene-prog { display: none; } }
