/* ═══ HERO — simple centered ═══ */
.hero {
  position: relative;
  padding-block: calc(var(--header-h) + 72px) 80px;
  overflow: hidden;
  text-align: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* UI8-style warm spotlight */
.hero__spotlight {
  position: absolute;
  left: 50%;
  top: 42%;
  width: min(960px, 130vw);
  height: min(560px, 75vh);
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse 50% 48% at 50% 50%,
    rgba(255, 196, 140, 0.14) 0%,
    rgba(255, 160, 100, 0.07) 32%,
    rgba(255, 255, 255, 0.035) 52%,
    transparent 72%
  );
  filter: blur(32px);
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
}

.hero__orb--1 {
  width: 420px;
  height: 420px;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
}

.hero__orb--2 {
  width: 320px;
  height: 320px;
  bottom: 5%;
  right: 8%;
  background: radial-gradient(circle, rgba(255, 180, 120, 0.05) 0%, transparent 70%);
}

.hero__grid {
  position: absolute;
  inset: 0;
  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);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 38%, black 20%, transparent 72%);
}

.hero__center {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin-inline: auto;
}

.hero__eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero__title {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero__title-accent {
  background: linear-gradient(135deg, #fff 30%, rgba(255,255,255,0.55) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 0;
  max-width: 560px;
  margin-inline: auto;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ═══ UI8 Recent products marquee ═══ */
.recent-products {
  position: relative;
  width: 100%;
  margin-top: 112px;
  padding-bottom: 0;
  text-align: left;
}

.recent-products__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  margin-top: 0;
}

.recent-products__title {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.recent-products__count {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
  text-align: right;
  flex-shrink: 0;
}

.recent-marquee {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 4%,
    #000 96%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 4%,
    #000 96%,
    transparent 100%
  );
}

.recent-marquee__row {
  overflow: hidden;
}

.recent-marquee__track {
  display: flex;
  width: max-content;
  animation: recent-scroll var(--marquee-duration, 48s) linear infinite;
}

.recent-marquee__row[data-direction="right"] .recent-marquee__track {
  animation-direction: reverse;
}

.recent-marquee__set {
  display: flex;
  gap: 12px;
  padding-inline: 6px;
}

.recent-card {
  flex-shrink: 0;
  display: block;
  width: 280px;
  height: 168px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.recent-card:hover {
  transform: scale(1.03);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  z-index: 2;
}

.recent-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

@keyframes recent-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.recent-products__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.recent-products__hint {
  font-size: 14px;
  color: var(--text-secondary);
}

.recent-products__cta {
  border-radius: var(--radius-full);
  padding-inline: 20px;
}

/* Marketplace — centered tab switcher */
.marketplace-section {
  position: relative;
  padding-top: 32px;
  padding-bottom: var(--section-py);
  overflow: hidden;
}

.marketplace-section::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -180px;
  z-index: 0;
  width: min(960px, 130vw);
  height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse 50% 50% at 50% 60%,
    rgba(255, 196, 140, 0.1) 0%,
    rgba(255, 160, 100, 0.05) 38%,
    rgba(255, 255, 255, 0.025) 58%,
    transparent 78%
  );
  filter: blur(36px);
  pointer-events: none;
}

.marketplace-section > .container,
.marketplace-section > .recent-products {
  position: relative;
  z-index: 1;
}

.marketplace-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

/* UI8-style running border */
.marketplace-tabs__aura {
  position: relative;
  display: inline-flex;
  border-radius: var(--radius-full);
  padding: 1px;
  overflow: hidden;
  isolation: isolate;
}

.marketplace-tabs__aura::before {
  content: '';
  position: absolute;
  inset: -120%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg 240deg,
    rgba(255, 255, 255, 0.95) 265deg,
    rgba(186, 230, 253, 0.75) 280deg,
    rgba(251, 113, 133, 0.6) 295deg,
    rgba(255, 255, 255, 0.55) 310deg,
    transparent 325deg 360deg
  );
  animation: marketplace-border-spin 3.5s linear infinite;
}

@keyframes marketplace-border-spin {
  to { transform: rotate(360deg); }
}

.marketplace-tabs__track {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  padding: 5px;
  background: var(--bg-base);
  border: none;
  border-radius: var(--radius-full);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.marketplace-tabs__indicator {
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 1;
  height: calc(100% - 10px);
  background: #ffffff;
  border-radius: var(--radius-full);
  transition: transform 0.4s cubic-bezier(0.34, 1.2, 0.64, 1), width 0.35s ease;
  box-shadow: 0 2px 12px rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

.marketplace-tabs__btn {
  position: relative;
  z-index: 2;
  padding: 13px 36px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-secondary);
  background: transparent;
  border-radius: var(--radius-full);
  border-bottom: none;
  margin-bottom: 0;
  transition: color 0.25s ease;
  white-space: nowrap;
}

.marketplace-tabs__btn:hover:not(.is-active) {
  color: var(--text-primary);
}

.marketplace-tabs__btn.is-active {
  color: var(--accent-on);
}

.marketplace-tabs__btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .marketplace-tabs__aura::before {
    animation: none;
    inset: 0;
    background: rgba(255, 255, 255, 0.12);
  }
}

@media (max-width: 768px) {
  .hero {
    padding-block: calc(var(--header-h) + 48px) 56px;
  }

  .marketplace-section {
    padding-top: 24px;
  }

  .marketplace-tabs {
    margin-bottom: 32px;
    width: 100%;
    justify-content: center;
  }

  .recent-products {
    margin-top: 88px;
  }

  .marketplace-tabs__aura {
    width: 100%;
    max-width: 360px;
  }

  .marketplace-tabs__track {
    width: 100%;
  }

  .marketplace-tabs__btn {
    flex: 1;
    padding: 11px 12px;
    font-size: 13px;
    text-align: center;
  }
}

/* All-access */
.access-banner {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.access-banner__eyebrow {
  display: inline-flex;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-subtle);
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.access-banner__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.access-banner__desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.access-banner__features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.access-banner__feature {
  display: flex;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}

.access-banner__feature-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.access-banner__cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.access-mini-card {
  display: flex;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.access-mini-card--featured {
  border-color: var(--border-strong);
}

.access-mini-card__name { font-size: 14px; font-weight: 600; }
.access-mini-card__price { font-size: 14px; color: var(--text-secondary); }
.access-mini-card__price strong { color: var(--text-primary); font-size: 18px; }

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  text-align: center;
}

.stat-item {
  padding: 32px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.stat-item__value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.stat-item__label {
  font-size: 14px;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .recent-card {
    width: 240px;
    height: 144px;
  }

  .recent-products__foot {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .access-banner { grid-template-columns: 1fr; padding: 32px 24px; }
  .stats-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .recent-marquee__track { animation: none; }
}
