/* ============================================================================
   Settle Protocol . design tokens
   Sampled from assets/banner.png (neon light-trail treatment) and assets/avatar.png.
   void        #03070A   true black field, same as the banner ground
   ink / ink-2 #050B0F / #071216  panel bodies, lifted one step at a time
   neon        #7FF0D2   the mint light-trail core
   neon-hi     #C9FFEF   the blown-out center of a trail, used for glow only
   aqua        #34D6C8   deeper teal, ribbons and rails
   cyan        #6FD8FF   semantic: a leg in flight
   amber       #FFB25E   semantic: a leg held short of finality
   Type: Chakra Petch (display, technical condensed) . Inter (body) . IBM Plex Mono (data)
   Radius 14px panels / 10px controls . Spacing scale 6 / 10 / 16 / 24 / 36 / 56 / 96px
   Motion idiom: trail-sweep, a light trail running along a rail
   ============================================================================ */

:root {
  --void: #03070A;
  --ink: #050B0F;
  --ink-2: #071216;
  --ink-3: #09181C;
  --neon: #7FF0D2;
  --neon-hi: #C9FFEF;
  --aqua: #34D6C8;
  --cyan: #6FD8FF;
  --amber: #FFB25E;

  --edge: rgba(127, 240, 210, 0.14);
  --edge-soft: rgba(127, 240, 210, 0.08);
  --edge-strong: rgba(127, 240, 210, 0.34);

  --text: #E6F2EE;
  --text-2: #9EB5B0;
  --muted: #647A76;

  --radius: 14px;
  --radius-sm: 10px;
  --max-width: 1160px;

  --font-display: "Chakra Petch", "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --glow-strong: 0 0 44px rgba(127, 240, 210, 0.30);
  --glow-soft: 0 0 28px rgba(127, 240, 210, 0.16);
  --panel-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(201, 255, 239, 0.06);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  margin: 0;
  background-color: var(--void);
  background-image:
    radial-gradient(900px 560px at 78% -6%, rgba(52, 214, 200, 0.16), transparent 62%),
    radial-gradient(760px 520px at 8% 22%, rgba(127, 240, 210, 0.07), transparent 66%),
    radial-gradient(1000px 700px at 50% 108%, rgba(52, 214, 200, 0.09), transparent 70%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 0 0 16px;
  line-height: 1.14;
}

p { margin: 0 0 16px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.glow { text-shadow: var(--glow-strong); }
.glow-soft { text-shadow: var(--glow-soft); }

/* ---------------------------------------------------------------- header */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header {
  background: rgba(3, 7, 10, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--edge-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--edge);
  box-shadow: 0 0 22px rgba(127, 240, 210, 0.22);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.005em;
}

.site-nav { display: flex; gap: 22px; flex: 1; justify-content: center; }

.site-nav a {
  font-family: var(--font-mono);
  color: var(--text-2);
  font-size: 12.5px;
  letter-spacing: 0.01em;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease, text-shadow 0.16s ease;
}

.site-nav a:hover {
  color: var(--neon);
  border-bottom-color: var(--edge-strong);
  text-shadow: 0 0 16px rgba(127, 240, 210, 0.5);
}

.chain-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--text-2);
  white-space: nowrap;
  background: rgba(9, 24, 28, 0.6);
}

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

/* ------------------------------------------------------------- token bar */

.token-bar {
  background: linear-gradient(180deg, rgba(7, 18, 22, 0.94), rgba(4, 10, 13, 0.94));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--edge-soft);
}

.token-bar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.token-ticker {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--neon);
  text-shadow: 0 0 18px rgba(127, 240, 210, 0.55);
}

.token-ca {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(127, 240, 210, 0.05);
  border: 1px solid var(--edge);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  color: var(--text);
  cursor: pointer;
  font-family: var(--font-mono);
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.token-ca:hover {
  border-color: var(--edge-strong);
  background: rgba(127, 240, 210, 0.1);
  box-shadow: 0 0 22px rgba(127, 240, 210, 0.18);
}

.token-ca-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.token-ca-value {
  font-size: 12.5px;
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.token-ca-copied {
  display: none;
  font-size: 12.5px;
  color: var(--neon);
  text-shadow: 0 0 14px rgba(127, 240, 210, 0.5);
}

.token-ca.is-copied .token-ca-value { display: none; }
.token-ca.is-copied .token-ca-copied { display: inline; }

.token-buy {
  margin-left: auto;
  background: linear-gradient(180deg, var(--neon-hi), var(--neon));
  color: #032019;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 26px rgba(127, 240, 210, 0.28);
  transition: box-shadow 0.16s ease, transform 0.14s ease;
}

.token-buy:hover {
  box-shadow: 0 0 38px rgba(127, 240, 210, 0.5);
  transform: translateY(-1px);
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--edge);
  color: var(--text-2);
  transition: color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  flex-shrink: 0;
}

.social-icon:hover {
  color: var(--neon);
  border-color: var(--edge-strong);
  box-shadow: 0 0 22px rgba(127, 240, 210, 0.22);
}

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  padding: 13px 24px;
  transition: transform 0.14s ease, box-shadow 0.16s ease, background 0.16s ease,
    border-color 0.16s ease, opacity 0.16s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(180deg, var(--neon-hi), var(--neon));
  color: #032019;
  box-shadow: 0 0 30px rgba(127, 240, 210, 0.26);
}

.btn-primary:hover:not(:disabled) {
  box-shadow: 0 0 46px rgba(127, 240, 210, 0.5);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.btn-ghost {
  background: rgba(127, 240, 210, 0.04);
  border-color: var(--edge);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--edge-strong);
  color: var(--neon);
  box-shadow: 0 0 26px rgba(127, 240, 210, 0.18);
}

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  overflow: hidden;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--edge-soft);
}

.hero-art {
  position: absolute;
  inset: -12% 0 auto 0;
  width: 100%;
  height: 132%;
  background-image: url("assets/banner.png");
  background-size: cover;
  background-position: center 38%;
  opacity: 0.95;
  filter: saturate(1.12) contrast(1.06);
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(94deg, rgba(3, 7, 10, 0.96) 0%, rgba(3, 7, 10, 0.90) 34%, rgba(3, 7, 10, 0.44) 62%, rgba(3, 7, 10, 0.16) 100%),
    linear-gradient(180deg, rgba(3, 7, 10, 0.55) 0%, transparent 26%, rgba(3, 7, 10, 0.9) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 104px;
  padding-bottom: 76px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--neon);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 20px;
  text-shadow: 0 0 18px rgba(127, 240, 210, 0.4);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon));
}

.hero h1 {
  font-size: 62px;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
}

.tagline {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.42;
  color: #D4EDE6;
  max-width: 600px;
  margin-bottom: 18px;
}

.hero-description {
  font-size: 16px;
  color: var(--text-2);
  max-width: 560px;
  margin-bottom: 30px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.spec-strip {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--edge-soft);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--panel-shadow);
}

.spec-strip li {
  background: linear-gradient(180deg, rgba(9, 24, 28, 0.92), rgba(5, 11, 15, 0.92));
  padding: 20px 22px;
}

.spec-key {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neon);
  margin-bottom: 8px;
}

.spec-val {
  display: block;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-2);
}

/* -------------------------------------------------------------- sections */

.section { padding: 96px 0; position: relative; }

.section-alt {
  background: linear-gradient(180deg, rgba(7, 18, 22, 0.72), rgba(3, 7, 10, 0.4));
  border-top: 1px solid var(--edge-soft);
  border-bottom: 1px solid var(--edge-soft);
}

.section-alt::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--edge-strong) 22%, var(--neon) 50%, var(--edge-strong) 78%, transparent);
  opacity: 0.6;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.section h2 {
  font-size: 38px;
  font-weight: 600;
  max-width: 760px;
  margin-bottom: 22px;
}

.section-lead {
  color: var(--text-2);
  font-size: 16.5px;
  max-width: 720px;
  margin-bottom: 48px;
}

/* ------------------------------------------------------- gap / explainer */

.prose-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  margin-bottom: 56px;
}

.prose p { color: var(--text-2); max-width: 66ch; }

.prose .lede {
  font-size: 18px;
  line-height: 1.6;
  color: #CFE6E0;
}

.pull-quote {
  margin: 0;
  padding: 30px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--edge);
  background:
    radial-gradient(420px 280px at 80% 0%, rgba(52, 214, 200, 0.14), transparent 70%),
    linear-gradient(180deg, rgba(9, 24, 28, 0.9), rgba(5, 11, 15, 0.9));
  box-shadow: var(--panel-shadow);
  position: sticky;
  top: 140px;
}

.pull-text {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.28;
  color: var(--neon-hi);
  text-shadow: 0 0 30px rgba(127, 240, 210, 0.3);
  margin-bottom: 14px;
}

.pull-attr {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

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

.fail-card {
  position: relative;
  padding: 26px 22px 24px;
  border: 1px solid var(--edge-soft);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(9, 24, 28, 0.62), rgba(5, 11, 15, 0.62));
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.fail-card::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--neon), transparent);
  opacity: 0.4;
  transition: opacity 0.2s ease;
}

.fail-card:hover {
  border-color: var(--edge);
  transform: translateY(-3px);
  box-shadow: 0 24px 50px -34px rgba(0, 0, 0, 0.95);
}

.fail-card:hover::after { opacity: 0.95; }

.fail-index {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 12px;
}

.fail-card h3 { font-size: 18px; margin-bottom: 10px; color: #DCEFE9; }
.fail-card p { font-size: 14px; color: var(--text-2); margin-bottom: 0; }

/* --------------------------------------------------------------- anatomy */

.lanes-panel {
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(7, 18, 22, 0.88), rgba(4, 9, 12, 0.88));
  box-shadow: var(--panel-shadow);
  padding: 32px;
}

.lanes-source {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--edge-soft);
}

.lanes-source-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 18px var(--neon);
  align-self: center;
}

.lanes-source-label {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--neon-hi);
}

.lanes-source-sub {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.lanes {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lane {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 190px;
  align-items: center;
  gap: 20px;
}

.lane-name { font-size: 14.5px; color: var(--text); }

.lane-track {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 12px;
}

.lane-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  border-radius: 2px;
  background-image:
    linear-gradient(90deg, transparent, var(--neon-hi), transparent),
    linear-gradient(90deg, rgba(52, 214, 200, 0.5), rgba(52, 214, 200, 0.16));
  background-repeat: no-repeat, no-repeat;
  background-size: 84px 100%, 100% 100%;
  background-position: -84px 0, 0 0;
  animation: trail-sweep 4.2s linear infinite;
}

.lane:nth-child(2) .lane-track::before { animation-delay: 0.5s; }
.lane:nth-child(3) .lane-track::before { animation-delay: 1.1s; }
.lane:nth-child(4) .lane-track::before { animation-delay: 1.7s; }

@keyframes trail-sweep {
  0% { background-position: -84px 0, 0 0; }
  100% { background-position: calc(100% + 84px) 0, 0 0; }
}

.lane-node {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--void);
  border: 1.5px solid var(--aqua);
  box-shadow: 0 0 12px rgba(52, 214, 200, 0.55);
  position: relative;
  z-index: 1;
}

.lane-note {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-align: right;
}

.lanes-caption {
  font-size: 14.5px;
  color: var(--text-2);
  max-width: 78ch;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--edge-soft);
}

/* ------------------------------------------------------------- checklist */

.checklist-panel {
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background:
    radial-gradient(700px 320px at 88% -20%, rgba(52, 214, 200, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(7, 18, 22, 0.92), rgba(4, 9, 12, 0.92));
  box-shadow: var(--panel-shadow);
  padding: 28px 28px 24px;
}

.scenario-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.scenario-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 4px;
}

.scenario-btn {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--text-2);
  background: rgba(127, 240, 210, 0.03);
  border: 1px solid var(--edge-soft);
  border-radius: 999px;
  padding: 7px 16px;
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.scenario-btn:hover { color: var(--text); border-color: var(--edge); }

.scenario-btn.is-active {
  color: var(--neon-hi);
  border-color: var(--edge-strong);
  background: rgba(127, 240, 210, 0.1);
  box-shadow: 0 0 22px rgba(127, 240, 210, 0.2);
}

.checklist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.checklist-status-wrap { display: flex; align-items: center; gap: 12px; }

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: none;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.status-dot.is-running {
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
  animation: dot-breathe 1.1s ease-in-out infinite;
}

.status-dot.is-done { background: var(--neon); box-shadow: 0 0 16px var(--neon); }
.status-dot.is-alert { background: var(--amber); box-shadow: 0 0 16px var(--amber); }

@keyframes dot-breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.checklist-status {
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.02em;
  color: var(--text-2);
  transition: color 0.2s ease;
}

.checklist-status.is-running { color: var(--cyan); }
.checklist-status.is-done { color: var(--neon); }
.checklist-status.is-alert { color: var(--amber); }

.progress-rail {
  height: 3px;
  border-radius: 3px;
  background: rgba(127, 240, 210, 0.08);
  overflow: hidden;
  margin-bottom: 20px;
}

.progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--aqua), var(--neon-hi));
  box-shadow: 0 0 18px rgba(127, 240, 210, 0.55);
  transition: width 0.3s ease;
}

.legs {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.leg {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 130px 72px 78px 104px;
  align-items: center;
  gap: 16px;
  padding: 15px 18px;
  border: 1px solid var(--edge-soft);
  border-radius: var(--radius-sm);
  background: rgba(3, 7, 10, 0.55);
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.leg-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid var(--muted);
  background: transparent;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.leg-name { font-size: 15px; color: var(--text); }

.leg-addr, .leg-amount, .leg-confirms, .leg-state {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-2);
  justify-self: end;
  white-space: nowrap;
}

.leg-addr { color: var(--muted); font-size: 12px; }
.leg-confirms { color: var(--text-2); }

.leg-state {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}

.leg.is-verifying {
  border-color: rgba(111, 216, 255, 0.42);
  background: rgba(111, 216, 255, 0.07);
  box-shadow: 0 0 34px -12px rgba(111, 216, 255, 0.5);
}

.leg.is-verifying .leg-indicator {
  border-color: var(--cyan);
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(111, 216, 255, 0.15), 0 0 16px var(--cyan);
  animation: settle-pulse 0.9s ease-in-out infinite;
}

.leg.is-verifying .leg-state, .leg.is-verifying .leg-confirms { color: var(--cyan); }

.leg.is-settled {
  border-color: rgba(127, 240, 210, 0.42);
  background: rgba(127, 240, 210, 0.07);
  box-shadow: 0 0 34px -12px rgba(127, 240, 210, 0.55);
}

.leg.is-settled .leg-indicator {
  border-color: var(--neon);
  background: var(--neon);
  box-shadow: 0 0 0 4px rgba(127, 240, 210, 0.14), 0 0 18px var(--neon);
}

.leg.is-settled .leg-state, .leg.is-settled .leg-confirms { color: var(--neon); }

.leg.is-held {
  border-color: rgba(255, 178, 94, 0.46);
  background: rgba(255, 178, 94, 0.07);
  box-shadow: 0 0 34px -12px rgba(255, 178, 94, 0.55);
}

.leg.is-held .leg-indicator {
  border-color: var(--amber);
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(255, 178, 94, 0.14), 0 0 18px var(--amber);
}

.leg.is-held .leg-state, .leg.is-held .leg-confirms { color: var(--amber); }

@keyframes settle-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.22); }
}

.verdict {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 18px;
  border: 1px solid var(--edge-soft);
  border-radius: var(--radius-sm);
  background: rgba(3, 7, 10, 0.5);
  margin-bottom: 20px;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.verdict-key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.verdict-val {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.verdict.is-done { border-color: rgba(127, 240, 210, 0.36); background: rgba(127, 240, 210, 0.05); }
.verdict.is-done .verdict-val { color: var(--neon); text-shadow: 0 0 24px rgba(127, 240, 210, 0.4); }

.verdict.is-alert { border-color: rgba(255, 178, 94, 0.36); background: rgba(255, 178, 94, 0.05); }
.verdict.is-alert .verdict-val { color: var(--amber); text-shadow: 0 0 24px rgba(255, 178, 94, 0.3); }

.log-wrap {
  border-top: 1px solid var(--edge-soft);
  padding-top: 18px;
}

.log-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.log {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 168px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.75;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.log-line { color: var(--text-2); display: flex; gap: 12px; }
.log-idle { color: var(--muted); }
.log-time { color: var(--muted); flex-shrink: 0; }
.log-evt { color: var(--aqua); flex-shrink: 0; min-width: 168px; }
.log-line.is-settled .log-evt { color: var(--neon); }
.log-line.is-held .log-evt { color: var(--amber); }
.log-msg { color: var(--text-2); }

/* ----------------------------------------------------------------- steps */

.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.step {
  position: relative;
  border: 1px solid var(--edge-soft);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(9, 24, 28, 0.62), rgba(5, 11, 15, 0.62));
  padding: 28px 26px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.step:hover {
  border-color: var(--edge);
  box-shadow: 0 0 44px -26px rgba(127, 240, 210, 0.8);
}

.step-number {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--neon);
  text-shadow: 0 0 16px rgba(127, 240, 210, 0.45);
  margin-bottom: 14px;
}

.step h3 { font-size: 20px; margin-bottom: 12px; }
.step p { color: var(--text-2); font-size: 14.5px; }

.step-exit {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
  padding-top: 12px;
  margin-bottom: 0;
  border-top: 1px solid var(--edge-soft);
}

/* ----------------------------------------------------------- reliability */

.rel-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  margin-bottom: 52px;
}

.rel-copy p { color: var(--text-2); max-width: 64ch; }

.rel-copy .lede {
  font-size: 18px;
  line-height: 1.6;
  color: #CFE6E0;
}

.rel-figure {
  margin: 0;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--void);
  box-shadow: var(--panel-shadow);
}

.rel-figure img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  opacity: 0.94;
}

.rel-figure figcaption {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding: 12px 16px;
  border-top: 1px solid var(--edge-soft);
}

.rel-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0;
  background: var(--edge-soft);
  border: 1px solid var(--edge-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.rel-spec {
  background: linear-gradient(180deg, rgba(9, 24, 28, 0.8), rgba(4, 10, 13, 0.8));
  padding: 24px 22px;
}

.rel-spec dt {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--neon-hi);
  margin-bottom: 8px;
}

.rel-spec dd {
  margin: 0;
  font-size: 14px;
  color: var(--text-2);
}

/* ----------------------------------------------------------- integration */

.integrate-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 32px;
  align-items: start;
}

.event-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }

.event {
  border: 1px solid var(--edge-soft);
  border-left-width: 2px;
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  background: rgba(5, 11, 15, 0.6);
}

.event-ok { border-left-color: var(--aqua); }
.event-warn { border-left-color: var(--amber); }
.event-done { border-left-color: var(--neon); }

.event-name {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--neon-hi);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.event-warn .event-name { color: var(--amber); }

.event-desc { display: block; font-size: 14px; color: var(--text-2); }

.code-card {
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(6, 15, 19, 0.96), rgba(3, 8, 11, 0.96));
  box-shadow: var(--panel-shadow);
}

.code-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--edge-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2);
  letter-spacing: 0.03em;
}

.code-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 12px var(--neon);
}

.code {
  margin: 0;
  max-width: 100%;
  padding: 20px 18px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--text-2);
}

.code code { display: block; min-width: 0; }

.c-k { color: var(--neon); }
.c-s { color: #BFE9FF; }
.c-n { color: var(--amber); }
.c-p { color: var(--muted); }

/* -------------------------------------------------------------- cta band */

.cta-band {
  padding: 84px 0;
  border-top: 1px solid var(--edge-soft);
  background:
    radial-gradient(760px 340px at 50% 120%, rgba(52, 214, 200, 0.2), transparent 70%),
    linear-gradient(180deg, rgba(3, 7, 10, 0.2), rgba(4, 12, 15, 0.7));
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-band h2 { font-size: 32px; max-width: 640px; margin-bottom: 14px; }
.cta-band p { color: var(--text-2); max-width: 600px; margin: 0; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- footer */

.site-footer {
  padding: 40px 0 32px;
  border-top: 1px solid var(--edge-soft);
  background: rgba(3, 7, 10, 0.7);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--edge-soft);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
}

.footer-mark {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--edge);
}

.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }

.footer-nav a {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2);
  transition: color 0.16s ease;
}

.footer-nav a:hover { color: var(--neon); }

.footer-side { display: flex; align-items: center; gap: 12px; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
}

.footer-copy { color: var(--muted); font-size: 13px; margin: 0; }

.canary {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0;
}

/* ------------------------------------------------------------ responsive */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .leg.is-verifying .leg-indicator,
  .status-dot.is-running,
  .lane-track::before { animation: none; }
  .lane-track::before { background-position: -84px 0, 0 0; }
}

@media (max-width: 1080px) {
  .failure-grid { grid-template-columns: repeat(2, 1fr); }
  .rel-specs { grid-template-columns: repeat(2, 1fr); }
  .spec-strip { grid-template-columns: repeat(2, 1fr); }
  .leg { grid-template-columns: 18px minmax(0, 1fr) 72px 78px 104px; }
  .leg-addr { display: none; }
}

@media (max-width: 920px) {
  .site-nav { display: none; }
  .hero h1 { font-size: 46px; }
  .tagline { font-size: 19px; }
  .hero-inner { padding-top: 72px; padding-bottom: 56px; }
  .section { padding: 72px 0; }
  .section h2 { font-size: 31px; }
  .prose-grid,
  .rel-layout,
  .integrate-layout { grid-template-columns: 1fr; gap: 32px; }
  .pull-quote { position: static; }
  .steps { grid-template-columns: 1fr; }
  .lane { grid-template-columns: 130px minmax(0, 1fr); }
  .lane-note { grid-column: 1 / -1; text-align: left; }
  .hero-art { background-position: center 30%; opacity: 0.7; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .topbar { position: static; }
  .token-bar { position: sticky; top: 0; z-index: 35; }
  .hero h1 { font-size: 36px; }
  .tagline { font-size: 17px; }
  .section h2 { font-size: 26px; }
  .failure-grid,
  .rel-specs,
  .spec-strip { grid-template-columns: 1fr; }
  .token-bar-inner { flex-wrap: wrap; }
  .token-buy { margin-left: 0; order: 4; width: 100%; text-align: center; justify-content: center; }
  .token-ca-value { max-width: 150px; }
  .checklist-panel { padding: 20px 16px; }
  .lanes-panel { padding: 22px 16px; }
  .checklist-header { flex-direction: column; align-items: flex-start; }
  .checklist-header .btn { width: 100%; }
  .log-evt { min-width: 0; }
  .log-line { flex-wrap: wrap; gap: 8px; }
  .leg {
    grid-template-columns: 16px minmax(0, 1fr) auto;
    grid-template-areas:
      "dot name state"
      "dot meta meta";
    row-gap: 6px;
    column-gap: 12px;
  }
  .leg-indicator { grid-area: dot; align-self: start; margin-top: 5px; }
  .leg-name { grid-area: name; }
  .leg-state { grid-area: state; justify-self: end; }
  .leg-amount { grid-area: meta; justify-self: start; }
  .leg-confirms { grid-area: meta; justify-self: start; margin-left: 70px; }
  .cta-band h2 { font-size: 25px; }
  .cta-actions .btn { flex: 1; }
  .lane {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--edge-soft);
  }
  .lanes .lane:last-child { border-bottom: none; padding-bottom: 0; }
  .lane-track { width: 100%; }
}
