:root {
  --background: 212 53% 97%;
  --foreground: 220 42% 10%;
  --primary: 184 100% 56%;
  --secondary: 201 100% 62%;
  --muted: 217 14% 42%;
  --destructive: 351 100% 63%;
  --border: 214 26% 84%;
  --card: 0 0% 100%;

  --shadow-sm: 0 8px 20px rgba(7, 17, 31, 0.08);
  --shadow-md: 0 16px 40px rgba(7, 17, 31, 0.16);
  --shadow-lg: 0 28px 70px rgba(7, 17, 31, 0.22);

  --transition-fast: 160ms ease;
  --transition-smooth: 320ms cubic-bezier(0.22, 1, 0.36, 1);

  --radius-sm: 0.65rem;
  --radius-md: 1rem;
  --radius-lg: 1.45rem;
}

.dark {
  --background: 220 48% 7%;
  --foreground: 192 60% 96%;
  --primary: 184 100% 58%;
  --secondary: 199 100% 63%;
  --muted: 215 15% 67%;
  --destructive: 351 100% 63%;
  --border: 219 33% 20%;
  --card: 220 39% 10%;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
}

button,
a,
input,
textarea,
select {
  transition: all var(--transition-fast);
}

::selection {
  background: hsla(var(--primary), 0.28);
}

.glow-pulse {
  animation: glowPulse 2.8s ease-in-out infinite;
}

.voice-orb::before,
.voice-orb::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 999px;
  border: 1px solid hsla(var(--primary), 0.15);
  animation: ringWave 2.4s linear infinite;
}

.voice-orb::after {
  inset: -22px;
  animation-delay: 0.8s;
}

.particle-layer {
  background-image:
    radial-gradient(circle at 10% 20%, rgba(25, 249, 255, 0.22) 0 1.5px, transparent 1.5px),
    radial-gradient(circle at 80% 30%, rgba(10, 191, 255, 0.18) 0 1.5px, transparent 1.5px),
    radial-gradient(circle at 60% 80%, rgba(255, 67, 101, 0.16) 0 1.5px, transparent 1.5px),
    radial-gradient(circle at 30% 70%, rgba(86, 255, 242, 0.15) 0 1.5px, transparent 1.5px);
  background-size: 220px 220px, 260px 260px, 240px 240px, 300px 300px;
  animation: drift 18s linear infinite;
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(25, 249, 255, 0.0), 0 0 0 rgba(255, 67, 101, 0.0); }
  50% { box-shadow: 0 0 32px rgba(25, 249, 255, 0.22), 0 0 52px rgba(255, 67, 101, 0.12); }
}

@keyframes ringWave {
  0% { transform: scale(0.96); opacity: 0.55; }
  70% { transform: scale(1.12); opacity: 0.12; }
  100% { transform: scale(1.16); opacity: 0; }
}

@keyframes drift {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -8px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: hsla(var(--primary), 0.18);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: hsla(var(--primary), 0.28);
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .glow-pulse,
  .voice-orb::before,
  .voice-orb::after,
  .particle-layer {
    animation: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}
