:root {
  --ink: var(--text);
  --muted-bright: #b5b7b2;
}

.mechanics-story { order: 4; }
.protocol-architecture { order: 5; }
.mechanics-story,
.protocol-architecture { scroll-margin-top: 90px; }

.mechanics-story [data-story-disabled] { display: none !important; }

.mechanics-story {
  --bg: #050605;
  height: 500vh;
  min-height: 3500px;
  flex: 0 0 auto;
  margin-top: 32px;
  position: relative;
  scroll-margin-top: 0;
  background: #050605;
  overflow: visible;
}

.landing-partners { order: 3; }

.partner-cloud {
  position: relative;
  min-height: 124px;
  margin: 18px -2vw 32px;
  display: flex;
  align-items: center;
  overflow: hidden;
  opacity: 0.54;
  filter: blur(0.48px) contrast(.92);
  mask-image: linear-gradient(90deg, rgba(0,0,0,.68), #000 6%, #000 94%, rgba(0,0,0,.68));
}

.partner-cloud::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: rgba(5, 6, 5, .18);
  box-shadow: inset 0 0 44px rgba(255, 255, 255, .018);
}

.partner-track {
  flex: none;
  width: max-content;
  display: flex;
  align-items: center;
  gap: 0;
  animation: partner-cloud-marquee 42s linear infinite;
  will-change: transform;
}

.partner-sequence {
  flex: none;
  display: flex;
  align-items: center;
  gap: 58px;
  padding-right: 58px;
}

.partner-track span {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #8b8b89;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.partner-track span i {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  color: #b9b9b6;
  font-size: 15px;
  font-style: normal;
}

@keyframes partner-cloud-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.mechanics-sticky {
  height: calc(100vh - 72px);
  position: sticky;
  top: 72px;
  padding: 32px 0 24px;
  border: 0;
  background: #050605;
  overflow: hidden;
}

.mechanics-header {
  min-height: 112px;
  display: flex;
  align-items: flex-start;
  border: 0;
}

.mechanics-header h2,
.story-wallet-action,
.story-step,
.compound-head,
.compound-formula {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.mechanics-header h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(58px, 7.2vw, 110px);
  font-weight: 540;
  line-height: .78;
  letter-spacing: -.075em;
  text-transform: none;
}

.mechanics-header h2 span { color: #555954; }

.story-wallet-action {
  min-width: 106px;
  height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  font-size: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.story-wallet-action svg {
  width: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
}

.story-wallet-action:hover {
  color: var(--bg);
  background: var(--ink);
  border-color: var(--ink);
}

.mechanics-layout {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: stretch;
}

.mechanics-copy {
  height: 100%;
  min-height: 0;
  position: relative;
}

.story-copy {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(calc(-50% + 22px));
  pointer-events: none;
  transition: opacity 420ms ease, transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.story-copy.is-active {
  opacity: 1;
  transform: translateY(-50%);
  pointer-events: auto;
}

.story-copy h2 {
  margin: 0;
  font-size: clamp(42px, 4.4vw, 68px);
  font-weight: 590;
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.story-description {
  max-width: 440px;
  margin: 28px 0 24px;
  color: var(--muted-bright);
  font-size: 14px;
  font-weight: 480;
  line-height: 1.6;
}

.story-steps {
  --story-step-progress: 0;
  position: absolute;
  left: 0;
  bottom: 3px;
  width: min(100%, 480px);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0;
  z-index: 3;
}

.story-steps::before,
.story-steps::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 35px;
  right: 35px;
  height: 1px;
  background: var(--line-soft);
}

.story-steps::after {
  background: rgba(255, 255, 255, 0.72);
  transform: scaleX(var(--story-step-progress));
  transform-origin: left center;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.story-step {
  width: 70px;
  min-width: 0;
  height: 62px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #555;
  font-size: 7px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
  transition: color 180ms ease;
}

.story-step i {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  background: var(--bg);
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.story-step svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.story-step span {
  font-size: 6px;
  font-style: normal;
}

.story-step:hover,
.story-step.is-active {
  color: var(--ink);
}

.story-step:hover i,
.story-step.is-active i {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.72);
  background: #0a0a0a;
}

.mechanics-stage {
  height: 100%;
  min-height: 0;
  position: relative;
  background: transparent;
  overflow: hidden;
}

.mechanics-stage::before {
  content: "LIVE MECHANICS / SCROLL TO ADVANCE";
  position: absolute;
  top: 8px;
  left: 0;
  z-index: 8;
  color: #555;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 7px;
  letter-spacing: 0.12em;
}

.mechanics-stage::after {
  content: none;
}

.story-scene {
  position: absolute;
  inset: 34px 0 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition: opacity 420ms ease, transform 520ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 520ms;
}

.story-scene.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 60ms, 60ms, 0s;
}

.story-scene > svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  shape-rendering: geometricPrecision;
  text-rendering: geometricPrecision;
}

.diagram-box,
.trader-chip rect,
.holder-card rect {
  fill: rgba(4, 4, 4, 0.92);
  stroke: rgba(255, 255, 255, 0.46);
  stroke-width: 1;
}

.treasury-box {
  fill: rgba(255, 255, 255, 0.035);
  stroke: rgba(255, 255, 255, 0.78);
}

.diagram-title,
.diagram-value,
.diagram-meta,
.trader-chip text,
.holder-card text,
.chart-label,
.chart-value {
  fill: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.diagram-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.diagram-value {
  font-size: 25px;
  font-weight: 550;
  letter-spacing: -0.05em;
}

.diagram-meta {
  fill: #777;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.11em;
}

.diagram-path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.68);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.diagram-path.dashed {
  stroke-width: 1.5;
  stroke-dasharray: 4 8;
  animation: story-dash 1s linear infinite;
}

.stream-50 { stroke-width: 12; }
.stream-20 { stroke-width: 4; }
.stream-30 { stroke-width: 7; }

.live-trade-card {
  opacity: 0;
  transform: translateY(8px);
}

.live-trade-card rect {
  fill: rgba(6, 6, 6, 0.96);
  stroke: rgba(255, 255, 255, 0.38);
  stroke-width: 1;
}

.live-trade-card text {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.trade-card-label,
.trade-card-meta {
  fill: #6f6f6f;
  font-size: 7px;
  font-weight: 650;
  letter-spacing: 0.1em;
}

.trade-card-side {
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.trade-buy { fill: #6f9a78; }
.trade-sell { fill: #9b6666; }

.trade-card-amount {
  fill: var(--ink);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.trade-card-fee {
  fill: #a5a5a5;
  font-size: 8px;
  font-weight: 600;
}

.scene-routing.is-active .trade-card-one,
.scene-routing.is-active .trade-card-two,
.scene-routing.is-active .trade-card-three {
  animation: trade-card-cycle 6s infinite;
}

.scene-routing.is-active .trade-card-two { animation-delay: 2s; }
.scene-routing.is-active .trade-card-three { animation-delay: 4s; }

@keyframes trade-card-cycle {
  0% { opacity: 0; transform: translateY(8px); }
  4%, 27% { opacity: 1; transform: translateY(0); }
  31%, 100% { opacity: 0; transform: translateY(-7px); }
}

.fee-input-path {
  stroke-width: 1.2;
  stroke-dasharray: 3 7;
  animation: story-dash 1s linear infinite;
}

.solana-fee-token {
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.18));
}

.sol-token-shell {
  fill: #050505;
  stroke: rgba(255, 255, 255, 0.78);
  stroke-width: 1;
}

.sol-token-mark {
  fill: #f1f1ef;
}

.vault-shell {
  fill: rgba(6, 6, 6, 0.95);
  stroke: rgba(255, 255, 255, 0.72);
  stroke-width: 1.2;
}

.vault-reservoir {
  fill: rgba(255, 255, 255, 0.018);
  stroke: rgba(255, 255, 255, 0.25);
  stroke-width: 1;
}

.vault-fill {
  fill: rgba(255, 255, 255, 0.18);
  transform-box: fill-box;
  transform-origin: center bottom;
  transform: scaleY(var(--vault-level, 0.44));
  transition: transform 460ms cubic-bezier(0.22, 1, 0.36, 1), fill 180ms ease;
}

.vault-fill.is-collecting {
  fill: rgba(255, 255, 255, 0.34);
  animation: vault-fee-captured 520ms ease-out;
}

.vault-total,
.vault-fill-label {
  fill: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.vault-total {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.05em;
}

.vault-total.is-updating {
  animation: vault-total-pop 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.vault-fill-label {
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.1em;
}

.vault-fill-label.is-collecting {
  animation: vault-label-captured 520ms ease-out;
}

.vault-clock {
  fill: #050505;
  stroke: var(--ink);
  stroke-width: 1.2;
}

.vault-clock-hand {
  stroke: var(--ink);
  stroke-width: 1.4;
  stroke-linecap: round;
  transform-box: view-box;
  transform-origin: 478px 157px;
}

.vault-clock-center {
  fill: var(--ink);
}

.scene-routing.is-active .vault-clock-minute {
  animation: vault-clock-spin 5s linear infinite;
}

.scene-routing.is-active .vault-clock-hour {
  animation: vault-clock-spin 20s linear infinite;
}

@keyframes vault-fee-captured {
  0% { opacity: 0.62; filter: none; }
  42% { opacity: 1; filter: drop-shadow(0 0 9px rgba(255, 255, 255, 0.42)); }
  100% { opacity: 0.82; filter: none; }
}

@keyframes vault-label-captured {
  0% { opacity: 0.45; }
  35% { opacity: 1; }
  100% { opacity: 0.76; }
}

@keyframes vault-total-pop {
  0% { opacity: 0.45; }
  35% { opacity: 1; filter: drop-shadow(0 0 7px rgba(255, 255, 255, 0.42)); }
  100% { opacity: 1; filter: none; }
}

@keyframes vault-clock-spin {
  to { transform: rotate(360deg); }
}

.scene-routing.is-active .stream-50,
.scene-routing.is-active .stream-20,
.scene-routing.is-active .stream-30 {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: draw-stream 1.25s 180ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.flow-particle {
  fill: var(--ink);
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.45));
}

.particle-delay { opacity: 0.8; }
.particle-delay-two { opacity: 0.6; }
.particle-delay-three { opacity: 0.7; }

@keyframes story-dash {
  to { stroke-dashoffset: -12; }
}

@keyframes draw-stream {
  to { stroke-dashoffset: 0; }
}

.scene-settlement {
  display: grid;
  place-items: center;
  padding: 32px;
}

.settlement-card {
  width: min(100%, 720px);
  min-height: 310px;
  display: grid;
  grid-template-rows: 92px 1fr;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.025), transparent 45%),
    rgba(3, 3, 3, 0.64);
  overflow: hidden;
}

.settlement-head {
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.settlement-head > span {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.settlement-head > span b {
  margin-left: 7px;
  color: var(--ink);
  font: inherit;
}

.settlement-head > div {
  display: flex;
  align-items: baseline;
  gap: 11px;
}

.settlement-head strong {
  color: var(--ink);
  font-size: 31px;
  font-weight: 550;
  letter-spacing: -0.06em;
}

.settlement-head small {
  color: var(--muted);
  font-size: 7px;
  letter-spacing: 0.12em;
}

.settlement-ledger {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 1fr);
  min-height: 0;
}

.settlement-ledger > div {
  min-width: 0;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  border-right: 1px solid var(--line-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 8px;
}

.settlement-ledger > div:last-child { border-right: 0; }

.settlement-ledger > div span {
  color: var(--muted);
}

.settlement-ledger > div strong {
  color: var(--ink);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.settlement-ledger .settlement-fees strong {
  font-size: clamp(21px, 2.2vw, 31px);
}

.scene-settlement.is-active .settlement-ledger > div {
  opacity: 0;
  transform: translateY(10px);
  animation: ledger-row 420ms forwards;
}

.scene-settlement.is-active .settlement-ledger > div:nth-child(1) { animation-delay: 240ms; }
.scene-settlement.is-active .settlement-ledger > div:nth-child(2) { animation-delay: 360ms; }
.scene-settlement.is-active .settlement-ledger > div:nth-child(3) { animation-delay: 480ms; }
.scene-settlement.is-active .settlement-ledger > div:nth-child(4) { animation-delay: 600ms; }

@keyframes ledger-row {
  to { opacity: 1; transform: translateY(0); }
}

.return-path {
  stroke-width: 2;
  stroke-dasharray: 5 8;
  animation: return-dash 1.2s linear infinite;
}

.trader-chip text {
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.trader-chip text:last-child {
  fill: #77a080;
  font-size: 9px;
}

.cashback-particle {
  fill: #6f9a78;
  filter: drop-shadow(0 0 5px rgba(111, 154, 120, 0.55));
}

@keyframes return-dash {
  to { stroke-dashoffset: 13; }
}

.holder-ribbon {
  fill: rgba(255, 255, 255, 0.74);
  shape-rendering: geometricPrecision;
}

.holder-ribbon-thin { opacity: 0.72; }
.holder-ribbon-medium { opacity: 0.82; }
.holder-ribbon-thick { opacity: 0.9; }

.scene-holders.is-active .holder-ribbon {
  animation: holder-ribbon-in 760ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.scene-holders.is-active .holder-ribbon-medium { animation-delay: 100ms; }
.scene-holders.is-active .holder-ribbon-thick { animation-delay: 200ms; }

@keyframes holder-ribbon-in {
  from { opacity: 0; }
}

.holder-card text {
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.holder-card .holder-percent {
  font-size: 22px;
  font-weight: 550;
  letter-spacing: -0.04em;
}

.scene-holders.is-active .holder-card {
  opacity: 0;
  animation: holder-card-in 420ms forwards;
}

.scene-holders.is-active .holder-card:nth-of-type(1) { animation-delay: 380ms; }
.scene-holders.is-active .holder-card:nth-of-type(2) { animation-delay: 520ms; }
.scene-holders.is-active .holder-card:nth-of-type(3) { animation-delay: 660ms; }

@keyframes holder-card-in {
  to { opacity: 1; }
}

.scene-compound {
  padding: 26px 30px 18px;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.compound-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line-soft);
}

.compound-head > div {
  min-height: 64px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.compound-head > div + div {
  border-left: 1px solid var(--line-soft);
}

.compound-head span,
.compound-formula span,
.compound-formula small {
  color: var(--muted);
  font-size: 7px;
}

.compound-head strong {
  font-size: 15px;
  font-weight: 550;
  letter-spacing: -0.03em;
  text-transform: none;
}

.compound-chart {
  width: min(100%, 520px);
  height: auto;
  min-width: 0;
  min-height: 0;
  max-height: 100%;
  aspect-ratio: 1 / 1;
  align-self: center;
  justify-self: center;
  shape-rendering: geometricPrecision;
}

.compound-chart line,
.compound-grid {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1;
}

.compound-grid {
  stroke-dasharray: 3 8;
}

.compound-area {
  fill: rgba(255, 255, 255, 0.34);
  opacity: 0.08;
}

.compound-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.scene-compound.is-active .compound-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: draw-compound 1.7s 160ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.compound-point {
  fill: var(--bg);
  stroke: var(--ink);
  stroke-width: 2;
  opacity: 0;
  vector-effect: non-scaling-stroke;
}

.scene-compound.is-active .compound-point {
  animation: compound-point-in 300ms forwards;
}

.scene-compound.is-active .point-one { animation-delay: 550ms; }
.scene-compound.is-active .point-two { animation-delay: 850ms; }
.scene-compound.is-active .point-three { animation-delay: 1150ms; }
.scene-compound.is-active .point-four { animation-delay: 1450ms; }

.chart-label {
  fill: #666;
  font-size: 8px;
  letter-spacing: 0.1em;
}

.chart-value {
  font-size: 21px;
  font-weight: 650;
}

.compound-formula {
  min-height: 54px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}

.compound-formula strong {
  font-size: 17px;
  font-weight: 550;
  letter-spacing: -0.04em;
  text-align: center;
  text-transform: none;
}

@keyframes draw-compound {
  to { stroke-dashoffset: 0; }
}

@keyframes compound-point-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.story-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
}

.story-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--ink);
  transition: width 80ms linear;
}

.protocol-architecture {
  padding: 120px 0 82px;
  border-top: 1px solid var(--line);
}

.architecture-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: end;
  gap: 56px;
  margin-bottom: 46px;
}

.architecture-kicker,
.architecture-summary span,
.architecture-toolbar,
.architecture-sequence,
.architecture-invariants {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.architecture-kicker {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
}

.architecture-kicker span {
  margin-right: 15px;
  color: var(--ink);
}

.architecture-intro h2 {
  margin: 0;
  font-size: clamp(48px, 5.7vw, 82px);
  font-weight: 580;
  line-height: 0.94;
  letter-spacing: -0.07em;
}

.architecture-intro h2 span {
  color: #696969;
}

.architecture-summary {
  padding: 0 0 5px 24px;
  border-left: 1px solid var(--line);
}

.architecture-summary span {
  color: var(--ink);
  font-size: 8px;
  font-weight: 700;
}

.architecture-summary p {
  max-width: 390px;
  margin: 15px 0 0;
  color: var(--muted-bright);
  font-size: 13px;
  line-height: 1.6;
}

.architecture-card {
  border: 1px solid var(--line);
  background: #020302;
  border-radius: 18px;
  overflow: hidden;
}

.architecture-toolbar {
  min-height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 7px;
}

.architecture-legend {
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.architecture-legend i {
  width: 10px;
  height: 10px;
  border: 1px solid var(--line);
  display: inline-block;
}

.architecture-legend .legend-program {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.7);
}

.architecture-legend .legend-state {
  border-style: dashed;
}

.architecture-legend .legend-external {
  border-radius: 3px;
  background: #2b2b2b;
}

.architecture-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d3d3d0;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.architecture-toolbar-actions,
.architecture-controls {
  display: flex;
  align-items: center;
}

.architecture-toolbar-actions {
  gap: 18px;
}

.architecture-controls {
  height: 30px;
  border: 1px solid var(--line-soft);
  border-radius: 15px;
  overflow: hidden;
}

.architecture-controls button,
.architecture-controls span {
  height: 100%;
  min-width: 32px;
  padding: 0 9px;
  display: grid;
  place-items: center;
  border: 0;
  border-left: 1px solid var(--line-soft);
  background: transparent;
  color: var(--muted-bright);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 8px;
}

.architecture-controls > :first-child {
  border-left: 0;
}

.architecture-controls button {
  cursor: pointer;
}

.architecture-controls button:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

#architecture-zoom-label {
  min-width: 52px;
  color: var(--ink);
}

.architecture-canvas {
  position: relative;
  height: clamp(620px, 54vw, 760px);
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  outline: 0;
  user-select: none;
}

.architecture-canvas.is-dragging {
  cursor: grabbing;
}

.architecture-canvas:focus-visible {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.architecture-canvas svg {
  display: block;
  width: 100%;
  height: 100%;
  shape-rendering: geometricPrecision;
  text-rendering: geometricPrecision;
}

.arch-column-label,
.arch-node text,
.arch-compound-loop text,
.arch-flow-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.arch-column-label {
  fill: #5f5f5f;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.1em;
}

.arch-node rect {
  fill: #060706;
  stroke: rgba(255, 255, 255, 0.52);
  stroke-width: 1;
  rx: 14px;
  ry: 14px;
  vector-effect: non-scaling-stroke;
}

.arch-node-type {
  fill: #777b75;
  font-size: 8.5px;
  font-weight: 650;
  letter-spacing: 0.11em;
}

.arch-node-title {
  fill: #f2f3ef;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.arch-node-meta,
.arch-node-foot {
  fill: #92958f;
  font-size: 8.5px;
  letter-spacing: 0.04em;
}

.arch-node-foot {
  fill: #b1b1b1;
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.arch-node line {
  stroke: rgba(255, 255, 255, 0.13);
}

.arch-node-icon {
  fill: none;
  stroke: #a5a8a2;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.arch-source-node circle {
  fill: #d7d7d4;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.28));
}

.arch-route-percent {
  fill: var(--ink);
  font-size: 27px;
  font-weight: 550;
  letter-spacing: -0.05em;
}

.arch-connector,
.arch-data-line,
.arch-compound-loop path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.arch-connector {
  stroke: rgba(216, 216, 213, 0.72);
  stroke-width: 1.5;
}

.arch-main-flow {
  stroke-width: 1.8;
}

.arch-cashback-flow,
.arch-cashback-out {
  stroke: rgba(235, 235, 232, 0.82);
  stroke-width: 3.2;
}

.arch-holder-flow,
.arch-holder-out {
  stroke-width: 1.8;
}

.arch-strategy-flow,
.arch-strategy-out {
  stroke-width: 2.4;
}

.arch-data-line {
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 1.2;
  stroke-dasharray: 4 7;
}

.architecture-card:hover .arch-data-line,
.arch-yield-route,
.arch-compound-loop path {
  animation: architecture-dash 1.1s linear infinite;
}

@keyframes architecture-dash {
  to { stroke-dashoffset: -26; }
}

.arch-compound-loop path {
  stroke: rgba(255, 255, 255, 0.56);
  stroke-width: 1.4;
  stroke-dasharray: 5 7;
}

.arch-compound-loop text {
  fill: #777;
  font-size: 8px;
  letter-spacing: 0.09em;
}

.arch-flow-label {
  fill: #070707;
  font-size: 8px;
  font-weight: 800;
}

.cashback-label {
  fill: #efefec;
}

.arch-yield-route {
  stroke-dasharray: 6 8;
}

.arch-yield-particles circle {
  fill: #f3f3f0;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.52));
}

.arch-protocol-pulse {
  fill: #d9d9d6;
  transform-box: fill-box;
  transform-origin: center;
  animation: architecture-protocol-pulse 2.1s ease-in-out infinite;
}

.protocol-pulse-late {
  animation-delay: 0.8s;
}

@keyframes architecture-protocol-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.72); }
  45% { opacity: 1; transform: scale(1); filter: drop-shadow(0 0 7px rgba(255, 255, 255, 0.55)); }
}

.architecture-sequence {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.architecture-sequence article {
  min-height: 142px;
  padding: 25px 24px;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-content: start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #060706;
}

.sequence-icon,
.staking-steps article > i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  color: var(--muted-bright);
  font-style: normal;
}

.sequence-icon svg,
.staking-steps article > i svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.architecture-sequence strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.architecture-sequence p {
  margin: 12px 0 0;
  color: var(--muted-bright);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.55;
  letter-spacing: 0;
  text-transform: none;
}

.architecture-invariants {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.architecture-invariants span {
  min-height: 46px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  color: #a4a7a1;
  font-size: 8px;
}

.architecture-invariants span::before {
  content: "✓";
  margin-right: 8px;
  color: #d1d1ce;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  padding: 12px 15px;
  border: 1px solid var(--line);
  background: #090909;
  color: var(--muted-bright);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.wallet-modal[hidden] {
  display: none !important;
}

.wallet-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 22px;
}

.wallet-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
}

.wallet-modal-panel {
  width: min(100%, 440px);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 18px;
  overflow: hidden;
  background: #070707;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.72);
}

.wallet-modal-panel > header {
  min-height: 92px;
  padding: 20px 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
}

.wallet-modal-panel > header span,
.wallet-modal-panel footer,
.wallet-option,
.wallet-modal-status,
.wallet-disconnect {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.wallet-modal-panel > header span {
  color: var(--muted);
  font-size: 7px;
}

.wallet-modal-panel h2 {
  margin: 7px 0 0;
  font-size: 24px;
  font-weight: 560;
  letter-spacing: -0.045em;
}

.wallet-modal-panel > header button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted-bright);
  cursor: pointer;
}

.wallet-options {
  padding: 10px;
  display: grid;
  gap: 7px;
}

.wallet-option {
  min-height: 66px;
  padding: 0 14px;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.wallet-option:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.045);
}

.wallet-option > i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted-bright);
  font-size: 8px;
  font-style: normal;
}

.wallet-option > span {
  display: grid;
  gap: 5px;
}

.wallet-option strong {
  font-size: 10px;
}

.wallet-option small,
.wallet-option b {
  color: var(--muted);
  font-size: 7px;
  font-weight: 500;
}

.wallet-modal-status {
  margin: 0;
  padding: 13px 22px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 7px;
}

.wallet-disconnect {
  width: calc(100% - 20px);
  min-height: 40px;
  margin: 0 10px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--muted-bright);
  font-size: 8px;
  cursor: pointer;
}

.wallet-modal-panel footer {
  min-height: 42px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line-soft);
  color: #505050;
  font-size: 6px;
}

.stake-page {
  min-height: 100vh;
}

.stake-shell {
  width: min(1440px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
}

.stake-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.stake-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stake-back,
.wallet-connect-button {
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.015);
  color: var(--muted-bright);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.wallet-connect-button i {
  width: 6px;
  height: 6px;
  border: 1px solid #9b9b99;
  border-radius: 50%;
}

.wallet-connect-button.is-connected i {
  background: var(--ink);
  box-shadow: 0 0 9px rgba(255, 255, 255, 0.35);
}

.stake-back:hover,
.wallet-connect-button:hover {
  color: var(--bg);
  background: var(--ink);
}

.stake-main {
  padding: 52px 0 90px;
}

.stake-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  align-items: end;
  gap: 80px;
  padding: 18px 0 52px;
}

.stake-hero h1 {
  margin: 0;
  font-size: clamp(58px, 7vw, 104px);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.075em;
}

.stake-hero h1 span,
.staking-mechanics h2 span {
  color: #666;
}

.stake-hero-copy {
  max-width: 470px;
  margin: 0 0 8px;
  padding-left: 24px;
  border-left: 1px solid var(--line);
  color: var(--muted-bright);
  font-size: 15px;
  line-height: 1.7;
}

.stake-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.stake-stats article {
  min-height: 132px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.012);
}

.stake-stats span,
.stake-stats p,
.stake-panel-header span,
.stake-chart-footer span,
.stake-field-label,
.stake-lock-group > p,
.stake-calculation,
.stake-submit-note,
.staking-steps,
.staking-formula-card {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.stake-stats article > span {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.stake-stats strong {
  display: block;
  margin-top: 20px;
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 550;
  letter-spacing: -0.055em;
}

.stake-stats strong small {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0;
}

.stake-stats p {
  margin: 9px 0 0;
  color: #5f5f5f;
  font-size: 7px;
}

.stake-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(380px, 0.75fr);
  gap: 12px;
}

.stake-chart-panel,
.stake-action-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(4, 4, 4, 0.88);
}

.stake-panel-header {
  min-height: 78px;
  padding: 17px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line-soft);
}

.stake-panel-header span {
  color: var(--muted);
  font-size: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stake-panel-header h2 {
  margin: 7px 0 0;
  font-size: 21px;
  font-weight: 550;
  letter-spacing: -0.045em;
}

.stake-chart-quote {
  display: grid;
  gap: 7px;
  text-align: right;
}

.stake-chart-quote strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  font-weight: 550;
}

.stake-chart-wrap {
  min-height: 480px;
  padding: 26px 18px 8px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 58% 38%, rgba(255, 255, 255, 0.025), transparent 38%);
}

.stake-market-chart {
  width: 100%;
  height: auto;
  overflow: visible;
}

.stake-chart-grid path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.stake-chart-axis text {
  fill: #505050;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.stake-chart-area {
  fill: url(#stake-chart-fill);
}

.stake-chart-line {
  fill: none;
  stroke: rgba(244, 244, 241, 0.88);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.stake-chart-candles line {
  stroke: rgba(244, 244, 241, 0.72);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.stake-chart-candles rect {
  stroke: rgba(244, 244, 241, 0.88);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.stake-chart-candles .up rect { fill: #e8e8e5; }
.stake-chart-candles .down rect { fill: #343434; }

.stake-chart-current-line {
  stroke: rgba(255, 255, 255, 0.28);
  stroke-width: 1;
  stroke-dasharray: 4 6;
  vector-effect: non-scaling-stroke;
}

.stake-chart-price-tag rect {
  fill: #e9e9e6;
}

.stake-chart-price-tag text {
  fill: #050505;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 8px;
  font-weight: 800;
}

.stake-chart-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-soft);
}

.stake-chart-footer > div {
  min-height: 78px;
  padding: 16px 18px;
  display: grid;
  gap: 8px;
}

.stake-chart-footer > div + div {
  border-left: 1px solid var(--line-soft);
}

.stake-chart-footer span {
  color: var(--muted);
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stake-chart-footer strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  font-weight: 550;
}

.stake-action-panel {
  padding-bottom: 18px;
}

.stake-wallet-state {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stake-input-group,
.stake-lock-group {
  padding: 20px;
  border-bottom: 1px solid var(--line-soft);
}

.stake-field-label {
  margin-bottom: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stake-field-label label,
.stake-field-label strong {
  color: var(--ink);
  font-weight: 650;
}

.stake-field-label b {
  color: var(--muted-bright);
  font-weight: 500;
}

.stake-amount-field {
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 10px 0 16px;
  background: rgba(255, 255, 255, 0.016);
}

.stake-amount-field input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 27px;
}

.stake-amount-field input::-webkit-outer-spin-button,
.stake-amount-field input::-webkit-inner-spin-button {
  appearance: none;
}

.stake-amount-field > span,
.stake-amount-field button {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.07em;
}

.stake-amount-field > span { color: var(--muted-bright); }

.stake-amount-field button {
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.lock-range {
  --lock-progress: 20.69%;
  width: 100%;
  height: 2px;
  margin: 10px 0 24px;
  appearance: none;
  border: 0;
  outline: 0;
  background: linear-gradient(90deg, var(--ink) var(--lock-progress), #272727 var(--lock-progress));
}

.lock-range::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  appearance: none;
  border: 4px solid #060606;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.62);
  cursor: grab;
}

.lock-range::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 3px solid #060606;
  border-radius: 50%;
  background: var(--ink);
}

.lock-recommendations {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.lock-recommendations button {
  min-height: 58px;
  padding: 10px;
  display: grid;
  gap: 7px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 7px;
  text-align: left;
  cursor: pointer;
}

.lock-recommendations button strong {
  color: var(--muted-bright);
  font-size: 10px;
}

.lock-recommendations button:hover,
.lock-recommendations button.is-active {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink);
}

.stake-lock-group > p {
  margin: 13px 0 0;
  color: #5d5d5d;
  font-size: 7px;
  line-height: 1.6;
}

.stake-calculation {
  padding: 10px 20px;
}

.stake-calculation > div {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 8px;
}

.stake-calculation strong {
  color: var(--ink);
  font-size: 9px;
  font-weight: 600;
}

.stake-submit {
  width: calc(100% - 40px);
  min-height: 52px;
  margin: 6px 20px 0;
  border: 1px solid var(--ink);
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.stake-submit:hover {
  background: transparent;
  color: var(--ink);
}

.stake-submit-note {
  margin: 11px 20px 0;
  color: #5a5a5a;
  font-size: 7px;
  line-height: 1.55;
  text-align: center;
}

.strategy-calculator {
  padding: 72px 0 112px;
  scroll-margin-top: 24px;
}

.strategy-calculator-intro {
  min-height: 220px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 48px;
  padding: 0 2px 34px;
}

.strategy-calculator-intro p,
.calculator-live-state,
.yield-module-title,
.yield-switch,
.yield-metric-label,
.yield-metric-cell small,
.yield-rate-strip,
.yield-chart-status,
.yield-chart-axis,
.yield-module-footer,
.yield-chart-tooltip {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.strategy-calculator-intro p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.strategy-calculator-intro h2 {
  margin: 0;
  font-size: clamp(58px, 7vw, 104px);
  font-weight: 520;
  line-height: 0.86;
  letter-spacing: -0.075em;
}

.strategy-calculator-intro h2 span {
  color: #626262;
}

.calculator-live-state {
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.calculator-live-state i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.calculator-live-state.is-stale i {
  background: #6a6a6a;
  box-shadow: none;
}

.yield-module {
  width: 100%;
  display: grid;
  grid-template-rows: 58px 160px 66px 390px auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(5, 5, 5, 0.72);
}

.yield-module-header {
  min-width: 0;
  padding-left: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.012);
}

.yield-module-title {
  display: grid;
  gap: 4px;
}

.yield-module-title span {
  color: #5d5d5d;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.yield-module-title b {
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 550;
}

.yield-module-actions {
  align-self: stretch;
  display: flex;
}

.yield-switch {
  position: relative;
  min-width: 170px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-left: 1px solid var(--line-soft);
  cursor: pointer;
  user-select: none;
}

.yield-switch > span {
  display: grid;
  gap: 4px;
}

.yield-switch b {
  color: var(--ink);
  font-size: 10px;
  font-weight: 650;
}

.yield-switch small {
  color: var(--muted);
  font-size: 6px;
  letter-spacing: 0.08em;
}

.yield-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.yield-switch > i {
  position: relative;
  width: 31px;
  height: 17px;
  flex: 0 0 auto;
  border: 1px solid #444;
  border-radius: 20px;
  background: #0b0b0b;
  transition: border-color 160ms ease, background 160ms ease;
}

.yield-switch > i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #6c6c6c;
  transition: transform 160ms ease, background 160ms ease;
}

.yield-switch input:checked + i {
  border-color: #b9b9b6;
  background: #1c1c1c;
}

.yield-switch input:checked + i::after {
  transform: translateX(14px);
  background: var(--ink);
}

.yield-switch:focus-within {
  outline: 1px solid #a6a6a3;
  outline-offset: -1px;
}

.yield-metric-row {
  min-width: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line-soft);
}

.yield-metric-cell {
  min-width: 0;
  padding: 23px 21px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  border-right: 1px solid var(--line-soft);
  color: var(--ink);
}

.yield-metric-cell:last-child {
  border-right: 0;
}

.yield-metric-label {
  color: var(--muted);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.yield-metric-input,
.yield-result-value {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.yield-metric-input input {
  width: min(220px, 82%);
  padding: 0 0 5px;
  border: 0;
  border-bottom: 1px solid #4b4b4b;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(27px, 2.6vw, 43px);
  font-weight: 400;
  line-height: 1;
}

.yield-metric-input input:focus {
  border-bottom-color: var(--ink);
}

.yield-metric-input input[readonly] {
  cursor: default;
  caret-color: transparent;
}

.yield-metric-input em,
.yield-result-value em {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  font-style: normal;
}

.yield-metric-cell small {
  overflow: hidden;
  color: #5b5b5b;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yield-metric-cell small b {
  color: var(--muted-bright);
  font-weight: 600;
}

.yield-live-chip {
  margin-left: 5px;
  padding: 2px 4px;
  border: 1px solid #444;
  border-radius: 4px;
  color: #b5b5b3;
  font-size: 6px;
  font-weight: 650;
}

.yield-live-chip.is-stale {
  color: #666;
}

.yield-result-cell {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.045), transparent 70%);
}

.yield-result-value strong {
  max-width: 100%;
  overflow: hidden;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(29px, 2.8vw, 46px);
  font-weight: 450;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yield-rate-strip {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.006);
}

.yield-rate-strip > span {
  min-width: 0;
  padding: 10px 11px;
  display: grid;
  align-content: center;
  gap: 5px;
  border-right: 1px solid var(--line-soft);
}

.yield-rate-strip > span:last-child {
  border-right: 0;
}

.yield-rate-strip small,
.yield-rate-strip b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yield-rate-strip small {
  color: #505050;
  font-size: 6px;
}

.yield-rate-strip b {
  color: var(--muted-bright);
  font-size: 9px;
  font-weight: 600;
}

.yield-rate-strip > span:nth-child(5) b {
  color: var(--ink);
}

.yield-chart {
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 20px 24px 12px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 9px;
  background: rgba(255, 255, 255, 0.004);
}

.yield-chart figcaption {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.yield-chart figcaption > div {
  display: grid;
  gap: 5px;
}

.yield-chart figcaption strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  font-weight: 550;
}

.yield-chart-status {
  align-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 7px;
}

.yield-chart-status i {
  width: 14px;
  height: 2px;
  background: var(--ink);
}

.yield-chart-status b {
  font-weight: 600;
}

.yield-chart-stage {
  position: relative;
  min-height: 0;
}

#yield-projection-chart {
  width: 100%;
  height: 100%;
  min-height: 270px;
  display: block;
}

.yield-chart-grid line {
  stroke: #212121;
  stroke-dasharray: 2 8;
}

.yield-chart-area {
  fill: rgba(255, 255, 255, 0.04);
}

.yield-chart-line {
  fill: none;
  stroke: #ededeb;
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
}

.yield-chart-end,
.yield-chart-hover-point {
  fill: #050505;
  stroke: var(--ink);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.yield-chart-cursor {
  opacity: 0;
  stroke: #777;
  stroke-width: 1;
  stroke-dasharray: 3 5;
  vector-effect: non-scaling-stroke;
}

.yield-chart-hover-point {
  opacity: 0;
}

.yield-chart-cursor.is-visible,
.yield-chart-hover-point.is-visible {
  opacity: 1;
}

.yield-chart-hit-area {
  fill: transparent;
  pointer-events: all;
  cursor: crosshair;
}

.yield-chart-tooltip {
  position: absolute;
  z-index: 2;
  width: 154px;
  padding: 11px 12px;
  display: grid;
  gap: 5px;
  border: 1px solid #484848;
  border-radius: 9px;
  background: rgba(8, 8, 8, 0.96);
  pointer-events: none;
}

.yield-chart-tooltip[hidden] {
  display: none;
}

.yield-chart-tooltip span,
.yield-chart-tooltip small {
  color: var(--muted);
  font-size: 6px;
  letter-spacing: 0.07em;
}

.yield-chart-tooltip strong {
  font-size: 13px;
  font-weight: 650;
}

.yield-chart-axis {
  padding: 0 3.2%;
  display: flex;
  justify-content: space-between;
  color: #484848;
  font-size: 6px;
}

.yield-module-footer {
  min-height: 42px;
  padding: 9px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line-soft);
  color: #505050;
  font-size: 6px;
  letter-spacing: 0.045em;
}

.yield-module-footer nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px 13px;
}

.yield-module-footer a {
  color: #696969;
  text-decoration: none;
}

.yield-module-footer a:hover,
.yield-module-footer a:focus-visible {
  color: var(--ink);
  outline: none;
}

.yield-calculation-inputs {
  display: none !important;
}

.articles-section { scroll-margin-top: 90px; }

.content-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 40px;
  margin-bottom: 42px;
}

.content-section-head p,
.litepaper-teaser-copy > p:first-child {
  margin: 0 0 20px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.content-section-head h2,
.litepaper-teaser h2 {
  margin: 0;
  font-size: clamp(52px, 6.4vw, 92px);
  font-weight: 520;
  line-height: 0.9;
  letter-spacing: -0.072em;
}

.content-section-head h2 span,
.litepaper-teaser h2 span {
  color: #626262;
}

.content-section-head > a,
.litepaper-teaser-copy > a {
  min-height: 44px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.content-section-head > a:hover,
.litepaper-teaser-copy > a:hover {
  background: var(--ink);
  color: var(--bg);
}

@media (max-width: 760px) {
  .mechanics-story { height: 500svh; min-height: 3100px; margin-top: 54px; }
  .partner-cloud { min-height: 92px; margin: 14px -14px 24px; }
  .partner-track { animation-duration: 32s; }
  .partner-sequence { gap: 34px; padding-right: 34px; }
  .mechanics-sticky { top: 62px; height: calc(100svh - 62px); min-height: 558px; padding: 16px 0 12px; }
  .mechanics-layout { height: 100%; grid-template-columns: 1fr; grid-template-rows: minmax(210px,.72fr) minmax(300px,1.28fr); gap: 8px; align-items: stretch; }
  .mechanics-copy,.mechanics-stage { width: 100%; height: auto; min-height: 0; }
  .story-copy { top: 47%; }
  .story-copy h2 { font-size: clamp(31px,10vw,42px); line-height: .94; }
  .story-description { max-width: none; margin: 13px 0 11px; font-size: 11px; line-height: 1.45; }
  .story-steps { bottom: 0; }
  .story-step { width: 54px; height: 45px; font-size: 6px; }
  .story-steps::before,.story-steps::after { top: 14px; left: 27px; right: 27px; }
  .story-step i { width: 28px; height: 28px; }
  .story-step svg { width: 14px; height: 14px; }
  .story-step span { display: none; }
  .mechanics-stage::before { top: 9px; left: 10px; font-size: 6px; }
  .story-scene { inset: 24px 7px 6px; }
  .scene-settlement { padding: 8px; }
  .settlement-card { min-height: 274px; grid-template-rows: 68px 1fr; }
  .settlement-head { padding: 0 13px; }
  .settlement-head > span { font-size: 6px; }
  .settlement-head > div { gap: 7px; }
  .settlement-head strong { font-size: 20px; }
  .settlement-head small { font-size: 5px; }
  .settlement-ledger { grid-template-columns: 1fr 1fr; }
  .settlement-ledger > div { min-height: 96px; padding: 12px 10px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); font-size: 6px; }
  .settlement-ledger > div:nth-child(2n) { border-right: 0; }
  .settlement-ledger > div:nth-last-child(-n+2) { border-bottom: 0; }
  .settlement-ledger > div strong,
  .settlement-ledger .settlement-fees strong { font-size: 16px; }
  .scene-compound { padding: 12px 8px 7px; }
  .compound-head > div { min-height: 43px; padding: 6px 8px; }
  .compound-head strong { font-size: 10px; }
  .compound-chart { width: min(100%, 300px); min-height: 0; }
  .compound-formula { min-height: 38px; padding: 6px 8px; gap: 6px; }
  .compound-formula strong { font-size: 11px; }
  .protocol-architecture { padding: 76px 0 54px; }
  .architecture-intro { grid-template-columns: 1fr; gap: 28px; margin-bottom: 28px; }
  .architecture-intro h2 { font-size: clamp(43px,13vw,62px); }
  .architecture-summary { padding: 16px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .architecture-toolbar { align-items: flex-start; flex-direction: column; padding: 13px; }
  .architecture-toolbar-actions { width: 100%; justify-content: space-between; }
  .architecture-legend { flex-wrap: wrap; gap: 10px 16px; }
  .architecture-sequence,.architecture-invariants { grid-template-columns: 1fr; }
}

