:root {
  --bg: #ffffff;
  --bg-soft: #f3f3f3;
  --canvas: #eeeeee;
  --surface: #fafafa;
  --surface-soft: #f2f2f2;
  --panel: rgba(255, 255, 255, 0.94);
  --panel-strong: rgba(255, 255, 255, 0.98);
  --ink: #050505;
  --muted: #4e4e4e;
  --quiet: #777;
  --line: rgba(0, 0, 0, 0.13);
  --line-strong: rgba(0, 0, 0, 0.38);
  --white: #fff;
  --black: #000;
  --shadow: rgba(0, 0, 0, 0.12);
  --font-ui: Aptos, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Palatino Linotype", "Book Antiqua", Cambria, Georgia, serif;
  --font-mono: "Cascadia Code", Consolas, "SFMono-Regular", monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-ui);
  background:
    radial-gradient(circle at 12% 10%, rgba(0, 0, 0, 0.045), transparent 24rem),
    radial-gradient(circle at 86% 18%, rgba(0, 0, 0, 0.035), transparent 28rem),
    linear-gradient(135deg, #f9f9f9 0%, var(--canvas) 54%, #f8f8f8 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(0, 0, 0, 0.045) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 88%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0 45%, rgba(0, 0, 0, 0.025) 50%, transparent 55%),
    radial-gradient(circle at 50% 120%, rgba(0, 0, 0, 0.035), transparent 34rem);
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(242, 242, 242, 0.9)),
    var(--panel);
  box-shadow:
    0 18px 60px var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.static-page {
  display: grid;
  gap: 18px;
}

.page-nav {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  position: relative;
  z-index: 60;
  padding: 16px 22px;
}

.brand-link {
  color: var(--ink);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-decoration: none;
}

.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  padding: 34px;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: 34px;
  bottom: 34px;
  width: min(420px, 42vw);
  height: min(260px, 30vw);
  border: 2px solid var(--black);
  border-radius: 28px;
  opacity: 0.08;
  background:
    linear-gradient(90deg, transparent 0 49.5%, var(--black) 49.5% 50.5%, transparent 50.5%),
    linear-gradient(transparent 0 49.5%, var(--black) 49.5% 50.5%, transparent 50.5%);
}

.page-hero h1 {
  max-width: 960px;
  margin-top: 42px;
}

.page-hero p:not(.eyebrow) {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.page-grid {
  display: grid;
  gap: 18px;
}

.page-grid.two {
  grid-template-columns: 1fr 1fr;
}

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

.page-card {
  padding: 26px;
}

.page-card h2 {
  margin-top: 12px;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.045em;
}

.page-card p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.62;
}

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

.object-list span,
.state-chain span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 13px;
  background: rgba(255, 255, 255, 0.72);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
}

.state-chain {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.state-chain span {
  position: relative;
  text-align: center;
}

.state-chain span:not(:last-child)::after {
  content: "->";
  position: absolute;
  right: -14px;
  color: var(--black);
}

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

.docs-grid {
  margin-bottom: 18px;
}

.hero {
  position: relative;
  z-index: 1000;
  display: block;
  padding: 18px 22px;
  margin-bottom: 18px;
  overflow: visible;
}

.hero-top,
.hero-bottom {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-start;
}

.hero-top {
  position: relative;
  align-items: center;
}

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

.site-nav a {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 9px 11px;
  color: var(--muted);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-nav a:hover {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(0, 0, 0, 0.035);
}

.mega-nav {
  position: static;
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-height: 42px;
}

.mega-item {
  position: static;
}

.mega-trigger {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--muted);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition:
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.mega-trigger:hover,
.mega-item:focus-within .mega-trigger,
.mega-item:hover .mega-trigger {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--white);
  background: var(--black);
}

.mega-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 14px);
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) repeat(3, minmax(0, 1fr));
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
  padding: 24px;
  color: var(--white);
  background:
    radial-gradient(circle at 75% 20%, rgba(255, 255, 255, 0.12), transparent 20rem),
    #050505;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.32);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity 170ms ease,
    transform 170ms ease,
    visibility 170ms ease;
}

.mega-item:hover .mega-panel,
.mega-item:focus-within .mega-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.mega-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 44px 44px;
}

.mega-overview,
.mega-panel a {
  position: relative;
  z-index: 1;
}

.mega-overview {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 170px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  padding-right: 20px;
}

.mega-overview strong {
  font-size: 24px;
  letter-spacing: -0.03em;
}

.mega-overview span,
.mega-panel a span {
  color: rgba(255, 255, 255, 0.66);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
}

.mega-panel a {
  display: grid;
  align-content: center;
  min-height: 112px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  padding: 16px;
  color: var(--white);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.035);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.mega-panel a:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.09);
}

.mega-panel a strong {
  font-size: 17px;
  letter-spacing: -0.02em;
}

.hero-statement {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 28px;
  align-items: stretch;
  margin-top: 42px;
}

.hero-bottom {
  align-items: flex-end;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  min-width: 250px;
}

.hero-title {
  flex: 1 1 auto;
  min-width: 0;
}

.hero-copy {
  display: grid;
  gap: 18px;
  align-content: end;
  min-height: 430px;
}

.protocol-pill {
  width: fit-content;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-proofline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 680px;
}

.hero-proofline span {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-proofline span:not(:last-child)::after {
  content: "->";
  margin-left: 12px;
  color: var(--ink);
}

.hero-visual {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background:
    radial-gradient(circle at 31% 48%, rgba(0, 0, 0, 0.1), transparent 3px),
    radial-gradient(circle at 67% 61%, rgba(0, 0, 0, 0.12), transparent 3px),
    linear-gradient(90deg, transparent 0 49.6%, rgba(0, 0, 0, 0.2) 49.8% 50.2%, transparent 50.4%),
    linear-gradient(transparent 0 49.6%, rgba(0, 0, 0, 0.2) 49.8% 50.2%, transparent 50.4%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(239, 239, 239, 0.72));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.85),
    0 24px 60px rgba(0, 0, 0, 0.1);
}

.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  height: 1px;
  background: var(--black);
  transform-origin: left center;
  opacity: 0.74;
}

.hero-visual::before {
  left: 18%;
  top: 46%;
  width: 38%;
  transform: rotate(10deg);
}

.hero-visual::after {
  left: 51%;
  top: 50%;
  width: 32%;
  transform: rotate(-16deg);
}

.diagram-source,
.diagram-solver {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 8px;
}

.diagram-source {
  top: 26px;
  left: 26px;
}

.diagram-source span {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(255, 255, 255, 0.88);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.diagram-grid {
  position: absolute;
  inset: 82px 36% 74px 22%;
  z-index: 1;
  border: 2px solid var(--black);
  border-radius: 18px;
  background:
    linear-gradient(90deg, transparent 0 49%, var(--line-strong) 49% 51%, transparent 51%),
    linear-gradient(transparent 0 49%, var(--line-strong) 49% 51%, transparent 51%),
    rgba(255, 255, 255, 0.8);
}

.point {
  position: absolute;
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--black);
  border-radius: 999px;
  font-family: "Cascadia Code", Consolas, monospace;
  font-weight: 900;
  font-size: 13px;
}

.point-a {
  left: 25%;
  top: 22%;
  color: var(--black);
  background: var(--white);
}

.point-b {
  right: 19%;
  bottom: 24%;
  color: var(--white);
  background: var(--black);
}

.diagram-solver {
  right: 24px;
  top: 116px;
  width: 128px;
  text-align: center;
}

.solver-core {
  display: inline-flex;
  width: 86px;
  height: 86px;
  align-items: center;
  justify-content: center;
  justify-self: center;
  border: 2px solid var(--black);
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 20px;
  font-weight: 900;
}

.diagram-solver span:not(.solver-core) {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--muted);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.diagram-caption {
  position: absolute;
  left: 30%;
  bottom: 26px;
  z-index: 2;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255, 255, 255, 0.9);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
}

.login-menu {
  position: relative;
  z-index: 1100;
  flex: 0 0 auto;
}

.login-menu summary {
  list-style: none;
}

.login-menu summary::-webkit-details-marker {
  display: none;
}

.login-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 180px;
  padding: 12px 16px 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  cursor: pointer;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.14);
}

.login-status-dot {
  width: 14px;
  height: 14px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  background: #8a8a8a;
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.34),
    0 0 0 3px rgba(255, 255, 255, 0.1);
}

.login-status-dot.connected {
  border-color: rgba(255, 255, 255, 0.78);
  background: #16b364;
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.28),
    0 0 0 3px rgba(22, 179, 100, 0.22);
}

.login-summary code {
  overflow: hidden;
  padding: 0;
  border: 0;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.login-menu .wallet-dock {
  position: absolute;
  z-index: 1200;
  top: calc(100% + 12px);
  right: 0;
  width: min(520px, calc(100vw - 48px));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
}

.wallet-dock {
  width: min(460px, 100%);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(242, 242, 242, 0.92)),
    #fff;
}

.wallet-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: flex-start;
}

.wallet-signal {
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border: 1px solid var(--black);
  border-radius: 999px;
  background: var(--black);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.08);
}

.wallet-identity {
  min-width: 0;
}

.wallet-identity h2 {
  margin-top: 3px;
  font-size: 18px;
}

.wallet-identity code {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 999px;
}

.wallet-identity small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 11px;
}

.wallet-connect-hint {
  margin: 12px 0 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.025);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.balance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.balance-grid div {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.035);
}

.balance-grid.compact div {
  padding: 8px 9px;
}

.balance-grid strong,
.balance-grid span {
  display: block;
}

.balance-grid strong {
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 18px;
}

.balance-grid span {
  color: var(--muted);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.wallet-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
}

.wallet-mini-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.wallet-actions button,
.wallet-mini-actions button,
.wallet-action-link {
  min-width: 0;
  padding: 10px 8px;
  border-radius: 13px;
  font-size: 12px;
}

.wallet-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: #fff;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.wallet-local-status {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 11px;
  line-height: 1.45;
}

.key-drawer {
  margin-top: 10px;
  color: var(--muted);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 12px;
}

.key-drawer summary {
  cursor: pointer;
  color: var(--ink);
}

.local-wallet-actions {
  margin-top: 10px;
}

#walletMnemonic,
#walletPrivateKey {
  min-height: 82px;
  margin-top: 10px;
  font-size: 11px;
}

#walletMnemonic {
  min-height: 96px;
}

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

h1 {
  max-width: 760px;
  font-family: var(--font-display);
  font-size: clamp(46px, 7vw, 96px);
  line-height: 0.88;
  letter-spacing: -0.065em;
}

h2 {
  font-family: var(--font-display);
  font-size: 24px;
}

h3 {
  font-family: var(--font-display);
}

.subtitle {
  max-width: 780px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.42;
}

.subtitle b {
  color: var(--ink);
}

.eyebrow,
.label {
  color: var(--muted);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.status-grid,
.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 18px;
  margin-bottom: 18px;
}

.download-strip {
  padding: 22px;
  margin-bottom: 18px;
}

.section-head {
  display: grid;
  gap: 9px;
  max-width: 940px;
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: -0.045em;
}

.section-head p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.58;
}

.protocol-strip,
.directory {
  padding: 24px;
  margin-bottom: 18px;
}

.flow-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
}

.protocol-rail {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  padding: 16px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.05), transparent 28%, transparent 72%, rgba(0, 0, 0, 0.05)),
    rgba(255, 255, 255, 0.64);
}

.protocol-rail::before {
  content: "";
  position: absolute;
  left: 34px;
  right: 34px;
  top: 51px;
  height: 2px;
  background: var(--black);
  opacity: 0.76;
}

.protocol-rail article {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  min-height: 184px;
  border: 1px solid transparent;
  border-radius: 20px;
  padding: 20px 12px 14px;
  background: transparent;
  line-height: 1.45;
}

.protocol-rail article:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 43px;
  right: -5px;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--black);
  border-right: 2px solid var(--black);
  transform: rotate(45deg);
}

.protocol-rail span {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--white);
  background: var(--black);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 10px;
  font-weight: 900;
}

.protocol-rail strong {
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.1;
}

.protocol-rail p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.48;
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.directory-grid article {
  display: grid;
  gap: 10px;
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.03);
}

.directory-grid span {
  width: fit-content;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--white);
  background: var(--black);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 11px;
}

.directory-grid strong {
  font-size: 20px;
}

.directory-grid p {
  color: var(--muted);
  line-height: 1.5;
}

.directory-grid a {
  align-self: end;
  color: var(--ink);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.directory-grid a:hover {
  text-decoration: underline;
}

.download-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.download-head small {
  color: var(--muted);
  font-family: "Cascadia Code", Consolas, monospace;
}

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

.download-card {
  display: grid;
  gap: 10px;
  min-height: 238px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.035);
}

.download-card span {
  width: fit-content;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--white);
  background: var(--black);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 11px;
}

.download-card strong {
  display: block;
  font-size: 20px;
}

.download-card p,
.download-card small {
  color: var(--muted);
  line-height: 1.5;
}

.download-card small {
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 11px;
}

.download-card .nav-btn {
  align-self: end;
  width: fit-content;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: end;
}

.download-actions .nav-btn {
  padding: 10px 14px;
}

.ghost-link {
  border-color: var(--line-strong);
  color: var(--ink);
  background: var(--white);
  box-shadow: none;
}

.ghost-link:hover {
  background: rgba(0, 0, 0, 0.045);
}

.status-card,
.hash-card,
.map-panel,
.side .panel,
.bottom-grid .panel {
  padding: 22px;
}

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

.chip {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--ink);
  background: var(--white);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 13px;
}

.chip.gold,
.chip.red,
.chip.slate {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.045);
}

code {
  display: block;
  overflow: hidden;
  margin-top: 8px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) 420px;
  gap: 18px;
  margin-bottom: 18px;
}

.panel-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.cost,
.hint {
  color: var(--muted);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 12px;
}

.rule-card {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 13px 14px;
  background: rgba(0, 0, 0, 0.035);
}

.rule-card strong {
  color: var(--ink);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
}

.rule-card span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.rule-card b {
  color: var(--ink);
  font-family: "Cascadia Code", Consolas, monospace;
}

.mini-title {
  margin: 6px 0 8px;
  font-size: 18px;
}

canvas {
  width: 100%;
  max-height: 680px;
  border: 2px solid var(--line-strong);
  border-radius: 24px;
  background: #fff;
  cursor: crosshair;
  image-rendering: auto;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -18px 44px rgba(0, 0, 0, 0.035),
    0 18px 36px rgba(0, 0, 0, 0.12);
}

.side {
  display: grid;
  gap: 18px;
  align-content: start;
}

label {
  display: block;
  margin: 14px 0 6px;
  color: var(--muted);
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 14px;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

textarea {
  min-height: 78px;
  resize: vertical;
}

.formula-box {
  min-height: 132px;
}

.validator-card {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 13px;
  background: rgba(0, 0, 0, 0.035);
}

.validator-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.validator-item {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 8px 9px;
  background: rgba(0, 0, 0, 0.035);
}

.validator-item strong,
.validator-item span {
  display: block;
}

.validator-item strong {
  color: var(--ink);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 11px;
}

.validator-item span {
  overflow: hidden;
  margin-top: 4px;
  color: var(--muted);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inline-code {
  display: inline;
  margin: 0;
  padding: 2px 6px;
  color: var(--ink);
  white-space: normal;
}

button,
.nav-btn {
  border: 1px solid var(--white);
  border-radius: 16px;
  padding: 13px 18px;
  color: var(--white);
  background: var(--black);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

button:hover,
.nav-btn:hover {
  transform: translateY(-1px);
}

button.ghost,
.ghost-small {
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-strong);
  box-shadow: none;
}

button.ghost:hover,
.ghost-small:hover {
  border-color: var(--black);
  background: rgba(0, 0, 0, 0.045);
}

.sample-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.full-span {
  grid-column: 1 / -1;
}

.small-btn {
  padding: 10px 12px;
  border-radius: 13px;
  font-size: 13px;
}

#submitBtn {
  width: 100%;
  margin-top: 16px;
}

.button-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.button-row button {
  flex: 1;
}

.button-row #submitBtn {
  width: auto;
  margin-top: 0;
}

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

.list.tall {
  max-height: 340px;
  overflow: auto;
  padding-right: 4px;
}

.row {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.035);
}

.row strong {
  display: block;
}

.row small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-family: "Cascadia Code", Consolas, monospace;
}

.sample-log {
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
  margin-top: 12px;
  padding-right: 4px;
}

.sample-pill {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 9px 10px;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.035);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 12px;
}

.sample-pill span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.roadmap {
  position: relative;
  overflow: hidden;
  padding: 28px;
}

.roadmap::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 18%, rgba(0, 0, 0, 0.045), transparent 18rem),
    radial-gradient(circle at 86% 12%, rgba(0, 0, 0, 0.035), transparent 20rem);
}

.roadmap-head,
.roadmap-grid {
  position: relative;
}

.roadmap-head {
  display: grid;
  gap: 10px;
  max-width: 920px;
  margin-bottom: 22px;
}

.roadmap-head h2 {
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.04em;
}

.roadmap-head p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

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

.roadmap-step {
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  background: rgba(0, 0, 0, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.roadmap-step span {
  display: inline-block;
  margin-bottom: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--white);
  background: var(--black);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.roadmap-step h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.roadmap-step p,
.roadmap-step small {
  display: block;
  color: var(--muted);
  line-height: 1.55;
}

.roadmap-step small {
  margin-top: 14px;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 12px;
}

.roadmap-step.active,
.roadmap-step.future {
  background: rgba(0, 0, 0, 0.05);
  border-color: var(--line-strong);
}

.site-footer {
  padding: 26px;
}

.footer-brand {
  display: grid;
  gap: 8px;
  max-width: 620px;
  margin-bottom: 24px;
}

.footer-brand h2 {
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.045em;
}

.footer-brand p {
  color: var(--muted);
  line-height: 1.55;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.footer-grid div {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-grid strong {
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-grid a,
.footer-bottom a {
  color: var(--muted);
  text-decoration: none;
}

.footer-grid a:hover,
.footer-bottom a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: var(--muted);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 12px;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #f2f2f2;
}

::-webkit-scrollbar-thumb {
  border: 2px solid #f2f2f2;
  border-radius: 999px;
  background: #111;
}

@media (max-width: 1100px) {
  .hero-top,
  .hero-bottom,
  .page-nav,
  .workspace,
  .status-grid,
  .bottom-grid,
  .download-grid,
  .hero-statement,
  .flow-row,
  .page-grid.two,
  .page-grid.three,
  .state-chain,
  .directory-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-top,
  .hero-bottom,
  .page-nav {
    display: grid;
  }

  .wallet-dock {
    width: 100%;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero-copy {
    min-height: auto;
  }

  .hero-visual {
    min-height: 360px;
  }

  .protocol-rail {
    gap: 8px;
  }

  .protocol-rail::before {
    top: 34px;
    bottom: 34px;
    left: 36px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .protocol-rail article {
    min-height: auto;
    padding: 14px 14px 14px 54px;
  }

  .protocol-rail article:not(:last-child)::after {
    top: auto;
    right: auto;
    left: 31px;
    bottom: -4px;
    transform: rotate(135deg);
  }

  .protocol-rail strong {
    margin-top: 0;
  }

  .site-nav {
    justify-content: flex-start;
    order: 3;
    width: 100%;
  }

  .mega-nav {
    justify-content: flex-start;
    order: 3;
    width: 100%;
  }

  .mega-panel {
    grid-template-columns: 1fr;
    top: calc(100% + 10px);
  }

  .mega-overview {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    padding-right: 0;
    padding-bottom: 16px;
  }

  .download-head {
    display: grid;
  }

  .download-grid.standalone {
    grid-template-columns: 1fr;
  }

  .state-chain span:not(:last-child)::after {
    right: auto;
    left: 50%;
    bottom: -16px;
    transform: translateX(-50%) rotate(90deg);
  }

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

@media (max-width: 720px) {
  .shell {
    width: min(100% - 18px, 1440px);
    padding-top: 12px;
  }

  .hero,
  .status-card,
  .hash-card,
  .map-panel,
  .side .panel,
  .bottom-grid .panel {
    padding: 16px;
    border-radius: 22px;
  }

  .wallet-actions,
  .balance-grid,
  .validator-grid,
  .sample-actions,
  .button-row {
    grid-template-columns: 1fr;
  }

  .hero-top,
  .hero-bottom {
    display: grid;
  }

  .site-nav a {
    padding: 8px 9px;
    font-size: 11px;
  }

  .mega-trigger {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 11px;
  }

  .mega-panel {
    top: calc(100% + 8px);
    padding: 16px;
  }

  .mega-panel a {
    min-height: 88px;
  }

  .login-summary {
    min-width: 0;
    width: 100%;
  }

  .login-menu,
  .login-menu .wallet-dock {
    width: 100%;
  }

  .login-menu .wallet-dock {
    position: static;
    margin-top: 10px;
  }

  .page-hero {
    min-height: 320px;
    padding: 22px;
  }

  .page-hero h1 {
    margin-top: 30px;
  }

  .page-hero p:not(.eyebrow) {
    font-size: 17px;
  }

  .object-list {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 320px;
  }

  .diagram-grid {
    inset: 78px 22px 82px;
  }

  .diagram-source {
    position: relative;
    top: auto;
    left: auto;
    grid-template-columns: repeat(3, auto);
    padding: 18px;
  }

  .diagram-solver {
    right: 18px;
    top: 122px;
  }

  .diagram-caption {
    left: 22px;
    right: 22px;
    bottom: 18px;
    text-align: center;
  }

  .button-row {
    display: grid;
  }

  h1 {
    font-size: clamp(40px, 14vw, 64px);
  }

  .footer-bottom {
    display: grid;
  }
}

.site-home {
  display: grid;
  gap: 18px;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
  gap: 28px;
  align-items: stretch;
  min-height: 540px;
  padding: 34px;
  overflow: hidden;
}

.landing-copy {
  display: grid;
  align-content: end;
  gap: 22px;
}

.landing-copy h1 {
  font-size: clamp(58px, 8vw, 118px);
  letter-spacing: -0.065em;
}

.landing-copy h2 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(30px, 4.2vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.landing-copy p:not(.eyebrow) {
  max-width: 780px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.56;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cognitive-stage {
  position: relative;
  min-height: 430px;
  border: 1px solid var(--line-strong);
  border-radius: 34px;
  background:
    radial-gradient(circle at 70% 22%, rgba(0, 0, 0, 0.08), transparent 13rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(236, 236, 236, 0.78));
  overflow: hidden;
}

.cognitive-stage::before {
  content: "";
  position: absolute;
  inset: 32px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 28px;
  background-image:
    linear-gradient(90deg, transparent 0 49.7%, rgba(0, 0, 0, 0.14) 49.7% 50.3%, transparent 50.3%),
    linear-gradient(transparent 0 49.7%, rgba(0, 0, 0, 0.14) 49.7% 50.3%, transparent 50.3%);
}

.cognitive-stage::after {
  content: "";
  position: absolute;
  left: 52%;
  top: 52%;
  width: 42%;
  height: 1px;
  background: var(--black);
  transform: rotate(-16deg);
  transform-origin: left center;
  opacity: 0.32;
}

.stage-grid {
  position: absolute;
  inset: 34px;
  border-radius: 28px;
}

.cell {
  position: absolute;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 2px solid var(--black);
  border-radius: 999px;
  font-family: "Cascadia Code", Consolas, monospace;
  font-weight: 900;
}

.input-cell {
  left: 20%;
  top: 26%;
  background: var(--white);
}

.output-cell {
  right: 20%;
  bottom: 24%;
  color: var(--white);
  background: var(--black);
}

.solver-card {
  position: absolute;
  right: 34px;
  top: 34px;
  display: grid;
  gap: 8px;
  width: min(250px, 48%);
  border: 1px solid var(--black);
  border-radius: 28px;
  padding: 18px;
  background: var(--black);
  color: var(--white);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
}

.solver-face {
  display: grid;
  width: 58px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 14px;
  font-family: "Cascadia Code", Consolas, monospace;
  font-weight: 900;
}

.solver-card strong {
  font-size: 22px;
  letter-spacing: -0.03em;
}

.solver-card small {
  color: rgba(255, 255, 255, 0.68);
  font-family: "Cascadia Code", Consolas, monospace;
  line-height: 1.45;
}

.stage-chip {
  position: absolute;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 10px 13px;
  background: rgba(255, 255, 255, 0.9);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.chip-1 {
  left: 34px;
  bottom: 34px;
}

.chip-2 {
  left: 42%;
  bottom: 72px;
}

.chip-3 {
  right: 34px;
  bottom: 34px;
}

.home-constellation {
  position: relative;
  min-height: 420px;
  border: 1px solid var(--line-strong);
  border-radius: 32px;
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.1), transparent 5px),
    linear-gradient(90deg, transparent 0 49.8%, rgba(0, 0, 0, 0.12) 49.8% 50.2%, transparent 50.2%),
    linear-gradient(transparent 0 49.8%, rgba(0, 0, 0, 0.12) 49.8% 50.2%, transparent 50.2%),
    rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.orbit {
  position: absolute;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

.orbit-a {
  inset: 42px;
}

.orbit-b {
  inset: 96px 72px;
  transform: rotate(-18deg);
}

.orbit-c {
  inset: 132px 112px;
  transform: rotate(24deg);
}

.core-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 24px;
  font-weight: 900;
  transform: translate(-50%, -50%);
}

.orbit-label {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(255, 255, 255, 0.88);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.label-a {
  left: 42px;
  top: 52px;
}

.label-b {
  right: 38px;
  top: 118px;
}

.label-c {
  left: 74px;
  bottom: 84px;
}

.label-d {
  right: 54px;
  bottom: 52px;
}

.home-principle {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 24px;
  padding: 28px;
}

.home-principle h2 {
  max-width: 680px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.principle-grid article,
.route-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  background: rgba(0, 0, 0, 0.028);
}

.principle-grid span,
.route-panel span,
.release-row span,
.stack-layers span,
.wallet-steps span,
.lane-card span,
.doc-topic span {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--black);
  color: var(--white);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 11px;
  font-weight: 900;
}

.principle-grid strong {
  display: block;
  margin-top: 18px;
  font-size: 22px;
}

.principle-grid p,
.route-panel p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.5;
}

.home-snapshot,
.home-routes {
  display: grid;
  gap: 18px;
}

.home-snapshot {
  grid-template-columns: 1.18fr 0.91fr 0.91fr;
}

.snapshot-card {
  padding: 26px;
}

.snapshot-card.current {
  background:
    radial-gradient(circle at 12% 12%, rgba(0, 0, 0, 0.09), transparent 12rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(241, 241, 241, 0.88));
}

.snapshot-card h2,
.route-panel h2 {
  margin-top: 14px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.snapshot-card p:not(.label) {
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.56;
}

.snapshot-card a,
.route-panel a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--ink);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.snapshot-card a:hover,
.route-panel a:hover {
  text-decoration: underline;
}

.home-routes {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.route-panel {
  min-height: 260px;
  padding: 20px;
}

.participation-portal {
  display: grid;
  gap: 24px;
  padding: 30px;
}

.portal-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 16px;
}

.portal-card {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 250px;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 22px;
  color: var(--ink);
  overflow: hidden;
  text-decoration: none;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(235, 235, 235, 0.82)),
    var(--white);
  transition:
    transform 170ms ease,
    border-color 170ms ease,
    box-shadow 170ms ease;
}

.portal-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  opacity: 0;
  transition: opacity 170ms ease;
}

.portal-card::after {
  content: "->";
  position: absolute;
  right: 22px;
  top: 22px;
  font-family: "Cascadia Code", Consolas, monospace;
  font-weight: 900;
  opacity: 0.34;
}

.portal-card:hover {
  transform: translateY(-4px);
  border-color: var(--black);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.15);
}

.portal-card:hover::before {
  opacity: 1;
}

.portal-card.large {
  grid-row: span 2;
  min-height: 520px;
  color: var(--white);
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.24), transparent 13rem),
    linear-gradient(145deg, #050505, #1b1b1b);
}

.portal-card span {
  position: relative;
  z-index: 1;
  width: max-content;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 7px 10px;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portal-card strong {
  position: relative;
  z-index: 1;
  margin-top: 26px;
  font-size: clamp(30px, 4vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.portal-card p {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}

.portal-card.large p {
  color: rgba(255, 255, 255, 0.72);
}

.portal-art,
.layer-art,
.wallet-step-art,
.node-lane-art,
.explorer-card-art,
.doc-art,
.release-icon {
  display: block;
  position: relative;
  pointer-events: none;
  font-style: normal;
}

.portal-art {
  position: absolute;
  inset: 18px 18px auto auto;
  width: 42%;
  height: 42%;
  min-height: 96px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 26px;
  opacity: 0.88;
  background:
    radial-gradient(circle at 24% 30%, var(--black) 0 5px, transparent 6px),
    radial-gradient(circle at 72% 68%, var(--black) 0 5px, transparent 6px),
    linear-gradient(135deg, transparent 0 48%, rgba(0, 0, 0, 0.24) 49% 51%, transparent 52%),
    rgba(255, 255, 255, 0.46);
}

.portal-card.large .portal-art {
  inset: 28px 28px auto auto;
  width: min(280px, 46%);
  height: min(280px, 48%);
  border-color: rgba(255, 255, 255, 0.18);
  opacity: 0.9;
  background:
    radial-gradient(circle at 34% 36%, rgba(255, 255, 255, 0.92) 0 5px, transparent 6px),
    radial-gradient(circle at 70% 62%, rgba(255, 255, 255, 0.86) 0 5px, transparent 6px),
    linear-gradient(90deg, transparent 0 49%, rgba(255, 255, 255, 0.16) 50%, transparent 51%),
    linear-gradient(transparent 0 49%, rgba(255, 255, 255, 0.16) 50%, transparent 51%),
    radial-gradient(circle at 64% 24%, rgba(255, 255, 255, 0.22), transparent 8rem);
}

.art-wallet {
  border-radius: 28px 28px 12px 12px;
  background:
    linear-gradient(var(--black) 0 24%, transparent 24%),
    radial-gradient(circle at 24% 62%, var(--black) 0 4px, transparent 5px),
    radial-gradient(circle at 48% 62%, var(--black) 0 4px, transparent 5px),
    radial-gradient(circle at 72% 62%, var(--black) 0 4px, transparent 5px),
    rgba(255, 255, 255, 0.64);
}

.art-node {
  background:
    radial-gradient(circle at 20% 24%, var(--black) 0 6px, transparent 7px),
    radial-gradient(circle at 78% 26%, var(--black) 0 6px, transparent 7px),
    radial-gradient(circle at 50% 74%, var(--black) 0 6px, transparent 7px),
    linear-gradient(28deg, transparent 0 46%, rgba(0, 0, 0, 0.26) 47% 49%, transparent 50%),
    linear-gradient(148deg, transparent 0 46%, rgba(0, 0, 0, 0.26) 47% 49%, transparent 50%),
    rgba(255, 255, 255, 0.58);
}

.art-explorer {
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 22px),
    radial-gradient(circle at 78% 24%, var(--black) 0 5px, transparent 6px),
    rgba(255, 255, 255, 0.58);
}

.art-protocol {
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, var(--black) 0 18px, transparent 19px),
    conic-gradient(from 40deg, transparent 0 22%, rgba(0, 0, 0, 0.18) 22% 25%, transparent 25% 52%, rgba(0, 0, 0, 0.18) 52% 55%, transparent 55%),
    rgba(255, 255, 255, 0.56);
}

.dark-story {
  color: var(--white);
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.18), transparent 16rem),
    linear-gradient(145deg, #050505, #151515);
}

.dark-story .label,
.dark-story p {
  color: rgba(255, 255, 255, 0.7);
}

.principle-copy {
  display: grid;
  align-content: center;
  gap: 18px;
}

.principle-copy p:not(.label) {
  max-width: 600px;
  font-size: 18px;
  line-height: 1.62;
}

.cognition-loop {
  position: relative;
  min-height: 440px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 32px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.18), transparent 5px),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08), transparent 13rem);
  overflow: hidden;
}

.loop-orbit {
  position: absolute;
  inset: 42px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
}

.loop-orbit::before,
.loop-orbit::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84%;
  height: 1px;
  background: rgba(255, 255, 255, 0.28);
  transform: translate(-50%, -50%) rotate(35deg);
}

.loop-orbit::after {
  transform: translate(-50%, -50%) rotate(-35deg);
}

.loop-orbit strong {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 118px;
  height: 118px;
  place-items: center;
  border-radius: 999px;
  color: var(--black);
  background: var(--white);
  font-family: var(--font-display);
  font-size: 28px;
  transform: translate(-50%, -50%);
}

.loop-node {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 112px;
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.node-observe {
  left: 50%;
  top: -26px;
  transform: translateX(-50%);
}

.node-model {
  right: -24px;
  top: 50%;
  transform: translateY(-50%);
}

.node-verify {
  left: 50%;
  bottom: -26px;
  transform: translateX(-50%);
}

.node-advance {
  left: -24px;
  top: 50%;
  transform: translateY(-50%);
}

.loop-caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.loop-caption span {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 8px 10px;
  color: rgba(255, 255, 255, 0.76);
  font-family: var(--font-mono);
  font-size: 11px;
}

.protocol-hero,
.download-hero,
.wallet-hero,
.node-hero,
.explorer-hero,
.docs-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 28px;
  align-items: center;
  min-height: 460px;
  padding: 34px;
}

.download-hero,
.docs-hero {
  display: grid;
}

.protocol-hero::after,
.download-hero::after,
.wallet-hero::after,
.node-hero::after,
.explorer-hero::after,
.docs-hero::after {
  content: none;
}

.protocol-machine {
  position: relative;
  min-height: 360px;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.08), transparent 4px),
    rgba(255, 255, 255, 0.74);
}

.machine-core,
.machine-node {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  text-align: center;
}

.machine-core {
  left: 50%;
  top: 50%;
  width: 138px;
  height: 138px;
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  font-weight: 900;
  transform: translate(-50%, -50%);
}

.machine-node {
  width: 128px;
  min-height: 72px;
  border-radius: 22px;
  background: var(--white);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
}

.protocol-cycle,
.wallet-security,
.node-pipeline,
.explorer-ledger {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(320px, 1fr);
  gap: 24px;
  align-items: center;
  padding: 28px;
}

.cycle-copy,
.wallet-security > div:first-child,
.explorer-ledger > div:first-child {
  display: grid;
  gap: 12px;
}

.cycle-copy h2,
.wallet-security h2,
.explorer-ledger h2 {
  font-size: clamp(28px, 4vw, 54px);
  line-height: 0.98;
  letter-spacing: -0.052em;
}

.cycle-copy p,
.wallet-security p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.cycle-map,
.signature-path,
.pipeline-track,
.ledger-strip {
  position: relative;
  display: grid;
  gap: 12px;
}

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

.cycle-map span,
.signature-path span,
.pipeline-track span,
.ledger-strip span {
  position: relative;
  z-index: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.86);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.cycle-map::before,
.signature-path::before,
.pipeline-track::before,
.ledger-strip::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 2px;
  background: var(--black);
  opacity: 0.18;
}

.n1 {
  left: 26px;
  top: 28px;
}

.n2 {
  right: 26px;
  top: 28px;
}

.n3 {
  right: 28px;
  bottom: 32px;
}

.n4 {
  left: 28px;
  bottom: 32px;
}

.n5 {
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
}

.protocol-stack,
.protocol-equation,
.wallet-flow {
  padding: 28px;
}

.stack-layers,
.wallet-steps,
.node-lanes,
.explorer-grid,
.docs-catalog {
  display: grid;
  gap: 14px;
}

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

.stack-layers article,
.wallet-steps article,
.lane-card,
.data-card,
.doc-topic {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  background: rgba(0, 0, 0, 0.028);
}

.stack-layers h3,
.wallet-steps h2,
.lane-card h2,
.data-card h2,
.doc-topic h2 {
  position: relative;
  z-index: 1;
  margin: 18px 0 10px;
  font-size: 24px;
}

.stack-layers p,
.protocol-equation p,
.wallet-steps p,
.lane-card p,
.data-card p,
.doc-topic p {
  position: relative;
  z-index: 1;
  color: var(--muted);
  line-height: 1.56;
}

.layer-art,
.wallet-step-art,
.node-lane-art,
.explorer-card-art,
.doc-art {
  width: 100%;
  height: 120px;
  margin: 16px 0 2px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(90deg, transparent 0 49.6%, rgba(0, 0, 0, 0.14) 49.8% 50.2%, transparent 50.4%),
    linear-gradient(transparent 0 49.6%, rgba(0, 0, 0, 0.14) 49.8% 50.2%, transparent 50.4%),
    rgba(255, 255, 255, 0.66);
}

.layer-art::before,
.wallet-step-art::before,
.node-lane-art::before,
.explorer-card-art::before,
.doc-art::before,
.release-icon::before {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: var(--black);
}

.behavior-art::before {
  left: 24%;
  top: 28%;
  width: 22px;
  height: 22px;
  box-shadow: 82px 48px 0 var(--black);
}

.model-art {
  background:
    radial-gradient(circle at 50% 50%, var(--black) 0 22px, transparent 23px),
    linear-gradient(45deg, transparent 0 49%, rgba(0, 0, 0, 0.16) 50%, transparent 51%),
    rgba(255, 255, 255, 0.68);
}

.verify-art {
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.12) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.1) 0 1px, transparent 1px 18px),
    rgba(255, 255, 255, 0.68);
}

.verify-art::before {
  left: 50%;
  top: 50%;
  width: 72px;
  height: 72px;
  border: 16px solid var(--white);
  background: var(--black);
  transform: translate(-50%, -50%);
}

.state-art {
  background:
    linear-gradient(var(--black), var(--black)) 20% 28% / 60% 2px no-repeat,
    linear-gradient(var(--black), var(--black)) 20% 50% / 60% 2px no-repeat,
    linear-gradient(var(--black), var(--black)) 20% 72% / 60% 2px no-repeat,
    rgba(255, 255, 255, 0.68);
}

.release-row {
  grid-template-columns: 96px minmax(0, 1fr) minmax(220px, 0.42fr) auto;
}

.release-icon {
  width: 74px;
  height: 74px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 50%, var(--black) 0 12px, transparent 13px),
    rgba(255, 255, 255, 0.76);
}

.release-icon::before {
  left: 50%;
  top: 50%;
  width: 44px;
  height: 2px;
  transform: translate(-50%, -50%) rotate(42deg);
}

.node-release {
  border-radius: 999px;
}

.chain-release {
  background:
    linear-gradient(90deg, transparent 0 49%, rgba(0, 0, 0, 0.18) 50%, transparent 51%),
    linear-gradient(transparent 0 49%, rgba(0, 0, 0, 0.18) 50%, transparent 51%),
    rgba(255, 255, 255, 0.76);
}

.paper-release {
  border-radius: 12px;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.16) 0 1px, transparent 1px 13px),
    rgba(255, 255, 255, 0.76);
}

.wallet-step-art,
.node-lane-art,
.explorer-card-art,
.doc-art {
  height: 104px;
}

.create-art {
  border-radius: 999px;
  background:
    radial-gradient(circle at 34% 50%, var(--black) 0 9px, transparent 10px),
    radial-gradient(circle at 66% 50%, var(--black) 0 9px, transparent 10px),
    rgba(255, 255, 255, 0.68);
}

.vault-art {
  background:
    linear-gradient(var(--black), var(--black)) center 24% / 42% 2px no-repeat,
    linear-gradient(var(--black), var(--black)) center 76% / 42% 2px no-repeat,
    radial-gradient(circle at 50% 50%, var(--black) 0 18px, transparent 19px),
    rgba(255, 255, 255, 0.68);
}

.connect-art,
.network-art,
.peer-art {
  background:
    radial-gradient(circle at 20% 24%, var(--black) 0 6px, transparent 7px),
    radial-gradient(circle at 78% 26%, var(--black) 0 6px, transparent 7px),
    radial-gradient(circle at 50% 74%, var(--black) 0 6px, transparent 7px),
    linear-gradient(28deg, transparent 0 46%, rgba(0, 0, 0, 0.2) 47% 49%, transparent 50%),
    linear-gradient(148deg, transparent 0 46%, rgba(0, 0, 0, 0.2) 47% 49%, transparent 50%),
    rgba(255, 255, 255, 0.68);
}

.sign-art,
.execution-art,
.block-art,
.vocab-art {
  background:
    radial-gradient(circle at 50% 50%, var(--black) 0 18px, transparent 19px),
    conic-gradient(from 0deg, rgba(0, 0, 0, 0.18), transparent 28%, rgba(0, 0, 0, 0.16), transparent 62%, rgba(0, 0, 0, 0.18)),
    rgba(255, 255, 255, 0.68);
}

.storage-art,
.architecture-art {
  background:
    linear-gradient(var(--black), var(--black)) 18% 28% / 64% 2px no-repeat,
    linear-gradient(var(--black), var(--black)) 18% 50% / 64% 2px no-repeat,
    linear-gradient(var(--black), var(--black)) 18% 72% / 64% 2px no-repeat,
    rgba(255, 255, 255, 0.68);
}

.solver-art,
.security-art {
  background:
    radial-gradient(circle at 50% 44%, var(--black) 0 20px, transparent 21px),
    linear-gradient(var(--black), var(--black)) center 72% / 50% 2px no-repeat,
    rgba(255, 255, 255, 0.68);
}

.cli-art {
  background:
    linear-gradient(var(--black), var(--black)) 20% 32% / 16% 3px no-repeat,
    linear-gradient(var(--black), var(--black)) 36% 32% / 42% 3px no-repeat,
    linear-gradient(var(--black), var(--black)) 20% 54% / 16% 3px no-repeat,
    linear-gradient(var(--black), var(--black)) 36% 54% / 34% 3px no-repeat,
    rgba(255, 255, 255, 0.68);
}

.protocol-equation h2 {
  margin-top: 16px;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: clamp(20px, 3vw, 34px);
  letter-spacing: -0.04em;
}

.release-board {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.release-visual,
.docs-visual {
  position: relative;
  min-height: 340px;
  border: 1px solid var(--line-strong);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 48%, rgba(0, 0, 0, 0.08), transparent 4px),
    linear-gradient(90deg, transparent 0 49.6%, rgba(0, 0, 0, 0.14) 49.8% 50.2%, transparent 50.4%),
    linear-gradient(transparent 0 49.6%, rgba(0, 0, 0, 0.14) 49.8% 50.2%, transparent 50.4%),
    rgba(255, 255, 255, 0.78);
  overflow: hidden;
}

.release-visual::before,
.docs-visual::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 68%;
  height: 68%;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.release-visual strong,
.docs-visual strong {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 150px;
  height: 150px;
  place-items: center;
  border-radius: 999px;
  padding: 18px;
  color: var(--white);
  background: var(--black);
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.02;
  text-align: center;
  transform: translate(-50%, -50%);
}

.package-node,
.docs-visual span {
  position: absolute;
  z-index: 1;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.92);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wallet-node,
.docs-visual span:nth-child(1) {
  left: 28px;
  top: 34px;
}

.node-node,
.docs-visual span:nth-child(2) {
  right: 28px;
  top: 44px;
}

.chain-node,
.docs-visual span:nth-child(3) {
  left: 42px;
  bottom: 42px;
}

.paper-node,
.docs-visual span:nth-child(4) {
  right: 34px;
  bottom: 36px;
}

.release-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.42fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.028);
}

.release-row.primary {
  border-color: var(--line-strong);
  background: rgba(0, 0, 0, 0.045);
}

.release-row h2 {
  margin-top: 12px;
  font-size: 30px;
}

.release-row p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.wallet-mock {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  padding: 22px;
  background: var(--black);
  color: var(--white);
}

.wallet-mock-head {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 12px;
  font-family: "Cascadia Code", Consolas, monospace;
}

.wallet-mock-balance {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  padding: 18px;
}

.wallet-mock-balance span {
  color: rgba(255, 255, 255, 0.62);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.wallet-mock-balance strong {
  display: block;
  margin-top: 8px;
  font-size: 42px;
}

.wallet-mock-actions,
.wallet-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.wallet-mock-actions span {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 10px;
  text-align: center;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 12px;
}

.wallet-security {
  color: var(--white);
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.18), transparent 14rem),
    linear-gradient(145deg, #050505, #171717);
}

.wallet-security .label,
.wallet-security p {
  color: rgba(255, 255, 255, 0.7);
}

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

.signature-path span {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.09);
}

.signature-path::before {
  background: var(--white);
  opacity: 0.28;
}

.terminal-card {
  display: grid;
  gap: 10px;
  border-radius: 28px;
  padding: 18px;
  background: var(--black);
}

.terminal-card code {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

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

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

.pipeline-track {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.explorer-search {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  padding: 24px;
  background:
    linear-gradient(90deg, transparent 0 49.8%, var(--line) 49.8% 50.2%, transparent 50.2%),
    linear-gradient(transparent 0 49.8%, var(--line) 49.8% 50.2%, transparent 50.2%),
    rgba(255, 255, 255, 0.72);
}

.explorer-search span {
  color: var(--muted);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.explorer-search strong {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 14px;
  background: #fff;
  font-family: "Cascadia Code", Consolas, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.explorer-grid {
  grid-template-columns: 1.35fr 0.82fr 0.82fr;
}

.explorer-ledger {
  grid-template-columns: minmax(0, 0.7fr) minmax(420px, 1fr);
}

.ledger-strip {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.data-card.wide {
  min-height: 280px;
}

.data-row {
  display: grid;
  grid-template-columns: 0.6fr 1fr 1fr 1.4fr;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  color: var(--muted);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 12px;
}

.data-row.header {
  color: var(--ink);
  font-weight: 900;
}

.docs-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
}

.docs-index {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 12px;
  align-self: start;
  padding: 22px;
}

.docs-index strong {
  margin-bottom: 8px;
  font-family: "Cascadia Code", Consolas, monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.docs-index a {
  color: var(--muted);
  text-decoration: none;
}

.docs-index a:hover {
  color: var(--ink);
  text-decoration: underline;
}

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

@media (max-width: 1100px) {
  .landing-hero,
  .home-principle,
  .participation-portal,
  .portal-grid,
  .protocol-hero,
  .download-hero,
  .wallet-hero,
  .node-hero,
  .explorer-hero,
  .docs-hero,
  .protocol-cycle,
  .wallet-security,
  .explorer-ledger,
  .stack-layers,
  .release-row,
  .wallet-steps,
  .signature-path,
  .pipeline-track,
  .node-lanes,
  .explorer-grid,
  .ledger-strip,
  .docs-layout,
  .docs-catalog {
    grid-template-columns: 1fr;
  }

  .cognitive-stage,
  .home-constellation,
  .protocol-machine {
    min-height: 360px;
  }

  .portal-card.large {
    grid-row: auto;
    min-height: 360px;
  }

  .release-row {
    align-items: start;
  }

  .release-visual,
  .docs-visual {
    min-height: 300px;
  }
}

@media (max-width: 720px) {
  .landing-hero,
  .home-principle,
  .protocol-hero,
  .download-hero,
  .wallet-hero,
  .node-hero,
  .explorer-hero,
  .docs-hero,
  .protocol-stack,
  .protocol-equation,
  .protocol-cycle,
  .wallet-flow,
  .wallet-security,
  .node-pipeline,
  .explorer-ledger,
  .release-board {
    padding: 18px;
    border-radius: 22px;
  }

  .landing-copy h1 {
    font-size: clamp(54px, 20vw, 92px);
  }

  .landing-copy h2 {
    font-size: clamp(28px, 11vw, 52px);
  }

  .principle-grid,
  .portal-grid,
  .wallet-mock-actions,
  .cycle-map {
    grid-template-columns: 1fr;
  }

  .cognitive-stage {
    min-height: 320px;
  }

  .solver-card {
    right: 22px;
    top: 22px;
    width: min(220px, 58%);
  }

  .stage-chip {
    padding: 8px 10px;
    font-size: 10px;
  }

  .chip-2 {
    left: 34px;
    bottom: 76px;
  }

  .portal-card,
  .portal-card.large {
    min-height: 260px;
  }

  .home-constellation {
    min-height: 300px;
  }

  .cognition-loop,
  .release-visual,
  .docs-visual {
    min-height: 280px;
  }

  .loop-orbit {
    inset: 34px;
  }

  .loop-node {
    min-width: 92px;
    min-height: 44px;
    font-size: 10px;
  }

  .loop-orbit strong {
    width: 92px;
    height: 92px;
    font-size: 22px;
  }

  .orbit-a {
    inset: 28px;
  }

  .orbit-b {
    inset: 74px 46px;
  }

  .orbit-c {
    inset: 108px 76px;
  }
}

/* Protocol site shell refinement */
.shell {
  padding-top: 22px;
}

.page-nav {
  position: sticky;
  top: 14px;
  z-index: 1500;
  border-radius: 999px;
  margin-bottom: 14px;
  padding: 18px 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(246, 246, 246, 0.88)),
    var(--surface);
  box-shadow:
    0 18px 70px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.66) inset;
}

.page-nav::before {
  content: "";
  position: absolute;
  inset: -14px -18px auto;
  height: calc(100% + 28px);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(238, 238, 238, 0.92), rgba(238, 238, 238, 0));
  pointer-events: none;
  z-index: -1;
}

.brand-link {
  position: relative;
  display: inline-flex;
  gap: 9px;
  align-items: center;
}

.brand-link::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--black);
  box-shadow: 0 0 0 5px rgba(0, 0, 0, 0.06);
}

.mega-trigger {
  min-width: 92px;
  justify-content: center;
}

.mega-panel {
  top: calc(100% + 18px);
  border-radius: 28px;
  overflow: hidden;
}

.mega-panel a {
  border-radius: 18px;
}

.site-home,
.static-page {
  gap: 22px;
}

.landing-hero,
.protocol-hero,
.download-hero,
.wallet-hero,
.node-hero,
.explorer-hero,
.docs-hero {
  border-radius: 34px;
  min-height: 560px;
  padding: clamp(28px, 4vw, 54px);
}

.landing-hero {
  grid-template-columns: minmax(0, 0.95fr) minmax(430px, 0.82fr);
}

.landing-copy {
  align-content: center;
}

.landing-copy h1,
.page-hero h1,
.protocol-hero h1,
.download-hero h1,
.wallet-hero h1,
.node-hero h1,
.explorer-hero h1,
.docs-hero h1 {
  text-wrap: balance;
}

.landing-copy p:not(.eyebrow),
.protocol-hero p,
.download-hero p,
.wallet-hero p,
.node-hero p,
.explorer-hero p,
.docs-hero p {
  max-width: 760px;
  color: #595959;
}

.cognitive-stage,
.protocol-machine,
.release-visual,
.docs-visual,
.wallet-mock,
.terminal-card,
.explorer-search,
.cognition-loop {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 26px 80px rgba(0, 0, 0, 0.12);
}

.cognitive-stage {
  min-height: 500px;
  background:
    radial-gradient(circle at 74% 22%, rgba(0, 0, 0, 0.08), transparent 12rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(237, 237, 237, 0.82));
}

.cognitive-stage::after {
  height: 2px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0), var(--black), rgba(0, 0, 0, 0));
  opacity: 0.42;
}

.solver-card,
.wallet-mock,
.terminal-card,
.dark-story {
  background:
    radial-gradient(circle at 76% 18%, rgba(255, 255, 255, 0.16), transparent 18rem),
    linear-gradient(145deg, #030303, #191919);
}

.stage-chip,
.hero-proofline span,
.cycle-map span,
.signature-path span,
.pipeline-track span,
.ledger-strip span {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 10px 28px rgba(0, 0, 0, 0.06);
}

.home-principle {
  min-height: 560px;
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 34px;
  padding: clamp(28px, 4vw, 48px);
}

.principle-copy h2 {
  max-width: 760px;
}

.cognition-loop::after {
  content: "";
  position: absolute;
  inset: 30px;
  border-radius: 999px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
}

.participation-portal,
.protocol-stack,
.release-board,
.wallet-flow,
.node-lanes,
.explorer-grid,
.docs-layout {
  border-radius: 34px;
}

.portal-grid {
  grid-template-columns: minmax(320px, 1.2fr) repeat(2, minmax(240px, 1fr));
}

.portal-card,
.stack-layers article,
.wallet-steps article,
.lane-card,
.data-card,
.doc-topic,
.release-row {
  background:
    radial-gradient(circle at 86% 12%, rgba(0, 0, 0, 0.055), transparent 11rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(239, 239, 239, 0.86));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 18px 54px rgba(0, 0, 0, 0.07);
}

.portal-card {
  min-height: 310px;
  padding: 28px;
}

.portal-card.large {
  min-height: 636px;
}

.portal-card strong {
  max-width: 620px;
}

.portal-card:not(.large) strong {
  font-family: var(--font-ui);
  font-size: clamp(38px, 4.8vw, 72px);
  font-weight: 900;
  letter-spacing: -0.07em;
}

.portal-card:not(.large) p {
  max-width: 420px;
}

.portal-art {
  width: 48%;
  height: 46%;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.1));
}

.portal-card.large .portal-art {
  width: min(330px, 48%);
  height: min(330px, 52%);
}

.protocol-cycle,
.wallet-security,
.node-pipeline,
.explorer-ledger {
  min-height: 360px;
  border-radius: 34px;
}

.cycle-map,
.signature-path,
.pipeline-track,
.ledger-strip {
  min-height: 170px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.04), transparent 12rem),
    rgba(255, 255, 255, 0.55);
}

.wallet-security .signature-path,
.dark-story .cognition-loop {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1), transparent 13rem),
    rgba(255, 255, 255, 0.035);
}

.release-row {
  grid-template-columns: 92px minmax(0, 1fr) minmax(230px, 0.48fr) auto;
  min-height: 150px;
}

.release-row > .release-icon {
  grid-column: 1;
}

.release-row > div {
  grid-column: 2;
}

.release-row > code {
  grid-column: 3;
}

.release-row > .nav-btn,
.release-row > .download-actions {
  grid-column: 4;
}

.download-hero,
.docs-hero,
.wallet-hero,
.node-hero,
.explorer-hero,
.protocol-hero {
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 0.72fr);
}

.download-hero h1,
.wallet-hero h1,
.node-hero h1,
.explorer-hero h1,
.docs-hero h1,
.protocol-hero h1 {
  font-size: clamp(54px, 7vw, 110px);
}

.download-hero p,
.wallet-hero p,
.node-hero p,
.explorer-hero p,
.docs-hero p,
.protocol-hero p {
  font-size: 20px;
  line-height: 1.54;
}

.docs-index {
  top: 106px;
}

@media (prefers-reduced-motion: no-preference) {
  .panel {
    animation: panel-rise 420ms ease both;
  }

  .page-nav {
    animation: nav-settle 480ms ease both;
  }

  .cognitive-stage::after,
  .hero-visual::after {
    animation: signal-sweep 4.2s ease-in-out infinite;
  }

  .input-cell,
  .output-cell,
  .point,
  .package-node,
  .docs-visual span,
  .machine-node {
    animation: soft-float 5.6s ease-in-out infinite;
  }

  .output-cell,
  .point-b,
  .machine-node:nth-child(even) {
    animation-delay: -1.8s;
  }

  .portal-card::after {
    transition:
      opacity 170ms ease,
      transform 170ms ease;
  }

  .portal-card:hover::after {
    opacity: 0.86;
    transform: translateX(4px);
  }
}

@keyframes panel-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes nav-settle {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes soft-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -8px;
  }
}

@keyframes signal-sweep {
  0%,
  100% {
    opacity: 0.26;
  }
  50% {
    opacity: 0.64;
  }
}

@media (max-width: 1100px) {
  .page-nav {
    border-radius: 28px;
  }

  .landing-hero,
  .protocol-hero,
  .download-hero,
  .wallet-hero,
  .node-hero,
  .explorer-hero,
  .docs-hero,
  .portal-grid,
  .release-row {
    grid-template-columns: 1fr;
  }

  .portal-card.large {
    min-height: 420px;
  }

  .release-row > .release-icon,
  .release-row > div,
  .release-row > code,
  .release-row > .nav-btn,
  .release-row > .download-actions {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 18px, 1440px);
    padding-top: 10px;
  }

  .page-nav {
    top: 8px;
    border-radius: 22px;
    padding: 14px;
  }

  .page-nav::before {
    inset: -8px -10px auto;
  }

  .landing-hero,
  .protocol-hero,
  .download-hero,
  .wallet-hero,
  .node-hero,
  .explorer-hero,
  .docs-hero {
    min-height: auto;
    border-radius: 24px;
  }

  .cognitive-stage {
    min-height: 360px;
  }

  .portal-card.large,
  .portal-card {
    min-height: 320px;
  }

  .portal-card:not(.large) strong {
    font-size: clamp(34px, 13vw, 58px);
  }
}

/* Unified surface mode: public cards stay invisible until intent. */
.site-home > .panel:not(.page-nav):not(.dark-story),
.static-page > .panel:not(.page-nav):not(.dark-story) {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.site-home > .panel:not(.page-nav):not(.dark-story):hover,
.site-home > .panel:not(.page-nav):not(.dark-story):focus-within,
.static-page > .panel:not(.page-nav):not(.dark-story):hover,
.static-page > .panel:not(.page-nav):not(.dark-story):focus-within {
  border-color: rgba(0, 0, 0, 0.13);
  background:
    radial-gradient(circle at 86% 12%, rgba(255, 255, 255, 0.72), transparent 20rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.64), rgba(244, 244, 244, 0.58));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.68),
    0 24px 72px rgba(0, 0, 0, 0.09);
  backdrop-filter: blur(10px);
}

.site-home .portal-card,
.static-page .page-card,
.static-page .route-panel,
.static-page .portal-card,
.static-page .stack-layers article,
.static-page .wallet-steps article,
.static-page .lane-card,
.static-page .data-card,
.static-page .doc-topic,
.static-page .release-row {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.site-home .portal-card:hover,
.site-home .portal-card:focus-visible,
.static-page .page-card:hover,
.static-page .page-card:focus-within,
.static-page .route-panel:hover,
.static-page .route-panel:focus-within,
.static-page .portal-card:hover,
.static-page .portal-card:focus-visible,
.static-page .stack-layers article:hover,
.static-page .stack-layers article:focus-within,
.static-page .wallet-steps article:hover,
.static-page .wallet-steps article:focus-within,
.static-page .lane-card:hover,
.static-page .lane-card:focus-within,
.static-page .data-card:hover,
.static-page .data-card:focus-within,
.static-page .doc-topic:hover,
.static-page .doc-topic:focus-within,
.static-page .release-row:hover,
.static-page .release-row:focus-within {
  border-color: rgba(0, 0, 0, 0.16);
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 255, 255, 0.72), transparent 12rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.66), rgba(244, 244, 244, 0.58));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 22px 62px rgba(0, 0, 0, 0.09);
  backdrop-filter: blur(10px);
  transform: translateY(-2px);
}

.site-home .portal-card::before,
.static-page .portal-card::before {
  opacity: 0.38;
}

.site-home .portal-card:hover::before,
.site-home .portal-card:focus-visible::before,
.static-page .portal-card:hover::before,
.static-page .portal-card:focus-visible::before {
  opacity: 0.9;
}

@media (hover: none) {
  .site-home .portal-card,
  .static-page .page-card,
  .static-page .route-panel,
  .static-page .portal-card,
  .static-page .stack-layers article,
  .static-page .wallet-steps article,
  .static-page .lane-card,
  .static-page .data-card,
  .static-page .doc-topic,
  .static-page .release-row {
    border-color: rgba(0, 0, 0, 0.075);
    background: rgba(255, 255, 255, 0.18);
  }
}
