:root {
  color-scheme: light;
  --ink: #111418;
  --muted: #5d6570;
  --line: #d7ded8;
  --paper: #fbfaf6;
  --panel: #ffffff;
  --green: #1f7a5c;
  --red: #b64646;
  --gold: #b8872f;
  --code: #182028;
}

* {
  box-sizing: border-box;
}

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

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

a:hover {
  text-decoration: underline;
}

.shell {
  min-height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 246, 0.92);
  position: sticky;
  top: 0;
  z-index: 2;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 750;
}

.brand img {
  width: 36px;
  height: 36px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  font-size: 14px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(42px, 8vw, 96px) clamp(20px, 5vw, 64px) 36px;
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  margin: 0;
  font-size: 84px;
  line-height: 0.95;
  letter-spacing: 0;
}

.hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 19px;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(520px, 1.05fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  min-height: calc(100vh - 73px);
  padding: clamp(42px, 7vw, 86px) clamp(20px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}

.home-copy {
  max-width: 620px;
}

.home-copy h1 {
  margin: 0;
  color: var(--ink);
  font-size: 118px;
  line-height: 0.92;
  letter-spacing: 0;
}

.home-lead {
  max-width: 610px;
  margin: 20px 0 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.28;
}

.home-routes {
  display: grid;
  gap: 8px;
  max-width: 390px;
  margin-top: 24px;
}

.home-routes span {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 11px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.home-routes code {
  font-size: 13px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.home-trust-board {
  display: grid;
  grid-template-columns: 1.12fr 0.9fr 1fr;
  gap: 12px;
}

.trust-panel {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 320px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.trust-panel span,
.route-card span,
.home-proof-strip span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.trust-panel strong {
  color: var(--ink);
  font-size: 18px;
  overflow-wrap: anywhere;
}

.trust-panel p {
  margin: 0;
  color: var(--muted);
}

.trust-panel-ok {
  background: #eaf2ed;
  border-color: #c8dccf;
}

.trust-panel-ok strong {
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 22px;
}

.home-proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  background: var(--panel);
}

.home-proof-strip article {
  padding-top: 14px;
  border-top: 2px solid var(--line);
}

.home-proof-strip p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.home-section-heading {
  max-width: 760px;
  margin-bottom: 22px;
}

.home-section-heading h2,
.home-request h2 {
  margin: 0;
  font-size: 38px;
  line-height: 1.08;
  letter-spacing: 0;
}

.route-card {
  min-height: 190px;
}

.route-card h3 {
  overflow-wrap: anywhere;
}

.route-card p {
  color: var(--muted);
}

.home-request {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  gap: clamp(20px, 4vw, 54px);
  align-items: start;
}

.seal {
  min-height: 310px;
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
  padding: 28px;
}

.seal img {
  width: min(220px, 52vw);
  height: auto;
}

.band {
  padding: 34px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}

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

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

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

.card h2,
.card h3,
.band h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.eyebrow {
  color: var(--gold);
  font-weight: 750;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0;
}

.route {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  color: var(--ink);
}

pre {
  overflow: auto;
  background: var(--code);
  color: #eef4ef;
  border-radius: 8px;
  padding: 16px;
  font-size: 13px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
}

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

.table th {
  color: var(--muted);
  font-size: 13px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}

.button.secondary {
  background: #fff;
  color: var(--ink);
}

.form {
  display: grid;
  gap: 12px;
  max-width: 860px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}

textarea {
  min-height: 120px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.status-ok {
  color: var(--green);
  font-weight: 800;
}

.status-warn {
  color: var(--red);
  font-weight: 800;
}

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

.footer {
  padding: 28px clamp(20px, 5vw, 64px);
  color: var(--muted);
}

.dashboard-shell {
  display: grid;
  gap: 18px;
}

.dashboard-head,
.table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-head h1 {
  margin: 0;
  font-size: 42px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 12px;
}

.metric-card,
.search-panel,
.table-card,
.ops-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metric-card {
  display: grid;
  gap: 4px;
  min-height: 84px;
  padding: 16px;
}

.metric-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-card strong {
  font-size: 28px;
  line-height: 1;
  overflow-wrap: anywhere;
}

.search-panel,
.table-card,
.ops-panel {
  padding: 16px;
}

.search-form {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 1.2fr 0.9fr auto;
  gap: 12px;
  align-items: end;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 16px;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

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

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

td code {
  overflow-wrap: anywhere;
}

.ops-panel dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 14px;
  margin: 0;
}

.ops-panel dt {
  color: var(--muted);
}

.ops-panel dd {
  margin: 0;
  font-weight: 800;
}

@media (max-width: 780px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .home-hero,
  .home-trust-board,
  .home-proof-strip,
  .home-request,
  .grid,
  .grid.two {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: 0;
  }

  .home-copy h1 {
    font-size: 58px;
  }

  .home-lead {
    font-size: 19px;
  }

  .trust-panel {
    min-height: 0;
  }

  .home-section-heading h2,
  .home-request h2 {
    font-size: 28px;
  }

  .hero h1 {
    font-size: 46px;
  }

  .dashboard-head,
  .table-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .metric-grid,
  .search-form,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}
