:root {
  --bg: #050907;
  --bg-2: #0a1410;
  --panel: rgba(8, 20, 16, 0.84);
  --panel-soft: rgba(17, 35, 27, 0.68);
  --ink: #f4ffe8;
  --muted: #a6b8a9;
  --mint: #8effb7;
  --mint-2: #31d47f;
  --amber: #ffd06a;
  --orange: #ff9f43;
  --line: rgba(142, 255, 183, 0.28);
  --line-soft: rgba(244, 255, 232, 0.11);
  --pixel: "Pixelify Sans", "Press Start 2P", "Courier New", monospace;
  --body: "Plus Jakarta Sans", "Avenir Next", "Trebuchet MS", sans-serif;
  --curve: cubic-bezier(0.32, 0.72, 0, 1);
  --step: 6px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 70% 0%, rgba(49, 212, 127, 0.15), transparent 28%),
    radial-gradient(circle at 6% 35%, rgba(255, 208, 106, 0.08), transparent 24%),
    linear-gradient(180deg, #020403 0%, #07100d 44%, #050907 100%);
  font-family: var(--body);
  letter-spacing: 0;
  overflow-x: hidden;
}

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

button {
  color: inherit;
  font: inherit;
}

.pixel-noise,
.scanline {
  position: fixed;
  inset: 0;
  z-index: 8;
  pointer-events: none;
}

.pixel-noise {
  opacity: 0.06;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.35) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.25) 1px, transparent 1px);
  background-size: 4px 4px;
  mix-blend-mode: overlay;
}

.scanline {
  opacity: 0.12;
  background: repeating-linear-gradient(180deg, transparent 0 7px, rgba(142, 255, 183, 0.1) 8px);
}

.nav-shell {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(1160px, calc(100% - 28px));
  padding: 8px;
  transform: translateX(-50%);
  border: 2px solid var(--line);
  background: rgba(4, 12, 9, 0.8);
  box-shadow:
    0 0 0 4px rgba(4, 12, 9, 0.78),
    0 18px 60px rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(244, 255, 232, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  font-family: var(--pixel);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.brand img {
  width: 34px;
  height: 34px;
  image-rendering: pixelated;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-links a,
.language-switch button,
.nav-cta,
.primary-btn,
.ghost-btn {
  transition:
    transform 620ms var(--curve),
    background 620ms var(--curve),
    color 620ms var(--curve),
    border-color 620ms var(--curve);
}

.nav-links a {
  padding: 12px 13px;
  border: 1px solid transparent;
  color: rgba(244, 255, 232, 0.68);
  font-family: var(--pixel);
  font-size: 13px;
}

.nav-links a:hover {
  color: var(--mint);
  border-color: rgba(142, 255, 183, 0.22);
  background: rgba(142, 255, 183, 0.08);
  transform: translateY(-2px);
}

.language-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.05);
}

.language-switch button {
  min-width: 34px;
  height: 32px;
  border: 0;
  color: rgba(244, 255, 232, 0.58);
  background: transparent;
  font-family: var(--pixel);
  font-size: 12px;
  cursor: pointer;
}

.language-switch button.active {
  color: #06100d;
  background: var(--mint);
}

.nav-cta,
.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border: 2px solid rgba(142, 255, 183, 0.58);
  background: var(--mint);
  color: #06100d;
  font-family: var(--pixel);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.72);
}

.nav-cta i,
.primary-btn i {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border: 1px solid rgba(4, 18, 12, 0.28);
  background: rgba(4, 18, 12, 0.12);
  font-style: normal;
}

.nav-cta:hover,
.primary-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.78);
}

.ghost-btn {
  color: var(--ink);
  background: rgba(244, 255, 232, 0.08);
  border-color: rgba(244, 255, 232, 0.18);
}

.ghost-btn:hover {
  color: var(--mint);
  transform: translate(-2px, -2px);
}

.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  left: 11px;
  width: 20px;
  height: 2px;
  background: var(--mint);
  transition: transform 650ms var(--curve);
}

.menu-toggle span:first-child { top: 16px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle.open span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle.open span:last-child { transform: translateY(-5px) rotate(-45deg); }

.menu-panel {
  position: fixed;
  inset: 14px;
  z-index: 11;
  display: grid;
  place-content: center;
  gap: 20px;
  border: 2px solid var(--line);
  background: rgba(4, 12, 9, 0.94);
  backdrop-filter: blur(22px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-16px) scale(0.98);
  transition:
    opacity 760ms var(--curve),
    transform 760ms var(--curve);
}

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

.menu-panel a {
  font-family: var(--pixel);
  font-size: clamp(34px, 8vw, 70px);
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 100dvh;
  padding: 150px max(22px, calc((100vw - 1180px) / 2)) 54px;
  overflow: hidden;
}

.hero-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  image-rendering: auto;
  transform: scale(1.02);
  opacity: 0.94;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 6, 5, 0.98) 0%, rgba(3, 6, 5, 0.86) 34%, rgba(3, 6, 5, 0.18) 72%),
    linear-gradient(180deg, rgba(3, 6, 5, 0.10) 0%, rgba(3, 6, 5, 0.92) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  padding-top: 44px;
}

.pixel-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line);
  background: rgba(142, 255, 183, 0.09);
  color: var(--mint);
  font-family: var(--pixel);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.45);
}

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

h1,
h2,
h3 {
  font-family: var(--pixel);
  letter-spacing: 0;
}

h1 {
  margin-top: 24px;
  font-size: clamp(46px, 6.2vw, 86px);
  line-height: 0.94;
  text-shadow: 0 5px 0 rgba(0, 0, 0, 0.52);
}

.hero-copy p {
  width: min(610px, 100%);
  margin-top: 28px;
  color: rgba(244, 255, 232, 0.76);
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.town-terminal {
  position: absolute;
  right: max(22px, calc((100vw - 1180px) / 2));
  bottom: 50px;
  z-index: 1;
  width: min(390px, calc(100% - 44px));
  padding: 8px;
  border: 2px solid var(--line);
  background: rgba(4, 14, 10, 0.76);
  box-shadow:
    0 0 0 4px rgba(4, 12, 9, 0.55),
    0 0 42px rgba(49, 212, 127, 0.16);
}

.terminal-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  background: rgba(142, 255, 183, 0.08);
  font-family: var(--pixel);
  font-size: 12px;
}

.terminal-top b {
  color: var(--amber);
}

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

.terminal-grid div,
.terminal-feed li,
.pixel-card,
.protocol-board,
.final-card {
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(180deg, rgba(244, 255, 232, 0.055), rgba(244, 255, 232, 0.018)),
    var(--panel);
}

.terminal-grid div {
  padding: 14px 10px;
}

.terminal-grid strong {
  display: block;
  font-family: var(--pixel);
  color: var(--mint);
  font-size: 22px;
}

.terminal-grid span,
.terminal-feed em {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.terminal-feed {
  display: grid;
  gap: 7px;
  margin: 7px 0 0;
  padding: 0;
  list-style: none;
}

.terminal-feed li {
  padding: 14px;
}

.terminal-feed span,
.mini-ledger span,
.stack-lines span,
.launch-steps article > span {
  color: var(--amber);
  font-family: var(--pixel);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.town-scroll {
  position: relative;
  min-height: 360dvh;
  background:
    linear-gradient(180deg, rgba(4, 9, 7, 0.96), rgba(6, 14, 10, 0.68) 42%, rgba(4, 9, 7, 0.98));
}

.town-stage {
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow: hidden;
}

.stage-map {
  position: absolute;
  inset: 0;
  padding: 0;
  background: #040806;
}

.stage-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  image-rendering: auto;
  transition:
    opacity 760ms var(--curve),
    transform 920ms var(--curve),
    filter 920ms var(--curve);
}

.stage-map img.switching {
  opacity: 0.22;
  transform: scale(1.055);
  filter: saturate(1.25);
}

.stage-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 62% 46%, transparent 0 22%, rgba(3, 6, 5, 0.28) 42%, rgba(3, 6, 5, 0.92) 100%),
    linear-gradient(90deg, rgba(3, 6, 5, 0.80), rgba(3, 6, 5, 0.10) 48%, rgba(3, 6, 5, 0.74));
}

.parcel-focus {
  position: absolute;
  left: 54%;
  top: 45%;
  width: 18vw;
  max-width: 260px;
  min-width: 150px;
  aspect-ratio: 1;
  border: 2px solid rgba(142, 255, 183, 0.72);
  box-shadow:
    0 0 0 6px rgba(142, 255, 183, 0.08),
    0 0 50px rgba(142, 255, 183, 0.35),
    inset 0 0 40px rgba(142, 255, 183, 0.10);
  transform: translate(-50%, -50%) rotate(45deg);
  transition:
    transform 860ms var(--curve),
    left 860ms var(--curve),
    top 860ms var(--curve),
    border-color 860ms var(--curve);
}

.agent {
  position: absolute;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 2px solid var(--line);
  background: rgba(4, 12, 9, 0.82);
  box-shadow: 0 0 28px rgba(142, 255, 183, 0.24), 5px 5px 0 rgba(0, 0, 0, 0.62);
  font-family: var(--pixel);
  color: var(--mint);
  font-size: 13px;
  transition:
    transform 900ms var(--curve),
    left 900ms var(--curve),
    top 900ms var(--curve),
    opacity 900ms var(--curve);
}

.agent::before {
  content: "";
  position: absolute;
  top: -12px;
  width: 14px;
  height: 14px;
  background: var(--mint);
  box-shadow: 0 0 18px rgba(142, 255, 183, 0.76);
}

.explorer-agent { left: 24%; top: 62%; }
.resident-agent { left: 66%; top: 35%; opacity: 0.52; }
.governor-agent { left: 78%; top: 67%; opacity: 0.36; }

.proof-line {
  position: absolute;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--mint) 0 10px, transparent 10px 18px);
  box-shadow: 0 0 24px rgba(142, 255, 183, 0.36);
  transform-origin: left center;
  opacity: 0.64;
  transition:
    opacity 760ms var(--curve),
    transform 860ms var(--curve),
    left 860ms var(--curve),
    top 860ms var(--curve),
    width 860ms var(--curve);
}

.line-one { left: 30%; top: 58%; width: 30vw; transform: rotate(-16deg); }
.line-two { left: 54%; top: 45%; width: 18vw; transform: rotate(34deg); opacity: 0.28; }
.line-three { left: 49%; top: 52%; width: 22vw; transform: rotate(8deg); opacity: 0.18; }

.town-scroll[data-scene="1"] .parcel-focus {
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%) rotate(0deg) scale(1.08);
  border-color: rgba(255, 208, 106, 0.82);
}

.town-scroll[data-scene="1"] .explorer-agent { left: 39%; top: 54%; opacity: 0.62; }
.town-scroll[data-scene="1"] .resident-agent { left: 58%; top: 56%; opacity: 1; }
.town-scroll[data-scene="1"] .governor-agent { left: 74%; top: 28%; opacity: 0.82; }
.town-scroll[data-scene="1"] .line-two { opacity: 0.72; transform: rotate(-28deg); width: 24vw; }

.town-scroll[data-scene="2"] .parcel-focus {
  left: 64%;
  top: 48%;
  transform: translate(-50%, -50%) rotate(0deg) scale(0.92);
  border-color: rgba(142, 255, 183, 0.92);
}

.town-scroll[data-scene="2"] .explorer-agent { left: 30%; top: 70%; opacity: 0.44; }
.town-scroll[data-scene="2"] .resident-agent { left: 37%; top: 66%; opacity: 1; }
.town-scroll[data-scene="2"] .governor-agent { left: 79%; top: 30%; opacity: 0.40; }
.town-scroll[data-scene="2"] .line-one { opacity: 0.40; transform: rotate(4deg); width: 34vw; }
.town-scroll[data-scene="2"] .line-three { opacity: 0.86; transform: rotate(-22deg); width: 30vw; }

.stage-hud {
  position: absolute;
  left: max(22px, calc((100vw - 1180px) / 2));
  right: max(22px, calc((100vw - 1180px) / 2));
  bottom: 28px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  pointer-events: none;
}

.stage-hud > div:first-child {
  min-width: 260px;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(4, 12, 9, 0.78);
  font-family: var(--pixel);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.5);
}

.stage-hud span {
  display: block;
  color: var(--amber);
  font-size: 12px;
}

.stage-hud strong {
  display: block;
  margin-top: 8px;
  color: var(--mint);
  font-size: 14px;
}

.stage-progress {
  display: flex;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--line);
  background: rgba(4, 12, 9, 0.78);
  pointer-events: auto;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.5);
}

.stage-dot {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid rgba(244, 255, 232, 0.24);
  background: rgba(244, 255, 232, 0.10);
  cursor: pointer;
}

.stage-dot.active {
  background: var(--mint);
  box-shadow: 0 0 18px rgba(142, 255, 183, 0.72);
}

@keyframes pixelPulse {
  0%, 100% { opacity: 0.28; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.35); }
}

.chapter-track {
  position: relative;
  z-index: 2;
  margin-top: -100dvh;
  pointer-events: none;
}

.chapter {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 120px max(22px, calc((100vw - 1180px) / 2));
}

.chapter.left {
  justify-content: flex-start;
}

.chapter.right {
  justify-content: flex-end;
}

.chapter-card {
  width: min(520px, 100%);
  padding: 34px;
  border: 2px solid rgba(244, 255, 232, 0.09);
  background: rgba(4, 12, 9, 0.82);
  box-shadow:
    0 0 0 4px rgba(4, 12, 9, 0.62),
    12px 12px 0 rgba(0, 0, 0, 0.54);
  pointer-events: auto;
  opacity: 0.58;
  transform: translateY(10px) scale(0.985);
  transition:
    opacity 760ms var(--curve),
    transform 760ms var(--curve),
    border-color 760ms var(--curve),
    background 760ms var(--curve);
}

.chapter.active .chapter-card {
  opacity: 1;
  transform: translateY(0) scale(1);
  border-color: var(--line);
  background:
    linear-gradient(180deg, rgba(142, 255, 183, 0.10), rgba(244, 255, 232, 0.024)),
    rgba(9, 20, 15, 0.72);
}

h2 {
  margin-top: 18px;
  font-size: clamp(34px, 4.9vw, 68px);
  line-height: 1.02;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.42);
}

.chapter-card p,
.section-head p,
.protocol-board p,
.pixel-card p {
  margin-top: 22px;
  color: rgba(244, 255, 232, 0.72);
  font-size: 16px;
  line-height: 1.75;
}

.mini-ledger {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 30px;
}

.mini-ledger span {
  padding: 9px 10px;
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.26);
}

.section {
  padding: 112px max(22px, calc((100vw - 1180px) / 2));
}

.section-head {
  width: min(820px, 100%);
}

.role-grid,
.launch-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 56px;
}

.pixel-card {
  padding: 30px;
  box-shadow:
    inset 0 0 0 1px rgba(142, 255, 183, 0.06),
    6px 6px 0 rgba(0, 0, 0, 0.52);
}

.pixel-card h3 {
  margin-top: 22px;
  color: var(--ink);
  font-size: 28px;
}

.role-card {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.role-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  image-rendering: auto;
  border-bottom: 1px solid var(--line-soft);
  transition:
    transform 900ms var(--curve),
    filter 900ms var(--curve);
}

.role-card:hover img {
  transform: scale(1.045);
  filter: saturate(1.16);
}

.role-card .role-kicker,
.role-card h3,
.role-card p {
  margin-left: 28px;
  margin-right: 28px;
}

.role-kicker {
  display: inline-flex;
  margin-top: 26px;
  color: var(--amber);
  font-family: var(--pixel);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.role-card h3 {
  margin-top: 14px;
  font-size: clamp(26px, 3vw, 38px);
}

.role-card p {
  margin-bottom: 30px;
}

.protocol-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr);
  gap: 50px;
  padding: 42px;
  border: 2px solid var(--line);
  box-shadow:
    0 0 0 4px rgba(4, 12, 9, 0.62),
    0 0 60px rgba(49, 212, 127, 0.11);
}

.stack-lines {
  display: grid;
  gap: 10px;
}

.stack-lines div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.24);
  font-family: var(--pixel);
}

.stack-lines b {
  font-size: 14px;
  text-align: right;
}

.launch-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 42px;
  align-items: start;
}

.launch-steps {
  margin-top: 0;
}

.launch-steps article {
  min-height: 260px;
}

.about-org {
  padding-top: 40px;
}

.about-board {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: 42px;
  align-items: stretch;
  padding: 8px;
  border: 2px solid var(--line);
  background:
    linear-gradient(135deg, rgba(142, 255, 183, 0.08), transparent 38%),
    rgba(4, 14, 10, 0.72);
  box-shadow:
    0 0 0 4px rgba(4, 12, 9, 0.62),
    0 0 70px rgba(49, 212, 127, 0.10);
}

.about-short,
.about-long {
  border: 1px solid var(--line-soft);
  background: rgba(3, 10, 8, 0.58);
}

.about-short {
  padding: 34px;
}

.about-short h2 {
  margin-top: 22px;
  font-size: clamp(30px, 4.2vw, 58px);
}

.about-long {
  display: flex;
  align-items: center;
  padding: 34px;
}

.about-long p {
  color: rgba(244, 255, 232, 0.78);
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.75;
}

.final {
  padding: 70px max(22px, calc((100vw - 1180px) / 2)) 120px;
}

.final-card {
  display: grid;
  justify-items: center;
  gap: 28px;
  padding: 56px 34px;
  border: 2px solid var(--line);
  text-align: center;
}

.final-card h2 {
  width: min(900px, 100%);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px max(22px, calc((100vw - 1180px) / 2)) 42px;
  color: rgba(244, 255, 232, 0.54);
  font-family: var(--pixel);
  font-size: 12px;
}

.reveal {
  opacity: 0;
  transform: translateY(42px);
  filter: blur(8px);
  transition:
    opacity 900ms var(--curve),
    transform 900ms var(--curve),
    filter 900ms var(--curve);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

html[lang="zh-CN"] h1 {
  max-width: 760px;
  font-size: clamp(38px, 5.2vw, 70px);
  line-height: 1.08;
}

html[lang="zh-CN"] h2 {
  line-height: 1.12;
}

html[lang="zh-CN"] .pixel-badge,
html[lang="zh-CN"] .nav-links a,
html[lang="zh-CN"] .nav-cta,
html[lang="zh-CN"] .primary-btn,
html[lang="zh-CN"] .ghost-btn {
  letter-spacing: 0;
}

@media (max-width: 980px) {
  .nav-shell {
    width: calc(100% - 22px);
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .language-switch {
    margin-left: auto;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    padding: 124px 18px 46px;
  }

  .hero-vignette {
    background:
      linear-gradient(180deg, rgba(3, 6, 5, 0.30) 0%, rgba(3, 6, 5, 0.88) 45%, rgba(3, 6, 5, 0.98) 100%),
      linear-gradient(90deg, rgba(3, 6, 5, 0.82) 0%, rgba(3, 6, 5, 0.16) 100%);
  }

  .hero-copy {
    padding-top: 36px;
  }

  .town-terminal {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 42px;
  }

  .town-scroll,
  .protocol-board,
  .about-board,
  .launch-grid,
  .role-grid,
  .launch-steps {
    grid-template-columns: 1fr;
  }

  .town-scroll {
    min-height: auto;
    padding: 0;
  }

  .town-stage {
    position: relative;
    top: auto;
    height: 76dvh;
    min-height: 560px;
  }

  .chapter-track {
    margin-top: 0;
  }

  .chapter {
    min-height: auto;
    padding: 28px 18px;
    justify-content: stretch;
  }

  .chapter.left,
  .chapter.right {
    justify-content: stretch;
  }

  .chapter-card {
    width: 100%;
    padding: 28px;
  }

  .about-short,
  .about-long {
    padding: 28px;
  }

  .stage-hud {
    left: 18px;
    right: 18px;
  }

  .agent {
    transform: scale(0.82);
  }

  .section {
    padding: 84px 18px;
  }

  .launch-steps {
    margin-top: 10px;
  }

  footer {
    flex-direction: column;
    padding-inline: 18px;
  }
}

@media (max-width: 640px) {
  .brand span {
    display: none;
  }

  .language-switch button {
    min-width: 30px;
    height: 30px;
    font-size: 11px;
  }

  h1 {
    font-size: clamp(36px, 11vw, 54px);
  }

  h2 {
    font-size: clamp(30px, 9vw, 46px);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }

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

  .scene-hud {
    left: 14px;
    right: 14px;
    bottom: 14px;
    flex-direction: column;
  }
}
