:root {
  --background: 210 40% 98%;
  --foreground: 222 32% 14%;
  --primary: 356 84% 56%;
  --secondary: 197 82% 45%;
  --muted: 210 28% 92%;
  --destructive: 8 88% 55%;
  --border: 214 24% 85%;
  --card: 0 0% 100%;
  --shadow-sm: 0 8px 20px hsla(222, 30%, 10%, 0.06);
  --shadow-md: 0 14px 38px hsla(222, 30%, 10%, 0.12);
  --shadow-lg: 0 24px 60px hsla(222, 40%, 8%, 0.18);
  --transition-fast: 160ms ease;
  --transition-smooth: 280ms cubic-bezier(0.22, 1, 0.36, 1);
  --radius-sm: 0.625rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
}

.dark {
  --background: 224 30% 10%;
  --foreground: 210 40% 96%;
  --primary: 356 86% 62%;
  --secondary: 191 86% 58%;
  --muted: 224 22% 18%;
  --destructive: 9 90% 61%;
  --border: 224 16% 26%;
  --card: 224 26% 14%;
  --shadow-sm: 0 10px 20px hsla(0, 0%, 0%, 0.22);
  --shadow-md: 0 16px 40px hsla(0, 0%, 0%, 0.28);
  --shadow-lg: 0 28px 70px hsla(0, 0%, 0%, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, hsla(356, 84%, 56%, 0.12), transparent 28%),
    radial-gradient(circle at 85% 10%, hsla(197, 82%, 45%, 0.14), transparent 22%),
    hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#root {
  min-height: 100vh;
}

.card-surface {
  background: hsl(var(--card) / 0.86);
  backdrop-filter: blur(14px);
  border: 1px solid hsl(var(--border));
  box-shadow: var(--shadow-sm);
}

.card-surface-strong {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  box-shadow: var(--shadow-md);
}

.soft-ring:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px hsl(var(--secondary) / 0.24);
}

.hover-lift {
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.pulse-dot {
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.55; }
}

.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, hsl(var(--foreground) / 0.08), transparent);
  animation: shimmerMove 1.6s infinite;
}

@keyframes shimmerMove {
  100% { transform: translateX(100%); }
}

.grid-bg {
  background-image:
    linear-gradient(hsla(0, 0%, 100%, 0) 0, hsla(0, 0%, 100%, 0) 95%, hsl(var(--border) / 0.35) 100%),
    linear-gradient(90deg, hsla(0, 0%, 100%, 0) 0, hsla(0, 0%, 100%, 0) 95%, hsl(var(--border) / 0.35) 100%);
  background-size: 32px 32px;
}

a {
  color: inherit;
  text-decoration: none;
}

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