:root {
  color-scheme: dark;
  --background: #080b12;
  --surface: rgba(15, 20, 31, 0.86);
  --surface-strong: #141a27;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f4f7fb;
  --muted: #909bad;
  --green: #6df0b0;
  --green-strong: #28ce83;
  --red: #ff6b7a;
  --amber: #ffca6b;
  --purple: #a78bfa;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  background: var(--background);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -20%, rgba(83, 69, 155, 0.16), transparent 43%),
    linear-gradient(180deg, #0b0e17 0%, var(--background) 42%, #090d14 100%);
  font-family: var(--sans);
}

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

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.page-glow {
  position: fixed;
  z-index: -1;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.11;
  pointer-events: none;
}

.page-glow--one {
  top: 10%;
  left: -240px;
  background: var(--purple);
}

.page-glow--two {
  top: 42%;
  right: -260px;
  background: var(--green);
}

.topbar,
main,
footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  color: var(--text);
  font-size: 17px;
  font-weight: 720;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid rgba(109, 240, 176, 0.5);
  border-radius: 9px;
  color: #07130e;
  background: var(--green);
  box-shadow: 0 0 28px rgba(109, 240, 176, 0.22);
  font-weight: 850;
}

.topbar__badges {
  display: flex;
  gap: 8px;
}

.badge {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.daemon-status::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber);
  content: "";
}

.daemon-status[data-state="online"]::before {
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.daemon-status[data-state="offline"]::before {
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
}

.hero {
  padding: 78px 0 50px;
  text-align: center;
}

.eyebrow,
.step-label {
  margin: 0;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.hero h1 {
  max-width: 900px;
  margin: 17px auto 22px;
  font-size: clamp(42px, 6.3vw, 78px);
  line-height: 0.99;
  letter-spacing: -0.055em;
}

.hero h1 span {
  color: transparent;
  background: linear-gradient(95deg, #f8fafc 10%, #a7b1c3 54%, var(--green) 115%);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero__copy {
  max-width: 680px;
  margin: 0 auto;
  color: #aab3c2;
  font-size: 17px;
  line-height: 1.65;
}

code {
  color: #c7fbe2;
  font-family: var(--mono);
  font-size: 0.92em;
}

.trust-note {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  width: fit-content;
  max-width: 720px;
  margin: 27px auto 0;
  padding: 11px 15px;
  border: 1px solid rgba(255, 202, 107, 0.18);
  border-radius: 10px;
  color: #c6b997;
  background: rgba(255, 202, 107, 0.055);
  text-align: left;
}

.trust-note p {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
}

.trust-note__icon {
  display: grid;
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  place-items: center;
  border: 1px solid rgba(255, 202, 107, 0.45);
  border-radius: 50%;
  color: var(--amber);
  font-size: 11px;
  font-weight: 900;
}

.mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 760px;
  margin: 0 auto 17px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(9, 13, 20, 0.7);
}

.mode-button {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  min-height: 62px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #8994a6;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}

.mode-button:hover:not(:disabled) {
  color: #cbd4df;
  background: rgba(255, 255, 255, 0.025);
}

.mode-button--active {
  border-color: rgba(109, 240, 176, 0.2);
  color: var(--text);
  background: rgba(109, 240, 176, 0.065);
}

.mode-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.mode-button__icon {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--green);
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--mono);
  font-size: 14px;
}

.mode-button strong,
.mode-button small {
  display: block;
}

.mode-button strong {
  font-size: 12px;
}

.mode-button small {
  margin-top: 4px;
  color: #6f7a8c;
  font-size: 9px;
  line-height: 1.35;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: 16px;
  align-items: stretch;
}

.panel {
  min-width: 0;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.panel__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.panel__heading--payload {
  margin-top: 29px;
}

.live-source:not([hidden]) + .panel__heading--anchor {
  margin-top: 29px;
}

.panel h2,
.how-it-works h2 {
  margin: 5px 0 0;
  font-size: 21px;
  letter-spacing: -0.025em;
}

.panel__hint {
  color: #778295;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  color: #c7cfdb;
  font-size: 12px;
  font-weight: 700;
}

.field-grid {
  display: grid;
  grid-template-columns: minmax(135px, 0.6fr) minmax(0, 1.4fr);
  gap: 10px;
}

.live-source .field-grid {
  grid-template-columns: minmax(150px, 230px);
}

.field-grid__wide {
  min-width: 0;
}

.root-input,
.provider-input,
.provider-list-input,
.select-input,
.payload-input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #dce4f0;
  background: #090d14;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.55;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.root-input:hover,
.provider-input:hover,
.provider-list-input:hover,
.select-input:hover,
.payload-input:hover {
  border-color: rgba(255, 255, 255, 0.19);
}

.root-input:focus,
.provider-input:focus,
.provider-list-input:focus,
.select-input:focus,
.payload-input:focus {
  border-color: rgba(109, 240, 176, 0.55);
  box-shadow: 0 0 0 3px rgba(109, 240, 176, 0.07);
}

.root-input,
.provider-input,
.select-input {
  min-height: 44px;
  padding: 13px 14px;
}

.select-input {
  appearance: none;
  padding-right: 34px;
  background-image:
    linear-gradient(45deg, transparent 50%, #768195 50%),
    linear-gradient(135deg, #768195 50%, transparent 50%);
  background-position:
    calc(100% - 17px) 19px,
    calc(100% - 12px) 19px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}

.payload-input {
  min-height: 285px;
  padding: 14px;
  resize: vertical;
  tab-size: 2;
}

.provider-list-label {
  margin-top: 12px;
}

.provider-list-input {
  width: 100%;
  min-height: 92px;
  padding: 11px 14px;
  resize: vertical;
}

.field-help,
.demo-notice {
  margin: 8px 0 0;
  color: #778295;
  font-size: 11px;
  line-height: 1.45;
}

.demo-notice[data-tone="warning"] {
  color: var(--amber);
}

.demo-notice[data-tone="success"] {
  color: var(--green);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 21px;
}

.button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 760;
  transition: transform 130ms ease, border-color 130ms ease, background 130ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.button--primary {
  color: #06130d;
  background: var(--green);
  box-shadow: 0 10px 26px rgba(40, 206, 131, 0.15);
}

.button--primary:hover:not(:disabled) {
  background: #8af5c2;
}

.button--danger {
  border-color: rgba(255, 107, 122, 0.25);
  color: #ff9ca6;
  background: rgba(255, 107, 122, 0.07);
}

.button--danger:hover:not(:disabled) {
  border-color: rgba(255, 107, 122, 0.44);
  background: rgba(255, 107, 122, 0.12);
}

.button--quiet {
  border-color: var(--line);
  color: #a8b1bf;
  background: rgba(255, 255, 255, 0.035);
}

.button--export {
  margin-left: auto;
}

.panel--result {
  display: flex;
  flex-direction: column;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.panel--result[data-state="verified"] {
  border-color: rgba(109, 240, 176, 0.28);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22), inset 0 1px rgba(109, 240, 176, 0.08);
}

.panel--result[data-state="rejected"] {
  border-color: rgba(255, 107, 122, 0.28);
}

.panel--result[data-state="unavailable"],
.panel--result[data-state="invalid"] {
  border-color: rgba(255, 202, 107, 0.28);
}

.result-status {
  display: flex;
  gap: 14px;
  align-items: center;
}

.result-status__icon {
  display: grid;
  flex: 0 0 auto;
  width: 45px;
  height: 45px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 23px;
  font-weight: 800;
}

[data-state="verified"] .result-status__icon {
  border-color: rgba(109, 240, 176, 0.35);
  color: #07140e;
  background: var(--green);
  box-shadow: 0 0 28px rgba(109, 240, 176, 0.18);
}

[data-state="rejected"] .result-status__icon {
  border-color: rgba(255, 107, 122, 0.35);
  color: #21090c;
  background: var(--red);
  box-shadow: 0 0 28px rgba(255, 107, 122, 0.15);
}

[data-state="unavailable"] .result-status__icon,
[data-state="invalid"] .result-status__icon {
  border-color: rgba(255, 202, 107, 0.35);
  color: #211707;
  background: var(--amber);
  box-shadow: 0 0 28px rgba(255, 202, 107, 0.15);
}

[data-state="rejected"] .step-label {
  color: var(--red);
}

[data-state="unavailable"] .step-label,
[data-state="invalid"] .step-label {
  color: var(--amber);
}

.result-message {
  min-height: 44px;
  margin: 18px 0 21px;
  color: #939eae;
  font-size: 13px;
  line-height: 1.6;
}

.provenance {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 10px;
}

.provenance > div {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.018);
}

.provenance span,
.provenance strong {
  display: block;
}

.provenance span {
  margin-bottom: 4px;
  color: #687487;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.provenance strong {
  overflow: hidden;
  color: #aab4c2;
  font-family: var(--mono);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.root-results {
  display: grid;
  gap: 8px;
  margin: 0;
}

.root-results > div {
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 9px;
  background: rgba(5, 8, 13, 0.48);
}

.root-results dt {
  margin-bottom: 6px;
  color: #788396;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.root-results dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #c5cedb;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.55;
}

.provider-claim small {
  display: block;
  margin-top: 6px;
  color: #788396;
  font-size: 9px;
}

.provider-claim small[data-tone="success"] {
  color: var(--green);
}

.provider-claim small[data-tone="warning"] {
  color: var(--amber);
}

.root-results__state {
  border-color: rgba(109, 240, 176, 0.15) !important;
  background: rgba(109, 240, 176, 0.035) !important;
}

[data-state="rejected"] .root-results__state {
  border-color: rgba(255, 107, 122, 0.14) !important;
  background: rgba(255, 107, 122, 0.025) !important;
}

[data-state="unavailable"] .root-results__state,
[data-state="invalid"] .root-results__state {
  border-color: rgba(255, 202, 107, 0.12) !important;
  background: rgba(255, 202, 107, 0.02) !important;
}

.verification-path {
  margin-top: 22px;
}

.verification-path__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
}

.verification-path h3 {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.01em;
}

#timing {
  color: #6f7a8c;
  font-family: var(--mono);
  font-size: 9px;
}

.checks {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.026);
}

.check__marker {
  display: grid;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #778295;
  font-size: 10px;
  font-weight: 900;
}

.check--pass .check__marker {
  border-color: rgba(109, 240, 176, 0.28);
  color: var(--green);
  background: rgba(109, 240, 176, 0.07);
}

.check--fail .check__marker {
  border-color: rgba(255, 107, 122, 0.28);
  color: var(--red);
  background: rgba(255, 107, 122, 0.07);
}

.check strong,
.check small {
  display: block;
}

.check strong {
  color: #c6cfdb;
  font-size: 10px;
  line-height: 1.25;
}

.check small {
  margin-top: 3px;
  color: #707b8d;
  font-size: 9px;
  line-height: 1.35;
}

.boundary {
  margin-top: auto;
  padding-top: 21px;
  color: #7d8899;
  font-size: 10px;
  line-height: 1.55;
}

.boundary p {
  margin: 4px 0 0;
}

.boundary__title {
  color: var(--green) !important;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.boundary__title--not {
  margin-top: 13px !important;
  color: #9fa8b5 !important;
}

.provider-evidence {
  margin-top: 17px;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 20, 31, 0.72);
}

.provider-evidence__heading {
  display: flex;
  gap: 30px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 18px;
}

.provider-evidence__heading h2 {
  margin: 7px 0 0;
  font-size: 22px;
}

.provider-evidence__heading > p {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
  text-align: right;
}

.provider-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.provider-card {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(5, 8, 13, 0.48);
}

.provider-card[data-outcome="verified"] {
  border-color: rgba(109, 240, 176, 0.24);
}

.provider-card[data-outcome="rejected"] {
  border-color: rgba(255, 107, 122, 0.24);
}

.provider-card[data-outcome="unavailable"],
.provider-card[data-outcome="invalid"] {
  border-color: rgba(255, 202, 107, 0.2);
}

.provider-card__heading {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.provider-card__heading strong {
  overflow: hidden;
  font-family: var(--mono);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.provider-card__status {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

[data-outcome="verified"] .provider-card__status {
  color: var(--green);
}

[data-outcome="rejected"] .provider-card__status {
  color: var(--red);
}

[data-outcome="unavailable"] .provider-card__status,
[data-outcome="invalid"] .provider-card__status {
  color: var(--amber);
}

.provider-card dl {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
}

.provider-card dt {
  color: #687487;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.provider-card dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  color: #aab4c2;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.45;
}

.how-it-works {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 50px;
  align-items: center;
  padding: 84px 0 72px;
}

.how-it-works h2 {
  margin-top: 10px;
  font-size: 29px;
  line-height: 1.15;
}

.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.flow li {
  position: relative;
  min-width: 0;
  padding: 0 13px;
  border-left: 1px solid var(--line);
}

.flow span,
.flow strong,
.flow small {
  display: block;
}

.flow span {
  margin-bottom: 15px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 10px;
}

.flow strong {
  margin-bottom: 5px;
  font-size: 12px;
}

.flow small {
  color: #737e90;
  font-size: 9px;
  line-height: 1.45;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 23px 0 34px;
  border-top: 1px solid var(--line);
  color: #5f6979;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .workspace,
  .how-it-works {
    grid-template-columns: 1fr;
  }

  .how-it-works {
    gap: 31px;
  }

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

  .provider-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .topbar,
  main,
  footer {
    width: min(100% - 24px, 1180px);
  }

  .topbar__badges .badge:last-child {
    display: none;
  }

  .hero {
    padding-top: 55px;
  }

  .hero h1 {
    font-size: 43px;
  }

  .hero__copy {
    font-size: 15px;
  }

  .panel {
    padding: 20px;
    border-radius: 14px;
  }

  .panel__hint {
    display: none;
  }

  .mode-switch {
    grid-template-columns: 1fr;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .button--export {
    margin-left: 0;
  }

  .provenance {
    grid-template-columns: 1fr;
  }

  .provider-evidence {
    padding: 20px;
  }

  .provider-evidence__heading {
    display: block;
  }

  .provider-evidence__heading > p {
    margin-top: 10px;
    text-align: left;
  }

  .flow,
  .flow--five {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px 0;
  }

  footer {
    gap: 12px;
    flex-direction: column;
  }
}
