/* Phone Mockup & Chat UI */

.phone-mockup {
  position: relative;
  width: 260px;
  height: 520px;
  background: #000;
  border-radius: 40px;
  border: 3px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 0 30px rgba(0, 0, 0, 0.3);
  padding: 50px 12px 24px;
}

.phone-mockup::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 400px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, var(--accent-glow), transparent 70%);
  z-index: -1;
  filter: blur(40px);
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 24px;
  background: #000;
  border-radius: 0 0 16px 16px;
  z-index: 10;
}

.phone-screen {
  border-radius: 28px;
  background: #0a0a0f;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Chat header */
.chat-header {
  padding: 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--warm));
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-name { font-size: 13px; font-weight: 600; color: #eee; }

/* Messages */
.chat-messages {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-msg p {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 12px;
  line-height: 1.5;
  max-width: 85%;
  margin: 0;
  color: var(--text-muted);
}

.chat-msg--ai p {
  background: rgba(255, 255, 255, 0.06);
  color: #ccc;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.chat-msg--user { display: flex; justify-content: flex-end; }
.chat-msg--user p {
  background: linear-gradient(135deg, var(--accent), var(--warm));
  color: #fff;
  border-bottom-right-radius: 4px;
  margin-left: auto;
}

.chat-msg--notify { text-align: center; }
.chat-msg--notify p {
  background: rgba(255, 82, 22, 0.1);
  border: 1px solid var(--border-accent);
  color: var(--warm);
  font-size: 11px;
  border-radius: 20px;
  display: inline-block;
  margin: 8px auto;
  max-width: 100%;
}

/* Input bar */
.chat-input {
  padding: 12px 16px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.chat-input span { font-size: 12px; color: rgba(255, 255, 255, 0.2); }

/* Stagger animation */
@keyframes msgAppear {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.hero.is-visible .chat-msg {
  opacity: 0;
  animation: msgAppear 0.4s ease forwards;
}
.hero.is-visible .chat-msg:nth-child(1) { animation-delay: 0.3s; }
.hero.is-visible .chat-msg:nth-child(2) { animation-delay: 0.8s; }
.hero.is-visible .chat-msg:nth-child(3) { animation-delay: 1.3s; }
.hero.is-visible .chat-msg:nth-child(4) { animation-delay: 2.0s; }
