/* ---------------------------------------------------------------------------
   سیگنال‌یار — سایت فروش
   زبان بصری همان «شیشه و شفق» برنامه است: سطوح نیمه‌شفاف روی پس‌زمینه‌ای
   که آرام موج می‌خورد. همه‌جا از ویژگی‌های منطقی (inline/block) استفاده شده
   تا چیدمان با یک بار عوض کردن dir، هم فارسی راست‌به‌چپ و هم انگلیسی
   چپ‌به‌راست درست دربیاید.
--------------------------------------------------------------------------- */

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

/* ------------------------------- توکن‌ها ------------------------------- */

:root {
  --accent: #8b5cf6;
  --accent-2: #6366f1;
  --accent-3: #22d3ee;
  --accent-4: #f43f5e;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-2xl: 36px;

  --shell: min(1200px, 100% - 2.5rem);
  --header-h: 68px;

  --t-fast: 140ms cubic-bezier(0.4, 0, 0.2, 1);
  --t: 240ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 620ms cubic-bezier(0.22, 1, 0.36, 1);

  --ff: 'Vazirmatn', ui-sans-serif, system-ui, 'Segoe UI', sans-serif;
}

:root,
:root[data-theme='dark'] {
  --bg: #07080d;
  --bg-2: #0b0d14;
  --panel: rgba(17, 20, 30, 0.55);
  --panel-2: rgba(30, 34, 48, 0.5);
  --panel-solid: #12141d;
  --line: rgba(255, 255, 255, 0.1);
  --line-soft: rgba(255, 255, 255, 0.055);
  --glass-hi: rgba(255, 255, 255, 0.06);
  --chrome: rgba(10, 12, 18, 0.62);
  --field: rgba(8, 10, 16, 0.55);

  --text: #eaeef7;
  --text-2: #9aa4bb;
  --text-3: #69738b;

  --green: #34d399;
  --red: #fb7185;
  --amber: #fbbf24;

  --shadow: 0 12px 38px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.6);
  --glow: 0 0 0 1px rgba(139, 92, 246, 0.3), 0 18px 50px rgba(139, 92, 246, 0.22);

  --aurora-1: rgba(139, 92, 246, 0.5);
  --aurora-2: rgba(34, 211, 238, 0.3);
  --aurora-3: rgba(236, 72, 153, 0.26);
  --grain-op: 0.05;
}

:root[data-theme='light'] {
  --bg: #eef1f8;
  --bg-2: #f7f9fd;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-2: rgba(244, 247, 252, 0.8);
  --panel-solid: #ffffff;
  --line: rgba(19, 28, 50, 0.11);
  --line-soft: rgba(19, 28, 50, 0.06);
  --glass-hi: rgba(255, 255, 255, 0.7);
  --chrome: rgba(255, 255, 255, 0.72);
  --field: rgba(237, 241, 248, 0.9);

  --text: #10141f;
  --text-2: #55607a;
  --text-3: #8590a6;

  --green: #059669;
  --red: #e11d48;
  --amber: #d97706;

  --shadow: 0 12px 34px rgba(19, 28, 50, 0.1);
  --shadow-lg: 0 30px 70px rgba(19, 28, 50, 0.16);
  --glow: 0 0 0 1px rgba(139, 92, 246, 0.26), 0 18px 44px rgba(139, 92, 246, 0.18);

  --aurora-1: rgba(139, 92, 246, 0.3);
  --aurora-2: rgba(34, 211, 238, 0.22);
  --aurora-3: rgba(236, 72, 153, 0.16);
  --grain-op: 0.03;
}

/* ------------------------------- پایه‌ها ------------------------------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--ff);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* انگلیسی کمی جمع‌تر تراز می‌شود؛ وزیرمتن لاتین را هم دارد */
html[lang='en'] body {
  letter-spacing: -0.011em;
  line-height: 1.68;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

input, select, textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: color-mix(in srgb, var(--accent) 40%, transparent);
  color: #fff;
}

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

/* اسکرول‌بار نازک تا با شیشه‌ها جور دربیاید */
* {
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--text-3) 55%, transparent) transparent;
}
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--text-3) 45%, transparent);
  border-radius: 99px;
}

/* --------------------------- پس‌زمینهٔ شفق --------------------------- */

.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(1100px 620px at 82% -8%, var(--aurora-1), transparent 62%),
    radial-gradient(900px 560px at 8% 8%, var(--aurora-2), transparent 60%),
    radial-gradient(820px 520px at 50% 108%, var(--aurora-3), transparent 62%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}

/* لایهٔ دانه‌دانه، تا سطوح صاف دیجیتالی نمانند */
.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: var(--grain-op);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* بوم WebGL پشت هیرو */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0;
  transition: opacity 900ms ease;
}
#hero-canvas.is-ready { opacity: 1; }

/* بدون WebGL (یا وقتی زمینهٔ گرافیکی از دست می‌رود) بوم هیچ‌وقت روشن
   نمی‌شود؛ به‌جایش یک افق نرم روی خود هیرو کشیده می‌شود تا کادر خالی
   و بی‌روح نماند. */
.hero.no-webgl::before {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 100% at 50% 100%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 68%),
    linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent-2) 12%, transparent));
  mask-image: linear-gradient(180deg, transparent, #000 38%);
}


/* عناصری که با hidden پنهان می‌شوند نباید از display کلاس‌ها شکست بخورند */
[hidden] { display: none !important; }

/* پردهٔ نرم روی بوم سه‌بعدی: بالای کادر تیره می‌ماند تا تیتر خوانا بماند */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(58% 44% at 50% 34%, color-mix(in srgb, var(--bg) 86%, transparent), transparent 72%),
    linear-gradient(180deg, var(--bg) 0%, transparent 26%, transparent 76%, var(--bg) 100%);
}

/* ------------------------------ چیدمان ------------------------------ */

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: clamp(72px, 11vw, 150px);
}

.section--tight { padding-block: clamp(52px, 7vw, 92px); }

.section__head {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  margin-block-end: clamp(38px, 5vw, 66px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--glass-hi);
  backdrop-filter: blur(12px);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  margin-block-end: 18px;
}

.eyebrow i {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.7); }
}

.section__title {
  font-size: clamp(27px, 4.1vw, 46px);
  margin-block-end: 14px;
}

.section__sub {
  color: var(--text-2);
  font-size: clamp(14.5px, 1.6vw, 17px);
}

.grad {
  background: linear-gradient(100deg, var(--accent), var(--accent-3) 55%, var(--accent-4));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ------------------------------ دکمه‌ها ------------------------------ */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 24px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 14.5px;
  white-space: nowrap;
  transition: transform var(--t), box-shadow var(--t), background var(--t), border-color var(--t);
  will-change: transform;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  color: #fff;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  box-shadow: var(--glow);
}

.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, var(--accent-3), var(--accent));
  opacity: 0;
  transition: opacity var(--t);
}
.btn--primary:hover::after { opacity: 1; }
.btn--primary > * { position: relative; z-index: 1; }

.btn--ghost {
  border: 1px solid var(--line);
  background: var(--glass-hi);
  backdrop-filter: blur(14px);
  color: var(--text);
}
.btn--ghost:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }

.btn--lg { padding: 15px 32px; font-size: 15.5px; }
.btn--sm { padding: 9px 17px; font-size: 13.5px; }
.btn--block { width: 100%; }

.btn__icon { display: inline-flex; }

/* پیکان جهت‌دار: در راست‌به‌چپ برعکس می‌شود */
[dir='rtl'] .btn__icon--dir { transform: scaleX(-1); }

/* ------------------------------ سربرگ ------------------------------ */

.header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background var(--t), border-color var(--t), backdrop-filter var(--t);
  border-block-end: 1px solid transparent;
}

.header.is-stuck {
  background: var(--chrome);
  backdrop-filter: blur(20px) saturate(150%);
  border-block-end-color: var(--line-soft);
}

.header__inner {
  width: var(--shell);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand__mark {
  width: 34px;
  height: 34px;
  flex: none;
}

.brand__name { font-size: 16px; }

.header__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline-start: auto;
}

.header__link {
  padding: 8px 13px;
  border-radius: 99px;
  font-size: 14px;
  color: var(--text-2);
  transition: color var(--t), background var(--t);
}
.header__link:hover { color: var(--text); background: var(--glass-hi); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: 10px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--glass-hi);
  color: var(--text-2);
  transition: color var(--t), border-color var(--t), transform var(--t);
}
.icon-btn:hover { color: var(--text); border-color: var(--accent); transform: translateY(-1px); }

.lang-btn {
  width: auto;
  padding-inline: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.burger { display: none; }

/* منوی موبایل */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  padding: calc(var(--header-h) + 24px) 24px 32px;
  background: var(--chrome);
  backdrop-filter: blur(26px) saturate(150%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t), transform var(--t);
}
.mobile-menu.is-open { opacity: 1; transform: none; pointer-events: auto; }

.mobile-menu a {
  padding: 14px 4px;
  font-size: 19px;
  font-weight: 600;
  border-block-end: 1px solid var(--line-soft);
}

.mobile-menu .btn { margin-block-start: 20px; }

/* نوار پیشرفت خواندن صفحه */
.progress {
  position: fixed;
  inset-block-start: 0;
  inset-inline-start: 0;
  height: 2px;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  z-index: 70;
}
[dir='rtl'] .progress { transform-origin: right center; }

/* ------------------------------- هیرو ------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: calc(var(--header-h) + 40px) 60px;
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: var(--shell);
  margin-inline: auto;
  text-align: center;
}

.hero__title {
  font-size: clamp(34px, 6.6vw, 78px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin-block: 22px 20px;
}

/* هر کلمه برای انیمیشن پلکانی در یک ظرف با سرریز پنهان می‌نشیند */
.word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-block-end: 0.08em;
}
.word > span {
  display: inline-block;
  will-change: transform;
}

.hero__sub {
  max-width: 620px;
  margin-inline: auto;
  color: var(--text-2);
  font-size: clamp(15px, 1.9vw, 18.5px);
}

.hero__cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-block-start: 34px;
}

.hero__trust {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-block-start: 42px;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(14px);
  font-size: 13px;
  color: var(--text-2);
}
.trust-pill strong { color: var(--text); font-size: 14px; }
.trust-pill svg { color: var(--accent); flex: none; }

.scroll-cue {
  position: absolute;
  inset-block-end: 26px;
  inset-inline: 0;
  margin-inline: auto;
  width: 24px;
  height: 40px;
  border: 1.5px solid var(--line);
  border-radius: 99px;
  display: grid;
  place-items: start center;
  padding-block-start: 7px;
  z-index: 2;
}
.scroll-cue i {
  width: 3.5px;
  height: 8px;
  border-radius: 99px;
  background: var(--accent);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue {
  0% { transform: translateY(0); opacity: 0; }
  35% { opacity: 1; }
  100% { transform: translateY(15px); opacity: 0; }
}

/* -------------------------- نوار روان نمادها -------------------------- */

.ticker {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line-soft);
  background: var(--panel);
  backdrop-filter: blur(12px);
  padding-block: 13px;
  /* محو شدن دو سر نوار */
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.ticker__track {
  display: flex;
  gap: 42px;
  width: max-content;
  will-change: transform;
}

.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
  /* نمادهای بازار همیشه لاتین و چپ‌به‌راست‌اند */
  direction: ltr;
}
.ticker__item b { color: var(--text); font-variant-numeric: tabular-nums; }
.ticker__item .up { color: var(--green); }
.ticker__item .down { color: var(--red); }

/* ------------------------------ کارت شیشه ------------------------------ */

.glass {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(20px) saturate(140%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* --------------------------- «قبل و بعد» --------------------------- */

.compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(14px, 3vw, 34px);
  align-items: stretch;
}

.compare__col {
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
}

.compare__col--bad { border-color: color-mix(in srgb, var(--red) 26%, var(--line)); }
.compare__col--good {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  box-shadow: var(--glow);
}

.compare__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 99px;
  margin-block-end: 18px;
}
.compare__col--bad .compare__label {
  color: var(--red);
  background: color-mix(in srgb, var(--red) 14%, transparent);
}
.compare__col--good .compare__label {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
}

.compare__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }

.compare__list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--text-2);
}
.compare__list li svg { flex: none; margin-block-start: 4px; }
.compare__col--bad li svg { color: var(--red); }
.compare__col--good li svg { color: var(--green); }

.compare__arrow {
  display: grid;
  place-items: center;
  color: var(--accent);
}
[dir='rtl'] .compare__arrow svg { transform: scaleX(-1); }

/* ------------------------------ آمارها ------------------------------ */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 2vw, 22px);
}

.stat {
  padding: clamp(20px, 2.6vw, 30px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(16px);
  text-align: center;
}

.stat__num {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stat__label {
  margin-block-start: 6px;
  font-size: 13.5px;
  color: var(--text-2);
}

/* ------------------- ماژول‌ها: اسکرول افقی سنجاق‌شده ------------------- */

.modules {
  position: relative;
}

/* هنگام سنجاق شدن، همین جعبه تمام صفحه را می‌گیرد: تیتر بالا می‌ماند و
   ریل کارت‌ها زیرش افقی حرکت می‌کند */
.modules__viewport {
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-block: 60px 40px;
}

.modules__track {
  display: flex;
  gap: clamp(16px, 2.4vw, 30px);
  padding-inline: max(calc((100vw - var(--shell)) / 2), 20px);
  will-change: transform;
}

.module-card {
  flex: none;
  width: clamp(280px, 34vw, 430px);
  padding: clamp(20px, 2.4vw, 28px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(20px) saturate(140%);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.module-card__top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.module-card__icon {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 8px 22px color-mix(in srgb, var(--c1) 35%, transparent);
}

.module-card__title { font-size: 18px; }
.module-card__no {
  margin-inline-start: auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.module-card__body { color: var(--text-2); font-size: 14.5px; }

.module-card__mock {
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: var(--field);
  padding: 14px;
  overflow: hidden;
}

.module-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-block-start: auto;
}

.tag {
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--panel-2);
  border: 1px solid var(--line-soft);
  color: var(--text-2);
}

.tag--pro {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  font-weight: 700;
}

.modules__hint {
  position: absolute;
  inset-block-end: 30px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  font-size: 12.5px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ------------------------------ قابلیت‌ها ------------------------------ */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 22px);
}

.feature {
  position: relative;
  padding: clamp(22px, 2.6vw, 30px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(16px);
  overflow: hidden;
  transition: border-color var(--t), transform var(--t);
  transform-style: preserve-3d;
}

/* درخشش دنبال‌کنندهٔ نشانگر ماوس */
.feature::before {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 18%, transparent), transparent 68%);
  inset-block-start: var(--my, 50%);
  inset-inline-start: var(--mx, 50%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity var(--t);
  pointer-events: none;
}
.feature:hover::before { opacity: 1; }
.feature:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }

.feature__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--glass-hi);
  color: var(--accent);
  margin-block-end: 16px;
}

.feature__title { font-size: 17px; margin-block-end: 8px; }
.feature__text { color: var(--text-2); font-size: 14.3px; }

.feature__badge {
  position: absolute;
  inset-block-start: 18px;
  inset-inline-end: 18px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 99px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
}

/* ------------------------------ سه گام ------------------------------ */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 3vw, 40px);
  position: relative;
}

.step { text-align: center; }

.step__num {
  width: 58px;
  height: 58px;
  margin-inline: auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 21px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: var(--glow);
  margin-block-end: 18px;
}

.step__title { font-size: 18px; margin-block-end: 8px; }
.step__text { color: var(--text-2); font-size: 14.4px; }

.steps__line {
  position: absolute;
  inset-block-start: 29px;
  inset-inline: 16%;
  height: 2px;
  z-index: -1;
}
.steps__line path {
  stroke: var(--line);
  stroke-width: 2;
  stroke-dasharray: 6 7;
  fill: none;
}

/* ------------------------------ قیمت‌گذاری ------------------------------ */

.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(14px);
  margin-block-start: 22px;
  position: relative;
}

.billing-toggle button {
  position: relative;
  z-index: 1;
  padding: 8px 20px;
  border-radius: 99px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  transition: color var(--t);
}
.billing-toggle button.is-active { color: #fff; }

.billing-toggle__pill {
  position: absolute;
  inset-block: 4px;
  /* عمداً فیزیکی و نه منطقی: جای واقعی قرص را با اندازه‌گیری حساب می‌کنیم،
     پس نقطهٔ شروعش باید در هر دو جهت یکی باشد */
  left: 0;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  z-index: 0;
}

.save-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--green) 18%, transparent);
  color: var(--green);
  margin-inline-start: 6px;
}

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 26px);
  max-width: 880px;
  margin-inline: auto;
  align-items: start;
}

.plan {
  position: relative;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(20px) saturate(140%);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.plan--pro {
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
  box-shadow: var(--glow), var(--shadow-lg);
}

/* هالهٔ نرم پشت پلن حرفه‌ای */
.plan--pro::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, var(--accent), transparent 40%, transparent 60%, var(--accent-3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.plan__flag {
  position: absolute;
  inset-block-start: -13px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  padding: 5px 16px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  box-shadow: var(--glow);
  white-space: nowrap;
}

.plan__name { font-size: 21px; }
.plan__tagline { color: var(--text-2); font-size: 14px; margin-block-start: 6px; }

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.plan__amount {
  font-size: clamp(32px, 4.4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.plan__unit { color: var(--text-2); font-size: 14px; }
.plan__note { color: var(--text-3); font-size: 12.5px; }

.plan__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }

.plan__list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14.2px;
  color: var(--text-2);
}
.plan__list li svg { flex: none; margin-block-start: 4px; color: var(--green); }
.plan__list li.is-off { color: var(--text-3); }
.plan__list li.is-off svg { color: var(--text-3); opacity: 0.6; }

/* ------------------------- جدول مقایسهٔ کامل ------------------------- */

.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
}

.compare-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14.2px;
}

.compare-table th,
.compare-table td {
  padding: 14px 18px;
  text-align: start;
  border-block-end: 1px solid var(--line-soft);
}

.compare-table thead th {
  font-size: 13px;
  color: var(--text-2);
  font-weight: 700;
  position: sticky;
  inset-block-start: 0;
  background: var(--panel-solid);
}

.compare-table tbody tr:last-child td { border-block-end: 0; }
.compare-table tbody tr:hover td { background: var(--glass-hi); }

.compare-table td:not(:first-child),
.compare-table th:not(:first-child) { text-align: center; width: 22%; }

.compare-table .col-pro {
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}

.cell-group td {
  font-weight: 700;
  color: var(--text);
  background: var(--panel-2);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.yes { color: var(--green); }
.no { color: var(--text-3); opacity: 0.55; }

/* ------------------------------ نظرات ------------------------------ */

.quotes {
  display: flex;
  gap: 18px;
  width: max-content;
  will-change: transform;
}

.quote {
  flex: none;
  width: min(360px, 82vw);
  padding: 26px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(16px);
}

.quote__text { font-size: 14.6px; color: var(--text-2); }

.quote__by {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-block-start: 18px;
}

.quote__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  font-size: 15px;
  flex: none;
}

.quote__name { font-weight: 600; font-size: 14px; }
.quote__role { color: var(--text-3); font-size: 12.5px; }

.quote__stars { color: var(--amber); display: flex; gap: 2px; margin-block-end: 14px; }

/* ------------------------------- پرسش‌ها ------------------------------- */

.faq { max-width: 760px; margin-inline: auto; display: grid; gap: 10px; }

.faq__item {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--t);
}
.faq__item.is-open { border-color: color-mix(in srgb, var(--accent) 42%, transparent); }

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 22px;
  text-align: start;
  font-size: 15.2px;
  font-weight: 600;
}

.faq__q span { flex: 1; }

.faq__sign {
  width: 26px;
  height: 26px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--accent);
  transition: transform var(--t), background var(--t);
}
.faq__item.is-open .faq__sign {
  transform: rotate(45deg);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

.faq__a {
  height: 0;
  overflow: hidden;
}
.faq__a > div {
  padding: 0 22px 20px;
  color: var(--text-2);
  font-size: 14.3px;
}

/* ------------------------------ فراخوان ------------------------------ */

.cta {
  position: relative;
  text-align: center;
  padding: clamp(44px, 6vw, 78px) clamp(22px, 4vw, 60px);
  border-radius: var(--radius-2xl);
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--line));
  background: var(--panel);
  backdrop-filter: blur(22px) saturate(150%);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta::before {
  content: '';
  position: absolute;
  inset-block-start: -55%;
  inset-inline-start: 50%;
  width: 130%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 62%);
  pointer-events: none;
}

.cta > * { position: relative; }

.cta__title {
  font-size: clamp(26px, 4.4vw, 46px);
  margin-block-end: 14px;
}

/* ------------------------------- پاورقی ------------------------------- */

.footer {
  border-block-start: 1px solid var(--line-soft);
  padding-block: 52px 34px;
  margin-block-start: 40px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 34px;
}

.footer__about { color: var(--text-2); font-size: 14px; max-width: 300px; margin-block-start: 14px; }

.footer__col h4 {
  font-size: 13px;
  color: var(--text-3);
  margin-block-end: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer__col a {
  display: block;
  padding-block: 6px;
  color: var(--text-2);
  font-size: 14px;
  transition: color var(--t);
}
.footer__col a:hover { color: var(--accent); }

.footer__bottom {
  margin-block-start: 40px;
  padding-block-start: 22px;
  border-block-start: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-3);
  font-size: 13px;
}

/* ------------------------- صفحه‌های ورود / ثبت‌نام ------------------------- */

.auth {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth__aside {
  position: relative;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-inline-end: 1px solid var(--line-soft);
  overflow: hidden;
}

.auth__aside-inner { position: relative; z-index: 2; max-width: 420px; margin-block: auto; }

.auth__headline {
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.2;
  margin-block: 22px 16px;
}

.auth__points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.auth__points li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  color: var(--text-2);
  font-size: 14.5px;
}
.auth__points svg { color: var(--accent); flex: none; margin-block-start: 3px; }

.auth__main {
  display: grid;
  place-items: center;
  padding: 40px 24px;
}

.auth__card { width: min(430px, 100%); }

.auth__title { font-size: 26px; margin-block-end: 8px; }
.auth__sub { color: var(--text-2); font-size: 14.4px; margin-block-end: 28px; }

.field { margin-block-end: 16px; }

.field__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  margin-block-end: 7px;
}

.field__input {
  width: 100%;
  padding: 12px 15px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--text);
  font-size: 14.5px;
  transition: border-color var(--t), box-shadow var(--t);
}
.field__input::placeholder { color: var(--text-3); }
.field__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}
.field.has-error .field__input { border-color: var(--red); }

/* ایمیل و رمز همیشه چپ‌به‌راست تایپ می‌شوند، حتی در صفحهٔ فارسی */
.field__input[type='email'],
.field__input[type='password'] { direction: ltr; text-align: start; }
[dir='rtl'] .field__input[type='email'],
[dir='rtl'] .field__input[type='password'] { text-align: right; }

.field__error {
  display: none;
  color: var(--red);
  font-size: 12.5px;
  margin-block-start: 6px;
}
.field.has-error .field__error { display: block; }

.field__hint { color: var(--text-3); font-size: 12.3px; margin-block-start: 6px; }

/* نوار قدرت رمز */
.pw-meter {
  display: flex;
  gap: 4px;
  margin-block-start: 8px;
}
.pw-meter i {
  height: 3px;
  flex: 1;
  border-radius: 99px;
  background: var(--line);
  transition: background var(--t);
}
.pw-meter[data-score='1'] i:nth-child(1) { background: var(--red); }
.pw-meter[data-score='2'] i:nth-child(-n+2) { background: var(--amber); }
.pw-meter[data-score='3'] i:nth-child(-n+3) { background: var(--accent); }
.pw-meter[data-score='4'] i { background: var(--green); }

/* انتخاب پلن داخل فرم ثبت‌نام */
.plan-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-block-end: 20px; }

.plan-opt {
  position: relative;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--field);
  cursor: pointer;
  transition: border-color var(--t), background var(--t);
}
.plan-opt:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.plan-opt input { position: absolute; opacity: 0; pointer-events: none; }
.plan-opt:has(input:checked) {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.plan-opt__name { font-weight: 700; font-size: 14.5px; }
.plan-opt__price { color: var(--text-2); font-size: 12.8px; margin-block-start: 3px; }

.form-note {
  color: var(--text-3);
  font-size: 12.5px;
  text-align: center;
  margin-block-start: 18px;
}
.form-note a { color: var(--accent); }

.form-alert {
  display: none;
  padding: 11px 15px;
  border-radius: var(--radius);
  font-size: 13.5px;
  margin-block-end: 18px;
  border: 1px solid color-mix(in srgb, var(--red) 40%, transparent);
  background: color-mix(in srgb, var(--red) 12%, transparent);
  color: var(--red);
}
.form-alert.is-on { display: block; }

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-3);
  font-size: 12.5px;
  margin-block: 22px;
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.btn.is-loading { pointer-events: none; opacity: 0.7; }
.btn.is-loading .btn__label { opacity: 0.5; }

.spinner {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
  display: none;
}
.btn.is-loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------- صفحهٔ حساب کاربری --------------------------- */

.account { padding-block: calc(var(--header-h) + 40px) 60px; }

.account__grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  align-items: start;
}

.account__card { padding: 26px; }

.kv { display: grid; gap: 14px; }
.kv__row { display: flex; justify-content: space-between; gap: 14px; font-size: 14.3px; }
.kv__k { color: var(--text-2); }
.kv__v { font-weight: 600; }

.badge-plan {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 36%, transparent);
}

/* -------------------------------- ۴۰۴ -------------------------------- */

.notfound {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 24px;
}
.notfound__code {
  font-size: clamp(80px, 18vw, 190px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
}

/* ------------------------------ پیش‌بارگذار ------------------------------ */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--bg);
}

/* لوگو و نوار زیر هم و هر دو وسط. بدون این، svg که display:block است به لبهٔ
   شروعِ نوار می‌چسبد و آن لبه با فارسی/انگلیسی جابه‌جا می‌شود. */
.preloader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.preloader__bar {
  width: 180px;
  height: 2px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
}
/* از وسط به دو طرف باز می‌شود؛ این‌طوری برخلاف پر شدن از یک لبه، در فارسی و
   انگلیسی عین هم دیده می‌شود و کل این پرده با تعویض زبان تکان نمی‌خورد. */
.preloader__fill {
  height: 100%;
  width: 100%;
  transform-origin: center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
}

/* --------------------------- حالت‌های اولیهٔ انیمیشن ---------------------------
   کلاس‌های زیر را GSAP برمی‌دارد. اگر جاوااسکریپت اجرا نشد، صفحه نباید خالی
   بماند؛ برای همین با no-js همه چیز بی‌درنگ دیده می‌شود. */

.js .reveal { opacity: 0; transform: translateY(26px); }
.js .reveal-x { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal,
  .js .reveal-x { opacity: 1; transform: none; }
  .scroll-cue i,
  .eyebrow i { animation: none; }
  * { transition-duration: 1ms !important; }
}

/* ------------------------------- واکنش‌گرا ------------------------------- */

@media (max-width: 1080px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .header__nav { display: none; }
  .burger { display: inline-grid; }
  /* دکمه‌های ورود و شروع در منوی موبایل تکرار شده‌اند؛ اینجا فقط جا تنگ می‌کنند */
  .header__actions .btn { display: none; }
  .auth { grid-template-columns: 1fr; }
  .auth__aside { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .compare { grid-template-columns: 1fr; }
  .compare__arrow { transform: rotate(90deg); justify-self: center; }
  [dir='rtl'] .compare__arrow svg { transform: none; }
  .steps { grid-template-columns: 1fr; }
  .steps__line { display: none; }
  .account__grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --shell: min(1200px, 100% - 2rem); }
  .features { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .plan--pro { order: -1; }
  .footer__grid { grid-template-columns: 1fr; gap: 26px; }
  .modules__viewport { height: auto; padding-block: 40px; display: block; }
  /* راهنمای «اسکرول کن» برای حالت سنجاق‌شده است؛ روی موبایل ریل خودش
     افقی اسکرول می‌شود و این فقط روی محتوا می‌افتد */
  .modules__hint { display: none; }
  .plan-picker { grid-template-columns: 1fr; }
}
