:root {
  --ink: #16202a;
  --muted: #5d6875;
  --line: #dfe5ec;
  --paper: #ffffff;
  --soft: #f5f8fb;
  --blue: #155f9f;
  --green: #2f7d5b;
  --orange: #b45f1d;
  --shadow: 0 20px 55px rgba(22, 32, 42, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(223, 229, 236, 0.9);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 16px 0;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 42px;
  align-items: center;
  width: min(1120px, calc(100% - 36px));
  min-height: calc(100vh - 70px);
  margin: 0 auto;
  padding: 72px 0 52px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.08;
}

h1 {
  max-width: 850px;
  font-size: clamp(44px, 6vw, 76px);
}

h2 {
  max-width: 820px;
  font-size: clamp(30px, 3.4vw, 46px);
}

.lead {
  max-width: 780px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

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

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 18px;
  color: var(--ink);
  background: #fff;
  font-weight: 750;
}

.button.primary {
  border-color: var(--blue);
  color: #fff;
  background: var(--blue);
}

.button.disabled,
.resource-card.disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.metric-panel {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
  box-shadow: var(--shadow);
}

.metric {
  display: grid;
  grid-template-columns: 112px 1fr;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding: 12px 4px 15px;
}

.metric:last-child {
  border-bottom: 0;
}

.value {
  color: var(--blue);
  font-size: 34px;
  font-weight: 850;
  line-height: 1;
}

.label {
  color: var(--muted);
  font-weight: 650;
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 74px 0;
  border-top: 1px solid var(--line);
}

.section.compact {
  padding-top: 58px;
}

.section-heading p {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.wide-figure {
  margin: 36px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--soft);
}

.wide-figure img {
  width: 100%;
  background: #fff;
}

figcaption {
  padding: 14px 16px;
  color: var(--muted);
  font-size: 14px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.result-card {
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--soft);
}

.result-label {
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-card strong {
  display: block;
  margin-top: 14px;
  color: var(--blue);
  font-size: 42px;
  line-height: 1;
}

.result-card p,
.two-column p,
.check-list {
  color: var(--muted);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  gap: 42px;
  align-items: start;
}

.check-list {
  margin: 24px 0 0;
  padding-left: 20px;
}

.check-list li {
  margin: 10px 0;
}

.figure-stack {
  display: grid;
  gap: 18px;
}

.figure-stack figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.resources {
  padding-bottom: 92px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.resource-card {
  display: flex;
  min-height: 112px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
}

.resource-card span {
  color: var(--muted);
  font-size: 14px;
}

.resource-card strong {
  font-size: 20px;
}

.citation {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #0f1720;
}

.citation-title {
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  padding: 12px 16px;
  color: #d8e4ef;
  font-weight: 800;
}

pre {
  margin: 0;
  overflow-x: auto;
  padding: 16px;
  color: #e8f0f8;
  font-size: 14px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 24px max(18px, calc((100% - 1120px) / 2));
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 860px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    gap: 16px;
    white-space: nowrap;
  }

  .hero,
  .two-column,
  .results-grid,
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 52px;
  }

  .metric {
    grid-template-columns: 96px 1fr;
  }

  .section {
    padding: 54px 0;
  }

  .footer {
    flex-direction: column;
  }
}
