/* نوار آمار صفحه‌ی اصلی: آیکون، عدد بزرگ، عنوان کوچک (ترتیب DOM: عنوان، عدد، آیکون؛ ترتیب نمایش برعکس) */
.market-stats {
  gap: 12px;
  text-align: center;
}

.market-stats .stat-item {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding: 22px 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.market-stats .stat-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.market-stats .stat-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
  border-radius: 14px;
  color: var(--accent);
  background: color-mix(in oklch, var(--accent) 12%, transparent);
}

.market-stats .stat-item:nth-child(2) .stat-icon {
  color: oklch(0.62 0.17 150);
  background: color-mix(in oklch, oklch(0.62 0.17 150) 14%, transparent);
}

.market-stats .stat-item:nth-child(3) .stat-icon {
  color: oklch(0.64 0.18 55);
  background: color-mix(in oklch, oklch(0.64 0.18 55) 14%, transparent);
}

.market-stats .stat-item:nth-child(4) .stat-icon {
  color: oklch(0.6 0.19 15);
  background: color-mix(in oklch, oklch(0.6 0.19 15) 14%, transparent);
}

/* پایین‌آوردن ویژگی قدیمی dt/dd بزرگ در aiqio.css */
.stats-grid.market-stats .stat-num {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.stats-grid.market-stats .stat-label {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-muted);
}

@media (min-width: 900px) {
  .stats-grid.market-stats .stat-num {
    font-size: 2.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .market-stats .stat-item {
    transition: none;
  }
  .market-stats .stat-item:hover {
    transform: none;
  }
}

/* ==========================================================================
   Hero صفحه‌ی اصلی — Liquid Glass: شفق رنگی، عنوان گرادیانی و کارت‌های شیشه‌ای شناور
   ========================================================================== */
.hx {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 28px;
  margin: 8px 0 12px;
  padding: 56px 44px;
  overflow: hidden;
  border: 1px solid var(--lg-border);
  border-radius: 40px;
  background: var(--lg-bg);
  box-shadow: var(--lg-shadow), inset 0 1px 0 var(--lg-highlight), inset 0 -1px 0 var(--lg-edge);
}

/* شفق: سه لکه‌ی رنگیِ محو که آرام می‌لغزند */
.hx-aurora { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hx-aurora i {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: hx-drift 18s ease-in-out infinite alternate;
}
.hx-aurora i:nth-child(1) { top: -140px; inset-inline-start: -80px; background: oklch(0.72 0.17 250); }
.hx-aurora i:nth-child(2) { bottom: -180px; inset-inline-end: 10%; background: oklch(0.7 0.2 320); animation-delay: -6s; }
.hx-aurora i:nth-child(3) { top: 10%; inset-inline-end: -120px; background: oklch(0.78 0.14 190); opacity: 0.4; animation-delay: -11s; }
[data-theme="dark"] .hx-aurora i { opacity: 0.38; }
[data-theme="dark"] .hx-aurora i:nth-child(3) { opacity: 0.26; }

@keyframes hx-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(40px, 30px, 0) scale(1.12); }
}

.hx-copy { display: grid; gap: 18px; justify-items: start; min-width: 0; }

.hx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--lg-border);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--lg-fill);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.hx-eyebrow b {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: oklch(0.72 0.19 150);
  box-shadow: 0 0 0 4px color-mix(in oklch, oklch(0.72 0.19 150) 25%, transparent);
  animation: hx-pulse 2.4s ease-in-out infinite;
}
@keyframes hx-pulse { 50% { box-shadow: 0 0 0 7px color-mix(in oklch, oklch(0.72 0.19 150) 0%, transparent); } }

.hx h1 {
  margin: 0;
  font-size: clamp(2rem, 5.2vw, 3.5rem);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hx-grad {
  background: linear-gradient(100deg, oklch(0.62 0.2 255), oklch(0.6 0.24 300) 55%, oklch(0.66 0.23 350));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
[data-theme="dark"] .hx-grad {
  background-image: linear-gradient(100deg, oklch(0.78 0.15 245), oklch(0.78 0.17 300) 55%, oklch(0.8 0.17 350));
}

.hx p {
  margin: 0;
  max-width: 34em;
  font-size: clamp(0.975rem, 2vw, 1.125rem);
  line-height: 2;
  color: var(--text-muted);
  text-wrap: pretty;
}

.hx-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

.hx-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}
.hx-trust li { display: inline-flex; align-items: center; gap: 6px; }
.hx-trust [data-icon] { color: var(--accent); display: inline-flex; }

/* صحنه‌ی کارت‌های شیشه‌ای */
.hx-stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hx-card:nth-child(even) { transform: translateY(26px); }

.hx-card a {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 22px 12px 18px;
  border: 1px solid var(--lg-border);
  border-radius: 28px;
  color: var(--text-primary);
  text-decoration: none;
  background: var(--lg-bg);
  -webkit-backdrop-filter: var(--lg-blur);
  backdrop-filter: var(--lg-blur);
  box-shadow: 0 14px 34px rgba(20, 24, 40, 0.14), inset 0 1px 0 var(--lg-highlight), inset 0 -1px 0 var(--lg-edge);
  animation: hx-float 7s ease-in-out infinite;
  transition: transform 0.35s var(--lg-spring), box-shadow 0.35s var(--lg-spring);
}
.hx-c1 a { animation-delay: -1.8s; }
.hx-c2 a { animation-delay: -3.6s; }
.hx-c3 a { animation-delay: -5.2s; }
.hx-card a:hover { transform: translateY(-4px) scale(1.03); animation-play-state: paused; }
.hx-card a:focus-visible { outline: 3px solid color-mix(in oklch, var(--accent) 45%, transparent); outline-offset: 3px; }
.hx-card strong { font-size: 0.9375rem; font-weight: 700; }

.hx-tile {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 23%;
  color: #fff;
  box-shadow: 0 10px 22px rgba(20, 24, 40, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

@keyframes hx-float { 50% { transform: translateY(-8px); } }

@media (max-width: 900px) {
  .hx { grid-template-columns: 1fr; gap: 26px; padding: 40px 22px 30px; border-radius: 32px; }
  .hx-copy { justify-items: center; text-align: center; }
  .hx-cta, .hx-trust { justify-content: center; }
  .hx-stage { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .hx-card:nth-child(even) { transform: none; }
  .hx-card a { padding: 14px 6px 12px; gap: 8px; border-radius: 22px; }
  .hx-card strong { font-size: 0.75rem; }
  .hx-tile { width: 46px; height: 46px; }
  .hx-tile svg { width: 22px; height: 22px; }
}

@media (max-width: 520px) {
  .hx { padding: 32px 16px 22px; margin-top: 4px; }
  .hx-cta .btn { flex: 1 1 140px; justify-content: center; }
  .hx-stage { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hx-card a { grid-auto-flow: column; justify-content: start; align-items: center; padding: 12px 14px; gap: 12px; }
  .hx-card strong { font-size: 0.875rem; }
  .hx-aurora i { width: 280px; height: 280px; }
}

@media (prefers-reduced-transparency: reduce) {
  .hx, .hx-card a, .hx-eyebrow { background: var(--bg-card); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hx-aurora i, .hx-card a, .hx-eyebrow b { animation: none; }
}
