/* =====================================================================
   App preview — tilted product shot with floating live HUD chips
   ===================================================================== */

.jp-stage {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  perspective: 1600px;
}

/* Glow pooled under the window */
.jp-stage::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -60px;
  height: 160px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(124, 108, 255, 0.5), transparent 70%);
  filter: blur(30px);
  z-index: -1;
  pointer-events: none;
}

.jp-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #0b0b12;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 1px rgba(124, 108, 255, 0.15), 0 50px 120px -40px rgba(0, 0, 0, 0.9),
    0 30px 90px -40px rgba(124, 108, 255, 0.55);
  transform-style: preserve-3d;
  will-change: transform;
}

/* Top rim highlight */
.jp-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  z-index: 4;
}

.jp-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  background: linear-gradient(180deg, #13131c, #0e0e15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.jp-chrome > span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}
.jp-chrome > span:first-child {
  background: #ff5c7a;
  opacity: 0.7;
}
.jp-chrome > span:nth-child(2) {
  background: #fbbf24;
  opacity: 0.7;
}
.jp-chrome > span:nth-child(3) {
  background: #34d399;
  opacity: 0.7;
}
.jp-url {
  margin: 0 auto;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-3);
  letter-spacing: 0.04em;
  transform: translateX(-24px);
}

.jp-card img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  pointer-events: none;
}

.jp-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s;
  mix-blend-mode: screen;
}

/* HUD chips */
.hud-chip {
  position: absolute;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(10, 10, 16, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
  animation: bob 6s ease-in-out infinite;
  pointer-events: none;
}
.hud-k {
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  color: var(--text-3);
  font-weight: 600;
}
.hud-v {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-1);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.hud-v small {
  font-size: 0.7rem;
  color: var(--text-3);
  margin-left: 2px;
}
.hud-v.cyan {
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(34, 211, 238, 0.6);
}
.hud-delta {
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--good);
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--good-soft);
}

.hud-fps {
  top: 18%;
  left: -40px;
}
.hud-pulse {
  bottom: 16%;
  right: -40px;
  animation-delay: -3s;
}

@keyframes bob {
  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 1180px) {
  .hud-fps {
    left: 12px;
  }
  .hud-pulse {
    right: 12px;
  }
}

@media (max-width: 640px) {
  .jp-card {
    border-radius: 12px;
  }
  .jp-chrome {
    height: 24px;
  }
  .jp-url {
    display: none;
  }
  .hud-chip {
    padding: 6px 9px;
    gap: 6px;
    border-radius: 10px;
  }
  .hud-v {
    font-size: 0.95rem;
  }
  .hud-fps {
    top: auto;
    bottom: -16px;
    left: 8px;
  }
  .hud-pulse {
    bottom: -16px;
    right: 8px;
  }
  .hud-delta {
    display: none;
  }
}
