:root {
  --bg: #f7f9f8;
  --surface: #ffffff;
  --surface-muted: #eef3f0;
  --text: #111b17;
  --text-muted: #4b5d55;
  --border: #d9e2dd;
  --accent: #0f766e;
  --accent-strong: #115e59;
  --accent-soft: #ccfbf1;
  --warn-bg: #fef3c7;
  --warn-border: #f59e0b;
  --warn-text: #78350f;
  --radius: 16px;
  --max-width: 860px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b110f;
    --surface: #121c18;
    --surface-muted: #192621;
    --text: #edf4f0;
    --text-muted: #9eb1a7;
    --border: #25362f;
    --accent: #2dd4bf;
    --accent-strong: #5eead4;
    --accent-soft: #134e4a;
    --warn-bg: #2e220a;
    --warn-border: #d97706;
    --warn-text: #fde68a;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
}

.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.94rem;
  font-weight: 500;
}

.nav a {
  color: var(--text-muted);
}

.nav a[aria-current="page"],
.nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 36px 20px 64px;
}

.hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  margin-bottom: 24px;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h2 {
  margin: 28px 0 10px;
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h3 {
  margin: 18px 0 6px;
  font-size: 1.05rem;
}

p {
  margin: 0 0 14px;
  color: var(--text);
}

.muted {
  color: var(--text-muted);
}

.lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 62ch;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  background: var(--surface-muted);
  color: var(--text);
}

.btn:hover {
  text-decoration: none;
  border-color: var(--accent);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #ffffff;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.card h2,
.card h3 {
  margin-top: 0;
}

.doc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.doc-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

ul {
  margin: 8px 0 16px;
  padding-left: 20px;
}

li {
  margin-bottom: 6px;
}

.callout {
  background: var(--warn-bg);
  border-left: 4px solid var(--warn-border);
  color: var(--warn-text);
  padding: 14px 16px;
  border-radius: 10px;
  margin: 20px 0;
  font-size: 0.95rem;
}

.callout strong {
  display: block;
  margin-bottom: 4px;
}

.faq-item {
  border-top: 1px solid var(--border);
  padding: 16px 0;
}

.faq-item:first-of-type {
  border-top: none;
  padding-top: 4px;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
