:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-2: #f5f6f8;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #2563eb;
  --accent-soft: #eff6ff;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

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

a:hover { text-decoration: underline; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border: 1px solid #cbd5e1;
  flex: 0 0 auto;
}

.brand-title {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-title strong {
  font-size: 14px;
  font-weight: 700;
}

.brand-title span {
  color: var(--muted);
  font-size: 11px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.nav a {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: #fff;
  font-size: 12px;
  white-space: nowrap;
}

.nav a.active {
  background: var(--accent-soft);
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 18px 56px;
}

.hero {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.eyebrow {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid #dbeafe;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 700;
}

h1 {
  margin: 12px 0 10px;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h2 {
  margin: 28px 0 12px;
  font-size: 18px;
  line-height: 1.3;
}

h3 {
  margin: 0 0 8px;
  font-size: 14px;
}

p { margin: 0 0 12px; }

.lead {
  max-width: 840px;
  color: var(--text);
  font-size: 14px;
}

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

.section { margin-top: 18px; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font-size: 11px;
}

.chip.good,
.chip.warn,
.chip.accent {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--text);
}

.grid4, .grid3, .grid2 {
  display: grid;
  gap: 12px;
  margin: 14px 0 0;
}

.grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.card.soft {
  background: #fcfcfd;
}

.kpi {
  margin: 4px 0 3px;
  font-size: 22px;
  font-weight: 700;
}

.kpi-sub {
  color: var(--muted);
  font-size: 12px;
}

.callout {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  padding: 14px 16px;
  border-radius: 12px;
  margin-top: 16px;
}

.callout.good {
  border-left-color: #10b981;
  background: #ecfdf5;
}

.callout.warn {
  border-left-color: #f59e0b;
  background: #fffbeb;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 10px;
}

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

th {
  background: #f9fafb;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #475569;
}

tr:last-child td { border-bottom: 0; }

ul {
  margin: 8px 0 0 18px;
  padding: 0;
}

li { margin: 6px 0; }

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-weight: 600;
  font-size: 12px;
}

.btn.primary {
  background: var(--accent-soft);
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.page-footer {
  margin-top: 22px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 900px) {
  .grid4, .grid3, .grid2 { grid-template-columns: 1fr; }
  .topbar-inner { flex-direction: column; align-items: stretch; }
  .nav { justify-content: flex-start; }
  h1 { font-size: 24px; }
}
