/* ── HOME HERO ── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  padding: var(--layout-hero-y) var(--layout-gutter-md) var(--layout-section-y);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: calc(-1 * var(--space-20));
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: var(--gradient-hero-glow);
  pointer-events: none;
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 820px;
  font-size: clamp(40px, 6.5vw, 64px);
  font-weight: var(--font-weight-semibold);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero h1 span {
  background: var(--gradient-brand);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .subtitle {
  max-width: 560px;
  color: var(--color-fg-secondary);
  font-size: var(--font-size-text-lg);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

/* ── STATS BAR ── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--border-w-1);
  max-width: var(--layout-max-width);
  margin: 0 auto var(--space-4);
  padding: 0 var(--layout-gutter);
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-7) var(--space-4);
  background: var(--color-bg-card);
  border: var(--border-w-1) solid var(--color-border-elevated);
  text-align: center;
}

.stat-card:not(:first-child) {
  margin-left: calc(-1 * var(--border-w-1));
}

.stat-card:first-child {
  border-radius: var(--radius-card) 0 0 var(--radius-card);
}

.stat-card:last-child {
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
}

.stat-value {
  font-size: var(--font-size-header-xl);
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.03em;
  background: var(--gradient-brand);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: var(--font-size-text-md);
  color: var(--color-fg-tertiary);
  font-weight: var(--font-weight-medium);
}

.stats-period {
  max-width: var(--layout-max-width);
  margin: 0 auto var(--layout-section-y);
  padding: 0 var(--layout-gutter);
  color: var(--color-fg-tertiary);
  font-size: var(--font-size-text-sm);
  text-align: center;
}

/* ── HOME UPDATES ── */
.updates-home {
  max-width: var(--layout-max-width);
  padding-bottom: var(--layout-hero-y);
}

.updates-home .update-item {
  padding: var(--space-5) 0;
}

.updates-home::before {
  display: none;
}

.updates-home .update-dot {
  margin-top: 6px;
}

@media (max-width: 900px) {
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-card:nth-child(-n + 2) {
    border-radius: 0;
  }

  .stat-card:first-child {
    border-radius: var(--radius-card) 0 0 0;
  }

  .stat-card:nth-child(2) {
    border-radius: 0 var(--radius-card) 0 0;
  }

  .stat-card:nth-child(3) {
    border-radius: 0 0 0 var(--radius-card);
    margin-left: 0;
    margin-top: calc(-1 * var(--border-w-1));
  }

  .stat-card:nth-child(4) {
    border-radius: 0 0 var(--radius-card) 0;
    margin-top: calc(-1 * var(--border-w-1));
  }
}

@media (max-width: 640px) {
  .hero {
    padding: var(--space-16) var(--layout-gutter-sm) var(--space-10);
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .cta-primary,
  .hero-actions .cta-secondary {
    width: 100%;
    justify-content: center;
  }

  .stat-value {
    font-size: var(--font-size-header-lg);
  }
}
