:root {
  --ink: #05070a;
  --ink-2: #0a1014;
  --panel: rgba(9, 17, 22, 0.78);
  --panel-strong: rgba(12, 25, 31, 0.94);
  --white: #f4fbf8;
  --muted: #a9b9b6;
  --dim: #6f817e;
  --line: rgba(244, 251, 248, 0.15);
  --line-strong: rgba(244, 251, 248, 0.26);
  --cyan: #42e8ff;
  --green: #79f28d;
  --amber: #ffd36a;
  --rose: #ff5f7e;
  --shadow: rgba(0, 0, 0, 0.42);
  --container: 1220px;
  --radius: 8px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: linear-gradient(160deg, #05070a 0%, #081118 48%, #0b0d10 100%);
  color: var(--white);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: var(--mono);
}

::selection {
  background: rgba(66, 232, 255, 0.26);
}

.skip-link {
  position: fixed;
  left: -999px;
  top: 12px;
  z-index: 100;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}

.skip-link:focus {
  left: 12px;
}

.morphic-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 10, 0.76);
  backdrop-filter: blur(16px) saturate(135%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 34px;
  border: 1px solid rgba(66, 232, 255, 0.42);
  border-radius: var(--radius);
  background: rgba(66, 232, 255, 0.08);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
}

.brand__text {
  font-size: 19px;
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.site-nav a {
  transition: color 140ms ease;
}

.site-nav a:hover {
  color: var(--white);
}

.header-action,
.primary-action,
.secondary-action,
.subject-chip,
.segment {
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0;
}

.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  background: rgba(121, 242, 141, 0.11);
  border-color: rgba(121, 242, 141, 0.42);
}

.workbench {
  position: relative;
  overflow: hidden;
  width: min(var(--container), calc(100% - 36px));
  margin-inline: auto;
  padding: 44px 0 52px;
  border-radius: var(--radius);
}

.workbench-visual {
  position: absolute;
  top: 10px;
  right: max(-170px, -12vw);
  z-index: -1;
  width: min(890px, 76vw);
  aspect-ratio: 1672 / 941;
  height: auto;
  object-fit: cover;
  object-position: center;
  opacity: 0.48;
  filter: saturate(1.08) contrast(1.04);
  mask-image: linear-gradient(90deg, transparent 0%, black 22%, black 70%, transparent 100%);
}

.workbench__intro {
  display: grid;
  gap: 18px;
  min-height: 330px;
  max-width: none;
  margin-bottom: 16px;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(5, 7, 10, 0.98), rgba(5, 7, 10, 0.84) 43%, rgba(5, 7, 10, 0.28)),
    url("./assets/future-ledger-crystal.png") center right / cover;
  box-shadow: 0 24px 90px var(--shadow);
  align-content: end;
}

.eyebrow,
.panel-kicker {
  margin: 0;
  color: var(--green);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  max-width: 940px;
  margin-bottom: 0;
  font-size: clamp(54px, 9vw, 104px);
  line-height: 0.9;
  letter-spacing: 0;
}

.lede {
  max-width: 800px;
  margin-bottom: 0;
  color: #d6e3df;
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.34;
}

.truth-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.truth-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 211, 106, 0.38);
  border-radius: var(--radius);
  background: rgba(255, 211, 106, 0.08);
  color: #fff0c2;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
}

.workbench-grid {
  display: grid;
  grid-template-columns: minmax(270px, 1.05fr) minmax(280px, 1fr) minmax(270px, 0.95fr);
  gap: 14px;
  align-items: stretch;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 24px 90px var(--shadow);
  backdrop-filter: blur(20px) saturate(140%);
}

.subject-panel,
.vector-panel,
.vote-panel,
.echo-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
}

.echo-panel {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 1fr minmax(250px, 0.72fr);
  align-items: center;
}

.panel-head h2 {
  margin: 4px 0 0;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: 0;
}

.subject-picker,
.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.subject-chip,
.segment {
  padding: 9px 11px;
  background: rgba(244, 251, 248, 0.07);
}

.subject-chip.is-active,
.segment.is-active {
  border-color: rgba(66, 232, 255, 0.64);
  background: rgba(66, 232, 255, 0.14);
  color: #d9fbff;
}

.field-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.text-input,
.evidence-input,
.select-input {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(2, 6, 8, 0.64);
  color: var(--white);
  outline: none;
}

.text-input,
.select-input {
  min-height: 45px;
  padding: 10px 12px;
}

.evidence-input {
  resize: vertical;
  min-height: 118px;
  padding: 12px;
}

.text-input:focus,
.evidence-input:focus,
.select-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(66, 232, 255, 0.14);
}

.evidence-meter {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.evidence-meter div,
.ledger-stat {
  min-height: 76px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(244, 251, 248, 0.05);
}

.evidence-meter strong,
.ledger-stat strong {
  display: block;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 26px;
  line-height: 1;
}

.evidence-meter span,
.ledger-stat span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.slider-stack {
  display: grid;
  gap: 15px;
}

.range-row {
  display: grid;
  grid-template-columns: 116px 1fr 38px;
  gap: 10px;
  align-items: center;
  color: #dce9e5;
  font-size: 14px;
  font-weight: 800;
}

.range-row input {
  width: 100%;
  accent-color: var(--cyan);
}

.range-row output {
  color: var(--green);
  font-family: var(--mono);
  text-align: right;
}

.toggle-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #c7d7d3;
  font-size: 14px;
  font-weight: 700;
}

.toggle-line input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.primary-action {
  width: 100%;
  padding: 12px 16px;
  border-color: rgba(121, 242, 141, 0.52);
  background: linear-gradient(135deg, rgba(121, 242, 141, 0.98), rgba(66, 232, 255, 0.9));
  color: #03100d;
  box-shadow: 0 18px 48px rgba(66, 232, 255, 0.18);
}

.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  background: rgba(244, 251, 248, 0.07);
}

.echo-copy {
  margin-bottom: 0;
  color: #d7e5e1;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.35;
}

.receipt-strip {
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid rgba(66, 232, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(66, 232, 255, 0.07);
  min-width: 0;
}

.receipt-strip span,
.ledger-receipt span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.receipt-strip code,
.ledger-receipt code {
  display: block;
  overflow-wrap: anywhere;
  color: #d9fbff;
  font-size: 12px;
}

.echo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
