:root {
  color-scheme: dark;
  --bg: #070b10;
  --surface: #090e14;
  --surface-strong: #0b1118;
  --line: #2b333a;
  --line-soft: #1c242b;
  --text: #e6e8ea;
  --muted: #8f949a;
  --mono-muted: #777d84;
  --green: #35d398;
  --green-bright: #49e3a7;
  --cyan: #49c9e8;
  --coral: #ff786f;
  --header-height: 70px;
  --page-gutter: 38px;
  --page-max: 1584px;
  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

main [id] {
  scroll-margin-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

svg {
  display: block;
  width: 1em;
  height: 1em;
  stroke-width: 1.55;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  background: var(--text);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(7, 11, 16, 0.96);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(100%, var(--page-max));
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--page-gutter);
}

.brand {
  justify-self: start;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 44px;
}

.primary-nav > a {
  position: relative;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  text-decoration: none;
  text-transform: uppercase;
}

.primary-nav > a::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 1px;
  background: var(--green);
  content: "";
  opacity: 0;
  transform: scaleX(0);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.primary-nav > a:hover,
.primary-nav > a:focus-visible {
  color: var(--text);
}

.primary-nav > a:hover::after,
.primary-nav > a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.primary-nav > a[aria-current="page"] {
  color: var(--text);
}

.primary-nav > a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  justify-self: end;
  gap: 18px;
}

.button {
  display: inline-flex;
  min-width: 156px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.button-secondary {
  color: #b8bcc0;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: #6b7279;
  color: var(--text);
  background: #0c1218;
}

.button-primary {
  border-color: #168b66;
  color: var(--green);
}

.button-primary:hover,
.button-primary:focus-visible {
  border-color: var(--green);
  color: #07100d;
  background: var(--green);
}

.menu-toggle,
.mobile-actions {
  display: none;
}

.hero {
  border-bottom: 1px solid var(--line-soft);
}

.hero-main {
  display: grid;
  grid-template-columns: minmax(520px, 42%) minmax(0, 58%);
  width: min(100%, var(--page-max));
  min-height: 498px;
  margin: 0 auto;
  padding: 110px var(--page-gutter) 35px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-copy h1 {
  max-width: 590px;
  margin: 0;
  color: var(--text);
  font-size: 64px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy .hero-lede {
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  gap: 22px;
  margin-top: 34px;
}

.hero-actions .button {
  min-width: 196px;
  min-height: 52px;
}

.pipeline {
  min-width: 0;
  margin: 0;
  padding: 30px 0 0 18px;
}

.pipeline-grid {
  display: grid;
  grid-template-columns:
    minmax(118px, 0.92fr)
    minmax(128px, 1fr)
    minmax(116px, 0.9fr)
    minmax(175px, 1.35fr)
    minmax(130px, 1fr);
  gap: 24px;
  align-items: stretch;
}

.flow-card {
  position: relative;
  min-width: 0;
  height: 205px;
  padding: 18px 16px;
  border: 1px solid #394149;
  background: rgba(8, 13, 19, 0.72);
}

.flow-card:not(:last-child)::after {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -19px;
  color: var(--green);
  content: "→";
  font-family: var(--font-mono);
  font-size: 21px;
  line-height: 1;
  transform: translateY(-50%);
}

.flow-title {
  margin: 0;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.flow-title-green {
  color: var(--green);
}

.code-window {
  position: relative;
  width: min(96px, 82%);
  height: 112px;
  margin: 30px auto 0;
  border: 1px solid #60676d;
  border-radius: 4px;
}

.window-dots {
  display: flex;
  gap: 5px;
  height: 25px;
  align-items: center;
  padding: 0 10px;
  border-bottom: 1px solid #4a5259;
}

.window-dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green);
}

.code-window > svg {
  width: 44px;
  height: 44px;
  margin: 16px auto 5px;
  color: var(--green);
  stroke-width: 1.25;
}

.code-lines {
  display: grid;
  gap: 5px;
  width: 58%;
  margin: 0 auto;
}

.code-lines span {
  height: 1px;
  background: #71777c;
}

.code-lines span:last-child {
  width: 64%;
}

.user-grid {
  display: grid;
  grid-template-columns: repeat(2, 48px);
  gap: 8px;
  justify-content: center;
  margin-top: 30px;
}

.user-grid span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid #4d555c;
}

.user-grid svg {
  width: 25px;
  height: 25px;
  color: #8a9095;
}

.user-grid .user-active {
  border-color: var(--green);
}

.user-grid .user-active svg {
  color: var(--green);
}

.finality-list {
  display: grid;
  gap: 16px;
  width: 86%;
  margin: 31px auto 0;
}

.finality-list div {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 11px;
  align-items: center;
}

.finality-list svg {
  width: 29px;
  height: 29px;
  color: var(--green);
}

.finality-list span {
  position: relative;
  width: 100%;
  height: 2px;
  background: #93989d;
}

.finality-list span::after {
  position: absolute;
  top: 0;
  right: 13%;
  width: 8px;
  height: 2px;
  background: var(--surface);
  content: "";
}

.flow-card-ledger {
  padding-right: 14px;
  padding-left: 14px;
}

.ledger-head,
.ledger-row {
  display: grid;
  grid-template-columns: 48px minmax(45px, 1fr) minmax(42px, 0.85fr);
  gap: 10px;
  align-items: center;
}

.ledger-head {
  margin-top: 30px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  text-transform: uppercase;
}

.ledger-head span:nth-child(2) {
  color: var(--green);
  text-align: center;
}

.ledger-head span:nth-child(3) {
  color: var(--coral);
  text-align: center;
}

.ledger-row {
  margin-top: 17px;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 12px;
}

.meter {
  display: block;
  height: 22px;
  border: 1px solid #174d3c;
}

.meter > span {
  display: block;
  width: 86%;
  height: 100%;
  background: var(--green);
}

.meter-available-short > span {
  width: 66%;
}

.meter-reserved {
  border-color: #6b2f31;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 6px,
    rgba(255, 120, 111, 0.22) 6px,
    rgba(255, 120, 111, 0.22) 7px
  );
}

.meter-reserved > span {
  width: 18%;
  background: var(--coral);
}

.meter-reserved-short > span {
  width: 10%;
}

.webhook-mark {
  display: grid;
  grid-template-columns: 22px 1fr 22px;
  align-items: center;
  width: 100%;
  margin: 29px auto 0;
  color: #8b9196;
  font-family: var(--font-mono);
  font-size: 45px;
  text-align: center;
}

.webhook-mark svg {
  width: 60px;
  height: 60px;
  justify-self: center;
  color: var(--green);
  stroke-width: 1.35;
}

.signature-mark {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: end;
  width: 76%;
  margin: 13px auto 0;
}

.signature-mark svg {
  width: 20px;
  height: 20px;
  color: var(--green);
}

.signature-mark span {
  position: relative;
  height: 20px;
  border-bottom: 2px solid var(--green);
}

.signature-mark span::after {
  position: absolute;
  right: 1px;
  bottom: -2px;
  width: 47%;
  height: 12px;
  border-top: 1px solid var(--green);
  border-radius: 50%;
  content: "";
  transform: rotate(-8deg);
}

.flow-loop {
  position: relative;
  height: 63px;
  margin: 0 4%;
  overflow: hidden;
}

.loop-line {
  position: absolute;
  top: 32px;
  right: 2.5%;
  left: 5%;
  border-top: 1px dashed var(--green);
}

.loop-line::before,
.loop-line::after {
  position: absolute;
  bottom: 0;
  width: 32px;
  height: 32px;
  border: 1px dashed var(--green);
  border-top: 0;
  content: "";
}

.loop-line::before {
  left: 0;
  transform: translate(-100%, 0);
}

.loop-line::after {
  right: 0;
  transform: translate(100%, 0);
}

.loop-node {
  position: absolute;
  top: 3px;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 20px;
}

.loop-node-one {
  left: 2%;
}

.loop-node-two {
  left: 26%;
}

.loop-node-three {
  left: 50.5%;
}

.loop-node-four {
  left: 76%;
}

.signal-dot {
  position: absolute;
  top: 29px;
  left: 7%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-bright);
  animation: signal-travel 5.5s linear infinite;
}

.example-section {
  padding: 0 var(--page-gutter) 65px;
  border-bottom: 1px solid var(--line-soft);
}

.status-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr 1fr;
  gap: 20px;
  width: min(100%, calc(var(--page-max) - (var(--page-gutter) * 2)));
  margin: 0 auto;
}

.status-panel {
  min-width: 0;
  height: 160px;
  border: 1px solid #394149;
  background: rgba(8, 13, 19, 0.52);
}

.status-panel h2,
.status-panel h3,
.status-panel-head {
  height: 54px;
  margin: 0;
  padding: 0 29px;
  border-bottom: 1px solid var(--line);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  line-height: 54px;
  text-transform: uppercase;
}

.event-row {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 10px;
  align-items: center;
  height: 35px;
  padding: 0 29px;
  border-bottom: 1px solid var(--line-soft);
}

.event-row:last-child {
  border-bottom: 0;
}

.status-dot {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.event-row code,
.event-row time {
  font-family: var(--font-mono);
  font-size: 12px;
}

.event-row code {
  overflow: hidden;
  color: #afb4b8;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-row time {
  color: var(--green);
}

.status-panel-head {
  display: grid;
  grid-template-columns: 1fr 0.9fr 0.9fr;
  gap: 12px;
  align-items: center;
  line-height: 1;
}

.status-panel-head h2,
.status-panel-head h3 {
  height: auto;
  padding: 0;
  border: 0;
  line-height: 1;
}

.status-panel-head span {
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.status-panel-head span:nth-child(2) {
  color: var(--green);
}

.status-panel-head span:nth-child(3) {
  color: var(--coral);
}

.balance-line {
  display: grid;
  grid-template-columns: 1fr 0.9fr 0.9fr;
  gap: 12px;
  align-items: center;
  height: 52px;
  padding: 0 29px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 12px;
}

.balance-line:last-child {
  border-bottom: 0;
}

.balance-line strong {
  color: var(--green);
  font-weight: 500;
}

.balance-line span {
  color: #9da2a7;
  text-align: center;
}

.recent-panel h2,
.recent-panel h3 {
  padding-left: 31px;
}

.transfer {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 22px;
  align-items: center;
  height: 105px;
  padding: 0 29px;
}

.transfer-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid #485057;
}

.transfer-icon svg {
  width: 25px;
  height: 25px;
  color: #8a9095;
}

.transfer-copy,
.transfer-state {
  display: grid;
  gap: 11px;
}

.transfer-copy strong,
.transfer-state strong {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
}

.transfer-copy strong {
  color: var(--cyan);
}

.transfer-copy code {
  overflow: hidden;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.transfer-state {
  text-align: right;
}

.transfer-state strong {
  color: var(--green);
}

.transfer-state time,
.transfer-state span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.feature-section {
  padding: 50px var(--page-gutter) 88px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: min(100%, calc(var(--page-max) - (var(--page-gutter) * 2)));
  margin: 0 auto;
}

.feature-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 24px;
  min-height: 210px;
  align-items: start;
  padding: 32px 28px;
  border: 1px solid #394149;
  background: rgba(8, 13, 19, 0.46);
}

.feature-card > svg {
  width: 66px;
  height: 66px;
  color: var(--green);
  stroke-width: 1.2;
}

.feature-card h2 {
  margin: 2px 0 13px;
  color: var(--text);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.2;
}

.feature-rule {
  display: block;
  width: 100%;
  height: 1px;
  margin-bottom: 17px;
  border-top: 1px dashed #747a80;
}

.feature-card p {
  max-width: 290px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 28px;
  align-items: center;
  min-height: 96px;
  padding: 0 var(--page-gutter);
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.site-footer span {
  color: var(--text);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--green);
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

@keyframes signal-travel {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(680px);
  }
}

@media (max-width: 1280px) {
  :root {
    --page-gutter: 28px;
  }

  .header-inner {
    grid-template-columns: 0.85fr auto 0.85fr;
  }

  .primary-nav {
    gap: 28px;
  }

  .button {
    min-width: 138px;
  }

  .hero-main {
    grid-template-columns: minmax(430px, 42%) minmax(0, 58%);
  }

  .hero-copy h1 {
    font-size: 54px;
  }

  .hero-copy .hero-lede {
    font-size: 17px;
  }

  .pipeline-grid {
    grid-template-columns:
      minmax(90px, 0.92fr)
      minmax(96px, 1fr)
      minmax(90px, 0.9fr)
      minmax(136px, 1.35fr)
      minmax(100px, 1fr);
    gap: 18px;
  }

  .flow-card:not(:last-child)::after {
    right: -15px;
  }

  .flow-title {
    font-size: 11px;
  }

  .ledger-head,
  .ledger-row {
    grid-template-columns: 38px 1fr 0.8fr;
    gap: 7px;
  }
}

@media (max-width: 1080px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .primary-nav,
  .header-actions {
    display: none;
  }

  .menu-toggle {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    justify-self: end;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
  }

  .menu-toggle svg {
    width: 21px;
    height: 21px;
  }

  .primary-nav.is-open {
    position: absolute;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 12px var(--page-gutter) 22px;
    border-bottom: 1px solid var(--line);
    background: #070b10;
  }

  .primary-nav.is-open > a {
    padding: 15px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 13px;
  }

  .mobile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding-top: 18px;
  }

  .hero-main {
    grid-template-columns: 1fr;
    padding-top: 72px;
  }

  .hero-copy {
    max-width: 670px;
  }

  .pipeline {
    padding: 74px 0 0;
  }

  .flow-loop {
    margin-right: 8%;
    margin-left: 8%;
  }

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

  .recent-panel {
    grid-column: 1 / -1;
  }

  .feature-grid {
    gap: 18px;
  }

  .feature-card {
    grid-template-columns: 56px 1fr;
    gap: 18px;
    padding: 26px 22px;
  }

  .feature-card > svg {
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 64px;
    --page-gutter: 18px;
  }

  .site-header {
    height: var(--header-height);
  }

  .brand {
    font-size: 14px;
  }

  .mobile-actions {
    grid-template-columns: 1fr;
  }

  .hero-main {
    padding-top: 58px;
    padding-bottom: 48px;
  }

  .hero-copy h1 {
    font-size: 42px;
    line-height: 1.04;
  }

  .hero-copy .hero-lede {
    font-size: 16px;
    line-height: 1.55;
  }

  .hero-copy .hero-lede br {
    display: none;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-actions .button {
    width: 100%;
    min-width: 0;
  }

  .pipeline {
    padding-top: 58px;
  }

  .pipeline-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .flow-card {
    width: 100%;
    height: 205px;
  }

  .flow-card:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -25px;
    left: 50%;
    content: "↓";
    transform: translateX(-50%);
  }

  .flow-title {
    font-size: 13px;
  }

  .flow-loop {
    display: none;
  }

  .example-section {
    padding-top: 18px;
    padding-bottom: 44px;
  }

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

  .recent-panel {
    grid-column: auto;
  }

  .status-panel {
    height: auto;
    min-height: 160px;
  }

  .status-panel h2,
  .status-panel h3,
  .status-panel-head {
    padding-right: 18px;
    padding-left: 18px;
  }

  .event-row,
  .balance-line {
    padding-right: 18px;
    padding-left: 18px;
  }

  .event-row {
    grid-template-columns: 14px minmax(0, 1fr) auto;
  }

  .event-row code,
  .event-row time,
  .balance-line {
    font-size: 10px;
  }

  .transfer {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    min-height: 135px;
    padding: 18px;
  }

  .transfer-icon {
    width: 44px;
    height: 44px;
  }

  .transfer-state {
    grid-column: 2;
    grid-row: 2;
    text-align: left;
  }

  .feature-section {
    padding-top: 36px;
    padding-bottom: 54px;
  }

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

  .feature-card {
    min-height: 170px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 28px;
    padding-bottom: 28px;
  }
}

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

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

/* Platform page */

.platform-page {
  background:
    linear-gradient(rgba(43, 51, 58, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 51, 58, 0.08) 1px, transparent 1px),
    var(--bg);
  background-size: 80px 80px;
}

.platform-shell {
  width: min(100%, var(--page-max));
  margin: 0 auto;
  padding-right: var(--page-gutter);
  padding-left: var(--page-gutter);
}

.platform-hero {
  border-bottom: 1px solid var(--line-soft);
  background:
    linear-gradient(90deg, rgba(7, 11, 16, 0.96) 0%, rgba(7, 11, 16, 0.86) 48%, rgba(7, 11, 16, 0.72) 100%);
}

.platform-hero-grid {
  display: grid;
  grid-template-columns: minmax(390px, 0.82fr) minmax(560px, 1.18fr);
  gap: clamp(56px, 7vw, 120px);
  align-items: center;
  min-height: calc(100vh - var(--header-height));
  padding-top: 86px;
  padding-bottom: 86px;
}

.section-kicker {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 28px;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.section-kicker > span {
  display: block;
  width: 30px;
  border-top: 1px solid var(--green);
}

.platform-hero-copy h1 {
  max-width: 690px;
  margin: 0;
  color: var(--text);
  font-size: clamp(56px, 4.8vw, 78px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.platform-lede {
  max-width: 610px;
  margin: 32px 0 0;
  color: #a5aaaf;
  font-size: 18px;
  line-height: 1.65;
}

.platform-hero .hero-actions {
  margin-top: 38px;
}

.platform-hero .hero-actions .button {
  min-width: 218px;
}

.platform-proof-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin: 42px 0 0;
  padding: 26px 0 0;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  list-style: none;
  text-transform: uppercase;
}

.platform-proof-list li {
  display: flex;
  gap: 8px;
  align-items: center;
}

.platform-proof-list svg {
  width: 14px;
  height: 14px;
  color: var(--green);
}

.processing-console {
  min-width: 0;
  border: 1px solid #394149;
  background: rgba(8, 13, 19, 0.93);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.console-topbar,
.console-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.console-reference-state {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--green);
}

.console-request {
  display: flex;
  align-items: end;
  justify-content: space-between;
  min-height: 92px;
  padding: 22px;
  border-bottom: 1px solid var(--line-soft);
}

.console-request > div {
  display: grid;
  gap: 10px;
}

.console-label,
.console-metadata dt {
  color: var(--mono-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.console-request code {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 16px;
}

.console-request strong {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
}

.console-metadata {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1.2fr;
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.console-metadata > div {
  min-width: 0;
  padding: 18px 22px;
  border-right: 1px solid var(--line-soft);
}

.console-metadata > div:last-child {
  border-right: 0;
}

.console-metadata dd {
  overflow: hidden;
  margin: 8px 0 0;
  color: #bdc1c5;
  font-family: var(--font-mono);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.console-timeline {
  margin: 0;
  padding: 12px 22px;
  list-style: none;
}

.console-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 74px;
}

.console-timeline li:not(:last-child)::after {
  position: absolute;
  top: 49px;
  bottom: -25px;
  left: 18px;
  border-left: 1px dashed #375548;
  content: "";
}

.timeline-marker {
  position: relative;
  z-index: 1;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #28664f;
  background: #09130f;
}

.timeline-marker svg {
  width: 18px;
  height: 18px;
  color: var(--green);
}

.console-timeline li > div {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.console-timeline strong {
  color: #d6d9db;
  font-size: 14px;
  font-weight: 500;
}

.console-timeline code,
.console-timeline small {
  font-family: var(--font-mono);
}

.console-timeline code {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.console-timeline small {
  color: var(--green);
  font-size: 9px;
  letter-spacing: 0.05em;
}

.console-footer {
  min-height: 56px;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.console-footer > span {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--green);
}

.console-footer svg {
  width: 15px;
  height: 15px;
}

.console-footer code {
  color: var(--mono-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: none;
}

.platform-section {
  padding-top: 120px;
  padding-bottom: 120px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(7, 11, 16, 0.94);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 80px;
  align-items: end;
  margin-bottom: 58px;
}

.section-heading h2,
.ledger-copy h2,
.platform-cta h2 {
  max-width: 850px;
  margin: 0;
  color: var(--text);
  font-size: clamp(42px, 4vw, 62px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.section-heading > p,
.ledger-copy > p {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.lifecycle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.lifecycle-card {
  min-width: 0;
  border: 1px solid #394149;
  background:
    linear-gradient(180deg, rgba(13, 24, 21, 0.38), rgba(8, 13, 19, 0.7) 34%),
    var(--surface);
}

.lifecycle-card-withdrawal {
  background:
    linear-gradient(180deg, rgba(13, 22, 28, 0.52), rgba(8, 13, 19, 0.7) 34%),
    var(--surface);
}

.lifecycle-card-head {
  display: flex;
  min-height: 118px;
  align-items: center;
  justify-content: space-between;
  padding: 26px 30px;
  border-bottom: 1px solid var(--line);
}

.card-index {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.lifecycle-card-head h3 {
  margin: 12px 0 0;
  color: var(--text);
  font-size: 28px;
  font-weight: 500;
}

.lifecycle-card-head > svg {
  width: 46px;
  height: 46px;
  color: var(--green);
  stroke-width: 1.15;
}

.lifecycle-card-withdrawal .lifecycle-card-head > svg {
  color: var(--cyan);
}

.lifecycle-summary {
  min-height: 104px;
  margin: 0;
  padding: 24px 30px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.state-sequence {
  margin: 0;
  padding: 0;
  list-style: none;
}

.state-sequence li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 92px;
  padding: 18px 30px;
  border-bottom: 1px solid var(--line-soft);
}

.state-sequence li:last-child {
  border-bottom: 0;
}

.state-sequence li > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #305547;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 10px;
}

.lifecycle-card-withdrawal .state-sequence li > span {
  border-color: #295461;
  color: var(--cyan);
}

.state-sequence li > div {
  display: grid;
  gap: 7px;
}

.state-sequence strong {
  color: #d4d7d9;
  font-size: 14px;
  font-weight: 500;
}

.state-sequence small {
  color: var(--muted);
  font-size: 12px;
}

.state-sequence code {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 10px;
}

.lifecycle-card-withdrawal .state-sequence code {
  color: var(--cyan);
}

.ledger-section {
  background:
    linear-gradient(90deg, rgba(7, 11, 16, 0.98), rgba(9, 18, 16, 0.94)),
    var(--bg);
}

.ledger-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.72fr) minmax(600px, 1.28fr);
  gap: clamp(60px, 8vw, 130px);
  align-items: start;
}

.ledger-copy {
  position: sticky;
  top: calc(var(--header-height) + 56px);
}

.ledger-copy > p {
  margin-top: 30px;
}

.ledger-principles {
  display: grid;
  margin: 45px 0 0;
  border-top: 1px solid var(--line);
}

.ledger-principles > div {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 22px;
  padding: 21px 0;
  border-bottom: 1px solid var(--line-soft);
}

.ledger-principles dt {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}

.ledger-principles dd {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.ledger-board {
  min-width: 0;
  border: 1px solid #394149;
  background: rgba(8, 13, 19, 0.92);
}

.ledger-board-head {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
  border-bottom: 1px solid var(--line);
}

.ledger-board-head > div {
  display: grid;
  gap: 8px;
}

.ledger-board-head > div span {
  color: var(--mono-muted);
  font-family: var(--font-mono);
  font-size: 9px;
}

.ledger-board-head > div strong {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
}

.reference-badge {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 9px;
}

.reference-badge svg {
  width: 15px;
  height: 15px;
}

.balance-table-wrap {
  overflow-x: auto;
}

.platform-balance-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 11px;
  text-align: right;
}

.platform-balance-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.platform-balance-table th,
.platform-balance-table td {
  height: 66px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line-soft);
  font-weight: 400;
  white-space: nowrap;
}

.platform-balance-table thead th {
  height: 48px;
  color: var(--mono-muted);
  font-size: 9px;
  text-transform: uppercase;
}

.platform-balance-table th:first-child,
.platform-balance-table td:first-child {
  text-align: left;
}

.platform-balance-table tbody th {
  color: var(--green);
}

.platform-balance-table tbody td {
  color: #b5b9bd;
}

.platform-balance-table .reserved-value {
  color: var(--coral);
}

.journal-panel {
  margin: 26px;
  border: 1px solid var(--line);
}

.journal-panel-head,
.journal-row,
.journal-total {
  display: grid;
  align-items: center;
  font-family: var(--font-mono);
}

.journal-panel-head {
  grid-template-columns: 1fr auto;
  min-height: 46px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--mono-muted);
  font-size: 9px;
}

.journal-panel-head span:last-child {
  color: var(--cyan);
}

.journal-row {
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 16px;
  min-height: 58px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 11px;
}

.journal-line {
  color: var(--mono-muted);
}

.journal-row code {
  color: #b8bdc1;
  font-family: var(--font-mono);
}

.journal-row strong {
  font-size: 11px;
  font-weight: 500;
}

.journal-negative {
  color: var(--coral);
}

.journal-positive {
  color: var(--green);
}

.journal-total {
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  min-height: 58px;
  padding: 0 18px;
  color: var(--mono-muted);
  font-size: 9px;
}

.journal-total strong {
  color: var(--text);
  font-size: 11px;
  font-weight: 500;
}

.journal-total span:last-child {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-self: end;
  color: var(--green);
}

.journal-total svg {
  width: 14px;
  height: 14px;
}

.integration-section {
  background: rgba(7, 11, 16, 0.97);
}

.integration-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px minmax(0, 1fr);
  align-items: center;
}

.code-panel {
  min-width: 0;
  border: 1px solid #394149;
  background: #080d13;
}

.code-panel header,
.code-panel footer {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.code-panel header code,
.code-panel footer code {
  color: var(--mono-muted);
  font-family: var(--font-mono);
  font-size: 9px;
}

.code-panel pre {
  min-height: 330px;
  margin: 0;
  padding: 28px;
  overflow: auto;
  color: #aeb3b7;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.85;
  tab-size: 2;
}

.code-panel pre code {
  font-family: inherit;
}

.code-method,
.code-string {
  color: var(--green);
}

.code-key {
  color: var(--cyan);
}

.code-panel footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.http-status,
.signature-state {
  color: var(--green);
}

.signature-state {
  display: flex;
  gap: 8px;
  align-items: center;
}

.signature-state svg {
  width: 14px;
  height: 14px;
}

.integration-connector {
  position: relative;
  display: grid;
  height: 84px;
  place-items: center;
}

.integration-connector > span {
  position: absolute;
  right: 0;
  left: 0;
  border-top: 1px dashed var(--green);
}

.integration-connector svg {
  position: relative;
  width: 28px;
  height: 28px;
  padding: 6px;
  background: var(--bg);
  color: var(--green);
}

.integration-connector small {
  position: absolute;
  bottom: 0;
  color: var(--mono-muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.section-heading-compact {
  grid-template-columns: 1fr;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.trust-card {
  min-height: 300px;
  padding: 28px;
  border: 1px solid #394149;
  background: rgba(8, 13, 19, 0.66);
}

.trust-icon {
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  margin-bottom: 54px;
  border: 1px solid #285e4b;
}

.trust-icon svg {
  width: 29px;
  height: 29px;
  color: var(--green);
  stroke-width: 1.2;
}

.trust-card h3 {
  margin: 13px 0 18px;
  color: var(--text);
  font-size: 20px;
  font-weight: 500;
}

.trust-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.platform-cta {
  padding-top: 105px;
  padding-bottom: 105px;
  border-bottom: 1px solid var(--line-soft);
  background:
    linear-gradient(90deg, rgba(7, 11, 16, 0.98) 0 58%, rgba(10, 28, 22, 0.94) 100%),
    var(--bg);
}

.platform-cta-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 60px;
  align-items: end;
}

.platform-cta h2 {
  max-width: 920px;
}

.platform-cta-actions {
  display: flex;
  gap: 16px;
}

.platform-cta-actions .button {
  min-width: 174px;
}

@media (max-width: 1200px) {
  .platform-hero-grid,
  .ledger-layout {
    grid-template-columns: 1fr;
  }

  .platform-hero-grid {
    min-height: auto;
  }

  .platform-hero-copy {
    max-width: 860px;
  }

  .processing-console {
    width: min(100%, 850px);
  }

  .ledger-copy {
    position: static;
    max-width: 850px;
  }

  .ledger-board {
    width: min(100%, 900px);
  }

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

@media (max-width: 900px) {
  .platform-section {
    padding-top: 88px;
    padding-bottom: 88px;
  }

  .section-heading,
  .lifecycle-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 28px;
  }

  .integration-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .integration-connector {
    height: 94px;
  }

  .integration-connector > span {
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    border-top: 0;
    border-left: 1px dashed var(--green);
  }

  .integration-connector svg {
    transform: rotate(90deg);
  }

  .integration-connector small {
    right: calc(50% + 18px);
    bottom: auto;
    white-space: nowrap;
  }

  .platform-cta-layout {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 760px) {
  .platform-hero-grid {
    gap: 56px;
    padding-top: 62px;
    padding-bottom: 62px;
  }

  .platform-hero-copy h1 {
    font-size: 44px;
    line-height: 1.02;
  }

  .platform-lede {
    font-size: 16px;
  }

  .platform-hero .hero-actions {
    grid-template-columns: 1fr;
  }

  .platform-hero .hero-actions .button {
    width: 100%;
    min-width: 0;
  }

  .platform-proof-list {
    display: grid;
  }

  .console-topbar,
  .console-footer {
    gap: 16px;
    align-items: flex-start;
    padding-top: 15px;
    padding-bottom: 15px;
  }

  .console-request {
    align-items: flex-start;
  }

  .console-request,
  .console-topbar,
  .console-footer {
    flex-direction: column;
  }

  .console-metadata {
    grid-template-columns: 1fr;
  }

  .console-metadata > div {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .console-metadata > div:last-child {
    border-bottom: 0;
  }

  .console-timeline {
    padding-right: 16px;
    padding-left: 16px;
  }

  .console-timeline li {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 13px;
  }

  .console-timeline li > small {
    grid-column: 2;
    padding-bottom: 12px;
  }

  .timeline-marker {
    width: 34px;
    height: 34px;
  }

  .console-timeline li:not(:last-child)::after {
    left: 16px;
  }

  .platform-section {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .section-heading {
    margin-bottom: 38px;
  }

  .section-heading h2,
  .ledger-copy h2,
  .platform-cta h2 {
    font-size: 38px;
  }

  .section-heading > p,
  .ledger-copy > p {
    font-size: 15px;
  }

  .lifecycle-card-head {
    min-height: 100px;
    padding: 22px;
  }

  .lifecycle-card-head h3 {
    font-size: 23px;
  }

  .lifecycle-card-head > svg {
    width: 36px;
    height: 36px;
  }

  .lifecycle-summary {
    min-height: 0;
    padding: 22px;
  }

  .state-sequence li {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 14px;
    padding: 18px 22px;
  }

  .state-sequence li > code {
    grid-column: 2;
  }

  .ledger-principles > div {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .ledger-board-head {
    gap: 18px;
    align-items: flex-start;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .platform-balance-table {
    min-width: 600px;
  }

  .journal-panel {
    margin: 16px;
  }

  .journal-panel-head,
  .journal-total {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .journal-total span:last-child {
    justify-self: start;
  }

  .code-panel pre {
    min-height: 0;
    padding: 20px;
    font-size: 10px;
  }

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

  .trust-card {
    min-height: 240px;
  }

  .trust-icon {
    margin-bottom: 38px;
  }

  .platform-cta {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .platform-cta-actions {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
  }
}

/* Developers page */

.developer-hero {
  border-bottom: 1px solid var(--line-soft);
  background:
    linear-gradient(90deg, rgba(7, 11, 16, 0.98) 0%, rgba(7, 11, 16, 0.88) 48%, rgba(8, 20, 17, 0.76) 100%),
    var(--bg);
}

.developer-hero-grid {
  display: grid;
  grid-template-columns: minmax(390px, 0.82fr) minmax(560px, 1.18fr);
  gap: clamp(56px, 7vw, 120px);
  align-items: center;
  min-height: calc(100vh - var(--header-height));
  padding-top: 86px;
  padding-bottom: 86px;
}

.developer-hero-copy h1 {
  max-width: 680px;
  margin: 0;
  color: var(--text);
  font-size: clamp(58px, 5vw, 82px);
  font-weight: 500;
  line-height: 0.97;
  letter-spacing: -0.04em;
}

.developer-lede {
  max-width: 610px;
  margin: 32px 0 0;
  color: #a5aaaf;
  font-size: 18px;
  line-height: 1.65;
}

.developer-hero .hero-actions {
  margin-top: 38px;
}

.developer-hero .hero-actions .button {
  min-width: 210px;
}

.developer-format-list {
  display: flex;
  flex-wrap: wrap;
  gap: 13px 28px;
  margin: 42px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  list-style: none;
  text-transform: uppercase;
}

.developer-format-list li {
  display: flex;
  gap: 8px;
  align-items: center;
}

.developer-format-list span {
  color: var(--green);
}

.developer-terminal {
  min-width: 0;
  border: 1px solid #394149;
  background: rgba(8, 13, 19, 0.96);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.developer-terminal-bar {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 18px;
  min-height: 50px;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.developer-terminal-bar .window-dots {
  height: auto;
  padding: 0;
  border: 0;
}

.terminal-reference-state {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--green);
  white-space: nowrap;
}

.api-contract-note {
  margin: 0;
  padding: 13px 20px;
  border-bottom: 1px solid #504629;
  background: rgba(125, 101, 36, 0.1);
  color: #a7a28f;
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.55;
}

.api-contract-note strong {
  color: #d7ca97;
  font-weight: 500;
  text-transform: uppercase;
}

.developer-terminal-body {
  padding: 24px;
}

.terminal-command {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  padding-bottom: 24px;
}

.terminal-prompt {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.8;
}

.terminal-command pre,
.terminal-response pre {
  min-width: 0;
  margin: 0;
  overflow-x: auto;
  color: #afb4b8;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.8;
}

.terminal-command code,
.terminal-response code {
  font-family: inherit;
}

.terminal-response {
  border: 1px solid var(--line);
  background: #080c11;
}

.terminal-response-head {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--line-soft);
}

.terminal-response-head > span {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
}

.terminal-response-head svg {
  width: 14px;
  height: 14px;
}

.terminal-response-head > code {
  color: var(--mono-muted);
  font-family: var(--font-mono);
  font-size: 9px;
}

.terminal-response pre {
  padding: 18px;
}

.terminal-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  border-top: 1px solid var(--line);
}

.terminal-facts > div {
  min-width: 0;
  padding: 16px 20px;
  border-right: 1px solid var(--line-soft);
}

.terminal-facts > div:last-child {
  border-right: 0;
}

.terminal-facts dt {
  color: var(--mono-muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.terminal-facts dd {
  overflow: hidden;
  margin: 8px 0 0;
  color: #bdc1c5;
  font-family: var(--font-mono);
  font-size: 10px;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.quickstart-section {
  background: rgba(7, 11, 16, 0.96);
}

.quickstart-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: quickstart;
}

.quickstart-card {
  display: flex;
  min-width: 0;
  min-height: 334px;
  flex-direction: column;
  padding: 26px;
  border: 1px solid #394149;
  background:
    linear-gradient(180deg, rgba(11, 25, 20, 0.44), rgba(8, 13, 19, 0.68) 45%),
    var(--surface);
}

.quickstart-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 58px;
}

.quickstart-card-top > span {
  color: var(--mono-muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

.quickstart-card-top svg {
  width: 42px;
  height: 42px;
  color: var(--green);
  stroke-width: 1.15;
}

.quickstart-card h3 {
  min-height: 48px;
  margin: 13px 0 16px;
  color: var(--text);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
}

.quickstart-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.quickstart-card > code {
  display: block;
  width: 100%;
  margin-top: auto;
  padding-top: 20px;
  overflow: hidden;
  border-top: 1px dashed #566058;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.example-disclaimer {
  margin: 22px 0 0;
  color: var(--mono-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.6;
}

.request-section {
  background:
    linear-gradient(90deg, rgba(7, 11, 16, 0.98), rgba(8, 19, 16, 0.94)),
    var(--bg);
}

.request-layout {
  display: grid;
  grid-template-columns: minmax(350px, 0.72fr) minmax(600px, 1.28fr);
  gap: clamp(60px, 8vw, 130px);
  align-items: start;
}

.request-copy h2,
.error-copy h2 {
  max-width: 720px;
  margin: 0;
  color: var(--text);
  font-size: clamp(42px, 4vw, 62px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.request-copy > p,
.error-copy > p {
  max-width: 590px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.request-rules {
  display: grid;
  margin-top: 42px;
  border-top: 1px solid var(--line);
}

.request-rules > div {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-soft);
}

.request-rules svg {
  width: 29px;
  height: 29px;
  color: var(--green);
}

.request-rules h3 {
  margin: 0 0 8px;
  color: #d5d8da;
  font-size: 14px;
  font-weight: 500;
}

.request-rules p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.retry-console {
  min-width: 0;
  border: 1px solid #394149;
  background: rgba(8, 13, 19, 0.94);
}

.retry-console-head {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.retry-console-head code {
  color: var(--mono-muted);
  font-family: var(--font-mono);
  font-size: 9px;
}

.retry-trace {
  margin: 0;
  padding: 0;
  list-style: none;
}

.retry-trace li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 94px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line-soft);
}

.retry-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #315e4c;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 10px;
}

.retry-trace li > div {
  display: grid;
  min-width: 0;
  gap: 9px;
}

.retry-label {
  color: #d2d6d8;
  font-size: 13px;
}

.retry-trace code {
  overflow: hidden;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.retry-trace strong {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  text-align: right;
}

.retry-trace .retry-neutral {
  color: var(--coral);
}

.retry-result {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 22px;
  align-items: center;
  min-height: 82px;
  padding: 16px 22px;
  background: rgba(19, 46, 36, 0.2);
}

.retry-result > div {
  display: grid;
  gap: 8px;
}

.retry-result > div span {
  color: var(--mono-muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.05em;
}

.retry-result > div code {
  color: #c2c6c8;
  font-family: var(--font-mono);
  font-size: 11px;
}

.webhook-section {
  background: rgba(7, 11, 16, 0.97);
}

.webhook-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: 24px;
  align-items: stretch;
}

.developer-webhook-code {
  height: 100%;
}

.developer-webhook-code pre {
  min-height: 450px;
}

.verification-panel {
  min-width: 0;
  border: 1px solid #394149;
  background:
    linear-gradient(180deg, rgba(11, 25, 20, 0.38), rgba(8, 13, 19, 0.75) 40%),
    var(--surface);
}

.verification-panel-head {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.verification-panel-head > div {
  display: grid;
  gap: 9px;
}

.verification-panel-head span {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.verification-panel-head strong {
  color: var(--text);
  font-size: 17px;
  font-weight: 500;
}

.verification-panel-head > svg {
  width: 38px;
  height: 38px;
  color: var(--green);
  stroke-width: 1.2;
}

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

.verification-list li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 84px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line-soft);
}

.verification-list li > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #315e4c;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 9px;
}

.verification-list li > div {
  display: grid;
  gap: 7px;
}

.verification-list strong {
  color: #d4d7d9;
  font-size: 13px;
  font-weight: 500;
}

.verification-list small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.verification-result {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.verification-result span {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 9px;
}

.verification-result svg {
  width: 15px;
  height: 15px;
}

.verification-result code {
  color: var(--mono-muted);
  font-family: var(--font-mono);
  font-size: 9px;
}

.error-section {
  background:
    linear-gradient(90deg, rgba(7, 11, 16, 0.98), rgba(12, 17, 20, 0.96)),
    var(--bg);
}

.error-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.72fr) minmax(580px, 1.28fr);
  gap: clamp(60px, 8vw, 130px);
  align-items: start;
}

.error-table-wrap {
  min-width: 0;
  overflow-x: auto;
  border: 1px solid #394149;
}

.error-table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  background: rgba(8, 13, 19, 0.9);
  text-align: left;
}

.error-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.error-table th,
.error-table td {
  min-height: 72px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line-soft);
}

.error-table tr:last-child th,
.error-table tr:last-child td {
  border-bottom: 0;
}

.error-table thead th {
  color: var(--mono-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.error-table tbody th {
  color: #d4d7d9;
  font-size: 13px;
  font-weight: 500;
}

.error-table tbody td {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.retry-no,
.retry-yes {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
}

.retry-no {
  color: var(--coral);
}

.retry-yes {
  color: var(--green);
}

.developer-cta {
  background:
    linear-gradient(90deg, rgba(7, 11, 16, 0.98) 0 54%, rgba(9, 33, 25, 0.95) 100%),
    var(--bg);
}

@media (max-width: 1200px) {
  .developer-hero-grid,
  .request-layout,
  .error-layout {
    grid-template-columns: 1fr;
  }

  .developer-hero-grid {
    min-height: auto;
  }

  .developer-hero-copy,
  .request-copy,
  .error-copy {
    max-width: 850px;
  }

  .developer-terminal,
  .retry-console,
  .error-table-wrap {
    width: min(100%, 900px);
  }

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

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

  .developer-webhook-code pre {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .developer-hero-grid {
    gap: 56px;
    min-height: auto;
    padding-top: 62px;
    padding-bottom: 62px;
  }

  .developer-hero-copy h1 {
    font-size: 44px;
    line-height: 1.02;
  }

  .developer-lede {
    font-size: 16px;
  }

  .developer-hero .hero-actions {
    grid-template-columns: 1fr;
  }

  .developer-hero .hero-actions .button {
    width: 100%;
    min-width: 0;
  }

  .developer-format-list {
    display: grid;
  }

  .developer-terminal-bar {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .developer-terminal-bar .window-dots {
    grid-column: 1 / -1;
  }

  .developer-terminal-body {
    padding: 16px;
  }

  .terminal-command pre,
  .terminal-response pre {
    font-size: 9px;
  }

  .terminal-response-head {
    gap: 10px;
    align-items: flex-start;
    flex-direction: column;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .terminal-facts {
    grid-template-columns: 1fr;
  }

  .terminal-facts > div {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .terminal-facts > div:last-child {
    border-bottom: 0;
  }

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

  .quickstart-card {
    min-height: 286px;
  }

  .quickstart-card-top {
    margin-bottom: 42px;
  }

  .request-copy h2,
  .error-copy h2 {
    font-size: 38px;
  }

  .request-copy > p,
  .error-copy > p {
    font-size: 15px;
  }

  .retry-console-head,
  .retry-result,
  .verification-result {
    gap: 10px;
    align-items: flex-start;
    flex-direction: column;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .retry-console-head,
  .verification-result {
    display: flex;
  }

  .retry-trace li {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 14px;
  }

  .retry-number {
    width: 38px;
    height: 38px;
  }

  .retry-trace li > strong {
    grid-column: 2;
    text-align: left;
  }

  .retry-result {
    grid-template-columns: 1fr;
  }

  .developer-page .code-panel header,
  .developer-page .code-panel footer {
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .developer-page .code-panel pre {
    min-height: 0;
    font-size: 9px;
  }

  .verification-panel-head {
    align-items: flex-start;
  }

  .verification-panel-head > svg {
    width: 32px;
    height: 32px;
  }

  .verification-list li {
    padding-right: 18px;
    padding-left: 18px;
  }

  .error-table {
    min-width: 610px;
  }
}

/* Security page */

.security-hero {
  border-bottom: 1px solid var(--line-soft);
  background:
    linear-gradient(90deg, rgba(7, 11, 16, 0.98) 0%, rgba(7, 11, 16, 0.9) 46%, rgba(8, 23, 18, 0.78) 100%),
    var(--bg);
}

.security-hero-grid {
  display: grid;
  grid-template-columns: minmax(390px, 0.82fr) minmax(560px, 1.18fr);
  gap: clamp(56px, 7vw, 120px);
  align-items: center;
  min-height: calc(100vh - var(--header-height));
  padding-top: 86px;
  padding-bottom: 86px;
}

.security-hero-copy h1 {
  max-width: 710px;
  margin: 0;
  color: var(--text);
  font-size: clamp(58px, 5vw, 82px);
  font-weight: 500;
  line-height: 0.97;
  letter-spacing: -0.04em;
}

.security-lede {
  max-width: 620px;
  margin: 32px 0 0;
  color: #a5aaaf;
  font-size: 18px;
  line-height: 1.65;
}

.security-hero .hero-actions {
  margin-top: 38px;
}

.security-hero .hero-actions .button {
  min-width: 220px;
}

.security-trace {
  min-width: 0;
  border: 1px solid #394149;
  background: rgba(8, 13, 19, 0.96);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.security-trace-bar,
.security-trace-footer {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.security-reference-state {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.security-command {
  display: flex;
  min-height: 86px;
  align-items: end;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.security-command > div {
  display: grid;
  gap: 10px;
}

.security-command span,
.security-command strong {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
}

.security-command span {
  color: var(--mono-muted);
}

.security-command code {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 15px;
}

.security-command strong {
  color: var(--green);
  font-weight: 500;
}

.security-boundary-trace {
  margin: 0;
  padding: 10px 22px;
  list-style: none;
}

.security-boundary-trace li {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 82px;
}

.security-boundary-trace li:not(:last-child)::after {
  position: absolute;
  top: 57px;
  bottom: -25px;
  left: 20px;
  border-left: 1px dashed #355747;
  content: "";
}

.security-boundary-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #315e4c;
  background: #09130f;
}

.security-boundary-icon svg {
  width: 20px;
  height: 20px;
  color: var(--green);
}

.security-boundary-trace li > div {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.security-boundary-trace small,
.security-boundary-trace code,
.security-control-label {
  font-family: var(--font-mono);
}

.security-boundary-trace small {
  color: var(--mono-muted);
  font-size: 8px;
  letter-spacing: 0.05em;
}

.security-boundary-trace strong {
  color: #d5d8da;
  font-size: 13px;
  font-weight: 500;
}

.security-boundary-trace code {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.security-control-label {
  color: var(--green);
  font-size: 9px;
}

.security-trace-footer {
  min-height: 58px;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.security-trace-footer > span {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--green);
}

.security-trace-footer svg {
  width: 15px;
  height: 15px;
}

.security-trace-footer code {
  color: var(--mono-muted);
  font-family: var(--font-mono);
  font-size: 9px;
}

.security-boundaries-section {
  background: rgba(7, 11, 16, 0.96);
}

.security-boundary-card {
  display: flex;
  min-width: 0;
  min-height: 330px;
  flex-direction: column;
}

.security-boundary-card > code {
  display: block;
  width: 100%;
  margin-top: auto;
  padding-top: 20px;
  overflow: hidden;
  border-top: 1px dashed #566058;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.money-control-section {
  background:
    linear-gradient(90deg, rgba(7, 11, 16, 0.98), rgba(8, 20, 16, 0.95)),
    var(--bg);
}

.money-control-layout {
  display: grid;
  grid-template-columns: minmax(350px, 0.72fr) minmax(600px, 1.28fr);
  gap: clamp(60px, 8vw, 130px);
  align-items: start;
}

.money-control-copy h2 {
  max-width: 720px;
  margin: 0;
  color: var(--text);
  font-size: clamp(42px, 4vw, 62px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.money-control-copy > p {
  max-width: 590px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.money-control-list {
  display: grid;
  gap: 0;
  margin: 42px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.money-control-list li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 58px;
  border-bottom: 1px solid var(--line-soft);
  color: #b4b9bc;
  font-size: 12px;
  line-height: 1.45;
}

.money-control-list svg {
  width: 16px;
  height: 16px;
  color: var(--green);
}

.control-evidence-board {
  min-width: 0;
  border: 1px solid #394149;
  background: rgba(8, 13, 19, 0.94);
}

.control-evidence-head {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
}

.control-evidence-head > div {
  display: grid;
  gap: 8px;
}

.control-evidence-head > div span {
  color: var(--mono-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
}

.control-evidence-head > div strong {
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
}

.control-table-wrap {
  min-width: 0;
  overflow-x: auto;
}

.control-table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  text-align: left;
}

.control-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.control-table th,
.control-table td {
  height: 72px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line-soft);
}

.control-table thead th {
  height: 46px;
  color: var(--mono-muted);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.control-table tbody th {
  color: #d4d7d9;
  font-size: 12px;
  font-weight: 500;
}

.control-table tbody td {
  color: var(--muted);
  font-size: 11px;
}

.control-table code {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 9px;
}

.control-evidence-footer {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(19, 46, 36, 0.2);
}

.control-evidence-footer span {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 9px;
}

.control-evidence-footer svg {
  width: 15px;
  height: 15px;
}

.control-evidence-footer code {
  color: var(--mono-muted);
  font-family: var(--font-mono);
  font-size: 9px;
}

.traceability-section {
  background: rgba(7, 11, 16, 0.97);
}

.causal-chain {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.causal-chain li {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 246px;
  align-content: start;
  padding: 24px;
  border: 1px solid #394149;
  background: rgba(8, 13, 19, 0.72);
}

.causal-chain li:not(:last-child)::after {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -19px;
  color: var(--green);
  content: "→";
  font-family: var(--font-mono);
  font-size: 20px;
  transform: translateY(-50%);
}

.causal-index {
  color: var(--mono-muted);
  font-family: var(--font-mono);
  font-size: 9px;
}

.causal-chain svg {
  width: 42px;
  height: 42px;
  margin: 38px 0 28px;
  color: var(--green);
  stroke-width: 1.15;
}

.causal-chain li > span:not(.causal-index) {
  color: var(--mono-muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.causal-chain strong {
  overflow: hidden;
  margin-top: 10px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.causal-chain small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}

.causal-result {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding: 0 24px;
  border: 1px solid var(--line);
  background: rgba(16, 39, 30, 0.18);
}

.causal-result span {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 9px;
}

.causal-result svg {
  width: 15px;
  height: 15px;
}

.causal-result code {
  color: var(--mono-muted);
  font-family: var(--font-mono);
  font-size: 9px;
}

.responsibility-section {
  background:
    linear-gradient(90deg, rgba(7, 11, 16, 0.98), rgba(12, 18, 21, 0.96)),
    var(--bg);
}

.responsibility-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.responsibility-card {
  min-width: 0;
  border: 1px solid #394149;
  background: rgba(8, 13, 19, 0.72);
}

.responsibility-card header {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
  border-bottom: 1px solid var(--line);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.responsibility-customer header {
  color: var(--cyan);
}

.responsibility-card header svg {
  width: 26px;
  height: 26px;
}

.responsibility-card h3 {
  margin: 0;
  padding: 26px 26px 22px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text);
  font-size: 20px;
  font-weight: 500;
}

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

.responsibility-card li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 13px 26px;
  border-bottom: 1px solid var(--line-soft);
  color: #aeb3b7;
  font-size: 12px;
  line-height: 1.5;
}

.responsibility-card li:last-child {
  border-bottom: 0;
}

.responsibility-card li svg {
  width: 15px;
  height: 15px;
  color: var(--green);
}

.responsibility-customer li svg {
  color: var(--cyan);
}

.assurance-note {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 24px;
  padding: 24px 26px;
  border: 1px solid #4e482f;
  background: rgba(125, 101, 36, 0.08);
}

.assurance-note > svg {
  width: 34px;
  height: 34px;
  color: #d4c783;
  stroke-width: 1.2;
}

.assurance-note strong {
  color: #d8d3bb;
  font-size: 14px;
  font-weight: 500;
}

.assurance-note p {
  max-width: 1000px;
  margin: 9px 0 0;
  color: #979482;
  font-size: 12px;
  line-height: 1.6;
}

.security-cta {
  background:
    linear-gradient(90deg, rgba(7, 11, 16, 0.98) 0 54%, rgba(9, 33, 25, 0.95) 100%),
    var(--bg);
}

@media (max-width: 1200px) {
  .security-hero-grid,
  .money-control-layout {
    grid-template-columns: 1fr;
  }

  .security-hero-grid {
    min-height: auto;
  }

  .security-hero-copy,
  .money-control-copy {
    max-width: 850px;
  }

  .security-trace,
  .control-evidence-board {
    width: min(100%, 900px);
  }

  .causal-chain {
    grid-template-columns: 1fr 1fr;
  }

  .causal-chain li:nth-child(2)::after {
    display: none;
  }
}

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

@media (max-width: 760px) {
  .security-hero-grid {
    gap: 56px;
    min-height: auto;
    padding-top: 62px;
    padding-bottom: 62px;
  }

  .security-hero-copy h1 {
    font-size: 44px;
    line-height: 1.02;
  }

  .security-lede {
    font-size: 16px;
  }

  .security-hero .hero-actions {
    grid-template-columns: 1fr;
  }

  .security-hero .hero-actions .button {
    width: 100%;
    min-width: 0;
  }

  .security-command,
  .security-trace-bar,
  .security-trace-footer,
  .control-evidence-head,
  .control-evidence-footer,
  .causal-result {
    gap: 12px;
    align-items: flex-start;
    flex-direction: column;
    padding-top: 15px;
    padding-bottom: 15px;
  }

  .security-boundary-trace {
    padding-right: 16px;
    padding-left: 16px;
  }

  .security-boundary-trace li {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 13px;
  }

  .security-boundary-icon {
    width: 38px;
    height: 38px;
  }

  .security-boundary-trace li:not(:last-child)::after {
    left: 18px;
  }

  .security-control-label {
    grid-column: 2;
    padding-bottom: 9px;
  }

  .security-boundary-card {
    min-height: 280px;
  }

  .money-control-copy h2 {
    font-size: 38px;
  }

  .money-control-copy > p {
    font-size: 15px;
  }

  .control-table {
    min-width: 620px;
  }

  .causal-chain {
    grid-template-columns: 1fr;
  }

  .causal-chain li {
    min-height: 220px;
  }

  .causal-chain li:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -23px;
    left: 50%;
    content: "↓";
    transform: translateX(-50%);
  }

  .causal-chain li:nth-child(2)::after {
    display: block;
  }

  .responsibility-card h3,
  .responsibility-card li {
    padding-right: 20px;
    padding-left: 20px;
  }

  .assurance-note {
    grid-template-columns: 1fr;
  }
}

/* Access page */

.access-hero {
  background:
    linear-gradient(90deg, rgba(7, 11, 16, 0.98) 0%, rgba(7, 11, 16, 0.9) 46%, rgba(10, 27, 21, 0.78) 100%),
    var(--bg);
}

.access-brief {
  min-width: 0;
  border: 1px solid #394149;
  background: rgba(8, 13, 19, 0.96);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.access-brief-bar,
.access-brief-footer {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.access-reference-state {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.sample-brief-head {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.sample-brief-head > div {
  display: grid;
  gap: 9px;
}

.sample-brief-head span {
  color: var(--mono-muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.05em;
}

.sample-brief-head strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
}

.sample-brief-head > span {
  color: var(--green);
}

.sample-brief-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.sample-brief-facts > div {
  min-width: 0;
  padding: 17px 22px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.sample-brief-facts > div:nth-child(2n) {
  border-right: 0;
}

.sample-brief-facts > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.sample-brief-facts dt {
  color: var(--mono-muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sample-brief-facts dd {
  overflow: hidden;
  margin: 8px 0 0;
  color: #bdc1c5;
  font-family: var(--font-mono);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.access-brief-path {
  margin: 0;
  padding: 10px 22px;
  list-style: none;
}

.access-brief-path li {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 68px;
}

.access-brief-path li:not(:last-child)::after {
  position: absolute;
  top: 47px;
  bottom: -21px;
  left: 17px;
  border-left: 1px dashed #355747;
  content: "";
}

.access-brief-path li > span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #315e4c;
  background: #09130f;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 9px;
}

.access-brief-path li > div {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.access-brief-path strong {
  color: #d5d8da;
  font-size: 12px;
  font-weight: 500;
}

.access-brief-path small {
  color: var(--muted);
  font-size: 10px;
}

.access-brief-path code {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 8px;
}

.access-brief-footer {
  min-height: 56px;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.access-brief-footer > span {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #d7ca97;
}

.access-brief-footer svg {
  width: 15px;
  height: 15px;
}

.access-brief-footer code {
  color: var(--mono-muted);
  font-family: var(--font-mono);
  font-size: 9px;
}

.access-process-section {
  background:
    linear-gradient(90deg, rgba(7, 11, 16, 0.98), rgba(8, 20, 16, 0.95)),
    var(--bg);
}

.access-process-chain strong {
  overflow: visible;
  line-height: 1.3;
  text-overflow: clip;
  white-space: normal;
}

.access-process-result {
  background: rgba(16, 39, 30, 0.22);
}

.intake-section {
  background:
    linear-gradient(90deg, rgba(7, 11, 16, 0.98), rgba(12, 18, 21, 0.96)),
    var(--bg);
}

.intake-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.64fr) minmax(640px, 1.36fr);
  gap: clamp(60px, 8vw, 130px);
  align-items: start;
}

.intake-copy {
  position: sticky;
  top: calc(var(--header-height) + 56px);
}

.intake-copy h2 {
  max-width: 680px;
  margin: 0;
  color: var(--text);
  font-size: clamp(42px, 4vw, 62px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.intake-copy > p {
  max-width: 570px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.intake-guidance {
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.intake-guidance h3 {
  margin: 0 0 17px;
  color: #d5d8da;
  font-size: 14px;
  font-weight: 500;
}

.intake-guidance ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.intake-guidance li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid var(--line-soft);
  color: #aeb3b7;
  font-size: 12px;
  line-height: 1.5;
}

.intake-guidance svg {
  width: 15px;
  height: 15px;
  color: var(--green);
}

.intake-warning {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 14px;
  margin-top: 24px;
  padding: 18px;
  border: 1px solid #4e482f;
  background: rgba(125, 101, 36, 0.08);
}

.intake-warning svg {
  width: 24px;
  height: 24px;
  color: #d4c783;
}

.intake-warning p {
  margin: 0;
  color: #a6a28e;
  font-size: 11px;
  line-height: 1.6;
}

.access-contact-panel {
  min-width: 0;
  border: 1px solid #394149;
  background: rgba(8, 13, 19, 0.94);
}

.access-contact-header {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 26px;
  border-bottom: 1px solid var(--line);
}

.access-contact-header > div {
  display: grid;
  gap: 8px;
}

.access-contact-header > div span {
  color: var(--mono-muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.05em;
}

.access-contact-header > div strong {
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
}

.access-contact-body {
  padding: 30px 28px;
}

.access-contact-intro {
  max-width: 680px;
  margin: 0;
  color: #aeb3b7;
  font-size: 14px;
  line-height: 1.7;
}

.access-contact-address {
  display: grid;
  gap: 10px;
  margin-top: 30px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-style: normal;
}

.access-contact-address span {
  color: var(--mono-muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.access-contact-address a {
  width: fit-content;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: clamp(19px, 2.2vw, 28px);
  text-decoration: none;
}

.access-contact-address a:hover,
.access-contact-address a:focus-visible {
  color: var(--green-bright);
}

.access-contact-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.access-contact-facts > div {
  min-width: 0;
  padding: 20px 18px 20px 0;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.access-contact-facts > div:nth-child(2n) {
  padding-left: 18px;
  border-right: 0;
}

.access-contact-facts > div:last-child {
  grid-column: 1 / -1;
  padding-left: 0;
  border-bottom: 0;
}

.access-contact-facts dt {
  color: var(--mono-muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.access-contact-facts dd {
  margin: 8px 0 0;
  color: #bdc1c5;
  font-size: 12px;
  line-height: 1.5;
}

.access-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.access-contact-actions .button {
  min-width: 200px;
}

.access-contact-note {
  margin: 22px 0 0;
  color: var(--mono-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.6;
}

.hero-copy .hero-kicker {
  margin-bottom: 28px;
}

.hero-copy .hero-trust {
  max-width: 620px;
  margin: 28px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  color: #bdc1c5;
  font-size: 13px;
  line-height: 1.6;
}

.hero-copy .hero-availability {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 16px 0 0;
  color: var(--mono-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero-availability > span {
  display: block;
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border: 1px solid var(--green);
  background: rgba(53, 211, 152, 0.18);
}

.pipeline-caption {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 0 2px 0 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.pipeline-caption span:last-child {
  color: var(--mono-muted);
}

.example-context {
  display: flex;
  width: min(100%, calc(var(--page-max) - (var(--page-gutter) * 2)));
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto 18px;
  padding: 0 2px;
  border-bottom: 1px solid var(--line-soft);
}

.example-context h2 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
}

.example-context span,
.event-sequence {
  color: var(--mono-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.reference-state {
  padding-top: 24px;
}

.home-outcome-grid {
  grid-template-columns: repeat(3, 1fr);
}

.home-boundary-note {
  margin-top: 30px;
}

.home-cta-copy {
  max-width: 720px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

@media (max-width: 1200px) {
  .intake-layout {
    grid-template-columns: 1fr;
  }

  .intake-copy {
    position: static;
    max-width: 850px;
  }

  .access-contact-panel {
    width: min(100%, 950px);
  }
}

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

@media (max-width: 760px) {
  .access-brief-bar,
  .access-brief-footer,
  .sample-brief-head,
  .access-contact-header {
    gap: 12px;
    align-items: flex-start;
    flex-direction: column;
    padding-top: 15px;
    padding-bottom: 15px;
  }

  .sample-brief-facts {
    grid-template-columns: 1fr;
  }

  .sample-brief-facts > div,
  .sample-brief-facts > div:nth-child(2n),
  .sample-brief-facts > div:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .sample-brief-facts > div:last-child {
    border-bottom: 0;
  }

  .access-brief-path {
    padding-right: 16px;
    padding-left: 16px;
  }

  .access-brief-path li {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .access-brief-path li > code {
    grid-column: 2;
    padding-bottom: 8px;
  }

  .intake-copy h2 {
    font-size: 38px;
  }

  .intake-copy > p {
    font-size: 15px;
  }

  .access-contact-body {
    padding-right: 18px;
    padding-left: 18px;
  }

  .access-contact-facts {
    grid-template-columns: 1fr;
  }

  .access-contact-facts > div,
  .access-contact-facts > div:nth-child(2n),
  .access-contact-facts > div:last-child {
    grid-column: auto;
    padding-right: 0;
    padding-left: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .access-contact-facts > div:last-child {
    border-bottom: 0;
  }

  .access-contact-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .access-contact-actions .button {
    width: 100%;
    min-width: 0;
  }

  .example-context {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .pipeline-caption {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 12px;
  }
}
