:root {
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --background: 210 40% 98%;
  --foreground: 222 47% 11%;
  --card: 0 0% 100%;
  --card-foreground: 222 47% 11%;
  --popover: 0 0% 100%;
  --popover-foreground: 222 47% 11%;
  --primary: 221 83% 53%;
  --primary-foreground: 210 40% 98%;
  --secondary: 214 32% 91%;
  --secondary-foreground: 222 47% 11%;
  --muted: 214 32% 91%;
  --muted-foreground: 215 16% 35%;
  --accent: 173 80% 40%;
  --accent-foreground: 210 40% 98%;
  --destructive: 0 84% 45%;
  --destructive-foreground: 210 40% 98%;
  --success: 142 71% 32%;
  --success-foreground: 210 40% 98%;
  --warning: 38 92% 42%;
  --warning-foreground: 222 47% 11%;
  --info: 199 89% 42%;
  --info-foreground: 210 40% 98%;
  --border: 214 32% 86%;
  --input: 214 32% 86%;
  --ring: 221 83% 53%;
  --radius: 0.625rem;
  --shadow-sm: 0 1px 2px hsl(var(--foreground) / 0.05);
  --shadow-md: 0 4px 12px hsl(var(--foreground) / 0.08);
  --shadow-lg: 0 12px 32px hsl(var(--foreground) / 0.12);
  --shadow-elegant: 0 24px 64px hsl(var(--primary) / 0.22);
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.dark {
  --background: 222 47% 7%;
  --foreground: 210 40% 98%;
  --card: 222 47% 10%;
  --card-foreground: 210 40% 98%;
  --popover: 222 47% 10%;
  --popover-foreground: 210 40% 98%;
  --primary: 217 91% 60%;
  --primary-foreground: 222 47% 7%;
  --secondary: 217 33% 18%;
  --secondary-foreground: 210 40% 98%;
  --muted: 217 33% 18%;
  --muted-foreground: 215 20% 72%;
  --accent: 173 80% 43%;
  --accent-foreground: 222 47% 7%;
  --destructive: 0 72% 51%;
  --destructive-foreground: 210 40% 98%;
  --success: 142 69% 45%;
  --success-foreground: 222 47% 7%;
  --warning: 43 96% 56%;
  --warning-foreground: 222 47% 7%;
  --info: 199 89% 58%;
  --info-foreground: 222 47% 7%;
  --border: 217 33% 22%;
  --input: 217 33% 22%;
  --ring: 217 91% 60%;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: hsl(var(--background));
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
}

button,
input {
  font: inherit;
}

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

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

.safe-bottom {
  padding-bottom: env(safe-area-inset-bottom);
}

.hero-grid {
  background-image: linear-gradient(hsl(var(--border) / 0.55) 1px, transparent 1px), linear-gradient(90deg, hsl(var(--border) / 0.55) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

.card-radius {
  border-radius: var(--radius);
}

.radius-xl {
  border-radius: calc(var(--radius) + 4px);
}

.radius-md {
  border-radius: calc(var(--radius) - 2px);
}

.radius-sm {
  border-radius: calc(var(--radius) - 4px);
}