:root {
  --background: 42 38% 96%;
  --foreground: 252 32% 13%;
  --primary: 267 74% 47%;
  --primary-foreground: 0 0% 100%;
  --secondary: 27 92% 58%;
  --secondary-foreground: 252 32% 13%;
  --muted: 40 28% 88%;
  --muted-foreground: 250 12% 42%;
  --destructive: 354 77% 51%;
  --destructive-foreground: 0 0% 100%;
  --border: 39 24% 80%;
  --card: 0 0% 100%;
  --shadow-sm: 0 4px 14px rgba(45, 31, 84, 0.08);
  --shadow-md: 0 14px 35px rgba(45, 31, 84, 0.14);
  --shadow-lg: 0 24px 70px rgba(45, 31, 84, 0.22);
  --transition-fast: 150ms ease;
  --transition-smooth: 280ms cubic-bezier(.2,.8,.2,1);
  --radius-sm: 0.55rem;
  --radius-md: 0.9rem;
  --radius-lg: 1.35rem;
}
.dark {
  --background: 252 32% 8%;
  --foreground: 42 38% 94%;
  --primary: 270 88% 70%;
  --primary-foreground: 252 32% 8%;
  --secondary: 30 96% 62%;
  --secondary-foreground: 252 32% 8%;
  --muted: 252 22% 17%;
  --muted-foreground: 43 18% 72%;
  --destructive: 354 85% 62%;
  --destructive-foreground: 0 0% 100%;
  --border: 252 18% 25%;
  --card: 252 28% 12%;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, hsl(var(--secondary) / 0.22), transparent 34rem),
    radial-gradient(circle at 90% 10%, hsl(var(--primary) / 0.18), transparent 30rem),
    hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.focus-ring:focus { outline: 3px solid hsl(var(--primary) / 0.28); outline-offset: 2px; }
.card-glow { box-shadow: var(--shadow-md); }
.bracket-line { position: relative; }
.bracket-line::after { content: ""; position: absolute; left: 50%; bottom: -1rem; width: 2px; height: 1rem; background: hsl(var(--border)); }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}