.phone-figure { perspective: 1100px; }
.phone-device {
  --phone-rx: 0deg;
  --phone-ry: -5deg;
  --phone-rz: 1.5deg;
  --phone-lift: 0px;
  position: relative;
  width: 310px;
  max-width: 100%;
  aspect-ratio: 2 / 3;
  border: 1px solid #527ba777;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 20px 32px 70px #0009, -2px 0 14px #81c7ff12;
  transform: rotateX(var(--phone-rx)) rotateY(var(--phone-ry)) rotateZ(var(--phone-rz)) translateY(var(--phone-lift));
  transform-style: preserve-3d;
  transition: transform 180ms ease-out, box-shadow 250ms ease;
}
.phone-device > img { display: block; width: 100%; height: auto; margin: 0; }
.phone-ping { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.phone-ping-ring {
  fill: none;
  stroke: #8ee5ff;
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
  transform-box: fill-box;
  transform-origin: center;
  animation: phone-position-ping 3.9s ease-out infinite;
  filter: drop-shadow(0 0 3px #158dff);
}
.phone-ping-ring:nth-child(2) { animation-delay: -1.3s; }
.phone-ping-ring:nth-child(3) { animation-delay: -2.6s; }
.phone-ping-center { fill: #50bfff; stroke: #e8faff; stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .65; }
.phone-edge-glint { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; border: 1px solid #b0dcff22; background: linear-gradient(120deg,#cceeff05,transparent 35%,transparent 80%,#249cff06); }
.phone-figure[data-phone-active="false"] .phone-ping-ring { animation-play-state: paused; }
.motion-paused .phone-device { transition: none; }
@keyframes phone-position-ping { 0% { transform: scale(.8); opacity: .95; } 70% { opacity: .2; } 100% { transform: scale(5.6); opacity: 0; } }
@media(max-width:820px) { .phone-device { width:280px; } }
@media(max-width:560px) { .phone-device { width:255px; border-radius:18px; } }
@media(prefers-reduced-motion:reduce) {
  .phone-device { transform:none; transition:none; }
  .phone-ping-ring { animation:none; transform:scale(2); opacity:.3; }
  .phone-ping-ring:nth-child(2) { transform:scale(4); opacity:.15; }
  .phone-ping-ring:nth-child(3) { opacity:0; }
}
