/* ============================================================
   COMPONENTE — iPhone Mockup (frame + tela + botões)
   Usado no Hero e no Preview Section
============================================================ */

/* ---- HERO phone ---- */
.hero-phone-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
  position: relative;
}

.hero-phone-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(48,209,88,.22) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.phone {
  width: 270px;
  position: relative;
  z-index: 1;
  transform-style: preserve-3d;
  animation: phone-float 5s ease-in-out infinite;
}

@keyframes phone-float {
  0%, 100% { transform: translateY(0)    rotateX(2deg)  rotateY(-4deg); }
  50%       { transform: translateY(-18px) rotateX(-2deg) rotateY(4deg); }
}

/* ---- Frame compartilhado ---- */
.phone-frame,
.preview-phone-frame {
  width: 100%;
  background: linear-gradient(160deg, #2a2a2a 0%, #111 40%, #0a0a0a 100%);
  border: 1px solid rgba(255,255,255,.18);
  padding: 12px;
  position: relative;
  overflow: hidden;
}

.phone-frame {
  border-radius: 46px;
  box-shadow:
    0 0 0 1px rgba(0,0,0,.8),
    0 50px 120px rgba(0,0,0,.7),
    inset 0 1px 0 rgba(255,255,255,.14),
    inset 0 -1px 0 rgba(0,0,0,.5);
}

/* Dynamic Island (hero) */
.phone-notch-area {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 28px;
  background: #000;
  border-radius: 20px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.phone-camera {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2a2a2a, #0a0a0a);
  border: 1px solid rgba(255,255,255,.08);
}

.phone-camera::after {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  margin: 2px auto;
}

.phone-speaker {
  width: 46px;
  height: 5px;
  border-radius: 99px;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,.06);
}

/* Tela */
.phone-screen-wrap {
  border-radius: 36px;
  overflow: hidden;
  background: var(--phone-screen);
  position: relative;
  aspect-ratio: 9 / 19.5;
}

/* Botões laterais físicos */
.phone-button-side {
  position: absolute; right: -2px; top: 100px;
  width: 3px; height: 60px;
  background: rgba(255,255,255,.06);
  border-radius: 2px;
}
.phone-button-vol1 {
  position: absolute; left: -2px; top: 90px;
  width: 3px; height: 38px;
  background: rgba(255,255,255,.06);
  border-radius: 2px;
}
.phone-button-vol2 {
  position: absolute; left: -2px; top: 136px;
  width: 3px; height: 38px;
  background: rgba(255,255,255,.06);
  border-radius: 2px;
}

/* ---- PREVIEW phone (section interativa) ---- */
.preview-phone-area {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
  position: relative;
}

.preview-phone-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(48,209,88,.18) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}

.preview-phone {
  width: 260px;
  position: relative;
}

.preview-phone-frame {
  border-radius: 44px;
  box-shadow:
    0 0 0 1px rgba(0,0,0,.8),
    0 40px 100px rgba(0,0,0,.65),
    inset 0 1px 0 rgba(255,255,255,.12);
  padding: 11px;
}

/* Dynamic Island (preview) */
.preview-notch {
  position: absolute;
  top: 13px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 26px;
  background: #000;
  border-radius: 18px;
  z-index: 20;
}

.preview-screen-wrap {
  border-radius: 34px;
  overflow: hidden;
  background: #0d0d0f;
  position: relative;
  aspect-ratio: 9 / 19.5;
}

.preview-btn-side  { position: absolute; right: -2px; top: 90px;  width: 3px; height: 56px; background: rgba(255,255,255,.06); border-radius: 2px; }
.preview-btn-vol1  { position: absolute; left:  -2px; top: 80px;  width: 3px; height: 34px; background: rgba(255,255,255,.06); border-radius: 2px; }
.preview-btn-vol2  { position: absolute; left:  -2px; top: 122px; width: 3px; height: 34px; background: rgba(255,255,255,.06); border-radius: 2px; }

/* ---- CTA phones ---- */
.cta-phone { width: 180px; }

.cta-phone-frame {
  width: 100%;
  border-radius: 34px;
  background: linear-gradient(160deg, #2a2a2a 0%, #0a0a0a 100%);
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 30px 80px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.1);
  padding: 9px;
  position: relative;
  overflow: hidden;
}

.cta-notch {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 20px;
  background: #000;
  border-radius: 14px;
  z-index: 5;
}

.cta-screen {
  border-radius: 26px;
  overflow: hidden;
  background: #0d0d0f;
  aspect-ratio: 9 / 19.5;
}

.cta-screen-content {
  width: 100%;
  height: 100%;
  padding: 36px 12px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.cta-screen-icon { font-size: 32px; }
.cta-screen-text {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  letter-spacing: -.01em;
  line-height: 1.3;
}
.cta-screen-sub { font-size: 9px; color: #555; text-align: center; }

/* Inclinações dos 3 phones do CTA */
.cta-phone.tilt1 { transform: rotate(-8deg) translateY(20px); }
.cta-phone.tilt2 { transform: rotate(0deg)  scale(1.1); z-index: 2; }
.cta-phone.tilt3 { transform: rotate(8deg)  translateY(20px); }

/* ---- Notificação flutuante ---- */
.notif-toast {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 180px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(30,30,32,.95);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 40px rgba(0,0,0,.4);
  transform: translateY(-10px);
  opacity: 0;
  transition: all .4s var(--ease);
  z-index: 20;
  pointer-events: none;
}

.notif-toast.show { opacity: 1; transform: translateY(0); }

.notif-app {
  font-size: 9px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.notif-app-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.notif-title {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.01em;
  margin-bottom: 2px;
}

.notif-body { font-size: 10px; color: #888; line-height: 1.4; }
