:root {
  --black: #000000; /* top bar + footer band */
  --bg: #090b08; /* page body */
  --surface: #101310;
  --surface-2: #161a15;
  --line: #1e231d;
  --line-2: #2b332a;

  --cream: #f4f1e8;
  --text: #e9e6dc;
  --muted: #8d9187;
  --dim: #5e6259;

  --lime: #c6f432;
  --lime-2: #9bd40f;
  --red: #ff5a63;
  --amber: #ffb020;

  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --sans:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  --display: "Poppins", var(--sans);

  --bar-h: 68px;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
[hidden] {
  display: none !important;
} /* .hero/.tier__menu set display, so [hidden] needs to win */

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
p {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
::selection {
  background: rgba(198, 244, 50, 0.28);
  color: #fff;
}
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-thumb {
  background: #242a22;
  border-radius: 9px;
}
:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
  border-radius: 6px;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ---------- top bar ------------------------------------- */
.bar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--bar-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  background: var(--black);
}
.bar__logo {
  justify-self: start;
  display: block;
  transition: transform 0.18s ease;
}
.bar__logo:hover {
  transform: translateY(-1px) scale(1.04);
}
.bar__logo img {
  width: 44px;
  height: 44px;
}

.ca {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0e110d;
  font-family: var(--mono);
  font-size: 14.5px;
  letter-spacing: 0.01em;
  color: var(--text);
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.ca:hover {
  border-color: var(--line-2);
  background: #12160f;
}
.ca__k {
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.1em;
}
.ca__ic {
  color: var(--muted);
  flex: none;
}
.ca:hover .ca__ic {
  color: var(--lime);
}
.ca.is-copied {
  border-color: rgba(198, 244, 50, 0.45);
}
.ca.is-copied .ca__ic {
  color: var(--lime);
}

/* pre-launch placeholder — nothing to copy, so the copy icon goes away */
.ca.is-soon .ca__ic {
  display: none;
}
.ca.is-soon .ca__txt {
  color: var(--lime);
  font-weight: 500;
  letter-spacing: 0.14em;
}

/* ---------- buttons -------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 44px;
  padding: 0 20px;
  border-radius: 11px;
  border: 1px solid transparent;
  background: none;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition:
    filter 0.15s,
    transform 0.12s,
    background 0.15s,
    border-color 0.15s;
}
.btn--wallet {
  background: var(--lime);
  color: #0a0d05;
  box-shadow:
    0 0 0 1px rgba(198, 244, 50, 0.35),
    0 10px 30px -14px rgba(198, 244, 50, 0.8);
}
.btn--wallet:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}
.btn--wallet.is-on {
  background: transparent;
  color: var(--lime);
  border-color: rgba(198, 244, 50, 0.4);
  box-shadow: none;
}
.btn--ghost {
  border-color: var(--line-2);
  color: var(--text);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: #3a443a;
}

/* ---------- wallet --------------------------------------- */
.wallet {
  position: relative;
  justify-self: end;
}
.btn--wallet.is-on #walletLabel {
  font-family: var(--mono);
  font-size: 13.5px;
  letter-spacing: 0.01em;
}
.btn--wallet.is-busy {
  opacity: 0.6;
  pointer-events: none;
}
.wallet__logo {
  width: 19px;
  height: 19px;
  border-radius: 5px;
  flex: none;
}

.wallet__menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 50;
  min-width: 244px;
  padding: 6px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.9);
  text-align: left;
}
.wallet__who {
  padding: 10px 12px 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.wallet__name {
  display: block;
  font-size: 13px;
  color: var(--muted);
}
.wallet__addr {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text);
  word-break: break-all;
  line-height: 1.5;
}
.wallet__net {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--lime);
}
.wallet__menu > button,
.wallet__menu > a {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  background: none;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}
.wallet__menu > button:hover,
.wallet__menu > a:hover {
  background: var(--surface-2);
}
.wallet__menu .is-danger {
  color: var(--red);
}

/* ---------- hero ----------------------------------------- */
.hero {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(40px, 8vh, 88px) 20px 72px;
  text-align: center;
}
.hero__glow {
  position: absolute;
  top: -40px;
  left: 50%;
  translate: -50% 0;
  width: min(760px, 100%);
  height: 620px;
  pointer-events: none;
  background: radial-gradient(
    closest-side,
    rgba(198, 244, 50, 0.13),
    rgba(198, 244, 50, 0.03) 55%,
    transparent 72%
  );
}
.hero__mark {
  position: relative;
  width: clamp(148px, 20vw, 230px);
  height: auto;
  filter: drop-shadow(0 0 46px rgba(198, 244, 50, 0.28));
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

.hero__title {
  position: relative;
  margin-top: 26px;
  font-family: var(--display);
  font-size: clamp(42px, 7.2vw, 74px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  background: linear-gradient(
    96deg,
    var(--cream) 6%,
    var(--lime) 58%,
    var(--lime-2) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero__sub {
  position: relative;
  margin-top: 8px;
  font-size: clamp(16px, 1.6vw, 20px);
  color: var(--muted);
}
.hero__sub b {
  color: var(--lime);
  font-weight: 600;
  font-family: var(--display);
}

/* ---------- search --------------------------------------- */
.search {
  position: relative;
  margin-top: 42px;
  width: min(100%, 740px);
  display: flex;
  align-items: stretch;
  height: 66px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: #0c0f0b;
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
}
.search:focus-within {
  border-color: rgba(198, 244, 50, 0.45);
  box-shadow: 0 0 0 4px rgba(198, 244, 50, 0.07);
}
.search__tier {
  position: relative;
  flex: none;
}
.tier {
  height: 100%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  border: 0;
  border-right: 1px solid var(--line-2);
  border-radius: 16px 0 0 16px;
  background: none;
  font-size: 16px;
  color: var(--text);
  cursor: pointer;
}
.tier svg {
  color: var(--muted);
  transition: transform 0.18s;
}
.tier[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.tier__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  margin: 0;
  padding: 6px;
  list-style: none;
  min-width: 220px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.9);
  text-align: left;
}
.tier__menu li {
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}
.tier__menu li:hover,
.tier__menu li[aria-selected="true"] {
  background: var(--surface-2);
}
.tier__menu b {
  font-size: 14.5px;
  font-weight: 500;
}
.tier__menu span {
  font-size: 12.5px;
  color: var(--dim);
}

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  padding: 0 8px 0 22px;
  font-size: 16.5px;
  color: var(--text);
}
.search input::placeholder {
  color: #55594f;
}
/* the field is a demo trigger until the engine ships — never a text box */
.search input[readonly] {
  cursor: pointer;
  caret-color: transparent;
}

.search__soon {
  flex: none;
  align-self: center;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid rgba(198, 244, 50, 0.35);
  background: rgba(198, 244, 50, 0.08);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--lime);
  white-space: nowrap;
}

.search__go {
  flex: none;
  width: 62px;
  border: 0;
  background: none;
  border-radius: 0 16px 16px 0;
  color: var(--lime);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s;
}
.search__go:hover {
  background: rgba(198, 244, 50, 0.08);
}

.hero__hint {
  position: relative;
  margin-top: 14px;
  font-size: 13px;
  color: var(--dim);
}
.linkish {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  border-bottom: 1px dotted var(--line-2);
}
.linkish:hover {
  color: var(--lime);
  border-color: rgba(198, 244, 50, 0.5);
}

/* ---------- demo modal ----------------------------------- */
body.is-locked {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
  animation: fade 0.2s ease both;
}
.modal__box {
  position: relative;
  width: min(100%, 820px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 40px 90px -30px #000;
  text-align: left;
  animation: rise 0.26s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.modal__x {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: rgba(9, 11, 8, 0.7);
  color: var(--muted);
  cursor: pointer;
  transition:
    color 0.15s,
    border-color 0.15s;
}
.modal__x:hover {
  color: var(--lime);
  border-color: rgba(198, 244, 50, 0.45);
}

.modal__head {
  padding: 26px 26px 18px;
}
.modal__head h3 {
  margin-top: 12px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
}
.modal__head p {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--muted);
  max-width: 62ch;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid rgba(198, 244, 50, 0.35);
  background: rgba(198, 244, 50, 0.08);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
}
.tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  animation: pulse 2.4s ease-out infinite;
}

.modal__video {
  margin: 0 14px;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}
.modal__video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

.modal__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 26px 22px;
  font-size: 13px;
  color: var(--dim);
}
.modal__foot span {
  flex: 1;
  min-width: 220px;
}
.modal__cta {
  text-decoration: none;
}
.lk {
  color: var(--lime);
  border-bottom: 1px solid rgba(198, 244, 50, 0.35);
}

/* ---------- wallet picker -------------------------------- */
.modal__box--sm {
  width: min(100%, 420px);
}
.picks {
  list-style: none;
  margin: 0;
  padding: 0 14px;
}
.picks li + li {
  margin-top: 6px;
}
.picks button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0e110d;
  color: var(--text);
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.picks button:hover {
  border-color: rgba(198, 244, 50, 0.4);
  background: #12160f;
}
.picks img {
  border-radius: 7px;
  flex: none;
}
.picks b {
  font-weight: 500;
}
.picks__dot {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--surface-2);
  flex: none;
}

/* ---------- sub pages ------------------------------------ */
.page {
  width: min(100% - 40px, 720px);
  margin: 0 auto;
  padding: 54px 0 80px;
}
.page .crumb {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
  margin-bottom: 18px;
}
.page .crumb a:hover {
  color: var(--lime);
}
.page h1 {
  font-family: var(--display);
  font-size: clamp(28px, 4.4vw, 38px);
  font-weight: 600;
  margin-bottom: 10px;
}
.page .lead {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 30px;
}
.page h2 {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  margin: 30px 0 10px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.page p {
  color: var(--muted);
  font-size: 14.8px;
  margin-bottom: 12px;
  max-width: 68ch;
}
.page ul {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
.page li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14.8px;
  margin-bottom: 7px;
}
.page li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--dim);
}
.page b {
  color: var(--text);
  font-weight: 500;
}
.page a.in {
  color: var(--lime);
  border-bottom: 1px solid rgba(198, 244, 50, 0.35);
}

details {
  border-bottom: 1px solid var(--line);
}
details summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 15px;
}
details summary::-webkit-details-marker {
  display: none;
}
details summary::after {
  content: "+";
  color: var(--dim);
  font-family: var(--mono);
}
details[open] summary::after {
  content: "–";
  color: var(--lime);
}
details p {
  padding-bottom: 14px;
}

/* ---------- footer --------------------------------------- */
.foot {
  background: var(--black);
  border-top: 1px solid #121511;
}
.foot__in {
  width: min(100% - 48px, 1920px);
  margin-inline: auto;
  padding: 26px 0 30px;
}
.foot__disc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}
.foot__disc b {
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.foot__disc a {
  color: var(--lime);
  border-bottom: 1px solid rgba(198, 244, 50, 0.35);
}

.foot__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--dim);
}
.pill b {
  color: var(--text);
  font-weight: 500;
}
.pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(198, 244, 50, 0.6);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(198, 244, 50, 0.55);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(198, 244, 50, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(198, 244, 50, 0);
  }
}

.foot__rule {
  height: 1px;
  background: #161a14;
  margin: 20px 0 16px;
}
.foot__end {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.foot__links a {
  font-size: 13.5px;
  color: var(--muted);
}
.foot__links a:hover {
  color: var(--lime);
}
.foot__social {
  display: flex;
  gap: 18px;
}
.foot__social a {
  color: var(--cream);
  opacity: 0.82;
  transition:
    opacity 0.15s,
    color 0.15s,
    transform 0.15s;
}
.foot__social a:hover {
  opacity: 1;
  color: var(--lime);
  transform: translateY(-2px);
}
.foot__copy {
  margin-top: 16px;
  font-size: 12px;
  color: #4a4e46;
}

/* ---------- toast ---------------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 80;
  max-width: calc(100% - 40px);
  padding: 11px 17px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #12160f;
  font-size: 13.5px;
  color: var(--text);
  box-shadow: 0 20px 50px -20px #000;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.18s,
    transform 0.18s;
}
.toast.is-on {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-5px);
}

/* ---------- responsive ----------------------------------- */
@media (max-width: 780px) {
  .bar {
    grid-template-columns: auto 1fr auto;
    padding: 0 14px;
    gap: 10px;
  }
  .ca {
    justify-self: center;
    font-size: 13px;
    height: 36px;
    padding: 0 11px;
  }
  .btn--wallet {
    height: 40px;
    padding: 0 14px;
    font-size: 14px;
  }
  /* the label goes, but a connected address is worth the width */
  .btn--wallet:not(.is-on) span {
    display: none;
  }
  .btn--wallet.is-on #walletLabel {
    font-size: 12.5px;
  }
  .search {
    height: 58px;
    border-radius: 14px;
  }
  .tier {
    padding: 0 14px;
    font-size: 15px;
    border-radius: 14px 0 0 14px;
  }
  .search input {
    padding-left: 14px;
    font-size: 15px;
  }
  .search__go {
    width: 52px;
  }
  .search__soon {
    display: none;
  }
  .modal {
    padding: 12px;
  }
  .modal__head {
    padding: 22px 18px 14px;
  }
  .modal__head h3 {
    font-size: 19px;
  }
  .modal__video {
    margin: 0 10px;
  }
  .modal__foot {
    padding: 16px 18px 18px;
  }
  .modal__cta {
    width: 100%;
  }
  .foot__end {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
@media (max-width: 420px) {
  /* a full address does not fit — the SOON placeholder does, and it is the point */
  .ca:not(.is-soon) {
    display: none;
  }
  .bar:not(:has(.ca.is-soon)) {
    grid-template-columns: auto 1fr;
  }
  .ca.is-soon {
    gap: 7px;
    padding: 0 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
