/* لندینگ مینا — نسخه‌ی مدرن ۲۰۲۶
   پالت «شب گرم» هماهنگ با اپ + گلس‌مورفیزم، گرادیان و انیمیشن ظهور با اسکرول.
   RTL/LTR با ویژگی‌های منطقی (inset-inline و ...) — یک فایل برای هر چهار زبان. */

:root {
  --night-950: #131110;
  --night-900: #1a1715;
  --night-800: #272220;
  --night-700: #393230;
  --night-600: #4f4642;
  --ember-300: #fcd34d;
  --ember-400: #fbbf24;
  --ember-500: #f59e0b;
  --ember-600: #f97316;
  --teal-400: #2dd4bf;
  --text-hi: #e7e5e4;
  --text-mid: #a8a29e;
  --text-low: #78716c;
  --glass: rgba(26, 23, 21, 0.66);
  --line: rgba(255, 255, 255, 0.08);
  --font-fa: "Vazirmatn", ui-sans-serif, system-ui, sans-serif;
  --font-en: "Inter", "Vazirmatn", ui-sans-serif, system-ui, sans-serif;
  --grad-ember: linear-gradient(135deg, #fbbf24, #f59e0b 55%, #f97316);
  --grad-text: linear-gradient(120deg, #fcd34d, #f59e0b 50%, #f97316);
  --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.35);
  --radius: 1.1rem;
}

* {
  box-sizing: border-box;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

html[dir="rtl"] body { font-family: var(--font-fa); }
html[dir="ltr"] body { font-family: var(--font-en); }

body {
  background: var(--night-950);
  color: var(--text-hi);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* هاله‌های گرم پس‌زمینه */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55rem 40rem at 85% -10%, rgba(245, 158, 11, 0.13), transparent 60%),
    radial-gradient(45rem 35rem at -15% 35%, rgba(45, 212, 191, 0.07), transparent 60%),
    radial-gradient(45rem 32rem at 55% 120%, rgba(249, 115, 22, 0.08), transparent 60%);
}

.container {
  max-width: 72rem;
  margin: 0 auto;
  padding-inline: 1.5rem;
}

img {
  display: block;
  max-width: 100%;
}

/* ---------- ناوبری ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(19, 17, 16, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-block: 0.85rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-hi);
  text-decoration: none;
}
.brand svg {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 0.6rem;
  padding: 0.25rem;
  background: var(--grad-ember);
  color: var(--night-950);
}
.nav-links {
  display: flex;
  gap: 1.4rem;
  margin-inline-start: 1rem;
}
.nav-links a {
  color: var(--text-mid);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text-hi); }

.langs {
  display: flex;
  gap: 0.3rem;
  margin-inline-start: auto;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem;
}
.langs a {
  color: var(--text-mid);
  text-decoration: none;
  font-size: 0.8rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.langs a:hover { color: var(--text-hi); }
.langs a[aria-current="true"] {
  background: var(--grad-ember);
  color: var(--night-950);
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0.95rem;
  padding: 0.7rem 1.4rem;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn-primary {
  background: var(--grad-ember);
  color: var(--night-950);
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(245, 158, 11, 0.38);
}
.btn-ghost {
  border: 1px solid var(--night-600);
  color: var(--text-hi);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--ember-500);
  color: var(--ember-300);
}
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.88rem; }

/* ---------- هیرو ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
  padding-block: 5rem 4.5rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--ember-300);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.hero h1 .grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  max-width: 36rem;
  margin-block: 1.25rem 2rem;
  color: var(--text-mid);
  font-size: 1.08rem;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}
.hero-ctas .btn-primary { padding: 0.9rem 1.9rem; font-size: 1.02rem; }
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-mid);
}
.trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.trust svg { width: 1rem; height: 1rem; color: var(--teal-400); }

/* قاب عکس هیرو + کارت‌های شناور */
.hero-visual { position: relative; }
.hero-frame {
  position: relative;
  border-radius: 1.6rem;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(19, 17, 16, 0.55), transparent 45%);
}
.hero-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
}
.float-card {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: rgba(26, 23, 21, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  animation: float 6s ease-in-out infinite;
}
.fc-1 { top: 9%; inset-inline-start: -1.4rem; }
.fc-2 { bottom: 9%; inset-inline-end: -1.4rem; animation-delay: -3s; }
.float-card .fc-label {
  font-size: 0.72rem;
  color: var(--ember-300);
  font-weight: 700;
}
.float-card .fc-line {
  font-size: 0.85rem;
  color: var(--text-hi);
  direction: ltr;
  text-align: left;
}
.float-card .fc-line del { color: var(--text-low); }
.float-card .fc-line ins {
  color: var(--teal-400);
  text-decoration: none;
  font-weight: 700;
}
.float-card .fc-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-hi);
  font-weight: 700;
}
.float-card .fc-meta svg { width: 1.05rem; height: 1.05rem; color: var(--ember-400); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- نوار آمار ---------- */
.stats {
  border-block: 1px solid var(--line);
  padding-block: 1.6rem;
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.stat { text-align: center; }
.stat b {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span {
  font-size: 0.85rem;
  color: var(--text-mid);
}

/* ---------- بخش‌ها ---------- */
.section { padding-block: 4.5rem; }
.section-head { max-width: 40rem; margin-bottom: 2.75rem; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ember-300);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  line-height: 1.45;
}
.section-head p {
  color: var(--text-mid);
  margin-top: 0.6rem;
}

/* ویژگی‌ها */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.1rem;
}
.feature-card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(251, 191, 36, 0.4);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(249, 115, 22, 0.07));
  border: 1px solid rgba(251, 191, 36, 0.28);
  color: var(--ember-400);
  margin-bottom: 1rem;
}
.icon-tile svg { width: 1.35rem; height: 1.35rem; }
.feature-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.feature-card p {
  color: var(--text-mid);
  font-size: 0.93rem;
}

/* چطور کار می‌کند */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}
.step { position: relative; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  background: var(--grad-ember);
  color: var(--night-950);
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 0.9rem;
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.3);
}
.step h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.step p {
  color: var(--text-mid);
  font-size: 0.93rem;
}

/* بخش‌های تصویری دو‌تکه */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.split + .split { margin-top: 5rem; }
/* در دسکتاپ اسپلیت دوم عکسش سمت مقابل قرار می‌گیرد (در RTL و LTR هر دو) */
.split.rev .split-img { order: 2; }
.split-img {
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  position: relative;
}
.split-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(19, 17, 16, 0.35), transparent 50%);
}
.split-img img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.split-copy h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 800;
  line-height: 1.45;
  margin-bottom: 0.8rem;
}
.split-copy p {
  color: var(--text-mid);
  margin-bottom: 1rem;
}
.split-copy ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.split-copy li {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  color: var(--text-mid);
  font-size: 0.95rem;
}
.split-copy li svg {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--teal-400);
  flex-shrink: 0;
  translate: 0 0.18rem;
}

/* ---------- وایت‌لیست ---------- */
.waitlist {
  position: relative;
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
  border-radius: 1.6rem;
  padding: 3.25rem 2rem;
  background:
    radial-gradient(30rem 18rem at 50% -20%, rgba(245, 158, 11, 0.16), transparent 65%),
    var(--glass);
  border: 1px solid rgba(251, 191, 36, 0.32);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.waitlist h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
}
.waitlist > p {
  color: var(--text-mid);
  margin-top: 0.5rem;
}
.waitlist form {
  display: flex;
  gap: 0.6rem;
  max-width: 28rem;
  margin: 1.6rem auto 0;
}
.waitlist input {
  flex: 1;
  min-width: 0;
  background: var(--night-950);
  border: 1px solid var(--night-600);
  color: var(--text-hi);
  border-radius: 0.8rem;
  padding: 0.8rem 1rem;
  font: inherit;
  font-size: 0.92rem;
}
.waitlist input:focus {
  outline: 2px solid rgba(251, 191, 36, 0.5);
  outline-offset: 1px;
}
.waitlist .btn { padding: 0.8rem 1.6rem; }

.wl-msg {
  min-height: 1.6rem;
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: var(--text-mid);
}
.wl-ok { color: #5eead4; }
.wl-err { color: #f87171; }

/* ---------- فوتر ---------- */
.footer {
  border-top: 1px solid var(--line);
  margin-top: 4rem;
  padding-block: 2.25rem 2.5rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-low);
  font-size: 0.88rem;
}
.footer a {
  color: var(--text-mid);
  text-decoration: none;
  margin-inline-start: 1.1rem;
}
.footer a:hover { color: var(--text-hi); }

/* ---------- انیمیشن ظهور ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.features .reveal:nth-child(2), .steps .reveal:nth-child(2), .stats .reveal:nth-child(2) { transition-delay: 0.08s; }
.features .reveal:nth-child(3), .steps .reveal:nth-child(3), .stats .reveal:nth-child(3) { transition-delay: 0.16s; }
.features .reveal:nth-child(4) { transition-delay: 0.24s; }
.features .reveal:nth-child(5) { transition-delay: 0.32s; }
.features .reveal:nth-child(6) { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-card { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ---------- ریسپانسیو ---------- */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2.75rem;
    padding-block: 3.5rem;
  }
  .hero-visual { max-width: 30rem; }
  .fc-1 { inset-inline-start: 0.75rem; }
  .fc-2 { inset-inline-end: 0.75rem; }
  .split { grid-template-columns: 1fr; gap: 1.75rem; }
  .split.rev .split-img { order: -1; }
  .steps { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
  .section { padding-block: 3.25rem; }
  .waitlist { padding: 2.5rem 1.25rem; }
  .waitlist form { flex-direction: column; }
}

@media (max-width: 520px) {
  .langs a { padding: 0.25rem 0.5rem; font-size: 0.74rem; }
  .trust { gap: 0.8rem; }
}

/* دکمه‌ی دانلود با آیکون اندروید */
.btn svg { width: 1.2rem; height: 1.2rem; }

/* ---------- Legal pages (privacy / terms) ---------- */
.legal {
  max-width: 46rem;
  margin: 0 auto;
  padding: 5.5rem 0 4rem;
}
.legal h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin: 0.4rem 0 0.5rem;
}
.legal-meta {
  color: var(--text-mid);
  font-size: 0.9rem;
  margin-bottom: 1.6rem;
}
.legal .lead {
  font-size: 1.08rem;
  margin-bottom: 2.4rem;
}
.legal-sec {
  margin-bottom: 2.2rem;
}
.legal-sec h2 {
  font-size: 1.18rem;
  margin-bottom: 0.7rem;
}
.legal-sec p {
  line-height: 1.9;
  color: var(--text-mid);
}
.legal-sec ul {
  list-style: disc;
  padding-inline-start: 1.3rem;
  display: grid;
  gap: 0.55rem;
}
.legal-sec li {
  line-height: 1.85;
}
.legal-contact {
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.1rem 1.3rem;
  margin: 2.4rem 0 1.6rem;
}
.legal-contact a {
  font-weight: 700;
}

/* دکمه‌ی اندروید تا انتشار — غیرفعال با چیپ «به‌زودی» */
.btn-soon { cursor: default; opacity: 0.85; }
.btn-soon:hover { border-color: var(--night-600); color: var(--text-hi); }
.soon-chip {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-mid);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--night-600);
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
}
