.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.hero__eyebrow,
.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.76rem;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__title {
  margin: 0;
  max-width: 920px;
  font-size: clamp(1.7rem, 2.7vw, 2.45rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.hero__lead {
  margin: 16px 0 0;
  max-width: 780px;
  color: var(--text-soft);
  font-size: clamp(0.96rem, 1.4vw, 1.04rem);
  line-height: 1.7;
}

.hero__meta {
  margin-top: 14px;
  color: var(--text-soft);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.stats-slider {
  margin-top: 22px;
  overflow: hidden;
  margin-bottom: 10px;
}

.stats-grid {
  --stats-card-width: clamp(180px, 22vw, 230px);
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  transform: translate3d(0, 0, 0);
  margin-bottom: 3px;
}

.stat-card {
  flex: 0 0 var(--stats-card-width);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.stat-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-inline: auto;
  margin-bottom: 12px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}

.stat-card__icon svg {
  width: 18px;
  height: 18px;
}

.stat-card__value {
  display: block;
  margin-bottom: 6px;
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.stat-card__value--meta {
  font-size: clamp(0.92rem, 1.2vw, 1.04rem);
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.stat-card__label {
  color: var(--text-soft);
  font-size: 0.82rem;
  line-height: 1.45;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.insight-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: opacity 0.45s ease, transform 0.45s ease, border-color 0.2s ease, background 0.2s ease;
}

html.has-js .insight-card {
  opacity: 0.86;
  transform: translateY(10px);
}

html.has-js .insight-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.insight-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-elevated);
}

.insight-card__eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.74rem;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.insight-card__title {
  margin: 0;
  font-size: 1.04rem;
  letter-spacing: -0.04em;
}

.insight-card__text,
.insight-card__empty {
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.65;
}

.comparison-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.comparison-row {
  display: grid;
  gap: 8px;
}

.comparison-row__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
}

.comparison-row__meta span {
  color: var(--text-soft);
}

.comparison-row__meta strong {
  flex: 0 0 auto;
  font-size: 0.92rem;
}

.comparison-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--surface-muted);
  overflow: hidden;
}

.comparison-bar__fill {
  display: block;
  width: var(--bar-width, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-start) 0%, var(--brand-end) 100%);
  transform-origin: left center;
}

.comparison-bar__fill--alt {
  background: linear-gradient(90deg, var(--accent-hover) 0%, var(--accent) 100%);
}

html.has-js .comparison-bar__fill {
  transform: scaleX(0);
  transition: transform 0.9s ease 0.08s;
}

html.has-js .insight-card.is-visible .comparison-bar__fill {
  transform: scaleX(1);
}

.comparison-row__caption {
  color: var(--text-faint);
  font-size: 0.76rem;
  line-height: 1.45;
}

.collection-links {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.collection-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 15px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-ghost);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.collection-link:hover {
  border-color: var(--accent);
  background: var(--surface);
  transform: translateY(-1px);
}

.collection-link__title {
  font-weight: 700;
  line-height: 1.35;
}

.collection-link__meta {
  color: var(--text-soft);
  font-size: 0.8rem;
  white-space: nowrap;
}

.search-form__input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  line-height: 1.25;
  outline: none;
}

.search-form__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-muted);
  color: var(--text-soft);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.chip__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  color: currentColor;
}

.chip__icon svg {
  width: 100%;
  height: 100%;
}

.chip__label {
  color: inherit;
}

.chip:hover,
.chip.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.chip__count {
  margin-left: 2px;
  font-size: 0.76rem;
  font-family: var(--font-mono);
  color: inherit;
  opacity: 0.82;
}

.chip--toggle {
  appearance: none;
  cursor: pointer;
  background: var(--accent-soft);
  border-color: var(--accent-soft-strong);
  color: var(--accent);
}

.chip--toggle:hover {
  background: var(--accent-soft-strong);
  border-color: var(--accent);
  color: var(--accent);
}

.chips__toggle {
  display: none;
}

html.has-js [data-categories-section]:not(.is-expanded) .chips__toggle {
  display: inline-flex;
}

html.has-js [data-categories-section]:not(.is-expanded) .chip--extra {
  display: none;
}

html.has-js [data-categories-section].is-expanded .chips__toggle {
  display: none;
}

.featured-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

[data-home-skeleton] {
  display: none;
}

html.has-js.is-page-loading [data-home-shell] > [data-home-skeleton] {
  display: grid;
  gap: 28px;
}

html.has-js [data-home-shell].is-shell-loading > [data-home-skeleton] {
  display: grid;
  gap: 28px;
}

html.has-js.is-page-loading [data-home-shell] > [data-home-content] {
  display: none;
}

html.has-js [data-home-shell].is-shell-loading > [data-home-content] {
  display: none;
}

.hero--skeleton,
.section__header--skeleton {
  pointer-events: none;
  user-select: none;
}

.home-skeleton__eyebrow,
.home-skeleton__title,
.home-skeleton__lead,
.home-skeleton__button,
.home-skeleton__section-eyebrow,
.home-skeleton__section-title,
.home-skeleton__section-summary,
.home-skeleton__section-link,
.chip__icon--skeleton,
.chip__label--skeleton,
.chip__count--skeleton,
.stat-card__icon--skeleton,
.stat-card__value--skeleton,
.stat-card__label--skeleton {
  position: relative;
  overflow: hidden;
  display: block;
  background: linear-gradient(90deg, var(--surface-muted) 0%, var(--surface-elevated) 50%, var(--surface-muted) 100%);
  background-size: 200% 100%;
  animation: catalog-card-skeleton-shimmer 1.3s ease-in-out infinite;
}

.home-skeleton__eyebrow,
.home-skeleton__section-eyebrow,
.home-skeleton__section-summary,
.home-skeleton__section-link,
.chip__label--skeleton,
.chip__count--skeleton,
.stat-card__value--skeleton,
.stat-card__label--skeleton {
  border-radius: 999px;
}

.home-skeleton__eyebrow {
  width: 112px;
  height: 12px;
  margin-bottom: 14px;
}

.home-skeleton__title {
  width: min(680px, 92%);
  height: clamp(36px, 5vw, 54px);
  border-radius: 18px;
}

.home-skeleton__lead {
  width: min(760px, 100%);
  height: 16px;
  margin-top: 14px;
}

.home-skeleton__lead--short {
  width: min(540px, 78%);
}

.home-skeleton__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.home-skeleton__button {
  width: 208px;
  max-width: 100%;
  height: 44px;
  border-radius: 14px;
}

.home-skeleton__button--secondary {
  width: 184px;
}

.stat-card--skeleton,
.stat-card--skeleton:hover {
  border-color: var(--border);
  background: var(--surface);
}

.stat-card--skeleton {
  gap: 12px;
  pointer-events: none;
}

.stat-card__icon--skeleton {
  width: 18px;
  height: 18px;
  border-radius: 999px;
}

.stat-card__value--skeleton {
  width: 76%;
  height: 22px;
}

.stat-card__label--skeleton {
  width: 58%;
  height: 12px;
}

.section__header--skeleton {
  align-items: flex-start;
}

.home-skeleton__section-copy {
  display: grid;
  gap: 12px;
  min-width: min(560px, 100%);
}

.home-skeleton__section-eyebrow {
  width: 108px;
  height: 11px;
}

.home-skeleton__section-title {
  width: min(460px, 92%);
  height: 26px;
  border-radius: 14px;
}

.home-skeleton__section-summary {
  width: min(560px, 100%);
  height: 14px;
}

.home-skeleton__section-link {
  width: 92px;
  height: 14px;
}

.chips--skeleton {
  gap: 12px;
}

.chip--skeleton {
  pointer-events: none;
}

.chip__icon--skeleton {
  width: 18px;
  height: 18px;
  border-radius: 999px;
}

.chip__label--skeleton {
  width: 96px;
  height: 12px;
}

.chip__count--skeleton {
  width: 30px;
  height: 12px;
}

@media (max-width: 1320px) {
  .featured-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .insights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .insights-grid,
  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .stats-grid {
    --stats-card-width: min(250px, 70vw);
  }
}

@media (max-width: 720px) {
  .hero {
    border-radius: 14px;
  }

  .insights-grid,
  .featured-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    --stats-card-width: min(240px, 82vw);
  }

  .collection-link,
  .comparison-row__meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .collection-link__meta {
    white-space: normal;
  }
}
