:root {
  color-scheme: dark;
  --neon-aqua: #3df2ff;
  --neon-pink: #ff4fd8;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at bottom right, rgba(61, 242, 255, 0.15), transparent 28%),
    radial-gradient(circle at top left, rgba(255, 79, 216, 0.12), transparent 30%),
    #040816;
  min-height: 100vh;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(102, 6, 131, 0.07) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.06;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

#chat {
  scrollbar-width: thin;
  scrollbar-color: rgba(61, 242, 255, 0.3) transparent;
}

#chat::-webkit-scrollbar {
  width: 8px;
}

#chat::-webkit-scrollbar-thumb {
  background: rgba(61, 242, 255, 0.25);
  border-radius: 999px;
}

.chat-bubble {
  max-width: min(85%, 32rem);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(2, 8, 23, 0.25);
}

.chat-bubble.bot {
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
}

.chat-bubble.user {
  background: linear-gradient(135deg, rgba(61, 242, 255, 0.2), rgba(255, 79, 216, 0.18));
  border-color: rgba(61, 242, 255, 0.25);
  color: white;
}

.chat-bubble.typing {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.8rem 0.95rem;
}

.typing-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: rgba(61, 242, 255, 0.9);
  animation: pulse-dot 1.2s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.15s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes pulse-dot {
  0%,
  80%,
  100% {
    transform: scale(0.7);
    opacity: 0.45;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

::selection {
  background: rgba(61, 242, 255, 0.35);
  color: white;
}
