/* ============================================================
   صفحه فرود
   ============================================================ */

body.landing { overflow-x: hidden; }

/* ---------- نوار بالا ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--glass); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; gap: 26px; height: 68px; }
.nav-links { display: flex; gap: 22px; flex: 1; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 500; transition: color .2s; position: relative; }
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: ''; position: absolute; bottom: -6px; inset-inline-start: 0; width: 0; height: 2px;
  background: var(--grad); border-radius: 2px; transition: width .25s;
}
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle { background: none; border: none; font-size: 1.15rem; cursor: pointer; opacity: .8; transition: transform .3s; }
.theme-toggle:hover { transform: rotate(20deg) scale(1.15); }
.hamburger { display: none; background: none; border: none; color: var(--text); font-size: 1.4rem; cursor: pointer; }

/* ---------- هیرو ---------- */
.hero { position: relative; padding: 90px 0 70px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; animation: floaty 9s ease-in-out infinite; }
.orb-1 { width: 480px; height: 480px; background: rgba(99,102,241,.35); top: -160px; inset-inline-start: -120px; }
.orb-2 { width: 400px; height: 400px; background: rgba(20,184,166,.28); bottom: -140px; inset-inline-end: -80px; animation-delay: -3s; }
.orb-3 { width: 260px; height: 260px; background: rgba(245,158,11,.16); top: 30%; inset-inline-end: 30%; animation-delay: -6s; }
html[data-theme="light"] .orb { opacity: .35; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}

.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 99px; font-size: .8rem; font-weight: 600;
  background: var(--grad-soft); border: 1px solid rgba(99,102,241,.3); color: var(--primary-text);
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 900; line-height: 1.3; margin-bottom: 18px;
  background: linear-gradient(120deg, var(--text) 30%, var(--primary) 70%, var(--primary-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 1.15rem; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.hero-desc { color: var(--muted); font-size: .98rem; max-width: 52ch; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 38px; }
.hero-stats { display: flex; gap: 34px; }
.hero-stats b { display: block; font-size: 1.45rem; font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats span { font-size: .78rem; color: var(--muted); }

/* ماک چت */
.hero-visual { position: relative; }
.mock-chat {
  background: var(--glass); backdrop-filter: blur(20px);
  border: 1px solid var(--border-2); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden;
  animation: riseUp .8s .2s cubic-bezier(.22,1,.36,1) both;
}
.mock-head { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.mock-head .dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.r { background: #ef4444; } .dot.y { background: #f59e0b; } .dot.g { background: #10b981; }
.mock-title { margin-inline-start: 8px; font-size: .8rem; color: var(--muted); }
.mock-body { padding: 22px; display: flex; flex-direction: column; gap: 14px; min-height: 260px; }
.mock-msg { max-width: 85%; padding: 12px 16px; border-radius: 16px; font-size: .86rem; line-height: 1.8; animation: riseUp .5s both; }
.mock-msg.user { align-self: flex-start; background: var(--grad); color: #fff; border-bottom-right-radius: 6px; animation-delay: .4s; }
.mock-msg.bot { align-self: flex-end; background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 6px; animation-delay: .9s; }
.mock-typing { display: inline-flex; gap: 5px; margin-top: 8px; }
.mock-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); animation: dots 1.2s infinite; }
.mock-typing span:nth-child(2) { animation-delay: .18s; }
.mock-typing span:nth-child(3) { animation-delay: .36s; }
.mock-src {
  align-self: flex-end; font-size: .74rem; color: var(--primary-2);
  background: rgba(20,184,166,.1); border: 1px dashed rgba(20,184,166,.4);
  padding: 6px 12px; border-radius: 10px; animation: riseUp .5s 1.4s both;
}
.float-card {
  position: absolute; display: flex; align-items: center; gap: 6px;
  background: var(--glass); backdrop-filter: blur(14px);
  border: 1px solid var(--border-2); border-radius: 14px;
  padding: 10px 16px; font-size: .8rem; box-shadow: var(--shadow-sm);
  animation: floaty 6s ease-in-out infinite;
}
.float-card b { color: var(--primary-text); }
.fc-1 { top: -16px; inset-inline-start: -14px; animation-delay: -2s; }
.fc-2 { bottom: -16px; inset-inline-end: -10px; }

/* ---------- بخش‌ها ---------- */
.section { padding: 84px 0; position: relative; }
.section.alt { background: var(--bg-2); }
.section-title { text-align: center; font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 900; margin-bottom: 10px; }
.section-sub { text-align: center; color: var(--muted); font-size: .95rem; margin-bottom: 46px; }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(99,102,241,.4); }
.card-icon {
  width: 54px; height: 54px; border-radius: 16px; font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-soft); border: 1px solid rgba(99,102,241,.25);
  margin-bottom: 18px;
}
.assistant-card .card-icon, .feature .card-icon { font-size: 1.6rem; }
.card h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; }
.card p { font-size: .87rem; color: var(--muted); }
.assistant-card { text-align: center; }
.assistant-card .card-icon { margin-inline: auto; background: color-mix(in srgb, var(--c, #6366f1) 14%, transparent); border-color: color-mix(in srgb, var(--c, #6366f1) 35%, transparent); }
.assistant-card:hover { border-color: var(--c, #6366f1); }

.source-card .source-badge {
  display: inline-block; padding: 4px 14px; border-radius: 99px; margin-bottom: 14px;
  font-size: .78rem; font-weight: 700; direction: ltr;
  background: var(--grad-soft); color: var(--primary-text); border: 1px solid rgba(99,102,241,.3);
}
.source-card .btn { margin-top: 14px; }

/* مراحل */
.steps { display: flex; align-items: stretch; gap: 18px; justify-content: center; }
.step {
  flex: 1; max-width: 320px; text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 24px; position: relative; transition: var(--tr);
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(99,102,241,.4); }
.step-num {
  width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 900; color: #fff; background: var(--grad);
  box-shadow: 0 6px 18px rgba(99,102,241,.4);
}
.step h3 { font-size: 1rem; margin-bottom: 8px; }
.step p { font-size: .84rem; color: var(--muted); }
.step-arrow { align-self: center; font-size: 1.6rem; color: var(--primary); opacity: .6; }

/* تعرفه */
.pricing { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.price-card {
  width: 300px; background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 34px 28px; text-align: center;
  position: relative; transition: var(--tr);
}
.price-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.price-card.featured { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(99,102,241,.15), var(--shadow); }
.price-badge {
  position: absolute; top: -13px; inset-inline-start: 50%; transform: translateX(50%);
  padding: 4px 16px; border-radius: 99px; font-size: .72rem; font-weight: 800;
  background: var(--grad); color: #fff;
}
html[dir="rtl"] .price-badge { transform: translateX(50%); }
.price-card h3 { font-size: 1.15rem; font-weight: 900; margin-bottom: 10px; }
.price { font-size: 2rem; font-weight: 900; margin-bottom: 4px; }
.price small { font-size: .78rem; font-weight: 500; color: var(--muted); }
.price-limit { font-size: .8rem; color: var(--primary-2); font-weight: 700; margin-bottom: 18px; }
.price-card ul { list-style: none; text-align: start; margin-bottom: 24px; }
.price-card li { font-size: .84rem; padding: 7px 0; color: var(--muted); border-bottom: 1px dashed var(--border); }
.price-card li:last-child { border-bottom: none; }

/* سوالات متداول */
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  margin-bottom: 12px; overflow: hidden; transition: var(--tr);
}
.faq details[open] { border-color: rgba(99,102,241,.4); }
.faq summary {
  padding: 18px 22px; cursor: pointer; font-weight: 700; font-size: .95rem;
  list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; inset-inline-end: 20px; font-size: 1.3rem; color: var(--primary); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; font-size: .87rem; color: var(--muted); }

/* فوتر */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 44px 0 30px; }
.footer-inner { display: flex; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.footer-brand { flex: 1; min-width: 240px; }
.footer-brand p { font-size: .84rem; color: var(--muted); margin-top: 10px; max-width: 40ch; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: .86rem; }
.footer-links a:hover { color: var(--primary-text); }
.footer-note { width: 100%; text-align: center; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); font-size: .8rem; color: var(--muted); }

/* اسکرول ریویل */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- ریسپانسیو ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 60px; }
  .hero-visual { max-width: 560px; margin-inline: auto; width: 100%; }
  .cards-3, .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); }
}
@media (max-width: 760px) {
  .nav-links {
    display: none; position: absolute; top: 68px; inset-inline: 0;
    flex-direction: column; gap: 0; background: var(--glass); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border); padding: 10px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 6vw; }
  .nav-links a::after { display: none; }
  .hamburger { display: block; }
  .nav-actions .btn-ghost { display: none; }
  .hero { padding: 56px 0 50px; }
  .hero-stats { gap: 22px; flex-wrap: wrap; }
  .cards-3, .cards-4, .cards-2 { grid-template-columns: 1fr; }
  .fc-1 { inset-inline-start: 0; }
  .fc-2 { inset-inline-end: 0; }
  .section { padding: 60px 0; }
}
