:root {
  color-scheme: dark;
  --ink: #f5f7fa;
  --muted: #aeb5c0;
  --surface: #15171c;
  --line: #30343c;
  --gold: #f1ce4b;
  --red: #df2144;
  --blue: #55a8e8;
  --page: #0c0d10;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a { color: inherit; }
.site-header {
  min-height: 64px;
  padding: 10px clamp(18px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(12, 13, 16, .96);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 760; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 6px; }
.build-state { color: var(--muted); font-size: .78rem; text-transform: uppercase; }

main { overflow: hidden; }
.hero {
  width: min(1180px, calc(100% - 36px));
  min-height: calc(100svh - 112px);
  max-height: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  align-items: center;
  gap: clamp(30px, 7vw, 96px);
  padding: 64px 0 84px;
}
.hero-copy { max-width: 720px; }
.eyebrow { margin: 0 0 12px; color: var(--gold); font-size: .82rem; font-weight: 800; text-transform: uppercase; }
h1, h2, h3, p { letter-spacing: 0; }
h1 { margin: 0; font-size: clamp(3.7rem, 9vw, 8rem); line-height: .92; }
h2 { margin: 0; font-size: clamp(1.9rem, 4vw, 3.4rem); line-height: 1.02; }
h3 { margin: 0 0 9px; font-size: 1rem; }
.lede { max-width: 700px; margin: 24px 0 0; color: #d5dae1; font-size: clamp(1.08rem, 2.3vw, 1.45rem); line-height: 1.5; }
.attribution { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; color: var(--muted); font-size: .92rem; }
.attribution span:first-child { color: var(--blue); }
.hero-mark { width: min(100%, 480px); height: auto; justify-self: end; border-radius: 8px; box-shadow: 18px 18px 0 var(--red); }

.workflow, .trust { padding: 80px max(18px, calc((100% - 1180px) / 2)); border-top: 1px solid var(--line); }
.workflow { background: #111318; }
.section-heading { max-width: 760px; margin-bottom: 40px; }
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.steps li { min-height: 180px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line); }
.steps li:last-child { border-right: 0; }
.steps strong { color: var(--gold); font-size: 1.25rem; }
.steps span, .trust p, .document p { color: var(--muted); line-height: 1.55; }
.trust { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; }
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); }
.trust-grid article { min-height: 170px; padding: 24px; border-bottom: 1px solid var(--line); }
.trust-grid article:nth-child(odd) { border-right: 1px solid var(--line); }
.trust-grid article:nth-last-child(-n+2) { border-bottom: 0; }
.trust p { margin: 0; }

footer { min-height: 76px; padding: 18px clamp(18px, 4vw, 48px); display: flex; justify-content: space-between; align-items: center; color: var(--muted); border-top: 1px solid var(--line); }
footer a, .back-link { color: var(--blue); }
.document { width: min(760px, calc(100% - 36px)); margin: 0 auto; padding: 72px 0 100px; overflow: visible; }
.document h1 { font-size: clamp(3rem, 8vw, 5.5rem); margin-bottom: 24px; }
.document h2 { margin-top: 54px; font-size: 1.6rem; }
.document .back-link { display: inline-block; margin-top: 48px; }

@media (max-width: 760px) {
  .site-header { min-height: 58px; }
  .build-state { max-width: 112px; text-align: right; }
  .hero { min-height: auto; max-height: none; grid-template-columns: 1fr; padding: 52px 0 64px; }
  .hero-mark { width: min(78vw, 380px); justify-self: center; order: -1; box-shadow: 12px 12px 0 var(--red); }
  h1 { font-size: clamp(3.5rem, 20vw, 6rem); }
  .workflow, .trust { padding-top: 62px; padding-bottom: 62px; }
  .steps { grid-template-columns: 1fr; }
  .steps li { min-height: 124px; border-right: 0; border-bottom: 1px solid var(--line); }
  .steps li:last-child { border-bottom: 0; }
  .trust { grid-template-columns: 1fr; gap: 38px; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-grid article, .trust-grid article:nth-child(odd) { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-grid article:last-child { border-bottom: 0; }
  footer { align-items: flex-start; flex-direction: column; gap: 10px; }
}
