:root {
  --ink: #0b0f0d;
  --ink-soft: #1b2520;
  --paper: #f2ead9;
  --paper-light: #fffaf0;
  --muted: #647068;
  --line: #cfc3ac;
  --signal: #ffb547;
  --signal-dark: #c87400;
  --acid: #d9ff63;
  --mint: #8fd9b5;
  --danger: #df6b53;
  --white: #fff;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(rgba(11, 15, 13, 0.1) 0.7px, transparent 0.7px);
  background-size: 8px 8px;
  content: "";
  opacity: 0.24;
  pointer-events: none;
}

::selection {
  background: var(--acid);
  color: var(--ink);
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 12px 16px;
  border-radius: 4px;
  background: var(--acid);
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  position: fixed;
  z-index: 50;
  top: 14px;
  left: 50%;
  display: grid;
  width: min(1180px, calc(100% - 28px));
  min-height: 58px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 8px 10px 8px 14px;
  border: 1px solid rgba(255, 250, 240, 0.2);
  border-radius: 7px;
  background: rgba(11, 15, 13, 0.84);
  color: var(--paper-light);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  text-decoration: none;
}

.brand img {
  border-radius: 7px;
}

.topbar nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2.3vw, 28px);
}

.topbar nav a {
  color: rgba(255, 250, 240, 0.72);
  font-size: 0.9rem;
  font-weight: 760;
  text-decoration: none;
}

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

.topbar__action {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 4px;
  background: var(--acid);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 900;
  text-decoration: none;
}

.topbar a:focus-visible,
.button:focus-visible,
.record-tab:focus-visible,
.text-link:focus-visible,
footer a:focus-visible {
  outline: 3px solid var(--acid);
  outline-offset: 4px;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.76fr);
  align-items: center;
  gap: clamp(48px, 7vw, 112px);
  overflow: hidden;
  padding: 118px clamp(24px, 7vw, 106px) 70px;
  background:
    linear-gradient(90deg, rgba(11, 15, 13, 0.995) 0%, rgba(11, 15, 13, 0.96) 55%, rgba(11, 15, 13, 0.78) 100%),
    repeating-linear-gradient(0deg, transparent, transparent 23px, rgba(255, 250, 240, 0.035) 24px);
  color: var(--paper-light);
  isolation: isolate;
}

.hero::after {
  position: absolute;
  z-index: -1;
  right: -18vw;
  bottom: -28vw;
  width: 72vw;
  height: 72vw;
  border: 1px solid rgba(255, 181, 71, 0.22);
  border-radius: 50%;
  box-shadow:
    0 0 0 8vw rgba(255, 181, 71, 0.025),
    0 0 0 16vw rgba(255, 181, 71, 0.018);
  content: "";
}

.hero__copy {
  width: min(770px, 100%);
  animation: hero-rise 720ms ease-out both;
}

.eyebrow,
.section-label {
  margin: 0 0 14px;
  color: var(--signal-dark);
  font-size: 0.77rem;
  font-weight: 900;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--signal);
}

.product-name {
  margin: 0 0 22px;
  font-size: clamp(1.04rem, 1.7vw, 1.4rem);
  font-weight: 900;
  letter-spacing: -0.025em;
}

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

h1 {
  max-width: 10ch;
  margin-bottom: 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 7.4vw, 7.8rem);
  font-weight: 500;
  line-height: 0.86;
  letter-spacing: -0.065em;
}

h2 {
  max-width: 13ch;
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 5vw, 5.5rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.052em;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.hero__lede {
  max-width: 43rem;
  margin-bottom: 30px;
  color: rgba(255, 250, 240, 0.78);
  font-size: clamp(1.05rem, 1.6vw, 1.31rem);
  line-height: 1.55;
}

.hero__actions,
.benchmark__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-weight: 860;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--signal {
  background: var(--acid);
  color: var(--ink);
}

.button--signal:hover {
  background: var(--paper-light);
}

.button--ghost {
  border-color: rgba(255, 250, 240, 0.34);
  background: rgba(255, 250, 240, 0.04);
  color: var(--paper-light);
}

.button--dark {
  background: var(--ink);
  color: var(--paper-light);
}

.ownership-note {
  max-width: 42rem;
  margin: 20px 0 0;
  color: rgba(255, 250, 240, 0.54);
  font-size: 0.86rem;
  line-height: 1.55;
}

.trace-map {
  position: relative;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-left: 50px;
  animation: trace-enter 860ms 160ms ease-out both;
}

.trace-map__line {
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 15px;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    var(--signal) 0 9px,
    transparent 9px 18px
  );
  animation: trace-flow 900ms linear infinite;
}

.trace-node {
  position: relative;
  padding: 18px 0 18px 20px;
  border-top: 1px solid rgba(255, 250, 240, 0.17);
}

.trace-node::before {
  position: absolute;
  top: 24px;
  left: -43px;
  width: 14px;
  height: 14px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 1px var(--signal);
  content: "";
}

.trace-node span {
  display: block;
  margin-bottom: 7px;
  color: rgba(255, 250, 240, 0.52);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.trace-node strong,
.trace-node code {
  display: block;
}

.trace-node strong {
  margin-bottom: 6px;
  font-size: clamp(1.12rem, 2vw, 1.62rem);
}

.trace-node code {
  color: var(--mint);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.proof-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--paper-light);
}

.proof-rail div {
  min-height: 148px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px clamp(20px, 3.4vw, 52px);
  border-right: 1px solid var(--line);
}

.proof-rail div:last-child {
  border-right: 0;
}

.proof-rail strong {
  margin-bottom: 7px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 4.4vw, 4.7rem);
  font-weight: 500;
  letter-spacing: -0.055em;
}

.proof-rail span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 820;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.explorer,
.method,
.boundary,
.benchmark,
.final-cta {
  padding: clamp(84px, 11vw, 150px) clamp(24px, 7vw, 104px);
}

.section-heading {
  max-width: 1180px;
  margin: 0 auto 64px;
}

.section-heading--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
  align-items: end;
  gap: 56px;
}

.section-heading--split > p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.record-tabs {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.record-tab {
  min-height: 106px;
  padding: 20px 24px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: background 180ms ease, color 180ms ease;
}

.record-tab:last-child {
  border-right: 0;
}

.record-tab span,
.record-tab small {
  display: block;
}

.record-tab span {
  margin-bottom: 8px;
  font-weight: 850;
}

.record-tab small {
  color: var(--muted);
}

.record-tab.is-active {
  background: var(--ink);
  color: var(--paper-light);
}

.record-tab.is-active small {
  color: var(--mint);
}

.record-workspace {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.38fr);
  margin: 0 auto;
  background: var(--paper-light);
  box-shadow: 0 34px 90px rgba(11, 15, 13, 0.16);
}

.record-main {
  padding: clamp(30px, 5vw, 72px);
}

.record-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 42px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
}

.record-status {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 6px 9px;
  border-radius: 3px;
  background: rgba(143, 217, 181, 0.24);
  color: #235c42;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 800;
}

.record-status.is-refused {
  background: rgba(223, 107, 83, 0.17);
  color: #8d2f1f;
}

.record-main h3 {
  max-width: 30ch;
  margin-bottom: 44px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  font-weight: 500;
  line-height: 0.98;
}

.attribute-list {
  border-top: 1px solid var(--line);
}

.attribute-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.55fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  min-height: 62px;
  border-bottom: 1px solid var(--line);
}

.attribute-row dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.attribute-row dd {
  margin: 0;
  font-weight: 730;
}

.attribute-row code {
  color: #34634d;
  font-size: 0.72rem;
}

.attribute-row.is-refused dd,
.attribute-row.is-refused code {
  color: var(--danger);
}

.receipt {
  padding: clamp(30px, 4vw, 56px);
  background: var(--ink);
  color: var(--paper-light);
}

.receipt .section-label {
  color: var(--signal);
}

.receipt dl {
  margin: 38px 0 34px;
}

.receipt dl div {
  padding: 16px 0;
  border-top: 1px solid rgba(255, 250, 240, 0.15);
}

.receipt dt {
  margin-bottom: 7px;
  color: rgba(255, 250, 240, 0.52);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.receipt dd {
  margin: 0;
  font-weight: 720;
}

.receipt code {
  color: var(--mint);
  overflow-wrap: anywhere;
}

.refusal {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 250, 240, 0.15);
}

.refusal strong {
  display: block;
  margin-bottom: 12px;
}

.refusal ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.refusal li {
  padding: 6px 0;
  color: rgba(255, 250, 240, 0.67);
}

.refusal li::before {
  margin-right: 9px;
  color: var(--danger);
  content: "×";
}

.method {
  background: var(--ink);
  color: var(--paper-light);
}

.method .section-heading {
  margin-bottom: 60px;
}

.method .section-label {
  color: var(--signal);
}

.method-flow {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 auto;
  padding: 0;
  border-top: 1px solid rgba(255, 250, 240, 0.18);
  list-style: none;
}

.method-flow li {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px 26px 34px;
  border-right: 1px solid rgba(255, 250, 240, 0.18);
}

.method-flow li:last-child {
  border-right: 0;
}

.method-flow > li > span {
  color: var(--signal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.8rem;
}

.method-flow strong {
  display: block;
  margin-bottom: 12px;
  font-size: 1.22rem;
}

.method-flow p {
  margin-bottom: 0;
  color: rgba(255, 250, 240, 0.64);
  line-height: 1.65;
}

.boundary {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.1fr);
  gap: clamp(56px, 9vw, 138px);
  background: var(--paper-light);
}

.boundary__columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.boundary__columns > div {
  padding: 28px 28px 0 0;
}

.boundary__columns > div + div {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.boundary h3 {
  margin-bottom: 24px;
}

.boundary ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.boundary li {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.45;
}

.boundary li::before {
  margin-right: 10px;
  color: #2e7b55;
  content: "✓";
  font-weight: 900;
}

.boundary__columns > div + div li::before {
  color: var(--danger);
  content: "—";
}

.benchmark {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(320px, 0.52fr);
  align-items: end;
  gap: clamp(56px, 10vw, 150px);
}

.benchmark__copy p:not(.section-label) {
  max-width: 42rem;
  margin: 30px 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.7;
}

.text-link {
  color: var(--signal-dark);
  font-weight: 860;
  text-decoration: none;
}

.benchmark__hash {
  padding: 30px 0 4px;
  border-top: 3px solid var(--ink);
}

.benchmark__hash span,
.benchmark__hash code,
.benchmark__hash small {
  display: block;
}

.benchmark__hash span {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.benchmark__hash code {
  margin-bottom: 20px;
  font-size: clamp(0.9rem, 1.6vw, 1.2rem);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.benchmark__hash small {
  color: var(--muted);
  line-height: 1.55;
}

.final-cta {
  display: grid;
  place-items: center;
  background: var(--signal);
  text-align: center;
}

.final-cta .section-label {
  color: #5f3600;
}

.final-cta h2 {
  max-width: 11ch;
}

.final-cta p:not(.section-label) {
  max-width: 41rem;
  margin: 28px auto 30px;
  font-size: 1.08rem;
  line-height: 1.68;
}

footer {
  min-height: 150px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 34px clamp(24px, 7vw, 104px);
  background: var(--ink);
  color: var(--paper-light);
}

footer p {
  margin: 0;
  color: rgba(255, 250, 240, 0.55);
  text-align: center;
}

footer nav {
  display: flex;
  gap: 18px;
}

footer nav a {
  color: rgba(255, 250, 240, 0.72);
  font-weight: 750;
  text-decoration: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes trace-enter {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes trace-flow {
  from {
    background-position-y: 0;
  }
  to {
    background-position-y: 18px;
  }
}

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: auto 1fr;
  }

  .topbar nav {
    display: none;
  }

  .topbar__action {
    justify-self: end;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 112px;
  }

  .trace-map {
    min-height: 420px;
  }

  .proof-rail {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof-rail div:nth-child(2) {
    border-right: 0;
  }

  .proof-rail div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .section-heading--split,
  .record-workspace,
  .boundary,
  .benchmark {
    grid-template-columns: 1fr;
  }

  .record-tabs {
    grid-template-columns: 1fr;
  }

  .record-tab {
    min-height: 82px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .record-tab:last-child {
    border-bottom: 0;
  }

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

  .method-flow li:nth-child(2) {
    border-right: 0;
  }

  .method-flow li:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 250, 240, 0.18);
  }

  footer {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

@media (max-width: 620px) {
  h1 {
    font-size: clamp(3.35rem, 17vw, 5.2rem);
  }

  h2 {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .topbar__action {
    font-size: 0;
  }

  .topbar__action::after {
    font-size: 0.78rem;
    content: "Source";
  }

  .hero {
    padding-right: 22px;
    padding-left: 22px;
  }

  .hero__actions,
  .benchmark__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .proof-rail {
    grid-template-columns: 1fr;
  }

  .proof-rail div {
    min-height: 118px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-rail div:last-child {
    border-bottom: 0;
  }

  .section-heading--split {
    gap: 30px;
  }

  .record-main,
  .receipt {
    padding: 28px 22px;
  }

  .attribute-row {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 14px 0;
  }

  .method-flow,
  .boundary__columns {
    grid-template-columns: 1fr;
  }

  .method-flow li {
    min-height: 240px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 250, 240, 0.18);
  }

  .method-flow li:last-child {
    border-bottom: 0;
  }

  .boundary__columns > div + div {
    margin-top: 38px;
    padding-left: 0;
    border-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
