:root {
  --background: 252 44% 98%;
  --foreground: 248 38% 10%;
  --primary: 274 94% 55%;
  --secondary: 190 96% 43%;
  --muted: 252 25% 92%;
  --muted-foreground: 249 12% 43%;
  --destructive: 0 84% 58%;
  --border: 250 24% 84%;
  --card: 0 0% 100%;
  --shadow-sm: 0 8px 22px rgba(68, 38, 118, 0.12);
  --shadow-md: 0 16px 42px rgba(68, 38, 118, 0.18);
  --shadow-lg: 0 24px 70px rgba(35, 20, 75, 0.24);
  --transition-fast: 150ms ease;
  --transition-smooth: 260ms cubic-bezier(.2,.8,.2,1);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
}

.dark {
  --background: 246 45% 7%;
  --foreground: 250 38% 96%;
  --primary: 282 100% 64%;
  --secondary: 188 100% 50%;
  --muted: 248 30% 15%;
  --muted-foreground: 250 14% 72%;
  --destructive: 0 90% 64%;
  --border: 250 25% 22%;
  --card: 247 38% 11%;
  --shadow-sm: 0 8px 22px rgba(0, 0, 0, 0.22);
  --shadow-md: 0 16px 42px rgba(0, 0, 0, 0.32);
  --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: hsl(var(--background));
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input, select, textarea {
  font: inherit;
}

input, select, textarea {
  font-size: max(16px, 1rem);
}

button {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid hsl(var(--primary) / 0.42);
  outline-offset: 2px;
}

.orb {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  filter: blur(48px);
  opacity: .42;
  border-radius: 999px;
}

.orb-a {
  width: 220px;
  height: 220px;
  left: -80px;
  top: 90px;
  background: hsl(var(--primary));
}

.orb-b {
  width: 260px;
  height: 260px;
  right: -100px;
  bottom: 90px;
  background: hsl(var(--secondary));
}

.canvas-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, black 0%, transparent 76%);
}

@media (min-width: 768px) {
  .orb-a {
    width: 360px;
    height: 360px;
  }
  .orb-b {
    width: 420px;
    height: 420px;
  }
}

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