:root {
  --background: 226 44% 96%;
  --foreground: 230 38% 9%;
  --primary: 263 87% 55%;
  --primary-foreground: 0 0% 100%;
  --secondary: 178 83% 34%;
  --secondary-foreground: 0 0% 100%;
  --muted: 229 28% 89%;
  --muted-foreground: 229 13% 42%;
  --destructive: 352 84% 55%;
  --border: 229 24% 82%;
  --card: 0 0% 100%;
  --shadow-sm: 0 8px 22px hsl(230 40% 20% / 0.08);
  --shadow-md: 0 18px 44px hsl(230 40% 20% / 0.12);
  --shadow-lg: 0 28px 70px hsl(230 48% 12% / 0.22);
  --transition-fast: 140ms ease;
  --transition-smooth: 260ms cubic-bezier(.2,.8,.2,1);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
}

.dark {
  --background: 230 45% 7%;
  --foreground: 226 55% 96%;
  --primary: 265 92% 66%;
  --primary-foreground: 0 0% 100%;
  --secondary: 178 88% 44%;
  --secondary-foreground: 222 48% 8%;
  --muted: 230 28% 15%;
  --muted-foreground: 228 18% 68%;
  --destructive: 352 88% 64%;
  --border: 230 26% 21%;
  --card: 230 38% 10%;
  --shadow-sm: 0 8px 24px hsl(0 0% 0% / 0.22);
  --shadow-md: 0 18px 46px hsl(0 0% 0% / 0.32);
  --shadow-lg: 0 28px 78px hsl(0 0% 0% / 0.48);
}

* { 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; background: hsl(var(--background)); color: hsl(var(--foreground)); }
button, textarea, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
::selection { background: hsl(var(--primary) / 0.35); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: hsl(var(--background)); }
::-webkit-scrollbar-thumb { background: hsl(var(--border)); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: hsl(var(--primary) / 0.55); }

.typing-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 999px;
  background: hsl(var(--primary));
  animation: typingPulse 1.1s infinite ease-in-out;
}
.typing-dot:nth-child(2) { animation-delay: 0.16s; }
.typing-dot:nth-child(3) { animation-delay: 0.32s; }

@keyframes typingPulse {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.35; }
  40% { transform: translateY(-5px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}