:root {
  --ink: #17181c;
  --muted: #626873;
  --line: #d9dee7;
  --paper: #f6f8fc;
  --wash: #ebf1f8;
  --blue: #245da8;
  --green: #29735b;
  --blue-soft: #eef4fc;
  --green-soft: #edf8f3;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a:hover {
  text-decoration: underline;
}

header {
  border-bottom: 1px solid var(--line);
  background: var(--wash);
}

.wrap {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: 92vh;
  display: grid;
  align-content: center;
  gap: 28px;
  padding: 56px 0 48px;
}

.eyebrow {
  color: var(--green);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.82rem;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.3rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.lead {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 1.2rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-weight: 700;
  background: var(--paper);
}

.button.primary {
  background: var(--ink);
  color: var(--paper);
}

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

.metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--paper);
  min-height: 112px;
}

.metric b {
  display: block;
  font-size: 1.6rem;
  line-height: 1.1;
  color: var(--blue);
}

.metric span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.94rem;
}

section {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

.section-intro {
  max-width: 820px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.06rem;
}

.grid-2,
.timeline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.timeline-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--paper);
}

.panel h3:first-child {
  margin-top: 0;
}

.panel img,
.wide-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.image-frame {
  padding: 0;
  overflow: hidden;
}

.image-frame h3,
.image-frame .caption {
  padding-left: 18px;
  padding-right: 18px;
}

.image-frame h3 {
  padding-top: 18px;
}

.image-frame img {
  border: 0;
  border-radius: 0;
}

.caption {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--paper);
}

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

th:first-child,
td:first-child {
  text-align: left;
}

th {
  color: var(--muted);
  font-weight: 700;
  background: var(--wash);
}

tr.highlight td {
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-soft);
}

tr.best td {
  font-weight: 700;
  color: var(--green);
  background: var(--green-soft);
}

code {
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 5px;
}

.footer {
  padding: 36px 0;
  color: var(--muted);
  font-size: 0.95rem;
  border-bottom: 0;
}

@media (max-width: 820px) {
  .hero {
    min-height: auto;
    padding-top: 36px;
  }

  .metrics,
  .grid-2,
  .timeline-grid {
    grid-template-columns: 1fr;
  }

  table {
    font-size: 0.85rem;
    min-width: 620px;
  }

  th,
  td {
    padding: 8px 5px;
  }

  .button {
    width: 100%;
  }
}
