:root {
  --background: 210 38% 97%;
  --foreground: 218 38% 13%;
  --primary: 194 95% 33%;
  --primary-foreground: 0 0% 100%;
  --secondary: 35 92% 54%;
  --secondary-foreground: 218 38% 13%;
  --muted: 210 24% 91%;
  --muted-foreground: 216 15% 42%;
  --destructive: 0 76% 54%;
  --destructive-foreground: 0 0% 100%;
  --border: 214 22% 84%;
  --card: 0 0% 100%;
  --shadow-sm: 0 4px 14px hsl(218 38% 13% / 0.07);
  --shadow-md: 0 14px 35px hsl(218 38% 13% / 0.11);
  --shadow-lg: 0 24px 70px hsl(194 95% 25% / 0.20);
  --transition-fast: 150ms ease;
  --transition-smooth: 260ms cubic-bezier(.2,.8,.2,1);
  --radius-sm: 0.75rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
}

.dark {
  --background: 219 38% 8%;
  --foreground: 210 34% 96%;
  --primary: 190 86% 48%;
  --primary-foreground: 219 38% 8%;
  --secondary: 37 96% 61%;
  --secondary-foreground: 219 38% 8%;
  --muted: 218 27% 16%;
  --muted-foreground: 215 18% 72%;
  --destructive: 0 75% 61%;
  --destructive-foreground: 0 0% 100%;
  --border: 218 20% 24%;
  --card: 219 32% 12%;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, hsl(var(--primary) / 0.16), transparent 34rem), hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

button, a, input, select, textarea {
  transition: var(--transition-smooth);
}

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

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid hsl(var(--secondary) / 0.7);
  outline-offset: 3px;
}

.card-shadow {
  box-shadow: var(--shadow-md);
}

.safe-bottom {
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
}