:root {
  --background: 214 52% 96%;
  --foreground: 218 38% 10%;
  --primary: 171 86% 34%;
  --secondary: 36 96% 52%;
  --muted: 214 35% 90%;
  --muted-foreground: 217 18% 42%;
  --destructive: 354 78% 55%;
  --success: 151 72% 35%;
  --border: 214 26% 82%;
  --card: 0 0% 100%;
  --code: 222 48% 11%;
  --code-foreground: 166 78% 86%;
  --shadow-sm: 0 8px 22px hsl(218 42% 20% / 0.08);
  --shadow-md: 0 16px 38px hsl(218 42% 20% / 0.12);
  --shadow-lg: 0 24px 70px hsl(218 42% 20% / 0.16);
  --transition-fast: 140ms ease;
  --transition-smooth: 260ms cubic-bezier(.2,.8,.2,1);
  --radius-sm: 0.75rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
}

.dark {
  --background: 216 53% 8%;
  --foreground: 186 45% 94%;
  --primary: 171 86% 45%;
  --secondary: 38 98% 57%;
  --muted: 216 36% 15%;
  --muted-foreground: 214 17% 70%;
  --destructive: 354 84% 62%;
  --success: 151 78% 49%;
  --border: 215 29% 22%;
  --card: 216 45% 11%;
  --code: 220 57% 6%;
  --code-foreground: 166 83% 84%;
  --shadow-sm: 0 8px 22px hsl(0 0% 0% / 0.22);
  --shadow-md: 0 16px 38px hsl(0 0% 0% / 0.28);
  --shadow-lg: 0 24px 70px hsl(0 0% 0% / 0.38);
}

* { 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; }
button, a, input { transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast); }
button:active, a:active { transform: scale(0.98); }
pre { white-space: pre-wrap; word-break: break-word; }
input { font-size: max(16px, 1rem); }
::selection { background: hsl(var(--primary) / 0.35); }
