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

:root {
  --bg: #fbfaf7;
  --tint: #f3f1ea;
  --card: #ffffff;
  --ink: #0f1b33;
  --muted: #5b6577;
  --line: #e6e2d8;
  --brand: #1f5aa6;
  --brand-strong: #17457f;
  --brand-soft: #e8effa;
  --accent: #e39b2c;
  --ok: #15803d;
  --ok-soft: #e4f5ea;
  --danger: #b42318;
  --navy: #0f1b33;
  --navy-2: #172a4d;
  --radius: 20px;
  --shadow-sm: 0 2px 8px -2px rgba(15, 27, 51, 0.08);
  --shadow: 0 30px 60px -28px rgba(15, 27, 51, 0.35), 0 8px 20px -12px rgba(15, 27, 51, 0.15);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1220;
    --tint: #111830;
    --card: #161e33;
    --ink: #e9ecf3;
    --muted: #a3acbd;
    --line: #26304a;
    --brand: #79a6ec;
    --brand-strong: #a3c3f3;
    --brand-soft: #1a2849;
    --ok: #5fd28b;
    --ok-soft: #14301f;
    --danger: #f19a92;
    --navy: #080c17;
    --navy-2: #121b33;
    --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.4);
    --shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.8), 0 8px 20px -12px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.9 "Vazirmatn", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.45; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------------------------------------------------------------- دکمه‌ها */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap;
  border-radius: 14px; padding: 10px 22px; border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--brand) 80%, transparent); }
.btn-primary:hover { background: var(--brand-strong); }
@media (prefers-color-scheme: dark) { .btn-primary { color: #0b1324; } }
.btn-ghost { background: var(--card); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-light { background: #fff; color: #0f1b33; }
.btn-light:hover { background: #eef3fb; }
.btn-sm { padding: 7px 16px; font-size: 14px; border-radius: 12px; }
.btn-lg { padding: 13px 26px; font-size: 17px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: default; }
.btn .ic { width: 18px; height: 18px; }

/* ---------------------------------------------------------------- سربرگ */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.top.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.top-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; text-decoration: none; }
.nav { display: flex; gap: 24px; margin-inline-start: auto; }
.nav a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; transition: color .15s; }
.nav a:hover { color: var(--ink); }

/* ---------------------------------------------------------------- عنوان بخش‌ها */
.section { padding: 96px 0; position: relative; }
.section-tint { background: var(--tint); }
.head { max-width: 760px; margin: 0 0 48px; }
.head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block; margin: 0 0 10px; color: var(--brand); font-weight: 700; font-size: 14px;
  background: var(--brand-soft); padding: 2px 14px; border-radius: 999px;
}
.eyebrow.light { color: #cfe0ff; background: rgba(255, 255, 255, 0.1); }
h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 900; margin: 0 0 14px; }
.sub { color: var(--muted); font-size: 18px; margin: 0; }

/* ---------------------------------------------------------------- قهرمان */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 400px at 15% 20%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 70%),
    radial-gradient(500px 360px at 90% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 12%, transparent) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 80%);
}
.hero-inner { display: grid; grid-template-columns: 0.95fr 1.25fr; gap: 56px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px;
  font-size: 14px; font-weight: 700; color: var(--brand);
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px;
  box-shadow: var(--shadow-sm);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
h1 { font-size: clamp(34px, 5vw, 60px); line-height: 1.3; margin: 0 0 20px; font-weight: 900; }
.hl {
  background: linear-gradient(90deg, var(--brand), #3f8cf0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 19px; color: var(--muted); margin: 0 0 32px; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-trust { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 14px; }
.hero-trust li { display: flex; align-items: center; gap: 6px; }
.hero-trust .ic { width: 16px; height: 16px; color: var(--ok); stroke-width: 3; }

.hero-visual { position: relative; padding: 24px 0 40px; }
.browser {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); overflow: hidden;
}
.browser-bar {
  display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px;
  background: color-mix(in srgb, var(--tint) 70%, var(--card)); border-bottom: 1px solid var(--line);
  font-size: 12px; color: var(--muted);
}
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.browser-bar i:nth-child(1) { background: #f26b6b; }
.browser-bar i:nth-child(2) { background: #f2c14e; }
.browser-bar i:nth-child(3) { background: #5ccf7d; }
.browser-bar span { margin-inline-start: auto; }
.phone {
  background: #0f1b33; padding: 8px; border-radius: 32px;
  box-shadow: var(--shadow); width: 220px;
}
.phone img { border-radius: 25px; aspect-ratio: 480 / 984; object-fit: cover; object-position: top; }
.hero-phone { position: absolute; width: 27%; min-width: 150px; bottom: 0; inset-inline-end: -18px; }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px 16px 10px 14px;
  box-shadow: var(--shadow); font-size: 14px; animation: float 6s ease-in-out infinite;
}
.float-card b { display: block; font-weight: 700; }
.float-card small { color: var(--muted); font-size: 12px; }
.fc-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.fc-icon.ok { background: var(--ok-soft); color: var(--ok); }
.fc-1 { top: -6px; inset-inline-end: 16%; }
.fc-2 { bottom: 8px; inset-inline-start: -28px; animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------------------------------------------------------------- مقایسه */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 980px; margin: 0 auto; }
.compare-col { border-radius: var(--radius); padding: 28px 30px; border: 1px solid var(--line); }
.compare-col h3 { margin: 0 0 14px; font-size: 18px; }
.compare-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.compare-col li { display: flex; gap: 10px; align-items: flex-start; }
.compare-col .ic { margin-top: 5px; width: 18px; height: 18px; stroke-width: 2.5; }
.before { background: var(--card); color: var(--muted); }
.before .ic { color: var(--danger); }
.after { background: linear-gradient(160deg, var(--brand-soft), var(--card) 70%); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); box-shadow: var(--shadow-sm); }
.after h3 { color: var(--brand); }
.after .ic { color: var(--ok); }

/* ---------------------------------------------------------------- تور امکانات */
.tabs {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 0 auto 40px;
}
.tabs button {
  display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 600; font-size: 15px;
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--muted); white-space: nowrap; flex: none;
  cursor: pointer; transition: all .2s;
}
.tabs button:hover { color: var(--ink); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.tabs button[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: var(--shadow-sm); }
@media (prefers-color-scheme: dark) { .tabs button[aria-selected="true"] { background: var(--brand); color: #0b1324; border-color: var(--brand); } }
.tabs .ic { width: 18px; height: 18px; }
.panel { display: grid; grid-template-columns: 0.85fr 1.35fr; gap: 48px; align-items: center; animation: fade .35s ease; }
.panel[hidden] { display: none; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.panel h3 { font-size: clamp(22px, 2.4vw, 30px); margin: 0 0 12px; font-weight: 800; }
.panel p { color: var(--muted); margin: 0 0 20px; font-size: 17px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.checks li::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* ---------------------------------------------------------------- نوار موبایل */
.band { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; overflow: hidden; }
.band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(500px 300px at 20% 30%, rgba(80, 140, 230, 0.35), transparent 70%);
}
.band-inner { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.band h2 { color: #fff; }
.band-text p { color: #c3cde0; font-size: 18px; }
.band-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.band-list li { display: flex; gap: 10px; align-items: flex-start; color: #e3e9f5; font-size: 15px; }
.band-list .ic { margin-top: 4px; color: #8fb6f2; }
.phones { position: relative; height: 560px; }
.phones .phone { position: absolute; width: 230px; top: 50%; left: 50%; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7); border: 1px solid rgba(255, 255, 255, 0.08); }
.p-center { transform: translate(-50%, -50%); z-index: 2; }
.p-left { transform: translate(-118%, -46%) rotate(-7deg) scale(.88); }
.p-right { transform: translate(18%, -46%) rotate(7deg) scale(.88); }

/* ---------------------------------------------------------------- همه بخش‌ها */
.modules { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.module {
  display: flex; flex-direction: column; gap: 2px; padding: 18px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.module:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.module .ic { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); margin-bottom: 10px; }
.module b { font-size: 16px; }
.module span { color: var(--muted); font-size: 13px; line-height: 1.7; }

/* ---------------------------------------------------------------- نقش‌ها */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.role { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; position: relative; overflow: hidden; }
.role::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 40%, var(--accent))); }
.role h3 { margin: 0 0 10px; font-size: 18px; }
.role ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; color: var(--muted); }
.role li::before { content: "•"; color: var(--brand); font-weight: 900; margin-inline-end: 8px; }

/* ---------------------------------------------------------------- اعتماد */
.dark { background: var(--navy); color: #fff; }
.dark h2 { color: #fff; }
.dark .sub { color: #b9c4d8; }
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.trust-item {
  padding: 26px; border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.09);
}
.trust-item .ic { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: rgba(121, 166, 236, 0.15); color: #9cc0f5; margin-bottom: 14px; }
.trust-item h3 { margin: 0 0 6px; font-size: 18px; }
.trust-item p { margin: 0; color: #b9c4d8; font-size: 15px; }
.trust-item.stat { background: linear-gradient(150deg, rgba(227, 155, 44, 0.18), rgba(255, 255, 255, 0.03)); border-color: rgba(227, 155, 44, 0.35); }
.trust-item.stat b { display: block; font-size: 52px; line-height: 1.2; font-weight: 900; color: #f5bd62; }

/* ---------------------------------------------------------------- درخواست دمو */
.request { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.request-text > p { color: var(--muted); font-size: 17px; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 32px 0 0; display: grid; gap: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 56px 26px 0; display: flex; flex-direction: column; }
.steps li::before {
  content: counter(step, persian); position: absolute; inset-inline-start: 0; top: 0;
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 800; z-index: 1;
}
.steps li::after { content: ""; position: absolute; inset-inline-start: 18px; top: 38px; bottom: 0; width: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps li:last-child { padding-bottom: 0; }
.steps b { font-size: 17px; }
.steps span { color: var(--muted); font-size: 15px; }
@media (prefers-color-scheme: dark) { .steps li::before { color: #0b1324; } }

.form-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 32px;
  box-shadow: var(--shadow); position: relative;
}
.form-card h3 { margin: 0 0 18px; font-size: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; flex: 1; min-width: 0; }
.row { display: flex; gap: 12px; }
label { font-size: 14px; font-weight: 600; }
label small { color: var(--muted); font-weight: 400; }
input, select, textarea {
  font: inherit; font-size: 15px; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; width: 100%;
  transition: border-color .15s, box-shadow .15s; scroll-margin-top: 100px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
input[aria-invalid="true"] { border-color: var(--danger); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.form-error { color: var(--danger); min-height: 1.6em; margin: 0 0 8px; font-size: 14px; }
.form-note { text-align: center; color: var(--muted); font-size: 13px; margin: 12px 0 0; }
.done { text-align: center; padding: 40px 10px; }
.done-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); margin-bottom: 14px; }
.done-icon .ic { width: 30px; height: 30px; stroke-width: 3; }
.done h3 { margin: 0 0 8px; font-size: 22px; }
.done p { margin: 0; color: var(--muted); }

/* ---------------------------------------------------------------- پرسش‌ها */
.faq { max-width: 860px; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 16px 22px; margin-bottom: 12px; transition: border-color .2s;
}
.faq details[open] { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f5aa6' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin: 10px 0 0; }

/* ---------------------------------------------------------------- فراخوان پایانی */
.cta { padding: 0 0 96px; background: var(--tint); }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--brand), #2c6fc4 60%, #3a7fd6); color: #fff;
  border-radius: 28px; padding: 44px 48px; box-shadow: var(--shadow);
}
@media (prefers-color-scheme: dark) { .cta-inner { background: linear-gradient(120deg, #1d3f73, #24508f); } }
.cta-inner h2 { color: #fff; margin: 0; font-size: clamp(22px, 2.8vw, 32px); }

.footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer .brand { color: var(--ink); font-size: 16px; }
.footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer nav a { text-decoration: none; }
.footer nav a:hover { color: var(--ink); }
.footer p { margin: 0; }

/* ---------------------------------------------------------------- نمایش هنگام اسکرول */
.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; }
  .float-card, .panel { animation: none; }
}

/* ---------------------------------------------------------------- واکنش‌گرا */
@media (max-width: 1080px) {
  .modules { grid-template-columns: repeat(4, 1fr); }
  .nav { gap: 16px; }
}
@media (max-width: 920px) {
  .nav { display: none; }
  .top-inner { justify-content: space-between; }
  .section { padding: 72px 0; }
  .hero { padding: 40px 0 64px; }
  .hero-inner, .panel, .band-inner, .request { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { padding-bottom: 56px; }
  .panel .browser { order: -1; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 6px; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .compare, .roles, .trust { grid-template-columns: 1fr 1fr; }
  .modules { grid-template-columns: repeat(3, 1fr); }
  .phones { height: 480px; }
}
@media (max-width: 600px) {
  body { font-size: 15px; }
  .compare, .roles, .trust, .band-list { grid-template-columns: 1fr; }
  .modules { grid-template-columns: 1fr 1fr; }
  .row { flex-direction: column; gap: 0; }
  .lead { font-size: 17px; }
  .hero-cta .btn { flex: 1; }
  .fc-1 { inset-inline-end: 4%; top: -14px; }
  .fc-2 { inset-inline-start: 0; bottom: -4px; }
  .float-card { font-size: 12px; padding: 8px 12px; }
  .float-card small { display: none; }
  .fc-icon { width: 30px; height: 30px; }
  .hero-phone { min-width: 110px; inset-inline-end: -6px; }
  .phones { height: 400px; }
  .phones .phone { width: 170px; padding: 6px; border-radius: 26px; }
  .phones .phone img { border-radius: 20px; }
  .form-card { padding: 22px; }
  .cta-inner { padding: 32px 24px; }
  .compare-col { padding: 22px; }
}

/* ================================================================ صفحه‌های داخلی (امکانات، راهنماها، پرسش‌ها) */
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; background: var(--brand); color: #fff; padding: 8px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }
h1 .pill { display: flex; width: fit-content; line-height: 1.6; }

/* منوی موبایل (بدون جاوااسکریپت) */
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; inset-inline-end: 0; top: 50px; min-width: 220px; display: grid; padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.menu nav a { padding: 10px 14px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.menu nav a:hover { background: var(--brand-soft); }
.menu nav a:last-child { color: var(--brand); }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 0 0 20px; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "‹"; margin-inline-end: 4px; opacity: .6; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--brand); }

.page-hero { position: relative; padding: 40px 0 72px; overflow: hidden; }
.page-hero.compact { padding: 40px 0 48px; }
.page-hero h1 { font-size: clamp(30px, 4vw, 48px); margin-bottom: 16px; }
.page-hero .lead { max-width: 760px; }
.page-hero .eyebrow { display: inline-flex; align-items: center; gap: 6px; }
.page-hero .eyebrow .ic { width: 16px; height: 16px; }
.page-hero-inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.feature-phone { max-width: 280px; margin-inline: auto; }
.notfound { text-align: center; padding: 96px 0; }
.notfound .lead, .notfound .hero-cta { margin-inline: auto; justify-content: center; }

.narrow { max-width: 860px; }
.article-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding-top: 24px; padding-bottom: 72px; }
.toc { position: sticky; top: 92px; align-self: start; font-size: 14px; }
.toc b { display: block; margin-bottom: 8px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; border-inline-start: 2px solid var(--line); }
.toc a { display: block; padding: 4px 12px; color: var(--muted); text-decoration: none; margin-inline-start: -2px; border-inline-start: 2px solid transparent; }
.toc a:hover { color: var(--brand); border-color: var(--brand); }

.prose { max-width: 780px; }
.prose h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 0 0 12px; }
.prose p { color: var(--muted); font-size: 17px; margin: 0 0 16px; }
.prose .checks { margin: 8px 0 18px; }
.prose .checks li { align-items: flex-start; font-weight: 600; color: var(--ink); }
.prose .checks li::before { margin-top: 6px; }
.f-section { padding: 8px 0 36px; scroll-margin-top: 92px; }
.f-section + .f-section { border-top: 1px solid var(--line); padding-top: 36px; }
.article { padding-bottom: 72px; }
.article section { margin-bottom: 32px; }
.note { margin-top: 40px; padding: 22px 24px; border-radius: 18px; background: var(--brand-soft); }
.note p { margin: 4px 0 0; color: var(--ink); }
.note a { color: var(--brand); font-weight: 700; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card {
  display: flex; flex-direction: column; gap: 8px; padding: 26px; border-radius: var(--radius); text-decoration: none;
  background: var(--card); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.feature-card > .ic { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.feature-card h2, .feature-card h3 { font-size: 20px; margin: 4px 0 0; }
.feature-card p { margin: 0; color: var(--muted); font-size: 15px; flex: 1; }
.feature-card .more, .more-link { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 700; font-size: 15px; text-decoration: none; }
.feature-card .more .ic, .more-link .ic { width: 16px; height: 16px; }
.more-link { margin-top: 20px; }
a.module { text-decoration: none; }
.modules.related { grid-template-columns: repeat(3, 1fr); }

.faq-group { font-size: 22px; margin: 36px 0 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.faq-group:first-child { margin-top: 0; }
.faq-group a { font-size: 14px; font-weight: 600; color: var(--brand); text-decoration: none; }
.center-link { text-align: center; margin-top: 18px; }
.center-link a { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 700; text-decoration: none; }
.center-link .ic { width: 16px; height: 16px; }

.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sec-item { padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.sec-item .ic { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); margin-bottom: 12px; }
.sec-item h2 { font-size: 19px; margin: 0 0 8px; }
.sec-item p { margin: 0; color: var(--muted); font-size: 15px; }

.cta-inner p { margin: 4px 0 0; color: #dce8fb; }

.footer { padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid nav { display: grid; gap: 6px; align-content: start; }
.footer-grid nav b { color: var(--ink); margin-bottom: 4px; }
.footer-about p { margin: 12px 0 0; line-height: 1.9; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 18px; }

@media (max-width: 1080px) {
  .feature-grid, .sec-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 920px) {
  .menu { display: block; }
  .top-inner { gap: 12px; }
  .top-inner .btn-sm { margin-inline-start: auto; }
  .page-hero-inner, .article-layout { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: static; padding: 16px; border-radius: 16px; background: var(--tint); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .modules.related { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .feature-grid, .sec-grid, .modules.related { grid-template-columns: 1fr; }
  .prose p { font-size: 16px; }
  .top-inner .btn-sm { padding: 8px 14px; font-size: 14px; }
}
.f-figure { margin: 8px 0 0; }
.f-figure img { border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.f-figure figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 8px; }

/* راهنمای کامل: فهرست فایل‌های قابل دانلود */
.docs-list { display: grid; gap: 14px; }
.doc-card { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.doc-card.main { border-color: var(--brand); box-shadow: 0 10px 30px -18px rgba(31, 90, 166, .45); }
.doc-card > .ic { width: 40px; height: 40px; color: var(--brand); flex-shrink: 0; }
.doc-info { flex: 1; min-width: 200px; display: grid; gap: 2px; }
.doc-info b { font-size: 17px; }
.doc-info span { color: var(--muted); font-size: 14px; }
.doc-actions { display: flex; gap: 8px; }
