.screenshot-stack {
  position: relative;
  width: min(360px, 82vw);
  min-height: 560px;
  display: grid;
  place-items: center;
  margin-top: -72px;
}

.app-screenshot-card {
  position: absolute;
  margin: 0;
  width: min(240px, 52vw);
  border-radius: 36px;
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.035)),
    #070707;
  border: 1px solid rgba(230, 220, 200, 0.16);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(230, 220, 200, 0.05);
  animation: fadeInUp 0.7s ease-out 0.15s both;
}

.app-screenshot-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  background: #050505;
}

.app-screenshot-card figcaption {
  margin-top: 12px;
  color: var(--text-tertiary);
  font-size: 0.86rem;
  text-align: center;
}

.screenshot-front {
  z-index: 2;
  transform: translateX(-24px) rotate(-2deg);
}

.screenshot-back {
  z-index: 1;
  transform: translateX(42px) translateY(28px) rotate(4deg) scale(0.9);
  opacity: 0.72;
}

.hero-split {
  position: relative;
  padding-top: 128px;
}

.hero-logo {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  pointer-events: none;
}

.hero-brand {
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.hero-brand-mark {
  display: grid;
  place-items: center;
  width: 160px;
  height: 160px;
  flex: 0 0 auto;
}

.hero-brand-mark .logo {
  width: 160px;
  height: 160px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.38));
}

@media (max-width: 900px) {
  .screenshot-stack {
    min-height: 600px;
  }
}

@media (max-width: 640px) {
  .hero-split {
    padding-top: 108px;
  }

  .hero-brand {
    gap: 10px;
    padding: 8px 14px;
  }

  .hero-brand-mark,
  .hero-brand-mark .logo {
    width: 42px;
    height: 42px;
  }

  .screenshot-stack {
    min-height: 520px;
  }

  .app-screenshot-card {
    width: min(260px, 68vw);
    border-radius: 30px;
  }

  .app-screenshot-card img {
    border-radius: 22px;
  }

  .screenshot-front {
    transform: translateX(-22px) rotate(-2deg);
  }

  .screenshot-back {
    transform: translateX(38px) translateY(30px) rotate(4deg) scale(0.9);
  }
}
