:root {
  --bg: #f3f6fb;
  --surface: #ffffff;
  --surface-elevated: #f8fbff;
  --text: #1d2939;
  --muted: #5f6c80;
  --border: #dce4f2;
  --primary: #237b4b;
  --primary-soft: #d9f3e6;
  --accent: #2d8cff;
  --danger: #d14343;
  --warning: #d98e1b;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 8px 20px rgba(34, 52, 84, 0.08);
  --shadow-md: 0 16px 30px rgba(23, 40, 69, 0.12);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
}

:root[data-theme="dark"] {
  --bg: #0d141f;
  --surface: #141d2b;
  --surface-elevated: #1a2537;
  --text: #e2e8f2;
  --muted: #98a6bf;
  --border: #293549;
  --primary: #5cbf7b;
  --primary-soft: #193727;
  --accent: #63a7ff;
  --danger: #f26c6c;
  --warning: #e3af4f;
  --shadow-sm: 0 8px 20px rgba(3, 7, 16, 0.45);
  --shadow-md: 0 16px 32px rgba(3, 7, 16, 0.55);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, rgba(37, 122, 74, 0.12), transparent 40%), var(--bg);
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.page-transition {
  opacity: 0;
  transform: translateY(8px);
  animation: pageIn 500ms ease forwards;
}

@keyframes pageIn {
  to { opacity: 1; transform: translateY(0); }
}
