:root {
  --primary: #0a7d6b;
  --primary-dark: #075f52;
  --primary-soft: #e8f5f2;
  --accent: #e8a33d;
  --ink: #1b2b35;
  --muted: #5b6b73;
  --bg: #f7f9f8;
  --surface: #ffffff;
  --surface-2: #fbfcfb;
  --line: #e3e9e7;
  --radius: 18px;
  --radius-lg: 24px;
  --shadow: 0 14px 40px rgba(11, 45, 38, 0.10);
  --shadow-soft: 0 8px 24px rgba(11, 45, 38, 0.06);
  --container: 1140px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  font-family: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.95;
  direction: rtl;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.brand-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  display: block;
}

/* ===== دکمه‌ها ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.96rem;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
  will-change: transform;
  border: 1px solid transparent;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:focus-visible,
.nav-toggle:focus-visible,
.faq-q:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(10, 125, 107, 0.22);
  outline-offset: 3px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(10, 125, 107, .22);
}
.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-ghost {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-ghost:hover {
  background: rgba(10, 125, 107, .06);
}

.btn-light {
  background: #fff;
  color: var(--primary-dark);
}
.btn-light:hover {
  box-shadow: 0 10px 24px rgba(255,255,255,.16);
}

.btn-outline-light {
  border-color: rgba(255,255,255,.72);
  color: #fff;
  background: transparent;
}
.btn-outline-light:hover {
  background: rgba(255,255,255,.08);
}

/* ===== هدر ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-dot {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 8px 18px rgba(10, 125, 107, .18);
}

.brand-name {
  font-weight: 800;
  font-size: 1.38rem;
  letter-spacing: -.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.main-nav a {
  position: relative;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s ease;
  white-space: nowrap;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width .2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--primary);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

/* ===== بخش‌ها ===== */
.section {
  padding: 88px 0;
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 46px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 700;
  background: rgba(10, 125, 107, .08);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: .86rem;
  margin-bottom: 14px;
}

/* اصلاح: عناوین بخش کوچکتر شد */
.section-head h2 {
  font-size: clamp(1.55rem, 2.9vw, 1.95rem);
  line-height: 1.5;
  letter-spacing: -.02em;
}

.section-head .sub {
  margin-top: 12px;
  color: var(--muted);
}

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(42rem at 85% -10%, rgba(10,125,107,.12), transparent 58%),
    radial-gradient(28rem at 5% 0%, rgba(232,163,61,.10), transparent 55%),
    linear-gradient(180deg, #fff, var(--bg));
  padding-top: 72px;
  padding-bottom: 92px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  background: rgba(232, 163, 61, .14);
  color: #a56b12;
  font-weight: 700;
  font-size: .86rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* اصلاح: هیرو جمع‌تر شد */
.hero-copy h1 {
  font-size: clamp(1.9rem, 3.9vw, 2.6rem);
  line-height: 1.35;
  margin-bottom: 20px;
  letter-spacing: -.03em;
}

.hero-copy .lead {
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  margin-bottom: 28px;
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ===== Chat mockup ===== */
.chat-mockup {
  background: var(--surface);
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  overflow: hidden;
  max-width: 430px;
  margin-inline: auto;
  transform: translateZ(0);
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f2f6f4;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.chat-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.chat-header strong {
  display: block;
  font-size: .96rem;
}

.status-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  color: var(--muted);
}

.online-dot {
  width: 8px;
  height: 8px;
  background: #2fbf71;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 4px rgba(47, 191, 113, .10);
}

.chat-body {
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 330px;
}

.msg {
  max-width: 84%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: .93rem;
  line-height: 1.75;
  box-shadow: 0 6px 18px rgba(0,0,0,.03);
}

.msg.in {
  background: #eef3f1;
  align-self: flex-start;
  border-bottom-right-radius: 4px;
}

.msg.out {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  align-self: flex-end;
  border-bottom-left-radius: 4px;
}

.chat-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .85rem;
}

.typing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: blink 1.2s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: .2s; }
.typing-dot:nth-child(3) { animation-delay: .4s; }

@keyframes blink {
  0%,100% { opacity: .2; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-1px); }
}

/* ===== کارت‌ها ===== */
.cards {
  display: grid;
  gap: 20px;
  margin-top: 8px;
}

.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-soft);
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(10, 125, 107, .18);
}

.card-num {
  position: absolute;
  top: -14px;
  right: 20px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: 0 8px 16px rgba(232, 163, 61, .22);
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.card p,
.card ul {
  color: var(--muted);
  font-size: .95rem;
}

.card ul {
  list-style: none;
}

.card ul li {
  padding-right: 18px;
  position: relative;
  margin-bottom: 6px;
}

.card ul li::before {
  content: "✓";
  position: absolute;
  right: 0;
  color: var(--primary);
  font-weight: 800;
}

.card .card-note {
  margin-top: 14px;
  font-size: .88rem;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}

/* ===== گام‌ها ===== */
.how {
  background: var(--surface);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  background: linear-gradient(180deg, var(--bg), #fff);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease;
}

.step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 18px;
  box-shadow: 0 10px 18px rgba(10,125,107,.18);
}

.step h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.step p {
  color: var(--muted);
  font-size: .95rem;
}

/* ===== امکانات ===== */
.features {
  background: var(--bg);
}

.features-grid {
  display: grid;
  gap: 40px;
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.feature:nth-child(even) .feature-text {
  order: 2;
}

.feature-text h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
  letter-spacing: -.02em;
}

.feature-text p {
  color: var(--muted);
}

.feature-visual {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.phone-app,
.sms-card,
.report-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}

.phone-head {
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.branded-bar {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px 10px 0 0;
  font-weight: 700;
}

.branded-page img {
  width: 100%;
  border-radius: 0 0 10px 10px;
}

.sms-tag {
  background: var(--primary);
  color: #fff;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 8px;
}

.report-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}

.report-row:last-child {
  border-bottom: none;
}

.report-row b {
  color: var(--primary);
}

/* ===== تعرفه ===== */
.pricing {
  background: var(--surface);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}

.price-card {
  background: linear-gradient(180deg, #fff, #fcfdfc);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(10,125,107,.18);
}

.price-card.featured {
  border: 2px solid var(--primary);
  position: relative;
  overflow: hidden;
}

.price-card.featured::before {
  content: "پیشنهادی";
  position: absolute;
  top: 16px;
  left: -32px;
  transform: rotate(-45deg);
  background: var(--primary);
  color: #fff;
  padding: 6px 42px;
  font-size: .78rem;
  font-weight: 800;
}

.price-badge {
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 16px;
}

.price-card ul {
  list-style: none;
  color: var(--muted);
}

.price-card ul li {
  padding-right: 20px;
  position: relative;
  margin-bottom: 8px;
}

.price-card ul li::before {
  content: "•";
  position: absolute;
  right: 4px;
  color: var(--accent);
  font-weight: 800;
}

.pricing-note {
  text-align: center;
  max-width: 760px;
  margin: 28px auto 0;
  color: var(--muted);
}

/* ===== FAQ ===== */
.faq {
  background: var(--bg);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-align: right;
  padding: 18px 20px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.chev {
  width: 10px;
  height: 10px;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
  transition: transform .25s ease;
  flex-shrink: 0;
}

.faq-item.open .chev {
  transform: rotate(135deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}

.faq-a p {
  padding: 0 20px 18px;
  color: var(--muted);
}

/* ===== CTA ===== */
.cta {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.12), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(255,255,255,.08), transparent 24%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  text-align: center;
  color: #fff;
}

/* اصلاح: عنوان CTA جمع‌تر شد */
.cta-inner h2 {
  font-size: clamp(1.55rem, 2.8vw, 1.95rem);
  line-height: 1.5;
  margin-bottom: 14px;
}

.cta-inner p {
  max-width: 640px;
  margin: 0 auto 28px;
  opacity: .94;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== فوتر ===== */
.site-footer {
  background: var(--ink);
  color: #cfd8d4;
  padding: 34px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer h4 {
  color: #fff;
  margin-bottom: 4px;
}

.site-footer p {
  font-size: .9rem;
}

/* ===== افکت ظاهر شدن ===== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== ریسپانسیو ===== */
@media (max-width: 1100px) {
  .hero-grid {
    gap: 36px;
  }

  .main-nav {
    gap: 16px;
  }

  .brand-name {
    font-size: 1.28rem;
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .feature {
    grid-template-columns: 1fr;
  }

  .feature:nth-child(even) .feature-text {
    order: 0;
  }

  .cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-copy {
    order: 0;
  }

  .hero-visual {
    order: 1;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 18px;
  }

  .header-inner {
    min-height: 68px;
  }

  .nav-toggle {
    display: inline-flex;
    z-index: 70;
  }

  .nav-cta {
    display: none;
  }

  .main-nav {
    position: fixed;
    inset: 68px 12px auto 12px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    background: rgba(255,255,255,.98);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    transform: translateY(-18px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
    z-index: 65;
  }

  .main-nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .main-nav a {
    font-size: 1.05rem;
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--bg);
    text-align: center;
  }

  .main-nav a::after {
    display: none;
  }

  .hero {
    padding-top: 54px;
    padding-bottom: 72px;
  }

  .section {
    padding: 62px 0;
  }

  .section-head {
    margin-bottom: 34px;
  }

  /* اصلاح: هیرو در تبلت جمع‌تر شد */
  .hero-copy h1 {
    font-size: clamp(1.7rem, 6.5vw, 2.1rem);
  }

  .hero-copy .lead {
    font-size: 1rem;
  }

  .hero-actions,
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .cta-actions .btn {
    width: 100%;
  }

  .cols-3,
  .cols-4,
  .steps,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .card,
  .step,
  .price-card {
    padding: 22px;
  }

  .chat-body {
    min-height: 290px;
  }

  .msg {
    max-width: 90%;
    font-size: .9rem;
  }

  .feature-text h3 {
    font-size: 1.2rem;
  }

  /* اصلاح: عنوان CTA در تبلت کوچک‌تر شد */
  .cta-inner h2 {
    font-size: 1.45rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  html {
    scroll-padding-top: 82px;
  }

  .container {
    padding: 0 14px;
  }

  .brand-dot {
    width: 28px;
    height: 28px;
  }

  .brand-name {
    font-size: 1.12rem;
  }

  /* اصلاح: هیرو در موبایل جمع‌تر شد */
  .hero-copy h1 {
    font-size: 1.7rem;
  }

  .badge,
  .kicker {
    font-size: .8rem;
  }

  .card h3,
  .step h3,
  .price-card h3 {
    font-size: 1.02rem;
  }

  .faq-q {
    font-size: .96rem;
    padding: 16px 16px;
  }

  .faq-a p {
    padding: 0 16px 16px;
  }

  .chat-mockup {
    border-radius: 20px;
  }

  .chat-body {
    min-height: 270px;
    padding: 16px 12px;
  }

  .hero,
  .section {
    overflow: hidden;
  }
}

/* ===== احترام به کاربرانی که حرکت کمتر می‌خواهند ===== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
/* شماره‌های بخش «راه‌حل» هم‌سبک با بخش «مسئله»: روی لبهٔ باکس */
.how .step {
  position: relative;
}

.how .step-num {
  position: absolute;
  top: -14px;
  right: 20px;
  margin-bottom: 0;
}

.how .step h3 {
  margin-top: 16px;
}


.demo-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.demo-modal-content {
  background: #fff;
  width: min(92%, 420px);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  direction: rtl;
}

.demo-modal-content input {
  width: 100%;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
}

.demo-close {
  position: absolute;
  top: 10px;
  left: 10px;
  border: none;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.demo-form-message {
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.8;
}

.demo-form-message.success {
  background: #e8f7ee;
  color: #1f7a3f;
  border: 1px solid #bde5c7;
}

.demo-form-message.error {
  background: #fdecec;
  color: #b42318;
  border: 1px solid #f5c2c7;
}

.demo-form-message.info {
  color: #d32f2f;          /* قرمز تیره */
  background-color: #fdecea; /* پس‌زمینه قرمز بسیار روشن */
  border: 1px solid #f5c6cb; /* حاشیه قرمز ملایم */
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  margin-top: 12px;
}
