/* =========================================================
   آدین — سیستم مدیریت فروشگاه | تم سفید-طلایی
   یک فایل CSS واحد (بدون Bootstrap و vendor اضافه)
   ========================================================= */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Yekan';
  src: local('☺'), url('../fonts/IRANYekanX-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Yekan';
  src: local('☺'), url('../fonts/IRANYekanX-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --bg:            #ffffff;
  --bg-warm:       #fbf8f1;   /* پس‌زمینه ملایم بخش‌های یک‌درمیان */
  --surface:       #ffffff;
  --ink:           #1c1b17;   /* عنوان‌ها */
  --text:          #46443d;   /* متن */
  --muted:         #8b877a;
  --line:          #ece5d5;   /* خطوط مویی */

  --gold:          #c8a24a;
  --gold-deep:     #a6841c;
  --gold-soft:     #e6cd84;
  --gold-tint:     #f7efdc;
  --gold-grad:     linear-gradient(135deg, #e6cd84 0%, #c8a24a 45%, #a6841c 100%);
  --gold-btn:      linear-gradient(135deg, #f3cf5b 0%, #ffe58f 55%, #f0c94a 100%);

  --shadow-sm: 0 2px 10px rgba(31, 27, 15, .05);
  --shadow-md: 0 14px 40px rgba(31, 27, 15, .08);
  --shadow-gold: 0 18px 44px rgba(200, 162, 74, .22);

  --radius: 18px;
  --radius-sm: 12px;
  --container: 1180px;
  --nav-h: 74px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); overflow-x: clip; }
body {
  margin: 0;
  font-family: 'Yekan', Tahoma, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.9;
  direction: rtl;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-weight: 700; color: var(--ink); line-height: 1.45; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.section { padding: 92px 0; position: relative; }
.section--warm { background: var(--bg-warm); }
.center { text-align: center; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center;
  background: #fffdf8; transition: opacity .4s var(--ease); opacity: 1;
  animation: loaderFail .4s var(--ease) 5s forwards;   /* اگر JS اجرا نشد، خودکار محو شود */
}
.loader.hide { opacity: 0; pointer-events: none; }
@keyframes loaderFail { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.loader-ring {
  width: 46px; height: 46px; border-radius: 50%;
  border: 4px solid var(--line); border-top-color: var(--gold);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* رزرو فضای تصاویر با نسبت‌ابعادِ نامشخص (جلوگیری از CLS) */
.media-ar { width: 100%; max-width: 340px; aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden; }
.media-ar img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Buttons ---------- */
.btn {
  --_bg: var(--gold-btn);
  display: inline-flex; align-items: center; gap: .5em;
  padding: 14px 30px;
  font-family: inherit; font-weight: 700; font-size: 1rem;
  color: #35270a; background: var(--_bg);
  border: 0; border-radius: 999px; cursor: pointer;
  box-shadow: var(--shadow-gold);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), filter .3s var(--ease);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 22px 52px rgba(200,162,74,.34); filter: brightness(1.04); }
.btn:active { transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; }
.btn--ghost {
  --_bg: transparent;
  color: var(--gold-deep);
  border: 1.5px solid var(--gold);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--gold-tint); box-shadow: none; }
.btn--lg { padding: 17px 42px; font-size: 1.08rem; }

/* ---------- Section title ---------- */
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700;
  letter-spacing: .14em; color: var(--gold-deep);
  padding: 6px 16px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--surface); margin-bottom: 18px;
}
.title { font-size: clamp(1.7rem, 3.4vw, 2.55rem); }
.title .u {
  background: var(--gold-grad); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent;
}
.lead { font-size: 1.08rem; color: var(--muted); max-width: 640px; margin-inline: auto; }
.title-wrap { margin-bottom: 56px; }
.title-wrap .rule {
  width: 74px; height: 4px; margin: 20px auto 0;
  border-radius: 4px; background: var(--gold-grad);
}

/* =========================================================
   Header / Nav
   ========================================================= */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.header.is-stuck { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand img { width: auto; height: 46px; display: block; }
.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-menu a {
  position: relative; padding: 8px 14px; font-size: .98rem; color: var(--text);
  border-radius: 10px; transition: color .25s var(--ease), background .25s var(--ease);
}
.nav-menu a::after {
  content: ''; position: absolute; inset-inline: 14px; bottom: 4px; height: 2px;
  background: var(--gold-grad); border-radius: 2px; transform: scaleX(0);
  transform-origin: right; transition: transform .3s var(--ease);
}
.nav-menu a:hover { color: var(--gold-deep); }
.nav-menu a:hover::after, .nav-menu a.active::after { transform: scaleX(1); }
.nav-cta { margin-inline-start: 8px; padding: 10px 22px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--surface); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ''; display: block; width: 20px; height: 2px; background: var(--ink);
  border-radius: 2px; transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after  { transform: translateY(4px); }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: rotate(45deg); }
.nav-toggle.open span::after  { transform: rotate(-45deg) translateY(-1px); }

/* =========================================================
   Hero
   ========================================================= */
.hero { position: relative; padding: 70px 0 90px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -30% 30% auto -10%; height: 640px;
  background: radial-gradient(closest-side, rgba(200,162,74,.20), transparent 70%);
  pointer-events: none; z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 48px; }
.hero-title { font-size: clamp(2rem, 4.6vw, 3.35rem); line-height: 1.35; margin-bottom: 22px; }
.hero-title .u {
  background: var(--gold-grad); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-text { font-size: 1.12rem; color: var(--text); max-width: 540px; }
.hero-sub { color: var(--muted); font-size: .98rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 26px; }
.platforms { display: flex; align-items: center; gap: 18px; color: var(--muted); }
.platforms svg { width: 26px; height: 26px; fill: var(--gold-deep); opacity: .85; transition: transform .3s var(--ease); }
.platforms svg:hover { transform: translateY(-3px) scale(1.08); opacity: 1; }

.hero-media { position: relative; display: flex; justify-content: center; }
.hero-media::before {
  content: ''; position: absolute; inset: 8% 12%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(200,162,74,.28), transparent 72%);
  filter: blur(6px); z-index: 0;
}
.hero-media img { position: relative; z-index: 1; max-width: 330px; filter: drop-shadow(0 30px 45px rgba(31,27,15,.18)); animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* =========================================================
   Feature cards
   ========================================================= */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.f-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 24px; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.f-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: var(--gold-soft); }
.f-ico {
  width: 68px; height: 68px; display: grid; place-items: center; margin-bottom: 18px;
  border-radius: 18px; background: var(--gold-tint); border: 1px solid var(--line);
}
.f-ico img { width: 38px; }
.f-card h4 { font-size: 1.18rem; margin-bottom: 14px; }
.f-list li {
  position: relative; padding-inline-start: 20px; margin-bottom: 8px;
  font-size: .93rem; color: var(--text); line-height: 1.75;
}
.f-list li::before {
  content: ''; position: absolute; inset-inline-start: 0; top: .62em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold-grad);
}

/* =========================================================
   Showcase (laptop) + alternating rows
   ========================================================= */
.showcase { padding: 40px 0 0; }
.showcase-frame {
  position: relative; border-radius: 22px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.showcase-frame::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.6);
  border-radius: 22px;
}

.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 54px; }
.split + .split { margin-top: 30px; }
.split .media { display: flex; justify-content: center; }
.split .media img {
  max-width: 340px; border-radius: 20px;
  filter: drop-shadow(0 24px 40px rgba(31,27,15,.14));
}
.split .copy h4 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.split .copy p { font-size: 1.05rem; }
.split--rev .media { order: 2; }
.split--rev .copy  { order: 1; }

/* ---------- Promo cards (آنلاین‌شاپ / کاتالوگ) ---------- */
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 20px; }
.promo-card {
  border: 1px solid var(--gold-soft); border-radius: 22px; padding: 30px;
  box-shadow: var(--shadow-sm); text-align: center;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.promo-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.promo-card--a { background: linear-gradient(160deg, #fff9ec 0%, #fdf1d5 100%); }
.promo-card--b { background: linear-gradient(160deg, #fff9ec 0%, #fdf1d5 100%); }
.promo-media {
  width: 100%; aspect-ratio: 16 / 10; margin-bottom: 20px;
  border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.7);
}
.promo-media img { width: 100%; height: 100%; object-fit: contain; }
.promo-card h4 { font-size: 1.3rem; margin-bottom: 10px; }
.promo-card p { color: var(--text); margin-bottom: 22px; }

/* =========================================================
   Screenshots carousel
   ========================================================= */
.carousel { position: relative; }
.carousel-track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 10px 4px 24px; scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 auto; width: 250px; scroll-snap-align: center;
  border-radius: 22px; overflow: hidden; border: 1px solid var(--line);
  background: var(--surface); box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.slide:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.slide img { width: 100%; }
.carousel-nav { display: flex; justify-content: center; gap: 14px; margin-top: 10px; }
.c-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--gold-deep); cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s;
}
.c-btn:hover { background: var(--gold-grad); color: #35270a; transform: translateY(-2px); }
.c-btn svg { width: 20px; height: 20px; }

/* =========================================================
   Download CTA band
   ========================================================= */
.cta-band { position: relative; overflow: hidden; }
.cta-inner {
  background: linear-gradient(135deg, #fffaf0, #fbf1d9);
  border: 1px solid var(--gold-soft); border-radius: 28px;
  padding: 60px 40px; text-align: center; box-shadow: var(--shadow-md);
  position: relative; overflow: hidden;
}
.cta-inner > * { position: relative; z-index: 1; }
.cta-inner h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.cta-inner p { color: var(--text); max-width: 560px; margin: 0 auto 26px; }
.cta-platforms { display: flex; justify-content: center; gap: 20px; margin-top: 26px; color: var(--muted); }
.cta-platforms svg { width: 24px; height: 24px; fill: var(--gold-deep); }

/* =========================================================
   Comments / Questions
   ========================================================= */
/* تک‌ستونه و مقاوم در برابر سرریز افقی */
.cmt-wrap { max-width: 780px; margin-inline: auto; }

.cmt-form {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm);
  margin-bottom: 40px;
}
.cmt-form h3 { font-size: 1.35rem; }
.field { margin-bottom: 16px; min-width: 0; }
.field label { display: block; font-size: .92rem; margin-bottom: 8px; color: var(--ink); font-weight: 700; }
.field input, .field textarea, .field select {
  width: 100%; max-width: 100%; padding: 13px 15px; font-family: inherit; font-size: .98rem;
  color: var(--ink); background: var(--bg-warm);
  border: 1px solid var(--line); border-radius: 12px; outline: none;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--gold); background: var(--surface);
  box-shadow: 0 0 0 4px rgba(200,162,74,.14);
}
.seg { display: flex; gap: 10px; }
.seg label {
  flex: 1; text-align: center; padding: 11px; border: 1px solid var(--line);
  border-radius: 12px; cursor: pointer; background: var(--bg-warm);
  font-weight: 700; font-size: .92rem; transition: all .25s var(--ease);
}
.seg input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.seg input:checked + label,
.seg label:hover { border-color: var(--gold); background: var(--gold-tint); color: var(--gold-deep); }
.hp {                                          /* honeypot امن، بدون سرریز افقی */
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.form-msg { margin-top: 14px; font-size: .95rem; border-radius: 12px; padding: 0; }
.form-msg.show { padding: 12px 16px; }

/* دکمه‌ی ارسال + انیمیشن موشک کاغذی و حالت «ارسال شد» */
.send-btn {
  width: 40%; min-width: 150px; margin-inline: auto;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  overflow: hidden; transition: color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}
.send-ico { display: inline-flex; }
.send-ico svg { width: 20px; height: 20px; }
.ico-tick { display: none; }
.send-label { transition: opacity .2s var(--ease); }

/* حالت در حال ارسال: هواپیمای کاغذی پرواز می‌کند */
.send-btn.sending .ico-plane svg { animation: paperFly .6s var(--ease) forwards; }

/* حالت ارسال‌شد: تیک سبز + متن سبز */
.send-btn.sent { color: #157a3a; }
.send-btn.sent .ico-plane { display: none; }
.send-btn.sent .ico-tick { display: inline-flex; animation: pop .35s var(--ease); }

@keyframes paperFly {
  0%   { transform: translate(0,0) rotate(0); opacity: 1; }
  35%  { transform: translate(6px,-3px) rotate(8deg); opacity: 1; }
  100% { transform: translate(64px,-42px) rotate(24deg); opacity: 0; }
}
@keyframes pop { 0% { transform: scale(0); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
.form-msg.ok  { background: #eef8ef; color: #1f7a3d; border: 1px solid #cfebcf; }
.form-msg.err { background: #fdf0f0; color: #b3372f; border: 1px solid #f4d4d1; }

.cmt-list { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cmt-empty { color: var(--muted); text-align: center; padding: 30px; border: 1px dashed var(--line); border-radius: var(--radius); }
.cmt {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 20px 22px; box-shadow: var(--shadow-sm);
  min-width: 0;
}
.cmt-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.cmt-who { min-width: 0; }
.cmt-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; font-weight: 700; color: #35270a;
  background: var(--gold-grad);
}
.cmt-name { font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.cmt-date { font-size: .82rem; color: var(--muted); }
.cmt-date .dot { color: var(--gold); font-weight: 700; }
.badge {
  margin-inline-start: auto; flex: 0 0 auto; font-size: .74rem; font-weight: 700; padding: 4px 12px;
  border-radius: 999px; border: 1px solid var(--line); white-space: nowrap;
}
.badge--q { color: var(--gold-deep); background: var(--gold-tint); border-color: var(--gold-soft); }
.badge--r { color: #4a4a4a; background: #f3f2ee; }
.cmt-body { font-size: .98rem; color: var(--text); margin: 0; overflow-wrap: anywhere; }

/* ابزار (دکمه‌ی پاسخ) */
.cmt-tools { margin-top: 12px; }
.reply-toggle {
  display: inline-flex; align-items: center; gap: 6px; font-family: inherit;
  font-size: .86rem; font-weight: 700; color: var(--gold-deep); cursor: pointer;
  background: none; border: 0; padding: 4px 0; transition: color .2s var(--ease);
}
.reply-toggle:hover { color: var(--gold); }
.reply-toggle svg { width: 16px; height: 16px; }

/* پاسخ‌ها */
.cmt-replies { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.cmt-reply-item {
  padding: 14px 16px; border-radius: 10px; font-size: .94rem; min-width: 0;
  border-inline-start: 3px solid var(--line); background: var(--bg-warm);
}
.cmt-reply-item p { margin: 6px 0 0; overflow-wrap: anywhere; }
.cmt-reply-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cmt-reply-item.is-admin { border-inline-start-color: var(--gold); background: var(--gold-tint); }
.admin-ic {
  width: 26px; height: 26px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; color: #35270a; background: var(--gold-grad);
}
.admin-ic svg { width: 15px; height: 15px; }
.admin-tag {
  font-size: .7rem; font-weight: 700; color: var(--gold-deep);
  background: var(--surface); border: 1px solid var(--gold-soft);
  padding: 2px 9px; border-radius: 999px;
}

/* فرم پاسخِ درون‌خطی */
.reply-form { margin-top: 14px; padding: 16px; border: 1px dashed var(--line); border-radius: 12px; background: var(--bg-warm); }
.reply-form[hidden] { display: none; }
.reply-form .field { margin-bottom: 12px; }
.reply-form textarea { min-height: 80px; }
.reply-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.reply-row .btn { padding: 11px 24px; }
.reply-msg { width: 100%; font-size: .9rem; margin-top: 4px; }
.reply-msg.ok  { color: #1f7a3d; }
.reply-msg.err { color: #b3372f; }

/* =========================================================
   پس‌زمینه‌ی محیطی (هماهنگ با صفحه‌ی دانلود)
   ========================================================= */
.page-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.page-bg .b-circle { position: absolute; border-radius: 50%; filter: blur(8px); }
.page-bg .b1 {
  width: 520px; height: 520px; top: -180px; inset-inline-start: -140px;
  background: radial-gradient(closest-side, rgba(200,162,74,.20), transparent 70%);
}
.page-bg .b2 {
  width: 460px; height: 460px; top: 34%; inset-inline-end: -180px;
  background: radial-gradient(closest-side, rgba(230,205,132,.16), transparent 70%);
}
.page-bg .b3 {
  width: 440px; height: 440px; bottom: 6%; inset-inline-start: 8%;
  background: radial-gradient(closest-side, rgba(200,162,74,.12), transparent 70%);
}
.page-bg .b-grid {
  position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(to right, rgba(200,162,74,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(200,162,74,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 75%);
          mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 75%);
}

/* =========================================================
   Comments pagination
   ========================================================= */
.cmt-pager {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 8px; margin-top: 30px;
}
.pg-btn {
  min-width: 42px; height: 42px; padding: 0 12px; font-family: inherit; font-weight: 700;
  font-size: .95rem; color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
  transition: all .25s var(--ease);
}
.pg-btn:hover:not(:disabled):not(.active) { border-color: var(--gold); color: var(--gold-deep); transform: translateY(-2px); }
.pg-btn.active { color: #35270a; background: var(--gold-btn); border-color: transparent; box-shadow: var(--shadow-gold); }
.pg-btn:disabled { opacity: .4; cursor: default; }
.pg-gap { color: var(--muted); padding: 0 4px; }
/* =========================================================
   Footer
   ========================================================= */
.footer { background: #16150f; color: #ded7c6; padding: 60px 0 26px; }
.footer h5 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer a { color: #e2dbca; transition: color .2s; }
.footer a:hover { color: var(--gold-soft); }
.footer-links li { margin-bottom: 10px; }
.footer .brand-line { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer .brand-line img { width: 64px; border-radius: 50%; }
.social { display: flex; gap: 12px; }
.social a {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.12); transition: all .25s var(--ease);
}
.social a:hover { border-color: var(--gold); background: rgba(200,162,74,.14); transform: translateY(-3px); }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 22px;
  text-align: center; font-size: .9rem; color: #b7b09c;
}

/* back-to-top */
.to-top {
  position: fixed; inset-block-end: 26px; inset-inline-start: 26px; z-index: 90;
  width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--gold-btn); color: #35270a; box-shadow: var(--shadow-gold);
  display: grid; place-items: center; opacity: 0; transform: translateY(16px);
  pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top svg { width: 22px; height: 22px; }

/* =========================================================
   Scroll reveal
   ========================================================= */
/* reveal فقط وقتی جاوااسکریپت فعال است (بدون نیاز به اسکریپت inline → سازگار با CSP سخت‌گیرانه) */
@media (scripting: enabled) {
  .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
}
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 992px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .section { padding: 66px 0; }
  .nav-menu {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 4px; padding: 16px 22px 26px; background: rgba(255,255,255,.98);
    backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md); transform: translateY(-12px); opacity: 0;
    pointer-events: none; transition: opacity .28s var(--ease), transform .28s var(--ease);
  }
  .nav-menu.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-menu a { padding: 12px 10px; }
  .nav-menu a::after { display: none; }
  .nav-cta { margin: 8px 0 0; justify-content: center; }
  .nav-toggle { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 36px; }
  .hero-text, .lead { margin-inline: auto; }
  .hero-actions, .platforms { justify-content: center; }
  .hero-media { order: -1; }
  .split { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .split .media, .split--rev .media { order: -1; }
  .split .copy, .split--rev .copy { order: 1; }
  .split .media img { max-width: 280px; }
  .promo-grid { grid-template-columns: 1fr; }
  .cmt-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer .brand-line, .social { justify-content: center; }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .cta-inner { padding: 44px 22px; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .loader { display: none !important; }
  html { scroll-behavior: auto; }
}
