:root {
  --bg: #0a0b0d;
  --bg-2: #111318;
  --bg-3: #0d1014;
  --panel: #161922;
  --panel-2: #1e222c;
  --rule: #2a2f3a;
  --rule-2: #3a4050;
  --ink: #e8ecf1;
  --ink-2: #9aa3b2;
  --faint: #6b7280;
  --cyan: #00e5ff;
  --cyan-dim: rgba(0, 229, 255, 0.15);
  --orange: #ff9f1c;
  --orange-dim: rgba(255, 159, 28, 0.15);
  --danger: #ff3864;
  --green: #2ecc71;
  --font-display: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
}

a { color: var(--cyan); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--cyan);
  color: #000;
  padding: 8px 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 101;
  transition: top 0.15s;
}
.skip-link:focus { top: 0; text-decoration: none; }

/* Scroll reveal */
.section, .hero-text, .hero-visual {
  animation: reveal 0.6s ease-out forwards;
}
.hero-text { animation-delay: 0.1s; }
.hero-visual { animation-delay: 0.2s; }
.section:nth-of-type(1) { animation-delay: 0.25s; }
.section:nth-of-type(2) { animation-delay: 0.32s; }
.section:nth-of-type(3) { animation-delay: 0.39s; }
.section:nth-of-type(4) { animation-delay: 0.46s; }
.section:nth-of-type(5) { animation-delay: 0.53s; }
.section:nth-of-type(6) { animation-delay: 0.6s; }
@keyframes reveal {
  from { transform: translateY(12px); }
  to { transform: translateY(0); }
}

/* CRT scanline overlay */
.crt::before {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.12) 0 1px,
    transparent 1px 3px
  );
  pointer-events: none;
  z-index: 100;
  opacity: 0.35;
}

/* Factory floor grid background */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.mast {
  border-bottom: 1px solid var(--rule);
  background:
    radial-gradient(120% 80% at 50% -30%, rgba(0, 229, 255, 0.12) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.mast-in {
  max-width: 1600px;
  margin: 0 auto;
  padding: 1.2rem clamp(1.2rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.mast-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.mast-nav a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--ink-2);
}
.mast-nav a:hover { color: var(--ink); text-decoration: none; }
.mast-nav .cta {
  padding: 0.55rem 1rem;
  font-size: 0.75rem;
}
.logo {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1;
  color: var(--cyan);
  text-shadow: 0 0 32px rgba(0, 229, 255, 0.5);
  letter-spacing: 0.02em;
}
.logo small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.48rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--orange);
  text-shadow: none;
  margin-bottom: 0.2rem;
}
.coin {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--rule);
  background: var(--panel);
  padding: 0.55rem 1rem;
  box-shadow: inset 0 0 22px rgba(0, 229, 255, 0.08);
}
.coin .blink {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--orange);
  border-radius: 50%;
  animation: pulse 1.8s ease-in-out infinite;
  vertical-align: middle;
  margin-right: 0.5em;
}
@keyframes pulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; box-shadow: 0 0 9px 1px var(--orange); } }

.hero {
  min-height: calc(100vh - 90px);
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) clamp(1.2rem, 4vw, 3rem);
  position: relative;
  z-index: 1;
  background:
    radial-gradient(120% 80% at 85% 50%, rgba(0, 229, 255, 0.10) 0%, transparent 55%),
    url('/art/hero.png') right center / contain no-repeat;
  animation: hero-bg-drift 20s ease-in-out infinite alternate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(10, 11, 13, 0.85) 55%, transparent 100%);
  z-index: -1;
}

@keyframes hero-bg-drift {
  0% { background-position: right center, right center; }
  100% { background-position: right center, calc(100% - 1.5rem) center; }
}
.hero-text {
  position: relative;
}
.hero-text::before {
  content: "";
  position: absolute;
  top: -4rem;
  left: -4rem;
  width: 28rem;
  height: 28rem;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.08) 0%, transparent 65%);
  pointer-events: none;
  z-index: -1;
}
.hero-text h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.hero-text h1 span {
  color: var(--cyan);
  text-shadow: 0 0 34px rgba(0, 229, 255, 0.4);
}
.hero-text .tagline {
  margin: 1.4rem 0 2.2rem;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: var(--ink-2);
  max-width: 760px;
  line-height: 1.5;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.cta {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: clamp(0.9rem, 1.4vw, 1.15rem) clamp(1.6rem, 2.6vw, 2.4rem);
  white-space: nowrap;
  background: linear-gradient(180deg, var(--cyan), #00b8cc);
  color: #000;
  border: 1px solid var(--cyan);
  text-decoration: none;
  transition: 0.15s ease;
  box-shadow: 0 0 22px rgba(0, 229, 255, 0.3);
}
.cta:hover, .cta:focus-visible {
  background: #fff;
  color: #000;
  text-decoration: none;
  box-shadow: 0 0 28px rgba(0, 229, 255, 0.45);
}
.cta.secondary {
  background: transparent;
  color: var(--cyan);
  border-color: var(--rule-2);
  box-shadow: inset 0 0 22px var(--cyan-dim);
}
.cta.secondary:hover { background: var(--cyan-dim); border-color: var(--cyan); }

/* Arcade cabinet hero visual */
.hero-visual.cabinet {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: clamp(1rem, 2vw, 1.5rem);
  box-shadow:
    inset 0 0 60px rgba(0, 229, 255, 0.08),
    0 18px 50px rgba(0, 0, 0, 0.5);
  position: relative;
}

.cabinet-screen {
  aspect-ratio: 16 / 10;
  background: #050608;
  border: 2px solid var(--rule-2);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}
.factory-floor {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0, 229, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}
.factory-floor::after {
  content: "";
  position: absolute;
  top: 22%;
  left: 0;
  right: 0;
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    var(--rule-2) 0 24px,
    transparent 24px 48px
  );
  opacity: 0.5;
}
.arm {
  position: absolute;
  top: 18%;
  left: 30%;
  width: 4px;
  height: 60px;
  background: var(--rule-2);
  transform-origin: top center;
  animation: arm-swing 3s ease-in-out infinite;
}
.arm::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -8px;
  width: 20px;
  height: 12px;
  background: var(--orange);
  border-radius: 2px;
}
@keyframes arm-swing {
  0%, 100% { transform: rotate(-15deg); }
  50% { transform: rotate(15deg); }
}
.belt {
  position: absolute;
  bottom: 28%;
  left: 0;
  right: 0;
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    var(--rule-2) 0 16px,
    transparent 16px 32px
  );
  animation: belt-move 0.6s linear infinite;
}
@keyframes belt-move {
  from { background-position: 0 0; }
  to { background-position: 32px 0; }
}
.crate {
  position: absolute;
  bottom: 34%;
  width: 28px;
  height: 28px;
  border: 2px solid var(--orange);
  background: rgba(255, 159, 28, 0.15);
  animation: crate-travel 4s linear infinite;
}
.crate.c1 { animation-delay: 0s; }
.crate.c2 { animation-delay: 1.4s; }
.crate.c3 { animation-delay: 2.8s; }
@keyframes crate-travel {
  0% { left: -10%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 110%; opacity: 0; }
}
.bot {
  position: absolute;
  left: 50%;
  bottom: 34%;
  width: 36px;
  height: 36px;
  margin-left: -18px;
  background: var(--cyan);
  border-radius: 4px;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.5);
  animation: bot-work 2s ease-in-out infinite;
}
.bot::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  width: 8px;
  height: 8px;
  background: #000;
  border-radius: 50%;
  box-shadow: 16px 0 0 #000;
}
@keyframes bot-work {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.spark {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--cyan);
  border-radius: 50%;
  opacity: 0;
  animation: spark-pop 1.4s ease-out infinite;
}
.spark.s1 { left: 20%; top: 40%; animation-delay: 0s; }
.spark.s2 { left: 70%; top: 55%; animation-delay: 0.5s; }
.spark.s3 { left: 45%; top: 25%; animation-delay: 1s; }
@keyframes spark-pop {
  0% { opacity: 0; transform: scale(0); }
  30% { opacity: 1; transform: scale(1.5); }
  100% { opacity: 0; transform: scale(0) translateY(-20px); }
}

.cabinet-panel {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 0.8rem 1rem;
}
.cabinet-panel img {
  width: 100px;
  height: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.3));
}
.code-window {
  background: #0d0f12;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: clamp(0.7rem, 1.2vw, 0.9rem);
  font-family: var(--font-display);
  font-size: clamp(0.8rem, 1.1vw, 0.95rem);
  text-align: left;
  color: var(--ink-2);
}
.code-window .line { display: block; }
.code-window .kw { color: var(--orange); }
.code-window .fn { color: var(--cyan); }
.code-window .str { color: #7ee787; }
.code-window .blank {
  display: inline-block;
  width: 52px;
  height: 0.7em;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  vertical-align: middle;
  animation: blank-blink 1.2s steps(2) infinite;
}
@keyframes blank-blink { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

.frame {
  max-width: 1600px;
  margin: 0 auto;
  padding: 1.2rem clamp(1.2rem, 4vw, 3rem) 4rem;
}

.section {
  border: 1px solid var(--rule);
  background: var(--panel);
  padding: clamp(1.4rem, 3.5vw, 2.4rem);
  margin-bottom: 1.25rem;
}
.section h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  color: var(--cyan);
  text-shadow: 0 0 14px rgba(0, 229, 255, 0.2);
}
.section-lead {
  margin: 0 0 1.4rem;
  color: var(--ink-2);
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
}
.section p { margin: 0 0 0.8rem; color: var(--ink-2); }
.section p:last-child { margin-bottom: 0; }

/* Demo section */
.demo {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.demo-text { max-width: 520px; }
.demo-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: center;
}
.terminal {
  background: #0b0d10;
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 0.7rem;
  background: var(--panel-2);
  border-bottom: 1px solid var(--rule);
}
.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--danger);
}
.terminal-bar span:nth-child(2) { background: var(--orange); }
.terminal-bar span:nth-child(3) { background: var(--green); }
.terminal-title {
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 0.65rem;
  color: var(--faint);
}
.terminal pre {
  margin: 0;
  padding: 1rem;
  font-family: var(--font-display);
  font-size: clamp(0.75rem, 1vw, 0.9rem);
  line-height: 1.6;
  color: var(--ink);
}
.terminal .kw { color: var(--orange); }
.terminal .fn { color: var(--cyan); }
.terminal .str { color: #7ee787; }
.demo-fx {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.08) 0%, transparent 70%);
  display: grid;
  place-items: center;
}
.scanner {
  width: 60%;
  height: 60%;
  border: 2px dashed var(--cyan);
  border-radius: 50%;
  animation: scanner-spin 4s linear infinite;
}
@keyframes scanner-spin { to { transform: rotate(360deg); } }
.pulse-ring {
  position: absolute;
  inset: 10%;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  opacity: 0;
  animation: pulse-ring 2s ease-out infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(1.3); opacity: 0; }
}
.status {
  position: absolute;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  padding: 0.4rem 0.8rem;
  background: var(--green);
  color: #000;
  font-weight: 700;
  border-radius: 4px;
}
.status.ok { animation: status-pop 2s ease-in-out infinite; }
@keyframes status-pop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); box-shadow: 0 0 16px var(--green); }
}

.grid {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
}
.grid.g3 { grid-template-columns: repeat(3, 1fr); }
.grid.g4 { grid-template-columns: repeat(4, 1fr); }
.grid > div {
  background: var(--panel);
  padding: clamp(1.2rem, 2vw, 1.6rem);
  transition: 0.2s ease;
}
.grid > div:hover {
  background: var(--panel-2);
  box-shadow: inset 0 0 30px rgba(0, 229, 255, 0.06);
}
.grid > div:hover .icon {
  border-color: var(--cyan);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.2);
}
.grid h3 {
  margin: 0.6rem 0 0.4rem;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--ink);
}
.grid p {
  margin: 0;
  font-size: clamp(0.88rem, 1.1vw, 0.97rem);
  color: var(--ink-2);
  line-height: 1.55;
}
.kicker {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0;
}

/* Feature icons */
.icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--bg-2);
  border: 1px solid var(--rule-2);
  position: relative;
}
.icon::before, .icon::after {
  content: "";
  position: absolute;
}
.icon.enter::before {
  width: 18px; height: 18px;
  border: 2px solid var(--cyan);
  left: 11px; top: 11px;
}
.icon.enter::after {
  width: 0; height: 0;
  border: 6px solid transparent;
  border-left-color: var(--cyan);
  left: 22px; top: 15px;
}
.icon.quest::before {
  width: 18px; height: 22px;
  border: 2px solid var(--orange);
  border-radius: 2px;
  left: 11px; top: 9px;
}
.icon.quest::after {
  width: 6px; height: 6px;
  background: var(--orange);
  border-radius: 50%;
  left: 17px; top: 15px;
}
.icon.code::before {
  width: 22px; height: 14px;
  border: 2px solid var(--cyan);
  left: 9px; top: 13px;
}
.icon.code::after {
  width: 10px; height: 2px;
  background: var(--cyan);
  left: 15px; top: 20px;
  box-shadow: 0 -5px 0 var(--cyan);
}
.icon.run::before {
  width: 0; height: 0;
  border: 10px solid transparent;
  border-left: 14px solid var(--green);
  left: 16px; top: 12px;
}
.icon.level::before {
  width: 16px; height: 22px;
  background: linear-gradient(180deg, var(--orange) 60%, transparent 60%);
  left: 13px; top: 9px;
  border-radius: 2px;
}
.icon.party::before {
  width: 14px; height: 14px;
  background: var(--cyan);
  border-radius: 50%;
  left: 10px; top: 14px;
  box-shadow: 12px -4px 0 var(--orange), 12px 8px 0 var(--green);
}

.ladder {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.ladder li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: clamp(0.75rem, 1.4vw, 1rem) clamp(1rem, 2vw, 1.4rem);
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--cyan);
}
.ladder .act {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  min-width: 80px;
}
.ladder .title { color: var(--ink); font-weight: 600; font-size: clamp(0.95rem, 1.3vw, 1.05rem); }
.ladder .hours { margin-left: auto; color: var(--faint); font-size: clamp(0.8rem, 1.1vw, 0.9rem); }

/* District cards */
.district-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
}
.district-card {
  background: var(--panel);
  padding: clamp(1.4rem, 2.5vw, 2rem);
  position: relative;
  overflow: hidden;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: 0.2s ease;
}
.district-card:hover {
  background: var(--panel-2);
}
.district-card:hover::after {
  opacity: 0.35;
  transform: scale(1.08);
}
.district-card::before {
  content: "";
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  border: 2px solid var(--rule-2);
  border-radius: 8px;
  opacity: 0.6;
}
.district-card::after {
  content: "";
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  background: var(--accent);
  opacity: 0.15;
  border-radius: 8px;
  transition: 0.25s ease;
}
.district-name {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--ink);
  margin-bottom: 0.3rem;
}
.district-topic {
  font-size: clamp(0.8rem, 1.1vw, 0.9rem);
  color: var(--cyan);
  font-weight: 600;
}
.district-card.receiving { --accent: var(--orange); }
.district-card.assembly { --accent: var(--cyan); }
.district-card.quality { --accent: var(--green); }
.district-card.warehouse { --accent: var(--orange); }
.district-card.arena { --accent: var(--danger); }
.district-card.network { --accent: var(--cyan); }

/* Skills badge cloud */
.badge-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.2rem;
}
.badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  padding: 0.5rem 0.9rem;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  color: var(--ink-2);
  border-radius: 4px;
  transition: 0.15s ease;
}
.badge:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.15);
}

/* Final CTA */
.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  background:
    radial-gradient(120% 100% at 80% 50%, rgba(0, 229, 255, 0.1) 0%, transparent 55%),
    var(--panel);
}
.final-cta-text { max-width: 600px; }
.final-cta-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* Attract mode section */
.attract {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.attract-text { max-width: 520px; }
.attract-screen {
  aspect-ratio: 16 / 9;
  background: #050608;
  border: 2px solid var(--rule-2);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.attract-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0, 229, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.ghost-bot {
  width: 40px;
  height: 40px;
  background: rgba(0, 229, 255, 0.2);
  border: 2px solid var(--cyan);
  border-radius: 4px;
  position: relative;
  animation: ghost-move 3s ease-in-out infinite;
  filter: blur(1px);
}
.ghost-bot::before {
  content: "";
  position: absolute;
  top: 8px; left: 8px;
  width: 8px; height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 16px 0 0 var(--cyan);
}
@keyframes ghost-move {
  0%, 100% { transform: translateX(-40px); }
  50% { transform: translateX(40px); }
}
.ghost-code {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 0.7rem;
  color: var(--faint);
  letter-spacing: 0.1em;
}

/* Gameplay preview screenshot */
.shot {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(1.4rem, 3.5vw, 2.4rem);
  text-align: center;
}
.shot h2 {
  margin: 0 0 1.2rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  color: var(--cyan);
  text-shadow: 0 0 14px rgba(0, 229, 255, 0.2);
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--rule);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), 0 0 24px rgba(0, 229, 255, 0.08);
}

.districts {
  max-width: 1100px;
  margin: 0 auto 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  border: 1px solid var(--rule);
  background:
    linear-gradient(90deg, rgba(10, 11, 13, 0.92) 0%, rgba(10, 11, 13, 0.75) 100%),
    var(--panel);
  padding: clamp(1.4rem, 3.5vw, 2.4rem);
}
.districts-media {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--rule);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), 0 0 24px rgba(0, 229, 255, 0.08);
}
.districts-media img {
  display: block;
  width: 100%;
  height: auto;
}
.districts-text h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  color: var(--cyan);
  text-shadow: 0 0 14px rgba(0, 229, 255, 0.2);
}
.districts-text .section-lead {
  margin: 0 0 1.2rem;
  color: var(--ink-2);
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
}
.district-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.district-list li {
  padding: 0.7rem 0.9rem;
  background: rgba(0, 229, 255, 0.05);
  border-left: 3px solid var(--cyan);
  color: var(--ink-2);
  font-size: 0.95rem;
}
.district-list strong {
  color: var(--ink);
  font-family: var(--font-display);
}

footer {
  border-top: 1px solid var(--rule);
  background: var(--bg-2);
}
footer > div {
  max-width: 1600px;
  margin: 0 auto;
  padding: 1.5rem clamp(1.2rem, 4vw, 3rem);
  font-size: 12px;
  color: var(--faint);
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .coin .blink, .belt, .crate, .bot, .spark, .blank-blink,
  .scanner, .pulse-ring, .status.ok, .ghost-bot, .arm { animation: none; }
}
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 680px; margin: 0 auto; }
  .demo { grid-template-columns: 1fr; }
  .demo-stage { grid-template-columns: 1fr; }
  .attract { grid-template-columns: 1fr; }
  .grid.g3, .grid.g4, .district-grid { grid-template-columns: repeat(2, 1fr); }
  .districts { grid-template-columns: 1fr; }
  .final-cta { text-align: center; justify-content: center; }
}
@media (max-width: 680px) {
  .mast-in { flex-direction: column; align-items: flex-start; }
  .mast-nav { width: 100%; justify-content: space-between; }
  .grid.g3, .grid.g4, .district-grid { grid-template-columns: 1fr; }
  .hero-text h1 { font-size: 2.2rem; }
  .final-cta { flex-direction: column; }
}
