:root {
  --color-bg: #F7F9FC;
  --color-surface: #FFFFFF;
  --color-ink: #0B1330;
  --color-ink-soft: #5B6478;
  --color-blue: #2F6FED;
  --color-blue-light: #4FC3F7;
  --gradient-brand: linear-gradient(135deg, #2F6FED 0%, #4FC3F7 100%);
  --color-border: #E2E6F0;
  --color-error: #C0392B;
  --color-success: #1E8A5B;

  --font-display: "Poppins", "Inter", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --phase-1: #6D5DD3;
  --phase-2: #2F6FED;
  --phase-3: #1E9E8C;
  --phase-4: #E08A2E;
  --phase-5: #D8481D;

  --radius-sm: 8px;
  --radius: 14px;
  --shadow-card: 0 1px 2px rgba(11,19,48,0.05), 0 4px 16px rgba(11,19,48,0.06);
  --shadow-raised: 0 4px 10px rgba(47,111,237,0.18), 0 10px 24px rgba(11,19,48,0.08);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0 0 var(--space-2) 0;
  line-height: 1.2;
  font-family: var(--font-display);
  font-weight: 600;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input, select, textarea, button {
  font-size: 1rem;
  font-family: var(--font-body);
}

a {
  color: var(--color-blue);
}

:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
}

.char-counter {
  font-weight: normal;
  color: var(--color-ink-soft);
  font-size: 0.8rem;
  font-family: var(--font-mono);
}