:root {
  --background: 222 33% 98%;
  --foreground: 226 28% 14%;
  --card: 0 0% 100%;
  --primary: 262 83% 58%;
  --secondary: 228 25% 93%;
  --muted: 223 22% 90%;
  --muted-foreground: 223 12% 42%;
  --accent: 192 88% 42%;
  --destructive: 0 78% 58%;
  --warning: 34 90% 52%;
  --success: 148 62% 40%;
  --border: 222 22% 86%;
  --shadow-sm: 0 8px 24px hsl(224 30% 20% / 0.06);
  --shadow-md: 0 16px 40px hsl(258 45% 30% / 0.16);
  --shadow-lg: 0 24px 60px hsl(258 45% 24% / 0.22);
  --transition-fast: 120ms ease;
  --transition-smooth: 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --radius-sm: 0.65rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
}

.dark {
  --background: 228 26% 10%;
  --foreground: 220 25% 94%;
  --card: 228 24% 14%;
  --primary: 267 84% 66%;
  --secondary: 227 18% 20%;
  --muted: 227 18% 18%;
  --muted-foreground: 222 14% 70%;
  --accent: 192 85% 55%;
  --destructive: 0 74% 62%;
  --warning: 36 92% 58%;
  --success: 148 64% 48%;
  --border: 227 18% 24%;
  --shadow-sm: 0 10px 24px hsl(0 0% 0% / 0.22);
  --shadow-md: 0 18px 42px hsl(0 0% 0% / 0.28);
  --shadow-lg: 0 28px 64px 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;
}

textarea {
  resize: vertical;
}

::selection {
  background: hsl(var(--primary) / 0.22);
}

button,
a {
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), opacity var(--transition-fast);
}

button:focus-visible,
a:focus-visible,
textarea:focus-visible {
  outline: none;
}

.card-glow {
  position: relative;
}

.card-glow::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, hsl(var(--primary) / 0.3), hsl(var(--accent) / 0.18), transparent 72%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.65;
}
