:root {
  color-scheme: dark;
  --relay-black: #0c0f0c;
  --receipt-cream: #f6f1e6;
  --execution-mint: #20c997;
  --agent-cyan: #38d9e8;
  --settlement-amber: #f59f00;
  --failure-red: #ff6b6b;
  --panel-solid: #121714;
  --paper: #f4efe4;
  --muted: #b6b9ad;
  --line: rgba(246, 241, 230, 0.16);
  --dark-line: rgba(12, 15, 12, 0.14);
  --sans: "Geist Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --mono: "Geist Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas,
    monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--relay-black);
  color: var(--receipt-cream);
  font-family: var(--sans);
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.chooser {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 12px 28px;
  border-bottom: 1px solid rgba(246, 241, 230, 0.1);
  background: rgba(12, 15, 12, 0.92);
  backdrop-filter: blur(18px);
}

.chooser-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.chooser-brand img {
  width: 34px;
  height: auto;
}

.chooser nav,
.landing-header nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chooser nav a {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font: 800 0.82rem / 1 var(--mono);
}

.chooser nav a:hover,
.chooser nav a:focus-visible {
  color: var(--relay-black);
  background: var(--execution-mint);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.35fr);
  gap: 42px;
  align-items: end;
  padding: 74px 56px 58px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(12, 15, 12, 0.98), rgba(12, 15, 12, 0.86)),
    repeating-linear-gradient(90deg, rgba(246, 241, 230, 0.045) 0 1px, transparent 1px 86px),
    repeating-linear-gradient(0deg, rgba(246, 241, 230, 0.035) 0 1px, transparent 1px 86px);
}

.intro h1 {
  max-width: 1060px;
  margin-bottom: 0;
  font-size: 4.6rem;
  line-height: 0.98;
}

.intro p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.55;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--execution-mint);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mockup {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.landing-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 18px 56px;
  border-bottom: 1px solid rgba(246, 241, 230, 0.1);
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.landing-brand img {
  width: 42px;
  height: auto;
}

.landing-header nav a {
  min-height: 36px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.91rem;
}

.landing-header nav a:hover,
.landing-header nav a:focus-visible {
  border-color: var(--line);
  color: var(--receipt-cream);
}

.variant-kicker {
  position: absolute;
  top: 94px;
  left: 56px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font: 800 0.8rem / 1 var(--mono);
}

.variant-kicker span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--execution-mint);
}

.hero {
  position: relative;
  z-index: 10;
  display: grid;
  min-height: calc(100vh - 74px);
  align-items: center;
  padding: 112px 56px 64px;
}

.hero-left,
.ledger-hero,
.bazaar-hero,
.flow-hero {
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.72fr);
  gap: 56px;
}

.hero-copy {
  max-width: 760px;
}

.hero-copy h2 {
  margin-bottom: 22px;
  font-size: 5.8rem;
  line-height: 0.94;
}

.hero-copy p:not(.eyebrow) {
  max-width: 640px;
  margin-bottom: 34px;
  color: #e3ded1;
  font-size: 1.32rem;
  line-height: 1.38;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
}

.button.primary {
  background: var(--execution-mint);
  color: #06110d;
}

.button.secondary {
  border: 1px solid var(--line);
  color: var(--receipt-cream);
  background: rgba(246, 241, 230, 0.07);
}

.relay-console {
  background:
    linear-gradient(90deg, rgba(12, 15, 12, 0.96), rgba(12, 15, 12, 0.7)),
    repeating-linear-gradient(90deg, rgba(246, 241, 230, 0.04) 0 1px, transparent 1px 76px),
    repeating-linear-gradient(0deg, rgba(246, 241, 230, 0.032) 0 1px, transparent 1px 76px),
    var(--relay-black);
}

.relay-map {
  position: absolute;
  inset: 74px 0 0;
  opacity: 0.72;
  pointer-events: none;
}

.node,
.route {
  position: absolute;
  display: block;
}

.node {
  width: 14px;
  height: 14px;
  border: 2px solid var(--execution-mint);
  border-radius: 50%;
  background: var(--relay-black);
}

.node-a {
  right: 38%;
  top: 22%;
}

.node-b {
  right: 20%;
  top: 33%;
  border-color: var(--agent-cyan);
}

.node-c {
  right: 12%;
  top: 58%;
  border-color: var(--settlement-amber);
}

.node-d {
  right: 30%;
  top: 72%;
}

.route {
  height: 1px;
  transform-origin: left center;
  background: rgba(32, 201, 151, 0.45);
}

.route-one {
  right: 20%;
  top: 28%;
  width: 260px;
  transform: rotate(18deg);
}

.route-two {
  right: 12%;
  top: 46%;
  width: 240px;
  transform: rotate(44deg);
  background: rgba(56, 217, 232, 0.42);
}

.route-three {
  right: 14%;
  top: 66%;
  width: 260px;
  transform: rotate(160deg);
  background: rgba(245, 159, 0, 0.42);
}

.receipt-panel {
  width: min(100%, 520px);
  justify-self: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 23, 20, 0.9);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
}

.panel-topline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 28px;
  border-bottom: 1px solid var(--line);
}

.panel-topline span {
  color: var(--execution-mint);
  font: 900 4.6rem / 0.85 var(--mono);
}

.panel-topline strong {
  max-width: 180px;
  font-size: 1.18rem;
  line-height: 1.16;
  text-align: right;
}

.receipt-grid {
  display: grid;
  margin: 0;
  padding: 24px 28px;
  gap: 12px;
}

.receipt-grid div {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1fr);
  gap: 16px;
  font-family: var(--mono);
  font-size: 0.92rem;
}

.receipt-grid dt {
  color: var(--muted);
}

.receipt-grid dd {
  margin: 0;
  color: var(--receipt-cream);
}

.receipt-panel > code {
  display: block;
  padding: 18px 28px 24px;
  border-top: 1px solid var(--line);
  color: var(--execution-mint);
  font: 700 0.9rem / 1.4 var(--mono);
  overflow-wrap: anywhere;
}

.feature-strip {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  background: #101510;
}

.feature-strip article {
  min-height: 166px;
  padding: 28px 56px;
  border-right: 1px solid var(--line);
}

.feature-strip article:last-child {
  border-right: 0;
}

.feature-strip span {
  display: block;
  margin-bottom: 22px;
  color: var(--settlement-amber);
  font: 900 0.84rem / 1 var(--mono);
}

.feature-strip h3 {
  margin-bottom: 8px;
  font-size: 1.32rem;
}

.feature-strip p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.receipt-ledger {
  color: #121714;
  background:
    linear-gradient(180deg, rgba(244, 239, 228, 0.96), rgba(244, 239, 228, 0.98)),
    repeating-linear-gradient(0deg, rgba(12, 15, 12, 0.055) 0 1px, transparent 1px 54px),
    var(--paper);
}

.receipt-ledger .landing-header {
  border-color: rgba(12, 15, 12, 0.12);
}

.receipt-ledger .landing-header nav a,
.receipt-ledger .variant-kicker,
.receipt-ledger .hero-copy p:not(.eyebrow) {
  color: #4d544c;
}

.receipt-ledger .landing-header nav a:hover,
.receipt-ledger .landing-header nav a:focus-visible {
  color: #121714;
  border-color: rgba(12, 15, 12, 0.15);
}

.receipt-ledger .variant-kicker span,
.receipt-ledger .button.secondary {
  border-color: rgba(12, 15, 12, 0.16);
}

.receipt-ledger .hero-copy h2 {
  color: #101510;
}

.receipt-ledger .button.secondary {
  color: #121714;
  background: rgba(12, 15, 12, 0.04);
}

.ledger-board {
  width: min(100%, 560px);
  justify-self: end;
  border: 1px solid rgba(12, 15, 12, 0.18);
  border-radius: 8px;
  overflow: hidden;
  background: #fffaf0;
}

.ledger-row {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.8fr 0.8fr;
  min-height: 64px;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(12, 15, 12, 0.11);
  font: 700 0.86rem / 1.3 var(--mono);
}

.ledger-row:last-child {
  border-bottom: 0;
}

.ledger-head {
  color: #4d544c;
  background: rgba(12, 15, 12, 0.04);
}

.ok {
  color: #087f5b;
}

.pending {
  color: #b56f00;
}

.ledger-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(12, 15, 12, 0.14);
  background: #101510;
  color: var(--receipt-cream);
}

.ledger-proof article {
  min-height: 148px;
  padding: 28px 56px;
  border-right: 1px solid var(--line);
}

.ledger-proof article:last-child {
  border-right: 0;
}

.ledger-proof strong,
.ledger-proof code {
  display: block;
}

.ledger-proof strong {
  margin-bottom: 14px;
}

.ledger-proof code {
  color: var(--execution-mint);
  font: 700 0.92rem / 1.45 var(--mono);
  overflow-wrap: anywhere;
}

.bazaar-route {
  background:
    linear-gradient(180deg, rgba(12, 15, 12, 0.9), rgba(12, 15, 12, 0.98)),
    repeating-linear-gradient(90deg, rgba(56, 217, 232, 0.05) 0 1px, transparent 1px 92px),
    var(--relay-black);
}

.bazaar-route::before {
  content: "";
  position: absolute;
  inset: 74px 0 auto;
  height: 270px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, transparent, rgba(56, 217, 232, 0.08), transparent),
    repeating-linear-gradient(0deg, transparent 0 53px, rgba(246, 241, 230, 0.07) 53px 54px);
}

.bazaar-hero .hero-copy h2 {
  max-width: 840px;
  font-size: 5rem;
}

.route-list {
  width: min(100%, 560px);
  justify-self: end;
  border-top: 1px solid var(--line);
}

.route-list div {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 94px;
  align-items: center;
  gap: 14px;
  min-height: 84px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
}

.route-list span {
  color: var(--execution-mint);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.route-list strong {
  overflow-wrap: anywhere;
}

.route-list em {
  color: var(--settlement-amber);
  font-style: normal;
  text-align: right;
}

.usecase-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--paper);
  color: #111510;
}

.usecase-band article {
  min-height: 178px;
  padding: 30px 56px;
  border-right: 1px solid rgba(12, 15, 12, 0.14);
}

.usecase-band article:last-child {
  border-right: 0;
}

.usecase-band h3 {
  margin-bottom: 10px;
  font-size: 1.38rem;
}

.usecase-band p {
  margin-bottom: 0;
  color: #4d544c;
  line-height: 1.48;
}

.agent-flow {
  background:
    linear-gradient(90deg, rgba(12, 15, 12, 0.97), rgba(12, 15, 12, 0.82)),
    repeating-linear-gradient(0deg, rgba(246, 241, 230, 0.035) 0 1px, transparent 1px 88px),
    var(--relay-black);
}

.flow-hero {
  align-items: end;
}

.flow-hero .hero-copy {
  align-self: center;
}

.flow-hero .hero-copy h2 {
  font-size: 5rem;
}

.flow-diagram {
  display: grid;
  align-self: center;
  gap: 14px;
  width: min(100%, 520px);
  justify-self: end;
}

.flow-diagram div {
  position: relative;
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  min-height: 74px;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.flow-diagram div::before {
  content: "";
  position: absolute;
  left: 80px;
  top: 50%;
  width: 34px;
  height: 1px;
  background: var(--execution-mint);
}

.flow-diagram span {
  display: grid;
  width: 68px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--agent-cyan);
  font: 800 0.78rem / 1 var(--mono);
}

.flow-diagram strong {
  font-size: 1.34rem;
}

.flow-api {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: var(--line);
}

.flow-api pre {
  margin: 0;
  min-height: 260px;
  padding: 32px 56px;
  background: #111510;
  color: #d8f8ec;
  font: 700 0.95rem / 1.7 var(--mono);
  overflow-x: auto;
}

.docs-native {
  background: var(--relay-black);
}

.docs-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: calc(100vh - 74px);
}

.docs-sidebar {
  position: sticky;
  top: 64px;
  display: grid;
  align-content: start;
  gap: 4px;
  height: calc(100vh - 64px);
  padding: 132px 28px 28px 56px;
  border-right: 1px solid var(--line);
  background: #101510;
}

.docs-sidebar a {
  min-height: 38px;
  padding: 11px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.docs-sidebar a:hover,
.docs-sidebar a:focus-visible {
  color: var(--receipt-cream);
  background: rgba(246, 241, 230, 0.07);
}

.docs-main {
  min-width: 0;
}

.docs-hero {
  min-height: 560px;
  padding-top: 120px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(12, 15, 12, 0.96), rgba(12, 15, 12, 0.78)),
    repeating-linear-gradient(90deg, rgba(32, 201, 151, 0.045) 0 1px, transparent 1px 78px);
}

.docs-hero .hero-copy h2 {
  font-size: 4.8rem;
}

.endpoint-docs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: var(--line);
}

.endpoint-docs article {
  min-height: 250px;
  padding: 30px;
  background: var(--panel-solid);
}

.endpoint-docs span {
  display: inline-flex;
  margin-bottom: 42px;
  color: var(--execution-mint);
  font: 900 0.76rem / 1 var(--mono);
  text-transform: uppercase;
}

.endpoint-docs h3 {
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 1.2rem;
  overflow-wrap: anywhere;
}

.endpoint-docs p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.52;
}

@media (max-width: 1120px) {
  .intro,
  .hero-left,
  .ledger-hero,
  .bazaar-hero,
  .flow-hero,
  .docs-layout {
    grid-template-columns: 1fr;
  }

  .intro h1,
  .hero-copy h2,
  .bazaar-hero .hero-copy h2,
  .flow-hero .hero-copy h2,
  .docs-hero .hero-copy h2 {
    font-size: 4rem;
  }

  .receipt-panel,
  .ledger-board,
  .route-list,
  .flow-diagram {
    justify-self: stretch;
    width: 100%;
  }

  .docs-sidebar {
    position: static;
    height: auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 18px 56px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 820px) {
  .chooser {
    align-items: flex-start;
    gap: 12px;
    padding: 12px 18px;
  }

  .chooser-brand span {
    display: none;
  }

  .intro,
  .landing-header,
  .hero,
  .feature-strip article,
  .ledger-proof article,
  .usecase-band article,
  .flow-api pre,
  .docs-hero,
  .docs-sidebar {
    padding-right: 22px;
    padding-left: 22px;
  }

  .landing-header nav {
    display: none;
  }

  .variant-kicker {
    left: 22px;
  }

  .intro h1,
  .hero-copy h2,
  .bazaar-hero .hero-copy h2,
  .flow-hero .hero-copy h2,
  .docs-hero .hero-copy h2 {
    font-size: 3.15rem;
    line-height: 1;
  }

  .hero-copy p:not(.eyebrow) {
    font-size: 1.08rem;
  }

  .feature-strip,
  .ledger-proof,
  .usecase-band,
  .flow-api,
  .endpoint-docs {
    grid-template-columns: 1fr;
  }

  .feature-strip article,
  .ledger-proof article,
  .usecase-band article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .receipt-grid div,
  .ledger-row,
  .route-list div {
    grid-template-columns: 1fr;
    align-content: center;
  }

  .ledger-row {
    gap: 6px;
    min-height: 112px;
    padding: 14px 18px;
  }

  .route-list div {
    min-height: 122px;
    gap: 6px;
    padding: 16px 0;
  }

  .route-list em {
    text-align: left;
  }

  .docs-sidebar {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .chooser nav a {
    width: 30px;
    height: 30px;
  }

  .intro {
    padding-top: 50px;
  }

  .intro h1,
  .hero-copy h2,
  .bazaar-hero .hero-copy h2,
  .flow-hero .hero-copy h2,
  .docs-hero .hero-copy h2 {
    font-size: 2.56rem;
  }

  .hero {
    padding-top: 96px;
  }

  .panel-topline {
    align-items: start;
    flex-direction: column;
  }

  .panel-topline strong {
    text-align: left;
  }

  .actions {
    display: grid;
  }

  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
