.phone-showcase {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(22px, 5vw, 72px);
}

.phone-showcase .widget-copy {
  min-width: 0;
  animation: copy-in 780ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.phone-showcase .eyebrow {
  margin: 0 0 10px;
  color: var(--cyan, #6ad3ff);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.phone-showcase .widget-copy h2 {
  max-width: 13ch;
  margin: 0;
  color: rgba(244, 247, 251, 0.9);
  font-size: clamp(2.1rem, 3.4vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.phone-showcase .lead {
  max-width: 31rem;
  margin: 22px 0 0;
  color: var(--muted, #aab5c7);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.58;
}

.phone-scene-shell {
  position: relative;
  min-width: 0;
  min-height: clamp(390px, 43vw, 560px);
  overflow: visible;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  aspect-ratio: 16 / 10;
  animation: scene-in 980ms cubic-bezier(0.16, 1, 0.3, 1) 160ms both;
}

.phone-scene-canvas {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  cursor: default;
  outline: none;
  touch-action: none;
}

.phone-scene-canvas.is-phone-hovered {
  cursor: pointer;
}

.phone-scene-canvas.is-phone-draggable {
  cursor: grab;
}

.phone-scene-canvas.is-phone-dragging {
  cursor: grabbing;
}

.phone-screen-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink, #f4f7fb);
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.icon-button:hover,
.icon-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(106, 211, 255, 0.55);
  background: rgba(106, 211, 255, 0.12);
  outline: none;
}

.icon-button svg {
  grid-area: 1 / 1;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.phone-replay-button {
  position: absolute;
  top: 50%;
  left: clamp(12px, 7%, 58px);
  z-index: 3;
  background: rgba(7, 9, 16, 0.64);
  backdrop-filter: blur(14px);
  transform: translateY(-50%);
}

.phone-replay-button:hover,
.phone-replay-button:focus-visible {
  transform: translateY(calc(-50% - 1px));
}

@keyframes copy-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scene-in {
  from {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    filter: none;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 820px) {
  .phone-showcase {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .phone-showcase .widget-copy h2 {
    max-width: 13ch;
    font-size: clamp(2.1rem, 11vw, 3.4rem);
  }

  .phone-scene-shell {
    width: 100%;
    min-height: clamp(430px, 86vw, 620px);
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 520px) {
  .phone-showcase .lead {
    font-size: 0.98rem;
  }

  .phone-replay-button {
    top: 50%;
    left: 8px;
  }

  .phone-scene-shell {
    min-height: clamp(430px, 118vw, 540px);
    aspect-ratio: 3 / 4;
  }
}
