.ecosystem-showcase {
  max-width: 1050px;
  margin: 58px auto 22px;
  padding-top: 27px;
  border-top: 1px solid var(--line);
}

.ecosystem-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 18px;
}

.ecosystem-heading .eyebrow {
  margin-bottom: 7px;
}

.ecosystem-heading h2 {
  margin: 0;
  font-size: 20px;
}

.ecosystem-more {
  color: var(--blue);
  font-size: 11px;
  text-decoration: none;
  white-space: nowrap;
}

.ecosystem-more:hover {
  text-decoration: underline;
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.ecosystem-product {
  position: relative;
  min-width: 0;
  min-height: 156px;
  padding: 19px 20px;
  border-inline-end: 1px solid var(--line);
}

.ecosystem-product-link {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.ecosystem-product-link:hover {
  z-index: 1;
  background: color-mix(in srgb, var(--paper) 76%, white);
  box-shadow: inset 0 -3px var(--lime);
}

.ecosystem-product-link:focus-visible {
  z-index: 2;
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}

.ecosystem-cta {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: auto;
  padding-top: 18px;
  color: var(--blue);
  font-size: 10px;
  line-height: 1.3;
}

.ecosystem-preview {
  position: relative;
  display: block;
  height: 112px;
  margin: -2px -2px 17px;
  overflow: hidden;
  background: #eef1ec;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.ecosystem-preview::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px #ffffff66;
  content: "";
  pointer-events: none;
}
.ecosystem-preview iframe {
  width: 300%;
  height: 300%;
  border: 0;
  pointer-events: none;
  transform: scale(.33334);
  transform-origin: 0 0;
  background: #fff;
}
.ecosystem-preview-dark { background: #070611; }
.ecosystem-preview-dev { background: #d7dad2; }

#other-products-nav[hidden] { display: none; }

.ecosystem-product:last-child {
  border-inline-end: 0;
}

.ecosystem-product.current {
  background: #eef1ff;
}

.ecosystem-product.current::after {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 3px;
  background: var(--blue);
  content: "";
}

.ecosystem-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ecosystem-index {
  color: #9ba293;
  font: 9px "Martian Mono", monospace;
}

.ecosystem-current {
  padding: 3px 6px;
  color: var(--blue);
  font-size: 9px;
  background: var(--white);
  border-radius: 4px;
}

.ecosystem-product h2 {
  margin: 16px 0 7px;
  font-size: 19px;
}

.ecosystem-product p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

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

  .ecosystem-product:nth-child(2) {
    border-inline-end: 0;
  }

  .ecosystem-product:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 620px) {
  .ecosystem-showcase {
    margin-top: 38px;
    padding-top: 22px;
  }

  .ecosystem-heading {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }

  .ecosystem-grid {
    grid-template-columns: 1fr;
  }

  .ecosystem-product,
  .ecosystem-product:nth-child(2) {
    min-height: auto;
    border-inline-end: 0;
    border-bottom: 1px solid var(--line);
  }

  .ecosystem-product:last-child {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ecosystem-showcase,
  .ecosystem-product {
    animation: none;
  }
}
