:root {
  color-scheme: dark;
  --canvas: #080d0c;
  --surface: #0e1513;
  --surface-2: #121b18;
  --surface-3: #17221e;
  --line: #27342f;
  --line-strong: #40514b;
  --text: #edf5f1;
  --muted: #94a69f;
  --accent: #55d69b;
  --accent-soft: #173a2b;
  --danger: #ff9b87;
  --warning: #e8c774;
  --radius: 5px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 280px;
  background: var(--canvas);
  color: var(--text);
  font-family: Arial, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
a { color: var(--accent); text-underline-offset: 4px; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
main { min-height: 100dvh; }

.topbar {
  position: relative;
  max-width: 1320px;
  min-height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 11px; width: max-content; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 3px; background: var(--accent); color: #06100b; font-size: 15px; }
.topnav { display: flex; align-items: center; gap: 28px; }
.topnav a { color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 700; }
.topnav a:hover { color: var(--text); }
.network-label { justify-self: end; display: flex; align-items: center; gap: 9px; color: var(--muted); font: 12px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; }
.network-label span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgb(85 214 155 / .1); }

.hero {
  max-width: 1320px;
  min-height: 510px;
  margin: 0 auto;
  padding: 78px 24px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, .65fr);
  gap: clamp(48px, 8vw, 112px);
  align-items: end;
}
.eyebrow, .step-label, .section-index {
  margin: 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
h1 {
  max-width: 850px;
  margin: 16px 0 20px;
  font-size: clamp(48px, 6vw, 76px);
  line-height: .98;
  letter-spacing: -.058em;
}
.hero-description { max-width: 620px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.6; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 34px; }
.primary-link { display: inline-flex; min-height: 46px; align-items: center; padding: 0 18px; border: 1px solid var(--accent); border-radius: 3px; background: var(--accent); color: #06100b; text-decoration: none; font-size: 14px; font-weight: 800; }
.text-link { color: var(--text); font-size: 14px; font-weight: 700; }
.mechanism { border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.mechanism-header, .mechanism-row, .mechanism-result { display: flex; justify-content: space-between; gap: 20px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.mechanism-header span, .mechanism-row span, .mechanism-result span { color: var(--muted); font-size: 12px; }
.mechanism-header strong, .mechanism-row strong, .mechanism-result strong { text-align: right; font: 700 13px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; }
.accent-row strong { color: var(--accent); }
.mechanism-result { border-bottom: 0; }

.product-shell {
  scroll-margin-top: 24px;
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, .82fr);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.configuration-pane, .economics-pane { min-width: 0; padding: 40px; }
.economics-pane { background: var(--surface-2); border-left: 1px solid var(--line-strong); }
.workspace-heading { display: flex; justify-content: space-between; gap: 30px; margin-bottom: 42px; }
.workspace-heading h2, .section-heading h2 { margin: 6px 0 0; font-size: 31px; line-height: 1.08; letter-spacing: -.035em; }
.workspace-heading p { max-width: 500px; margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.safety-note { flex: 0 0 auto; align-self: flex-start; padding-top: 4px; color: var(--muted); font: 11px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; text-transform: uppercase; }
.group-heading { margin: 0 0 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.group-heading span { color: var(--muted); font: 10px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .12em; text-transform: uppercase; }
.group-heading h3 { margin: 5px 0 0; font-size: 17px; letter-spacing: -.01em; }
.limits-heading { margin-top: 16px; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.segmented button { min-height: 44px; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 700; }
.segmented button:last-child { border-right: 0; }
.segmented button.selected { background: var(--accent-soft); color: var(--accent); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: grid; gap: 7px; color: #dbe7e2; font-size: 12px; font-weight: 700; }
.full-field { grid-column: 1 / -1; }
input, select { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 3px; background: #0a100f; color: var(--text); padding: 0 13px; outline: none; font-variant-numeric: tabular-nums; }
input::placeholder { color: #71847c; }
input:focus, select:focus { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
small { color: var(--muted); font-size: 12px; font-weight: 400; }
.primary-button, .secondary-button { width: 100%; min-height: 49px; margin-top: 20px; border-radius: 3px; font-size: 13px; font-weight: 800; cursor: pointer; transition: transform .15s ease, color .15s ease, background .15s ease; }
.primary-button { border: 1px solid var(--accent); background: var(--accent); color: #06100b; }
.primary-button:hover { background: #73e3b0; }
.secondary-button { border: 1px solid var(--line-strong); background: transparent; color: var(--text); }
.secondary-button:hover { border-color: var(--accent); color: var(--accent); }
.primary-button:active, .secondary-button:active { transform: translateY(1px); }
button:disabled { cursor: not-allowed; opacity: .45; }
.error-message, .warning-message { margin-top: 16px; padding: 13px 14px; border-radius: 3px; font-size: 13px; }
.error-message { border-left: 3px solid var(--danger); background: #291714; color: #ffc3b7; }
.warning-message { border-left: 3px solid var(--warning); background: #252113; color: #efd995; }

.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.market-status { padding: 4px 0; border-bottom: 1px solid var(--accent); color: var(--accent); font: 700 11px ui-monospace, SFMono-Regular, Consolas, monospace; text-transform: uppercase; }
.empty-quote { min-height: 570px; display: flex; flex-direction: column; justify-content: flex-end; }
.empty-label { color: var(--accent); font: 700 11px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; }
.empty-quote h2 { max-width: 420px; margin: 10px 0 10px; font-size: 40px; line-height: 1; letter-spacing: -.04em; }
.empty-quote p { max-width: 420px; margin: 0; color: var(--muted); font-size: 14px; }
.quote-metrics { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-top: 1px solid var(--line-strong); }
.quote-metrics div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.quote-metrics div:nth-child(odd) { padding-right: 16px; }
.quote-metrics div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
.quote-metrics dt { color: var(--muted); font-size: 11px; }
.quote-metrics dd { margin: 4px 0 0; font: 800 20px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: -.03em; }
.quote-metrics div:nth-child(2) dd, .quote-metrics div:nth-child(3) dd, .quote-metrics div:nth-child(4) dd { color: var(--accent); }
.market-line { display: flex; justify-content: space-between; gap: 20px; margin-top: 18px; color: var(--muted); font: 11px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.wallet-line { color: var(--muted); text-align: center; font: 11px ui-monospace, SFMono-Regular, Consolas, monospace; }
.execution-panel, .receipt-panel, .resolution-panel, .compensation-panel { margin-top: 18px; padding: 18px 0 0; border-top: 1px solid var(--line-strong); }
.execution-panel h3, .receipt-panel h3, .compensation-panel h3 { margin: 0 0 6px; font-size: 16px; }
.execution-panel p, .receipt-panel p, .resolution-panel p, .compensation-panel p { color: var(--muted); font-size: 13px; }
.compensation-panel { display: grid; gap: 7px; border-top-color: var(--accent); }
.attestation-form { margin-top: 18px; }
.success-line { color: var(--accent) !important; }

.proof-section {
  scroll-margin-top: 24px;
  max-width: 1320px;
  margin: 96px auto 0;
  padding: 0 24px 90px;
  display: grid;
  grid-template-columns: minmax(260px, .62fr) minmax(0, 1.38fr);
  column-gap: clamp(50px, 8vw, 120px);
}
.proof-heading h2 { margin: 10px 0 14px; font-size: clamp(38px, 5vw, 62px); line-height: 1; letter-spacing: -.05em; }
.proof-heading p:last-child { max-width: 430px; margin: 0; color: var(--muted); }
.proof-ledger { border-top: 1px solid var(--line-strong); }
.proof-row { display: grid; grid-template-columns: 1fr 1.3fr 24px; align-items: center; gap: 20px; min-height: 74px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.proof-row > span:first-child { color: var(--muted); font-size: 12px; }
.proof-row strong { font: 700 13px ui-monospace, SFMono-Regular, Consolas, monospace; }
.proof-arrow { justify-self: end; color: var(--accent); }
.proof-row:hover strong { color: var(--accent); }
.proof-outcome { grid-column: 1 / -1; margin-top: 34px; display: grid; grid-template-columns: repeat(6, auto); align-items: center; justify-content: space-between; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.proof-outcome span { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.proof-outcome strong { font: 800 14px ui-monospace, SFMono-Regular, Consolas, monospace; }
.site-footer { max-width: 1320px; margin: 0 auto; padding: 28px 24px 42px; display: flex; justify-content: space-between; gap: 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.site-footer p { margin: 0; }

@media (max-width: 900px) {
  .topbar { grid-template-columns: 1fr auto; }
  .topnav { display: none; }
  .hero, .product-shell, .proof-section { grid-template-columns: 1fr; }
  .hero { min-height: auto; gap: 48px; padding-top: 56px; }
  .product-shell { margin: 0 16px; }
  .economics-pane { border-left: 0; border-top: 1px solid var(--line-strong); }
  .empty-quote { min-height: 210px; }
  .proof-section { margin-top: 72px; row-gap: 38px; }
  .proof-outcome { grid-column: auto; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .topbar { min-height: 62px; padding: 0 16px; }
  .network-label { font-size: 10px; }
  .hero { padding: 46px 20px 48px; }
  h1 { font-size: 46px; }
  .hero-description { font-size: 16px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 16px; }
  .mechanism { margin-top: 6px; }
  .configuration-pane, .economics-pane { padding: 26px 20px; }
  .workspace-heading { display: block; margin-bottom: 34px; }
  .safety-note { display: block; margin-top: 16px; }
  .form-grid, .quote-metrics { grid-template-columns: 1fr; }
  .full-field { grid-column: auto; }
  .quote-metrics div:nth-child(even), .quote-metrics div:nth-child(odd) { padding: 16px 0; border-left: 0; }
  .market-line, .site-footer { flex-direction: column; }
  .proof-section { padding: 0 20px 64px; }
  .proof-row { grid-template-columns: 1fr 24px; gap: 8px; padding: 14px 0; }
  .proof-row strong { grid-column: 1; grid-row: 2; }
  .proof-arrow { grid-column: 2; grid-row: 1 / 3; }
}

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

.pages-label {
  justify-self: end;
  color: var(--accent);
  font: 700 11px ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.boundary-banner { max-width: 1320px; margin: -16px auto 24px; padding: 0 24px; }
.boundary-banner p { margin: 0; padding: 13px 0; border-top: 1px solid var(--warning); border-bottom: 1px solid var(--warning); color: #ddca91; font-size: 12px; }
.quote-result[hidden], .empty-quote[hidden] { display: none; }
.proof-download { color: var(--accent); }
@media (max-width: 900px) { .pages-label { font-size: 10px; } }
@media (max-width: 620px) {
  .pages-label { display: none; }
  .topbar { grid-template-columns: 1fr; }
  .boundary-banner { margin-top: 0; padding: 0 16px; }
}
