/* ===========================================================================
   VoltaShop — لندینگ mazdak.shop
   ---------------------------------------------------------------------------
   قواعد اعمال‌شده از مهارت ui-ux-pro-max (شدت High):
     • کنتراست حداقل ۴.۵:۱ برای متن معمولی
     • هدف لمسی حداقل ۴۴×۴۴ پیکسل
     • حلقه‌ی فوکوس قابل‌مشاهده روی همه‌ی عناصر تعاملی
     • احترام به prefers-reduced-motion
     • مقیاس z-index تعریف‌شده (۱۰/۲۰/۳۰/۵۰) نه عدد دلخواه
     • رزرو فضا برای محتوای async تا layout نپرد
     • رنگ به‌تنهایی حامل معنی نباشد — همیشه آیکون یا متن هم هست
   =========================================================================== */

/* ---- فونت لوکال. عمداً بدون CDN: هم سرعت، هم اینکه گوگل‌فونت از ایران
   قابل اتکا نیست. font-display: swap تا متن قبل از فونت دیده شود. ---- */
@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/vazirmatn-arabic-400-normal.woff2') format('woff2');
  font-weight: 400; font-display: swap; font-style: normal;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/vazirmatn-arabic-500-normal.woff2') format('woff2');
  font-weight: 500; font-display: swap; font-style: normal;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/vazirmatn-arabic-700-normal.woff2') format('woff2');
  font-weight: 700; font-display: swap; font-style: normal;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/vazirmatn-arabic-800-normal.woff2') format('woff2');
  font-weight: 800; font-display: swap; font-style: normal;
}

/* ---------------------------------------------------------------- توکن‌ها --
   پالت از هویت بصری موجود مینی‌اپ استخراج شده تا سایت و محصول یکدست باشند.
   ⚠️ بنفش دو مقدار دارد: #8f7bff روی تیره خوانا است ولی روی پس‌زمینه‌ی روشن
   نسبت ۲.۳:۱ می‌دهد که زیر آستانه است. تم روشن #6b57e0 می‌گیرد (۵.۸:۱).
   این دقیقاً همان دامی است که یک بار در خط برند مینی‌اپ خوردیم.        */
:root {
  --brand:        #8f7bff;
  --brand-strong: #6f5ce6;
  --brand-deep:   #6b57e0;
  --ok:           #3ecf8e;
  --warn:         #f5b544;
  --err:          #ef6461;

  --bg:      #0b0d14;
  --bg-2:    #10121a;
  --surface: #181b26;
  --surface-2: #1f2331;
  --line:    #2a2f40;
  --text:    #eef0f6;
  --text-2:  #a8afc2;
  --text-3:  #8a90a3;

  --radius:    18px;
  --radius-sm: 12px;
  --maxw:      1140px;

  --z-base: 10;
  --z-sticky: 20;
  --z-overlay: 30;
  --z-toast: 50;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* تم روشن: فقط توکن‌ها عوض می‌شوند، هیچ قاعده‌ی چیدمانی تکرار نمی‌شود. */
:root[data-theme='light'] {
  --brand:        #6b57e0;
  --brand-strong: #5a46cc;
  --brand-deep:   #4c3ab8;
  --bg:      #f6f7fb;
  --bg-2:    #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f3f9;
  --line:    #e2e6f0;
  --text:    #171a24;
  --text-2:  #4b5266;
  --text-3:  #6a7183;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;      /* قاعده‌ی High: Smooth Scroll */
  scroll-padding-top: 84px;     /* تا هدر چسبان تیتر را نپوشاند */
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* قاعده‌ی High: حلقه‌ی فوکوس هرگز بدون جایگزین حذف نشود. */
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

/* پرش مستقیم به محتوا — برای کاربر کیبورد و اسکرین‌ریدر */
.skip-link {
  position: absolute; inset-inline-start: -9999px; top: 8px;
  background: var(--brand-strong); color: #fff;
  padding: 12px 20px; border-radius: 10px; z-index: var(--z-toast);
}
.skip-link:focus { inset-inline-start: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }

/* ------------------------------------------------------------------ هدر -- */
.hdr {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.hdr-in { display: flex; align-items: center; gap: 18px; height: 68px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 20px; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo .bolt { color: var(--warn); }

.nav { display: flex; gap: 6px; margin-inline-start: auto; }
.nav a {
  color: var(--text-2); padding: 10px 14px; border-radius: 10px;
  font-size: 15px; min-height: 44px; display: inline-flex; align-items: center;
}
.nav a:hover { color: var(--text); background: var(--surface); text-decoration: none; }

/* هدف لمسی ۴۴×۴۴ — قاعده‌ی بحرانی مهارت */
.icon-btn {
  min-width: 44px; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: 12px;
  cursor: pointer; font-size: 18px; transition: background .18s var(--ease);
}
.icon-btn:hover { background: var(--surface-2); }

/* ---------------------------------------------------------------- دکمه‌ها -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 52px; padding: 14px 28px;
  border-radius: 14px; border: 1px solid transparent;
  font-family: inherit; font-size: 16px; font-weight: 700;
  cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand-strong), var(--brand));
  color: #fff;
  box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--brand) 70%, transparent);
}
.btn-primary:hover { box-shadow: 0 16px 40px -12px color-mix(in srgb, var(--brand) 80%, transparent); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-lg { min-height: 58px; padding: 16px 34px; font-size: 17px; }

/* ------------------------------------------------------------------ Hero -- */
.hero { position: relative; padding: 74px 0 84px; overflow: hidden; }
.hero::before {
  /* هاله‌ی برند. pointer-events:none تا جلوی کلیک را نگیرد. */
  content: ''; position: absolute; pointer-events: none;
  inset-block-start: -220px; inset-inline-end: -160px;
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 26%, transparent), transparent 68%);
  filter: blur(20px);
}
.hero-grid {
  position: relative; display: grid; gap: 52px;
  grid-template-columns: 1.05fr .95fr; align-items: center;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: color-mix(in srgb, var(--brand) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 38%, transparent);
  color: var(--brand); padding: 8px 15px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; margin-bottom: 22px;
}
h1 {
  font-size: clamp(31px, 5.1vw, 55px); line-height: 1.28;
  font-weight: 800; margin: 0 0 20px; letter-spacing: -.4px;
}
.grad {
  background: linear-gradient(120deg, var(--brand), var(--ok));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(16px, 2.1vw, 19px); color: var(--text-2); margin: 0 0 30px; max-width: 33em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 13px; margin-bottom: 22px; }
.hero-note { font-size: 14px; color: var(--text-3); display: flex; align-items: center; gap: 7px; }

/* --------------------------------------------- ماکاپ زنده‌ی چت تلگرام --
   الگوی «Product Demo + Features» از دیتابیس مهارت صریحاً می‌گوید ماکاپ
   تعاملی نرخ تبدیل را بالا می‌برد. این ماکاپ کاملاً CSS/HTML است — نه عکس،
   نه ویدیو — پس نه وزنی اضافه می‌کند نه منتظر شبکه می‌ماند.            */
.phone {
  position: relative; margin-inline: auto;
  width: 100%; max-width: 330px;
  background: #0e1017; border: 10px solid #171a24;
  border-radius: 40px; padding: 14px 12px 18px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.85), 0 0 0 1px var(--line);
}
.phone-top {
  display: flex; align-items: center; gap: 9px;
  padding: 4px 6px 13px; border-bottom: 1px solid #232838; margin-bottom: 13px;
}
.phone-av {
  width: 36px; height: 36px; border-radius: 50%; flex: 0 0 36px;
  background: linear-gradient(135deg, var(--brand-strong), var(--brand));
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.phone-name { font-size: 14px; font-weight: 700; color: #eef0f6; line-height: 1.4; }
.phone-status { font-size: 11.5px; color: var(--ok); line-height: 1.4; }

.chat { display: flex; flex-direction: column; gap: 9px; min-height: 322px; }
/* min-height فضا را از قبل رزرو می‌کند — قاعده‌ی High: Content Jumping */

.msg {
  max-width: 86%; padding: 9px 13px; border-radius: 15px;
  font-size: 13px; line-height: 1.75;
}

/* ⚠️ پیام‌ها به‌صورت پیش‌فرض **دیده می‌شوند**. مخفی شدن فقط وقتی رخ می‌دهد
   که JS کلاس .anim را بگذارد. یعنی بدون جاوااسکریپت، یا با کاهش حرکت،
   ماکاپ کامل و خوانا است — نه یک قاب خالی.
   تأخیرها عمداً در CSS اند نه اینلاین: مقداردهی شورت‌هندِ animation از
   جاوااسکریپت، animation-delay اینلاین را پاک می‌کند و همه‌ی پیام‌ها با هم
   ظاهر می‌شوند. این باگ یک بار اتفاق افتاد و انیمیشن اصلاً دیده نمی‌شد. */
.chat.anim .msg { opacity: 0; transform: translateY(9px); }
.chat.anim.play .msg { animation: pop .5s var(--ease) forwards; }
.chat.anim.play .msg:nth-child(1) { animation-delay: .20s; }
.chat.anim.play .msg:nth-child(2) { animation-delay: .95s; }
.chat.anim.play .msg:nth-child(3) { animation-delay: 1.70s; }
.chat.anim.play .msg:nth-child(4) { animation-delay: 2.45s; }
.chat.anim.play .msg:nth-child(5) { animation-delay: 3.20s; }
.chat.anim.play .msg:nth-child(6) { animation-delay: 3.95s; }
.msg-in  { align-self: flex-start; background: #1c2130; color: #dfe3ee; border-bottom-left-radius: 5px; }
.msg-out { align-self: flex-end; background: linear-gradient(135deg, var(--brand-strong), var(--brand)); color: #fff; border-bottom-right-radius: 5px; }
.msg b { font-weight: 700; }
.msg .tick { color: #b9ffd9; }

@keyframes pop { to { opacity: 1; transform: translateY(0); } }

/* ------------------------------------------------------------ نوار اعتماد -- */
.trust { border-block: 1px solid var(--line); background: var(--bg-2); padding: 26px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust-item { display: flex; align-items: center; gap: 11px; justify-content: center; font-size: 14.5px; color: var(--text-2); }
.trust-item .ic { font-size: 21px; }

/* -------------------------------------------------------------- بخش‌ها -- */
section { padding: 84px 0; }
.sec-head { text-align: center; max-width: 660px; margin: 0 auto 52px; }
.sec-tag {
  display: inline-block; color: var(--brand); font-weight: 700;
  font-size: 13.5px; letter-spacing: .4px; margin-bottom: 12px;
}
h2 { font-size: clamp(25px, 3.6vw, 37px); font-weight: 800; margin: 0 0 14px; line-height: 1.4; }
.sec-head p { color: var(--text-2); margin: 0; font-size: 16.5px; }

/* -------------------------------------------------------- قبل / بعد -- */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.ba-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.ba-col.after { border-color: color-mix(in srgb, var(--ok) 42%, transparent); background: color-mix(in srgb, var(--ok) 6%, var(--surface)); }
.ba-col h3 { margin: 0 0 20px; font-size: 18px; display: flex; align-items: center; gap: 9px; }
.ba-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ba-col li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; color: var(--text-2); line-height: 1.75; }
/* آیکون کنار رنگ — قاعده‌ی High: رنگ به‌تنهایی حامل معنی نباشد */
.ba-col li .m { flex: 0 0 auto; font-size: 15px; line-height: 1.75; }
.ba-col.before li .m { color: var(--err); }
.ba-col.after  li .m { color: var(--ok); }

/* -------------------------------------------------------------- قدم‌ها -- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 22px; position: relative;
}
.step::before {
  counter-increment: s; content: counter(s);
  position: absolute; inset-block-start: -15px; inset-inline-start: 22px;
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-strong), var(--brand));
  color: #fff; font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { margin: 10px 0 8px; font-size: 16.5px; }
.step p { margin: 0; color: var(--text-2); font-size: 14.5px; }

/* ------------------------------------------------------- بنتو قابلیت‌ها -- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  grid-column: span 2; transition: border-color .22s var(--ease), transform .22s var(--ease);
}
.card:hover { border-color: color-mix(in srgb, var(--brand) 52%, transparent); transform: translateY(-3px); }
.card.wide { grid-column: span 3; }
.card .ic {
  width: 46px; height: 46px; border-radius: 13px; margin-bottom: 16px;
  background: color-mix(in srgb, var(--brand) 15%, transparent);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.card h3 { margin: 0 0 9px; font-size: 17.5px; }
.card p { margin: 0; color: var(--text-2); font-size: 14.5px; }

/* --- جای اسکرین‌شات: طوری طراحی شده که خالی هم آبرومند باشد ---
   aspect-ratio فضا را از قبل می‌گیرد، پس وقتی عکس واقعی جایگزین شد
   صفحه نمی‌پرد (قاعده‌ی High: Content Jumping).                    */
.shot {
  position: relative; width: 100%; aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm); overflow: hidden;
  border: 1px dashed color-mix(in srgb, var(--brand) 40%, var(--line));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand) 9%, transparent), transparent),
    repeating-linear-gradient(45deg, var(--surface-2) 0 12px, var(--surface) 12px 24px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center; padding: 18px;
}
.shot .ph-ic { font-size: 29px; opacity: .85; }
.shot .ph-t { font-size: 14px; font-weight: 700; color: var(--text-2); }
.shot .ph-s { font-size: 12px; color: var(--text-3); }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.shot.tall { aspect-ratio: 9 / 16; max-width: 260px; margin-inline: auto; }

/* --------------------------------------------------------- تایم‌لاین ۱۱ث -- */
.tl { max-width: 760px; margin-inline: auto; position: relative; padding-inline-start: 34px; }
.tl::before {
  content: ''; position: absolute; inset-block: 8px; inset-inline-start: 7px; width: 2px;
  background: linear-gradient(var(--brand), var(--ok));
}
.tl-item { position: relative; padding-bottom: 30px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ''; position: absolute; inset-block-start: 9px; inset-inline-start: -34px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--brand); border: 3px solid var(--bg);
}
.tl-item.done::before { background: var(--ok); }
.tl-t { font-size: 12.5px; color: var(--brand); font-weight: 700; margin-bottom: 3px; }
.tl-item.done .tl-t { color: var(--ok); }
.tl-item h3 { margin: 0 0 5px; font-size: 16.5px; }
.tl-item p { margin: 0; color: var(--text-2); font-size: 14.5px; }

/* ------------------------------------------------------------- قیمت‌ها -- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.plan {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 24px;
  display: flex; flex-direction: column; position: relative;
}
.plan.best { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 20px 50px -25px color-mix(in srgb, var(--brand) 75%, transparent); }
.plan-tag {
  position: absolute; inset-block-start: -13px; inset-inline-start: 50%;
  transform: translateX(50%);
  background: linear-gradient(135deg, var(--brand-strong), var(--brand)); color: #fff;
  font-size: 12px; font-weight: 700; padding: 5px 15px; border-radius: 999px; white-space: nowrap;
}
.plan h3 { margin: 0 0 6px; font-size: 17px; color: var(--text-2); font-weight: 600; }
.price { font-size: 40px; font-weight: 800; line-height: 1.25; }
.price small { font-size: 15px; font-weight: 500; color: var(--text-3); }
.plan-sub { color: var(--text-3); font-size: 13.5px; margin: 4px 0 20px; }
.plan ul { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.plan li { font-size: 14px; color: var(--text-2); display: flex; gap: 9px; }
.plan li .m { color: var(--ok); flex: 0 0 auto; }
.plan .btn { margin-top: auto; width: 100%; }

.guarantee {
  margin-top: 34px; text-align: center;
  background: color-mix(in srgb, var(--ok) 8%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--ok) 34%, transparent);
  border-radius: var(--radius); padding: 22px;
}
.guarantee strong { color: var(--ok); }

/* ---------------------------------------------------------------- سؤالات -- */
.faq { max-width: 780px; margin-inline: auto; display: flex; flex-direction: column; gap: 12px; }
details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); overflow: hidden;
}
details[open] { border-color: color-mix(in srgb, var(--brand) 45%, transparent); }
summary {
  cursor: pointer; padding: 19px 22px; font-weight: 700; font-size: 15.5px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 44px; list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 22px; color: var(--brand); flex: 0 0 auto; line-height: 1; }
details[open] summary::after { content: '\2212'; }
.faq-body { padding: 0 22px 20px; color: var(--text-2); font-size: 15px; }

/* ------------------------------------------------------------------ CTA -- */
.cta-box {
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 18%, var(--surface)), var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand) 42%, transparent);
  border-radius: 26px; padding: 58px 32px; text-align: center;
}
.cta-box h2 { margin-bottom: 12px; }
.cta-box p { color: var(--text-2); max-width: 520px; margin: 0 auto 28px; }

/* ----------------------------------------------------------------- فوتر -- */
.ftr { border-top: 1px solid var(--line); background: var(--bg-2); padding: 44px 0 30px; }
.ftr-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 34px; margin-bottom: 30px; }
.ftr p { color: var(--text-3); font-size: 14.5px; margin: 12px 0 0; max-width: 34em; }
.ftr h4 { margin: 0 0 14px; font-size: 15px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ftr ul a { color: var(--text-2); font-size: 14.5px; min-height: 30px; display: inline-flex; align-items: center; }
.ftr-btm { border-top: 1px solid var(--line); padding-top: 22px; text-align: center; color: var(--text-3); font-size: 13.5px; }

/* -------------------------------------------------------------- موبایل -- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card, .card.wide { grid-column: span 1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .ftr-grid { grid-template-columns: 1fr; gap: 26px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  section { padding: 62px 0; }
  .hero { padding: 46px 0 60px; }
  .nav { display: none; }
  .ba { grid-template-columns: 1fr; }
  .bento, .steps, .plans { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .cta-box { padding: 42px 20px; }
}

/* ------------------------------------------------- احترام به کاهش حرکت --
   قاعده‌ی High مهارت. متن بدون انیمیشن هم باید کاملاً خوانا باشد، پس
   opacity به ۱ برمی‌گردد نه اینکه فقط انیمیشن خاموش شود.              */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .chat.anim .msg, .chat .msg { opacity: 1 !important; transform: none !important; }
  .btn:hover, .card:hover { transform: none; }
}

/* چاپ: هاله و ماکاپ بی‌معنی‌اند */
@media print {
  .hdr, .phone, .hero::before { display: none; }
  body { background: #fff; color: #000; }
}
