/* ==========================================================================
   landing.css — صفحه فرود فروش شمش طلا
   این فایل بر پایه توکن‌های رنگی/فونت تعریف‌شده در style.css ساخته شده
   (متغیرهای --gold-primary، --bg-dark و... از همان‌جا خوانده می‌شوند)
   ========================================================================== */

:root {
  --mono-font: "IRANYekanX",'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --landing-max: 1180px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- عمومی ---------- */
.landing {
  overflow-x: hidden;
}

.wrap {
  max-width: var(--landing-max);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-primary, #d4af37);
  letter-spacing: 0;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--gold-primary, #d4af37);
  display: inline-block;
}

.section-title {
  font-family: var(--font-display, inherit);
  font-weight: 800;
  font-size: clamp(26px, 3.6vw, 42px);
  line-height: 1.25;
  margin: 0 0 14px;
}

.section-sub {
  color: var(--text-muted, #94a3b8);
  font-size: 16px;
  line-height: 1.9;
  max-width: 640px;
}

.section-head {
  margin-bottom: 48px;
}

.section-head.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.section-head.center .section-sub {
  margin-left: auto;
  margin-right: auto;
}

section {
  padding: 96px 0;
  position: relative;
}

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

/* ---------- نوار بالا ---------- */
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: color-mix(in srgb, var(--bg-dark, #07090e) 78%, transparent);
  border-bottom: var(--glass-border-light);
}

.landing-nav .wrap {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  min-width: 0;
  flex-shrink: 1;
}

.nav-brand .mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--gold-light, #ffdf73), var(--gold-dark, #996515));
  display: grid;
  place-items: center;
  font-size: 15px;
  color: #1a1200;
  font-weight: 900;
  flex-shrink: 0;
}

.nav-brand .brand-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14.5px;
  color: var(--text-muted, #94a3b8);
}

.nav-links a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text-main, #f8fafc); }

@media (max-width: 860px) {
  .nav-links { display: none; }
}

/* ---------- دکمه‌ها ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background .25s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light, #ffdf73), var(--gold-primary, #d4af37) 55%, var(--gold-dark, #996515));
  color: #1a1200;
  box-shadow: 0 8px 24px -8px rgba(212,175,55,0.55);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(212,175,55,0.65); }

.btn-ghost {
  background: transparent;
  border-color: color-mix(in srgb, var(--text-muted) 45%, transparent);
  color: var(--text-main, #f8fafc);
}
.btn-ghost:hover { border-color: var(--gold-primary, #d4af37); background: rgba(212,175,55,0.06); }

.btn-sm { padding: 9px 18px; font-size: 13.5px; }

/* ---------- هیرو ---------- */
.hero {
  padding-top: 72px;
  padding-bottom: 60px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 940px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
}

.hero-title {
  font-family: var(--font-display, inherit);
  font-weight: 900;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.2;
  margin: 0 0 22px;
}

.hero-title .accent {
  background: linear-gradient(135deg, var(--gold-light, #ffdf73), var(--gold-primary, #d4af37));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 17px;
  line-height: 2;
  color: var(--text-muted, #94a3b8);
  max-width: 520px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-trust {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.hero-trust .item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-muted, #94a3b8);
}

.hero-trust .item svg { flex-shrink: 0; color: var(--gold-primary, #d4af37); }

/* ---------- تصویر شمش طلا (عنصر امضادار) ---------- */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 380px;
}

.bar-stage {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}

.bar-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 50% 45%, rgba(212,175,55,0.35), transparent 65%);
  filter: blur(20px);
  animation: pulseGlow 5s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

.gold-bar {
  position: relative;
  width: 78%;
  transform: rotate(-8deg);
  filter: drop-shadow(0 30px 40px rgba(0,0,0,0.55));
}

.gold-bar svg { width: 100%; height: auto; display: block; }

.shine-sweep {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 6px;
  pointer-events: none;
}

.shine-sweep::after {
  content: "";
  position: absolute;
  top: -50%;
  bottom: -50%;
  width: 35%;
  left: -40%;
  background: linear-gradient(75deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-18deg);
  animation: sweep 4.5s ease-in-out infinite;
}

@keyframes sweep {
  0% { left: -40%; }
  35%, 100% { left: 130%; }
}

.floating-tag {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--glass-bg, rgba(20,24,34,0.72));
  border: var(--glass-border);
  backdrop-filter: blur(14px);
  border-radius: 14px;
  padding: 10px 16px;
  font-size: 13px;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,0.5);
}

.floating-tag.purity { top: 6%; right: 2%; }
.floating-tag.serial { bottom: 8%; left: -2%; }

.floating-tag .label { color: var(--text-muted, #94a3b8); font-size: 11px; }
.floating-tag .val { font-family: var(--mono-font); font-weight: 700; direction: ltr; }

@media (prefers-reduced-motion: reduce) {
  .bar-glow, .shine-sweep::after { animation: none; }
}

/* ---------- نوار اعتماد ---------- */
.trust-strip {
  padding: 28px 0;
  border-top: var(--glass-border-light);
  border-bottom: var(--glass-border-light);
}

.trust-strip .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13.5px;
  color: var(--text-muted, #94a3b8);
}

.trust-strip .item { display: flex; align-items: center; gap: 8px; }
.trust-strip .item svg { color: var(--gold-primary, #d4af37); }

/* ---------- نرخ لحظه‌ای طلا ---------- */
.price-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--glass-bg, rgba(20,24,34,0.6));
  border: var(--glass-border);
  border-radius: 16px;
  padding: 20px 26px;
  margin-bottom: 56px;
}

.price-bar .label { font-size: 13px; color: var(--text-muted, #94a3b8); margin-bottom: 4px; }
.price-bar .value { font-family: var(--mono-font); font-size: 22px; font-weight: 700; direction: ltr; }
.price-bar .value.up { color: var(--status-valid-text); }
.price-bar .updated { font-size: 12px; color: var(--text-muted, #94a3b8); display: flex; align-items: center; gap: 6px; }
.price-bar .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--status-valid-text); animation: blink 1.6s infinite; }
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:.3;} }

/* ---------- گرید محصولات (رده‌های وزنی) ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

@media (max-width: 980px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }

.product-card {
  background: var(--glass-bg, rgba(20,24,34,0.6));
  border: var(--glass-border);
  border-radius: 18px;
  padding: 22px 18px;
  text-align: center;
  transition: transform .3s var(--ease-out), border-color .3s;
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-primary, #d4af37);
}

.product-card.featured {
  border-color: var(--gold-primary, #d4af37);
  background: linear-gradient(180deg, rgba(212,175,55,0.1), var(--glass-bg, rgba(20,24,34,0.6)));
}

.product-card .badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold-primary, #d4af37);
  color: #1a1200;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 999px;
}

.product-card .weight-icon {
  width: 44px;
  height: 44px;
  margin: 4px auto 14px;
  opacity: .9;
}

.product-card .weight { font-weight: 800; font-size: 16.5px; margin-bottom: 2px; }
.product-card .weight .num { font-size: 16.5px; }
.product-card .purity { font-size: 12px; color: var(--text-muted, #94a3b8); margin-bottom: 14px; }
.product-card .price { font-family: var(--mono-font); font-size: 14px; font-weight: 700; color: var(--gold-primary, #d4af37); margin-bottom: 16px; direction: ltr; }

/* ---------- بخش امنیت/اصالت ---------- */
.security-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 940px) { .security-wrap { grid-template-columns: 1fr; gap: 40px; } }

.layer-list { display: flex; flex-direction: column; gap: 4px; }

.layer-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 4px;
  border-bottom: var(--glass-border-light);
}

.layer-item .idx {
  font-family: var(--mono-font);
  font-size: 13px;
  color: var(--gold-primary, #d4af37);
  border: var(--glass-border);
  width: 30px; height: 30px;
  border-radius: 9px;
  display: grid; place-items: center;
  flex-shrink: 0;
}

.layer-item h4 { margin: 0 0 4px; font-size: 15px; font-weight: 700; }
.layer-item p { margin: 0; font-size: 13.5px; color: var(--text-muted, #94a3b8); line-height: 1.8; }

.verify-mock {
  background: var(--glass-bg, rgba(20,24,34,0.7));
  border: var(--glass-border);
  border-radius: 20px;
  padding: 30px;
  backdrop-filter: blur(14px);
}

.verify-mock .qr-block {
  width: 92px; height: 92px;
  border-radius: 12px;
  background: repeating-conic-gradient(#e8e8e8 0% 25%, #17191f 0% 50%) 0 0/14px 14px;
  margin: 0 auto 18px;
}

.verify-mock .result {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--status-valid-bg);
  border: 1px solid var(--status-valid-border);
  color: var(--status-valid-text);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 700;
  margin-top: 18px;
}

.verify-mock .result svg { flex-shrink: 0; }
.verify-mock .result span { min-width: 0; }

/* ---------- مراحل استعلام ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 780px) { .steps { grid-template-columns: 1fr; } }

.step-card { padding: 8px; }
.step-card .idx {
  font-family: var(--mono-font);
  font-size: 34px;
  font-weight: 700;
  color: var(--gold-primary, #d4af37);
  opacity: .55;
  margin-bottom: 10px;
  display: block;
}
.step-card h4 { font-size: 17px; margin: 0 0 8px; }
.step-card p { color: var(--text-muted, #94a3b8); font-size: 14px; line-height: 1.85; margin: 0; }

/* ---------- چرا از ما ---------- */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .reasons-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .reasons-grid { grid-template-columns: 1fr; } }

.reason-card {
  background: var(--glass-bg, rgba(20,24,34,0.55));
  border: var(--glass-border);
  border-radius: 16px;
  padding: 24px 20px;
}
.reason-card svg { color: var(--gold-primary, #d4af37); margin-bottom: 14px; }
.reason-card h4 { font-size: 15.5px; margin: 0 0 8px; }
.reason-card p { font-size: 13.5px; color: var(--text-muted, #94a3b8); line-height: 1.8; margin: 0; }

/* ---------- نظرات مشتریان ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .testimonial-grid { grid-template-columns: 1fr; } }

.testimonial-card {
  background: var(--glass-bg, rgba(20,24,34,0.55));
  border: var(--glass-border);
  border-radius: 18px;
  padding: 26px;
}
.testimonial-card .stars { color: var(--gold-primary, #d4af37); font-size: 13px; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-card p.quote { font-size: 14.5px; line-height: 1.95; margin: 0 0 20px; color: var(--text-main, #f8fafc); }
.testimonial-card .who { display: flex; align-items: center; gap: 10px; }
.testimonial-card .avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light, #ffdf73), var(--gold-dark, #996515));
  display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #1a1200;
}
.testimonial-card .name { font-size: 13.5px; font-weight: 700; }
.testimonial-card .meta { font-size: 12px; color: var(--text-muted, #94a3b8); }

/* ---------- سوالات متداول ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item {
  border-bottom: var(--glass-border-light);
}

.faq-q {
  list-style: none;
}
.faq-q::-webkit-details-marker,
.faq-q::marker {
  display: none;
  content: "";
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  color: var(--text-main, #f8fafc);
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 700;
  text-align: right;
  padding: 22px 4px;
  cursor: pointer;
}

.faq-q .plus {
  flex-shrink: 0;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border: var(--glass-border);
  border-radius: 7px;
  font-size: 15px;
  color: var(--gold-primary, #d4af37);
  transition: transform .3s var(--ease-out);
}

.faq-item[open] .faq-q .plus { transform: rotate(45deg); }

.faq-a {
  padding: 0 4px 22px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-muted, #94a3b8);
  max-width: 640px;
}

/* ---------- CTA پایانی ---------- */
.final-cta {
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(212,175,55,0.14), transparent 60%);
  border-radius: 28px;
  border: var(--glass-border);
  padding: 72px 24px;
}

.final-cta .section-title { max-width: 620px; margin-left: auto; margin-right: auto; }
.final-cta .actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

/* ---------- فوتر ---------- */
.landing-footer {
  padding: 64px 0 32px;
  border-top: var(--glass-border-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }

.footer-grid h5 { font-size: 13.5px; margin: 0 0 16px; color: var(--text-main, #f8fafc); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-grid a { color: var(--text-muted, #94a3b8); text-decoration: none; font-size: 13.5px; }
.footer-grid a:hover { color: var(--gold-primary, #d4af37); }
.footer-grid p { color: var(--text-muted, #94a3b8); font-size: 13.5px; line-height: 1.9; max-width: 300px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-muted, #94a3b8);
  padding-top: 24px;
  border-top: var(--glass-border-light);
}

/* ---------- ظاهر روشن (سازگار با data-theme) ---------- */
[data-theme="light"] .qr-block {
  background: repeating-conic-gradient(#111 0% 25%, #fff 0% 50%) 0 0/14px 14px;
  border: 1px solid #e5e0d0;
}

/* ---------- فوکوس کیبورد ---------- */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold-primary, #d4af37);
  outline-offset: 3px;
}

/* ---------- ورود اسکرول (Progressive Enhancement) ----------
   نکته مهم: پیش‌فرض محتوا کاملاً دیده می‌شود. فقط وقتی جاوااسکریپت با موفقیت
   اجرا و کلاس "js" روی <html> اضافه شود، حالت مخفی/انیمیشن فعال می‌شود.
   این‌طور اگر اسکریپت به هر دلیلی اجرا نشود (خطا، کندی، مرورگر قدیمی)
   محتوا هیچ‌وقت برای کاربر واقعی مخفی نمی‌ماند. */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
html.js .reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   موبایل کوچک (حدود ۴۸۰ پیکسل و کمتر) — تنظیمات اضافه برای صفحه‌های واقعاً کوچک
   ========================================================================== */
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  section { padding: 64px 0; }

  /* نوار بالا: روی گوشی خیلی کوچیک، برند + دکمه‌ها ممکن است جا نشوند */
  .landing-nav .wrap { height: 64px; gap: 10px; }
  .nav-brand { font-size: 14px; gap: 7px; }
  .nav-brand .mark { width: 28px; height: 28px; font-size: 13px; }
  .nav-cta .btn-sm { padding: 8px 14px; font-size: 12.5px; }

  .hero { padding-top: 40px; }
  .hero-title { font-size: 30px; }
  .hero-sub { font-size: 15px; line-height: 1.85; }

  /* دکمه‌های هیرو تمام‌عرض و زیر هم، برای لمس راحت‌تر */
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }

  .hero-trust { gap: 14px 18px; }
  .hero-trust .item { font-size: 12.5px; }

  .bar-stage { max-width: 260px; }
  .floating-tag { padding: 7px 11px; font-size: 11.5px; }

  .price-bar { flex-direction: column; align-items: flex-start; padding: 16px 18px; }

  /* کارت‌های محصول: در گوشی خیلی کوچک، یک ستون خواناتر است */
  .product-grid { grid-template-columns: 1fr !important; }

  .section-title { font-size: 24px; }

  .final-cta { padding: 48px 18px; }
  .final-cta .actions { flex-direction: column; align-items: stretch; }
  .final-cta .actions .btn { width: 100%; }

  .footer-grid { grid-template-columns: 1fr !important; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}
