:root {
  --background: 226 44% 97%;
  --foreground: 227 42% 11%;
  --primary: 260 94% 57%;
  --primary-foreground: 0 0% 100%;
  --secondary: 187 90% 45%;
  --secondary-foreground: 225 45% 10%;
  --muted: 226 26% 88%;
  --muted-foreground: 226 16% 40%;
  --destructive: 348 86% 55%;
  --destructive-foreground: 0 0% 100%;
  --border: 228 26% 82%;
  --card: 0 0% 100%;
  --shadow-sm: 0 8px 24px hsl(227 42% 11% / 0.07);
  --shadow-md: 0 18px 50px hsl(227 42% 11% / 0.12);
  --shadow-lg: 0 28px 90px hsl(260 94% 57% / 0.24);
  --transition-fast: 160ms ease;
  --transition-smooth: 280ms cubic-bezier(.2,.8,.2,1);
  --radius-sm: 0.75rem;
  --radius-md: 1.15rem;
  --radius-lg: 1.75rem;
}

.dark {
  --background: 228 48% 7%;
  --foreground: 220 45% 96%;
  --primary: 263 96% 68%;
  --primary-foreground: 228 48% 7%;
  --secondary: 187 92% 56%;
  --secondary-foreground: 228 48% 7%;
  --muted: 229 30% 18%;
  --muted-foreground: 224 18% 72%;
  --destructive: 350 90% 64%;
  --destructive-foreground: 228 48% 7%;
  --border: 228 25% 24%;
  --card: 228 38% 11%;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  padding-top: env(safe-area-inset-top);
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 8% 12%, hsl(var(--primary) / 0.20), transparent 28rem),
    radial-gradient(circle at 92% 4%, hsl(var(--secondary) / 0.18), transparent 24rem),
    linear-gradient(135deg, hsl(var(--background)), hsl(var(--muted) / 0.35));
}
button, a, input, select { -webkit-tap-highlight-color: transparent; }
input, select { font-size: max(16px, 1rem); }

.bg-1 { background: hsl(var(--background)); }
.bg-2 { background: hsl(var(--card)); }
.bg-3 { background: hsl(var(--muted)); }
.bg-4 { background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary))); }
.text-primary { color: hsl(var(--foreground)); }
.text-secondary { color: hsl(var(--muted-foreground)); }
.text-tertiary { color: hsl(var(--primary)); }
.accent { color: hsl(var(--secondary)); }
.glass {
  background: hsl(var(--card) / 0.78);
  border: 1px solid hsl(var(--border) / 0.72);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
}
.neon-card {
  position: relative;
  overflow: hidden;
}
.neon-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, hsl(var(--primary) / 0.22), transparent 42%, hsl(var(--secondary) / 0.18));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  padding: 1px;
}
.float-slow { animation: floatSlow 7s ease-in-out infinite; }
.pulse-soft { animation: pulseSoft 2.8s ease-in-out infinite; }
@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes pulseSoft {
  0%, 100% { opacity: .62; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
