/*
  آتووین — سیستم طراحی سایت

  همون زبان بصریِ اپ ویندوزی، با همون منطق:
  لوگو دو خانواده‌ی رنگی داره — آبیِ برق (نیمه‌ی WIN) و کرومِ فلزی (نیمه‌ی AUTO).
  تمِ تاریک = «کابین شب»: کرومِ روشن روی گرافیت.
  تمِ روشن  = «برگه‌ی فنی»: جوهرِ تیره روی کاغذِ سرد، و نقشِ کروم برعکس می‌شه
  به فولادِ تیره — چون نقره روی سفید ناپدید می‌شه. تم روشن معکوسِ تاریک نیست.
*/

/* ─────────────── فونت ─────────────── */
@font-face {
  font-family: "Vazir";
  src: url("../fonts/Vazir.398b39dd0060.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Vazir";
  src: url("../fonts/Vazir-Bold.8cea4a726814.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

/* ─────────────── توکن‌ها ─────────────── */
:root {
  --ground-1: #0a111d;
  --ground-2: #080b12;
  --ground-3: #06080e;
  --surface: #111826;
  --surface-2: #18212f;
  --surface-alt: #172032;
  --surface-hover: #1e2a40;
  --border: #232f47;
  --field: #0c111c;

  --text: #e6ecf5;
  --text-2: #8a97ac;
  --text-3: #5c6880;
  --chrome: #dce4ee;

  --volt-deep: #0b3fa8;
  --volt: #1e6fff;
  --volt-bright: #58c8ff;

  --jade: #2fdc9a;
  --amber: #ffb13d;
  --signal: #ff5a6e;

  --shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.35);
  --hairline: rgba(255, 255, 255, 0.06);
  --glow: 0.42;

  --radius: 20px;
  --radius-sm: 12px;
  --maxw: 1180px;
  --mono: "Cascadia Mono", Consolas, "Courier New", monospace;
}

html[data-theme="light"] {
  --ground-1: #eaeff7;
  --ground-2: #e3e9f2;
  --ground-3: #dbe2ee;
  --surface: #f5f8fc;
  --surface-2: #f8fafe;
  --surface-alt: #eaeff7;
  --surface-hover: #dfe7f2;
  --border: #c9d3e2;
  --field: #fcfdff;

  --text: #101a2b;
  --text-2: #54617a;
  --text-3: #8592a8;
  --chrome: #1b2739;

  --volt-deep: #0b3fa8;
  --volt: #1662e8;
  --volt-bright: #0a5ad9;

  --jade: #0a8f5f;
  --amber: #b26a05;
  --signal: #cf2438;

  --shadow: 0 18px 44px rgba(16, 26, 43, 0.13);
  --shadow-sm: 0 8px 22px rgba(16, 26, 43, 0.09);
  --hairline: rgba(16, 26, 43, 0.05);
  --glow: 0.16;
}

/* ─────────────── پایه ─────────────── */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Vazir", "Segoe UI", Tahoma, sans-serif;
  background: linear-gradient(180deg, var(--ground-1) 0%, var(--ground-2) 55%, var(--ground-3) 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-weight: 700; line-height: 1.5; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }

.mono { font-family: var(--mono); direction: ltr; unicode-bidi: isolate; }

/* برچسبِ بالای بخش‌ها — فقط برای متن لاتین، فارسی رو نباید کشید */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--text-3);
  text-transform: uppercase;
}

/* ─────────────── پس‌زمینه‌ی زنده ───────────────
   جاده‌ی لوگو، به‌صورت یک صحنه‌ی سه‌بعدی: افقِ نورانی، خطوطِ همگرا، و
   خط‌چین‌هایی که به‌سمت بیننده می‌آن. این تنها تزئینِ صفحه‌ست و بقیه‌ی
   طراحی عمداً آرومه.                                                     */
.scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.scene__aurora {
  position: absolute;
  top: -32vh;
  left: 50%;
  width: 140vw;
  height: 78vh;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, var(--volt) 0%, transparent 62%);
  opacity: var(--glow);
  filter: blur(90px);
}

.scene__road {
  position: absolute;
  inset: auto 0 0 0;
  height: 62vh;
  perspective: 42vh;
  perspective-origin: 50% 0%;
  opacity: 0.5;
  mask-image: linear-gradient(to top, #000 8%, transparent 92%);
  -webkit-mask-image: linear-gradient(to top, #000 8%, transparent 92%);
}

.scene__grid {
  position: absolute;
  inset: -60% -50% -110% -50%;
  transform: rotateX(78deg);
  transform-origin: 50% 0%;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 7rem 7rem;
  animation: road-run 5.5s linear infinite;
}

@keyframes road-run {
  to { background-position: 0 7rem; }
}

/* خط‌چینِ وسطِ جاده — همون المانِ لوگو */
.scene__dashes {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 2.5rem;
  height: 62vh;
  transform: translateX(-50%);
  background: repeating-linear-gradient(
    to bottom,
    var(--volt-bright) 0 2.5rem,
    transparent 2.5rem 6rem
  );
  opacity: 0.16;
  mask-image: linear-gradient(to top, #000 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 70%);
  animation: dash-run 1.6s linear infinite;
}

@keyframes dash-run {
  to { background-position: 0 6rem; }
}

/* ─────────────── آیکون‌ها ───────────────
   نمایشِ آیکونِ تم با CSS و بر اساس خودِ data-theme کنترل می‌شه، نه با
   دستکاریِ صفتِ hidden از جاوااسکریپت. قبلاً اون‌طوری بود و وقتی JS دیر
   می‌رسید یا خطا می‌خورد، هر دو آیکون با هم دیده می‌شدن و دکمه دو برابر
   می‌شد. این شکل حتی بدون جاوااسکریپت هم درسته.                          */
.ico { width: 1.15em; height: 1.15em; flex: none; }

[data-theme="dark"]  .icon--moon { display: none; }
[data-theme="light"] .icon--sun  { display: none; }

.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  z-index: 200;
  padding: 0.7rem 1.2rem;
  background: var(--volt);
  color: #fff;
  border-radius: 0 0 12px 0;
}
.skip-link:focus { inset-inline-start: 0; }

:focus-visible {
  outline: 2px solid var(--volt-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ─────────────── هدر ─────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--ground-2) 76%, transparent);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 62px;
  padding: 0.6rem 0;
}

.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 34px; width: auto; }

/* لینک‌ها داخل یک قرصِ فرورفته، نه چسبیده به نوار — مرزِ ناحیه‌ی ناوبری رو مشخص می‌کنه */
.site-nav {
  display: flex;
  gap: 0.2rem;
  margin-inline: auto;
  padding: 0.28rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  border: 1px solid var(--border);
}

.site-nav a {
  position: relative;
  padding: 0.45rem 1.05rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text-2);
  transition: color 0.16s, background 0.16s;
}
.site-nav a:hover { color: var(--text); }
.site-nav a.is-active {
  color: var(--text);
  background: color-mix(in srgb, var(--volt) 18%, transparent);
}

.site-header__actions { display: flex; align-items: center; gap: 0.55rem; flex: none; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  transition: background 0.16s, color 0.16s, border-color 0.16s;
}
.icon-btn:hover { background: var(--surface-hover); color: var(--text); }
.icon-btn .ico { width: 19px; height: 19px; }

/* ─────────────── قهرمانِ صفحه ─────────────── */
.hero {
  text-align: center;
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(2.5rem, 6vw, 4.5rem);
}

.hero__logo {
  width: min(360px, 74vw);
  margin-inline: auto;
  filter: drop-shadow(0 12px 34px rgba(30, 111, 255, 0.28));
}

.hero__title {
  font-size: clamp(1.75rem, 5vw, 3rem);
  color: var(--chrome);
  margin-top: 1.6rem;
}

.hero__sub {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: clamp(1rem, 2.4vw, 1.3rem);
  color: var(--text-2);
  margin-top: 0.6rem;
}

.hero__intro {
  max-width: 46rem;
  margin: 1.6rem auto 0;
  color: var(--text-2);
  font-size: 1.02rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-top: 2.2rem;
}

/* ─────────────── قلبِ شعار ───────────────
   به‌جای ایموجی: یک شکلِ واقعی با گرادیانتِ برند و ضربانِ دوتاییِ قلب.
   ایموجی در هر سیستمی یه شکل دیگه‌ست و با هویت برند هم کاری نداره.        */
.heart {
  width: 1.35em;
  height: 1.35em;
  flex: none;
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--volt-bright) 55%, transparent));
  animation: heartbeat 2.4s ease-in-out infinite;
  transform-origin: 50% 55%;
}

@keyframes heartbeat {
  0%, 100%   { transform: scale(1); }
  12%        { transform: scale(1.22); }
  24%        { transform: scale(1); }
  36%        { transform: scale(1.14); }
  48%        { transform: scale(1); }
}

/* ─────────────── دکمه‌ها ─────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.16s, box-shadow 0.16s, background 0.16s, border-color 0.16s;
}
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--volt-deep), var(--volt) 55%, var(--volt-bright));
  box-shadow: 0 10px 26px color-mix(in srgb, var(--volt) 34%, transparent);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px color-mix(in srgb, var(--volt) 44%, transparent); }

.btn--ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.btn--ghost:hover { background: var(--surface-hover); transform: translateY(-2px); }

.btn--sm { padding: 0.55rem 1rem; font-size: 0.86rem; border-radius: 11px; }
.btn--block { width: 100%; justify-content: center; }
.btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }

/* ─────────────── بخش‌ها ─────────────── */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }

.section__head { text-align: center; margin-bottom: 2.6rem; }
.section__title {
  font-size: clamp(1.4rem, 3.4vw, 2.05rem);
  color: var(--chrome);
  margin-top: 0.5rem;
}
.section__lead { color: var(--text-2); margin-top: 0.6rem; }

/* ─────────────── کارت ─────────────── */
.card {
  position: relative;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
/* لبه‌ی روشنِ بالا — همون «نورِ از بالا»ی سطوح فلزی */
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: var(--hairline);
}
.card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--volt-bright) 55%, var(--border));
  box-shadow: var(--shadow);
}

.grid {
  display: grid;
  gap: 1.3rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

/* ─── ربات‌ها ─── */
.bot { padding: 1.9rem 1.4rem; text-align: center; }

.bot__logo {
  width: 74px;
  height: 74px;
  margin-inline: auto;
  border-radius: 50%;
  object-fit: contain;
  background: var(--surface-alt);
  padding: 0.5rem;
}

.bot__avatar {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin-inline: auto;
  border-radius: 50%;
  font-size: 1.7rem;
  font-weight: 700;
  color: #fff;
}

.bot__name { margin-top: 1rem; font-size: 1.05rem; color: var(--text); }
.bot__tagline { margin-top: 0.4rem; font-size: 0.86rem; color: var(--text-2); }

.chip {
  display: inline-block;
  margin-top: 0.9rem;
  padding: 0.15rem 0.6rem 0.25rem;
  border-radius: 7px;
  background: color-mix(in srgb, var(--text-2) 12%, transparent);
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 0.72rem;
  direction: ltr;
}

/* ─── دانلود ─── */
.dl { display: flex; flex-direction: column; gap: 1rem; padding: 1.9rem; }
.dl__top { display: flex; align-items: center; gap: 1rem; }

.dl__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 14px;
  background: color-mix(in srgb, var(--volt) 16%, transparent);
  color: var(--volt-bright);
}
.dl__icon svg { width: 26px; height: 26px; }

.dl__title { font-size: 1.08rem; color: var(--text); }
.dl__desc { font-size: 0.88rem; color: var(--text-2); margin-top: 0.25rem; }

.dl__meta {
  display: flex;
  gap: 1.1rem;
  font-size: 0.78rem;
  color: var(--text-3);
  font-family: var(--mono);
  direction: ltr;
  justify-content: flex-end;
}

/* ─── نمونه‌های کارکرد ─── */
.proof { padding: 0; }
.proof__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--surface-alt);
  overflow: hidden;
}
.proof__media img,
.proof__media video { width: 100%; height: 100%; object-fit: cover; }

.proof__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.55));
  color: #fff;
  cursor: pointer;
}
.proof__play span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--volt) 88%, transparent);
  box-shadow: 0 8px 28px color-mix(in srgb, var(--volt) 55%, transparent);
  transition: transform 0.18s;
}
.proof__play:hover span { transform: scale(1.09); }
.proof__play svg { width: 22px; height: 22px; margin-inline-start: 3px; }

.proof__body { padding: 1.15rem 1.3rem 1.5rem; }
.proof__title { font-size: 0.98rem; color: var(--text); }
.proof__caption { font-size: 0.84rem; color: var(--text-2); margin-top: 0.35rem; }

/* ─── تلگرام ─── */
.telegram {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  padding: 2.2rem;
  text-align: start;
}
.telegram__icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  flex: none;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--volt-deep), var(--volt-bright));
  color: #fff;
}
.telegram__icon svg { width: 30px; height: 30px; }
.telegram__text { flex: 1 1 16rem; }
.telegram__title { font-size: 1.15rem; color: var(--text); }
.telegram__desc { font-size: 0.9rem; color: var(--text-2); margin-top: 0.3rem; }

/* ─── حالت خالی ─── */
.empty {
  text-align: center;
  padding: 2.8rem 1rem;
  color: var(--text-3);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  font-size: 0.92rem;
}

/* ─────────────── فوتر ─────────────── */
.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--ground-3) 82%, transparent);
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(16rem, 2fr) 1fr 1fr;
  gap: 2.5rem;
  padding: 3rem 0 2.2rem;
}

.site-footer__brand img { height: 42px; width: auto; }
.site-footer__brand p {
  margin-top: 1rem;
  max-width: 30rem;
  font-size: 0.88rem;
  color: var(--text-2);
}

.site-footer__col { display: flex; flex-direction: column; gap: 0.7rem; }
.site-footer__col h3 {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--text-3);
  margin-bottom: 0.2rem;
}
.site-footer__col a {
  font-size: 0.9rem;
  color: var(--text-2);
  transition: color 0.16s;
  width: fit-content;
}
.site-footer__col a:hover { color: var(--volt-bright); }

.site-footer__bottom {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  padding: 1.1rem 0 1.6rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-3);
}
.site-footer__spacer { margin-inline-start: auto; }

/* ─────────────── نوار پایینِ موبایل ───────────────
   الگوی اپ‌های فروشگاهی: بالای صفحه فقط برند، ناوبری در دسترسِ شست.       */
.tabbar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 60;
  display: none;
  justify-content: space-around;
  gap: 0.2rem;
  padding: 0.45rem 0.4rem calc(0.45rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--ground-2) 92%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--border);
}

.tabbar a,
.tabbar button {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.22rem;
  padding: 0.42rem 0.2rem;
  border: 0;
  border-radius: 12px;
  background: none;
  font: inherit;
  font-size: 0.68rem;
  color: var(--text-3);
  cursor: pointer;
  transition: color 0.16s, background 0.16s;
}
.tabbar .ico { width: 21px; height: 21px; }
.tabbar a:hover,
.tabbar button:hover { color: var(--text-2); }
.tabbar a.is-active {
  color: var(--volt-bright);
  background: color-mix(in srgb, var(--volt) 14%, transparent);
}

/* ─────────────── ظاهر شدن هنگام اسکرول ─────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.2, 0.7, 0.3, 1),
              transform 0.65s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ─────────────── لایت‌باکس ویدیو ─────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
}
.lightbox[hidden] { display: none; }
.lightbox video {
  width: min(100%, 60rem);
  max-height: 82vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.lightbox__close {
  position: absolute;
  top: 1.2rem;
  inset-inline-end: 1.2rem;
}

/* ─────────────── احترام به تنظیمِ کاهش حرکت ─────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ─────────────── ریسپانسیو ─────────────── */

/* تبلت: لینک‌های وسط جا نمی‌شن، ولی هنوز نوار پایین لازم نیست */
@media (max-width: 900px) {
  .site-nav { display: none; }
  .site-header__inner { justify-content: space-between; }
}

/* موبایل: بالا فقط برند، ناوبری می‌ره به نوار پایین */
@media (max-width: 720px) {
  :root { --radius: 16px; }

  body {
    /* جا برای نوار پایین، وگرنه فوتر زیرش گم می‌شه */
    padding-bottom: calc(4.6rem + env(safe-area-inset-bottom));
  }

  .tabbar { display: flex; }
  .hide-sm { display: none !important; }

  .site-header__inner { min-height: 56px; justify-content: center; }
  .brand { margin-inline: auto; }          /* بالا فقط برند */
  /* کلید تم و تلگرام هر دو توی نوار پایین هستن — تکرارشون بالا فقط شلوغی بود */
  .site-header__actions { display: none; }

  .wrap { width: min(100% - 2rem, var(--maxw)); }

  .hero { padding-top: 2.5rem; }
  .hero__logo { width: min(280px, 76vw); }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { justify-content: center; }

  .grid { grid-template-columns: 1fr; gap: 1rem; }

  .site-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem;
    padding: 2.2rem 0 1.6rem;
  }
  .site-footer__brand { grid-column: 1 / -1; }

  .telegram { flex-direction: column; align-items: stretch; text-align: center; }
  .telegram__icon { margin-inline: auto; }
  .telegram .btn { justify-content: center; }

  .dl__meta { justify-content: space-between; }
}

@media (max-width: 400px) {
  .tabbar a span,
  .tabbar button span { font-size: 0.62rem; }
  .site-footer__top { grid-template-columns: 1fr; }
}
