:root {
  color-scheme: light;
  --ink: #18201b;
  --muted: #4f5c53;
  --line: #d7ddcf;
  --paper: #fbfcf8;
  --field: #f7f8f5;
  --soft: #eef1e9;
  --gold: #b98216;
  --gold-dark: #7a5a14;
  --gold-light: #f5c451;
  --green: #224d31;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(251, 252, 248, 0.96);
}

.header-inner,
.section,
.hero-inner,
.cta-inner {
  width: min(1110px, calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 4px;
  background: var(--ink);
  color: var(--gold-light);
  font-size: 14px;
  font-weight: 700;
}

.brand-name {
  display: block;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 700;
}

.brand-subtitle {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  border-radius: 4px;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.nav a:hover {
  background: var(--soft);
  color: var(--ink);
}

.contact {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.hero {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 72px;
  padding: 76px 0 72px;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--gold-dark);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 28px;
  max-width: 700px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 16px;
}

.lead {
  max-width: 690px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.75;
}

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

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #b9c1b4;
  border-radius: 4px;
  padding: 0 18px;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

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

.evidence-preview {
  align-self: center;
  overflow: hidden;
  border: 1px solid #cbd4c7;
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 2px 8px rgba(24, 32, 27, 0.12);
}

.evidence-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #39443c;
  padding: 18px 20px;
}

.schema {
  color: #c8d0c5;
  font-size: 12px;
}

.pass {
  border-radius: 6px;
  background: var(--green);
  color: #bff2c6;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
}

.preview-list {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.preview-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  border: 1px solid #39443c;
  border-radius: 4px;
  background: #212c25;
  padding: 18px;
}

.preview-item .icon {
  color: var(--gold-light);
}

.preview-item p,
.trust-card p,
.flow-card p,
.copy {
  color: var(--muted);
  line-height: 1.7;
}

.preview-item p {
  color: #c8d0c5;
}

.section {
  padding: 64px 0;
}

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

.section.soft {
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.section > .section {
  padding: 0;
}

.compact-section {
  padding: 36px 0;
}

.question-grid,
.trust-grid,
.flow-grid,
.metric-grid,
.answer-grid {
  display: grid;
  gap: 24px;
}

.question-grid {
  grid-template-columns: repeat(4, 1fr);
}

.trust-grid {
  grid-template-columns: repeat(3, 1fr);
}

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

.metric-grid {
  grid-template-columns: repeat(4, 1fr);
}

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

.two-col {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: start;
}

.question,
.trust-card,
.flow-card,
.metric-card,
.answer-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  padding: 22px;
}

.flow-card {
  background: var(--paper);
}

.metric-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--gold-dark);
  font-size: 28px;
  line-height: 1;
}

.metric-card span {
  color: var(--muted);
  line-height: 1.6;
}

.answer-card p {
  color: var(--muted);
  line-height: 1.7;
}

.scenario-line {
  margin-bottom: 18px;
  color: var(--gold-dark);
  font-weight: 700;
  line-height: 1.6;
}

.diagram-strip {
  display: grid;
  gap: 10px;
  align-self: start;
}

.diagram-strip span {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  padding: 14px 16px;
  color: var(--ink);
  font-weight: 700;
}

.diagram-strip span + span::before {
  content: "↓";
  position: absolute;
  top: -18px;
  left: 18px;
  color: var(--gold-dark);
  font-size: 14px;
}

.code-sample {
  overflow-x: auto;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--ink);
  color: #d9dfd3;
  padding: 18px;
  line-height: 1.55;
}

.code-sample code {
  color: inherit;
  font-size: 13px;
}

.presentation-note {
  max-width: 780px;
  border-left: 3px solid var(--line);
  padding-left: 18px;
}

.presentation-note .eyebrow {
  margin-bottom: 10px;
  font-size: 12px;
}

.presentation-note h2 {
  margin-bottom: 8px;
  font-size: 20px;
}

.presentation-note p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.number {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 6px;
  background: var(--soft);
  color: var(--gold-dark);
  font-weight: 700;
}

.evidence-table {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th {
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}

th,
td {
  border-top: 1px solid var(--line);
  padding: 14px 16px;
  vertical-align: top;
}

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

td:first-child {
  color: var(--ink);
  font-weight: 700;
}

code {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

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

.cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
  padding: 64px 0;
}

.cta p {
  max-width: 760px;
  color: #d9dfd3;
  line-height: 1.7;
}

.cta .button {
  border-color: var(--gold-light);
  background: var(--gold-light);
  color: var(--ink);
}

.site-footer {
  border-top: 1px solid #39443c;
  background: var(--ink);
  color: #d9dfd3;
}

.footer-inner {
  width: min(1110px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0;
  font-size: 13px;
}

@media (max-width: 860px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 14px;
  }

  .nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-top: 2px;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    flex: 0 0 auto;
    background: var(--soft);
  }

  .hero-inner,
  .two-col,
  .cta-inner {
    grid-template-columns: 1fr;
  }

  .question-grid,
  .trust-grid,
  .flow-grid,
  .metric-grid,
  .answer-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    gap: 40px;
    padding-top: 58px;
  }

  .contact span {
    display: none;
  }

  .contact {
    width: 40px;
    padding: 0;
  }
}

@media (max-width: 520px) {
  .header-inner,
  .section,
  .hero-inner,
  .cta-inner,
  .footer-inner {
    width: min(100% - 32px, 1110px);
  }

  h1 {
    font-size: 36px;
  }

  .lead {
    font-size: 18px;
  }

  .button {
    width: 100%;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  th {
    display: none;
  }

  td {
    border-top: 0;
    padding: 10px 16px;
  }

  tr {
    border-top: 1px solid var(--line);
  }
}
