:root {
  --ink: #101615;
  --paper: #f7f8f4;
  --panel: #ffffff;
  --line: #cdd7cf;
  --muted: #64716b;
  --deep: #07110f;
  --aqua: #0d827c;
  --blue: #274f86;
  --gold: #a86d20;
  --danger: #8a3b30;
  --radius: 8px;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  line-height: 1.5;
  background:
    linear-gradient(180deg, #fbfcf8 0, #eef4f0 360px, #f7f8f4 361px);
}

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

a:hover {
  text-decoration: underline;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 60px);
  border-bottom: 1px solid rgba(16, 22, 21, 0.12);
  background: rgba(247, 248, 244, 0.92);
  backdrop-filter: blur(14px);
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mark span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--aqua);
  font-family: var(--mono);
  font-size: 14px;
}

.mark strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}

.mark b {
  font-weight: 750;
}

.nav,
.footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(18px, 5vw, 60px) 64px;
}

.hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 42px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.route-hero {
  min-height: 380px;
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--aqua);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: 54px;
  line-height: 1;
}

h2 {
  margin-bottom: 0;
  font-size: 22px;
}

.hero-copy p {
  max-width: 690px;
  color: var(--muted);
  font-size: 19px;
}

.actions,
.payment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.button,
button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--deep);
  border-radius: var(--radius);
  background: var(--deep);
  color: white;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.button.secondary,
button.secondary {
  background: transparent;
  color: var(--deep);
}

button:disabled,
.disabled {
  border-color: var(--line);
  background: #e6ebe7;
  color: var(--muted);
  cursor: not-allowed;
}

.identity {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.identity dl {
  margin: 0;
}

.identity div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
}

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

dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.grid-section,
.payment,
.policy {
  padding: 46px 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.section-head p {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
}

.section-head.compact {
  align-items: center;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.panel,
.validator,
.gateway {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 18px;
}

.panel p {
  color: var(--muted);
}

.route-card {
  display: block;
  min-height: 150px;
  color: inherit;
}

.route-card:hover {
  text-decoration: none;
  border-color: var(--aqua);
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

input {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
}

form {
  display: grid;
  gap: 12px;
}

.license-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  background: var(--line);
}

.license-board article {
  min-height: 128px;
  padding: 16px;
  background: var(--panel);
}

.license-board span,
.flow span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.license-board strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 22px;
}

.validator {
  max-width: 620px;
}

.gateway {
  display: grid;
  gap: 22px;
}

.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.flow span {
  min-height: 74px;
  margin: 0;
  padding: 18px;
  background: #f8faf7;
  color: var(--deep);
}

.flow span:nth-child(1) {
  border-top: 3px solid var(--aqua);
}

.flow span:nth-child(2) {
  border-top: 3px solid var(--gold);
}

.flow span:nth-child(3) {
  border-top: 3px solid var(--blue);
}

.flow span:nth-child(4) {
  border-top: 3px solid var(--danger);
}

details {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

details:last-child {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 700;
}

details p {
  max-width: 820px;
  margin-bottom: 22px;
  white-space: pre-line;
  color: var(--muted);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px clamp(18px, 5vw, 60px) 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer strong {
  display: block;
  color: var(--ink);
}

@media (max-width: 780px) {
  .topbar,
  .footer,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav,
  .footer nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 64px 0 42px;
  }

  h1 {
    font-size: 40px;
  }

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

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