.product-hub {
  --product-ink: #17233b;
  --product-muted: #64748b;
  --product-violet: #5b4ae8;
  --product-pink: #cb4bc8;
  --product-line: #e0e3f0;
  overflow: clip;
  background: #f6f6fb;
  color: var(--product-ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}

body:has(.product-hub) > header {
  background: #15132c;
}

.product-hub *,
.product-hub *::before,
.product-hub *::after {
  box-sizing: border-box;
}

.product-hub h1,
.product-hub h2,
.product-hub h3,
.product-hub p,
.product-hub figure {
  margin: 0;
}

.product-hub a {
  color: inherit;
  text-decoration: none;
}

.product-hub a:focus-visible {
  outline: 3px solid var(--product-violet);
  outline-offset: 4px;
}

.product-hub__shell {
  width: min(1280px, calc(100% - 64px));
  margin-inline: auto;
}

.product-hub__hero {
  position: relative;
  padding: calc(4.75rem + 62px) 0 54px;
  overflow: hidden;
  border-bottom: 1px solid #dedff0;
  background: #eeedff;
}

.product-hub__hero::before,
.product-hub__hero::after {
  position: absolute;
  border: 1px solid #5b4ae820;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.product-hub__hero::before {
  top: -300px;
  left: max(-200px, calc((100vw - 1280px) / 2 - 240px));
  width: 630px;
  height: 630px;
  box-shadow: 0 0 0 62px #5b4ae80b;
}

.product-hub__hero::after {
  right: max(-110px, calc((100vw - 1280px) / 2 - 160px));
  bottom: -235px;
  width: 650px;
  height: 420px;
  box-shadow: 0 0 0 70px #cb4bc808;
}

.product-hub__hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.product-hub__eyebrow {
  display: block;
  color: var(--product-violet);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
}

.product-hub__hero h1 {
  margin-top: 18px;
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 650;
  line-height: 1.2;
}

.product-hub__hero p {
  max-width: 730px;
  margin: 18px auto 0;
  color: var(--product-muted);
  font-size: 16px;
  line-height: 1.85;
}

.product-hub__stages {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  color: #5c6380;
  font-size: 12px;
  font-weight: 600;
}

.product-hub__stages i {
  width: 18px;
  height: 1px;
  background: #aaa6d6;
}

.product-hub__catalog {
  padding: 62px 0 76px;
}

.product-hub__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 42px;
  margin-bottom: 30px;
}

.product-hub__heading h2 {
  margin-top: 10px;
  font-size: clamp(25px, 2.8vw, 36px);
  font-weight: 650;
  line-height: 1.3;
}

.product-hub__heading > p {
  max-width: 440px;
  color: var(--product-muted);
  font-size: 13px;
  line-height: 1.75;
  text-align: right;
}

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

.product-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 458px;
  flex-direction: column;
  padding: 25px 24px 22px;
  overflow: hidden;
  border: 1px solid var(--product-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 35px -34px #2b245f80;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.product-card:hover {
  border-color: #bbb5eb;
  box-shadow: 0 22px 48px -34px #2b245fa8;
  transform: translateY(-3px);
}

.product-card__category {
  position: absolute;
  top: 0;
  right: 0;
  max-width: 52%;
  padding: 7px 12px;
  border-bottom-left-radius: 8px;
  background: #eeedff;
  color: var(--product-violet);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.3;
}

.product-card:nth-child(2) .product-card__category {
  background: #f7ebfb;
  color: #a0449b;
}

.product-card:nth-child(3) .product-card__category {
  background: #e8f5f5;
  color: #18867e;
}

.product-card__title {
  display: flex;
  min-height: 50px;
  align-items: center;
  gap: 12px;
  padding-right: 28%;
}

.product-card__icon {
  flex: 0 0 auto;
  color: var(--product-violet);
  font-size: 27px;
}

.product-card__title h3 {
  min-width: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.product-card > strong {
  min-height: 1.6em;
  margin-top: 18px;
  color: #4a4388;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.6;
}

.product-card > p {
  min-height: 5.3em;
  margin-top: 12px;
  color: var(--product-muted);
  font-size: 12px;
  line-height: 1.75;
}

.product-card__meta {
  display: flex;
  min-height: 28px;
  flex-wrap: wrap;
  align-content: start;
  gap: 5px;
  margin-top: 14px;
}

.product-card__meta span {
  padding: 3px 6px;
  border: 1px solid #e2e3ef;
  border-radius: 4px;
  color: #71758c;
  font-size: 8px;
  font-weight: 650;
  line-height: 1.3;
}

.product-card__media,
.product-card__placeholder {
  position: relative;
  height: 136px;
  flex: 0 0 auto;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid #e5e5ef;
  border-radius: 6px;
  background: #f4f4fa;
}

.product-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-card:hover .product-card__media img {
  transform: scale(1.025);
}

.product-card__placeholder {
  display: grid;
  place-items: center;
  background:
    linear-gradient(#5b4ae80a 1px, transparent 1px), linear-gradient(90deg, #5b4ae80a 1px, transparent 1px), #f5f4fb;
  background-size: 22px 22px;
  color: #bcb7e7;
  font-size: 46px;
}

.product-card__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
  color: var(--product-violet);
  font-size: 11px;
  font-weight: 650;
}

.product-card__action i {
  font-size: 16px;
}

.product-hub__empty {
  padding: 80px 24px;
  border: 1px dashed #cfcde5;
  border-radius: 8px;
  color: var(--product-muted);
  text-align: center;
}

.product-hub__empty > span {
  color: var(--product-violet);
  font-size: 42px;
}

.product-hub__empty h2 {
  margin-top: 12px;
  font-size: 20px;
}

.product-hub__empty p {
  margin-top: 8px;
  font-size: 13px;
}

.product-hub__cta {
  padding: 30px 0;
  border-top: 1px solid #e1e1ec;
  background: #fff;
}

.product-hub__cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.product-hub__cta-inner > div {
  display: flex;
  align-items: baseline;
  gap: 18px;
}

.product-hub__cta strong {
  font-size: 18px;
}

.product-hub__cta span {
  color: var(--product-muted);
  font-size: 13px;
}

.product-hub__cta a {
  display: inline-flex;
  min-height: 42px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 9px 17px;
  border-radius: 6px;
  background: var(--product-violet);
  color: #fff;
  font-weight: 650;
}

.product-hub__cta a span {
  color: inherit;
}

@media (max-width: 980px) {
  .product-hub__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .product-hub__shell {
    width: calc(100% - 36px);
  }

  .product-hub__hero {
    padding: calc(4.75rem + 42px) 0 42px;
  }

  .product-hub__hero h1 {
    font-size: 36px;
  }

  .product-hub__hero p {
    font-size: 14px;
  }

  .product-hub__stages {
    gap: 8px;
  }

  .product-hub__stages i {
    width: 10px;
  }

  .product-hub__catalog {
    padding: 48px 0 56px;
  }

  .product-hub__heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
  }

  .product-hub__heading > p {
    text-align: left;
  }

  .product-hub__grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: 438px;
  }

  .product-hub__cta-inner,
  .product-hub__cta-inner > div {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-hub__cta-inner > div {
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-card,
  .product-card__media img {
    transition: none;
  }
}
