/* ==========================================================================
   Agentyar — Design System & Styles
   نویسنده: تیم ایجنت‌یار
   ساختار: 1) توکن‌ها  2) پایه  3) لایه‌بندی  4) کامپوننت‌ها  5) بخش‌ها  6) ریسپانسیو
   ========================================================================== */

/* --------------------------------------------------------------------------
   فونت: یکان بخ (Yekan Bakh)
   گزینه ۱ (فعال): لود از CDN فارسی در <head> هر صفحه
   گزینه ۲ (Self-host، سریع‌تر و مطمئن‌تر): فایل‌های woff2 یکان بخ را کنار
   همین فایل بگذارید، لینک CDN را از <head> بردارید و بلاک زیر را از کامنت
   خارج کنید. نام فایل‌ها باید دقیقاً مطابق زیر باشد.
--------------------------------------------------------------------------- */
/*
@font-face { font-family:'YekanBakh'; src:url('YekanBakh-Light.woff2')   format('woff2'); font-weight:300; font-display:swap; }
@font-face { font-family:'YekanBakh'; src:url('YekanBakh-Regular.woff2') format('woff2'); font-weight:400; font-display:swap; }
@font-face { font-family:'YekanBakh'; src:url('YekanBakh-Medium.woff2')  format('woff2'); font-weight:500; font-display:swap; }
@font-face { font-family:'YekanBakh'; src:url('YekanBakh-Bold.woff2')    format('woff2'); font-weight:700; font-display:swap; }
@font-face { font-family:'YekanBakh'; src:url('YekanBakh-Heavy.woff2')   format('woff2'); font-weight:800; font-display:swap; }
@font-face { font-family:'YekanBakh'; src:url('YekanBakh-Fat.woff2')     format('woff2'); font-weight:900; font-display:swap; }
*/

/* ==========================================================================
   1) توکن‌های طراحی
   ========================================================================== */
:root {
  /* رنگ پایه */
  --bg:            #04070500;
  --bg-base:       #050806;
  --bg-deep:       #030504;
  --bg-elev:       #0a120d;
  --surface:       #0b1410;
  --surface-2:     #0e1a14;
  --surface-3:     #122018;

  /* برند */
  --brand:         #21e06b;
  --brand-bright:  #4dff92;
  --brand-mid:     #16b757;
  --brand-deep:    #0c7a3a;
  --brand-ink:     #032010;

  /* متن */
  --text:          #eaf6ef;
  --text-2:        #b6c9bd;
  --text-3:        #7f9689;
  --text-on-brand: #04170c;

  /* خطوط و سطوح */
  --line:          rgba(94, 214, 145, .14);
  --line-strong:   rgba(94, 214, 145, .28);
  --glass:         rgba(10, 22, 16, .72);

  /* سایه و درخشش */
  --glow-brand:    0 10px 40px -12px rgba(33, 224, 107, .55);
  --glow-soft:     0 0 0 1px rgba(94, 214, 145, .10), 0 24px 60px -30px rgba(0, 0, 0, .9);
  --shadow-card:   0 18px 40px -28px rgba(0, 0, 0, .95);

  /* شعاع */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-full: 999px;

  /* فاصله */
  --gutter: 20px;
  --maxw: 1200px;
  --section-y: clamp(64px, 9vw, 120px);

  /* حرکت */
  --ease: cubic-bezier(.22, .68, .36, 1);
  --dur: .32s;

  --header-h: 76px;
}

/* ==========================================================================
   2) پایه
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: 'YekanBakh', 'Yekan Bakh', 'YekanBakhFaNum', 'IRANYekanX', 'IRANYekan',
               'Vazirmatn', 'Vazir', 'IRANSans', Tahoma, system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
  background-color: var(--bg-base);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01";
}

/* درخشش کلی پس‌زمینه */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 620px at 88% -8%,  rgba(22, 183, 87, .20), transparent 62%),
    radial-gradient(760px 520px at 8% 4%,    rgba(12, 122, 58, .16), transparent 60%),
    radial-gradient(1100px 700px at 50% 108%, rgba(22, 183, 87, .10), transparent 64%);
  pointer-events: none;
}

img, svg, video { display: block; max-width: 100%; height: auto; }

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

button, input, textarea, select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button { cursor: pointer; }

ul, ol { list-style: none; }

::selection { background: rgba(33, 224, 107, .28); color: #fff; }

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

/* اسکرول‌بار */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brand-mid), var(--brand-deep));
  border-radius: var(--r-full);
  border: 2px solid var(--bg-deep);
}

/* پرش به محتوا */
.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  top: 10px;
  z-index: 200;
  background: var(--brand);
  color: var(--text-on-brand);
  padding: 10px 18px;
  border-radius: var(--r-sm);
  font-weight: 700;
}
.skip-link:focus { inset-inline-start: 16px; }

/* ==========================================================================
   3) لایه‌بندی و تایپوگرافی
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

.section-head {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-block-end: clamp(36px, 5vw, 60px);
}

h1, h2, h3, h4 { font-weight: 800; line-height: 1.4; letter-spacing: -.01em; }

.h-display {
  font-size: clamp(1.85rem, 3.9vw, 2.9rem);
  line-height: 1.5;
  font-weight: 800;
  letter-spacing: -.015em;
}

h2, .h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.45; }
h3, .h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

.lead {
  color: var(--text-2);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 2;
}

.grad-text {
  background: linear-gradient(120deg, var(--brand-bright), var(--brand) 45%, var(--brand-mid));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--brand-bright);
  background: rgba(33, 224, 107, .09);
  border: 1px solid var(--line-strong);
  padding: 6px 14px;
  border-radius: var(--r-full);
  margin-block-end: 18px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 10px var(--brand);
}

.muted { color: var(--text-2); }
.text-center { text-align: center; }

/* ==========================================================================
   4) کامپوننت‌ها
   ========================================================================== */

/* ---- دکمه ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--r-full);
  font-weight: 700;
  font-size: .98rem;
  white-space: nowrap;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(135deg, var(--brand-bright), var(--brand) 55%, var(--brand-mid));
  color: var(--text-on-brand);
  box-shadow: var(--glow-brand);
}
.btn--primary:hover { box-shadow: 0 16px 46px -12px rgba(33, 224, 107, .7); }

.btn--ghost {
  background: rgba(255, 255, 255, .02);
  border: 1px solid var(--line-strong);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  border-color: var(--brand);
  background: rgba(33, 224, 107, .07);
}

.btn--sm { padding: 10px 20px; font-size: .88rem; }
.btn--lg { padding: 16px 34px; font-size: 1.05rem; }
.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* ---- کارت ---- */
.card {
  position: relative;
  background:
    linear-gradient(160deg, rgba(33, 224, 107, .05), rgba(255, 255, 255, .012) 42%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(94, 214, 145, .5), transparent);
  opacity: .5;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 1), 0 0 0 1px rgba(33, 224, 107, .14);
}

.card__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: linear-gradient(145deg, rgba(33, 224, 107, .16), rgba(33, 224, 107, .04));
  border: 1px solid var(--line-strong);
  color: var(--brand);
  margin-block-end: 20px;
}
.card__icon svg { width: 28px; height: 28px; }

.card h3 { margin-block-end: 10px; }
.card p { color: var(--text-2); font-size: .95rem; line-height: 1.95; }

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-block-start: 18px;
  color: var(--brand);
  font-weight: 700;
  font-size: .9rem;
  transition: gap var(--dur) var(--ease);
}
.card__link svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.card__link:hover { gap: 12px; }
.card__link:hover svg { transform: translateX(-3px); }

/* ---- شبکه ---- */
.grid { display: grid; gap: 20px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

/* ---- آمار ---- */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 5vw, 64px);
  margin-block-start: clamp(22px, 3vw, 34px);
}
.stat__num {
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  font-weight: 800;
  color: var(--brand);
  line-height: 1.3;
  letter-spacing: 0;
}
.stat__label { color: var(--text-2); font-size: .9rem; }

/* ---- هدر ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              backdrop-filter var(--dur) var(--ease);
  border-block-end: 1px solid transparent;
}
.site-header.is-stuck {
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(140%);
  border-block-end-color: var(--line);
}
.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__mark { width: 38px; height: 38px; flex: none; }
.logo__text {
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -.02em;
  font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  direction: ltr;
}
.logo__sub {
  display: block;
  font-size: .58rem;
  letter-spacing: .32em;
  color: var(--brand);
  font-weight: 700;
  margin-block-start: -6px;
  direction: ltr;
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: .95rem;
  color: var(--text-2);
  font-weight: 500;
  position: relative;
  padding-block: 6px;
  transition: color var(--dur) var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  transition: width var(--dur) var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }

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

.burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  align-items: center;
  justify-content: center;
  color: var(--text);
}
.burger svg { width: 22px; height: 22px; }

/* کشوی موبایل */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(3, 6, 4, .78);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
}
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer__panel {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: min(86vw, 360px);
  background: linear-gradient(180deg, var(--surface-2), var(--bg-deep));
  border-inline-start: 1px solid var(--line);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateX(-100%);
  transition: transform var(--dur) var(--ease);
}
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-block-end: 20px;
}
.drawer__close {
  width: 42px; height: 42px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  display: grid; place-items: center;
}
.drawer__close svg { width: 20px; height: 20px; }
.drawer nav a {
  display: block;
  padding: 14px 12px;
  border-radius: var(--r-sm);
  font-weight: 600;
  color: var(--text-2);
  border-block-end: 1px solid rgba(94, 214, 145, .08);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.drawer nav a:hover { background: rgba(33, 224, 107, .08); color: var(--text); }
.drawer .btn { margin-block-start: 22px; }

/* ==========================================================================
   5) بخش‌ها
   ========================================================================== */

/* ---- هیرو ---- */
.hero {
  position: relative;
  padding-block: clamp(30px, 4vw, 56px) clamp(48px, 6vw, 86px);
  overflow: hidden;
}
.hero__wave {
  position: absolute;
  inset-block-end: -32%;
  inset-inline-start: -12%;
  width: 92%;
  max-width: 900px;
  opacity: .5;
  pointer-events: none;
  z-index: 0;
  filter: blur(2px);
  /* محو شدن لبه‌ها تا مستطیل تصویر دیده نشود */
  -webkit-mask-image: radial-gradient(70% 70% at 50% 60%, #000 35%, transparent 78%);
  mask-image: radial-gradient(70% 70% at 50% 60%, #000 35%, transparent 78%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.hero h1 { margin-block-end: 18px; }
.hero .lead { max-width: 34ch; font-size: clamp(.98rem, 1.25vw, 1.06rem); }
.hero .btn-row { margin-block-start: 26px; }

.play-icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--brand);
  display: grid; place-items: center;
  color: var(--brand);
}
.play-icon svg { width: 11px; height: 11px; }

/* ---- موکاپ موبایل ---- */
.phone-wrap {
  display: flex;
  justify-content: center;
  perspective: 1400px;
}
.phone {
  position: relative;
  width: min(312px, 80vw);
  aspect-ratio: 312 / 640;
  border-radius: 46px;
  padding: 10px;
  background: linear-gradient(180deg, #2a3a31, #131c17 30%, #101814 70%, #253329);
  box-shadow:
    0 44px 90px -44px rgba(0, 0, 0, 1),
    0 0 0 1px rgba(94, 214, 145, .16),
    0 0 100px -30px rgba(33, 224, 107, .3);
}
/* دکمه‌های کناری گوشی */
.phone::before,
.phone::after {
  content: "";
  position: absolute;
  inset-inline-end: -2px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, #33453a, #1a241e);
}
.phone::before { top: 132px; height: 34px; }
.phone::after  { top: 178px; height: 56px; }

.phone__screen {
  position: relative;
  height: 100%;
  border-radius: 37px;
  background: linear-gradient(180deg, #0a1410, #060c08 55%, #07140d);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 10px 10px 14px;
}
.phone__notch {
  position: absolute;
  inset-block-start: 16px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  width: 76px;
  height: 20px;
  border-radius: var(--r-full);
  background: #04080699;
  backdrop-filter: blur(4px);
  z-index: 3;
}
.phone__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .64rem;
  font-weight: 600;
  color: var(--text);
  padding: 7px 14px 14px;
  direction: ltr;
  position: relative;
  z-index: 4;
}
.phone__status .sig { display: inline-flex; gap: 3px; align-items: flex-end; }
.phone__status .sig i {
  display: block;
  width: 3px;
  background: var(--text);
  border-radius: 1px;
}
.phone__status .sig i:nth-child(1) { height: 4px; }
.phone__status .sig i:nth-child(2) { height: 6px; }
.phone__status .sig i:nth-child(3) { height: 8px; }
.phone__status .sig i:nth-child(4) { height: 10px; }

/* نوار بالای اپ — شبیه دایرکت اینستاگرام */
.phone__bar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 4px 12px;
  border-block-end: 1px solid rgba(94, 214, 145, .1);
}
.phone__avatar {
  width: 30px; height: 30px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--brand-bright), var(--brand-deep));
  display: grid; place-items: center;
  font-size: .72rem;
  font-weight: 800;
  color: var(--text-on-brand);
}
.phone__who { display: flex; flex-direction: column; line-height: 1.5; min-width: 0; }
.phone__who b { font-size: .78rem; font-weight: 700; }
.phone__who span {
  font-size: .62rem;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.phone__who span::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 8px var(--brand);
}
.phone__bar-menu { margin-inline-start: auto; color: var(--text-3); }
.phone__bar-menu svg { width: 15px; height: 15px; }

/* گفت‌وگو */
.chat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-block-start: 14px;
  overflow: hidden;
}
.msg {
  max-width: 82%;
  padding: 9px 12px;
  font-size: .73rem;
  line-height: 1.85;
  opacity: 0;
  transform: translateY(8px);
  animation: msgIn .5s var(--ease) forwards;
}
/* پیام مشتری — سمت راست، خاکستری */
.msg--them {
  align-self: flex-start;
  background: #16211b;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 16px 16px 16px 4px;
  color: var(--text-2);
}
/* پاسخ ایجنت — سمت چپ، سبز */
.msg--us {
  align-self: flex-end;
  background: linear-gradient(140deg, var(--brand-mid), var(--brand-deep));
  border-radius: 16px 16px 4px 16px;
  color: #eafff2;
  box-shadow: 0 6px 18px -10px rgba(33, 224, 107, .8);
}
.msg__time {
  display: block;
  font-size: .58rem;
  opacity: .6;
  margin-block-start: 3px;
}

/* کارت تأیید نوبت */
.booking {
  align-self: flex-end;
  width: 88%;
  background: var(--surface-3);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 11px 12px;
  opacity: 0;
  transform: translateY(8px);
  animation: msgIn .5s var(--ease) forwards;
}
.booking__top {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .7rem;
  font-weight: 700;
  color: var(--brand-bright);
  margin-block-end: 8px;
}
.booking__top svg { width: 13px; height: 13px; }
.booking__row {
  display: flex;
  justify-content: space-between;
  font-size: .68rem;
  color: var(--text-2);
  padding-block: 2px;
}
.booking__row b { color: var(--text); font-weight: 600; }

/* نشانگر تایپ */
.typing {
  align-self: flex-end;
  display: inline-flex;
  gap: 4px;
  padding: 10px 13px;
  background: rgba(33, 224, 107, .12);
  border-radius: 16px 16px 4px 16px;
  opacity: 0;
  animation: msgIn .5s var(--ease) forwards;
}
.typing i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brand);
  animation: blink 1.3s infinite;
}
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }

@keyframes msgIn { to { opacity: 1; transform: translateY(0); } }
@keyframes blink { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }


.phone__glow {
  position: absolute;
  inset-block-end: -60px;
  inset-inline-start: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(33, 224, 107, .55), transparent 68%);
  filter: blur(24px);
  pointer-events: none;
}

/* ---- نوار CTA ---- */
.cta-band {
  position: relative;
  border-radius: var(--r-xl);
  padding: clamp(36px, 5vw, 60px);
  text-align: center;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(33, 224, 107, .16), transparent 70%),
    linear-gradient(160deg, var(--surface-2), var(--bg-deep));
  border: 1px solid var(--line-strong);
  overflow: hidden;
}
.cta-band h2 { margin-block-end: 14px; }
.cta-band .btn-row { justify-content: center; margin-block-start: 28px; }

/* ---- مراحل ---- */
.steps { counter-reset: step; }
.step { position: relative; padding-inline-start: 0; }
.step__num {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800;
  color: var(--brand);
  background: rgba(33, 224, 107, .1);
  border: 1px solid var(--line-strong);
  margin-block-end: 16px;
}

/* ---- وبلاگ ---- */
.blog-toolbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-block-end: 38px;
}
.search-box {
  position: relative;
  width: min(620px, 100%);
}
.search-box input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  padding: 15px 50px 15px 20px;
  font-size: .95rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.search-box input::placeholder { color: var(--text-3); }
.search-box input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(33, 224, 107, .1);
}
.search-box svg {
  position: absolute;
  inset-inline-start: 18px;
  inset-block-start: 50%;
  transform: translateY(-50%);
  width: 19px; height: 19px;
  color: var(--text-3);
  pointer-events: none;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: center;
}
.chip-btn {
  padding: 8px 18px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  font-size: .87rem;
  font-weight: 600;
  transition: all var(--dur) var(--ease);
}
.chip-btn:hover { border-color: var(--line-strong); color: var(--text); }
.chip-btn.is-active {
  background: linear-gradient(135deg, var(--brand-bright), var(--brand-mid));
  color: var(--text-on-brand);
  border-color: transparent;
  box-shadow: var(--glow-brand);
}

.post {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.post:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.post__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-3);
}
.post__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.post:hover .post__media img { transform: scale(1.06); }
.post__badge {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  padding: 5px 13px;
  border-radius: var(--r-full);
  font-size: .72rem;
  font-weight: 700;
  background: rgba(4, 12, 7, .82);
  border: 1px solid var(--line-strong);
  color: var(--brand-bright);
  backdrop-filter: blur(6px);
}
.post__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post__body h3 { font-size: 1.02rem; line-height: 1.75; }
.post__meta {
  margin-block-start: auto;
  color: var(--text-3);
  font-size: .8rem;
  display: flex;
  gap: 14px;
  padding-block-start: 6px;
}
.empty-state {
  text-align: center;
  color: var(--text-3);
  padding: 60px 20px;
  display: none;
}
.empty-state.is-shown { display: block; }

/* ---- سوالات متداول ---- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease);
}
.faq__item[open] { border-color: var(--line-strong); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  font-size: .98rem;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q i {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  color: var(--brand);
  font-style: normal;
  transition: transform var(--dur) var(--ease);
}
.faq__item[open] .faq__q i { transform: rotate(45deg); }
.faq__a {
  padding: 0 22px 20px;
  color: var(--text-2);
  font-size: .94rem;
  line-height: 2;
}

/* ---- فرم ---- */
.form {
  display: grid;
  gap: 16px;
  max-width: 620px;
  margin-inline: auto;
  text-align: start;
}
.field { display: grid; gap: 7px; }
.field label { font-size: .88rem; font-weight: 600; color: var(--text-2); }
.field input,
.field textarea,
.field select {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 13px 16px;
  font-size: .95rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field select { appearance: none; cursor: pointer; }
.field textarea { resize: vertical; min-height: 110px; line-height: 1.9; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(33, 224, 107, .09);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__note { font-size: .82rem; color: var(--text-3); text-align: center; }
.form__status {
  display: none;
  padding: 13px 16px;
  border-radius: var(--r-md);
  font-size: .9rem;
  font-weight: 600;
  text-align: center;
}
.form__status.is-shown { display: block; }
.form__status--ok { background: rgba(33, 224, 107, .12); color: var(--brand-bright); border: 1px solid var(--line-strong); }

/* ---- فوتر ---- */
.site-footer {
  margin-block-start: clamp(20px, 3vw, 40px);
  border-block-start: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 22, 16, .5), var(--bg-deep));
  padding-block: clamp(46px, 6vw, 70px) 26px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
}
.footer__about p {
  color: var(--text-2);
  font-size: .9rem;
  margin-block: 16px 20px;
  max-width: 34ch;
  line-height: 2;
}
.footer h4 {
  font-size: .98rem;
  margin-block-end: 18px;
  color: var(--text);
}
.footer__links { display: grid; gap: 11px; }
.footer__links a {
  color: var(--text-2);
  font-size: .9rem;
  transition: color var(--dur) var(--ease), padding-inline-start var(--dur) var(--ease);
}
.footer__links a:hover { color: var(--brand); padding-inline-start: 4px; }

.socials { display: flex; gap: 10px; }
.socials a {
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--text-2);
  transition: all var(--dur) var(--ease);
}
.socials a svg { width: 17px; height: 17px; }
.socials a:hover {
  color: var(--brand);
  border-color: var(--brand);
  background: rgba(33, 224, 107, .08);
  transform: translateY(-3px);
}

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

/* ---- صفحه بیزنس ---- */
.hero--business {
  position: relative;
  padding-block: clamp(56px, 8vw, 110px);
  text-align: center;
  overflow: hidden;
}
.hero--business::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(4, 8, 6, .55), var(--bg-base) 88%),
    repeating-linear-gradient(115deg, rgba(33, 224, 107, .05) 0 2px, transparent 2px 22px),
    radial-gradient(700px 420px at 50% 0%, rgba(22, 183, 87, .24), transparent 68%);
}
.hero--business + .section { padding-block-start: clamp(36px, 4.5vw, 64px); }
.hero--business .stats { justify-content: center; }
.hero--business .lead { margin-inline: auto; max-width: 52ch; }
.hero--business .btn-row { justify-content: center; }

/* ---- مقاله ---- */
.article { max-width: 760px; margin-inline: auto; }
.article__hero { margin-block-end: 34px; text-align: center; }
.article__meta {
  display: flex; gap: 16px; justify-content: center;
  color: var(--text-3); font-size: .86rem; margin-block-start: 14px;
}
.article__cover {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-block-end: 34px;
}
.article__body > * + * { margin-block-start: 20px; }
.article__body h2 { font-size: 1.5rem; margin-block-start: 40px; }
.article__body h3 { font-size: 1.2rem; margin-block-start: 30px; }
.article__body p { color: var(--text-2); line-height: 2.15; }
.article__body ul { display: grid; gap: 10px; padding-inline-start: 4px; }
.article__body ul li {
  color: var(--text-2);
  padding-inline-start: 22px;
  position: relative;
  line-height: 2.05;
}
.article__body ul li::before {
  content: "";
  position: absolute;
  inset-inline-start: 4px;
  inset-block-start: 14px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand);
}
.article__body blockquote {
  border-inline-start: 3px solid var(--brand);
  padding: 4px 20px;
  color: var(--text);
  font-weight: 600;
}

/* ---- ۴۰۴ ---- */
.page-404 {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
}
.page-404 .code {
  font-size: clamp(5rem, 18vw, 10rem);
  font-weight: 800;
  line-height: 1;
  margin-block-end: 10px;
}

/* ==========================================================================
   6) انیمیشن ظاهر شدن
   ========================================================================== */
/* فقط وقتی جاوااسکریپت فعال است المان‌ها مخفی می‌شوند.
   اگر JS لود نشود، همه‌ی محتوا مثل حالت عادی دیده می‌شود. */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   7) ریسپانسیو
   ========================================================================== */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { max-width: 46ch; margin-inline: auto; }
  .hero .btn-row, .hero .stats { justify-content: center; }
  .hero .eyebrow { margin-inline: auto; }
  /* در موبایل اول پیام، بعد تصویر */
  .phone-wrap { order: 2; margin-block-start: 30px; }
  .phone { width: min(292px, 74vw); }
}

@media (max-width: 860px) {
  :root { --header-h: 66px; }
  .nav { display: none; }
  .header__actions .btn { display: none; }
  .burger { display: flex; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 15px; }
  .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .stats { gap: 22px 32px; }
  .btn-row .btn { flex: 1 1 100%; }
  .footer__bottom { justify-content: center; text-align: center; }
}

/* ==========================================================================
   8) دسترسی‌پذیری — کاهش حرکت
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .bubble, .chip { opacity: 1; transform: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   9) چاپ
   ========================================================================== */
@media print {
  body::before, .site-header, .site-footer, .drawer, .hero__wave { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ==========================================================================
   10) بخش‌های نسخه ۲ — مشکل، نتیجه، قیمت، اعتماد
   ========================================================================== */

/* ---- نوار اعتماد زیر هیرو ---- */
.trustbar {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 24px;
  align-items: center;
  margin-block-start: 24px;
  padding-block-start: 20px;
  border-block-start: 1px solid var(--line);
}
.trustbar span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .87rem;
  color: var(--text-2);
}
.trustbar svg { width: 16px; height: 16px; color: var(--brand); flex: none; }

/* ---- کارت مشکل ---- */
.pain {
  position: relative;
  background: linear-gradient(165deg, rgba(255, 90, 90, .05), rgba(255, 255, 255, .012) 45%), var(--surface);
  border: 1px solid rgba(255, 120, 120, .14);
  border-radius: var(--r-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.pain:hover { transform: translateY(-5px); border-color: rgba(255, 120, 120, .3); }
.pain__ic {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: rgba(255, 110, 110, .1);
  border: 1px solid rgba(255, 120, 120, .2);
  color: #ff8b8b;
  margin-block-end: 16px;
}
.pain__ic svg { width: 23px; height: 23px; }
.pain h3 { font-size: 1.05rem; margin-block-end: 8px; }
.pain p { color: var(--text-2); font-size: .93rem; line-height: 1.95; }

/* ---- قیمت ---- */
.price-card {
  max-width: 700px;
  margin-inline: auto;
  border-radius: var(--r-xl);
  padding: clamp(30px, 4vw, 48px);
  text-align: center;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(600px 280px at 50% 0%, rgba(33, 224, 107, .14), transparent 70%),
    linear-gradient(160deg, var(--surface-2), var(--bg-deep));
}
.price-card h3 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin-block-end: 12px; }
.price-list {
  display: grid;
  gap: 12px;
  text-align: start;
  max-width: 460px;
  margin: 26px auto 30px;
}
.price-list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: .95rem;
  color: var(--text-2);
  line-height: 1.9;
}
.price-list svg { width: 18px; height: 18px; color: var(--brand); flex: none; margin-block-start: 6px; }

/* ---- لوگوی بیزنس ---- */
.logo__sub { letter-spacing: .3em; }

/* ---- ریسپانسیو نسخه ۲ ---- */
@media (max-width: 860px) {
  .compare { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .trustbar { gap: 10px 18px; }
  .trustbar span { font-size: .84rem; }
}

/* دکمه‌های بلند در موبایل باید بشکنند، نه اینکه صفحه را پهن کنند */
@media (max-width: 700px) {
  .btn {
    white-space: normal;
    text-align: center;
    line-height: 1.7;
    max-width: 100%;
  }
  .btn--lg { padding-inline: 22px; }
}

/* ==========================================================================
   11) لوگوی رسمی
   ========================================================================== */
.logo__img { height: 38px; width: auto; display: block; }
.logo__img--biz { height: 46px; }
.footer .logo__img { height: 34px; }
.footer .logo__img--biz { height: 42px; }
.drawer .logo__img { height: 32px; }

@media (max-width: 640px) {
  .logo__img { height: 30px; }
  .logo__img--biz { height: 36px; }
}

/* ==========================================================================
   12) نسخه ۳ — مقایسه، امنیت، قیمت، نظرات، تعریف، داینامیک
   ========================================================================== */

/* ---- ریتم عمودی بازتر ---- */
:root { --section-y: clamp(70px, 9vw, 130px); }
.section-head { margin-block-end: clamp(42px, 6vw, 68px); }
.section-head h2 { margin-block-end: 14px; }
.section-head .lead { max-width: 58ch; margin-inline: auto; }
.card h3, .pain h3 { margin-block-end: 12px; }
.card p, .pain p { line-height: 2.05; }
.grid { gap: 22px; }

/* تیترها تک‌خطی بمانند */
h1, h2, h3, .h-display { text-wrap: balance; }
.h-display { font-size: clamp(1.6rem, 3.2vw, 2.55rem); line-height: 1.62; }
.h-display .line { display: block; white-space: nowrap; }
@media (max-width: 720px) { .h-display .line { white-space: normal; } }

/* ---- نوار پیشرفت اسکرول ---- */
.progress {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  z-index: 300;
  background: transparent;
  pointer-events: none;
}
.progress__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brand-mid), var(--brand-bright));
  box-shadow: 0 0 12px rgba(33, 224, 107, .8);
  transition: width .1s linear;
}

/* ---- نوار متحرک کسب‌وکارها ---- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(10, 22, 16, .4);
  padding-block: 16px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  gap: 42px;
  width: max-content;
  animation: slide 34s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-3);
  font-size: .95rem;
  font-weight: 600;
  white-space: nowrap;
}
.marquee span::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
  opacity: .7;
}
@keyframes slide { to { transform: translateX(50%); } }

/* ---- جدول مقایسه ---- */
.vs {
  max-width: 900px;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}
.vs__row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  align-items: stretch;
}
.vs__row + .vs__row { border-block-start: 1px solid var(--line); }
.vs__row > * { padding: 18px 20px; font-size: .95rem; line-height: 1.9; }
.vs__head > * { font-weight: 700; font-size: .92rem; background: rgba(255,255,255,.02); }
.vs__head .vs__mine { background: rgba(33, 224, 107, .1); color: var(--brand-bright); }
.vs__label { color: var(--text-2); }
.vs__other { color: var(--text-3); border-inline: 1px solid var(--line); }
.vs__mine { color: var(--text); font-weight: 600; background: rgba(33, 224, 107, .04); }
.vs__row > div { display: flex; align-items: center; gap: 9px; }
.vs__row svg { width: 17px; height: 17px; flex: none; }
.vs__other svg { color: #ff8b8b; }
.vs__mine svg { color: var(--brand); }
@media (max-width: 720px) {
  .vs__row { grid-template-columns: 1fr; }
  .vs__row > * { padding: 12px 16px; }
  .vs__other, .vs__mine { border-inline: 0; }
  .vs__label { font-weight: 700; color: var(--text); padding-block-end: 4px; }
  .vs__head { display: none; }
  .vs__other::before { content: "ربات کلیدواژه‌ای: "; color: var(--text-3); }
  .vs__mine::before  { content: "ایجنت‌یار: "; color: var(--brand); font-weight: 700; }
}

/* ---- بلوک امنیت ---- */
.safe {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin-inline: auto;
}
.safe__item {
  background: linear-gradient(165deg, rgba(33, 224, 107, .06), transparent 50%), var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  text-align: center;
}
.safe__ic {
  width: 52px; height: 52px;
  margin: 0 auto 18px;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  background: rgba(33, 224, 107, .12);
  border: 1px solid var(--line-strong);
  color: var(--brand);
}
.safe__ic svg { width: 26px; height: 26px; }
.safe__item h3 { font-size: 1.02rem; margin-block-end: 10px; }
.safe__item p { color: var(--text-2); font-size: .93rem; line-height: 2; }
@media (max-width: 860px) { .safe { grid-template-columns: 1fr; } }

/* ---- پلن‌های قیمت ---- */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: start;
  max-width: 1020px;
  margin-inline: auto;
}
.plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 32px 26px 28px;
  text-align: center;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.plan:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.plan--best {
  border-color: var(--brand);
  background:
    radial-gradient(420px 220px at 50% 0%, rgba(33, 224, 107, .16), transparent 70%),
    var(--surface-2);
  box-shadow: 0 0 0 1px rgba(33, 224, 107, .3), 0 24px 60px -34px rgba(33, 224, 107, .5);
  padding-block-start: 44px;
}
.plan__badge {
  position: absolute;
  inset-block-start: -14px;
  inset-inline-start: 50%;
  transform: translateX(50%);
  background: linear-gradient(135deg, var(--brand-bright), var(--brand-mid));
  color: var(--text-on-brand);
  font-size: .82rem;
  font-weight: 800;
  padding: 7px 20px;
  border-radius: var(--r-full);
  white-space: nowrap;
  box-shadow: var(--glow-brand);
}
.plan__term { font-size: 1.35rem; font-weight: 800; margin-block-end: 14px; }
.plan--best .plan__term { color: var(--brand-bright); }
.plan__was {
  color: var(--text-3);
  font-size: .95rem;
  text-decoration: line-through;
  text-decoration-color: #ff7a7a;
  text-decoration-thickness: 2px;
}
.plan__now {
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 800;
  line-height: 1.4;
  margin-block: 4px 2px;
}
.plan--best .plan__now { color: var(--brand-bright); }
.plan__unit { color: var(--text-2); font-size: .95rem; }
.plan__save {
  display: inline-block;
  margin-block-start: 16px;
  padding: 8px 16px;
  border-radius: var(--r-md);
  font-size: .88rem;
  font-weight: 700;
  background: rgba(255, 255, 255, .05);
  color: var(--text-2);
}
.plan--best .plan__save {
  background: linear-gradient(135deg, var(--brand-bright), var(--brand-mid));
  color: var(--text-on-brand);
}
.plan__note {
  margin-block-start: 16px;
  color: var(--text-3);
  font-size: .88rem;
  line-height: 1.9;
  min-height: 3.4em;
}
.plan .btn { margin-block-start: 18px; width: 100%; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 420px; } }

.plans-note {
  max-width: 1020px;
  margin: 26px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: rgba(33, 224, 107, .05);
  color: var(--text-2);
  font-size: .95rem;
  text-align: center;
}
.plans-note svg { width: 20px; height: 20px; color: var(--brand); flex: none; }

/* ---- نظرات ---- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 24px;
}
.quote p { color: var(--text-2); line-height: 2.1; font-size: .95rem; }
.quote__by { display: flex; align-items: center; gap: 12px; margin-block-start: 20px; }
.quote__av {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--brand-bright), var(--brand-deep));
  display: grid; place-items: center;
  font-weight: 800;
  color: var(--text-on-brand);
}
.quote__by b { display: block; font-size: .94rem; }
.quote__by span { color: var(--text-3); font-size: .84rem; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }

/* ---- تعریف ایجنت‌یار ---- */
.about-band {
  border-radius: var(--r-xl);
  padding: clamp(34px, 5vw, 56px);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(700px 320px at 50% 0%, rgba(33, 224, 107, .12), transparent 72%),
    linear-gradient(160deg, var(--surface-2), var(--bg-deep));
  text-align: center;
}
.about-band__lead {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 700;
  color: var(--brand-bright);
  margin-block: 10px 22px;
}
.about-band p {
  color: var(--text-2);
  max-width: 68ch;
  margin-inline: auto;
  line-height: 2.2;
}
.about-band p + p { margin-block-start: 16px; }

/* ---- نوار CTA چسبان موبایل ---- */
.sticky-cta {
  position: fixed;
  inset-inline: 0;
  inset-block-end: 0;
  z-index: 120;
  display: none;
  gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(5, 10, 7, .92);
  backdrop-filter: blur(14px);
  border-block-start: 1px solid var(--line-strong);
  transform: translateY(110%);
  transition: transform .35s var(--ease);
}
.sticky-cta.is-shown { transform: translateY(0); }
.sticky-cta .btn { flex: 1; padding-block: 13px; font-size: .95rem; }
@media (max-width: 860px) {
  .sticky-cta { display: flex; }
  body { padding-block-end: 4px; }
}

/* ---- اصلاح کارت‌ها: متن به لبه نچسبد ---- */
.card, .pain, .safe__item, .quote {
  padding-inline: clamp(22px, 2.4vw, 28px);
  text-align: start;
}
.card h3, .card p, .pain h3, .pain p { text-align: start; }
.safe__item { text-align: center; }
.step__num { margin-inline-start: 0; }

/* ==========================================================================
   13) نسخه ۴ — اصلاح پلن‌ها، مقایسه، امنیت، بلاگ و نظرات
   ========================================================================== */

/* ---- پلن‌ها: هم‌ارتفاع، دکمه‌ها هم‌تراز ---- */
.plans { align-items: stretch; }
.plan {
  display: flex;
  flex-direction: column;
  padding: 38px 26px 28px;
  overflow: visible;
}
.plan--best { padding-block-start: 38px; }
.plan__note { min-height: 0; flex: 1 1 auto; margin-block-end: 20px; }
.plan .btn { margin-block-start: auto; width: 100%; }
.plan__badge { inset-block-start: -15px; }

/* ---- امنیت: کارت‌های سنگین‌تر ---- */
.safe__item {
  position: relative;
  padding: 34px 26px 30px;
  text-align: start;
}
.safe__item::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 22%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: .7;
}
.safe__ic { margin: 0 0 20px; }
.safe__item h3 { font-size: 1.08rem; }
.safe__note {
  max-width: 760px;
  margin: 30px auto 0;
  text-align: center;
  color: var(--text-2);
  font-size: .97rem;
  line-height: 2.1;
}

/* ---- بلاگ: کاور و متا ---- */
.post__media { aspect-ratio: 16 / 10; background: var(--bg-deep); }
.post__badge { inset-block-start: 14px; inset-inline-start: 14px; }
.post__author {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
  font-size: .82rem;
  margin-block-start: 4px;
}
.post__author img { width: 20px; height: auto; opacity: .9; }

/* ---- صفحه مقاله ---- */
.article__cover { position: relative; margin-block-end: 30px; }
.article__byline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-block-start: 18px;
  color: var(--text-3);
  font-size: .88rem;
}
.article__byline .who {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-weight: 600;
}
.article__byline .who img { width: 24px; height: 24px; border-radius: 50%; }
.article__byline .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-3); }

.toc {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: 22px 24px;
  margin-block-end: 34px;
}
.toc h4 { font-size: .95rem; margin-block-end: 14px; color: var(--brand-bright); }
.toc ol { display: grid; gap: 9px; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: flex;
  gap: 10px;
  color: var(--text-2);
  font-size: .94rem;
  transition: color var(--dur) var(--ease);
}
.toc a::before {
  content: counter(toc) ".";
  color: var(--brand);
  font-weight: 700;
  flex: none;
}
.toc a:hover { color: var(--text); }

.share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-block-start: 34px; padding-block-start: 24px; border-block-start: 1px solid var(--line); }
.share span { color: var(--text-3); font-size: .9rem; }
.share a {
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--text-2);
  transition: all var(--dur) var(--ease);
}
.share a svg { width: 17px; height: 17px; }
.share a:hover { color: var(--brand); border-color: var(--brand); transform: translateY(-2px); }

/* ---- نظرات مقاله ---- */
.comments { margin-block-start: 52px; }
.comments__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-block-end: 22px;
}
.comments__head h3 { font-size: 1.2rem; }
.comments__count {
  background: rgba(33, 224, 107, .12);
  color: var(--brand-bright);
  border: 1px solid var(--line-strong);
  padding: 5px 14px;
  border-radius: var(--r-full);
  font-size: .85rem;
  font-weight: 700;
}
.comments__empty {
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  padding: 34px 24px;
  text-align: center;
  color: var(--text-2);
  background: rgba(33, 224, 107, .03);
  margin-block-end: 26px;
}
.comments__empty b { display: block; color: var(--text); margin-block-end: 8px; }
.comment {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: 20px 22px;
  margin-block-end: 14px;
}
.comment__top { display: flex; align-items: center; gap: 12px; margin-block-end: 12px; }
.comment__av {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--brand-bright), var(--brand-deep));
  display: grid; place-items: center;
  font-weight: 800;
  color: var(--text-on-brand);
}
.comment__top b { font-size: .94rem; }
.comment__top time { display: block; color: var(--text-3); font-size: .8rem; }
.comment p { color: var(--text-2); font-size: .94rem; line-height: 2.05; }

.comment-form {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--surface-2);
  padding: 26px 24px;
}
.comment-form h4 { font-size: 1.02rem; margin-block-end: 16px; }


/* ==========================================================================
   ۱۴. نسخه ۵ — قبل/بعد، جدول مقایسه، دستیارهای فشرده، پنل شش‌ماهه
   ========================================================================== */

.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;
}

/* ---- قبل و بعد: ردیف‌های جفت‌شده ---- */
.shift {
  max-width: 960px;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  overflow: hidden;
}
.shift__head {
  display: grid;
  grid-template-columns: 1fr 64px 1fr;
  align-items: center;
  padding: 18px 22px;
  border-block-end: 1px solid var(--line);
  background: rgba(255, 255, 255, .015);
}
.shift__label {
  justify-self: start;
  font-size: .8rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--r-full);
}
.shift__label--before { background: rgba(255, 110, 110, .12); color: #ff9b9b; }
.shift__label--after  { background: rgba(33, 224, 107, .15); color: var(--brand-bright); }

.shift__row {
  display: grid;
  grid-template-columns: 1fr 64px 1fr;
  align-items: stretch;
  border-block-start: 1px solid var(--line);
  transition: background var(--dur) var(--ease);
}
.shift__row:first-of-type { border-block-start: 0; }
.shift__row:hover { background: rgba(33, 224, 107, .04); }

.shift__cell {
  padding: 22px 24px;
  font-size: .95rem;
  line-height: 1.95;
  display: flex;
  align-items: center;
}
.shift__cell--before { color: var(--text-3); }
.shift__cell--after {
  color: var(--text);
  font-weight: 600;
  background: linear-gradient(90deg, rgba(33, 224, 107, .07), transparent);
}
.shift__mid {
  display: grid;
  place-items: center;
  color: var(--brand);
  position: relative;
}
.shift__mid::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(33, 224, 107, .35), transparent);
}
.shift__mid svg { width: 20px; height: 20px; position: relative; }
.shift__row:hover .shift__mid svg { transform: translateX(-4px); transition: transform var(--dur) var(--ease); }

@media (max-width: 760px) {
  .shift__head { display: none; }
  .shift__row { grid-template-columns: 1fr; padding: 4px 0; }
  .shift__cell { padding: 14px 20px; }
  .shift__cell--before { padding-block-end: 6px; }
  .shift__cell--before::before {
    content: "قبل از ایجنت‌یار";
    flex: none;
    margin-inline-end: 10px;
    font-size: .68rem; font-weight: 700;
    color: #ff9b9b;
    background: rgba(255, 110, 110, .12);
    padding: 3px 10px; border-radius: var(--r-full);
  }
  .shift__cell--after { background: none; padding-block-start: 6px; }
  .shift__cell--after::before {
    content: "با ایجنت‌یار";
    flex: none;
    margin-inline-end: 10px;
    font-size: .68rem; font-weight: 700;
    color: var(--brand-bright);
    background: rgba(33, 224, 107, .15);
    padding: 3px 10px; border-radius: var(--r-full);
  }
  .shift__mid { display: none; }
}

/* ---- جدول ربات در برابر دستیار ---- */
.cmp-wrap {
  max-width: 980px;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  overflow: hidden;
}
.cmp { width: 100%; border-collapse: collapse; }
.cmp thead th {
  padding: 18px 20px;
  font-size: .88rem;
  font-weight: 700;
  text-align: start;
  border-block-end: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .02);
}
.cmp__case { color: var(--text-2); }
.cmp__bad  { color: #ff9b9b; }
.cmp__good { background: rgba(33, 224, 107, .07) !important; }
.cmp__badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--brand-bright), var(--brand-mid));
  color: var(--text-on-brand);
  padding: 5px 14px;
  border-radius: var(--r-full);
  font-size: .82rem;
  font-weight: 800;
}
.cmp tbody tr { border-block-start: 1px solid var(--line); }
.cmp tbody tr:hover { background: rgba(255, 255, 255, .015); }
.cmp tbody th {
  padding: 20px;
  text-align: start;
  font-size: .94rem;
  font-weight: 700;
  color: var(--text);
  width: 26%;
  vertical-align: middle;
}
.cmp tbody td {
  padding: 20px;
  font-size: .92rem;
  line-height: 1.9;
  color: var(--text-3);
  vertical-align: middle;
}
.cmp tbody td:last-child {
  color: var(--text);
  font-weight: 500;
  background: rgba(33, 224, 107, .05);
}
.cmp i {
  display: inline-grid;
  place-items: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  margin-inline-end: 10px;
  vertical-align: -4px;
  font-style: normal;
  font-size: .72rem;
  font-weight: 800;
}
.cmp i.x { background: rgba(255, 110, 110, .14); color: #ff8b8b; }
.cmp i.v { background: rgba(33, 224, 107, .18); color: var(--brand-bright); }
.cmp i.x::before { content: "\2715"; }
.cmp i.v::before { content: "\2713"; }

@media (max-width: 800px) {
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; width: auto; }
  .cmp thead { display: none; }
  .cmp tbody tr { padding: 6px 0 16px; border-block-start: 1px solid var(--line); }
  .cmp tbody th { width: auto; padding: 18px 20px 10px; font-size: 1rem; line-height: 1.7; }
  .cmp tbody td { padding: 10px 20px; }
  .cmp tbody td::before {
    content: attr(data-th);
    display: block;
    font-size: .7rem;
    font-weight: 700;
    margin-block-end: 6px;
    color: var(--text-3);
  }
  .cmp tbody td:last-child { border-radius: var(--r-md); margin-inline: 14px; padding-inline: 14px; }
  .cmp tbody td:last-child::before { color: var(--brand-bright); }
}

/* ---- دستیارها: فهرست فشرده ---- */
.mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 1020px;
  margin-inline: auto;
}
.mini__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.mini__item:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.mini__item > svg {
  width: 22px; height: 22px;
  flex: none;
  color: var(--brand);
  margin-block-start: 3px;
}
.mini__item b { display: block; font-size: .98rem; font-weight: 700; margin-block-end: 6px; }
.mini__item span { display: block; color: var(--text-2); font-size: .89rem; line-height: 1.9; }
@media (max-width: 900px) { .mini { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .mini { grid-template-columns: 1fr; } }

/* ---- پنل «چرا شش‌ماهه» روی کارت پلن ---- */
/* چون پنل روی کل کارت می‌نشیند، بج باید داخل کارت باشد نه بیرون آن */
.plan--best { overflow: hidden; padding-block-start: 64px; }
.plan--best .plan__badge { inset-block-start: 18px; }
/* دکمه‌ی راهنما مطلق است تا ارتفاع کارت و هم‌ترازی دکمه‌ها را به‌هم نزند */
.plan { padding-block-end: 60px; }
.plan__trigger {
  position: absolute;
  inset-block-end: 16px;
  inset-inline: 26px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-full);
  background: transparent;
  color: var(--brand-bright);
  font: inherit;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--dur) var(--ease);
}
.plan__trigger:hover { background: rgba(33, 224, 107, .1); }
.plan__trigger svg { width: 15px; height: 15px; }

.plan__why {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  background: linear-gradient(165deg, #0a1a10, #050d08 70%);
  border: 1px solid var(--brand);
  overflow-y: auto;
  text-align: start;
  transform: translateY(101%);
  opacity: 0;
  pointer-events: none;
  transition: transform .42s var(--ease), opacity .3s var(--ease);
}
.plan--best:hover .plan__why,
.plan--best:focus-within .plan__why,
.plan--best.is-open .plan__why {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.plan__why-in { padding: 20px 20px 22px; }
.plan__why-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan__why-head h3 { font-size: 1.02rem; color: var(--brand-bright); }
.plan__why-close {
  border: 0; background: rgba(255, 255, 255, .06);
  color: var(--text-2);
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer; flex: none;
}
.plan__why-close svg { width: 15px; height: 15px; }
.plan__why-list { display: grid; gap: 8px; margin-block: 14px 16px; }
.plan__why-list li {
  display: flex;
  gap: 9px;
  font-size: .85rem;
  line-height: 1.7;
  color: var(--text-2);
}
.plan__why-list li::before {
  content: "\2713";
  color: var(--brand);
  font-weight: 800;
  flex: none;
}
.plan__why .btn { width: 100%; }

@media (prefers-reduced-motion: reduce) {
  .plan__why { transition: none; }
}

/* ---- نوار تماس فشرده ---- */
.contact-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin-block-start: 30px;
  padding-block-start: 24px;
  border-block-start: 1px solid var(--line);
}
.contact-row a {
  color: var(--text-2);
  font-size: .9rem;
  transition: color var(--dur) var(--ease);
}
.contact-row a:hover { color: var(--brand-bright); }

/* ---- هیرو بیزنس: فاصله‌ی استاندارد بین خطوط ---- */
.hero--business .h-display { line-height: 1.85; }
.hero--business .h-display .line + .line { margin-block-start: 6px; }
.hero--business .lead {
  margin-block-start: 26px;
  line-height: 2.15;
  max-width: 54ch;
}
.hero--business .btn-row { margin-block-start: 34px; }
.hero--business .stats { margin-block-start: 44px; }

/* ---- تب برگشت به صفحه اصلی در هدر بیزنس ---- */
.nav__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-full);
  color: var(--brand-bright) !important;
}
.nav__back:hover { background: rgba(33, 224, 107, .1); }
.nav__back svg { width: 15px; height: 15px; }
