:root {
  --bg: #f1efe8;
  --surface: #fcfaf4;
  --surface-2: #f8f5ee;
  --ink: #111212;
  --muted: #4f5a56;
  --line: #cfc8b8;
  --brand: #0f7b74;
  --brand-deep: #08524d;
  --alert: #b44923;
  --ok: #1f7a3a;
  --radius: 14px;
  --shadow: 0 16px 38px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  font-family: "Space Grotesk", system-ui, sans-serif;
  line-height: 1.45;
  background:
    radial-gradient(circle at 6% 4%, #d9f3ef 0%, transparent 30%),
    radial-gradient(circle at 90% 10%, #fce4cc 0%, transparent 26%),
    var(--bg);
}

a { color: inherit; }

.wrap {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 82%, #fff 18%);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo img {
  width: 30px;
  height: 30px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: rgba(15, 123, 116, 0.12);
}

main {
  padding: 34px 0 66px;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.12;
}

h1 {
  font-size: clamp(2rem, 4.6vw, 3.7rem);
  max-width: 14ch;
}

h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
}

p {
  margin: 0;
}

.sub {
  margin-top: 12px;
  max-width: 62ch;
  color: var(--muted);
}

.mono {
  font-family: "IBM Plex Mono", monospace;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 14px;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.section {
  margin-top: 26px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.card.soft {
  background: var(--surface-2);
}

.pill {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 5px 10px;
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
  font: inherit;
}

.btn.primary {
  border-color: transparent;
  background: linear-gradient(145deg, var(--brand), var(--brand-deep));
  color: #fff;
}

.list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.kv {
  display: grid;
  gap: 8px;
}

.kv .key {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.kv .val {
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
}

.footer {
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.code {
  background: #131615;
  color: #e8ece8;
  border: 1px solid #2b322f;
  border-radius: 12px;
  padding: 14px;
  overflow-x: auto;
  font-size: 0.85rem;
}

.demo-board {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 16px;
}

.demo-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.security-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.security-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7fbfa;
  padding: 4px 10px;
  font-size: 0.76rem;
  color: var(--muted);
}

.chat-log {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.chat-msg {
  max-width: min(86%, 420px);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
  opacity: 0.45;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.chat-msg .label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.75rem;
  color: var(--muted);
}

.chat-msg p {
  font-size: 0.92rem;
}

.chat-msg.outgoing {
  margin-left: auto;
  background: #e8f8f5;
}

.chat-msg.incoming {
  margin-right: auto;
  background: #fff9ef;
}

.chat-msg.show {
  opacity: 1;
  transform: translateY(0);
}

.node {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  background: #f8f8f6;
  font-size: 0.86rem;
}

.node.active {
  background: #dff4f1;
  border-color: #98d7cf;
}

.status-line {
  margin-top: 12px;
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: #fffdf8;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.78rem;
  background: #fff;
  color: var(--muted);
}

.badge.ok {
  border-color: #9fd0ad;
  background: #ebf8ee;
  color: #275d35;
}

.badge.alert {
  border-color: #e0b39f;
  background: #fff0ea;
  color: #7f3118;
}

@media (max-width: 960px) {
  header { position: static; }
  .hero,
  .grid-2,
  .grid-3,
  .grid-4,
  .demo-flow {
    grid-template-columns: 1fr;
  }

  h1 { max-width: none; }
}

.ops-body {
  background: #d7e6d7;
}

.info-body {
  color: #111;
  background:
    linear-gradient(0deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.96)),
    radial-gradient(circle, rgba(0, 0, 0, 0.2) 1px, transparent 1.2px) 0 0/15px 15px,
    radial-gradient(circle, rgba(0, 0, 0, 0.15) 1px, transparent 1.2px) 8px 8px/15px 15px,
    linear-gradient(180deg, #ffffff, #ececec);
}

.info-body header {
  background: rgba(250, 250, 250, 0.94);
  border-bottom: 2px solid #111;
}

.info-body .logo,
.info-body .nav-links a {
  color: #111;
}

.info-body .nav-links a {
  border: 2px solid transparent;
  border-radius: 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.info-body .nav-links a:hover,
.info-body .nav-links a[aria-current="page"] {
  background: #111;
  color: #fff;
  border-color: #111;
}

.info-body .card {
  background: #fff;
  border: 2px solid #111;
  border-radius: 0;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.9);
}

.info-body .card.soft {
  background: #f1f1f1;
}

.info-body .pill {
  border: 2px solid #111;
  border-radius: 0;
  background: #efefef;
  color: #111;
  text-transform: uppercase;
  font-weight: 700;
}

.info-body .sub,
.info-body .list,
.info-body .footer {
  color: #222;
}

.info-body .btn {
  border: 2px solid #111;
  border-radius: 0;
  background: #fff;
  color: #111;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.9);
}

.info-body .btn.primary {
  background: #111;
  color: #fff;
  border-color: #111;
}

.info-body .code {
  border: 2px solid #111;
  border-radius: 0;
  background: #1b1b1b;
  color: #f3f3f3;
}

.info-body .snippet-box {
  margin-top: 10px;
  border: 2px solid #111;
  background: #f3f3f3;
  padding: 10px;
  display: grid;
  gap: 6px;
}

.info-body .snippet-box p {
  margin: 0;
}

.info-body .waitlist-result {
  margin-top: 10px;
  border: 2px solid #111;
  background: #efefef;
  padding: 10px;
}

.info-body .demo-board,
.info-body .node,
.info-body .status-line,
.info-body .chat-msg,
.info-body .security-chip,
.info-body .badge {
  border-radius: 0;
  border-color: #111;
}

.info-body .chat-msg.outgoing,
.info-body .chat-msg.incoming,
.info-body .node.active,
.info-body .badge.ok,
.info-body .badge.alert {
  background: #f0f0f0;
  color: #111;
}

.ops-body,
.ops-body header,
.ops-body .nav-links a,
.ops-body .logo,
.ops-body .btn {
  color: #000;
}

.ops-body header {
  background: rgba(215, 230, 215, 0.95);
  border-bottom: 2px solid #000;
}

.ops-body .btn {
  border: 2px solid #000;
  background: #fff;
  border-radius: 8px;
  color: #000;
}

.ops-body .btn.primary {
  background: #000;
  color: #fff;
  border-color: #000;
}

.front-body {
  background:
    linear-gradient(0deg, rgba(255, 247, 221, 0.95), rgba(255, 247, 221, 0.95)),
    repeating-linear-gradient(
      0deg,
      rgba(80, 80, 80, 0.07) 0,
      rgba(80, 80, 80, 0.07) 1px,
      transparent 1px,
      transparent 44px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(80, 80, 80, 0.05) 0,
      rgba(80, 80, 80, 0.05) 1px,
      transparent 1px,
      transparent 44px
    ),
    radial-gradient(circle, #1f5dab 22%, transparent 24%) 0 0/16px 16px,
    radial-gradient(circle, #1f5dab 22%, transparent 24%) 8px 8px/16px 16px;
  color: #000;
  font-family: "Arial Black", Impact, "Space Grotesk", sans-serif;
}

.front-body header {
  background: #ffea00;
  border-bottom: 3px solid #000;
}

.front-body .nav-links a {
  color: #000;
  font-weight: 700;
  text-transform: uppercase;
}

.front-body .btn {
  border: 3px solid #000;
  border-radius: 0;
  box-shadow: 4px 4px 0 #000;
}

.front-body .btn.primary {
  background: #ff174f;
  color: #fff;
}

.ops-main,
.front-main {
  padding-top: 26px;
}

.ops-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ops-card {
  color: #000;
  background: #e6f1e6;
  border: 2px solid #000;
  border-radius: 12px;
  box-shadow: 4px 4px 0 #000;
  padding: 18px;
}

.ops-card h1 {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  color: #000;
}

.ops-card h2 {
  margin-bottom: 12px;
  color: #000;
}

.ring-card,
.table-card {
  grid-column: span 2;
}

.ring-wrap {
  width: 160px;
  height: 160px;
  position: relative;
  margin-top: 8px;
}

.ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-track,
.ring-progress {
  fill: none;
  stroke-width: 12;
}

.ring-track { stroke: #d5dbc9; }
.ring-progress {
  stroke: #000;
  stroke-linecap: round;
  transition: stroke-dasharray 220ms ease;
}

.ring-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  font-weight: 700;
  font-size: 1.45rem;
}

.muted {
  color: #000;
}

.bar-row {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.bar {
  border: 2px solid #000;
  border-radius: 999px;
  background: #c9dcc9;
  height: 12px;
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  width: 0;
  background: #000;
  transition: width 220ms ease;
}

.bar i.err {
  background: #000;
}

.sparkline {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 62px;
}

.sparkline i {
  width: 10px;
  border-radius: 0;
  background: #000;
}

.toggle-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 2px solid #000;
  border-radius: 12px;
  padding: 8px 10px;
  margin-bottom: 10px;
  background: #d8e8d8;
}

.toggle {
  border: 2px solid #000;
  border-radius: 999px;
  width: 62px;
  height: 30px;
  background: #fff;
  color: #000;
  font-size: 0.72rem;
}

.toggle.on {
  background: #000;
  color: #fff;
  border-color: #000;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

table th,
table td {
  text-align: left;
  border-bottom: 2px solid #000;
  padding: 8px 6px;
  color: #000;
}

table th {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #000;
}

.mini-pill {
  border: 2px solid #000;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.72rem;
  background: #fff;
  color: #000;
}

.mini-pill.on {
  background: #000;
  border-color: #000;
  color: #fff;
}

.mini-pill.off {
  background: #fff;
  border-color: #000;
  color: #000;
}

.front-hero {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  border: 4px solid #000;
  border-radius: 0;
  box-shadow: 8px 8px 0 #000;
  background:
    linear-gradient(0deg, rgba(255, 247, 221, 0.95), rgba(255, 247, 221, 0.95)),
    repeating-linear-gradient(
      0deg,
      rgba(45, 45, 45, 0.08) 0,
      rgba(45, 45, 45, 0.08) 1px,
      transparent 1px,
      transparent 40px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(45, 45, 45, 0.06) 0,
      rgba(45, 45, 45, 0.06) 1px,
      transparent 1px,
      transparent 40px
    ),
    radial-gradient(circle, #1f5dab 22%, transparent 24%) 0 0/18px 18px,
    radial-gradient(circle, #1f5dab 22%, transparent 24%) 9px 9px/18px 18px;
}

.dot-layer {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(0, 0, 0, 0.28) 1.1px, transparent 1.4px);
  background-size: 15px 15px;
  opacity: 0.32;
  pointer-events: none;
}

.hero-top,
.big-metric,
.side-metrics,
.wave {
  position: relative;
}

.hero-top {
  display: flex;
  gap: 10px;
}

.chip {
  border: 3px solid #000;
  border-radius: 0;
  padding: 5px 10px;
  background: #fff;
  font-weight: 700;
  text-transform: uppercase;
}

.chip.alt {
  background: #ffea00;
}

.big-metric {
  margin-top: 14px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.big-metric .num {
  font-size: clamp(4.2rem, 12vw, 8.2rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #ff174f;
  -webkit-text-stroke: 3px #000;
  text-shadow: 6px 6px 0 #000;
}

.big-metric .label {
  font-size: 1.1rem;
  color: #000;
  font-weight: 700;
  text-transform: uppercase;
}

.side-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.bubble {
  border-radius: 0;
  border: 3px solid #000;
  background: #fff;
  padding: 8px 14px;
  box-shadow: 4px 4px 0 #000;
  font-weight: 700;
  text-transform: uppercase;
}

.uptime strong {
  color: #ffb300;
  -webkit-text-stroke: 1px #000;
}

.wave {
  margin-top: 14px;
  height: 100px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.wave span {
  display: inline-block;
  width: 14px;
  border-radius: 0;
  border: 2px solid #000;
  background: #00b8d9;
  opacity: 1;
  animation: wave 1.8s ease-in-out infinite;
}

.wave span:nth-child(2n) {
  animation-delay: 0.15s;
}

.wave span:nth-child(3n) {
  animation-delay: 0.28s;
}

@keyframes wave {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.flow-form {
  display: grid;
  gap: 10px;
}

.flow-form label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
}

.flow-form input,
.flow-form textarea {
  width: 100%;
  font: inherit;
  padding: 9px 10px;
  border-radius: 0;
  border: 2px solid #000;
  background: #fff;
}

.status-pill {
  display: inline-flex;
  border: 3px solid #000;
  border-radius: 0;
  padding: 5px 10px;
  background: #ffea00;
  font-weight: 700;
  text-transform: uppercase;
}

.event-log {
  margin: 12px 0;
  display: grid;
  gap: 8px;
}

.event-log article {
  border: 2px solid #000;
  border-radius: 0;
  padding: 8px 10px;
  background: #fff;
  box-shadow: 3px 3px 0 #000;
}

.event-log p {
  margin: 0;
  color: #000;
}

.event-log p + p {
  margin-top: 4px;
  color: #000;
}

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

  .ring-card,
  .table-card {
    grid-column: span 1;
  }
}

.home-body {
  --home-bg: #07131a;
  --home-bg-soft: #0c1e28;
  --home-surface: rgba(11, 30, 40, 0.72);
  --home-line: rgba(126, 165, 178, 0.34);
  --home-ink: #f2fcff;
  --home-muted: #9ab7c3;
  --home-accent: #17c38f;
  --home-accent-deep: #0e8b67;
  margin: 0;
  color: var(--home-ink);
  font-family: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 2% 7%, rgba(23, 195, 143, 0.18), transparent 31%),
    radial-gradient(circle at 96% 13%, rgba(85, 130, 255, 0.15), transparent 34%),
    linear-gradient(180deg, #08151d 0%, var(--home-bg) 100%);
}

.home-body header {
  background: rgba(5, 16, 22, 0.82);
  border-bottom: 1px solid rgba(120, 158, 173, 0.2);
}

.home-body .logo,
.home-body .nav-links a {
  color: var(--home-ink);
}

.home-body .logo {
  letter-spacing: 0;
}

.home-body .nav-links a {
  font-size: 0.87rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--home-muted);
}

.home-body .nav-links a:hover,
.home-body .nav-links a[aria-current="page"] {
  border-color: rgba(23, 195, 143, 0.42);
  color: #d8fff3;
  background: rgba(11, 40, 33, 0.48);
}

.home-main {
  padding: 56px 0 64px;
}

.home-modal-open {
  overflow: hidden;
}

.home-gate {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 22px;
  transition: opacity 160ms ease, visibility 160ms ease;
}

.home-gate.is-closed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.home-gate-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(2, 8, 12, 0.72);
  backdrop-filter: blur(12px);
}

.home-gate-dialog {
  position: relative;
  z-index: 1;
  width: min(1040px, 100%);
  max-height: min(92vh, 960px);
  overflow: auto;
  border: 1px solid rgba(124, 173, 190, 0.34);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(23, 195, 143, 0.14), transparent 28%),
    linear-gradient(160deg, rgba(8, 24, 34, 0.98), rgba(7, 17, 24, 0.98));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
  padding: 0;
}

.home-gate-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: 680px;
}

.home-gate-rail {
  padding: 28px 24px;
  border-right: 1px solid rgba(117, 164, 180, 0.22);
  background:
    linear-gradient(180deg, rgba(7, 28, 36, 0.96), rgba(6, 20, 27, 0.96));
}

.gate-rail-title {
  margin-top: 8px;
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.04;
}

.gate-rail-copy {
  margin-top: 12px;
  color: #9fc0cf;
}

.gate-progress {
  margin-top: 24px;
  display: grid;
  gap: 10px;
}

.gate-progress-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(117, 164, 180, 0.22);
  border-radius: 14px;
  color: #92afbc;
  background: rgba(8, 25, 33, 0.56);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.gate-progress-item span {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(17, 58, 73, 0.82);
  color: #d6f7ff;
  font-size: 0.76rem;
  font-family: "IBM Plex Mono", monospace;
}

.gate-progress-item strong {
  font-size: 0.92rem;
  font-weight: 600;
}

.gate-progress-item.is-active {
  border-color: rgba(23, 195, 143, 0.45);
  color: #effcff;
  background: rgba(10, 41, 39, 0.72);
  box-shadow: inset 0 0 0 1px rgba(23, 195, 143, 0.16);
}

.gate-progress-item.is-active span {
  background: linear-gradient(140deg, rgba(23, 195, 143, 0.94), rgba(14, 139, 103, 0.94));
  color: #03110d;
}

.gate-progress-item.is-complete {
  border-color: rgba(111, 199, 171, 0.28);
  color: #ccefe2;
}

.gate-progress-item.is-locked {
  opacity: 0.48;
}

.gate-progress-bar {
  margin-top: 16px;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(18, 44, 55, 0.9);
}

.gate-progress-bar i {
  display: block;
  width: 16.66%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(140deg, var(--home-accent), var(--home-accent-deep));
  transition: width 240ms ease;
}

.gate-rail-note {
  margin-top: 22px;
  padding: 14px;
  border: 1px solid rgba(117, 164, 180, 0.22);
  border-radius: 14px;
  color: #bce8d3;
  background: rgba(8, 24, 21, 0.72);
  font-size: 0.78rem;
  line-height: 1.5;
}

.home-gate-main {
  padding: 24px 26px;
  overflow: hidden;
}

.home-gate-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #92c7d7;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gate-link {
  border: 0;
  background: transparent;
  color: #b7e8d8;
  cursor: pointer;
  font: inherit;
}

.gate-step {
  position: absolute;
  inset: 72px 26px 24px;
  margin-top: 0;
  padding: 8px 4px 4px;
  opacity: 0;
  transform: translateX(28px) scale(0.985);
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, transform 260ms ease, visibility 220ms ease;
}

.gate-step.is-active {
  position: relative;
  inset: auto;
  opacity: 1;
  transform: translateX(0) scale(1);
  visibility: visible;
  pointer-events: auto;
}

.gate-step.is-leaving {
  opacity: 0;
  transform: translateX(-18px) scale(0.985);
  visibility: hidden;
}

.gate-step h2 {
  max-width: 18ch;
  font-size: clamp(1.85rem, 4vw, 3.2rem);
  letter-spacing: -0.03em;
}

.gate-intro-card {
  margin-top: 6px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
}

.gate-intro-copy,
.gate-intro-meta {
  border: 1px solid rgba(117, 164, 180, 0.26);
  border-radius: 18px;
  background: rgba(8, 28, 38, 0.78);
}

.gate-intro-copy {
  padding: 22px;
  background:
    radial-gradient(circle at top left, rgba(23, 195, 143, 0.14), transparent 30%),
    rgba(8, 28, 38, 0.84);
}

.gate-inline-form {
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
}

.gate-inline-label {
  flex: 1;
  display: grid;
  gap: 6px;
  color: #d8edf6;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.gate-inline-label span {
  font-size: 0.77rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gate-inline-label input {
  width: 100%;
  border: 1px solid rgba(116, 160, 179, 0.45);
  border-radius: 12px;
  background: rgba(7, 21, 29, 0.94);
  color: #edfbff;
  padding: 12px 14px;
  font: inherit;
}

.gate-inline-label input:focus {
  outline: 2px solid rgba(23, 195, 143, 0.33);
  outline-offset: 0;
}

.gate-inline-form .btn {
  position: relative;
  z-index: 2;
  min-width: 132px;
}

.gate-intro-meta {
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 12px;
}

.gate-intro-badge {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(18, 90, 68, 0.32);
  color: #c2ffe9;
  border: 1px solid rgba(23, 195, 143, 0.32);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gate-intro-lead {
  margin: 0;
  color: #eefcff;
  font-size: 1rem;
  line-height: 1.45;
}

.gate-intro-points {
  display: grid;
  gap: 8px;
  font-size: 0.78rem;
  color: #9fd0bf;
}

.gate-intro-points span {
  padding: 8px 10px;
  border: 1px solid rgba(117, 164, 180, 0.2);
  border-radius: 12px;
  background: rgba(7, 22, 30, 0.76);
}

.gate-intro-actions {
  justify-content: flex-start;
}

.gate-success-panel {
  margin-top: 6px;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(117, 164, 180, 0.28);
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(23, 195, 143, 0.16), transparent 34%),
    rgba(8, 30, 35, 0.86);
}

.gate-success-mark {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: rgba(10, 65, 49, 0.58);
  border: 1px solid rgba(23, 195, 143, 0.42);
}

.gate-success-mark span {
  width: 22px;
  height: 12px;
  border-left: 3px solid #d7ffef;
  border-bottom: 3px solid #d7ffef;
  transform: rotate(-45deg) translate(1px, -1px);
}

.gate-success-track {
  margin-top: 16px;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(16, 44, 53, 0.8);
}

.gate-success-fill {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  animation: gate-success-fill 720ms ease forwards;
  background: linear-gradient(140deg, rgba(23, 195, 143, 0.94), rgba(112, 225, 182, 0.94));
}

@keyframes gate-success-fill {
  from { transform: scaleX(0.18); opacity: 0.55; }
  to { transform: scaleX(1); opacity: 1; }
}

.gate-callouts {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gate-callouts span,
.home-onboarding-card,
.gate-detail-card {
  border: 1px solid rgba(117, 164, 180, 0.32);
  border-radius: 16px;
  background: rgba(9, 31, 41, 0.72);
}

.gate-callouts span {
  padding: 8px 12px;
  color: #d8f5ff;
  font-size: 0.9rem;
}

.gate-detail-grid,
.home-onboarding-grid {
  margin-top: 18px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gate-detail-card,
.home-onboarding-card {
  padding: 18px;
}

.gate-detail-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.gate-detail-card p,
.home-onboarding-card p:last-child {
  margin: 0;
  color: #c2dbe7;
}

.home-hero {
  padding: 42px;
  border: 1px solid var(--home-line);
  border-radius: 28px;
  background:
    linear-gradient(130deg, rgba(12, 36, 47, 0.72), rgba(8, 22, 30, 0.88));
  box-shadow: 0 28px 56px rgba(3, 10, 15, 0.4);
}

.home-hero h1 {
  margin-top: 8px;
  max-width: 14ch;
  font-size: clamp(2rem, 5vw, 4.25rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
}

.home-body .sub {
  margin-top: 16px;
  color: var(--home-muted);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
}

.hero-kicker {
  margin: 0;
  color: #89edcd;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.home-body .btn {
  border-radius: 12px;
  border: 1px solid var(--home-line);
  background: rgba(9, 31, 42, 0.9);
  color: var(--home-ink);
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.home-body .btn:hover {
  transform: translateY(-1px);
  border-color: rgba(151, 203, 223, 0.62);
}

.home-body .btn.primary {
  border: 0;
  background: linear-gradient(140deg, var(--home-accent), var(--home-accent-deep));
}

.hero-grid,
.home-value-grid,
.home-spec-grid {
  margin-top: 26px;
  display: grid;
  gap: 14px;
}

.hero-grid,
.home-value-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-spec-grid {
  grid-template-columns: 1.15fr 0.85fr;
}

.hero-card,
.home-panel,
.home-demo-panel {
  border: 1px solid var(--home-line);
  border-radius: 18px;
  background: var(--home-surface);
  backdrop-filter: blur(10px);
}

.hero-card,
.home-panel {
  padding: 20px;
}

.hero-card-key {
  margin: 0;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8fd8be;
}

.hero-card-value {
  margin: 10px 0 0;
  font-size: 1rem;
  color: #e4f7ff;
  line-height: 1.4;
}

.home-panel h2,
.home-demo-panel h2 {
  font-size: clamp(1.28rem, 1.8vw, 2rem);
  letter-spacing: -0.02em;
}

.home-demo-panel {
  padding: 30px;
  background:
    radial-gradient(circle at 14% 0%, rgba(20, 184, 138, 0.16), transparent 30%),
    linear-gradient(150deg, rgba(7, 27, 37, 0.82), rgba(10, 24, 34, 0.93));
}

.flow-nodes {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.flow-nodes span {
  padding: 10px 8px;
  border-radius: 10px;
  text-align: center;
  font-size: 0.79rem;
  border: 1px solid rgba(131, 173, 192, 0.35);
  background: rgba(9, 31, 40, 0.7);
}

.chip-row {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.state-chip {
  border: 1px solid rgba(118, 162, 181, 0.44);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.76rem;
  color: #b8d7e5;
}

.state-chip.active {
  border-color: rgba(28, 201, 149, 0.52);
  color: #c4ffe9;
  background: rgba(12, 92, 68, 0.33);
}

.state-strip {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.state-step {
  border-radius: 999px;
  border: 1px solid rgba(137, 179, 197, 0.32);
  padding: 5px 12px;
  font-size: 0.78rem;
  color: #8ea8b4;
}

.state-step.on {
  border-color: rgba(28, 201, 149, 0.55);
  color: #b6ffe5;
  background: rgba(13, 94, 70, 0.38);
}

.state-step.live {
  box-shadow: 0 0 0 1px rgba(69, 225, 176, 0.45);
}

.flow-live {
  margin-top: 12px;
  color: #99c4d8;
  font-size: 0.8rem;
}

.home-body .code {
  margin-top: 14px;
  background: #061118;
  border: 1px solid rgba(113, 162, 182, 0.38);
  color: #dcf3ff;
}

.home-waitlist label {
  color: #d5ebf5;
}

.home-waitlist input,
.home-waitlist textarea {
  width: 100%;
  margin-top: 6px;
  border: 1px solid rgba(116, 160, 179, 0.45);
  border-radius: 10px;
  background: rgba(7, 21, 29, 0.94);
  color: #edfbff;
  padding: 10px;
  font: inherit;
}

.home-waitlist input:focus,
.home-waitlist textarea:focus {
  outline: 2px solid rgba(23, 195, 143, 0.33);
  outline-offset: 0;
}

.home-body .waitlist-result {
  margin-top: 10px;
  border: 1px solid rgba(117, 167, 184, 0.45);
  border-radius: 10px;
  background: rgba(7, 26, 36, 0.84);
  padding: 10px;
  color: #d6f5ff;
}

.home-onboarding-card .hero-card-key {
  margin-bottom: 10px;
}

.home-footer {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(113, 150, 165, 0.3);
  color: #82a4b4;
  font-size: 0.86rem;
}

.home-brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.home-brand-row img:first-child {
  width: 38px;
  height: 38px;
}

.home-brand-row img:last-child {
  height: 20px;
  width: auto;
  filter: brightness(0) invert(1) saturate(0) opacity(0.86);
}

@media (max-width: 1080px) {
  .home-gate-shell {
    grid-template-columns: 1fr;
  }

  .home-gate-rail {
    border-right: 0;
    border-bottom: 1px solid rgba(117, 164, 180, 0.22);
  }

  .hero-grid,
  .home-value-grid,
  .home-spec-grid {
    grid-template-columns: 1fr;
  }

  .gate-detail-grid,
  .home-onboarding-grid,
  .gate-intro-card,
  .flow-nodes {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .home-main {
    padding-top: 30px;
  }

  .home-hero,
  .home-demo-panel,
  .home-panel {
    padding: 18px;
    border-radius: 16px;
  }

  .home-hero h1 {
    font-size: clamp(1.8rem, 11vw, 2.8rem);
  }

  .home-body .nav-links {
    justify-content: flex-end;
  }

  .home-gate {
    padding: 12px;
  }

  .home-gate-dialog {
    border-radius: 20px;
  }

  .home-gate-rail,
  .home-gate-main {
    padding: 18px;
  }

  .home-gate-topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .gate-step {
    inset: 72px 18px 18px;
  }

  .gate-inline-form,
  .gate-success-panel {
    grid-template-columns: 1fr;
  }

  .gate-inline-form {
    align-items: stretch;
  }

  .gate-step h2 {
    max-width: none;
    font-size: clamp(1.7rem, 10vw, 2.4rem);
  }

  .gate-progress {
    grid-template-columns: 1fr;
  }
}

/* Unified 2026 refresh for all non-home surfaces */
.info-body,
.front-body,
.ops-body {
  color: #e9f6ff;
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 8% 8%, rgba(19, 183, 142, 0.14), transparent 32%),
    radial-gradient(circle at 94% 10%, rgba(72, 124, 255, 0.14), transparent 35%),
    linear-gradient(180deg, #08141d 0%, #0a1b27 100%);
}

.info-body header,
.front-body header,
.ops-body header {
  background: rgba(6, 16, 23, 0.88);
  border-bottom: 1px solid rgba(119, 158, 178, 0.24);
}

.info-body .logo,
.info-body .nav-links a,
.front-body .logo,
.front-body .nav-links a,
.ops-body .logo,
.ops-body .nav-links a {
  color: #d9effb;
}

.info-body .nav-links a,
.front-body .nav-links a,
.ops-body .nav-links a {
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.01em;
  padding: 7px 12px;
}

.info-body .nav-links a:hover,
.info-body .nav-links a[aria-current="page"],
.front-body .nav-links a:hover,
.front-body .nav-links a[aria-current="page"],
.ops-body .nav-links a:hover,
.ops-body .nav-links a[aria-current="page"] {
  background: rgba(15, 57, 48, 0.5);
  color: #b8ffe8;
  border-color: rgba(26, 201, 150, 0.42);
}

.info-body .card,
.front-body .card,
.ops-card {
  border: 1px solid rgba(121, 163, 184, 0.32);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(11, 31, 42, 0.92), rgba(8, 22, 31, 0.94));
  box-shadow: 0 20px 44px rgba(3, 10, 14, 0.34);
}

.info-body .card.soft,
.front-body .card.soft {
  background: linear-gradient(160deg, rgba(10, 28, 38, 0.95), rgba(7, 19, 28, 0.96));
}

.info-body .pill,
.front-body .pill,
.info-body .badge,
.front-body .badge,
.info-body .security-chip,
.front-body .security-chip,
.info-body .status-pill,
.front-body .status-pill,
.front-body .chip,
.front-body .bubble {
  border: 1px solid rgba(118, 164, 186, 0.45);
  border-radius: 999px;
  background: rgba(8, 26, 36, 0.78);
  color: #bde7fb;
  text-transform: none;
  box-shadow: none;
}

.info-body .btn,
.front-body .btn,
.ops-body .btn {
  border: 1px solid rgba(118, 164, 186, 0.5);
  border-radius: 11px;
  background: rgba(9, 30, 41, 0.9);
  color: #eaf7ff;
  box-shadow: none;
}

.info-body .btn.primary,
.front-body .btn.primary,
.ops-body .btn.primary {
  border: 0;
  background: linear-gradient(135deg, #15c18f, #0e8b67);
  color: #edfff8;
}

.info-body .btn:hover,
.front-body .btn:hover,
.ops-body .btn:hover {
  border-color: rgba(147, 205, 226, 0.7);
}

.info-body .sub,
.info-body .list,
.info-body .footer,
.front-body .sub,
.front-body .list,
.front-body .footer,
.ops-body .muted {
  color: #9fc0d2;
}

.info-body .code,
.info-body .snippet-box,
.info-body .waitlist-result,
.info-body .demo-board,
.front-body .event-log article,
.front-body .flow-form input,
.front-body .flow-form textarea,
.ops-card table,
.ops-card .bar,
.ops-card .toggle,
.ops-card table th,
.ops-card table td {
  border-radius: 12px;
  border: 1px solid rgba(118, 158, 177, 0.36);
  background: rgba(7, 20, 29, 0.9);
  color: #dcf4ff;
  box-shadow: none;
}

.info-body .node,
.info-body .chat-msg,
.info-body .status-line,
.info-body .demo-board,
.front-body .event-log article,
.front-body .status-pill,
.front-body .bubble,
.ops-card,
.ops-card .toggle,
.ops-card .ring-track,
.ops-card .ring-progress,
.ops-card .bubble {
  border-radius: 12px;
}

.info-body .chat-msg.outgoing {
  background: rgba(8, 76, 61, 0.35);
}

.info-body .chat-msg.incoming {
  background: rgba(31, 46, 83, 0.35);
}

.info-body .node.active,
.info-body .badge.ok,
.info-body .badge.alert {
  background: rgba(14, 86, 67, 0.5);
  color: #d9ffef;
}

.front-body .front-hero {
  border: 1px solid rgba(118, 165, 186, 0.32);
  border-radius: 20px;
  background: radial-gradient(circle at 0 0, rgba(22, 178, 141, 0.2), transparent 38%), linear-gradient(160deg, rgba(12, 34, 47, 0.93), rgba(8, 22, 32, 0.95));
}

.front-body .num {
  color: #e6f8ff;
  -webkit-text-stroke: 0;
}

.front-body .wave span {
  border: 1px solid rgba(126, 171, 193, 0.48);
  background: linear-gradient(180deg, #1fcf9c, #148f73);
}

.ops-card {
  padding: 18px;
}

.ops-card h1,
.ops-card h2,
.ops-body,
.ops-body .btn,
.ops-body .logo,
.ops-body .nav-links a {
  color: #eaf8ff;
}

.ops-card .bar {
  height: 10px;
}

.ops-card .bar i {
  border-radius: 8px;
  background: linear-gradient(90deg, #17c48f, #0f8b68);
}

.ops-card .bar i.err {
  background: linear-gradient(90deg, #e28764, #ca563f);
}

.ops-card .toggle {
  min-width: 66px;
}

.ops-card .toggle.on {
  color: #beffe8;
  background: rgba(10, 95, 71, 0.5);
  border-color: rgba(23, 195, 143, 0.45);
}

.ops-card table {
  width: 100%;
  border-collapse: collapse;
}

.ops-card table th,
.ops-card table td {
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid rgba(112, 153, 173, 0.28);
  background: transparent;
  color: #d7edfa;
}

@media (max-width: 960px) {
  .info-body .nav-links,
  .front-body .nav-links,
  .ops-body .nav-links {
    justify-content: flex-start;
  }
}

.stream-session,
.stream-status {
  margin-top: 10px;
  color: #9ec5d9;
  font-size: 0.82rem;
}

.stream-list {
  display: grid;
  gap: 12px;
}

.stream-thread {
  border: 1px solid rgba(113, 156, 177, 0.35);
  border-radius: 14px;
  padding: 14px;
  background: rgba(8, 24, 34, 0.88);
}

.stream-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.stream-head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.stream-proposals {
  margin-top: 8px;
  border: 1px dashed rgba(119, 163, 185, 0.35);
  border-radius: 10px;
  padding: 8px;
  display: grid;
  gap: 6px;
}

.stream-thread .flow-form textarea,
.stream-thread .flow-form input {
  background: rgba(6, 19, 27, 0.95);
}

@media (max-width: 760px) {
  .stream-head {
    align-items: flex-start;
  }
}

.observatory-body {
  --obs-bg: #060b11;
  --obs-bg-soft: #0b121a;
  --obs-panel: rgba(10, 16, 24, 0.9);
  --obs-panel-2: rgba(13, 21, 32, 0.9);
  --obs-line: rgba(102, 128, 155, 0.28);
  --obs-line-strong: rgba(109, 229, 181, 0.45);
  --obs-ink: #edf7ff;
  --obs-muted: #8ea4bb;
  --obs-accent: #24d79a;
  --obs-accent-2: #73f0c4;
  --obs-warm: #f8b24b;
  --obs-danger: #a3afbd;
  margin: 0;
  color: var(--obs-ink);
  font-family: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 3% 6%, rgba(41, 214, 158, 0.16), transparent 28%),
    radial-gradient(circle at 96% 12%, rgba(69, 127, 255, 0.16), transparent 32%),
    linear-gradient(180deg, #04070b 0%, #08111a 45%, #05090e 100%);
}

.observatory-body header {
  background: rgba(4, 8, 13, 0.82);
  border-bottom: 1px solid rgba(111, 140, 166, 0.18);
}

.observatory-body .logo,
.observatory-body .nav-links a {
  color: var(--obs-ink);
}

.observatory-body .nav-links a {
  color: var(--obs-muted);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 7px 12px;
}

.observatory-body .nav-links a:hover,
.observatory-body .nav-links a[aria-current="page"] {
  background: rgba(17, 47, 41, 0.52);
  border-color: rgba(65, 205, 156, 0.32);
  color: #dffef2;
}

.observatory-main {
  padding: 34px 0 56px;
}

.observatory-hero,
.observatory-panel,
.tool-card,
.log-panel,
.chain-item,
.message-pill,
.queue-item,
.snapshot-item {
  border: 1px solid var(--obs-line);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.32);
}

.observatory-hero,
.observatory-panel,
.tool-card,
.log-panel {
  background: linear-gradient(160deg, rgba(9, 14, 22, 0.94), rgba(5, 10, 17, 0.96));
  backdrop-filter: blur(12px);
}

.observatory-hero {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 18px;
  padding: 30px;
  border-radius: 26px;
}

.observatory-hero h1 {
  margin-top: 8px;
  max-width: 11ch;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.observatory-hero .sub {
  max-width: 66ch;
  color: var(--obs-muted);
}

.observatory-hero-rail {
  display: grid;
  gap: 12px;
}

.observatory-hero-metric {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(109, 142, 167, 0.22);
  background: linear-gradient(180deg, rgba(9, 17, 28, 0.96), rgba(7, 12, 19, 0.94));
}

.observatory-hero-metric span {
  display: block;
  color: #89a8bf;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.observatory-hero-metric strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(2rem, 6vw, 3rem);
  letter-spacing: -0.05em;
}

.observatory-shell {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
}

.observatory-panel {
  border-radius: 24px;
  padding: 18px;
}

.observatory-panel-head,
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.observatory-panel-head {
  margin-bottom: 14px;
}

.observatory-label,
.section-copy,
.tool-title,
.canvas-copy,
.tool-badge {
  color: #89a7bc;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.observatory-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: radial-gradient(circle, var(--obs-accent-2), var(--obs-accent));
  box-shadow: 0 0 16px rgba(36, 215, 154, 0.9);
}

.chain-section + .chain-section {
  margin-top: 18px;
}

.chain-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.chain-item {
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(11, 19, 29, 0.92), rgba(7, 14, 23, 0.94));
}

.chain-item-active {
  border-color: rgba(62, 220, 166, 0.32);
  position: relative;
  overflow: hidden;
}

.chain-item-active::after {
  content: "";
  position: absolute;
  inset: auto -20% -1px -20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(93, 244, 191, 0.88), transparent);
  animation: obs-scan 2.4s linear infinite;
}

.chain-item-dead {
  opacity: 0.72;
  border-color: rgba(122, 136, 149, 0.18);
}

.chain-item-top,
.message-pill-top,
.snapshot-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.chain-meta,
.message-meta,
.snapshot-meta {
  color: var(--obs-muted);
  font-size: 0.78rem;
}

.chain-badge,
.message-state {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(118, 145, 170, 0.28);
}

.chain-badge-ac,
.message-state-live {
  color: #c4ffe8;
  background: rgba(14, 96, 71, 0.34);
  border-color: rgba(72, 232, 180, 0.36);
}

.chain-badge-dc,
.message-state-archive {
  color: #cad6e0;
  background: rgba(65, 76, 90, 0.32);
}

.observatory-search {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.observatory-search input {
  width: 100%;
  border: 1px solid rgba(113, 143, 166, 0.26);
  border-radius: 12px;
  background: rgba(7, 14, 23, 0.96);
  color: var(--obs-ink);
  padding: 10px 12px;
  font: inherit;
}

.observatory-canvas {
  min-width: 0;
}

.pipeline-stage {
  position: relative;
  min-height: 460px;
  border-radius: 22px;
  border: 1px solid rgba(113, 143, 166, 0.22);
  background:
    linear-gradient(0deg, rgba(7, 14, 23, 0.96), rgba(7, 14, 23, 0.96)),
    linear-gradient(rgba(87, 111, 136, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(87, 111, 136, 0.1) 1px, transparent 1px);
  background-size: auto, 40px 40px, 40px 40px;
  overflow: hidden;
}

.pipeline-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 16px 0;
  color: #8ea8bc;
  font-size: 0.72rem;
}

.pipeline-legend span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.legend-line {
  width: 24px;
  height: 2px;
  display: inline-block;
  border-radius: 999px;
}

.legend-in {
  background: linear-gradient(90deg, rgba(78, 222, 171, 0.15), rgba(78, 222, 171, 1));
}

.legend-out {
  background: linear-gradient(90deg, rgba(248, 178, 75, 1), rgba(248, 178, 75, 0.15));
}

.legend-ac {
  background: linear-gradient(90deg, rgba(109, 240, 196, 0.2), rgba(109, 240, 196, 1), rgba(109, 240, 196, 0.2));
}

.legend-dc {
  background: linear-gradient(90deg, rgba(152, 164, 176, 0.15), rgba(152, 164, 176, 0.8));
}

.pipeline-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 18px;
  padding: 20px 18px 18px;
}

.pipeline-node {
  position: relative;
  border-radius: 20px;
  border: 1px solid rgba(113, 146, 172, 0.28);
  background: linear-gradient(180deg, rgba(10, 17, 27, 0.96), rgba(7, 13, 21, 0.96));
  padding: 16px;
  min-height: 260px;
}

.pipeline-node::before,
.pipeline-node::after {
  content: "";
  position: absolute;
  top: 46%;
  width: 34px;
  height: 2px;
  border-radius: 999px;
}

.pipeline-node::before {
  left: -18px;
  background: linear-gradient(90deg, rgba(71, 213, 163, 0.18), rgba(71, 213, 163, 1));
}

.pipeline-node::after {
  right: -18px;
  background: linear-gradient(90deg, rgba(248, 178, 75, 1), rgba(248, 178, 75, 0.18));
}

.pipeline-node-active {
  border-color: rgba(67, 225, 169, 0.38);
  box-shadow: inset 0 0 0 1px rgba(54, 185, 139, 0.12), 0 0 0 1px rgba(12, 45, 34, 0.6);
}

.pipeline-node-active::before,
.pipeline-node-active::after {
  animation: obs-pulse-line 1.6s ease-in-out infinite;
}

.pipeline-node-archived {
  opacity: 0.66;
  filter: saturate(0.65);
}

.pipeline-node-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.pipeline-node h3 {
  font-size: 1.05rem;
}

.node-proof {
  margin-top: 12px;
  color: #91aabd;
  font-size: 0.73rem;
}

.node-channel {
  margin-top: 14px;
}

.node-channel-label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #8ea8bc;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.message-cluster {
  margin-top: 8px;
  display: grid;
  gap: 8px;
}

.message-pill,
.queue-item,
.snapshot-item {
  border-radius: 14px;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(14, 24, 36, 0.92), rgba(10, 16, 25, 0.95));
}

.message-pill {
  cursor: pointer;
  user-select: none;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.message-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(143, 186, 213, 0.46);
}

.message-pill.selected,
.message-pill.preselected,
.queue-item.selected {
  border-color: rgba(85, 230, 180, 0.64);
  background: linear-gradient(180deg, rgba(11, 64, 49, 0.62), rgba(8, 26, 23, 0.92));
}

.message-pill[data-direction="outflow"] {
  border-color: rgba(248, 178, 75, 0.3);
}

.message-body,
.queue-body {
  margin-top: 8px;
  color: #ddecf8;
  font-size: 0.88rem;
  line-height: 1.45;
}

.selection-box {
  position: fixed;
  z-index: 80;
  border: 1px solid rgba(99, 239, 188, 0.92);
  background: rgba(27, 154, 117, 0.18);
  box-shadow: inset 0 0 0 1px rgba(166, 255, 221, 0.22);
  pointer-events: none;
}

.observatory-log-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}

.log-panel {
  border-radius: 20px;
  padding: 16px;
}

.message-log,
.snapshot-log,
.queue-list,
.tool-stack {
  display: grid;
  gap: 10px;
}

.message-log,
.snapshot-log,
.queue-list {
  max-height: 340px;
  overflow: auto;
  padding-right: 4px;
}

.observatory-tools .tool-stack {
  gap: 12px;
}

.tool-card {
  border-radius: 18px;
  padding: 16px;
}

.tool-copy,
.tool-foot,
.queue-empty,
.snapshot-empty {
  color: var(--obs-muted);
  font-size: 0.85rem;
}

.tool-actions {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.release-list {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.release-list a {
  color: #cce7f9;
  text-decoration: none;
}

.release-list a:hover {
  color: #ffffff;
}

.snapshot-reason {
  margin-top: 6px;
  color: #dceaf7;
  font-size: 0.84rem;
}

@keyframes obs-pulse-line {
  0%, 100% {
    opacity: 0.45;
    transform: scaleX(0.92);
  }
  50% {
    opacity: 1;
    transform: scaleX(1.1);
  }
}

@keyframes obs-scan {
  0% {
    transform: translateX(-12%);
  }
  100% {
    transform: translateX(12%);
  }
}

@media (max-width: 1220px) {
  .observatory-shell {
    grid-template-columns: 1fr;
  }

  .observatory-hero,
  .observatory-log-grid {
    grid-template-columns: 1fr;
  }

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

  .pipeline-node::before,
  .pipeline-node::after {
    display: none;
  }
}

@media (max-width: 720px) {
  .observatory-main {
    padding-top: 24px;
  }

  .observatory-hero,
  .observatory-panel,
  .tool-card,
  .log-panel {
    border-radius: 18px;
    padding: 16px;
  }

  .observatory-hero h1 {
    max-width: none;
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .pipeline-stage {
    min-height: 380px;
  }
}

.stream-body {
  --stream-ink: #edf7ff;
  --stream-muted: #95abc0;
  --stream-line: rgba(110, 140, 166, 0.28);
  --stream-accent: #22d69a;
  margin: 0;
  color: var(--stream-ink);
  font-family: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 8% 6%, rgba(34, 214, 154, 0.14), transparent 28%),
    radial-gradient(circle at 92% 12%, rgba(86, 132, 255, 0.13), transparent 30%),
    linear-gradient(180deg, #04070b 0%, #08121a 42%, #06090f 100%);
}

.stream-body header {
  background: rgba(4, 8, 12, 0.84);
  border-bottom: 1px solid rgba(110, 140, 166, 0.16);
}

.stream-body .logo,
.stream-body .nav-links a {
  color: var(--stream-ink);
}

.stream-body .nav-links a {
  color: var(--stream-muted);
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 7px 12px;
}

.stream-body .nav-links a:hover,
.stream-body .nav-links a[aria-current="page"] {
  color: #dcfff1;
  border-color: rgba(76, 225, 173, 0.3);
  background: rgba(14, 45, 38, 0.44);
}

.stream-body .nav {
  align-items: flex-start;
}

.stream-body .nav-links {
  justify-content: flex-end;
}

.stream-main {
  padding: 34px 0 60px;
}

.stream-entry-card,
.stream-onboarding-card,
.stream-panel,
.stream-thread,
.explain-card,
.identity-card,
.event-row,
.proposal-row {
  border: 1px solid var(--stream-line);
  background: linear-gradient(160deg, rgba(9, 14, 22, 0.94), rgba(5, 10, 17, 0.96));
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.34);
}

.stream-entry-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 360px;
  gap: 16px;
}

.stream-entry-card,
.stream-onboarding-card {
  border-radius: 26px;
  padding: 24px;
}

.stream-entry-card h1 {
  margin-top: 8px;
  max-width: 11ch;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 0.99;
  letter-spacing: -0.04em;
}

.stream-entry-card .sub,
.stream-guide,
.stream-guide p,
.identity-card .sub,
.explain-card .sub,
.stream-status-copy {
  color: var(--stream-muted);
}

.stream-hero-metrics {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.stream-stat {
  border-radius: 18px;
  border: 1px solid rgba(110, 140, 166, 0.22);
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(9, 17, 28, 0.96), rgba(7, 12, 19, 0.94));
}

.stream-stat span,
.stream-label,
.stream-thread-label,
.stream-mini-copy {
  color: #8ea7bb;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stream-stat strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  letter-spacing: -0.05em;
}

.stream-shell {
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
}

.stream-panel {
  border-radius: 24px;
  padding: 18px;
}

.stream-panel-block + .stream-panel-block {
  margin-top: 16px;
}

.stream-signup-form {
  margin-top: 18px;
}

.stream-headline,
.identity-head,
.proposal-head,
.stream-thread-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.stream-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: radial-gradient(circle, #76f2ca, var(--stream-accent));
  box-shadow: 0 0 16px rgba(34, 214, 154, 0.82);
}

.stream-guide {
  margin-top: 12px;
  display: grid;
  gap: 8px;
  font-size: 0.88rem;
}

.stream-session {
  margin-top: 14px;
}

.onboarding-steps {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.onboarding-step {
  border-radius: 16px;
  border: 1px solid rgba(110, 140, 166, 0.22);
  background: rgba(8, 14, 23, 0.88);
  padding: 14px;
}

.onboarding-step strong {
  display: block;
  font-size: 0.96rem;
}

.onboarding-step p {
  margin-top: 8px;
  color: var(--stream-muted);
  font-size: 0.86rem;
}

.onboarding-step.is-active {
  border-color: rgba(76, 225, 173, 0.42);
  box-shadow: inset 0 0 0 1px rgba(26, 116, 87, 0.4);
}

.onboarding-step.is-complete {
  background: linear-gradient(180deg, rgba(10, 61, 47, 0.54), rgba(8, 18, 22, 0.9));
  border-color: rgba(76, 225, 173, 0.34);
}

.identity-card,
.explain-card,
.event-row,
.proposal-row {
  border-radius: 16px;
  padding: 14px;
}

.identity-grid,
.stream-explainer-grid {
  display: grid;
  gap: 12px;
}

.identity-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.identity-kv {
  border-radius: 14px;
  border: 1px solid rgba(110, 140, 166, 0.22);
  padding: 12px;
  background: rgba(10, 17, 27, 0.9);
}

.identity-kv span {
  display: block;
  color: #8ea7bb;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.identity-kv strong {
  display: block;
  margin-top: 8px;
  font-size: 1.4rem;
}

.identity-bars {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stream-explainer-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 16px 0;
}

.stream-list {
  display: grid;
  gap: 14px;
}

.stream-thread {
  border-radius: 20px;
  padding: 18px;
}

.stream-thread-grid,
.stream-thread-tools {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.thread-column {
  border-radius: 16px;
  border: 1px solid rgba(110, 140, 166, 0.2);
  background: rgba(8, 14, 23, 0.88);
  padding: 14px;
}

.stream-proposals,
.live-event-list {
  display: grid;
  gap: 10px;
}

.live-event-list {
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.proposal-row p,
.event-row p {
  margin: 8px 0 0;
  color: #dbeaf7;
  font-size: 0.9rem;
}

.stream-body .flow-form input,
.stream-body .flow-form textarea {
  width: 100%;
  border: 1px solid rgba(110, 140, 166, 0.28);
  border-radius: 12px;
  background: rgba(7, 13, 20, 0.94);
  color: var(--stream-ink);
  padding: 10px 12px;
  font: inherit;
}

.stream-body .btn {
  border-radius: 12px;
  border: 1px solid rgba(110, 140, 166, 0.36);
  background: rgba(9, 16, 26, 0.92);
  color: var(--stream-ink);
}

.stream-body .btn.primary {
  border: 0;
  background: linear-gradient(135deg, #18c58f, #0d8b67);
}

@media (max-width: 1220px) {
  .stream-entry-shell,
  .stream-shell,
  .stream-explainer-grid,
  .stream-thread-grid,
  .stream-thread-tools {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .stream-main {
    padding-top: 24px;
  }

  .stream-entry-card,
  .stream-onboarding-card,
  .stream-panel,
  .stream-thread {
    border-radius: 18px;
    padding: 16px;
  }

  .stream-entry-card h1 {
    max-width: none;
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .stream-body .nav {
    align-items: center;
  }

  .stream-body .nav-links {
    justify-content: flex-start;
  }
}
