:root {
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
  --background: 42 20% 94%;
  --foreground: 222 30% 12%;
  --card: 39 24% 90%;
  --card-foreground: 222 30% 12%;
  --popover: 39 24% 90%;
  --popover-foreground: 222 30% 12%;
  --primary: 25 64% 42%;
  --primary-foreground: 38 35% 96%;
  --secondary: 36 18% 82%;
  --secondary-foreground: 222 30% 15%;
  --muted: 38 16% 84%;
  --muted-foreground: 222 13% 38%;
  --accent: 154 24% 35%;
  --accent-foreground: 40 30% 96%;
  --destructive: 0 66% 42%;
  --destructive-foreground: 40 30% 96%;
  --success: 145 48% 34%;
  --success-foreground: 40 30% 96%;
  --warning: 35 78% 38%;
  --warning-foreground: 40 30% 96%;
  --info: 210 42% 38%;
  --info-foreground: 40 30% 96%;
  --border: 222 15% 78%;
  --input: 222 15% 72%;
  --ring: 25 64% 42%;
  --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 20px 60px hsl(var(--primary) / 0.18);
  --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 30% 7%;
  --foreground: 38 28% 91%;
  --card: 222 28% 10%;
  --card-foreground: 38 28% 91%;
  --popover: 222 28% 11%;
  --popover-foreground: 38 28% 91%;
  --primary: 25 72% 56%;
  --primary-foreground: 222 30% 8%;
  --secondary: 222 18% 16%;
  --secondary-foreground: 38 28% 91%;
  --muted: 222 16% 17%;
  --muted-foreground: 38 12% 66%;
  --accent: 154 32% 46%;
  --accent-foreground: 222 30% 8%;
  --destructive: 0 72% 58%;
  --destructive-foreground: 222 30% 8%;
  --success: 145 52% 46%;
  --success-foreground: 222 30% 8%;
  --warning: 35 86% 56%;
  --warning-foreground: 222 30% 8%;
  --info: 210 62% 58%;
  --info-foreground: 222 30% 8%;
  --border: 222 18% 20%;
  --input: 222 18% 24%;
  --ring: 25 72% 56%;
}

* { 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, textarea, select { font: inherit; }
input, textarea { font-size: max(16px, 1rem); }
::selection { background: hsl(var(--primary) / 0.28); color: hsl(var(--foreground)); }

.moody-bg {
  background:
    radial-gradient(circle at 15% 10%, hsl(var(--primary) / 0.22), transparent 34%),
    radial-gradient(circle at 85% 20%, hsl(var(--accent) / 0.16), transparent 30%),
    linear-gradient(180deg, hsl(var(--background)), hsl(var(--background)));
}
.hero-card {
  background:
    linear-gradient(145deg, hsl(var(--card) / 0.92), hsl(var(--muted) / 0.72)),
    radial-gradient(circle at 70% 20%, hsl(var(--primary) / 0.22), transparent 36%);
}
.film-grain::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image: repeating-linear-gradient(90deg, hsl(var(--foreground) / 0.12) 0 1px, transparent 1px 4px);
  mix-blend-mode: overlay;
}
.fade-up { animation: fadeUp var(--transition-smooth) both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up { animation: none; }
}
.safe-bottom { padding-bottom: calc(0.75rem + env(safe-area-inset-bottom)); }