:root {
  --bg: #f8f8f2;
  --surface: #fcfcf7;
  --ink: #090a08;
  --text: #1c1e19;
  --muted: #55584f;
  --soft: #85897d;
  --line: rgba(9, 10, 8, 0.1);
  --line-strong: rgba(9, 10, 8, 0.16);
  --grid: rgba(9, 10, 8, 0.035);
  --lime: #b7f500;
  --lime-soft: rgba(183, 245, 0, 0.22);
  --mono: "SFMono-Regular", "Roboto Mono", "Cascadia Mono", Consolas, monospace;
  --sans: Inter, "SF Pro Display", "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    var(--bg);
  background-size: 72px 72px, 72px 72px, auto;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button,
a {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

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

.topbar {
  position: relative;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(230px, 1fr);
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 14px clamp(22px, 4vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(248, 248, 242, 0.9);
  backdrop-filter: blur(18px);
}

.brand,
.nav-tab,
.wallet-button,
.button,
.wallet-menu-item,
.wallet-close {
  border: 0;
  background: transparent;
}

.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 13px;
  padding: 0;
  text-align: left;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--lime);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-copy {
  display: grid;
  gap: 4px;
}

.brand-name {
  font-size: 15px;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.brand-chain {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-chain i,
.wallet-dot,
.eyebrow span {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.5vw, 34px);
}

.nav-tab {
  position: relative;
  min-height: 40px;
  padding: 0;
  color: var(--soft);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.nav-tab::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
  opacity: 0;
  transform: translateX(-50%) scale(0.7);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-tab.is-active {
  color: var(--ink);
}

.nav-tab.is-active::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.top-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}
.wallet-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: rgba(252, 252, 247, 0.74);
  color: var(--ink);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}


.wallet-button:hover,
.button:hover {
  border-color: rgba(9, 10, 8, 0.24);
  background: var(--surface);
  transform: translateY(-1px);
}


.wallet-control {
  position: relative;
}

.wallet-button {
  gap: 9px;
  min-width: 164px;
  padding: 0 18px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wallet-connect-label::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--lime);
  vertical-align: 1px;
}

.wallet-button.is-connected,
.wallet-button.is-wrong {
  justify-content: flex-start;
  min-width: 178px;
  gap: 10px;
}

.wallet-button-avatar {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--lime);
}

.wallet-button.is-wrong .wallet-button-avatar {
  background: var(--ink);
}

.wallet-button-copy {
  display: grid;
  gap: 2px;
  text-align: left;
}

.wallet-button-copy strong,
.wallet-button-copy small {
  max-width: 132px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-button-copy strong {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wallet-button-copy small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.wallet-chevron {
  margin-left: auto;
}

.wallet-chevron::before {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.wallet-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 50;
  width: 318px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  background: rgba(252, 252, 247, 0.98);
  box-shadow: 0 24px 80px rgba(9, 10, 8, 0.08);
}

.wallet-menu-head {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 10px 10px 14px;
}

.wallet-menu-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--lime);
}

.menu-kicker,
.menu-network {
  display: block;
  color: var(--soft);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.menu-address {
  display: block;
  margin: 4px 0;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  text-overflow: ellipsis;
}

.wallet-menu-body {
  display: grid;
  gap: 4px;
  padding-top: 8px;
}

.wallet-menu-item {
  min-height: 42px;
  border-radius: 10px;
  padding: 0 10px;
  color: var(--ink);
  text-align: left;
  font-size: 13px;
  font-weight: 700;
}

.wallet-menu-item:hover {
  background: rgba(9, 10, 8, 0.045);
}

.wallet-menu-item.danger {
  color: #5a211d;
}

.wallet-menu-item:disabled,
.button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.deck {
  height: calc(100vh - 76px);
  overflow: hidden;
}

.deck-track {
  display: flex;
  height: 100%;
  transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

.page {
  position: relative;
  display: grid;
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  height: 100%;
  overflow: auto;
  padding: clamp(46px, 7vw, 104px) clamp(24px, 6vw, 116px);
}

.hero-page {
  grid-template-columns: minmax(0, 0.48fr) minmax(420px, 0.52fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: clamp(48px, 6vw, 110px);
  align-items: center;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 0 0 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--muted);
  background: rgba(252, 252, 247, 0.55);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(64px, 8vw, 138px);
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.hero-title span {
  display: block;
}

.hero-text {
  max-width: 680px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(19px, 1.6vw, 25px);
  font-weight: 520;
  line-height: 1.42;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 38px;
}

.button {
  min-width: 170px;
  padding: 0 22px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button.primary {
  border-color: rgba(9, 10, 8, 0.2);
  background: var(--lime);
}

.button.secondary {
  background: rgba(252, 252, 247, 0.56);
}

.button.full {
  width: 100%;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 54px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-strip article {
  min-width: 150px;
  border-right: 1px solid var(--line);
  padding: 18px 22px 18px 0;
  margin-right: 22px;
}

.trust-strip article:last-child {
  border-right: 0;
  margin-right: 0;
}

.trust-strip span,
.metric-strip span,
.collection-summary span,
.card-label,
.claim-facts span,
.docs-grid span,
.mechanism-list span {
  display: block;
  color: var(--soft);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trust-strip strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 760;
}

.protocol-field {
  position: relative;
  min-height: min(620px, 62vh);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(252, 252, 247, 0.34);
  overflow: hidden;
}

.field-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
}

.field-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(9, 10, 8, 0.06);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.circle-one {
  width: 58%;
  aspect-ratio: 1;
}

.circle-two {
  width: 82%;
  aspect-ratio: 1;
  border-style: dashed;
}

.field-cross {
  position: absolute;
  width: 13px;
  height: 13px;
  border: 1px solid rgba(9, 10, 8, 0.2);
}

.cross-a {
  right: 10%;
  top: 18%;
}

.cross-b {
  left: 14%;
  bottom: 18%;
}



.protocol-node {
  position: absolute;
  display: grid;
  gap: 5px;
  min-width: 130px;
  padding: 0;
}

.protocol-node::before {
  content: "";
  width: 11px;
  height: 11px;
  border: 1px solid rgba(9, 10, 8, 0.38);
  border-radius: 50%;
  background: var(--bg);
}

.protocol-node.is-active::before {
  background: var(--lime);
  border-color: var(--ink);
}

.protocol-node span {
  color: var(--soft);
  font-family: var(--mono);
  font-size: 10px;
}

.protocol-node strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 820;
  letter-spacing: 0.02em;
}

.protocol-node small {
  max-width: 170px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.node-token { left: 13%; top: 42%; }
.node-nft { left: 35%; top: 30%; }
.node-fees { right: 30%; top: 56%; }
.node-aapl { right: 10%; top: 39%; }

.metric-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-self: end;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(252, 252, 247, 0.48);
}

.metric-strip article {
  min-height: 142px;
  border-right: 1px solid var(--line);
  padding: 25px 28px;
}

.metric-strip article:last-child {
  border-right: 0;
}

.metric-strip strong {
  display: block;
  margin-top: 18px;
  color: var(--ink);
  font-size: clamp(25px, 2.8vw, 46px);
  font-weight: 850;
  letter-spacing: -0.04em;
}

.metric-strip small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.mechanism-page,
.collection-page,
.docs-page {
  align-content: center;
  gap: clamp(34px, 5vw, 70px);
}

.mechanism-page {
  grid-template-columns: minmax(0, 0.48fr) minmax(0, 0.52fr);
}

.page-copy h2,
.page-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(42px, 5.5vw, 90px);
  font-weight: 830;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.page-copy p:not(.eyebrow),
.page-head p {
  max-width: 610px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.35vw, 22px);
  line-height: 1.5;
}

.mechanism-list,
.docs-grid,
.collection-grid,
.claim-facts {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--line);
}

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

.mechanism-list article,
.docs-grid article,
.nft-card,
.claim-facts article {
  background: rgba(252, 252, 247, 0.62);
  padding: clamp(22px, 2.8vw, 36px);
}

.mechanism-list strong,
.docs-grid strong,
.nft-card strong,
.claim-facts strong {
  display: block;
  margin-top: 18px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 780;
  letter-spacing: -0.02em;
}

.mechanism-list p,
.docs-grid p,
.nft-card small {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.page-head {
  display: grid;
  grid-template-columns: minmax(0, 0.64fr) minmax(280px, 0.36fr);
  gap: clamp(26px, 5vw, 78px);
  align-items: end;
}

.collection-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.collection-summary article {
  border-right: 1px solid var(--line);
  padding: 21px 24px;
}

.collection-summary article:last-child {
  border-right: 0;
}

.collection-summary strong {
  display: block;
  margin-top: 7px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

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

.nft-card {
  min-height: 178px;
}

.nft-card span {
  display: inline-flex;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 8px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
}

.claim-page {
  align-content: center;
}

.claim-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.5fr) minmax(340px, 0.28fr) minmax(300px, 0.22fr);
  gap: clamp(26px, 4vw, 62px);
  align-items: center;
}

.claim-panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(28px, 4vw, 46px);
  background: var(--surface);
}

.claim-panel strong {
  display: block;
  margin-top: 18px;
  color: var(--ink);
  font-size: clamp(38px, 4.5vw, 68px);
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.claim-panel p {
  min-height: 74px;
  margin: 22px 0 26px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.claim-facts {
  gap: 0;
}

.claim-facts article {
  border-bottom: 1px solid var(--line);
  padding: 20px;
}

.claim-facts article:last-child {
  border-bottom: 0;
}

.claim-facts strong {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0;
}

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

.disclosure {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.disclosure p {
  max-width: 820px;
  margin: 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.55;
}

.disclosure a {
  flex: none;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.wallet-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 42px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.wallet-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.wallet-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(9, 10, 8, 0.4);
  backdrop-filter: blur(10px);
}

.wallet-selector {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 390px) minmax(360px, 1fr);
  width: min(960px, calc(100vw - 48px));
  height: min(670px, calc(100vh - 96px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: #1b1c20;
  color: #f5f5f5;
  box-shadow: 0 44px 140px rgba(0, 0, 0, 0.28);
  transform: translateY(8px) scale(0.985);
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.wallet-modal.is-open .wallet-selector {
  transform: translateY(0) scale(1);
}

.wallet-selector:focus {
  outline: none;
}

.wallet-selector:focus-visible {
  outline: 2px solid rgba(183, 245, 0, 0.68);
  outline-offset: 4px;
}

.wallet-close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #3a3c43;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0;
}

.wallet-close::before,
.wallet-close::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 11px;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.wallet-close::before { transform: rotate(45deg); }
.wallet-close::after { transform: rotate(-45deg); }

.wallet-selector-list {
  display: flex;
  min-height: 0;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px 26px;
}

.wallet-selector h3,
.wallet-info-panel h4 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(23px, 2.4vw, 29px);
  font-weight: 850;
  letter-spacing: -0.02em;
}

.wallet-group-title {
  margin: 34px 0 12px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
}

.wallet-installed-list {
  display: grid;
  min-height: 0;
  align-content: start;
  gap: 4px;
  overflow-y: auto;
  padding-right: 10px;
}

.wallet-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 60px;
  border: 0;
  border-radius: 12px;
  padding: 8px;
  background: transparent;
  color: #ffffff;
  text-align: left;
}

.wallet-row:hover,
.wallet-row:focus-visible {
  background: rgba(255, 255, 255, 0.075);
  outline: none;
}

.wallet-row-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--lime);
  color: #050505;
  font-weight: 900;
}

.wallet-row-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wallet-row-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.wallet-row-copy strong {
  overflow: hidden;
  color: #ffffff;
  font-size: 18px;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-row-copy small,
.wallet-status,
.wallet-info-item p {
  color: rgba(255, 255, 255, 0.58);
}

.wallet-empty-state {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.045);
}

.wallet-info-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 74px 76px 58px;
}

.wallet-info-panel h4 {
  margin-bottom: 42px;
  text-align: center;
}

.wallet-info-item {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin-top: 28px;
}

.wallet-info-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--lime);
}

.wallet-info-item strong {
  color: #ffffff;
  font-size: 17px;
}

.wallet-info-item p {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.45;
}

.wallet-info-actions {
  display: grid;
  justify-items: center;
  gap: 18px;
  margin-top: 48px;
}

.wallet-learn-primary,
.wallet-learn-secondary {
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.wallet-learn-primary {
  border-radius: 6px;
  padding: 10px 18px;
  background: #f0f0f0;
  color: #111317;
}

.wallet-status {
  min-height: 22px;
  margin: 14px 4px 0;
  font-size: 13px;
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 1180px) {
  body {
    overflow: auto;
  }

  .page-shell,
  .deck {
    height: auto;
    overflow: visible;
  }

  .deck-track {
    display: block;
    height: auto;
    transform: none !important;
  }

  .page {
    min-height: auto;
    height: auto;
    overflow: visible;
    padding: 56px clamp(20px, 5vw, 58px);
  }

  .topbar {
    position: sticky;
    top: 0;
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .hero-page,
  .mechanism-page,
  .claim-layout,
  .page-head {
    grid-template-columns: 1fr;
  }

  .protocol-field {
    min-height: 520px;
  }

  .metric-strip,
  .collection-grid,
  .docs-grid,
  .mechanism-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .top-actions,
  .wallet-control,
  .wallet-button {
    width: 100%;
  }

  .top-actions {
    align-items: stretch;
  }

  .wallet-button {
    flex: 1;
  }

  .wallet-menu {
    left: 0;
    right: auto;
    width: min(100%, 340px);
  }

  .hero-title {
    font-size: clamp(56px, 17vw, 86px);
  }

  .hero-actions,
  .trust-strip,
  .disclosure {
    flex-direction: column;
    align-items: stretch;
  }
  .button {
    width: 100%;
  }

  .trust-strip article {
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    margin-right: 0;
    padding-right: 0;
  }

  .trust-strip article:last-child {
    border-bottom: 0;
  }

  .protocol-field {
    min-height: 620px;
  }

  .protocol-node {
    left: 12% !important;
    right: auto !important;
    min-width: 76%;
  }

  .node-token { top: 14%; }
  .node-nft { top: 34%; }
  .node-fees { top: 54%; }
  .node-aapl { top: 74%; }

  .protocol-node::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 18px;
    width: 1px;
    height: 70px;
    background: var(--line-strong);
  }

  .node-aapl::after {
    display: none;
  }

  .metric-strip,
  .collection-summary,
  .collection-grid,
  .docs-grid,
  .mechanism-list {
    grid-template-columns: 1fr;
  }

  .metric-strip article,
  .collection-summary article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric-strip article:last-child,
  .collection-summary article:last-child {
    border-bottom: 0;
  }

  .wallet-selector {
    grid-template-columns: 1fr;
    height: min(760px, calc(100vh - 44px));
  }

  .wallet-selector-list {
    border-right: 0;
    padding: 28px 22px;
  }

  .wallet-installed-list {
    max-height: 350px;
  }

  .wallet-info-panel {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 22px 30px;
  }

  .wallet-info-panel h4 {
    margin-bottom: 18px;
    text-align: left;
  }
}


/* Technical symbol layer */
.field-axis {
  position: absolute;
  background: rgba(9, 10, 8, 0.13);
  pointer-events: none;
}

.axis-x {
  left: 8%;
  right: 8%;
  top: 50%;
  height: 1px;
}

.axis-y {
  top: 8%;
  bottom: 8%;
  left: 50%;
  width: 1px;
}



.protocol-field .protocol-node {
  z-index: 3;
}




/* Direct route pages: sober, direct, no tablet slider */
html,
body {
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

.topbar {
  position: sticky;
  top: 0;
  min-height: 68px;
  background: rgba(248, 248, 242, 0.92);
}

.nav-links {
  gap: 4px;
}

.nav-tab {
  min-height: 34px;
  border: 1px solid transparent;
  padding: 0 13px;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}

.nav-tab::after {
  display: none;
}

.nav-tab:hover {
  color: var(--ink);
  border-color: rgba(9, 10, 8, 0.12);
}

.nav-tab.is-active {
  border-color: var(--ink);
  color: var(--ink);
  background: rgba(252, 252, 247, 0.42);
}

.deck {
  min-height: calc(100vh - 68px);
  height: auto;
  overflow: visible;
}

.deck-track {
  display: block;
  height: auto;
  transform: none !important;
  transition: none;
  will-change: auto;
}

.page {
  display: none;
  width: 100%;
  min-width: 0;
  min-height: calc(100vh - 68px);
  height: auto;
  overflow: visible;
  opacity: 1;
  filter: none;
  transform: none;
  padding-top: clamp(58px, 7vw, 94px);
  padding-bottom: clamp(52px, 7vw, 88px);
}

.page.is-active {
  display: grid;
  animation: routeIn 240ms ease both;
}

.page > *,
.page.is-active > *,
.page.is-before > *,
.page.is-after > * {
  opacity: 1;
  filter: none;
  transform: none;
  transition: none;
}

.hero-page {
  grid-template-rows: auto auto;
  min-height: calc(100vh - 68px);
}

.hero-copy {
  align-self: center;
}

.protocol-field {
  align-self: center;
  min-height: min(560px, 58vh);
  border-radius: 0;
}

.metric-strip {
  margin-top: clamp(28px, 4vw, 54px);
  border-radius: 0;
}

.mechanism-list,
.docs-grid,
.collection-grid,
.claim-facts,
.claim-panel,
.wallet-menu,
.wallet-selector,
.wallet-button,
.button,
.brand-mark,
.metric-strip,
.protocol-field,
.collection-summary {
  border-radius: 0;
}

.mechanism-page,
.collection-page,
.docs-page,
.claim-page {
  align-content: center;
}

.claim-layout {
  min-height: calc(100vh - 220px);
}

@keyframes routeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .topbar {
    position: sticky;
    grid-template-columns: 1fr auto;
  }

  .page {
    display: none;
    min-height: auto;
  }

  .page.is-active {
    display: grid;
  }
}


/* Final SHERHOOK UI/UX polish pass */
.hero-title {
  font-size: clamp(58px, 7vw, 118px);
  font-weight: 880;
  letter-spacing: -0.046em;
  line-height: 0.94;
}

.hero-text {
  max-width: 640px;
  margin-top: 28px;
  color: rgba(28, 30, 25, 0.72);
  font-size: clamp(18px, 1.35vw, 22px);
  font-weight: 430;
  line-height: 1.48;
}

.eyebrow {
  margin-bottom: 30px;
  border-color: rgba(9, 10, 8, 0.095);
  background: rgba(252, 252, 247, 0.48);
  color: rgba(28, 30, 25, 0.68);
  font-size: 9px;
  font-weight: 760;
}

.hero-actions {
  margin-top: 38px;
}

.button {
  border-radius: 8px;
  box-shadow: none;
}

.button.primary {
  background: var(--lime);
  color: var(--ink);
}

.button.secondary {
  background: rgba(252, 252, 247, 0.48);
  border-color: rgba(9, 10, 8, 0.16);
}

.button:hover,
.wallet-button:hover {
  transform: translateY(-1px);
  box-shadow: none;
}

.top-actions {
  gap: 0;
}

.wallet-button {
  min-width: 178px;
  border-radius: 8px;
  background: rgba(252, 252, 247, 0.62);
}

.wallet-button.is-connected,
.wallet-button.is-wrong {
  justify-content: center;
}

.wallet-live-dot,
.wallet-connect-label::before,
.wallet-button-avatar {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--lime);
}

.wallet-button.is-wrong .wallet-live-dot,
.wallet-button.is-wrong .wallet-button-avatar {
  background: #111;
}

.wallet-address-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.075em;
  text-transform: none;
}

.wallet-chevron {
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  opacity: 0.55;
  transform: rotate(45deg) translateY(-2px);
}

.trust-strip {
  margin-top: 62px;
}

.protocol-field {
  min-height: min(500px, 54vh);
  border-color: rgba(9, 10, 8, 0.09);
  background: rgba(252, 252, 247, 0.27);
  box-shadow: none;
}

.protocol-field::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 28% 45%, rgba(183, 245, 0, 0.08), transparent 38%);
  pointer-events: none;
}

.protocol-field .field-grid {
  opacity: 0.72;
}

.protocol-field .field-circle {
  border-color: rgba(9, 10, 8, 0.045);
}

.protocol-field .field-cross {
  border-color: rgba(9, 10, 8, 0.075);
}

.protocol-field .field-axis {
  background: rgba(9, 10, 8, 0.052);
}


.protocol-flow {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(108px, 1fr) minmax(32px, 48px) minmax(132px, 1.1fr) minmax(32px, 48px) minmax(118px, 1fr) minmax(32px, 48px) minmax(108px, 0.9fr);
  align-items: start;
  gap: clamp(14px, 1.8vw, 24px);
  width: min(86%, 840px);
  margin: 0 auto;
  padding: clamp(72px, 11vw, 138px) 0;
}

.protocol-flow::after {
  content: "";
  position: absolute;
  left: 0;
  top: calc(clamp(72px, 11vw, 138px) + 5px);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  opacity: 0.95;
  animation: sherhookSignal 8.5s linear infinite;
}

.protocol-flow .protocol-node {
  position: relative;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  min-width: 0;
  gap: 6px;
  padding: 0;
}

.protocol-flow .protocol-node::before {
  width: 10px;
  height: 10px;
  margin-bottom: 16px;
  border-color: rgba(9, 10, 8, 0.28);
  background: var(--surface);
}

.protocol-flow .protocol-node::after {
  display: none !important;
}

.protocol-flow .protocol-node.is-active::before,
.protocol-flow .node-nft::before {
  background: var(--lime);
  border-color: rgba(9, 10, 8, 0.5);
}

.protocol-flow .node-nft {
  margin-top: -13px;
  border: 1px solid rgba(183, 245, 0, 0.42);
  padding: 13px 14px 14px;
  background: rgba(183, 245, 0, 0.035);
}

.protocol-flow .node-nft::before {
  margin-bottom: 12px;
}

.protocol-flow .protocol-node span {
  color: rgba(28, 30, 25, 0.44);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.protocol-flow .protocol-node strong {
  color: var(--ink);
  font-size: clamp(13px, 1vw, 16px);
  font-weight: 860;
  letter-spacing: 0.025em;
}

.protocol-flow .protocol-node small {
  max-width: 180px;
  color: rgba(28, 30, 25, 0.58);
  font-size: 11px;
  line-height: 1.38;
}

.protocol-connector {
  position: relative;
  height: 1px;
  margin-top: 5px;
  background: rgba(9, 10, 8, 0.14);
}

.protocol-connector::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -3px;
  width: 6px;
  height: 6px;
  border-top: 1px solid rgba(9, 10, 8, 0.3);
  border-right: 1px solid rgba(9, 10, 8, 0.3);
  transform: rotate(45deg);
}

.metric-strip {
  border-color: rgba(9, 10, 8, 0.1);
  background: rgba(252, 252, 247, 0.42);
  box-shadow: none;
}

.metric-strip article {
  min-height: 132px;
  padding: 24px 28px;
}

.metric-strip strong {
  font-size: clamp(24px, 2.15vw, 38px);
  line-height: 1;
}

.claim-panel .button.primary {
  min-height: 48px;
}

.claim-panel p {
  font-weight: 430;
}

@keyframes sherhookSignal {
  0%, 8% { transform: translateX(0); opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  92%, 100% { transform: translateX(calc(100% - 6px)); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .protocol-flow::after {
    animation: none;
    opacity: 0.7;
  }
}

@media (max-width: 1180px) {
  .hero-title {
    font-size: clamp(58px, 10vw, 104px);
  }

  .protocol-flow {
    width: min(92%, 760px);
  }
}

@media (max-width: 900px) {
  .protocol-field {
    min-height: 620px;
  }

  .protocol-flow {
    width: min(420px, 78%);
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 62px 0;
  }

  .protocol-flow::after {
    left: 4px;
    top: 62px;
    animation: sherhookSignalVertical 8.5s linear infinite;
  }

  .protocol-connector {
    width: 1px;
    height: 34px;
    margin: -4px 0 -2px 5px;
    background: rgba(9, 10, 8, 0.14);
  }

  .protocol-connector::after {
    left: -3px;
    right: auto;
    top: auto;
    bottom: -1px;
    transform: rotate(135deg);
  }

  .protocol-flow .node-nft {
    margin-top: 0;
  }
}

@keyframes sherhookSignalVertical {
  0%, 8% { transform: translateY(0); opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  92%, 100% { transform: translateY(420px); opacity: 0; }
}

@media (max-width: 760px) {
  .hero-title {
    font-size: clamp(48px, 15vw, 76px);
  }

  .hero-text {
    font-size: 17px;
  }

  .protocol-field {
    min-height: 650px;
  }

  .protocol-flow {
    width: min(88%, 360px);
  }

  .metric-strip strong {
    font-size: clamp(28px, 10vw, 42px);
  }
}




/* Final QA corrections: preserve hierarchy and contain schematic */
@media (min-width: 1181px) {
  .hero-page {
    grid-template-columns: minmax(0, 0.54fr) minmax(420px, 0.46fr);
    gap: clamp(42px, 5vw, 94px);
  }

  .hero-title span {
    white-space: nowrap;
  }
}

.hero-title {
  font-size: clamp(54px, 5vw, 90px);
  line-height: 0.95;
}

.protocol-flow {
  grid-template-columns: minmax(66px, 0.9fr) minmax(14px, 26px) minmax(94px, 1.05fr) minmax(14px, 26px) minmax(76px, 0.95fr) minmax(14px, 26px) minmax(62px, 0.8fr);
  gap: clamp(6px, 0.65vw, 12px);
  width: min(88%, 760px);
}

.protocol-flow .protocol-node strong {
  font-size: clamp(11px, 0.78vw, 14px);
}

.protocol-flow .protocol-node small {
  font-size: 10px;
}

.protocol-flow .node-nft {
  padding: 11px 11px 12px;
}

@media (max-width: 1180px) {
  .protocol-flow {
    width: min(92%, 760px);
  }
}

@media (max-width: 900px) {
  .protocol-flow {
    width: min(420px, 78%);
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 760px) {
  .hero-title {
    font-size: clamp(48px, 14vw, 72px);
  }
}


/* Production wallet experience */
.wallet-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.wallet-chevron::before {
  display: none;
}

.wallet-menu {
  width: 328px;
  padding: 12px;
  border: 1px solid rgba(9, 10, 8, 0.14);
  border-radius: 8px;
  background: rgba(252, 252, 247, 0.99);
  box-shadow: 0 18px 44px rgba(9, 10, 8, 0.075);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.wallet-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.wallet-menu-head {
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 10px 15px;
}

.wallet-menu-avatar {
  width: 8px;
  height: 8px;
  align-self: start;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--lime);
}

.wallet-menu.is-wrong .wallet-menu-avatar {
  background: var(--ink);
}

.menu-kicker,
.menu-network {
  font-size: 9px;
  font-weight: 820;
  letter-spacing: 0.12em;
}

.menu-network.is-wrong {
  color: var(--ink);
}

.menu-address {
  margin: 5px 0 6px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.wallet-menu-body {
  gap: 2px;
  padding-top: 9px;
}

.wallet-menu-divider {
  display: block;
  height: 1px;
  margin: 7px 2px;
  background: rgba(9, 10, 8, 0.1);
}

.wallet-menu-item {
  min-height: 40px;
  border-radius: 6px;
  padding: 0 10px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 820;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 140ms ease, color 140ms ease;
}

.wallet-menu-item:hover,
.wallet-menu-item:focus-visible {
  background: rgba(9, 10, 8, 0.052);
  outline: none;
}

.wallet-menu-item:focus-visible {
  box-shadow: inset 0 0 0 1px rgba(9, 10, 8, 0.22);
}

.wallet-menu-item.danger {
  color: #5a211d;
}

.wallet-menu-item.danger:hover,
.wallet-menu-item.danger:focus-visible {
  background: rgba(90, 33, 29, 0.07);
}

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

@media (max-width: 760px) {
  .wallet-menu {
    position: fixed;
    top: auto;
    right: 16px;
    bottom: 16px;
    left: 16px;
    width: auto;
    max-width: none;
    transform: translateY(12px);
  }

  .wallet-menu.is-open {
    transform: translateY(0);
  }
}
