/* =========================================================================
   سایت محصولات «فناور سازه رهاب» — تم مدرن
   راست‌چین، موبایل‌محور. پالت رنگی مدرن (ایندیگو/بنفش/فیروزه‌ای) مستقل از لوگو.
   ========================================================================= */

/* وزیرمتن از خودِ سایت سرو می‌شود، نه CDN گوگل (از ایران ناپایدار است). */
@font-face { font-family: "Vazirmatn"; src: url("/assets/fonts/Vazirmatn-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("/assets/fonts/Vazirmatn-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("/assets/fonts/Vazirmatn-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("/assets/fonts/Vazirmatn-Latin.woff2") format("woff2"); font-weight: 400; unicode-range: U+0000-00FF; font-display: swap; }

:root {
  /* پالت مدرن */
  --brand: #4f46e5;     /* ایندیگو — تیره‌تر از #6366f1 تا متنِ برند روی سفید ≥ ۴٫۵:۱ باشد (WCAG AA) */
  --brand-2: #8b5cf6;   /* بنفش */
  --brand-3: #22d3ee;   /* فیروزه‌ای */
  --pink: #f472b6;
  /* ⚠ پشتِ متنِ سفید است (دکمه، بنرِ پایانی). انتهای فیروزه‌ایِ قبلی (#22d3ee) با متنِ سفید فقط
     ۱٫۷:۱ می‌داد؛ هر دو سرِ این طیف باید ≥ ۴٫۵:۱ بدهند (#4f46e5 ← ۶٫۳، #7c3aed ← ۵٫۷). */
  --grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --grad-text: linear-gradient(120deg, #a5b4fc 0%, #67e8f9 55%, #f0abfc 110%);

  --ink: #0f172a;       /* اسلیت تیره */
  --ink-2: #475569;
  --ink-3: #94a3b8;
  --bg: #f8fafc;
  --bg-2: #eef1f8;
  --card: #ffffff;
  --line: #e6e9f2;

  --dark: #0b1024;      /* هیرو/فوتر تیره */
  --dark-2: #11173a;
  --on-dark: #e8ecf8;
  --on-dark-2: #aab3d4;

  --ok: #16a34a;
  --soft: #eef0ff;      /* تینت ملایم برند */

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 18px 50px rgba(79, 70, 229, .18);
  --glow: 0 10px 30px rgba(99, 102, 241, .45);
  --maxw: 1120px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Vazirmatn", "SF Arabic", "Geeza Pro", Tahoma, system-ui, sans-serif;
  font-size: 16px; line-height: 1.85;
  -webkit-text-size-adjust: 100%;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.35; margin: 0; }
p { margin: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 76px 0; }
.section-tight { padding: 44px 0; }
.center { text-align: center; }
.muted { color: var(--ink-2); }

.section-title { font-size: 30px; font-weight: 900; letter-spacing: -.5px; margin-bottom: 10px; }
.section-title::after {
  content: ""; display: block; width: 54px; height: 4px; border-radius: 4px;
  background: var(--grad); margin: 12px auto 0;
}
.section-sub { color: var(--ink-2); font-size: 16px; margin-bottom: 36px; }

/* ---------- دکمه‌ها ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 999px; cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 700; padding: 13px 24px;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.btn.primary:hover { box-shadow: 0 14px 38px rgba(99, 102, 241, .55); transform: translateY(-2px); }
.btn.secondary { background: var(--card); color: var(--brand); border-color: var(--line); box-shadow: var(--shadow); }
.btn.secondary:hover { border-color: var(--brand); transform: translateY(-2px); }
.btn.ghost { background: rgba(255,255,255,.10); color: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn.ghost:hover { background: rgba(255,255,255,.18); }
.btn.block { display: flex; width: 100%; }
.btn.sm { padding: 10px 18px; font-size: 14px; }
.btn[disabled], .btn.disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }

/* ---------- نوار بالا ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 250, 252, .8);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 68px; }
.nav-brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.nav-brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: var(--shadow); background: #fff; }
.nav-brand .nb-title { font-weight: 900; font-size: 17px; letter-spacing: -.3px; }
.nav-brand .nb-sub { font-size: 11px; color: var(--ink-2); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 9px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-2); transition: .15s; }
.nav-links a:hover { color: var(--brand); background: var(--soft); }
.nav-toggle { display: none; background: var(--card); border: 1px solid var(--line); border-radius: 12px; width: 44px; height: 44px; font-size: 20px; cursor: pointer; }

/* ---------- هیرو (تیره + مش گرادیانی) ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 100% 0%, #15224d 0%, var(--dark) 55%);
  color: #fff; padding: 96px 0 88px;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; z-index: 0;
}
.hero::before { width: 460px; height: 460px; top: -120px; right: -80px; background: radial-gradient(circle, #6366f1, transparent 70%); }
.hero::after { width: 420px; height: 420px; bottom: -160px; left: -100px; background: radial-gradient(circle, #22d3ee, transparent 70%); }
.hero .container { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.10); color: #c7d2fe; border: 1px solid rgba(255,255,255,.18);
  padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; margin-bottom: 22px;
  backdrop-filter: blur(6px);
}
.hero h1 { font-size: 50px; font-weight: 900; letter-spacing: -1.2px; margin-bottom: 18px; }
.hero h1 .accent {
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: 19px; color: var(--on-dark-2); max-width: 660px; margin: 0 auto 30px; }
.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* نشان پلتفرم‌ها (روی هیرو تیره) */
.platforms-inline { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.pill-platform {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  padding: 9px 15px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--on-dark);
  backdrop-filter: blur(6px);
}
.pill-platform svg { width: 17px; height: 17px; fill: #c7d2fe; }

/* ---------- نوارهای پس‌زمینه ---------- */
.band { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-soft { background: var(--bg-2); }

/* ---------- گرید محصولات ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px; display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .25s ease, border-color .2s ease; overflow: hidden;
}
.product-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad);
  opacity: 0; transition: opacity .25s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.product-card:hover::before { opacity: 1; }
.product-card .pc-icon {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center;
  background: var(--soft); font-size: 30px; margin-bottom: 16px;
}
.product-card .pc-icon img { width: 42px; height: 42px; border-radius: 10px; }
.product-card h3 { font-size: 19px; font-weight: 800; margin-bottom: 7px; }
.product-card .pc-desc { color: var(--ink-2); font-size: 14px; flex: 1; margin-bottom: 16px; }
.product-card .pc-platforms { display: flex; gap: 7px; margin-bottom: 16px; }
.product-card .pc-platforms svg { width: 17px; height: 17px; fill: var(--ink-3); }
.badge {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; width: fit-content;
}
.badge.available { background: #dcfce7; color: #15803d; }
.badge.soon { background: #eef1f8; color: var(--ink-2); }

/* ---------- مزیت‌ها ---------- */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.benefit {
  text-align: center; padding: 22px 14px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.benefit .b-ico {
  width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 14px; display: grid; place-items: center;
  font-size: 26px; background: var(--soft);
}
.benefit h3 { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.benefit p { font-size: 13px; color: var(--ink-2); }

/* ---------- امکانات ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px; transition: transform .15s ease, box-shadow .25s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature .f-ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 25px; margin-bottom: 14px; color: #fff; background: var(--grad);
}
.feature h3 { font-size: 17px; font-weight: 800; margin-bottom: 7px; }
.feature p { font-size: 14px; color: var(--ink-2); }

/* ---------- گالری ---------- */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.shot {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--card); box-shadow: var(--shadow); aspect-ratio: 9 / 16;
  transition: transform .15s ease;
}
.shot:hover { transform: translateY(-4px) scale(1.01); }
.shot img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- دریافت برنامه ---------- */
.platform-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.platform-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 30px 24px; text-align: center; display: flex; flex-direction: column; gap: 8px;
  transition: transform .15s ease, box-shadow .25s ease;
}
.platform-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.platform-card .pf-ico {
  width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 18px; display: grid; place-items: center;
  background: var(--soft);
}
.platform-card .pf-ico svg { width: 32px; height: 32px; fill: var(--brand); }
.platform-card h3 { font-size: 19px; font-weight: 800; }
.platform-card .pf-note { font-size: 14px; color: var(--ink-2); flex: 1; }
.platform-card .btn { margin-top: 10px; }
.platform-card .pf-alt { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }

/* ---------- قیمت‌گذاری ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px 24px; text-align: center;
  display: flex; flex-direction: column;
}
.price-card.featured {
  border: 0; box-shadow: var(--shadow-lg);
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    var(--grad) border-box;
  border: 2px solid transparent; transform: translateY(-8px);
}
.price-card .pr-tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff; font-size: 12px; font-weight: 800;
  padding: 5px 16px; border-radius: 999px; box-shadow: var(--glow);
}
.price-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.price-card .pr-amount { font-size: 34px; font-weight: 900; color: var(--ink); }
.price-card .pr-amount small { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.price-card .pr-period { color: var(--ink-2); font-size: 13px; margin-bottom: 18px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 20px; text-align: right; }
.price-card ul li { font-size: 14px; padding: 7px 0; color: var(--ink-2); display: flex; gap: 9px; }
.price-card ul li::before { content: "✓"; color: var(--ok); font-weight: 900; }
.price-card .btn { margin-top: auto; }
.trial-note {
  text-align: center; margin-top: 26px; font-size: 14.5px; font-weight: 600; color: var(--brand);
  background: var(--soft); border-radius: 999px; padding: 12px 22px; display: inline-block;
}

/* ---------- سوالات متداول ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; transition: border-color .2s; }
.faq-item.open { border-color: var(--brand); }
.faq-q {
  width: 100%; text-align: right; background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 15.5px; font-weight: 700; color: var(--ink);
  padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.faq-q .chev { transition: transform .25s ease; color: var(--brand); font-size: 18px; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.faq-a div { padding: 0 20px 18px; color: var(--ink-2); font-size: 14.5px; }

/* ---------- CTA پایانی ---------- */
.cta-band {
  position: relative; overflow: hidden; background: var(--grad);
  color: #fff; border-radius: 26px; padding: 56px 28px; text-align: center; box-shadow: var(--shadow-lg);
}
.cta-band::after {
  content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%;
  background: rgba(255,255,255,.16); filter: blur(60px); top: -160px; left: -80px;
}
.cta-band h2 { font-size: 30px; font-weight: 900; margin-bottom: 12px; position: relative; }
.cta-band p { opacity: .95; margin-bottom: 26px; position: relative; }
.cta-band .btn { position: relative; }

/* ---------- فوتر ---------- */
.site-footer { background: var(--dark); color: var(--on-dark-2); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 34px; }
.footer-grid h2 { color: #fff; font-size: 15px; font-weight: 800; margin-bottom: 16px; }
.footer-grid a, .footer-grid p { color: var(--on-dark-2); font-size: 14px; padding: 5px 0; }
.footer-grid a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.footer-brand img { width: 42px; height: 42px; border-radius: 11px; background: #fff; }
.footer-brand .fb-title { color: #fff; font-weight: 900; font-size: 16px; }
.trust-badges { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.trust-badges .badge-slot {
  background: #fff; border: 1px solid rgba(255,255,255,.18); border-radius: 12px;
  min-width: 88px; min-height: 88px; display: grid; place-items: center;
  color: var(--ink-3); font-size: 11px; text-align: center; padding: 8px;
}
.footer-bottom { border-top: 1px solid rgba(255,255,255,.10); margin-top: 34px; padding-top: 20px; text-align: center; font-size: 13px; color: var(--ink-3); }

/* ---------- ریز ---------- */
.crumb { font-size: 13px; color: var(--on-dark-2); margin-bottom: 18px; }
.crumb a:hover { color: #fff; }

/* =========================================================================
   واکنش‌گرایی
   ========================================================================= */
@media (max-width: 920px) {
  .product-grid, .feature-grid, .platform-grid, .price-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .price-card.featured { transform: none; }
  .hero h1 { font-size: 40px; }
}
@media (max-width: 620px) {
  body { font-size: 15px; }
  .section { padding: 56px 0; }
  .hero { padding: 64px 0 56px; }
  .hero h1 { font-size: 32px; letter-spacing: -.6px; }
  .hero p.lead { font-size: 16px; }
  .section-title { font-size: 24px; }
  .product-grid, .feature-grid, .platform-grid, .price-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--card); border-bottom: 1px solid var(--line); padding: 12px 20px;
    box-shadow: var(--shadow-lg); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px; border-radius: var(--radius-sm); }
  .nav-toggle { display: grid; place-items: center; }
}

/* ===== افزوده‌های سایتِ کارگاه‌بان ===== */

/* جدولِ قیمت: متنِ ساده است، پس بدونِ جاوااسکریپت هم دیده می‌شود (بازبینِ اینماد و موتورِ جست‌وجو). */
.price-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 28px 0 8px; }
.price-table { width: 100%; min-width: 640px; border-collapse: separate; border-spacing: 0; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.price-table th, .price-table td { padding: 16px 14px; text-align: center; border-bottom: 1px solid var(--line); font-size: 15px; }
.price-table thead th { background: var(--bg-2); font-weight: 700; color: var(--ink); }
.price-table tbody tr:last-child th, .price-table tbody tr:last-child td { border-bottom: 0; }
.price-table tbody th { text-align: right; font-weight: 700; color: var(--ink); white-space: nowrap; }
.price-table tbody th small { display: block; font-weight: 400; color: var(--ink-2); margin-top: 4px; }
.price-table td b { display: block; font-size: 17px; color: var(--ink); }
.price-table td small, .price-table thead th small { color: var(--ink-2); font-size: 12.5px; font-weight: 400; display: block; margin-top: 2px; }
.price-table .gift { color: #047857; font-weight: 600; }
.price-note { color: var(--ink-2); font-size: 14px; margin: 10px 0 0; text-align: center; }

/* سوالاتِ متداول با <details>: بدونِ جاوااسکریپت باز و بسته می‌شود. */
.qa { max-width: 820px; margin: 0 auto; }
.qa details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; }
.qa summary { cursor: pointer; padding: 16px 18px; font-weight: 700; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; float: left; color: var(--brand); font-size: 20px; line-height: 1; }
.qa details[open] summary::after { content: "−"; }
.qa details > div { padding: 0 18px 16px; color: var(--ink-2); line-height: 2; }

/* نوشتارِ حقوقی و کارتِ تماس */
.prose { max-width: 820px; margin: 0 auto; line-height: 2.1; }
.prose h2 { margin: 32px 0 8px; font-size: 20px; }
.prose ul { padding-inline-start: 22px; }
.prose li { margin-bottom: 6px; }
.contact-card { max-width: 640px; margin: 0 auto; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 8px 22px; }
.contact-card dl { margin: 0; }
.contact-card .row { display: flex; gap: 16px; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-card .row:last-child { border-bottom: 0; }
.contact-card dt { color: var(--ink-2); }
.contact-card dd { margin: 0; font-weight: 600; text-align: left; direction: ltr; unicode-bidi: plaintext; }
.contact-card dd.fa { direction: rtl; text-align: right; }
.todo { background: #fef3c7; color: #92400e; padding: 1px 8px; border-radius: 6px; font-weight: 600; }


/* ===== دسترس‌پذیری ===== */
.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; }
/* حلقهٔ فوکوسِ دوتایی (مشکیِ داخلی + سفیدِ بیرونی): روی پس‌زمینهٔ روشن و تیره هر دو دیده می‌شود. */
:focus-visible { outline: 3px solid #0f172a; outline-offset: 2px; box-shadow: 0 0 0 6px #ffffff; border-radius: 6px; }
.skip-link { position: absolute; inset-inline-start: 8px; top: -80px; z-index: 1000; background: #0f172a; color: #fff;
  padding: 12px 18px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 8px; }
/* پیوندِ داخلِ متن فقط با رنگ از متن جدا نشود: زیرخط هم دارد. */
.prose a, .qa a, .price-note a, .contact-card a, .section-sub a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
