:root {
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --background: 222 47% 8%;
  --foreground: 210 40% 98%;
  --card: 224 38% 12%;
  --card-foreground: 210 40% 98%;
  --popover: 224 38% 12%;
  --popover-foreground: 210 40% 98%;
  --primary: 18 95% 55%;
  --primary-foreground: 24 100% 97%;
  --secondary: 222 34% 18%;
  --secondary-foreground: 210 40% 98%;
  --muted: 222 30% 18%;
  --muted-foreground: 215 18% 72%;
  --accent: 45 96% 58%;
  --accent-foreground: 30 70% 10%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 100%;
  --success: 142 72% 42%;
  --success-foreground: 144 70% 98%;
  --warning: 38 92% 50%;
  --warning-foreground: 30 70% 10%;
  --info: 199 89% 48%;
  --info-foreground: 204 100% 97%;
  --border: 222 28% 24%;
  --input: 222 28% 24%;
  --ring: 18 95% 55%;
  --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 18px 48px hsl(var(--primary) / 0.24);
  --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% 8%;
  --foreground: 210 40% 98%;
  --card: 224 38% 12%;
  --card-foreground: 210 40% 98%;
  --popover: 224 38% 12%;
  --popover-foreground: 210 40% 98%;
  --primary: 18 95% 55%;
  --primary-foreground: 24 100% 97%;
  --secondary: 222 34% 18%;
  --secondary-foreground: 210 40% 98%;
  --muted: 222 30% 18%;
  --muted-foreground: 215 18% 72%;
  --accent: 45 96% 58%;
  --accent-foreground: 30 70% 10%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 100%;
  --success: 142 72% 42%;
  --success-foreground: 144 70% 98%;
  --warning: 38 92% 50%;
  --warning-foreground: 30 70% 10%;
  --info: 199 89% 48%;
  --info-foreground: 204 100% 97%;
  --border: 222 28% 24%;
  --input: 222 28% 24%;
  --ring: 18 95% 55%;
}

html:not(.dark) {
  --background: 36 60% 97%;
  --foreground: 222 47% 11%;
  --card: 0 0% 100%;
  --card-foreground: 222 47% 11%;
  --popover: 0 0% 100%;
  --popover-foreground: 222 47% 11%;
  --primary: 18 95% 48%;
  --primary-foreground: 24 100% 97%;
  --secondary: 30 35% 91%;
  --secondary-foreground: 222 47% 11%;
  --muted: 30 35% 91%;
  --muted-foreground: 221 18% 36%;
  --accent: 45 96% 50%;
  --accent-foreground: 30 70% 10%;
  --destructive: 0 84% 50%;
  --destructive-foreground: 0 0% 100%;
  --success: 142 72% 34%;
  --success-foreground: 144 70% 98%;
  --warning: 38 92% 44%;
  --warning-foreground: 30 70% 10%;
  --info: 199 89% 42%;
  --info-foreground: 204 100% 97%;
  --border: 30 22% 82%;
  --input: 30 22% 82%;
  --ring: 18 95% 48%;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

button, input, select, textarea {
  font: inherit;
}

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

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

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

.hero-grid {
  background-image:
    radial-gradient(circle at 15% 20%, hsl(var(--primary) / 0.24), transparent 26rem),
    radial-gradient(circle at 80% 0%, hsl(var(--accent) / 0.16), transparent 24rem);
}

.focus-ring:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px hsl(var(--background)), 0 0 0 4px hsl(var(--ring));
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}