/* =====================================================================
   دیار — لندینگ پیج | style.css
   طراحی مدرن، راست‌چین، شیشه‌ای و کاملاً ریسپانسیو
   پالت رنگ هماهنگ با خود اپلیکیشن: بنفش/ویولت + فیروزه‌ای + تیره
   ===================================================================== */

/* فونت محلی IRANSansX (FaNum) — همان فونت اپ و پنل. سه وزن موجود است؛
   matcher مرورگر نزدیک‌ترین وزن را برای 500/600/800/900 انتخاب می‌کند. */
@font-face {
  font-family: "IRANSansX";
  src: url("assets/fonts/IRANSansXFaNum-ThinD4.ttf") format("truetype");
  font-weight: 100 300; font-display: swap;
}
@font-face {
  font-family: "IRANSansX";
  src: url("assets/fonts/IRANSansXFaNum-RegularD4.ttf") format("truetype");
  font-weight: 400 500; font-display: swap;
}
@font-face {
  font-family: "IRANSansX";
  src: url("assets/fonts/IRANSansXFaNum-DemiBoldD4.ttf") format("truetype");
  font-weight: 600 900; font-display: swap;
}

:root {
  /* رنگ‌های برند */
  --violet:      #7A5BFF;
  --violet-deep: #5B3FBF;
  --indigo:      #2C1A66;
  --teal:        #2DE2C5;   /* فیروزه‌ای */
  --pink:        #FF6FAE;
  --ink:         #0B0820;   /* مشکی بنفش‌فام (پس‌زمینه) */
  --ink-2:       #120d2e;
  --white:       #ffffff;

  /* متن */
  --text:        #ECE9FB;
  --text-soft:   rgba(236, 233, 251, 0.66);
  --text-faint:  rgba(236, 233, 251, 0.42);

  /* سطوح شیشه‌ای */
  --glass:       rgba(255, 255, 255, 0.05);
  --glass-2:     rgba(255, 255, 255, 0.08);
  --stroke:      rgba(255, 255, 255, 0.10);
  --stroke-2:    rgba(122, 91, 255, 0.30);

  /* گرادینت‌ها */
  --grad-brand:  linear-gradient(135deg, #7A5BFF 0%, #5B3FBF 55%, #2DE2C5 130%);
  --grad-text:   linear-gradient(100deg, #9d86ff 0%, #6ff0dd 100%);
  --grad-cta:    linear-gradient(135deg, #8a6bff, #5B3FBF);

  --radius:      22px;
  --radius-sm:   14px;
  --maxw:        1180px;
  --ease:        cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- پایه ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "IRANSansX", system-ui, "Segoe UI", Tahoma, sans-serif;
  background: var(--ink);
  color: var(--text);
  line-height: 1.85;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

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

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- پس‌زمینه‌ی اورورا (گوی‌های نرم شناور) ---------- */
.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(900px 600px at 85% -5%, rgba(122,91,255,0.18), transparent 60%),
    radial-gradient(800px 600px at 10% 110%, rgba(45,226,197,0.10), transparent 60%),
    var(--ink);
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  will-change: transform;
}
.orb--1 { width: 460px; height: 460px; top: -120px; inset-inline-start: -80px;
  background: radial-gradient(circle, var(--violet), transparent 65%); animation: float1 16s ease-in-out infinite; }
.orb--2 { width: 420px; height: 420px; bottom: -140px; inset-inline-end: -60px;
  background: radial-gradient(circle, var(--teal), transparent 65%); animation: float2 19s ease-in-out infinite; }
.orb--3 { width: 380px; height: 380px; top: 40%; inset-inline-start: 55%;
  background: radial-gradient(circle, var(--pink), transparent 65%); opacity: 0.28; animation: float1 22s ease-in-out infinite reverse; }

@keyframes float1 { 0%,100%{ transform: translate(0,0) scale(1);} 50%{ transform: translate(40px,30px) scale(1.08);} }
@keyframes float2 { 0%,100%{ transform: translate(0,0) scale(1);} 50%{ transform: translate(-40px,-30px) scale(1.1);} }

/* ---------- نویگیشن ---------- */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  transition: background .35s var(--ease), backdrop-filter .35s, border-color .35s, padding .35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 8, 32, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--stroke);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; padding-block: 16px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand__mark {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 12px; color: #fff; background: var(--grad-brand);
  box-shadow: 0 8px 22px rgba(122,91,255,0.45);
}
.brand__mark svg { width: 20px; height: 20px; }
.brand__name { font-size: 1.25rem; letter-spacing: .3px; }

.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { color: var(--text-soft); font-weight: 600; font-size: .98rem; transition: color .25s; }
.nav__links a:hover { color: var(--text); }
.nav__cta {
  color: #fff !important; background: var(--grad-cta);
  padding: 10px 20px; border-radius: 12px;
  box-shadow: 0 10px 24px rgba(91,63,191,0.4);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.nav__cta:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(91,63,191,0.55); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 26px; height: 2.5px; background: var(--text); border-radius: 3px; transition: .3s var(--ease); }
.nav__toggle.open span:nth-child(1){ transform: translateY(7.5px) rotate(45deg); }
.nav__toggle.open span:nth-child(2){ opacity: 0; }
.nav__toggle.open span:nth-child(3){ transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- دکمه‌ها ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: inherit; font-weight: 700; font-size: 1rem;
  padding: 14px 26px; border-radius: 14px; border: 0; cursor: pointer;
  position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { color: #fff; background: var(--grad-cta); box-shadow: 0 14px 30px rgba(91,63,191,0.45); }
.btn--primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(91,63,191,0.6); }
.btn--primary:hover::after { transform: translateX(120%); }
.btn--ghost {
  color: var(--text); background: var(--glass-2);
  border: 1px solid var(--stroke); backdrop-filter: blur(8px);
}
.btn--ghost:hover { transform: translateY(-3px); border-color: var(--stroke-2); background: rgba(122,91,255,0.14); }
.btn--lg { padding: 17px 34px; font-size: 1.08rem; }

/* ---------- بخش Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding-top: 110px; padding-bottom: 60px; overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .85; }
.hero__grid {
  position: absolute; inset: 0; z-index: 0; opacity: .25;
  background-image:
    linear-gradient(rgba(122,91,255,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122,91,255,.10) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(circle at 60% 35%, #000 0%, transparent 75%);
  mask-image: radial-gradient(circle at 60% 35%, #000 0%, transparent 75%);
}
.hero__inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 40px;
}

.badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px; border-radius: 50px;
  background: var(--glass-2); border: 1px solid var(--stroke);
  font-size: .9rem; font-weight: 600; color: var(--text-soft);
  backdrop-filter: blur(8px);
}
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(45,226,197,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(45,226,197,.5)} 70%{box-shadow:0 0 0 9px rgba(45,226,197,0)} 100%{box-shadow:0 0 0 0 rgba(45,226,197,0)} }

.hero__title { font-size: clamp(2.1rem, 5.4vw, 3.7rem); font-weight: 900; line-height: 1.3; margin: 20px 0 16px; letter-spacing: -.5px; }
.hero__title .grad-text { display: block; }
.hero__sub { font-size: clamp(1rem, 1.6vw, 1.18rem); color: var(--text-soft); max-width: 33em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero__stats { display: flex; align-items: center; gap: 22px; margin-top: 38px; flex-wrap: wrap; }
.stat b { display: block; font-size: 1.5rem; font-weight: 900; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: .85rem; color: var(--text-faint); }
.stat-divider { width: 1px; height: 34px; background: var(--stroke); }

/* موکاپ گوشی */
.hero__mockup { position: relative; display: grid; place-items: center; }
.phone {
  position: relative; width: 290px; height: 590px;
  background: linear-gradient(160deg, #1a1340, #0d0a24);
  border-radius: 42px; padding: 12px;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 40px 90px rgba(0,0,0,.55), inset 0 0 0 2px rgba(255,255,255,.04);
  animation: floatPhone 6s ease-in-out infinite;
  will-change: transform;
}
@keyframes floatPhone { 0%,100%{ transform: translateY(0) rotate(-1deg);} 50%{ transform: translateY(-18px) rotate(1deg);} }
.phone__glow {
  position: absolute; inset: -40px; z-index: -1; border-radius: 60px;
  background: radial-gradient(circle at 50% 40%, rgba(122,91,255,.55), transparent 60%);
  filter: blur(30px);
}
.phone__notch { position: absolute; top: 20px; inset-inline: 0; margin-inline: auto; width: 120px; height: 22px; background: #07060f; border-radius: 0 0 16px 16px; z-index: 3; }
.phone__screen { width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: linear-gradient(180deg, #15103a, #0b0820); }

.chat { display: flex; flex-direction: column; height: 100%; }
.chat__head { display: flex; align-items: center; gap: 10px; padding: 26px 16px 14px; border-bottom: 1px solid var(--stroke); }
.chat__avatar { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 900; color: #fff; background: var(--grad-brand); }
.chat__name { font-weight: 800; font-size: .95rem; }
.chat__status { font-size: .72rem; color: var(--teal); display: flex; align-items: center; gap: 5px; }
.chat__status span { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.chat__body { flex: 1; padding: 16px 14px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.bubble { max-width: 85%; padding: 11px 14px; font-size: .82rem; line-height: 1.9; border-radius: 16px; }
.bubble--user { align-self: flex-start; background: var(--grad-cta); color: #fff; border-end-start-radius: 5px; }
.bubble--ai { align-self: flex-end; background: rgba(255,255,255,.07); border: 1px solid var(--stroke); color: var(--text); border-end-end-radius: 5px; }
.bubble--typing { align-self: flex-end; display: inline-flex; gap: 5px; padding: 14px; background: rgba(255,255,255,.07); border: 1px solid var(--stroke); border-radius: 16px; }
.bubble--typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--text-soft); animation: typing 1.3s infinite; }
.bubble--typing span:nth-child(2){ animation-delay: .2s; } .bubble--typing span:nth-child(3){ animation-delay: .4s; }
@keyframes typing { 0%,60%,100%{ transform: translateY(0); opacity:.4 } 30%{ transform: translateY(-5px); opacity:1 } }
.chat__input { display: flex; align-items: center; justify-content: space-between; margin: 10px 12px 16px; padding: 11px 14px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid var(--stroke); color: var(--text-faint); font-size: .8rem; }
.send { width: 26px; height: 26px; border-radius: 9px; background: var(--grad-cta); display: inline-block; position: relative; }
.send::after { content: "›"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 900; transform: rotate(180deg); }

.float-chip {
  position: absolute; padding: 9px 15px; border-radius: 50px;
  background: var(--glass-2); border: 1px solid var(--stroke);
  backdrop-filter: blur(10px); font-size: .82rem; font-weight: 700; white-space: nowrap;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
.float-chip--a { top: 12%; inset-inline-start: -6%; animation: chip 5s ease-in-out infinite; }
.float-chip--b { top: 46%; inset-inline-end: -10%; color: var(--teal); animation: chip 6s ease-in-out infinite .6s; }
.float-chip--c { bottom: 12%; inset-inline-start: 0%; color: var(--pink); animation: chip 5.5s ease-in-out infinite 1.1s; }
@keyframes chip { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-14px);} }

.scroll-cue { position: absolute; bottom: 26px; inset-inline: 0; margin-inline: auto; width: 26px; height: 42px; border: 2px solid var(--stroke-2); border-radius: 16px; display: grid; justify-items: center; padding-top: 8px; z-index: 2; }
.scroll-cue span { width: 5px; height: 9px; border-radius: 3px; background: var(--violet); animation: cue 1.6s infinite; }
@keyframes cue { 0%{ transform: translateY(0); opacity: 1 } 70%{ transform: translateY(14px); opacity: 0 } 100%{ opacity: 0 } }

/* ---------- بخش‌های عمومی ---------- */
.section { position: relative; padding: 100px 0; }
.section--alt { background: linear-gradient(180deg, transparent, rgba(122,91,255,.04), transparent); }

.sec-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.sec-kicker {
  display: inline-block; font-size: .85rem; font-weight: 700; color: var(--teal);
  padding: 6px 16px; border-radius: 50px; margin-bottom: 16px;
  background: rgba(45,226,197,.10); border: 1px solid rgba(45,226,197,.22);
}
.sec-title { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 900; line-height: 1.4; letter-spacing: -.4px; }
.sec-desc { color: var(--text-soft); margin-top: 14px; font-size: 1.05rem; }

/* کارت شیشه‌ای پایه */
.card {
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s, background .4s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(122,91,255,.16), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.card:hover { transform: translateY(-8px); border-color: var(--stroke-2); box-shadow: 0 24px 50px rgba(0,0,0,.4); }
.card:hover::before { opacity: 1; }

/* امکانات */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feat { padding: 28px 22px; }
.feat__icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  font-size: 1.6rem; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(122,91,255,.22), rgba(45,226,197,.14));
  border: 1px solid var(--stroke);
}
.feat h3 { font-size: 1.12rem; font-weight: 800; margin-bottom: 8px; }
.feat p { color: var(--text-soft); font-size: .94rem; }

/* پرسوناها */
.persona-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.persona { padding: 30px 24px; }
.persona__top { font-size: 2.2rem; margin-bottom: 14px; }
.persona h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.persona > p { color: var(--text-soft); font-size: .94rem; margin-bottom: 16px; }
.persona ul { display: flex; flex-direction: column; gap: 9px; }
.persona li { position: relative; padding-inline-start: 22px; font-size: .9rem; color: var(--text-soft); }
.persona li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--teal); font-weight: 900; }

/* چرا دیار */
.why { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
.why .sec-head { text-align: start; margin: 0 0 30px; }
.why__list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.why__item { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--radius-sm); background: var(--glass); border: 1px solid var(--stroke); transition: transform .35s var(--ease), border-color .35s; }
.why__item:hover { transform: translateY(-4px); border-color: var(--stroke-2); }
.why__item i { font-size: 1.5rem; flex-shrink: 0; }
.why__item b { display: block; font-size: 1rem; }
.why__item span { font-size: .86rem; color: var(--text-soft); }

/* گوی سه‌بعدی */
.why__visual { display: grid; place-items: center; }
.orb-3d { position: relative; width: 320px; height: 320px; display: grid; place-items: center; }
.orb-3d__core {
  width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #b9a6ff, var(--violet-deep) 55%, #1b1147 100%);
  box-shadow: 0 0 70px rgba(122,91,255,.6), inset -16px -16px 40px rgba(0,0,0,.5), inset 12px 12px 30px rgba(255,255,255,.25);
  animation: corePulse 4s ease-in-out infinite;
}
@keyframes corePulse { 0%,100%{ transform: scale(1);} 50%{ transform: scale(1.07);} }
.ring { position: absolute; border-radius: 50%; border: 1px solid rgba(122,91,255,.35); }
.ring--1 { width: 220px; height: 220px; border-style: dashed; animation: spin 18s linear infinite; }
.ring--2 { width: 280px; height: 280px; border-color: rgba(45,226,197,.3); animation: spin 26s linear infinite reverse; }
.ring--3 { width: 320px; height: 320px; border-color: rgba(255,111,174,.22); animation: spin 34s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.spark { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 16px var(--teal); }
.s1 { top: 4%; inset-inline-start: 50%; } .s2 { top: 50%; inset-inline-end: 2%; background: var(--pink); box-shadow: 0 0 16px var(--pink); } .s3 { bottom: 6%; inset-inline-start: 18%; background: var(--violet); box-shadow: 0 0 16px var(--violet); }
.orb-3d .s1 { animation: spin 18s linear infinite; transform-origin: 0 156px; }
.orb-3d .s2 { animation: spin 26s linear infinite reverse; transform-origin: -136px 0; }
.orb-3d .s3 { animation: spin 34s linear infinite; transform-origin: 110px -140px; }

/* مراحل */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps__line { position: absolute; top: 34px; inset-inline: 6%; height: 2px; background: var(--stroke); border-radius: 2px; }
.steps__line span { display: block; height: 100%; width: 0; background: var(--grad-brand); border-radius: 2px; transition: width .1s linear; }
.step { text-align: center; padding: 0 10px; }
.step__num {
  width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 20px;
  display: grid; place-items: center; font-size: 1.5rem; font-weight: 900; color: #fff;
  background: var(--grad-cta); border: 4px solid var(--ink);
  box-shadow: 0 12px 30px rgba(91,63,191,.45); position: relative; z-index: 2;
}
.step h3 { font-size: 1.12rem; font-weight: 800; margin-bottom: 6px; }
.step p { color: var(--text-soft); font-size: .92rem; }

/* نمونه‌ها */
.samples { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 880px; margin-inline: auto; }
.sample { display: flex; }
.sample--ai { justify-content: flex-end; }
.sample__q {
  display: inline-block; padding: 16px 20px; border-radius: 18px; font-size: 1rem; font-weight: 600;
  background: var(--glass-2); border: 1px solid var(--stroke); backdrop-filter: blur(10px);
  border-end-start-radius: 5px;
}
.sample--ai .sample__q { background: linear-gradient(135deg, rgba(122,91,255,.20), rgba(45,226,197,.12)); border-color: var(--stroke-2); border-end-start-radius: 18px; border-end-end-radius: 5px; }

/* CTA پایانی */
.cta { position: relative; padding: 110px 0; overflow: hidden; }
.cta__bg { position: absolute; inset: 0; z-index: 0; }
.cta__bg .orb--1 { width: 500px; height: 500px; top: -180px; inset-inline-start: 10%; }
.cta__bg .orb--2 { width: 420px; height: 420px; bottom: -180px; inset-inline-end: 8%; }
.cta__inner {
  position: relative; z-index: 2; text-align: center; max-width: 760px; margin-inline: auto;
  padding: 56px 32px; border-radius: 32px;
  background: var(--glass); border: 1px solid var(--stroke); backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
}
.cta__title { font-size: clamp(1.9rem, 4.4vw, 3rem); font-weight: 900; line-height: 1.35; }
.cta__sub { color: var(--text-soft); margin: 16px auto 30px; max-width: 40em; font-size: 1.08rem; }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* فوتر */
.footer { border-top: 1px solid var(--stroke); padding: 50px 0 36px; position: relative; }
.footer__inner { display: grid; place-items: center; gap: 16px; text-align: center; }
.footer__tag { color: var(--text-soft); }
.footer__links { display: flex; gap: 24px; }
.footer__links a { color: var(--text-soft); font-weight: 600; transition: color .25s; }
.footer__links a:hover { color: var(--text); }
.footer__copy { color: var(--text-faint); font-size: .85rem; }

/* ---------- حالت اولیه‌ی انیمیشن اسکرول (وقتی JS فعال است) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(38px); }
.js [data-anim] { opacity: 0; }

/* =====================================================================
   ریسپانسیو
   ===================================================================== */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 50px; }
  .hero__sub { margin-inline: auto; }
  .hero__actions, .hero__stats { justify-content: center; }
  .hero__mockup { order: -1; }
  .features-grid, .persona-grid { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: 1fr; }
  .why .sec-head { text-align: center; }
  .why__visual { order: -1; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
  .steps__line { display: none; }
}

@media (max-width: 640px) {
  .container { padding-inline: 18px; }
  .nav__links {
    position: fixed; inset-inline: 14px; top: 74px;
    flex-direction: column; align-items: stretch; gap: 6px; padding: 14px;
    background: rgba(18, 13, 46, 0.96); border: 1px solid var(--stroke); border-radius: 18px;
    backdrop-filter: blur(18px);
    transform: translateY(-12px) scale(.98); opacity: 0; pointer-events: none;
    transition: .3s var(--ease);
  }
  .nav__links.open { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 12px 14px; border-radius: 12px; }
  .nav__links a:hover { background: var(--glass-2); }
  .nav__cta { text-align: center; }
  .nav__toggle { display: flex; }

  .section { padding: 72px 0; }
  .features-grid, .persona-grid, .samples, .why__list { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero__stats { gap: 14px; }
  .stat b { font-size: 1.25rem; }
  .float-chip--a { inset-inline-start: 0; } .float-chip--b { inset-inline-end: -4%; }
  .cta__inner { padding: 40px 22px; }
  .btn { width: 100%; justify-content: center; }
  .hero__actions .btn, .cta__actions .btn { flex: 1 1 auto; }
}

/* ---------- احترام به ترجیح کاهش حرکت ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .15s !important; }
  html { scroll-behavior: auto; }
  .js [data-reveal], .js [data-anim] { opacity: 1 !important; transform: none !important; }
}
