.software-hub {
  --software-ink: #132238;
  --software-muted: #64748b;
  --software-blue: #2764ed;
  --software-cyan: #17aeb7;
  --software-line: #dce5f1;
  overflow: clip;
  background: #f3f7fc;
  color: var(--software-ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}

body:has(.software-hub) > header {
  background: #0a1730;
}

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

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

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

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

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

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

.software-hub__hero::after {
  position: absolute;
  right: max(-140px, calc((100vw - 1280px) / 2 - 190px));
  bottom: -230px;
  width: 680px;
  height: 420px;
  border: 1px solid #2764ed20;
  border-radius: 50%;
  box-shadow:
    0 0 0 64px #2764ed0b,
    0 0 0 128px #2764ed08;
  content: "";
  pointer-events: none;
}

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

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

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

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

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

.software-hub__stages i {
  width: 18px;
  height: 1px;
  background: #9fb5d5;
}

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

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

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

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

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

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

.software-card:hover {
  border-color: #abc1e8;
  box-shadow: 0 22px 48px -34px #17365fa8;
  transform: translateY(-3px);
}

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

.software-card:nth-child(2) .software-card__category {
  background: #e6f7f5;
  color: #16887d;
}

.software-card:nth-child(3) .software-card__category {
  background: #eef0ff;
  color: #595fcd;
}

.software-card:nth-child(4) .software-card__category {
  background: #f4ebfa;
  color: #8a4dad;
}

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

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

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

.software-card > strong {
  min-height: 3.2em;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.6;
}

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

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

.software-card__meta span {
  padding: 3px 6px;
  border: 1px solid #dce5f2;
  border-radius: 4px;
  color: #718198;
  font-size: 8px;
  font-weight: 650;
  line-height: 1.3;
}

.software-card__media,
.software-card__placeholder {
  position: relative;
  height: 116px;
  flex: 0 0 auto;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid #e1e7ef;
  border-radius: 6px;
  background: #f2f5f9;
}

.software-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: saturate(0.82);
  transition: transform 0.35s ease;
}

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

.software-card__placeholder {
  display: grid;
  place-items: center;
  background:
    linear-gradient(#2764ed0a 1px, transparent 1px), linear-gradient(90deg, #2764ed0a 1px, transparent 1px), #f3f6fa;
  background-size: 22px 22px;
  color: #aec4ea;
  font-size: 44px;
}

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

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

.software-card__action--muted {
  color: #8a98aa;
}

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

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

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

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

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

.software-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(--software-blue);
  color: #fff;
  font-weight: 650;
}

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

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

  .software-card {
    min-height: 430px;
  }
}

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

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

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

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

  .software-hub__stages {
    gap: 8px;
  }

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

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

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

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

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

  .software-card {
    min-height: 430px;
  }

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

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

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