:root {
  --ink: #17211d;
  --muted: #64706a;
  --line: #dce3df;
  --paper: #f4f7f5;
  --teal: #08766d;
  --teal-dark: #075a54;
  --teal-soft: #e6f4f1;
  --red: #b44436;
  --amber: #9a6500;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(circle at 8% 4%, rgba(8, 118, 109, .08), transparent 28rem), linear-gradient(180deg, #fbfcfb 0%, var(--paper) 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button { font: inherit; -webkit-tap-highlight-color: transparent; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.input-label { margin: 4px 0 8px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
textarea { width: 100%; min-height: 170px; resize: vertical; border: 1px solid #cfd8d3; border-radius: 13px; padding: 13px; background: #f8faf9; color: var(--ink); font: 10px/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
textarea:focus { border-color: var(--teal); outline: 3px solid rgba(8,118,109,.16); }
.hidden { display: none !important; }
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding-bottom: 36px; }
.topbar { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid rgba(23, 33, 29, .1); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; background: var(--ink); color: white; border-radius: 13px; font-size: 20px; font-weight: 800; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 14px; letter-spacing: .16em; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.environment { border: 1px solid #d4c18e; border-radius: 999px; padding: 8px 12px; background: #fff9e8; color: #745514; font-size: 10px; font-weight: 800; letter-spacing: .11em; }
.environment.live { border-color: #a9d4cd; background: #f0f9f7; color: var(--teal-dark); }
.hero { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(290px, .65fr); gap: 70px; align-items: end; padding: 72px 0 42px; }
.eyebrow { margin: 0 0 10px; color: var(--teal); font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { max-width: 820px; margin-bottom: 22px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(43px, 6vw, 74px); font-weight: 500; line-height: .99; letter-spacing: -.045em; }
.lead { max-width: 750px; margin: 0; color: #53615b; font-size: 18px; line-height: 1.65; }
.trust-card { display: flex; align-items: center; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.8); box-shadow: 0 18px 60px rgba(23,33,29,.07); }
.trust-icon { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--teal); color: white; font-weight: 900; }
.trust-card strong, .trust-card small { display: block; }
.trust-card small { margin-top: 5px; color: var(--muted); line-height: 1.45; }
.target-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 28px; border-radius: 22px; background: var(--ink); color: white; box-shadow: 0 18px 40px rgba(23,33,29,.16); }
.target-card span { display: block; margin-bottom: 8px; color: #a8b8b0; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.target-card code { overflow-wrap: anywhere; font-size: 14px; }
.target-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.target-meta b { padding: 7px 10px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; color: #dce6e1; font-size: 11px; font-weight: 500; }
.stepper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 32px 0 20px; }
.step { display: flex; align-items: center; gap: 10px; color: #87918c; font-size: 12px; }
.step::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.step:last-child::after { display: none; }
.step span { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; background: white; font-weight: 800; }
.step.done { color: var(--teal); }
.step.done span { border-color: var(--teal); background: var(--teal); color: white; }
.workflow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { display: flex; flex-direction: column; min-height: 460px; padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.93); box-shadow: 0 12px 36px rgba(23,33,29,.055); }
.card.featured { border-color: #b6d8d2; background: linear-gradient(165deg, white 0%, #f0f8f6 100%); }
.heading { display: flex; gap: 15px; align-items: flex-start; margin-bottom: 20px; }
.heading > span { color: #a2aaa6; font-family: Georgia, serif; font-size: 26px; line-height: 1; }
.heading h2, .proof h2, .methods h2 { margin: 0; font-family: Georgia, serif; font-size: 25px; font-weight: 500; letter-spacing: -.025em; }
.card > p { color: var(--muted); font-size: 14px; line-height: 1.65; }
.button { width: 100%; min-height: 50px; margin-top: auto; border: 0; border-radius: 13px; padding: 13px 16px; cursor: pointer; font-size: 13px; font-weight: 800; transition: transform .15s ease, background .15s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:focus-visible, .text-button:focus-visible, summary:focus-visible { outline: 3px solid rgba(8,118,109,.28); outline-offset: 3px; }
.button:disabled { cursor: not-allowed; opacity: .42; }
.button.primary { background: var(--ink); color: white; }
.button.secondary { border: 1px solid #cfd8d3; background: white; color: var(--ink); }
.button.sign { background: var(--teal); color: white; }
.button.sign:hover:not(:disabled) { background: var(--teal-dark); }
.result { margin: 18px 0 14px; padding: 14px; border: 1px solid #dfe6e2; border-radius: 13px; background: #f8faf9; }
.result label, .proof-hash label { display: block; margin-top: 10px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.result label:first-child { margin-top: 0; }
.result code, .proof-hash code { display: block; margin-top: 4px; overflow-wrap: anywhere; color: #35423c; font-size: 10px; line-height: 1.45; }
.text-button { margin-top: 14px; border: 0; padding: 0; background: transparent; color: var(--teal); cursor: pointer; font-size: 11px; font-weight: 800; }
.checks { display: grid; gap: 8px; margin: 18px 0; }
.checks span { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.checks b { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #edf0ee; color: #8b9690; }
.checks em { overflow-wrap: anywhere; font-style: normal; }
.checks .ok { color: var(--ink); }
.checks .ok b { background: var(--teal-soft); color: var(--teal); }
.checks .bad-check b { background: #fff0ed; color: var(--red); }
.boundary { display: grid; gap: 6px; margin: 8px 0 22px; padding: 16px; border-radius: 14px; background: rgba(255,255,255,.72); }
.boundary strong { font-size: 11px; }
.boundary .negative { margin-top: 9px; color: var(--red); }
.boundary span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.status { display: flex; align-items: center; gap: 14px; margin: 18px 0; padding: 17px 20px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.status > span { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #edf1ef; color: var(--muted); font-weight: 900; }
.status.good { border-color: #a9d4cd; background: #f0f9f7; }
.status.good > span { background: var(--teal); color: white; }
.status.bad { border-color: #e6bab4; background: #fff5f3; }
.status.bad > span { background: var(--red); color: white; }
.status.warn { border-color: #e8d19d; background: #fff9ea; }
.status.warn > span { background: var(--amber); color: white; }
.status strong { font-size: 13px; }
.status p { margin: 3px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.proof { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; padding: 28px; border: 1px solid #a6d2cb; border-radius: 22px; background: white; box-shadow: 0 18px 50px rgba(8,118,109,.08); }
.proof p { margin-bottom: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.proof-hash { padding: 15px; border-radius: 13px; background: var(--paper); }
.proof-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.proof-actions .button { margin-top: 0; }
.pending { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid var(--line); }
.message { margin: 18px 0; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.78); }
.message summary { padding: 17px 20px; cursor: pointer; font-size: 12px; font-weight: 800; }
.message pre { max-height: 360px; margin: 0; overflow: auto; border-top: 1px solid var(--line); padding: 20px; white-space: pre-wrap; overflow-wrap: anywhere; color: #34423b; font-size: 11px; line-height: 1.65; }
.methods { display: grid; grid-template-columns: .8fr 1fr 1.2fr; gap: 28px; align-items: center; margin: 48px 0; padding: 32px; border-radius: 22px; background: #e9eeeb; }
.methods > div:nth-child(2) { display: grid; gap: 7px; }
.methods code { width: fit-content; padding: 7px 9px; border: 1px solid #cad5cf; border-radius: 7px; background: rgba(255,255,255,.65); color: #35423c; font-size: 11px; }
.methods > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
footer { display: flex; justify-content: space-between; gap: 18px; padding-top: 22px; border-top: 1px solid var(--line); color: #7a8580; font-size: 10px; overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 56px; }
  .workflow { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .button { margin-top: 14px; }
  .methods { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 22px, 1180px); }
  .topbar { min-height: 74px; }
  .environment { max-width: 150px; padding: 6px 9px; text-align: center; font-size: 8px; line-height: 1.3; }
  .brand small { display: none; }
  .hero { padding: 44px 5px 30px; }
  h1 { font-size: 44px; }
  .lead { font-size: 16px; }
  .target-card { align-items: flex-start; flex-direction: column; padding: 22px; }
  .target-meta { justify-content: flex-start; }
  .stepper { gap: 4px; }
  .step { gap: 5px; font-size: 10px; }
  .step::after { display: none; }
  .step span { width: 25px; height: 25px; }
  .card { padding: 22px; }
  .proof { grid-template-columns: 1fr; padding: 22px; }
  .proof-actions { grid-template-columns: 1fr; }
  .methods { margin: 30px 0; padding: 23px; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
