/* ============================================
   MR Commerce v3.1 — Premium Hero
   Massive spacing, floating dashboard, parallax
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--navbar-height);
  overflow: hidden;
  background: var(--surface-0);
}

.hero__mesh {
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  pointer-events: none;
}

.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.015) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  pointer-events: none;
}

[data-theme="dark"] .hero__grid-bg {
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
}

.hero__container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-12);
  align-items: center;
  width: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
  padding-block: var(--space-24) var(--space-20);
}

/* Left */
.hero__content { max-width: 560px; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 5px 16px 5px 5px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  margin-bottom: var(--space-10);
  box-shadow: var(--shadow-sm);
}

.hero__eyebrow-dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--color-primary-50);
  border: 1px solid var(--color-primary-100);
  display: flex; align-items: center; justify-content: center;
}
.hero__eyebrow-dot::after {
  content: ''; width: 6px; height: 6px;
  border-radius: 50%; background: var(--color-primary);
  animation: pulse-subtle 2.5s ease-in-out infinite;
}

.hero__title {
  font-size: var(--text-hero);
  font-weight: var(--weight-extrabold);
  line-height: var(--leading-tight);
  letter-spacing: -0.045em;
  margin-bottom: var(--space-8);
}

.hero__subtitle {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
  max-width: 460px;
}

.hero__tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: var(--space-12);
}

.hero__tag {
  padding: 5px 14px;
  background: var(--surface-1);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  transition: all var(--duration-fast) var(--ease-out);
}
.hero__tag:hover {
  border-color: var(--color-primary-200);
  color: var(--color-primary);
  background: var(--color-primary-50);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Right — Floating Cards */
.hero__visual {
  position: relative;
  height: 580px;
  perspective: 1200px;
}

.hero__glow {
  position: absolute;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 70%);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: pulse-subtle 5s ease-in-out infinite;
}

.hero__float-card {
  position: absolute;
  background: var(--surface-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-2xl);
  padding: var(--space-5) var(--space-6);
  box-shadow: var(--shadow-lg);
  animation: float 7s ease-in-out infinite;
  transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base);
  backdrop-filter: blur(8px);
}

.hero__float-card:hover {
  box-shadow: var(--shadow-xl);
  z-index: 10;
}

.hero__float-card:nth-child(2) { top: 2%; left: 8%; width: 220px; animation-delay: 0s; }
.hero__float-card:nth-child(3) { top: 18%; right: 2%; width: 200px; animation-delay: 1.2s; }
.hero__float-card:nth-child(4) { top: 48%; left: 2%; width: 200px; animation-delay: 2.4s; }
.hero__float-card:nth-child(5) { bottom: 12%; right: 8%; width: 230px; animation-delay: 0.8s; }
.hero__float-card:nth-child(6) { bottom: 2%; left: 18%; width: 200px; animation-delay: 1.8s; }

.hero__float-card__label {
  font-size: 10px;
  color: var(--text-tertiary);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  margin-bottom: var(--space-2);
}

.hero__float-card__value {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  letter-spacing: var(--tracking-tight);
}

.hero__float-card__bar {
  height: 4px; border-radius: 2px;
  background: var(--surface-2);
  margin-top: var(--space-3); overflow: hidden;
}
.hero__float-card__bar-fill {
  height: 100%; border-radius: 2px;
  background: var(--gradient-primary);
}

.hero__float-card__chart {
  display: flex; align-items: flex-end; gap: 3px;
  height: 36px; margin-top: var(--space-3);
}
.hero__float-card__chart-bar {
  flex: 1; background: var(--color-primary-200);
  border-radius: 2px; transition: height var(--duration-slow);
}
[data-theme="dark"] .hero__float-card__chart-bar { background: rgba(37,99,235,0.25); }

@media (max-width: 1024px) {
  .hero__container { grid-template-columns: 1fr; text-align: center; padding-block: var(--space-16); }
  .hero__content { max-width: 100%; margin-inline: auto; }
  .hero__subtitle { margin-inline: auto; }
  .hero__tags { justify-content: center; }
  .hero__actions { justify-content: center; }
  .hero__visual { height: 380px; margin-top: var(--space-6); }
  .hero { min-height: auto; }
}
@media (max-width: 640px) {
  .hero__visual { height: 280px; }
  .hero__float-card { padding: var(--space-3) var(--space-4); }
  .hero__float-card:nth-child(2) { width: 160px; }
  .hero__float-card:nth-child(3) { width: 150px; }
  .hero__float-card:nth-child(4) { width: 150px; }
  .hero__float-card:nth-child(5) { width: 170px; }
  .hero__float-card:nth-child(6) { display: none; }
}
