.home-products-section {
  position: relative;
  padding: 76px 0 30px;
  background:
    linear-gradient(180deg, var(--to-sand-2) 0%, var(--to-white) 62%, var(--to-white) 100%);
  border-top: 1px solid color-mix(in srgb, var(--to-primary) 8%, transparent);
}

.home-section-heading {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.home-section-heading .eyebrow {
  margin-bottom: 8px;
  color: var(--to-primary);
}

.home-section-heading h2 {
  margin-bottom: 10px;
  color: var(--to-ink);
  font-size: clamp(2rem, 2.8vw, 2.85rem);
}

.home-section-heading p:not(.eyebrow) {
  max-width: 640px;
  margin: 0 auto;
  color: var(--to-muted);
  font-size: 1.03rem;
  line-height: 1.5;
}

.home-products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.home-product-card {
  --home-card-accent: var(--to-primary);
  --home-card-wash: color-mix(in srgb, var(--home-card-accent) 9%, var(--to-white));
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 386px;
  flex-direction: column;
  overflow: hidden;
  padding: 26px 24px 0;
  background: var(--to-white);
  border: 1px solid var(--to-line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(31, 21, 86, .08);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.home-product-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--home-card-accent) 26%, var(--to-line));
  box-shadow: 0 22px 54px rgba(31, 21, 86, .12);
}

.home-product-card--green {
  --home-card-accent: #20B977;
}

.home-product-card--blue {
  --home-card-accent: #2388F2;
}

.home-product-card--violet,
.home-product-card--purple {
  --home-card-accent: var(--to-primary);
}

.home-product-card__top {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  min-height: 58px;
  margin-bottom: 16px;
}

.home-product-card__top--logo {
  align-items: center;
}

.home-product-card__logo {
  display: block;
  width: auto;
  max-width: min(100%, 205px);
  max-height: 58px;
  object-fit: contain;
  object-position: left center;
}

.home-product-card__icon {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  place-items: center;
  color: var(--home-card-accent);
  background: var(--home-card-wash);
  border: 1px solid color-mix(in srgb, var(--home-card-accent) 20%, transparent);
  border-radius: 8px;
}

.home-product-card__icon svg {
  width: 30px;
  height: 30px;
}

.home-product-card h3 {
  min-width: 0;
  margin: 0;
  color: var(--to-ink);
  font-size: 1.15rem;
  line-height: 1.18;
  font-weight: 860;
  overflow-wrap: anywhere;
}

.home-product-card__tagline {
  margin: 0 0 10px;
  color: var(--home-card-accent);
  font-size: .94rem;
  line-height: 1.35;
  font-weight: 780;
}

.home-product-card__text {
  margin: 0 0 18px;
  color: var(--to-muted);
  font-size: .94rem;
  line-height: 1.58;
}

.home-product-card__link {
  margin: auto 0 20px;
}

.home-product-card__media {
  height: 132px;
  margin: 0 -24px;
  overflow: hidden;
  border-top: 1px solid var(--to-line);
  background: linear-gradient(180deg, var(--home-card-wash), var(--to-white));
}

.home-product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.home-products-section__action {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.home-platform-section {
  padding: 20px 0 76px;
  background: var(--to-white);
}

.home-platform-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 330px) minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  overflow: hidden;
  padding: 34px 40px;
  color: var(--to-white);
  background:
    linear-gradient(135deg, #05081A 0%, #0A1431 56%, #130B36 100%);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(11, 9, 42, .22);
}

.home-platform-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(123, 95, 255, .12), transparent),
    repeating-linear-gradient(0deg, rgba(255,255,255,.055) 0 1px, transparent 1px 48px);
  pointer-events: none;
}

.home-platform-visual,
.home-platform-copy,
.home-platform-action,
.home-platform-capabilities {
  position: relative;
  z-index: 1;
}

.home-platform-visual__frame {
  display: grid;
  min-height: 188px;
  place-items: center;
}

.home-platform-visual__frame img {
  width: min(100%, 270px);
  max-height: 220px;
  object-fit: contain;
  filter: drop-shadow(0 18px 34px rgba(104, 61, 244, .38));
}

.home-platform-copy h2 {
  margin: 0 0 10px;
  color: var(--to-white);
  font-size: clamp(1.35rem, 2vw, 1.85rem);
}

.home-platform-copy__lede {
  display: grid;
  gap: 2px;
}

.home-platform-copy__lede p {
  margin: 0;
  color: color-mix(in srgb, var(--to-white) 76%, var(--to-secondary));
  font-size: .98rem;
  line-height: 1.45;
}

.home-platform-action {
  justify-self: end;
}

.home-platform-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 44px;
  padding: 0 17px;
  color: var(--to-white);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 8px;
  font-weight: 780;
  line-height: 1;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.home-platform-btn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.5);
}

.home-platform-btn .twinorbits-btn__icon {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}

.home-platform-capabilities {
  grid-column: 2 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 22px 0 0;
  border-top: 1px solid rgba(255,255,255,.11);
  list-style: none;
}

.home-platform-capabilities li {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  color: color-mix(in srgb, var(--to-white) 82%, var(--to-secondary));
  font-size: .86rem;
  line-height: 1.25;
  font-weight: 780;
}

.home-platform-capabilities span {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  place-items: center;
  color: var(--to-secondary);
  background: rgba(123, 44, 255, .14);
  border: 1px solid rgba(182, 140, 255, .28);
  border-radius: 8px;
}

.home-platform-capabilities svg {
  width: 16px;
  height: 16px;
}

.home-platform-capabilities strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

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

  .home-platform-panel {
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  }

  .home-platform-action {
    grid-column: 2;
    justify-self: start;
  }

  .home-platform-capabilities {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .home-products-section {
    padding: 58px 0 24px;
  }

  .home-section-heading {
    margin-bottom: 28px;
  }

  .home-product-card {
    min-height: 360px;
  }

  .home-platform-section {
    padding-bottom: 62px;
  }

  .home-platform-panel {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 28px;
  }

  .home-platform-visual__frame {
    min-height: 160px;
  }

  .home-platform-visual__frame img {
    width: min(100%, 240px);
  }

  .home-platform-action {
    grid-column: 1;
  }

  .home-platform-capabilities {
    grid-column: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 18px;
  }
}

@media (max-width: 560px) {
  .home-products-section {
    padding: 46px 0 20px;
  }

  .home-products-grid {
    grid-template-columns: 1fr;
  }

  .home-product-card {
    min-height: 0;
    padding: 22px 18px 0;
  }

  .home-product-card__media {
    height: 124px;
    margin-inline: -18px;
  }

  .home-products-section__action {
    justify-content: flex-start;
  }

  .home-platform-section {
    padding: 16px 0 52px;
  }

  .home-platform-panel {
    padding: 22px;
  }

  .home-platform-copy__lede p {
    font-size: .94rem;
  }

  .home-platform-btn {
    width: 100%;
  }

  .home-platform-capabilities {
    grid-template-columns: 1fr;
  }
}
