/* Four real captures sit inside transparent, independently reusable hardware. */
.home-infrastructure {
  padding-top: 96px;
}
.infrastructure-showcase {
  margin: 38px 0 24px;
  min-width: 0;
}
.infrastructure-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1140 / 730;
  perspective: 1800px;
  isolation: isolate;
  background: transparent;
}
.infrastructure-monitor {
  position: absolute;
  width: 34%;
  aspect-ratio: 1440 / 1040;
  background: transparent;
  filter: drop-shadow(0 8px 13px #0000001c);
}
.infrastructure-monitor--datacenter {
  z-index: 1;
  top: 0;
  left: 30%;
  width: 40%;
}
.infrastructure-monitor--api {
  z-index: 2;
  top: 39%;
  left: 1%;
  width: 32%;
  transform: rotateY(10deg) rotateZ(-1.5deg);
  transform-origin: right center;
}
.infrastructure-monitor--network {
  z-index: 3;
  top: 40%;
  left: 33%;
}
.infrastructure-monitor--energy {
  z-index: 2;
  top: 39%;
  right: 1%;
  width: 32%;
  transform: rotateY(-10deg) rotateZ(1.5deg);
  transform-origin: left center;
}
.infrastructure-monitor__screen {
  position: absolute;
  left: 1.666666667%;
  top: 2.307692308%;
  width: 96.666666667%;
  height: 83.653846154%;
  overflow: hidden;
  border-radius: 0.28%;
  background: transparent;
}
.infrastructure-monitor__screen picture,
.infrastructure-monitor__screen img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
}
.infrastructure-monitor__hardware {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  pointer-events: none;
}
.infrastructure-peripherals {
  position: absolute;
  z-index: 4;
  top: 82%;
  left: 27%;
  display: block;
  width: 48%;
  height: auto;
  pointer-events: none;
}
.infrastructure-showcase figcaption {
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  line-height: 1.8;
}
.infrastructure-template-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}
.infrastructure-template {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.infrastructure-template h3 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.35px;
}
.infrastructure-template p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
.infrastructure-template__open {
  align-self: flex-start;
  margin-top: auto;
  min-height: 44px;
  line-height: 26px;
}
.infrastructure-method {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.infrastructure-method p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.infrastructure-method a {
  flex-shrink: 0;
  min-height: 44px;
}
.infrastructure-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
:root[data-theme="dark"] .infrastructure-monitor {
  filter: drop-shadow(0 8px 13px #00000050);
}
@media (max-width: 900px) {
  .home-infrastructure {
    padding-top: 64px;
  }
  .infrastructure-template-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 32px;
  }
  .infrastructure-method {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}
@media (max-width: 480px) {
  .infrastructure-showcase {
    margin-top: 26px;
  }
  .infrastructure-stage {
    perspective: 800px;
  }
  .infrastructure-monitor {
    filter: drop-shadow(0 4px 6px #0000001c);
  }
  .infrastructure-template-list {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 22px;
  }
  .infrastructure-template h3 {
    font-size: 18px;
  }
  .infrastructure-template p {
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-infrastructure *,
  .home-infrastructure *::before,
  .home-infrastructure *::after {
    animation: none;
    transition: none;
  }
}
