@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #FFFFFF;
  --bg-soft: #FAFAFA;
  --bg-muted: #F4F5F7;
  --text: #0F172A;
  --text-muted: #475569;
  --text-subtle: #94A3B8;
  --border: #E5E7EB;
  --border-strong: #D1D5DB;
  --accent: #2563EB;
  --accent-hover: #1D4ED8;
  --accent-soft: #EFF6FF;
  --success: #059669;
  --danger: #DC2626;
  --warning: #D97706;
}

html { scroll-behavior: smooth; }

body {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: background 150ms ease;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(37,99,235,0.25); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary.btn-lg { height: 56px; padding: 0 32px; font-size: 18px; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-weight: 500;
  font-size: 16px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}
.btn-secondary:hover { border-color: var(--border-strong); background: var(--bg-soft); }
.btn-secondary:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(37,99,235,0.15); }

.input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: #fff;
  font-size: 16px;
  color: var(--text);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.input::placeholder { color: var(--text-subtle); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,0.15); }
.input.error { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(220,38,38,0.12); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-success { background: var(--success-soft, #ECFDF5); color: var(--success); }
.badge-danger { background: var(--danger-soft, #FEF2F2); color: var(--danger); }
.badge-warning { background: var(--warning-soft, #FFFBEB); color: var(--warning); }

.prose-doc h1 { font-size: 36px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 24px; }
.prose-doc h2 { font-size: 22px; font-weight: 600; margin-top: 40px; margin-bottom: 16px; letter-spacing: -0.01em; }
.prose-doc h3 { font-size: 18px; font-weight: 600; margin-top: 24px; margin-bottom: 12px; }
.prose-doc p { color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.prose-doc ul { list-style: disc; padding-left: 24px; color: var(--text-muted); margin-bottom: 16px; }
.prose-doc ol { list-style: decimal; padding-left: 24px; color: var(--text-muted); margin-bottom: 16px; }
.prose-doc li { margin-bottom: 8px; line-height: 1.6; }
.prose-doc a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prose-doc strong { color: var(--text); font-weight: 600; }
