/* نماکسب: سایت استاتیک. تم روشن/تیره خودکار از prefers-color-scheme.
   شعاع گوشه‌ها: کارت و قاب ۱۶px، دکمه‌ها کاملاً گرد (pill). */

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

:root {
  --bg: #f3f6f5;
  --bg-2: #e9efed;
  --surface: #fcfdfd;
  --ink: #0d1b24;
  --ink-2: #33444e;
  --muted: #56666f;
  --line: rgba(13, 27, 36, .10);
  --accent: #0b7a55;
  --accent-ink: #f6fffa;
  --accent-soft: #dff1e9;
  --gold: #f2b928;
  --shadow: 0 1px 2px rgba(11, 60, 45, .06), 0 12px 32px -12px rgba(11, 60, 45, .18);
  --r: 16px;
  --pad: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07121a;
    --bg-2: #0b1923;
    --surface: #0e1e29;
    --ink: #e8f0f3;
    --ink-2: #b9c7ce;
    --muted: #8fa1aa;
    --line: rgba(232, 240, 243, .10);
    --accent: #2ee59d;
    --accent-ink: #04211a;
    --accent-soft: rgba(46, 229, 157, .10);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Vazirmatn", Tahoma, system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.35; margin: 0; font-weight: 800; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.icon { width: 1.4em; height: 1.4em; flex: none; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: 16px; top: 16px; z-index: 30; background: var(--surface); padding: 8px 16px; border-radius: 999px; }

/* ---------- دکمه‌ها ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  font-weight: 700; font-size: 1rem;
  text-decoration: none; white-space: nowrap;
  border: 1px solid transparent;
  transition: transform .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); }

/* ---------- ناوبری ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 2rem; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 800; font-size: 1.2rem; }
.brand img { width: 34px; height: 34px; }
.brand b { color: var(--accent); font-weight: 800; }
.nav ul { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; margin-inline-start: auto; }
.nav ul a { text-decoration: none; color: var(--ink-2); font-weight: 500; }
.nav ul a:hover { color: var(--ink); }
.nav .btn { padding: .55rem 1.2rem; font-size: .95rem; }
@media (max-width: 860px) {
  .nav ul { display: none; }
  .nav .btn { margin-inline-start: auto; }
}

/* ---------- قهرمان ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 6vw, 5rem); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .9rem; font-weight: 700; color: var(--accent);
  background: var(--accent-soft);
  padding: .3rem .9rem; border-radius: 999px;
  margin-bottom: 1.25rem;
}
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); letter-spacing: -.01em; }
.hero h1 b { color: var(--accent); font-weight: 900; }
.hero p { margin-top: 1.25rem; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 34ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.phone {
  justify-self: center;
  width: min(300px, 78vw);
  aspect-ratio: 9 / 19;
  border-radius: 44px;
  padding: 10px;
  background: #0b141b;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, .08);
  rotate: -4deg;
}
.phone .screen {
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(165deg, #0b7a55 0%, #0a5c43 55%, #07121a 100%);
  display: grid; place-items: center;
}
.phone .screen > img { width: 100%; height: 100%; object-fit: cover; }
.splash { text-align: center; color: #f6fffa; }
.splash img { width: 72px; height: 72px; margin: 0 auto 1rem; }
.splash strong { display: block; font-size: 1.6rem; font-weight: 800; }
.splash span { opacity: .75; font-size: .95rem; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .phone { width: min(240px, 64vw); rotate: 0deg; }
}

/* ---------- بیان مسئله ---------- */
.problem { padding-block: clamp(3rem, 8vw, 6rem); background: var(--bg-2); }
.problem h2 { font-size: clamp(1.6rem, 3.4vw, 2.6rem); max-width: 22ch; font-weight: 700; }
.problem h2 em { font-style: normal; color: var(--accent); font-weight: 900; }
.problem p { margin-top: 1.25rem; max-width: 60ch; color: var(--ink-2); }

/* ---------- امکانات (bento) ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section > .wrap > h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.section > .wrap > .lead { margin-top: .75rem; color: var(--ink-2); max-width: 60ch; }

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; margin-top: 2.5rem; }
.cell {
  grid-column: span 3;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(1.4rem, 2.5vw, 2rem);
  display: flex; flex-direction: column; gap: .6rem;
}
.cell .icon { width: 2rem; height: 2rem; color: var(--accent); margin-bottom: .4rem; }
.cell h3 { font-size: 1.2rem; }
.cell p { color: var(--ink-2); font-size: 1rem; }
.cell.w4 { grid-column: span 4; }
.cell.w2 { grid-column: span 2; }
.cell.tint { background: var(--accent-soft); border-color: transparent; }
.cell.solid { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.cell.solid .icon, .cell.solid p { color: inherit; }
.cell.solid p { opacity: .88; }
.cell .sms {
  margin-top: auto;
  align-self: flex-start;
  font-size: .9rem; line-height: 1.8;
  background: var(--surface); color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 14px 14px 14px 4px;
  padding: .6rem .9rem;
  max-width: 32ch;
}
.cell .sms b { color: var(--accent); }
@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr; }
  .cell, .cell.w4, .cell.w2 { grid-column: auto; }
}

/* ---------- شروع کار ---------- */
.steps { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: s; }
.steps li { position: relative; padding-top: 3.25rem; }
.steps li::before {
  counter-increment: s; content: counter(s, persian);
  position: absolute; top: 0; inset-inline-start: 0;
  width: 2.5rem; height: 2.5rem; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-weight: 800;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 1.25rem;
  inset-inline-start: 3.25rem; inset-inline-end: -1.25rem;
  border-top: 2px dashed var(--line);
}
.steps h3 { font-size: 1.15rem; }
.steps p { color: var(--ink-2); margin-top: .35rem; font-size: 1rem; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .steps li:not(:last-child)::after { display: none; }
}

/* ---------- قیمت‌ها ---------- */
.pricing { background: var(--bg-2); }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.5rem; align-items: start; }
.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.6rem;
}
.plan h3 { font-size: 1.2rem; }
.plan .who { color: var(--muted); font-size: .95rem; margin-top: .2rem; min-height: 3.4em; }
.plan ul { list-style: none; padding: 0; margin: 1.1rem 0 0; display: grid; gap: .45rem; font-size: .97rem; color: var(--ink-2); }
.plan li { display: flex; gap: .5rem; align-items: flex-start; }
.plan li .icon { width: 1.15rem; height: 1.15rem; color: var(--accent); margin-top: .35rem; }
.plan.featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan .tag {
  display: inline-block; margin-bottom: .6rem;
  font-size: .8rem; font-weight: 700;
  color: var(--accent-ink); background: var(--accent);
  padding: .1rem .7rem; border-radius: 999px;
}
.pricing .note { margin-top: 1.5rem; color: var(--muted); font-size: .95rem; }
@media (max-width: 1000px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } }

/* ---------- امنیت ---------- */
.trust .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.trust h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.trust .lead { margin-top: .75rem; color: var(--ink-2); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 2rem; }
.facts div { border-top: 2px solid var(--accent); padding-top: 1rem; }
.facts h3 { font-size: 1.05rem; }
.facts p { color: var(--ink-2); font-size: .97rem; margin-top: .3rem; }
@media (max-width: 860px) {
  .trust .wrap, .facts { grid-template-columns: 1fr; }
}

/* ---------- سؤالات ---------- */
.faq .wrap { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { margin-top: 2rem; }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 1.15rem 0; font-weight: 700; font-size: 1.08rem;
  display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; transition: rotate .25s var(--ease); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding-bottom: 1.25rem; color: var(--ink-2); max-width: 65ch; }

/* ---------- دعوت پایانی ---------- */
.cta { padding-block: clamp(3rem, 7vw, 5rem); }
.cta .box {
  border-radius: calc(var(--r) * 1.5);
  background: linear-gradient(140deg, #0b7a55, #07121a 120%);
  color: #f6fffa;
  padding: clamp(2rem, 5vw, 3.5rem);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.cta h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.cta p { opacity: .8; margin-top: .4rem; }
.cta .btn-primary { background: #2ee59d; color: #04211a; }
.cta .btn-primary:hover { background: #5cedb4; }

/* ---------- پاورقی ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 2.5rem; color: var(--muted); font-size: .95rem; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* ---------- صفحه‌های متنی (حریم خصوصی، قوانین) ---------- */
.doc { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.doc .meta { color: var(--muted); margin-top: .5rem; font-size: .95rem; }
.doc h2 { font-size: 1.25rem; margin-top: 2.25rem; }
.doc p, .doc li { color: var(--ink-2); }
.doc p { margin-top: .75rem; }
.doc ul { padding-inline-start: 1.25rem; margin: .75rem 0 0; }
.doc li + li { margin-top: .35rem; }
.doc a { color: var(--accent); }

/* ---------- حرکت ورود ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; translate: 0 18px; transition: opacity .7s var(--ease), translate .7s var(--ease); }
  .js .reveal.in { opacity: 1; translate: 0 0; }
  .hero .phone { animation: rise 1s var(--ease) both .15s; }
  @keyframes rise { from { opacity: 0; translate: 0 28px; } }
}
