/* DeviceShowcase */
.device-showcase {
  position: relative;
  width: 100%;
  min-height: 520px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.device-showcase__glass {
  position: absolute;
  inset: 10% 12%;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 16%, rgba(0, 255, 135, 0.16), transparent 38%),
    linear-gradient(145deg, rgba(4, 10, 8, 0.96), rgba(3, 7, 6, 0.94));
  filter: blur(28px);
  opacity: 0.7;
  z-index: -1;
}

.device-showcase__frame {
  position: absolute;
  border: 1px solid rgba(0, 255, 135, 0.16);
  background: linear-gradient(145deg, rgba(12, 18, 16, 0.96), rgba(4, 8, 7, 0.9));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48), 0 0 70px rgba(0, 255, 135, 0.12);
  overflow: hidden;
  animation: deviceFloat 7s ease-in-out infinite;
}

.device-showcase__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 30%),
    linear-gradient(90deg, rgba(0, 255, 135, 0.08), transparent 20%, transparent 80%, rgba(0, 255, 135, 0.08));
  mix-blend-mode: screen;
  pointer-events: none;
}

.device-showcase__frame::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.device-showcase__frame--desktop {
  width: min(100%, 680px);
  aspect-ratio: 16 / 10;
  border-radius: 20px;
  transform: translateX(-4%) rotate(-1.4deg);
}

.device-showcase__topbar {
  position: absolute;
  left: 16px;
  top: 10px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.device-showcase__topbar span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(236, 255, 246, 0.38);
}

.device-showcase__screen {
  position: absolute;
  inset: 10px 10px 38px;
  border-radius: 12px 12px 8px 8px;
  overflow: hidden;
  background: #050806;
}

.device-showcase__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.device-showcase__stand {
  position: absolute;
  left: 25%;
  right: 25%;
  bottom: -18px;
  height: 30px;
  border-radius: 0 0 16px 16px;
  background: linear-gradient(180deg, rgba(217, 224, 226, 0.88), rgba(108, 116, 120, 0.98));
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
}

.device-showcase__frame--mobile {
  width: min(100%, 250px);
  aspect-ratio: 9 / 19.5;
  right: 5%;
  top: 8%;
  border-radius: 34px;
  transform: rotate(0.8deg);
  animation-direction: reverse;
}

.device-showcase__frame--mobile .device-showcase__screen {
  inset: 9px;
  border-radius: 24px;
}

.device-showcase__notch {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 42%;
  height: 28px;
  transform: translateX(-50%);
  border-radius: 0 0 16px 16px;
  background: rgba(0, 0, 0, 0.88);
  z-index: 3;
}

.device-showcase__label {
  position: absolute;
  left: 16px;
  bottom: 14px;
  padding: 6px 10px;
  border: 1px solid rgba(0, 255, 135, 0.18);
  border-radius: 999px;
  background: rgba(3, 8, 6, 0.82);
  color: rgba(236, 255, 246, 0.9);
  font-family: monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.device-showcase--card {
  min-height: 300px;
}

.device-showcase--card .device-showcase__frame--desktop {
  width: min(95%, 700px);
  aspect-ratio: 16 / 10;
  left: 6%;
  transform: translateX(0) rotate(-1deg);
}

.device-showcase--card .device-showcase__frame--mobile {
  width: 128px;
  right: 8%;
  top: 14%;
}

.device-showcase--card .device-showcase__label {
  left: 12px;
  bottom: 10px;
}

@keyframes deviceFloat {
  0%,
  100% {
    transform: translateY(0) rotate(var(--device-tilt, -1deg));
  }
  50% {
    transform: translateY(-10px) rotate(var(--device-tilt, -1deg));
  }
}

@media (prefers-reduced-motion: reduce) {
  .device-showcase__frame {
    animation: none;
  }
}

@media (max-width: 1080px) {
  .device-showcase {
    min-height: 480px;
  }

  .device-showcase--card {
    min-height: 280px;
  }
}

@media (max-width: 720px) {
  .device-showcase {
    min-height: 430px;
  }

  .device-showcase__frame--desktop {
    width: 100%;
    left: 0;
    transform: translateX(0) rotate(-0.8deg);
  }

  .device-showcase__frame--mobile {
    width: 34%;
    right: 2%;
  }
}
