:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --blue: #0052cc;
  --blue-dark: #0747a6;
  --navy: #091e42;
  --green: #006644;
  --green-bg: #e3fcef;
  --amber: #974f0c;
  --amber-bg: #fffae6;
  --code-bg: #0b192f;
  --code-ink: #e2f1ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--navy);
}

.brand:hover {
  text-decoration: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 500;
}

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

.nav-links a.active,
.nav-links a:hover {
  color: var(--blue);
  text-decoration: none;
}

.badge-roa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid #abf5d1;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
}

.hero {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  border-bottom: 1px solid var(--border);
  padding: 64px 0 56px;
}

.hero h1 {
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.15;
  margin: 16px 0 14px;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 720px;
  margin: 0 0 26px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn:hover {
  background: #f8fafc;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--blue-dark);
}

.section {
  padding: 48px 0;
}

.section h2 {
  font-size: 26px;
  color: var(--navy);
  margin: 0 0 10px;
}

.section-sub {
  color: var(--muted);
  margin: 0 0 26px;
  max-width: 740px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

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

.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--navy);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.callout {
  background: var(--amber-bg);
  border: 1px solid #ffe380;
  border-left: 4px solid #ffab00;
  border-radius: 8px;
  padding: 16px 18px;
  font-size: 14px;
  color: var(--amber);
}

.callout-green {
  background: var(--green-bg);
  border: 1px solid #abf5d1;
  border-left: 4px solid #36b37e;
  color: var(--green);
}

pre {
  background: var(--code-bg);
  color: var(--code-ink);
  padding: 16px 18px;
  border-radius: 8px;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
  margin: 12px 0;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: #edf2f7;
  padding: 2px 5px;
  border-radius: 4px;
}

pre code {
  background: transparent;
  padding: 0;
  font-size: inherit;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  font-size: 14px;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  background: #f8fafc;
  color: var(--navy);
  font-weight: 600;
}

.prose {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
  max-width: 860px;
  margin: 32px auto;
}

.prose h1 {
  margin-top: 0;
  font-size: 30px;
  color: var(--navy);
}

.prose h2 {
  margin-top: 28px;
  font-size: 20px;
  color: var(--navy);
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}

.prose ul,
.prose ol {
  padding-left: 22px;
}

.prose li {
  margin-bottom: 6px;
}

.meta-line {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 28px 0;
  font-size: 13px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

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

@media (max-width: 800px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .prose {
    padding: 20px;
  }
}
