:root {
  --background: 36 33% 97%;
  --foreground: 218 28% 16%;
  --primary: 168 64% 34%;
  --secondary: 32 80% 92%;
  --muted: 36 22% 92%;
  --destructive: 4 72% 52%;
  --border: 30 18% 84%;
  --card: 0 0% 100%;

  --shadow-sm: 0 10px 24px hsla(168, 64%, 20%, 0.08);
  --shadow-md: 0 18px 40px hsla(168, 64%, 20%, 0.12);
  --shadow-lg: 0 24px 72px hsla(168, 64%, 20%, 0.18);

  --transition-fast: 140ms ease;
  --transition-smooth: 240ms cubic-bezier(0.2, 0.8, 0.2, 1);

  --radius-sm: 0.75rem;
  --radius-md: 1.1rem;
  --radius-lg: 1.6rem;
}

.dark {
  --background: 220 24% 10%;
  --foreground: 40 22% 95%;
  --primary: 168 62% 52%;
  --secondary: 220 18% 16%;
  --muted: 220 16% 18%;
  --destructive: 4 72% 58%;
  --border: 220 14% 24%;
  --card: 220 20% 13%;

  --shadow-sm: 0 10px 24px hsla(220, 40%, 2%, 0.28);
  --shadow-md: 0 18px 40px hsla(220, 40%, 2%, 0.36);
  --shadow-lg: 0 24px 72px hsla(220, 40%, 2%, 0.52);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, hsla(168, 64%, 34%, 0.10), transparent 30%),
    radial-gradient(circle at top right, hsla(32, 80%, 70%, 0.16), transparent 35%),
    hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
}

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

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

::selection {
  background: hsla(168, 64%, 34%, 0.18);
}

.surface-grid {
  background-image:
    linear-gradient(hsla(0, 0%, 100%, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, hsla(0, 0%, 100%, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}

.glass {
  backdrop-filter: blur(18px);
  background: hsla(0, 0%, 100%, 0.7);
}

.dark .glass {
  background: hsla(220, 20%, 13%, 0.75);
}

.focus-ring:focus-visible {
  outline: 2px solid hsla(168, 64%, 34%, 0.55);
  outline-offset: 2px;
}

.fade-in {
  animation: fadeIn 420ms var(--transition-smooth);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}