/* =========================================================
   SmartRaya Landing Page
   styles.css
   ========================================================= */

/* -------------------- متغیرها و تنظیمات پایه -------------------- */
:root {
  --primary: #087c6b;
  --primary-dark: #056657;
  --primary-light: #e4f4f0;
  --secondary: #0e2932;

  --text: #163039;
  --text-soft: #5d7076;
  --muted: #849399;

  --white: #ffffff;
  --bg: #f7faf9;
  --surface: #ffffff;
  --surface-soft: #f0f7f5;

  --border: #dce9e5;
  --border-strong: #c8ddd7;

  --success: #20a47b;
  --shadow-sm: 0 6px 18px rgba(15, 48, 54, 0.06);
  --shadow-md: 0 12px 35px rgba(15, 48, 54, 0.1);
  --shadow-lg: 0 22px 55px rgba(8, 82, 70, 0.15);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 34px;

  --container: 1180px;
  --header-height: 78px;

  --transition: 0.25s ease;
}

/* -------------------- Reset -------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.9;
  overflow-x: hidden;
}

body.modal-open,
body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

input {
  width: 100%;
}

::selection {
  color: var(--white);
  background: var(--primary);
}

/* -------------------- کلاس‌های عمومی -------------------- */
.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.section {
  padding: 105px 0;
  position: relative;
}

.section-head {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head h2 {
  margin: 10px 0 14px;
  color: var(--secondary);
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  font-weight: 800;
  line-height: 1.5;
}

.section-intro,
.section-head .sub {
  margin: 0 auto;
  max-width: 680px;
  color: var(--text-soft);
  font-size: 1.03rem;
  line-height: 2;
}

.kicker,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--primary-dark);
  background: var(--primary-light);
  border: 1px solid rgba(8, 124, 107, 0.12);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.6;
  padding: 6px 14px;
}

.kicker::before {
  width: 7px;
  height: 7px;
  content: "";
  background: var(--primary);
  border-radius: 50%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 19px;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition),
    color var(--transition),
    border-color var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:focus-visible,
.nav-toggle:focus-visible,
.faq-q:focus-visible,
.demo-close:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(8, 124, 107, 0.25);
  outline-offset: 3px;
}

.btn-primary {
  color: var(--white);
  background: var(--primary);
  box-shadow: 0 8px 20px rgba(8, 124, 107, 0.22);
}

.btn-primary:hover {
  color: var(--white);
  background: var(--primary-dark);
  box-shadow: 0 12px 26px rgba(8, 124, 107, 0.3);
}

.btn-ghost {
  color: var(--primary-dark);
  background: var(--white);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  color: var(--primary-dark);
  background: var(--primary-light);
  border-color: var(--primary);
}

.btn-light {
  color: var(--primary-dark);
  background: var(--white);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.13);
}

.btn-light:hover {
  color: var(--primary-dark);
  background: #effaf7;
}

.btn-outline-light {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.65);
}

.btn-outline-light:hover {
  color: var(--primary-dark);
  background: var(--white);
  border-color: var(--white);
}

.btn-lg {
  min-height: 54px;
  padding: 12px 24px;
  font-size: 0.98rem;
}

/* -------------------- Header -------------------- */
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(220, 233, 229, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 9px;
}

.brand-logo {
  width: 39px;
  height: 39px;
  object-fit: cover;
  border-radius: 11px;
  box-shadow: 0 4px 12px rgba(8, 124, 107, 0.15);
}

.brand-name {
  color: var(--secondary);
  font-size: 1.25rem;
  font-weight: 800;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-inline: auto;
}

.main-nav a {
  position: relative;
  color: #496068;
  font-size: 0.87rem;
  font-weight: 600;
  transition: color var(--transition);
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  content: "";
  background: var(--primary);
  border-radius: 10px;
  transition: width var(--transition);
}

.main-nav a:hover {
  color: var(--primary-dark);
}

.main-nav a:hover::after {
  width: 100%;
}

.nav-cta {
  min-height: 42px;
  padding: 8px 15px;
  font-size: 0.83rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 42px;
  padding: 9px;
  color: var(--primary-dark);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.nav-toggle span {
  display: block;
  width: 23px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 10px;
  transition: transform var(--transition), opacity var(--transition);
}

/* -------------------- Hero -------------------- */
.hero {
  min-height: calc(100vh - var(--header-height));
  padding-top: 75px;
  padding-bottom: 90px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 20%, rgba(19, 167, 139, 0.1), transparent 29%),
    radial-gradient(circle at 88% 76%, rgba(123, 216, 187, 0.14), transparent 26%),
    linear-gradient(180deg, #fbfdfd 0%, #f3faf7 100%);
}

.hero::before {
  position: absolute;
  top: -180px;
  right: -170px;
  width: 420px;
  height: 420px;
  content: "";
  background: rgba(50, 183, 151, 0.08);
  border-radius: 50%;
  filter: blur(5px);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: center;
  gap: 70px;
}

.hero-copy {
  max-width: 670px;
}

.hero-copy h1 {
  margin: 18px 0;
  color: var(--secondary);
  font-size: clamp(2rem, 4.2vw, 3.45rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.45;
}

.hero-copy .lead {
  margin: 0;
  max-width: 640px;
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 2.1;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 29px;
}

.hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 17px;
  margin-top: 25px;
}

.hero-benefit {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #496068;
  font-size: 0.83rem;
  font-weight: 600;
}

.hero-benefit > span:first-child {
  display: inline-grid;
  width: 19px;
  height: 19px;
  color: var(--white);
  background: var(--success);
  border-radius: 50%;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 800;
}

/* -------------------- Chat mockup -------------------- */
.hero-visual {
  display: flex;
  justify-content: center;
}

.chat-mockup {
  width: min(100%, 445px);
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(194, 220, 212, 0.9);
  border-radius: 25px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.5deg);
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 17px 19px;
  background: linear-gradient(135deg, #0c8a76, #087160);
  color: var(--white);
}

.chat-avatar {
  width: 42px;
  height: 42px;
  object-fit: cover;
  background: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
}

.chat-header strong {
  display: block;
  font-size: 0.92rem;
}

.status-line {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 1px;
  font-size: 0.73rem;
  opacity: 0.9;
}

.online-dot {
  width: 7px;
  height: 7px;
  background: #b6ffdd;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(182, 255, 221, 0.15);
}

.chat-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 319px;
  padding: 21px 17px;
  background:
    linear-gradient(rgba(245, 250, 248, 0.86), rgba(245, 250, 248, 0.86)),
    radial-gradient(circle at 15px 15px, #e0eeea 1px, transparent 1px);
  background-size: auto, 28px 28px;
}

.msg {
  width: fit-content;
  max-width: 87%;
  padding: 10px 13px;
  border-radius: 15px;
  font-size: 0.81rem;
  line-height: 1.95;
  box-shadow: 0 2px 6px rgba(20, 55, 60, 0.04);
}

.msg.in {
  align-self: flex-start;
  color: #455c62;
  background: var(--white);
  border-top-right-radius: 4px;
}

.msg.out {
  align-self: flex-end;
  color: #12483f;
  background: #d9f1ea;
  border-top-left-radius: 4px;
}

.chat-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 18px;
  color: #6b8180;
  background: var(--white);
  border-top: 1px solid #e9f1ee;
}

.chat-footer small {
  font-size: 0.72rem;
}

.typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  direction: ltr;
}

.typing-dot {
  width: 5px;
  height: 5px;
  background: var(--primary);
  border-radius: 50%;
  animation: typing 1.2s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.16s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.32s;
}

@keyframes typing {
  0%,
  60%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }

  30% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

/* -------------------- کارت‌ها -------------------- */
.cards {
  display: grid;
  gap: 20px;
}

.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  height: 100%;
  padding: 27px 25px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.card:hover {
  border-color: #acd8cc;
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
}

.card h3 {
  margin: 12px 0 8px;
  color: var(--secondary);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.7;
}

.card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.89rem;
  line-height: 2;
}

.card-num {
  display: inline-grid;
  width: 34px;
  height: 34px;
  color: var(--primary-dark);
  background: var(--primary-light);
  border-radius: 10px;
  place-items: center;
  font-size: 0.92rem;
  font-weight: 800;
}

/* -------------------- بخش مسئله -------------------- */
.facts {
  background: var(--white);
}

/* -------------------- بخش نحوه کار -------------------- */
.how {
  overflow: hidden;
  background: var(--surface-soft);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 1060px;
  margin: 0 auto;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 24px 31px;
  text-align: center;
}

.step:not(:last-child)::after {
  position: absolute;
  top: 43px;
  left: -30px;
  width: 60px;
  height: 1px;
  content: "";
  background: #b9d7ce;
}

.step-num {
  display: inline-grid;
  width: 52px;
  height: 52px;
  color: var(--white);
  background: var(--primary);
  border: 6px solid #dcefe9;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(8, 124, 107, 0.18);
  place-items: center;
  font-weight: 800;
}

.step h3 {
  margin: 15px 0 8px;
  color: var(--secondary);
  font-size: 1.1rem;
  font-weight: 800;
}

.step p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.89rem;
  line-height: 2;
}

/* -------------------- بخش چرخه همراهی -------------------- */
.journey {
  background: var(--white);
}

.journey-card {
  position: relative;
  padding-top: 50px;
}

.journey-label {
  position: absolute;
  top: 20px;
  right: 23px;
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  color: var(--primary-dark);
  background: var(--primary-light);
  border-radius: 999px;
  padding: 2px 11px;
  font-size: 0.72rem;
  font-weight: 800;
}

.journey-card ul,
.price-card ul {
  margin: 15px 0;
  padding: 0;
  list-style: none;
}

.journey-card li,
.price-card li {
  position: relative;
  margin-bottom: 9px;
  padding-right: 20px;
  color: var(--text-soft);
  font-size: 0.84rem;
  line-height: 1.9;
}

.journey-card li::before,
.price-card li::before {
  position: absolute;
  top: 8px;
  right: 0;
  width: 10px;
  height: 10px;
  content: "";
  background: var(--primary);
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px var(--primary-light);
}

.card-note {
  padding-top: 13px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem !important;
}

/* -------------------- امکانات -------------------- */
.features {
  background: #f4faf8;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(145px, 0.85fr);
  align-items: center;
  gap: 17px;
  min-height: 230px;
  padding: 27px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.feature h3 {
  margin: 0 0 9px;
  color: var(--secondary);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.7;
}

.feature p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 2;
}

.feature-visual {
  display: grid;
  min-height: 151px;
  background: linear-gradient(145deg, #e7f5f1, #f5fbf9);
  border-radius: 15px;
  place-items: center;
}

.phone-app {
  width: 128px;
  min-height: 137px;
  padding: 9px;
  color: var(--text-soft);
  background: var(--white);
  border: 5px solid #153d43;
  border-radius: 20px;
  box-shadow: 0 8px 17px rgba(10, 62, 62, 0.14);
  font-size: 0.58rem;
  line-height: 1.8;
}

.phone-head {
  margin: -3px -3px 9px;
  padding: 5px;
  color: var(--white);
  background: var(--primary);
  border-radius: 7px;
  text-align: center;
  font-size: 0.56rem;
  font-weight: 700;
}

.phone-app p {
  margin: 0;
  color: #4d676a;
  font-size: 0.58rem;
  line-height: 1.8;
}

.branded-page {
  width: min(88%, 180px);
  overflow: hidden;
  background: var(--white);
  border: 1px solid #c9e1da;
  border-radius: 9px;
  box-shadow: 0 8px 18px rgba(10, 62, 62, 0.1);
}

.branded-bar {
  padding: 6px;
  color: var(--white);
  background: var(--primary);
  text-align: center;
  font-size: 0.57rem;
  font-weight: 700;
}

.brand-page-preview {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 14px 10px;
  color: #667d80;
  font-size: 0.56rem;
  line-height: 1.7;
}

.brand-page-preview strong {
  color: var(--primary-dark);
  font-size: 0.65rem;
}

.sms-card {
  width: min(88%, 185px);
  padding: 12px;
  background: var(--white);
  border: 1px solid #c9e1da;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(10, 62, 62, 0.08);
}

.sms-tag {
  display: inline-block;
  color: var(--primary-dark);
  background: var(--primary-light);
  border-radius: 5px;
  padding: 1px 5px;
  font-size: 0.57rem;
  font-weight: 700;
}

.sms-card p {
  margin: 8px 0 0;
  color: #52686d;
  font-size: 0.63rem;
  line-height: 1.9;
}

.report-card {
  width: min(88%, 185px);
  padding: 11px 13px;
  background: var(--white);
  border: 1px solid #c9e1da;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(10, 62, 62, 0.08);
}

.report-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 7px 0;
  color: #6b8083;
  border-bottom: 1px solid #e8f1ee;
  font-size: 0.61rem;
}

.report-row:last-child {
  border-bottom: 0;
}

.report-row b {
  color: var(--primary-dark);
  font-size: 0.69rem;
}

/* -------------------- صنایع -------------------- */
.industries {
  background: var(--white);
}

.industries .card h3 {
  margin-top: 0;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--border);
}

/* -------------------- قیمت‌گذاری -------------------- */
.pricing {
  background: var(--surface-soft);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 400px));
  justify-content: center;
  gap: 22px;
}

.price-card {
  position: relative;
  padding: 34px 32px 29px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.price-card.featured {
  background: linear-gradient(155deg, #0a8471, #056657);
  border-color: transparent;
  box-shadow: 0 18px 35px rgba(5, 102, 87, 0.22);
}

.price-card h3 {
  margin: 0 0 8px;
  color: var(--secondary);
  font-size: 1.25rem;
  font-weight: 800;
}

.price-card.featured h3 {
  color: var(--white);
}

.price-badge {
  display: inline-block;
  margin: 0;
  color: var(--primary-dark);
  background: var(--primary-light);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 0.75rem;
  font-weight: 800;
}

.price-card.featured .price-badge {
  color: var(--primary-dark);
  background: #d9f4ea;
}

.price-card.featured li {
  color: rgba(255, 255, 255, 0.88);
}

.price-card.featured li::before {
  background: #d1fae9;
  box-shadow: inset 0 0 0 3px rgba(8, 124, 107, 0.8);
}

.pricing-note {
  max-width: 790px;
  margin: 28px auto 0;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 2.1;
  text-align: center;
}

/* -------------------- FAQ -------------------- */
/* -------------------- FAQ -------------------- */
.faq {
  background: var(--white);
}

.faq-list {
  max-width: 850px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

/* دقت کنید: کلاس open با app.js هماهنگ است */
.faq-item.open {
  border-color: #9dcebf;
  box-shadow: var(--shadow-sm);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 20px;
  padding: 18px 20px;
  color: var(--secondary);
  background: transparent;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.8;
  text-align: right;
}

.chev {
  position: relative;
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-bottom: 2px solid var(--primary);
  border-left: 2px solid var(--primary);
  transform: rotate(-45deg);
  transition: transform 0.25s ease;
}

/* دقت کنید: open، نه active */
.faq-item.open .chev {
  transform: rotate(135deg);
}

/*
  باز و بسته‌شدن پاسخ با max-height انجام می‌شود؛
  دقیقاً هماهنگ با answer.style.maxHeight در app.js
*/
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-a > p {
  margin: 0;
  padding: 0 20px 19px;
  color: var(--text-soft);
  font-size: 0.89rem;
  line-height: 2;
}


/* -------------------- CTA -------------------- */
.cta {
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 85% 0%, rgba(134, 247, 210, 0.2), transparent 27%),
    radial-gradient(circle at 12% 95%, rgba(159, 243, 216, 0.13), transparent 28%),
    linear-gradient(135deg, #087d6b, #035a4f);
}

.cta::before,
.cta::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.cta::before {
  top: -160px;
  right: -100px;
  width: 350px;
  height: 350px;
}

.cta::after {
  bottom: -230px;
  left: -130px;
  width: 440px;
  height: 440px;
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
}

.cta h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.6rem, 3.1vw, 2.3rem);
  font-weight: 800;
  line-height: 1.55;
}

.cta p {
  margin: 14px auto 25px;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  line-height: 2;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* -------------------- Footer -------------------- */
.site-footer {
  padding: 35px 0;
  color: #c8d9d8;
  background: #112e35;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.site-footer h4 {
  margin: 0 0 5px;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 800;
}

.site-footer p,
.footer-links {
  margin: 0;
  color: #b4c5c5;
  font-size: 0.81rem;
}

/* -------------------- Modal -------------------- */
.demo-modal {
  position: fixed;
  z-index: 500;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 31, 35, 0.64);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.demo-modal.is-open {
  display: flex !important;
  animation: modal-fade-in 0.22s ease;
}

.demo-modal-content {
  position: relative;
  width: min(100%, 500px);
  max-height: min(720px, calc(100vh - 40px));
  padding: 34px;
  overflow-y: auto;
  background: var(--white);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
  animation: modal-slide-up 0.28s ease;
}

.demo-close {
  position: absolute;
  top: 13px;
  left: 13px;
  display: grid;
  width: 35px;
  height: 35px;
  color: #50666a;
  background: #f1f6f4;
  border-radius: 9px;
  place-items: center;
  font-size: 1.55rem;
  line-height: 1;
  transition: background var(--transition), color var(--transition);
}

.demo-close:hover {
  color: #8f2424;
  background: #ffeceb;
}

.demo-modal-content h3 {
  margin: 0 0 7px;
  color: var(--secondary);
  font-size: 1.3rem;
  font-weight: 800;
}

.modal-intro {
  margin: 0 0 21px;
  color: var(--text-soft);
  font-size: 0.87rem;
  line-height: 2;
}

.demo-modal label {
  display: block;
  margin: 15px 0 6px;
  color: #385157;
  font-size: 0.84rem;
  font-weight: 700;
}

.demo-modal input {
  height: 48px;
  padding: 9px 12px;
  color: var(--text);
  background: #fbfdfc;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-size: 0.9rem;
  outline: 0;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.demo-modal input::placeholder {
  color: #a2b1b3;
}

.demo-modal input:focus {
  background: var(--white);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(8, 124, 107, 0.1);
}

.demo-modal input.input-error {
  border-color: #d84b4b;
  box-shadow: 0 0 0 4px rgba(216, 75, 75, 0.09);
}

.modal-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 23px;
}

.demo-form-message {
  margin-bottom: 15px;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.83rem;
  line-height: 1.9;
}

.demo-form-message.success {
  color: #0e674f;
  background: #e3f7ef;
  border: 1px solid #b9e7d4;
}

.demo-form-message.error {
  color: #a03838;
  background: #fff0ef;
  border: 1px solid #f1c3c0;
}

@keyframes modal-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes modal-slide-up {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* -------------------- انیمیشن ظاهرشدن عناصر -------------------- */
/* -------------------- انیمیشن ایمن هنگام اسکرول -------------------- */
/*
  محتوا همیشه قابل‌مشاهده باقی می‌ماند.
  بنابراین اگر JavaScript اجرا نشود، سایت هرگز خالی نخواهد شد.
*/
.reveal {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/*
  app.js هنگام ورود هر عنصر به محدوده دید،
  کلاس is-visible را اضافه می‌کند.
*/
@media (prefers-reduced-motion: no-preference) {
  html.js-enabled .reveal.is-visible {
    animation: reveal-on-scroll 0.72s cubic-bezier(0.22, 1, 0.36, 1) both;
    will-change: opacity, transform;
  }
}

@keyframes reveal-on-scroll {
  from {
    opacity: 0.25;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* -------------------- CTA چسبان مخصوص موبایل -------------------- */
.mobile-sticky-cta {
  display: none;
}

/* -------------------- Responsive: تبلت -------------------- */
@media (max-width: 1050px) {
  .main-nav {
    gap: 16px;
  }

  .main-nav a {
    font-size: 0.8rem;
  }

  .hero-grid {
    gap: 38px;
  }

  .cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature {
    grid-template-columns: 1fr;
  }

  .feature-visual {
    min-height: 165px;
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 70px;
  }

  .section {
    padding: 78px 0;
  }

  .nav-toggle {
    display: block;
  }

  .nav-cta {
    display: none;
  }

  .main-nav {
    position: fixed;
    z-index: 150;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    margin: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 14px 25px rgba(19, 49, 53, 0.08);
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.25s ease;
  }

  .main-nav.open {
    max-height: 500px;
    padding: 10px 20px 17px;
    opacity: 1;
  }

  .main-nav a {
    padding: 10px 5px;
    color: var(--text);
    border-bottom: 1px solid #edf3f1;
    font-size: 0.92rem;
  }

  .main-nav a:last-child {
    border-bottom: 0;
  }

  .main-nav a::after {
    display: none;
  }

  .nav-toggle.is-active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .hero {
    min-height: auto;
    padding-top: 56px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hero-copy {
    max-width: 100%;
    text-align: center;
  }

  .hero-copy .lead {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-actions,
  .hero-benefits {
    justify-content: center;
  }

  .chat-mockup {
    transform: none;
  }

  .cols-3,
  .steps {
    grid-template-columns: 1fr;
  }

  .step {
    max-width: 520px;
    margin: 0 auto;
  }

  .step:not(:last-child)::after {
    top: auto;
    bottom: -2px;
    left: 50%;
    width: 1px;
    height: 28px;
    transform: translateX(-50%);
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature {
    grid-template-columns: minmax(0, 1.1fr) minmax(150px, 0.9fr);
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* -------------------- Responsive: موبایل -------------------- */
@media (max-width: 580px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .section {
    padding: 62px 0;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .section-head h2 {
    margin-top: 9px;
    font-size: 1.55rem;
    line-height: 1.65;
  }

  .section-intro,
  .section-head .sub {
    font-size: 0.91rem;
    line-height: 2;
  }

  .brand-logo {
    width: 35px;
    height: 35px;
  }

  .brand-name {
    font-size: 1.15rem;
  }

  .hero {
    padding-top: 39px;
    padding-bottom: 58px;
  }

  .hero-copy h1 {
    margin: 14px 0;
    font-size: 1.9rem;
    letter-spacing: -0.03em;
    line-height: 1.55;
  }

  .hero-copy .lead {
    font-size: 0.91rem;
    line-height: 2.1;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 24px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-benefits {
    justify-content: center;
    gap: 11px 14px;
    margin-top: 20px;
  }

  .hero-benefit {
    font-size: 0.74rem;
  }

  .hero-grid {
    gap: 32px;
  }

  .chat-mockup {
    border-radius: 20px;
  }

  .chat-body {
    min-height: 300px;
    padding: 16px 13px;
  }

  .msg {
    max-width: 91%;
    font-size: 0.74rem;
  }

  .cards {
    gap: 13px;
  }

  .card {
    padding: 22px 19px;
  }

  .journey-card {
    padding-top: 52px;
  }

  .journey-label {
    top: 12px;
    right: 19px;
  }

  .card h3 {
    font-size: 1rem;
  }

  .card p {
    font-size: 0.84rem;
  }

  .step {
    padding: 18px 12px 29px;
  }

  .feature {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 21px 18px;
  }

  .feature h3 {
    font-size: 1rem;
  }

  .feature p {
    font-size: 0.84rem;
  }

  .feature-visual {
    min-height: 145px;
  }

  .cols-4 {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .price-card {
    padding: 26px 22px;
    border-radius: 19px;
  }

  .faq-q {
    padding: 15px 16px;
    font-size: 0.86rem;
    line-height: 1.85;
  }

.faq-item.open .faq-a > p {
  padding: 0 16px 16px;
  font-size: 0.83rem;
}

  .cta {
    padding-bottom: 78px;
  }

  .cta h2 {
    font-size: 1.48rem;
    line-height: 1.7;
  }

  .cta p {
    font-size: 0.89rem;
  }

  .cta-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cta-actions .btn {
    width: 100%;
  }

  .site-footer {
    padding: 28px 0 87px;
  }

  .demo-modal {
    align-items: flex-end;
    padding: 0;
  }

  .demo-modal-content {
    width: 100%;
    max-height: calc(100vh - 22px);
    padding: 32px 21px 26px;
    border-radius: 22px 22px 0 0;
  }

  .mobile-sticky-cta {
    position: fixed;
    z-index: 120;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.94);
    border-top: 1px solid var(--border);
    box-shadow: 0 -7px 22px rgba(13, 50, 51, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .mobile-sticky-cta .btn {
    width: min(100%, 430px);
    min-height: 48px;
  }
}


/* -------------------- کاهش حرکت برای کاربران حساس -------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
