@font-face { font-family: Vazirmatn; src: url(fonts/vazirmatn_regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Vazirmatn; src: url(fonts/vazirmatn_bold.woff2) format("woff2"); font-weight: 700 800; font-display: swap; }
/* وزن واقعی ۹۰۰ برای عنوان‌ها — قبلاً همان Bold بود */
@font-face { font-family: Vazirmatn; src: url(fonts/vazirmatn_black.woff2) format("woff2"); font-weight: 900; font-display: swap; }

/*
  رنگ‌ها همان پایه‌ی خنثی و رنگ تأکید (هلویی) اپ است (AppColorScheme.kt) — تم از دستگاه بازدیدکننده، پیش‌فرض تاریک.
  --primary نوشته/آیکون تأکید (در روشن نسخه‌ی تیره‌ی هلویی تا ۴٫۵ به ۱ بماند)، --accent سطح پُر (دکمه، قرص).
  CSP صفحه کد و استایل درون‌خطی را اجرا نمی‌کند: همه‌چیز همین فایل و site.js.

  ایده‌ی بصری: «محصول روی صحنه» — خود اپ (تصاویر واقعی) قهرمان صفحه است، جلوی یک قرص تخت هلویی مثل
  پوستر؛ بقیه‌ی صفحه آرام، با حاشیه‌ی سفید زیاد و یک خط عمودی مشترک برای تراز متن‌ها.
  ایده‌ی حرکت: فقط حرکتی که به کار کاربر جواب می‌دهد — با اسکرول سربرگ گوشی‌های کناری باز می‌شوند و قرص
  بزرگ می‌شود (وابسته به اسکرول، نه زمان)، در «چهار کار اصلی» صفحه‌ی گوشی با متن فعال عوض می‌شود، و مسیر
  سفارش مشتری یک بار کشیده می‌شود. هیچ حرکت بی‌پایانی نیست. کاهش حرکت ← حالت ایستا.
*/
:root {
  --bg: #000000; --raise: #16161C; --ink: #F1F3F2; --text-2: #A9A9B0; --muted: #85858C;
  --rule: rgba(241, 243, 242, .12);
  --accent: #F3C99F; --on-accent: #1C1C22; --primary: #F3C99F;
  --phone: #2A2A33; --screen: #202028; --shadow: rgba(0, 0, 0, .6);
  --ease-out: cubic-bezier(.2, 0, 0, 1);
  --col: min(1160px, 100% - 48px);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #F4F4F7; --raise: #FFFFFF; --ink: #1C1C22; --text-2: #55555D; --muted: #6A6A72;
    --rule: rgba(28, 28, 34, .1); --primary: #7A6550;
    --phone: #1C1C22; --screen: #FFFFFF; --shadow: rgba(28, 28, 34, .2);
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); overflow-x: clip; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 18px/1.9 Vazirmatn, Tahoma, sans-serif; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3, p, ul, figure { margin: 0; padding: 0; }
.col { width: var(--col); margin-inline: auto; }
[hidden] { display: none !important; }   /* بخش‌های منتظر اطلاعات واقعی (پشتیبانی/اینماد) — display کلاس‌ها بر hidden نچربد */
.hero .meta:empty { display: none; }     /* سرور اطلاعات نسخه را نداشت */
.foot-brand { display: inline-flex; align-items: center; gap: 10px; }
.foot-brand img { width: 24px; height: 24px; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 15px 30px; border-radius: 999px; font-weight: 800; line-height: 1.5;
  background: var(--accent); color: var(--on-accent); transition: transform .12s var(--ease-out); }
.btn:hover { transform: scale(1.03); }
.link { font-weight: 700; color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); padding-bottom: 2px; transition: box-shadow .15s var(--ease-out); }
.link:hover { box-shadow: inset 0 -10px 0 color-mix(in srgb, var(--accent) 45%, transparent); }

.phone { border: 8px solid var(--phone); border-radius: 36px; overflow: hidden; background: var(--screen); box-shadow: 0 30px 70px var(--shadow); }
.phone img { width: 100%; }

/* ── نوار بالا ── */
.nav { display: flex; align-items: center; justify-content: space-between; padding-block: 24px; position: relative; z-index: 3; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; font-size: 21px; }
.brand img { width: 38px; height: 38px; }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: 15px; color: var(--text-2); }
.nav-links a:hover { color: var(--ink); }
.nav .btn { padding: 10px 22px; font-size: 15px; }

/* ── سربرگ: متن وسط، صحنه‌ی محصول زیرش ── */
.hero { text-align: center; padding-top: 40px; }
.hero h1 { font-size: clamp(44px, 7.4vw, 104px); line-height: 1.12; font-weight: 900; letter-spacing: -1px; max-width: 12ch; margin-inline: auto; margin-bottom: 20px; text-wrap: balance; }
.hero .lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--text-2); max-width: 34em; margin-inline: auto; margin-bottom: 40px; text-wrap: pretty; }
.hero .cta { display: flex; justify-content: center; align-items: center; gap: 28px; flex-wrap: wrap; }

.hero .meta { margin-top: 20px; font-size: 14px; color: var(--muted); }
/* پایین صحنه نرم در زمینه محو می‌شود، نه لبه‌ی بریده‌ی صاف */
.stage { position: relative; height: 640px; margin-top: 48px; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
.disc { position: absolute; left: 50%; top: 150px; width: 1040px; aspect-ratio: 1; border-radius: 50%; background: var(--accent); translate: -50% 0; }
.stage .phone { position: absolute; left: 50%; top: 40px; width: 300px; }
.stage .p-mid { z-index: 2; translate: -50% 0; }
.stage .p-a, .stage .p-b { width: 250px; top: 120px; z-index: 1; }
.stage .p-a { translate: calc(-50% + 250px) 0; rotate: 7deg; }
.stage .p-b { translate: calc(-50% - 250px) 0; rotate: -7deg; }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .stage .p-a { animation: fanA linear both; animation-timeline: scroll(root); animation-range: 0 70vh; }
    .stage .p-b { animation: fanB linear both; animation-timeline: scroll(root); animation-range: 0 70vh; }
    .disc { animation: grow linear both; animation-timeline: scroll(root); animation-range: 0 70vh; }
  }
}
@keyframes fanA { from { translate: calc(-50% + 140px) 40px; rotate: 2deg; } to { translate: calc(-50% + 290px) 0; rotate: 9deg; } }
@keyframes fanB { from { translate: calc(-50% - 140px) 40px; rotate: -2deg; } to { translate: calc(-50% - 290px) 0; rotate: -9deg; } }
@keyframes grow { from { scale: .82; } to { scale: 1.06; } }

/* ── واقعیت‌ها: یک ردیف متن ساده زیر صحنه ── */
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 48px; padding-block: 40px; color: var(--text-2); font-size: 16px; border-bottom: 1px solid var(--rule); }
.facts b { color: var(--ink); font-weight: 800; }

/* ویدیوی نمایشی در گوشی وسط: تا فایلش نباشد/بارگذاری نشود پنهان است و همان تصویر ثابت دیده می‌شود */
.stage .demo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .4s var(--ease-out); }
.stage .demo.ready { opacity: 1; }

/* نوار وضعیت سربرگ اپ (تصویر واقعی) در دو حالت — حلقه دور همان نقطه */
.status { display: grid; gap: 20px; margin-top: 40px; max-width: 380px; }
.status figure { display: grid; gap: 8px; }
.strip { position: relative; border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px var(--rule); }
.strip::after { content: ""; position: absolute; left: 16.6%; top: 50%; width: 30px; height: 30px; translate: -50% -50%; border-radius: 50%; box-shadow: 0 0 0 2px var(--accent); }
.status figcaption { font-size: 15px; color: var(--text-2); }
.status figcaption b { color: var(--ink); }

/* ── پشتیبانی و اعتماد ── */
.trust { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; padding-block: 72px; border-top: 1px solid var(--rule); }
.trust h2 { font-size: clamp(26px, 2.8vw, 36px); margin-bottom: 12px; }
.trust p { color: var(--text-2); }
.trust .links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.trust .links a { padding: 10px 22px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--rule); font-weight: 700; transition: box-shadow .12s var(--ease-out); }
.trust .links a:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.seal { width: 112px; height: 112px; border-radius: 20px; border: 1.5px dashed var(--rule); display: grid; place-items: center; text-align: center; font-size: 13px; color: var(--muted); padding: 12px; line-height: 1.6; }

/* ── چهار کار اصلی: متن در جریان، گوشی ثابت ── */
.flow { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 96px; padding-block: 128px 64px; }
.flow-head { grid-column: 1 / -1; max-width: 22em; }
h2 { font-size: clamp(32px, 4.4vw, 58px); line-height: 1.2; font-weight: 900; letter-spacing: -.5px; text-wrap: balance; }
.flow-head h2 { margin-bottom: 0; }
.task { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; max-width: 30em; }
.task h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.35; font-weight: 900; margin-bottom: 12px; }
.task p { color: var(--text-2); }
.task .inline { display: none; }
.js .task { opacity: .28; transition: opacity .3s var(--ease-out); }
.js .task.on { opacity: 1; }
.flow-phone { position: sticky; top: max(24px, calc(50vh - 350px)); align-self: start; grid-column: 2; grid-row: 2 / span 4; }
.flow-phone .phone { position: relative; aspect-ratio: 720 / 1454; }
.flow-phone img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .3s var(--ease-out); }
.flow-phone img.on { opacity: 1; }
/* نشانگر مرحله: کار فعلی از چهار کار — همان ترتیب متن‌ها */
.steps-ind { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; font-size: 14px; color: var(--muted); text-align: center; }
.steps-ind li::before { content: ""; display: block; height: 4px; border-radius: 4px; background: var(--rule); margin-bottom: 8px; transition: background-color .3s var(--ease-out); }
.steps-ind li.on { color: var(--ink); font-weight: 700; }
.steps-ind li.on::before { background: var(--accent); }

/* دکمه‌ی دانلود ثابت پایین صفحه در موبایل — بعد از رد شدن از دکمه‌ی سربرگ ظاهر می‌شود */
.mcta { display: none; }

/* ── بدون اینترنت: یک جمله‌ی بزرگ + فهرست ── */
.more { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 96px; padding-block: 128px; border-top: 1px solid var(--rule); }
.more h2 { margin-bottom: 20px; }
.more .say { color: var(--text-2); max-width: 26em; }
.more ul { list-style: none; display: grid; gap: 32px; align-content: start; }
.more li b { display: block; font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.more li span { color: var(--text-2); }

/* ── فروشگاه: مسیر سفارش از گوشی مشتری به گوشی شما ── */
.shop { background: var(--raise); border-radius: 48px; margin-inline: 16px; padding-block: 120px; }
.shop-head { max-width: 30em; margin-bottom: 72px; }
.shop-head h2 { margin-bottom: 20px; }
.shop-head p { color: var(--text-2); }
.route { display: grid; grid-template-columns: 260px minmax(0, 1fr) 260px; align-items: center; gap: 24px; }
.route figcaption { text-align: center; font-weight: 800; margin-top: 16px; }
.wire { position: relative; height: 2px; }
.wire svg { position: absolute; inset: -12px 0; width: 100%; height: 26px; overflow: visible; }
.wire path { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .wire path { stroke-dashoffset: 1; transition: stroke-dashoffset .9s var(--ease-out); }
.js .wire.in path { stroke-dashoffset: 0; }
.wire ol { list-style: none; margin: 0; padding: 0; position: absolute; inset-inline: 0; top: 28px; display: flex; justify-content: space-between; font-size: 15px; color: var(--text-2); }
.wire li b { display: block; color: var(--ink); font-size: 16px; }
.js .wire li { opacity: 0; translate: 0 6px; transition: opacity .3s var(--ease-out), translate .3s var(--ease-out); }
.js .wire.in li { opacity: 1; translate: 0 0; }
.js .wire.in li:nth-child(2) { transition-delay: .3s; } .js .wire.in li:nth-child(3) { transition-delay: .6s; }

/* ── تعرفه ── */
.price { padding-block: 128px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 96px; align-items: end; }
.price h2 { margin-bottom: 20px; }
.price .say { color: var(--text-2); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plan { background: var(--raise); border-radius: 28px; padding: 32px; }
.plan.best { background: var(--accent); color: var(--on-accent); }
.plan small { display: block; font-size: 15px; opacity: .75; }
.plan b { display: block; font-size: clamp(30px, 3vw, 40px); font-weight: 900; line-height: 1.3; margin-block: 8px 2px; }
.note { color: var(--muted); font-size: 14px; margin-top: 16px; grid-column: 1 / -1; }

/* ── پرسش‌ها ── */
.faq { padding-block: 64px 128px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 96px; }
.faq details { padding-block: 20px; }
.faq details + details { border-top: 1px solid var(--rule); }
.faq summary { font-weight: 800; font-size: 20px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-weight: 400; font-size: 28px; line-height: 1.1; transition: rotate .2s var(--ease-out); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { color: var(--text-2); margin-top: 8px; }

.closing { text-align: center; padding-block: 128px; border-top: 1px solid var(--rule); }
.closing h2 { max-width: 13ch; margin: 0 auto 40px; font-size: clamp(36px, 5.6vw, 76px); }
.foot { padding-block: 32px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--rule); }
.foot .col { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.foot nav { display: flex; gap: 24px; }
.foot nav a { color: var(--ink); }

/* ── تبلت و موبایل ── */
@media (max-width: 980px) {
  .flow { grid-template-columns: minmax(0, 1fr); gap: 0; padding-block: 96px 32px; }
  .flow-phone { display: none; }
  .js .task { opacity: 1; }
  .task { min-height: 0; padding-top: 64px; }
  .task .inline { display: block; width: 260px; max-width: 100%; margin-top: 32px; }
  .more, .price, .faq { grid-template-columns: minmax(0, 1fr); gap: 48px; padding-block: 96px; }
  .trust { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .route { grid-template-columns: 1fr 1fr; }
  .wire { grid-column: 1 / -1; grid-row: 2; height: auto; }
  .wire svg { display: none; }
  .wire ol { position: static; justify-content: space-around; gap: 16px; margin-top: 8px; text-align: center; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .nav-links a:not(.btn) { display: none; }
  .hero { padding-top: 40px; }
  .stage { height: 460px; margin-top: 56px; }
  .disc { width: 640px; top: 120px; }
  .stage .phone { width: 210px; border-width: 6px; border-radius: 28px; }
  .stage .p-a, .stage .p-b { width: 170px; top: 90px; }
  .stage .p-a { translate: calc(-50% + 150px) 0; } .stage .p-b { translate: calc(-50% - 150px) 0; }
  @keyframes fanA { from { translate: calc(-50% + 90px) 30px; rotate: 2deg; } to { translate: calc(-50% + 160px) 0; rotate: 9deg; } }
  @keyframes fanB { from { translate: calc(-50% - 90px) 30px; rotate: -2deg; } to { translate: calc(-50% - 160px) 0; rotate: -9deg; } }
  .facts { gap: 8px 24px; font-size: 15px; }
  .shop { margin-inline: 8px; border-radius: 32px; padding-block: 72px; }
  .plans { grid-template-columns: 1fr; }
  .mcta { display: flex; position: fixed; inset-inline: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 20; box-shadow: 0 12px 28px var(--shadow); }
  /* پنهان‌شدن فقط با JS (site.js زمان ظاهرشدن را می‌داند)؛ بدون JS دکمه همیشه پیداست */
  .js .mcta { translate: 0 140%; transition: translate .25s var(--ease-out); }
  .js .mcta.show { translate: 0 0; }
  .foot { padding-bottom: 104px; }
  .closing { padding-block: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}
