:root {
  color-scheme: dark;
  --background: #0b0b0c;
  --text: #ffffff;
  --accent: #22c55e;
  --line: rgb(255 255 255 / 0.12);
  --soft: rgb(255 255 255 / 0.66);
  --muted: rgb(255 255 255 / 0.42);
  --panel: rgb(255 255 255 / 0.035);
  --sol-blue: #38bdf8;
  --sol-blue-mid: #60a5fa;
  --sol-blue-deep: #2563eb;
  --max-width: 1180px;
  --mobile-width: 366px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--background);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text);
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
  color: var(--text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: 0;
  background:
    linear-gradient(90deg, transparent, rgb(34 197 94 / 0.018), transparent);
  opacity: 0.55;
}

body::after {
  z-index: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.018) 1px, transparent 1px);
  background-position: center top;
  background-size: 92px 92px;
  opacity: 0.16;
}

body::selection {
  background: var(--accent);
  color: var(--background);
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  width: min(100% - 32px, var(--max-width));
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  padding: 18px 0;
  border-bottom: 1px solid rgb(255 255 255 / 0.075);
  background: rgb(11 11 12 / 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand,
.nav,
.hero__actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand img {
  width: 34px;
  height: 34px;
  border: 1px solid rgb(34 197 94 / 0.34);
  border-radius: 50%;
  object-fit: cover;
}

.nav {
  gap: 22px;
  color: var(--soft);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.nav a:focus-visible,
.button:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

main {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
}

.hero {
  position: relative;
  width: 100vw;
  min-height: min(710px, calc(100svh - 72px));
  margin-inline: calc(50% - 50vw);
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding:
    clamp(56px, 8vh, 92px)
    max(16px, calc((100vw - var(--max-width)) / 2))
    clamp(64px, 9vh, 100px);
  background: var(--background);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.hero::before {
  inset: -14px;
  background-image: url("sidequest-hero-bg-optimized.jpg");
  background-position: center right;
  background-repeat: no-repeat;
  background-size: cover;
  filter: blur(2.2px) contrast(0.74) brightness(0.7) saturate(0.78);
  animation: hero-image-drift 52s ease-in-out infinite alternate;
  transform: scale(1.02);
}

.hero::after {
  inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.055'/%3E%3C/svg%3E"),
    radial-gradient(
      ellipse at 26% 48%,
      rgb(0 0 0 / 0.52) 0%,
      rgb(0 0 0 / 0.34) 34%,
      transparent 68%
    ),
    radial-gradient(
      ellipse at 86% 62%,
      rgb(34 197 94 / 0.028) 0%,
      rgb(34 197 94 / 0.012) 28%,
      transparent 66%
    ),
    linear-gradient(
      90deg,
      rgb(11 11 12 / 0.96) 0%,
      rgb(11 11 12 / 0.84) 32%,
      rgb(11 11 12 / 0.62) 64%,
      rgb(11 11 12 / 0.42) 100%
    ),
    linear-gradient(
      180deg,
      transparent 0%,
      rgb(11 11 12 / 0.18) 72%,
      var(--background) 100%
    );
  background-size: 140px 140px, auto, auto, auto, auto;
  background-blend-mode: soft-light, normal, normal, normal, normal;
  background-position: 0 0, 0 0, 0 0, 0 0, 0 0;
  animation: hero-atmosphere-drift 64s ease-in-out infinite alternate;
}

.hero-surge {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  animation: hero-surge-shell 2.05s cubic-bezier(0.2, 0.74, 0.28, 1) 0.18s both;
}

.hero-surge__line,
.hero-surge__glow {
  fill: none;
  stroke: var(--accent);
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-surge__line {
  stroke-width: 2.2;
  opacity: 0.48;
  animation: hero-surge-draw 1.42s cubic-bezier(0.18, 0.86, 0.24, 1) 0.24s both;
}

.hero-surge__glow {
  filter: url("#hero-surge-glow");
  stroke-width: 11;
  opacity: 0.2;
  animation: hero-surge-draw 1.42s cubic-bezier(0.18, 0.86, 0.24, 1) 0.24s both;
}

.hero-surge__flash {
  fill: var(--accent);
  filter: url("#hero-surge-glow");
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: hero-surge-flash 1.9s cubic-bezier(0.16, 1, 0.3, 1) 0.28s both;
}

.hero__copy {
  position: relative;
  z-index: 2;
  max-width: 570px;
  min-width: 0;
}

@keyframes hero-image-drift {
  0% {
    transform: translate3d(-1px, 0, 0) scale(1.02);
  }

  47% {
    transform: translate3d(1px, -1px, 0) scale(1.021);
  }

  100% {
    transform: translate3d(0, 1px, 0) scale(1.02);
  }
}

@keyframes hero-atmosphere-drift {
  0% {
    background-position: 0 0, 0 0, 0 0, 0 0, 0 0;
    opacity: 0.98;
  }

  52% {
    background-position: 2px -1px, -1px 1px, 1px 0, 0 0, 0 0;
    opacity: 1;
  }

  100% {
    background-position: -1px 2px, 1px -1px, -1px 1px, 0 0, 0 0;
    opacity: 0.96;
  }
}

@keyframes hero-surge-shell {
  0%,
  7% {
    opacity: 0;
  }

  18% {
    opacity: 0.8;
  }

  58% {
    opacity: 0.68;
  }

  100% {
    opacity: 0;
  }
}

@keyframes hero-surge-draw {
  0% {
    stroke-dashoffset: 1;
  }

  72% {
    stroke-dashoffset: 0;
  }

  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes hero-surge-flash {
  0%,
  58% {
    opacity: 0;
    transform: scale(0.4);
  }

  69% {
    opacity: 0.34;
    transform: scale(1);
  }

  78% {
    opacity: 0.18;
    transform: scale(4.8);
  }

  100% {
    opacity: 0;
    transform: scale(7);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero::after,
  .hero-surge,
  .hero-surge__line,
  .hero-surge__glow,
  .hero-surge__flash {
    animation: none;
  }

  .hero-surge {
    opacity: 0.08;
  }

  .hero-surge__line {
    stroke-dashoffset: 0;
    opacity: 0.16;
  }

  .hero-surge__glow,
  .hero-surge__flash {
    opacity: 0;
  }
}

.hero__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.ticker {
  margin: 0;
  color: var(--accent);
  font-size: clamp(0.78rem, 0.72rem + 0.22vw, 0.92rem);
  font-weight: 800;
  letter-spacing: 0.28em;
  line-height: 1.2;
  text-transform: uppercase;
}

.coin-symbol {
  letter-spacing: 0.32em;
}

.solana-chip,
.footer-solana {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.solana-chip {
  border: 1px solid rgb(56 189 248 / 0.2);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgb(11 11 12 / 0.68);
}

.solana-mark {
  width: 23px;
  height: 16px;
  display: grid;
  flex: 0 0 auto;
  gap: 3px;
  transform: none;
}

.solana-mark span {
  height: 3.5px;
  border-radius: 1px;
  background: var(--sol-blue);
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
  opacity: 0.92;
}

.solana-mark span:nth-child(2) {
  background: var(--sol-blue-mid);
  clip-path: polygon(0 0, 90% 0, 100% 100%, 10% 100%);
  opacity: 0.78;
}

.solana-mark span:nth-child(3) {
  background: var(--sol-blue-deep);
  opacity: 0.72;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 9ch;
  margin-bottom: 0;
  color: var(--text);
  font-size: clamp(3.45rem, 6.1vw, 6.75rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.9;
}

h2 {
  margin-bottom: 0;
  color: var(--text);
  font-size: clamp(2rem, 3.2vw, 4rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.96;
}

.narrative {
  max-width: 560px;
  margin: 30px 0 0;
  color: var(--soft);
  font-size: clamp(1rem, 0.96rem + 0.18vw, 1.12rem);
  font-weight: 400;
  line-height: 1.68;
}

.narrative__turn {
  display: inline-block;
  margin: 0.16em 0 0.04em;
  color: rgb(229 255 238 / 0.92);
  font-weight: 600;
}

.hero__actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.ticker-plate {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  margin-top: 24px;
  padding: 10px 12px;
  border: 1px solid rgb(34 197 94 / 0.32);
  border-radius: 8px;
  background: rgb(11 11 12 / 0.7);
}

.ticker-plate strong {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 18px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.button--primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--background);
}

.manifesto,
.thesis,
.terminal,
.route,
.onchain-log,
.quest-log,
.culture {
  position: relative;
  padding: clamp(42px, 5vw, 72px) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 18px;
}

.manifesto {
  padding-top: clamp(34px, 4.6vw, 58px);
}

.manifesto__inner {
  max-width: 900px;
  min-width: 0;
  display: grid;
  grid-template-columns: 0.34fr minmax(0, 1fr);
  gap: clamp(24px, 5vw, 62px);
  align-items: start;
}

.manifesto__inner::before {
  content: "Q U E S T";
  color: var(--accent);
  font-size: clamp(0.78rem, 0.72rem + 0.22vw, 0.92rem);
  font-weight: 800;
  letter-spacing: 0.32em;
  line-height: 1.2;
  text-transform: uppercase;
}

.manifesto__inner p {
  min-width: 0;
  margin: 0;
  color: var(--soft);
  font-size: clamp(1.02rem, 0.98rem + 0.22vw, 1.18rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.62;
}

.manifesto__inner p + p {
  grid-column: 2;
  margin-top: clamp(18px, 2.6vw, 30px);
  color: rgb(255 255 255 / 0.78);
}

.thesis {
  display: grid;
  grid-template-columns: minmax(240px, 0.46fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.thesis .section-heading {
  position: sticky;
  top: 22px;
  margin-bottom: 0;
}

.thesis__grid {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.035);
}

.thesis-card {
  display: grid;
  grid-template-columns: minmax(120px, 0.34fr) minmax(0, 1fr);
  gap: 22px;
  padding: clamp(20px, 2.6vw, 28px);
  border-bottom: 1px solid var(--line);
}

.thesis-card:last-child {
  border-bottom: 0;
}

.thesis-card span {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
}

.thesis-card p {
  margin: 0;
  color: var(--text);
  font-size: clamp(1rem, 1.08vw, 1.12rem);
  font-weight: 700;
  line-height: 1.5;
}

.thesis__line {
  grid-column: 2;
  max-width: 690px;
  margin: -34px 0 0;
  color: var(--soft);
  font-size: clamp(1rem, 1.05vw, 1.12rem);
  font-weight: 500;
  line-height: 1.56;
}

.section-heading {
  max-width: 720px;
  margin-bottom: clamp(32px, 5vw, 56px);
  scroll-margin-top: 24px;
}

.section-heading .ticker {
  margin-bottom: 18px;
}

.terminal-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.045);
}

.launch-panel {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.035);
}

.terminal-panel__header,
.launch-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.launch-panel__header h3 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.18rem, 1.45vw, 1.55rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.terminal-panel__header strong,
.terminal-kicker,
.terminal-status,
.launch-note {
  display: block;
}

.terminal-kicker {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  line-height: 1.2;
}

.terminal-panel__header strong {
  color: var(--text);
  font-size: clamp(1.35rem, 1.8vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.terminal-status,
.launch-note {
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.launch-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  margin: 0;
}

.launch-item {
  min-height: 118px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 20px;
  border-right: 1px solid var(--line);
}

.launch-item:last-child {
  border-right: 0;
}

.launch-item span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.launch-item strong,
.launch-link,
.copy-button {
  color: var(--text);
  font-size: clamp(0.94rem, 1vw, 1.04rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
}

.launch-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.launch-item--contract {
  position: relative;
}

.copy-button {
  justify-self: start;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: transparent;
  color: var(--soft);
  cursor: pointer;
}

.copy-button:disabled,
.launch-link.is-disabled {
  color: var(--muted);
  cursor: default;
}

.copy-button:not(:disabled):hover,
.launch-link:not(.is-disabled):hover {
  border-color: rgb(34 197 94 / 0.5);
  color: var(--accent);
}

.copy-button:focus-visible,
.launch-link:focus-visible,
.onchain-preview textarea:focus-visible,
.onchain-preview button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.terminal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.terminal-grid div {
  min-height: 116px;
  padding: 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.terminal-grid div:nth-child(4n) {
  border-right: 0;
}

.terminal-grid div:nth-last-child(-n + 4) {
  border-bottom: 0;
}

.terminal-grid dt {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.terminal-grid dd {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.02rem, 1.22vw, 1.28rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.05;
}

.terminal-console {
  display: grid;
  gap: 10px;
  padding: 22px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace;
  font-size: 0.84rem;
  line-height: 1.5;
}

.terminal-console p {
  margin: 0;
}

.terminal-console span {
  color: var(--accent);
}

.route-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 0.62fr) minmax(0, 1.38fr);
  align-items: center;
  gap: clamp(24px, 4.4vw, 52px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(28px, 5.2vw, 58px);
  background: rgb(255 255 255 / 0.042);
}

.route-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 28%, #000 100%);
  opacity: 0.22;
  pointer-events: none;
}

.route-panel::after {
  content: "Q U E S T";
  position: absolute;
  right: clamp(18px, 4vw, 48px);
  bottom: clamp(16px, 3vw, 34px);
  color: rgb(34 197 94 / 0.08);
  font-size: clamp(2rem, 6.3vw, 5.8rem);
  font-weight: 800;
  letter-spacing: 0.2em;
  line-height: 0.8;
  pointer-events: none;
}

.route-heading {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
}

.route-map {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  place-items: center;
  min-height: 230px;
}

.route-flow {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(6px, 0.75vw, 10px);
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text);
  font-size: clamp(0.86rem, 1.05vw, 1.08rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1;
}

.route-flow li:not(.route-flow__arrow) {
  min-width: 58px;
  min-height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 8px;
  padding: 0 10px;
  background: rgb(11 11 12 / 0.48);
  white-space: nowrap;
}

.route-flow li:nth-last-child(1) {
  border-color: rgb(34 197 94 / 0.48);
  background: rgb(34 197 94 / 0.07);
  color: var(--accent);
}

.route-flow__arrow {
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: clamp(1.4rem, 2vw, 2rem);
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0;
  opacity: 0.78;
}

.route-flow__arrow::before {
  content: "\2192";
}

.onchain-log {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.onchain-log__copy {
  min-width: 0;
}

.onchain-log__copy h2 {
  max-width: 12ch;
  font-size: clamp(2rem, 3.4vw, 4.1rem);
}

.onchain-log__body {
  max-width: 650px;
  display: grid;
  gap: 18px;
  margin-top: clamp(26px, 4vw, 42px);
}

.onchain-log__body p {
  margin: 0;
  color: var(--soft);
  font-size: clamp(1rem, 1.05vw, 1.12rem);
  font-weight: 500;
  line-height: 1.62;
}

.onchain-log__body p:first-child,
.onchain-log__body p:last-child {
  color: var(--text);
}

.onchain-module {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.038);
}

.onchain-module__screen {
  display: grid;
  gap: 12px;
  padding: clamp(20px, 2.8vw, 28px);
  background:
    linear-gradient(180deg, rgb(34 197 94 / 0.035), transparent 48%),
    rgb(11 11 12 / 0.5);
  color: var(--soft);
  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace;
  font-size: clamp(0.82rem, 0.92vw, 0.94rem);
  line-height: 1.55;
}

.onchain-module__screen p {
  display: grid;
  grid-template-columns: minmax(84px, 0.32fr) minmax(0, 1fr);
  gap: 14px;
  margin: 0;
}

.onchain-module__screen span {
  color: var(--accent);
  opacity: 0.78;
}

.onchain-preview {
  display: grid;
  gap: 12px;
  padding: clamp(20px, 2.8vw, 28px);
  border-top: 1px solid var(--line);
}

.onchain-preview label,
.onchain-preview__bar span,
.onchain-receipt span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.onchain-preview textarea {
  width: 100%;
  min-height: 94px;
  resize: vertical;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 8px;
  padding: 14px;
  background: rgb(11 11 12 / 0.62);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.5;
}

.onchain-preview textarea::placeholder {
  color: rgb(255 255 255 / 0.32);
}

.onchain-preview__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.onchain-preview button {
  min-height: 36px;
  border: 1px solid rgb(34 197 94 / 0.34);
  border-radius: 8px;
  padding: 0 12px;
  background: rgb(34 197 94 / 0.08);
  color: rgb(229 255 238 / 0.9);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.onchain-preview button:hover {
  border-color: rgb(34 197 94 / 0.5);
  background: rgb(34 197 94 / 0.12);
}

.onchain-preview__status {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.45;
}

.onchain-receipt {
  display: grid;
  gap: 10px;
  padding: 18px clamp(20px, 2.8vw, 28px);
  border-top: 1px solid var(--line);
  background: rgb(255 255 255 / 0.022);
  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace;
  font-size: 0.82rem;
  line-height: 1.5;
}

.onchain-receipt p {
  display: grid;
  grid-template-columns: minmax(78px, 0.28fr) minmax(0, 1fr);
  gap: 12px;
  margin: 0;
}

.onchain-receipt strong {
  min-width: 0;
  overflow: hidden;
  color: var(--soft);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.onchain-module__action {
  margin: 0;
  padding: 18px clamp(20px, 2.8vw, 28px);
  border-top: 1px solid var(--line);
  color: rgb(34 197 94 / 0.76);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.35;
  cursor: default;
}

.info-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.045);
}

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

.info-panel {
  min-height: 154px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
}

.info-panel span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.info-panel strong {
  color: var(--text);
  font-size: clamp(1.08rem, 1.28vw, 1.36rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.culture {
  padding-bottom: clamp(60px, 7vw, 92px);
}

.culture__inner {
  max-width: 980px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
}

.culture .ticker {
  grid-column: 1 / -1;
}

.culture h2 {
  max-width: 14ch;
  font-size: clamp(2rem, 3.4vw, 4.2rem);
}

.culture__copy {
  justify-self: end;
  max-width: 330px;
  display: grid;
  gap: 16px;
  text-align: right;
}

.culture__tagline {
  margin: 0;
  color: var(--text);
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  font-weight: 700;
  line-height: 1.38;
}

.culture__note {
  margin: 0;
  color: var(--soft);
  font-size: clamp(0.95rem, 1vw, 1.05rem);
  font-weight: 500;
  line-height: 1.5;
}

.culture__route {
  margin: 0;
  color: var(--soft);
  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace;
  font-size: clamp(0.92rem, 1vw, 1.05rem);
  line-height: 1.5;
  white-space: nowrap;
}

.site-footer {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, var(--max-width));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  margin: 0 auto;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
}

.site-footer > span:first-child {
  grid-column: 2;
  text-align: center;
}

.footer-solana {
  grid-column: 3;
  justify-self: end;
  opacity: 0.72;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .quest-log__grid {
    grid-template-columns: 1fr;
  }

  .manifesto__inner {
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    max-width: 100%;
  }

  .manifesto__inner p + p {
    grid-column: auto;
  }

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

  .thesis .section-heading {
    position: static;
  }

  .thesis__line {
    grid-column: auto;
    margin-top: -12px;
  }

  .route-panel {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .onchain-log {
    grid-template-columns: 1fr;
  }

  .route-map {
    min-height: 150px;
  }

  .route-flow {
    justify-content: flex-start;
  }

  .hero {
    min-height: min(720px, calc(100svh - 72px));
  }

  .hero::before {
    background-position: center right -120px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(3rem, 11vw, 5.4rem);
  }

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

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

  .launch-item {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .launch-item:nth-child(2n) {
    border-right: 0;
  }

  .launch-item:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .terminal-grid div:nth-child(4n) {
    border-right: 1px solid var(--line);
  }

  .terminal-grid div:nth-child(2n) {
    border-right: 0;
  }

  .terminal-grid div:nth-last-child(-n + 4) {
    border-bottom: 1px solid var(--line);
  }

  .terminal-grid div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .info-panel {
    min-height: 132px;
  }

  .culture__inner {
    display: block;
  }

  .culture__copy {
    margin-top: 26px;
    max-width: 520px;
    text-align: left;
  }

  .culture__route {
    white-space: normal;
  }
}

@media (max-width: 520px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 24px, var(--max-width));
  }

  .nav {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 2px;
  }

  .hero {
    min-height: auto;
    padding-top: 56px;
    padding-bottom: 66px;
  }

  .hero::before {
    background-position: top right -390px;
    background-size: auto 100%;
  }

  h1 {
    max-width: 7ch;
    font-size: clamp(2.65rem, 14vw, 3.55rem);
  }

  h2 {
    font-size: clamp(1.85rem, 8.5vw, 2.45rem);
  }

  .narrative {
    margin-top: 26px;
    font-size: 0.98rem;
  }

  .hero__copy,
  .hero__actions,
  .section-heading,
  .manifesto__inner,
  .thesis,
  .onchain-log,
  .terminal-panel,
  .launch-panel,
  .route-panel,
  .quest-log__grid,
  .culture__inner {
    width: min(100%, var(--mobile-width));
    max-width: 100%;
  }

  .manifesto__inner p {
    max-width: 100%;
    overflow-wrap: break-word;
    white-space: normal;
    font-size: 0.98rem;
    line-height: 1.56;
  }

  .thesis-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .onchain-log__copy h2 {
    max-width: 9ch;
  }

  .onchain-module__screen p {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .onchain-preview__bar {
    align-items: stretch;
    flex-direction: column;
  }

  .onchain-preview button {
    width: 100%;
  }

  .onchain-receipt p {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .button {
    width: 100%;
  }

  .terminal-panel__header {
    flex-direction: column;
  }

  .launch-panel__header {
    flex-direction: column;
  }

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

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

  .terminal-grid div,
  .terminal-grid div:nth-child(2n),
  .terminal-grid div:nth-child(4n) {
    min-height: 102px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .launch-item,
  .launch-item:nth-child(2n) {
    min-height: 104px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .launch-item:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .launch-item:last-child {
    border-bottom: 0;
  }

  .terminal-grid div:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .terminal-grid div:last-child {
    border-bottom: 0;
  }

  .culture h2 {
    max-width: 10ch;
  }

  .route-panel {
    padding: 28px 18px;
  }

  .route-panel::before {
    mask-image: none;
  }

  .route-panel::after {
    right: 12px;
    bottom: 12px;
    font-size: 2.1rem;
    letter-spacing: 0.16em;
  }

  .route-map {
    min-height: 0;
  }

  .route-flow {
    display: grid;
    justify-items: stretch;
    gap: 10px;
    font-size: 1.05rem;
  }

  .route-flow li:not(.route-flow__arrow) {
    min-height: 54px;
    min-width: 0;
  }

  .route-flow__arrow {
    min-height: 20px;
    font-size: 1.25rem;
  }

  .route-flow__arrow::before {
    content: "\2193";
  }

  .site-footer {
    display: flex;
    flex-direction: column;
    text-align: center;
  }

  .site-footer > span:first-child,
  .footer-solana {
    grid-column: auto;
  }
}
