/* Premium iPhone mockup for marketing showcase */
.showcase-phone {
  --phone-accent: #6366f1;
  --phone-accent-secondary: #818cf8;
  display: flex;
  justify-content: center;
  align-items: center;
}
.showcase-phone .phone-mockup {
  width: 100%;
  max-width: 340px;
  background: #000000;
  border: 12px solid #08080a; /* Premium uniform screen bezel */
  border-radius: 50px; /* Snug squircle corners */
  aspect-ratio: 9 / 19.5;
  margin: 0 auto;
  position: relative;
  overflow: visible; /* Let 3D side buttons hang outside */
  display: flex;
  flex-direction: column;
  box-shadow:
    /* Space Black brushed titanium physical frame layer */
    0 0 0 1px #121213, /* Outer seam */
    0 0 0 4px #2b2b2e, /* Solid titanium band body */
    0 0 0 5px #151516, /* Outer bevel chamfer */
    /* Light specular reflections on titanium edge */
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 0 3px rgba(255, 255, 255, 0.2),
    /* Soft floating shadows representing physical depth */
    0 10px 20px rgba(0, 0, 0, 0.45),
    0 25px 55px rgba(0, 0, 0, 0.5),
    0 40px 90px rgba(0, 0, 0, 0.6);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

/* Subtle device tilt and reflection shift on hover! */
.showcase-phone .phone-mockup:hover {
  transform: perspective(1000px) translateY(-8px) rotateX(4deg) rotateY(-4deg);
  box-shadow:
    0 0 0 1px #121213,
    0 0 0 4px #3a3a3e, /* Brightens metal band slightly to simulate light reflection */
    0 0 0 5px #19191b,
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    inset 0 0 4px rgba(255, 255, 255, 0.25),
    0 15px 35px rgba(0, 0, 0, 0.5),
    0 35px 75px rgba(0, 0, 0, 0.55),
    0 55px 110px rgba(0, 0, 0, 0.65);
}

/* Antenna Lines on Frame */
.showcase-phone .phone-mockup::before {
  content: '';
  position: absolute;
  top: 40px;
  left: -16px;
  width: 4px;
  height: 4px;
  background: #151516; /* Left top antenna line */
  z-index: -2;
  box-shadow: 
    364px 0 0 #151516, /* Right top antenna line */
    0 450px 0 #151516, /* Left bottom antenna line */
    364px 450px 0 #151516; /* Right bottom antenna line */
}

/* Physical 3D Buttons */
.showcase-phone .phone-btn {
  position: absolute;
  background: linear-gradient(to bottom, #2d2d30 0%, #151516 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4),
    0 1px 3px rgba(0, 0, 0, 0.4);
  z-index: -1;
  transition: transform 0.1s ease, filter 0.2s ease;
}

.showcase-phone .phone-btn-action {
  top: 75px;
  left: -16px;
  width: 4px;
  height: 24px;
  border-radius: 3px 0 0 3px;
  border-right: none;
}

.showcase-phone .phone-btn-volup {
  top: 115px;
  left: -16px;
  width: 4px;
  height: 48px;
  border-radius: 3px 0 0 3px;
  border-right: none;
}

.showcase-phone .phone-btn-voldown {
  top: 175px;
  left: -16px;
  width: 4px;
  height: 48px;
  border-radius: 3px 0 0 3px;
  border-right: none;
}

.showcase-phone .phone-btn-power {
  top: 125px;
  right: -16px;
  width: 4px;
  height: 72px;
  border-radius: 0 3px 3px 0;
  border-left: none;
}

/* Push-in button effect on hover / click */
.showcase-phone .phone-btn-action:hover, .phone-btn-volup:hover, .phone-btn-voldown:hover {
  transform: translateX(1px);
  filter: brightness(1.2);
}

.showcase-phone .phone-btn-power:hover {
  transform: translateX(-1px);
  filter: brightness(1.2);
}

/* Earpiece Speaker Slit */
.showcase-phone .phone-speaker {
  width: 50px;
  height: 2.5px;
  background: #0d0d0e;
  border-radius: 1px;
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  box-shadow: 
    inset 0 1px 1px rgba(0, 0, 0, 0.8),
    0 0.5px 0.5px rgba(255, 255, 255, 0.1);
}

/* Dynamic Island Capsule */
.showcase-phone .phone-notch {
  width: 90px;
  height: 28px;
  background-color: #000000;
  border-radius: 14px;
  position: absolute;
  top: 8px; /* Snug top position */
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  box-shadow: 
    inset 0 0 2px rgba(255, 255, 255, 0.15),
    0 1px 3px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  box-sizing: border-box;
}

/* TrueDepth Proximity Sensor */
.showcase-phone .phone-notch-sensor {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #05080c 0%, #010204 80%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 1px rgba(255, 255, 255, 0.1);
  opacity: 0.85;
}

/* Active Camera Status indicator dot */
.showcase-phone .phone-notch-indicator {
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background-color: #30d158; /* iOS Green active status indicator */
  box-shadow: 0 0 6px rgba(48, 209, 88, 0.8);
  animation: indicator-pulse 2.5s infinite ease-in-out;
  margin: 0 auto;
}

/* Front-Facing Camera Lens */
.showcase-phone .phone-notch-camera {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #1e3545 0%, #09121a 45%, #020406 85%);
  border: 1.5px solid #080a0d;
  box-shadow: 
    inset 0 0.5px 1.5px rgba(255, 255, 255, 0.4),
    0 0 2px rgba(0, 0, 0, 0.5);
  position: relative;
}

.showcase-phone .phone-notch-camera::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 2.5px;
  height: 2.5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  filter: blur(0.1px);
}

@keyframes indicator-pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.1); }
}

.showcase-phone .phone-screen {
  background: 
    radial-gradient(circle at 15% 25%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(139, 92, 246, 0.12) 0%, transparent 40%),
    #060609; /* Deep, premium dark space */
  background-size: 200% 200%;
  animation: aura-bg-flow 10s ease-in-out infinite alternate;
  border-radius: 38px; /* Snug fit inside bezel */
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  padding: 48px 0 0 0; /* Clear space for status bar and dynamic island */
  height: 100%;
  color: #FFF;
  position: relative;
  overflow: hidden;
}

@keyframes aura-bg-flow {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}

/* Glass Glare Overlay */
.showcase-phone .phone-glare {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(115deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 28%, transparent 28%),
    linear-gradient(230deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 15%);
  pointer-events: none;
  z-index: 8;
  border-radius: inherit;
}

/* iOS Home Indicator Bar */
.showcase-phone .phone-screen::after {
  content: '';
  position: absolute;
  bottom: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 5px;
  background-color: rgba(255, 255, 255, 0.45);
  border-radius: 2.5px;
  z-index: 10;
}

/* iOS Status Bar styling */
.showcase-phone .phone-status-bar {
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9;
  pointer-events: none;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", sans-serif;
  color: #FFFFFF;
}

.showcase-phone .status-time {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.showcase-phone .status-icons {
  display: flex;
  gap: 6px;
  align-items: center;
}

.showcase-phone .status-icon {
  display: block;
  opacity: 0.95;
  color: #FFFFFF;
}

.showcase-phone .chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(22, 22, 24, 0.75); /* iOS dark-gray translucent bar */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.15);
  margin-top: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 5;
}

.showcase-phone .chat-back-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 8px 6px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--phone-accent);
}

.showcase-phone .chat-back-btn svg {
  width: 12px;
  height: 20px;
  stroke: currentColor;
}

.showcase-phone .chat-contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.showcase-phone .chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  padding: 0;
  margin: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: none;
  border: none;
  overflow: hidden;
  position: relative;
  transition: transform 0.25s ease;
}

.showcase-phone .chat-avatar-ai {
  display: none !important;
}

.showcase-phone .chat-avatar img {
  display: block !important;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.showcase-phone .chat-avatar::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background-color: #10B981;
  border: 1.5px solid #000000;
  border-radius: 50%;
  box-shadow: 0 0 6px #10B981;
  animation: avatar-pulse 2s infinite;
}

@keyframes avatar-pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

.showcase-phone .chat-avatar:hover {
  transform: scale(1.03);
}

.showcase-phone .chat-name-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.showcase-phone .chat-name {
  font-size: 11px;
  font-weight: 500;
  color: #FFFFFF;
  text-align: center;
  max-width: 155px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.showcase-phone .chat-chevron {
  font-size: 10px;
  color: #8E8E93;
  font-weight: bold;
}

.showcase-phone .chat-video-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 4px 6px 8px;
  flex-shrink: 0;
  color: var(--phone-accent);
}

.showcase-phone .chat-video-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.showcase-phone .chat-date-stamp {
  font-size: 10px;
  font-weight: 600;
  color: #AEAEB2; /* iOS light-gray subtext for high-contrast */
  text-align: center;
  margin: 16px 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.showcase-phone .transcript-area {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  padding: 16px 14px;
  background: transparent;
}

.showcase-phone .transcript-msg {
  padding: 10px 14px;
  font-size: 13.5px;
  line-height: 1.45;
  max-width: 75%;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  margin-bottom: 2px;
  box-sizing: border-box;
  word-wrap: break-word;
  transition: all 0.15s ease ease;
}

.showcase-phone .transcript-msg.ai {
  background: rgba(255, 255, 255, 0.08); /* Frosted glass effect */
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #FFF;
  align-self: flex-start;
  border-radius: 16px 16px 16px 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.showcase-phone .transcript-msg.user {
  background: linear-gradient(135deg, var(--phone-accent) 0%, var(--phone-accent-secondary) 100%); /* Neon Purple & Blue gradient */
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #FFF;
  align-self: flex-end;
  border-radius: 16px 16px 4px 16px;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}

.showcase-phone .transcript-msg.system {
  display: none; /* Hide dev-style logs like [Chat started] */
}

/* Typing Indicator Animation */
.showcase-phone .typing-indicator {
  display: flex;
  gap: 4px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px 16px 16px 4px;
  width: fit-content;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.showcase-phone .typing-dot {
  width: 6px;
  height: 6px;
  background-color: #FFFFFF;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  animation: typing-bounce 1.4s infinite ease-in-out;
}

.showcase-phone .typing-dot:nth-child(2) { animation-delay: 0.2s; }
.showcase-phone .typing-dot:nth-child(3) { animation-delay: 0.4s; }

/* Phone dial/call controls footer styling */
.showcase-phone .chat-footer {
  border-top: 0.5px solid rgba(255, 255, 255, 0.12);
  padding: 8px 12px 28px 12px; /* Bottom padding gives room for home indicator */
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(22, 22, 24, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  width: 100%;
  box-sizing: border-box;
  margin-top: 0;
}

.showcase-phone .chat-input {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 8px 14px;
  color: #FFFFFF;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: 13.5px;
  outline: none;
  transition: all 0.15s ease;
}

.showcase-phone .chat-input:focus {
  border-color: #0A84FF;
  background: rgba(255, 255, 255, 0.08);
}

.showcase-phone .chat-input[readonly] {
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.05);
}

.showcase-phone .chat-send-btn {
  background: #0A84FF;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.showcase-phone .chat-send-btn:hover:not(:disabled) {
  background: #007AFF;
  transform: scale(1.05);
}

.showcase-phone .chat-send-btn:disabled {
  background: #252528;
  color: rgba(255, 255, 255, 0.2);
  cursor: not-allowed;
}

.showcase-phone .chat-send-btn svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

@keyframes typing-bounce {
  0%, 80%, 100% { transform: scale(0.6); }
  40% { transform: scale(1); }
}

.showcase-phone .chat-back-btn:empty { width: 28px; flex-shrink: 0; }
.showcase-phone .quick-reply-container { display: none; }
@media (prefers-reduced-motion: reduce) {
  .showcase-phone .phone-mockup, .showcase-phone .phone-screen, .showcase-phone .phone-notch-indicator, .showcase-phone .chat-avatar::after { animation: none !important; transition: none !important; }
  .showcase-phone .phone-mockup:hover { transform: none; }
}
