:root {
  --page: #f9fbfe;
  --page-2: #eef3f9;
  --ink: #0f1b2d;
  --muted: #55647a;
  --line: #d9e1ea;
  --night: #101e42;
  --sky: #23376e; /* the plate's sky under the night overlay */
  --night-2: #0c1735;
  --panel: #18284f;
  --panel-line: #2a3c6b;
  --night-ink: #eef4ff;
  --night-muted: #a9b8d6;
  --cyan: #38c6ff;
  --blue: #0b84c6;
  --orange: #ff9d2e;
  --c1: #2098d4;
  --c2: #d47820;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
html, body { margin: 0; background: var(--page); color: var(--ink); }
body { font: 400 16px/1.6 var(--body); overflow-x: clip; }
h1, h2, h3, p, figure, dl, dd, ol { margin: 0; padding: 0; }
ol { list-style: none; }
img { display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.skip { position: fixed; left: 16px; top: -60px; z-index: 60; padding: 8px 14px; background: #fff; border-radius: 8px; }
.skip:focus { top: 12px; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.wrap-narrow { width: min(760px, 100% - 32px); }

/* Navigation */
.nav {
  position: fixed; z-index: 50; top: 14px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px;
  width: min(1120px, 100% - 24px); padding: 6px 6px 6px 16px;
  background: #0f1b2d; color: #fff; border-radius: 14px;
  box-shadow: 0 10px 30px rgba(15, 27, 45, .24);
}
.logo { display: flex; align-items: center; gap: 9px; margin-right: auto; font: 500 13px var(--mono); letter-spacing: .12em; text-decoration: none; }
.logo-mark { width: 12px; height: 12px; border-radius: 3px; background: var(--cyan); box-shadow: 4px 4px 0 var(--orange); margin-right: 4px; }
.nav-links { display: flex; gap: 2px; margin-right: 8px; }
.nav-links a { padding: 8px 10px; font-size: 14px; color: #c8d3e4; text-decoration: none; border-radius: 8px; }
.nav-links a:hover { color: #fff; background: #1d2c44; }
.nav-btn, .nav-cta { min-height: 38px; padding: 0 13px; font: 500 13px var(--body); border-radius: 9px; cursor: pointer; }
.nav-btn { color: #c8d3e4; background: transparent; border: 1px solid #33445f; }
.nav-btn:hover { color: #fff; border-color: #55698a; }
.nav-cta { display: inline-flex; align-items: center; color: #06202f; background: var(--cyan); text-decoration: none; font-weight: 600; }
.nav-cta:hover { background: #6fd6ff; }

/* Pinned city tour */
.pin { position: relative; height: 640vh; }
.pin-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--page); }
.pin-night {
  position: absolute; inset: 0; opacity: 0; background-color: var(--sky);
  background-image:
    radial-gradient(1.4px 1.4px at 12% 14%, #cfe4ff, transparent), radial-gradient(1.2px 1.2px at 28% 8%, #cfe4ff, transparent),
    radial-gradient(1.6px 1.6px at 44% 20%, #fff, transparent), radial-gradient(1.2px 1.2px at 63% 7%, #cfe4ff, transparent),
    radial-gradient(1.5px 1.5px at 78% 16%, #fff, transparent), radial-gradient(1.2px 1.2px at 91% 9%, #cfe4ff, transparent),
    radial-gradient(1.2px 1.2px at 6% 30%, #cfe4ff, transparent), radial-gradient(1.2px 1.2px at 95% 28%, #cfe4ff, transparent);
}
.world { position: absolute; inset: 0; }
.stage {
  position: absolute; left: 0; top: 0; width: 1993px; height: 789px;
  transform-origin: 0 0; will-change: transform; contain: layout;
}
.layer { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.layer[hidden] { display: none; }
.plate { z-index: 0; }
canvas.layer, .fx, .night, .neon { pointer-events: none; }
.night { background: #24386f; mix-blend-mode: multiply; opacity: 0; }
/* Overdraws the plate's outer pixels so its bright edge can't show against the night page. */
.night-edge { inset: -3px; width: auto; height: auto; border: 6px solid var(--sky); box-shadow: inset 0 0 26px 8px var(--sky); opacity: 0; pointer-events: none; }
.neon { opacity: 0; }

.hero, .night-copy { position: absolute; left: 0; right: 0; text-align: center; padding-inline: 20px; z-index: 5; }
.hero { top: clamp(80px, 11vh, 104px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  font: 500 12px/1.4 var(--mono); letter-spacing: .04em; color: var(--muted);
}
.eyebrow-night { color: var(--night-muted); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); animation: dot 1.8s ease-in-out infinite; }
@keyframes dot { 50% { opacity: .3; } }
h1 {
  font: 700 clamp(34px, min(5.4vw, 8.6vh), 72px)/1.02 var(--display); letter-spacing: -.03em; color: var(--ink);
}
h1 em { font-style: normal; white-space: nowrap; background: linear-gradient(transparent 66%, rgba(56, 198, 255, .55) 66%); }
.lede { max-width: 620px; margin: 12px auto 0; font-size: clamp(16px, 1.5vw, 19px); color: var(--muted); }
/* Buttons and token pill share one row when there is room, and wrap centred when there isn't. */
.hero-cta { display: inline-flex; vertical-align: middle; justify-content: center; gap: 10px; margin: 18px 5px 0; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px;
  font: 600 15px var(--body); border-radius: 11px; border: 1px solid transparent; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { color: #fff; background: #0f1b2d; }
.btn-primary:hover { background: #24344d; }
.dark .btn-primary, .finale .btn-primary { color: #06202f; background: var(--cyan); }
.dark .btn-primary:hover, .finale .btn-primary:hover { background: #6fd6ff; }
.btn-ghost { color: var(--ink); background: #fff; border-color: var(--line); }
.btn-ghost:hover { border-color: #aab7c7; }
.btn-block { width: 100%; }

.stop {
  position: absolute; z-index: 6; left: clamp(16px, 5vw, 72px); bottom: clamp(24px, 9vh, 80px);
  width: min(400px, 100% - 32px); padding: 22px 24px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 16px 40px rgba(15, 27, 45, .14);
  opacity: 0; transform: translateY(18px); pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}
.stop.on { opacity: 1; transform: none; pointer-events: auto; }
.stop-num { font: 500 12px var(--mono); color: var(--blue); margin-bottom: 8px; }
.stop h2 { font: 700 clamp(24px, 2.4vw, 32px)/1.1 var(--display); letter-spacing: -.02em; margin-bottom: 8px; }
.stop p:last-child { color: var(--muted); font-size: 15px; }

.night-copy { top: clamp(80px, 11vh, 104px); color: var(--night-ink); opacity: 0; pointer-events: none; }
.night-copy h2 { font: 700 clamp(34px, 5vw, 66px)/1.04 var(--display); letter-spacing: -.03em; }
.night-copy p:last-child { margin-top: 10px; color: var(--night-muted); font-size: clamp(16px, 1.5vw, 18px); }

.rail { position: absolute; z-index: 6; right: 18px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 2px; }
.rail button { width: 28px; height: 28px; padding: 0; background: transparent; border: 0; cursor: pointer; display: grid; place-items: center; }
.rail i { width: 8px; height: 8px; border-radius: 50%; background: #b6c3d3; transition: transform .2s ease, background-color .2s ease; }
.rail button.on i { background: var(--cyan); transform: scale(1.5); }
.scroll-hint { position: absolute; z-index: 6; left: 50%; bottom: 14px; transform: translateX(-50%); font: 500 12px var(--mono); color: var(--muted); background: rgba(249, 251, 254, .9); padding: 3px 10px; border-radius: 99px; transition: opacity .3s ease; }

/* Section frames */
section.dark, section.light { padding-block: clamp(72px, 10vw, 128px); }
.dark { background: var(--night); color: var(--night-ink); }
#control { background: linear-gradient(var(--sky), var(--night) 280px); }
.dark-2 { background: var(--night-2); }
.light { background: var(--page); }
.light-2 { background: var(--page-2); }
.section-head { max-width: 680px; margin-bottom: clamp(30px, 4vw, 52px); }
.section-head h2 { font: 700 clamp(32px, 4.4vw, 56px)/1.05 var(--display); letter-spacing: -.025em; }
.section-head p:not(.eyebrow) { margin-top: 14px; font-size: 17px; color: var(--muted); }
.dark .section-head p:not(.eyebrow) { color: var(--night-muted); }
.fine { font-size: 13px; color: var(--muted); }
.dark .fine { color: var(--night-muted); }
.panel { background: var(--panel); border: 1px solid var(--panel-line); border-radius: 16px; padding: 22px; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.seen { opacity: 1; transform: none; }

/* Control room */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.tile { background: var(--panel); border: 1px solid var(--panel-line); border-radius: 14px; padding: 16px 18px; }
.tile-label { font-size: 13px; color: var(--night-muted); }
.tile-value { font: 500 clamp(28px, 3.2vw, 40px)/1.15 var(--mono); font-variant-numeric: tabular-nums; margin-top: 4px; }
.tile-value small { font-size: .5em; color: var(--night-muted); }
.tile-note { font-size: 12px; color: var(--night-muted); margin-top: 4px; }
.charts { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 12px; }
figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
figcaption h3 { font: 600 16px var(--body); }
.legend { display: flex; gap: 14px; font-size: 13px; color: var(--night-muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 3px; border-radius: 2px; }
.plot { position: relative; height: 260px; margin-bottom: 10px; touch-action: pan-y; }
.plot svg { display: block; width: 100%; height: 100%; }
.plot text { font: 400 12px var(--mono); fill: var(--night-muted); }
.plot .end-label { font-family: var(--body); font-weight: 500; fill: var(--night-ink); }
.tip {
  position: absolute; z-index: 3; pointer-events: none; padding: 7px 10px; font-size: 13px; line-height: 1.45;
  color: var(--ink); background: #fff; border-radius: 8px; box-shadow: 0 8px 20px rgba(0, 0, 0, .3); white-space: nowrap;
  transform: translate(-50%, -100%);
}
.tip b { font-weight: 600; }
.bars-plot { position: relative; display: flex; align-items: flex-end; gap: 2px; height: 260px; padding-top: 22px; margin-bottom: 10px; }
.bar-col { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; cursor: default; }
.bar-col:hover .bar-fill, .bar-col:focus .bar-fill { background: #38c6ff; }
.bar-track { flex: 1; display: flex; align-items: flex-end; justify-content: center; position: relative; }
.bar-fill { width: min(34px, 72%); background: var(--c1); border-radius: 4px 4px 0 0; transition: height .9s cubic-bezier(.3, .7, .2, 1); }
.bar-name { margin-top: 8px; text-align: center; font-size: 12px; color: var(--night-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-val { position: absolute; left: 0; right: 0; text-align: center; font: 500 12px var(--mono); }
.data-table summary { font-size: 13px; color: var(--night-muted); cursor: pointer; }
.data-table table { width: 100%; margin-top: 8px; font-size: 13px; border-collapse: collapse; }
.data-table th, .data-table td { text-align: left; padding: 4px 0; border-bottom: 1px solid var(--panel-line); font-weight: 400; }
.data-table td:last-child, .data-table th:last-child { text-align: right; font-family: var(--mono); }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cell { padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.cell:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(15, 27, 45, .08); }
.cell-wide { grid-column: span 2; }
.cell h3 { font: 700 21px/1.2 var(--display); margin: 16px 0 6px; }
.cell p { font-size: 15px; color: var(--muted); }
.cell-art { height: 170px; border-radius: 12px; background: var(--page-2); position: relative; overflow: hidden; }
.art-center { display: grid; place-items: center; }
.art-fan { width: 124px; height: 124px; animation: spin 1.5s linear infinite; }
.art-drone { width: 150px; animation: hover 3.4s ease-in-out infinite; }
@keyframes hover { 50% { transform: translateY(-14px) rotate(-2deg); } }
.art-road { background: #55637b; }
.mini-road { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, #e8eef6 0 22px, transparent 22px 48px) center / 100% 2px no-repeat; }
.mini-road img { position: absolute; width: 66px; animation: drive 11s linear infinite; }
.mini-road img:nth-child(1) { top: 20%; }
.mini-road img:nth-child(2) { top: 56%; animation-direction: reverse; animation-duration: 15s; }
@keyframes drive { from { left: -80px; } to { left: 100%; } }
.art-cap { padding: 0 24px; align-content: center; gap: 10px; }
.art-cap p { color: var(--ink); text-align: center; font-family: var(--mono); font-size: 14px; }
.art-cap b { font-weight: 500; }
.cap-meter { width: 100%; height: 14px; border-radius: 7px; background: #d4dde8; overflow: hidden; }
.cap-meter i { display: block; height: 100%; width: 64%; background: var(--blue); border-radius: 7px; transform-origin: left; animation: fill 4s ease-in-out infinite alternate; }
@keyframes fill { from { transform: scaleX(.25); } to { transform: scaleX(1); } }
.cell-dark { background: var(--night); border-color: var(--night); color: var(--night-ink); }
.cell-dark p { color: var(--night-muted); }
.art-code { background: var(--night-2); padding: 14px 18px; }
.art-code pre { margin: 0; font: 400 13px/1.55 var(--mono); color: #a7e6ff; overflow: hidden; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font: 600 17px var(--body); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 22px/1 var(--mono); color: var(--blue); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--muted); max-width: 62ch; }

/* Finale */
.finale { background: var(--night-2); color: var(--night-ink); overflow: hidden; padding-top: clamp(40px, 6vw, 72px); }
.marquee { overflow: hidden; white-space: nowrap; }
.marquee-track { display: inline-flex; animation: slide 36s linear infinite; }
.marquee span { padding-right: .5em; font: 700 clamp(64px, 13vw, 190px)/1 var(--display); letter-spacing: -.03em; color: #243766; }
@keyframes slide { to { transform: translateX(-50%); } }
.finale-body { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-block: clamp(32px, 5vw, 56px); }
.finale-body h2 { font: 700 clamp(28px, 3.6vw, 46px)/1.08 var(--display); letter-spacing: -.02em; max-width: 16em; }
.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 18px 26px; border-top: 1px solid var(--panel-line); font-size: 13px; color: var(--night-muted); }

/* City effects: positioned by JS in source-image percentages */
.fx > * { position: absolute; }
.anim-off *, .anim-off *::before, .anim-off *::after { animation-play-state: paused !important; }
.city-off .fx * { animation-play-state: paused !important; }

.fan { transform: translate(-50%, -50%) scaleY(var(--k)); aspect-ratio: 1; }
.fan img { display: block; width: 100%; height: 100%; animation: spin var(--d, 1.2s) linear infinite; will-change: transform; }
@keyframes spin { to { transform: rotate(360deg); } }

.glow {
  border-radius: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, var(--c, var(--cyan)), transparent);
  animation: pulse var(--d, 3s) ease-in-out var(--o, 0s) infinite;
  will-change: opacity;
}
@keyframes pulse { 0%, 100% { opacity: var(--lo, .15); } 50% { opacity: var(--hi, .75); } }

.orb { animation-name: orb; will-change: transform, opacity; }
@keyframes orb {
  0%, 100% { opacity: .45; transform: translate(-50%, -50%) scale(.82); }
  50% { opacity: .95; transform: translate(-50%, -50%) scale(1.14); }
}

.ring {
  border-radius: 50%; border: 2px solid var(--c, var(--cyan)); transform: translate(-50%, -50%) scale(.2);
  opacity: 0; animation: ring var(--d, 3s) ease-out var(--o, 0s) infinite; will-change: transform, opacity;
}
@keyframes ring {
  0% { opacity: .8; transform: translate(-50%, -50%) scale(.2); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1); }
}

.beam {
  transform: translateX(-50%); overflow: hidden; animation: pulse 2.6s ease-in-out infinite; --lo: .35; --hi: .85;
  background: linear-gradient(to top, rgba(56, 198, 255, .55), rgba(56, 198, 255, 0));
  -webkit-mask-image: linear-gradient(to right, transparent, #000 35%, #000 65%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 35%, #000 65%, transparent);
}
.beam i {
  position: absolute; left: 0; right: 0; height: 24%; bottom: -24%;
  background: linear-gradient(to top, transparent, rgba(255, 255, 255, .85), transparent);
  animation: rise 2.4s linear infinite;
}
.beam i:nth-child(2) { animation-delay: -1.2s; }
@keyframes rise { to { transform: translateY(-520%); } }

.screen { overflow: hidden; border-radius: 2px; }
.scan {
  position: absolute; left: 0; right: 0; height: 16%; top: -16%;
  background: linear-gradient(to bottom, transparent, rgba(120, 225, 255, .5), transparent);
  animation: scan 4.5s linear infinite; will-change: transform;
}
@keyframes scan { to { transform: translateY(800%); } }

.bars { display: flex; align-items: flex-end; justify-content: space-evenly; background: #071f39; border-radius: 2px; }
.bars i {
  width: 3.4%; height: 88%; background: linear-gradient(to top, #1a8fd8, #6fdcff); transform-origin: bottom;
  animation: bar var(--d) ease-in-out var(--o) infinite alternate; will-change: transform;
}
@keyframes bar { from { transform: scaleY(var(--a)); } to { transform: scaleY(var(--b)); } }

.chip { overflow: visible; }
.chip .core { fill: rgba(90, 225, 255, .35); transform-box: fill-box; transform-origin: center; animation: chipcore 2.4s ease-in-out infinite; }
@keyframes chipcore { 0%, 100% { opacity: .15; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.06); } }
.chip .trace {
  fill: none; stroke: #b4f3ff; stroke-width: 1.6; stroke-linecap: round;
  stroke-dasharray: 10 70; animation: trace var(--d, 2.2s) linear var(--o, 0s) infinite;
}
@keyframes trace { from { stroke-dashoffset: 80; } to { stroke-dashoffset: 0; } }

/* Layout breakpoints */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .charts, .sim { grid-template-columns: minmax(0, 1fr); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .nav-btn { display: none; }
  .nav { padding-left: 14px; }
  .rail { display: none; }
  .stop { left: 12px; right: 12px; width: auto; bottom: 14px; padding: 16px 18px; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .cell-wide { grid-column: auto; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-panel { grid-template-columns: minmax(0, 1fr); }
  .flow-arrow { transform: rotate(90deg); justify-self: center; }
  .plot, .bars-plot { height: 220px; }
}

/* Reduced motion: the tour becomes a static page with the original image. */
.static .pin { height: auto; }
.static .pin-sticky { position: static; height: auto; overflow: visible; }
.static .world { position: relative; inset: auto; height: var(--static-h, 40vw); overflow: hidden; }
.static .hero { position: static; padding-top: 96px; padding-bottom: 12px; }
.static .fx, .static canvas, .static #foreground, .static .night, .static .neon, .static .night-edge, .static .rail, .static .scroll-hint, .static .night-copy, .static .pin-night { display: none; }
.static .stop { position: static; opacity: 1; transform: none; width: min(1180px, 100% - 32px); margin: 12px auto; box-shadow: none; }
.static .reveal { opacity: 1; transform: none; transition: none; }
.static #toggle { display: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  .mini-road img:nth-child(1) { left: 12%; }
  .mini-road img:nth-child(2) { left: 56%; }
}

/* Contract address and social links */
.socials { display: flex; gap: 6px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 9px;
  color: #c8d3e4; border: 1px solid #33445f; text-decoration: none; transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.icon-btn svg { width: 16px; height: 16px; fill: currentColor; }
.icon-btn:hover { color: #fff; border-color: #55698a; }
.icon-btn-light { width: 46px; height: 46px; border-radius: 11px; color: var(--ink); background: #fff; border-color: var(--line); }
.icon-btn-light svg { width: 18px; height: 18px; }
.icon-btn-light:hover { color: var(--ink); border-color: #aab7c7; }
.icon-btn[aria-disabled=true] { cursor: default; opacity: .55; }
.icon-btn[aria-disabled=true]:hover { border-color: inherit; }
.nav-socials { margin-right: 6px; }

.ca-pill {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%; min-height: 46px; padding: 0 6px 0 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 11px;
}
.ca-tag { padding: 4px 8px; font: 500 12px var(--mono); color: #06202f; background: var(--cyan); border-radius: 7px; }
.ca-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 14px var(--mono); color: var(--ink); }
.ca-text.is-empty { color: var(--muted); }
.ca-copy {
  position: relative; display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none;
  color: var(--ink); background: var(--page-2); border: 0; border-radius: 8px; cursor: pointer;
}
.ca-copy svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.ca-copy:hover { background: #e1e9f2; }
.ca-copy:disabled { cursor: default; opacity: .45; }
.ca-done {
  position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); padding: 3px 8px;
  font: 500 12px var(--body); color: #fff; background: var(--ink); border-radius: 6px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .15s ease;
}
.ca-copy.copied .ca-done { opacity: 1; }
.ca-pill-dark { background: var(--panel); border-color: var(--panel-line); }
.ca-pill-dark .ca-text { color: var(--night-ink); }
.ca-pill-dark .ca-text.is-empty { color: var(--night-muted); }
.ca-pill-dark .ca-copy { color: var(--night-ink); background: #22356a; }
.ca-pill-dark .ca-copy:hover { background: #2c4380; }
.foot-links { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 22px; }

@media (max-width: 640px) {
  .nav-socials { display: none; }
  .hero-cta { margin-top: 12px; }
  /* Phones: the full address wraps instead of being cut, so it can still be checked. */
  .ca-pill .ca-text { white-space: normal; word-break: break-all; font-size: 12px; line-height: 1.45; }
}

/* Short screens: tighter hero so the city keeps its size below it. */
@media (max-height: 720px) and (min-width: 641px) {
  .chain-chip { margin-bottom: 10px; }
  .chain-note, .chain-sep { display: none; }
  .lede { font-size: 15px; margin-top: 8px; }
  .hero-cta { margin-top: 12px; }
}

/* Compact contract address in the navbar: short address on desktop, "Copy CA" on phones. */
.nav-ca {
  position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 10px 0 5px; margin-right: 2px;
  font: 500 13px var(--body); color: #e6edf7; background: #18263b; border: 1px solid #33445f; border-radius: 9px; cursor: pointer;
}
.nav-ca:hover:not(:disabled) { border-color: #55698a; background: #1d2e47; }
.nav-ca:disabled { cursor: default; color: #8d9bb2; }
.nav-ca .ca-tag { padding: 3px 6px; font-size: 11px; }
.nav-ca-addr { font: 400 13px var(--mono); }
.nav-ca-label { display: none; }
.nav-ca svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.nav-ca .ca-done { bottom: auto; top: calc(100% + 8px); }
.nav-ca.copied .ca-done { opacity: 1; }

@media (max-width: 1180px) and (min-width: 981px) {
  .nav-btn { display: none; }
}
@media (max-width: 640px) {
  .nav-cta { display: none; }
  .nav-ca { padding: 0 12px 0 5px; }
  .nav-ca-addr { display: none; }
  .nav-ca-label { display: inline; }
}

/* Network label: the first thing read in the hero, and next to the CA in the footer. */
.chain-chip {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 6px 12px 6px 10px;
  font: 600 13px/1.2 var(--body); color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 99px;
}
.chain-sep { color: #aab7c7; font-weight: 400; }
.chain-note { font: 500 12px var(--mono); color: var(--muted); }
.chain-chip-dark { margin: 0; color: var(--night-ink); background: var(--panel); border-color: var(--panel-line); }
.foot-links { justify-content: flex-start; }
.foot-links .socials { margin-left: auto; }
@media (max-width: 640px) {
  .foot-links .socials { margin-left: 0; }
}

/* Live indicator */
.live-dot.off { background: #8d9bb2; animation: none; }
.live-num { font-family: var(--mono); font-weight: 500; color: var(--ink); white-space: nowrap; }
.night-copy .live-num { color: #fff; }

/* Live feed of transactions and blocks */
.feed figcaption { margin-bottom: 8px; }
.feed-sub { margin-top: 16px; }
.feed-more { font-size: 13px; color: var(--night-muted); text-decoration: none; }
.feed-more:hover { color: #fff; }
.feed-list li + li { border-top: 1px solid var(--panel-line); }
.feed-list a { display: flex; flex-direction: column; gap: 2px; padding: 8px 4px; text-decoration: none; border-radius: 8px; }
.feed-list a:hover { background: #1f3260; }
.feed-main { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.feed-main code { font: 500 13px var(--mono); color: #fff; }
.feed-tag { font-size: 12px; color: #a7e6ff; background: #22356a; padding: 2px 8px; border-radius: 99px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%; }
.feed-meta { font: 400 12px var(--mono); color: var(--night-muted); }
.source-note { margin-top: 12px; }
.source-note a { color: var(--night-ink); }

/* Following the wallet car */
.follow-chip {
  position: absolute; z-index: 7; left: 50%; top: 86px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 6px 6px 12px;
  font: 600 13px var(--body); color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 99px;
  box-shadow: 0 8px 24px rgba(15, 27, 45, .12);
}
.follow-chip[hidden] { display: none; }
.follow-chip button { min-height: 30px; padding: 0 12px; font: 600 13px var(--body); color: #fff; background: var(--ink); border: 0; border-radius: 99px; cursor: pointer; }

/* Garage */
.garage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 12px; align-items: start; }
.garage-form { display: flex; flex-direction: column; gap: 14px; }
.garage-form input[type=text] {
  min-height: 46px; padding: 0 14px; font: 400 15px var(--mono); color: var(--night-ink);
  background: var(--night-2); border: 1px solid var(--panel-line); border-radius: 10px;
}
.garage-form input[type=text]:focus-visible { outline: 2px solid var(--cyan); outline-offset: 1px; }
.garage-form input[aria-invalid=true] { border-color: #ff7a7a; }
.garage-form input:disabled { opacity: .55; }
.field small { font: 400 12px var(--mono); color: var(--night-muted); }
.field-error { font-size: 14px; color: #ff9b9b; }
.field-error[hidden] { display: none; }
.garage-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-quiet { color: var(--night-ink); background: transparent; border-color: var(--panel-line); }
.btn-quiet:hover { border-color: #55698a; }
.btn:disabled, .btn[aria-disabled=true] { opacity: .45; cursor: default; pointer-events: none; }
.btn[hidden] { display: none; }
.paint { border: 0; padding: 0; margin: 0; }
.paint legend { padding: 0; margin-bottom: 8px; font-size: 14px; color: var(--night-muted); }
.swatches { display: flex; gap: 10px; }
.swatch {
  position: relative; width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  background: var(--sw); border: 3px solid var(--panel); box-shadow: 0 0 0 1px var(--panel-line);
}
.swatch[aria-pressed=true] { box-shadow: 0 0 0 2px #fff; }
.swatch.locked { opacity: .35; cursor: not-allowed; }
.swatch.locked::after { content: ""; position: absolute; inset: 11px; border-radius: 3px; border: 2px solid #0c1735; border-top-width: 6px; }
.perk-note { font-size: 13px; color: var(--night-muted); padding: 10px 12px; background: var(--night-2); border-radius: 10px; transition: background-color .3s ease; }
.perk-note.flash { background: #2c4380; }
.garage-card { display: flex; flex-direction: column; gap: 14px; }
.garage-card canvas { width: 100%; height: auto; aspect-ratio: 1200 / 630; border-radius: 12px; display: block; background: var(--night-2); }
.garage-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.garage-stats div { padding: 10px 12px; background: var(--night-2); border-radius: 10px; }
.garage-stats dt { font-size: 12px; color: var(--night-muted); }
.garage-stats dd { font: 500 18px var(--mono); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 980px) {
  .garage { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .garage-stats { grid-template-columns: minmax(0, 1fr); }
  .follow-chip { top: 76px; }
}

/* Ticker: full detail of the newest transaction, so the city itself only needs pulses. */
.ticker {
  position: absolute; z-index: 6; right: 18px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px;
  max-width: calc(100% - 32px); padding: 6px 12px; font: 500 12px var(--body); color: #dce6f5; text-decoration: none;
  background: rgba(12, 22, 40, .86); border-radius: 99px; white-space: nowrap; overflow: hidden;
}
.ticker[hidden] { display: none; }
.ticker:hover { background: rgba(12, 22, 40, .95); }
.ticker-label { color: #8fa3c2; }
.ticker code { font: 500 12px var(--mono); color: #fff; }
.ticker-kind { color: #a7e6ff; overflow: hidden; text-overflow: ellipsis; }
.ticker-age { color: #8fa3c2; }
.ticker.tick code { animation: tick .5s ease; }
@keyframes tick { from { color: #38c6ff; } }
@media (max-width: 760px) {
  /* Phones: the ticker takes the bottom strip; "Tour the city" already invites scrolling. */
  .ticker { right: auto; left: 50%; transform: translateX(-50%); bottom: 12px; }
  .scroll-hint { display: none; }
  .has-stop .ticker { display: none; }
}
.static .ticker { display: none; }

/* Transaction marker colours: shared by the city pins, the ticker, the feed and the legend. */
[data-kind=call] { --kind: #38c6ff; }
[data-kind=transfer] { --kind: #5ee38a; }
[data-kind=token] { --kind: #ffb04a; }
[data-kind=create] { --kind: #b58cff; }
.ticker[data-kind] .live-dot { background: var(--kind); }
.feed-tag[data-kind] { color: var(--kind); background: color-mix(in srgb, var(--kind) 16%, #18284f); }
.mark-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 16px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--night-muted); }
.mark-legend li { display: inline-flex; align-items: center; gap: 8px; }
.mark-legend i {
  display: inline-grid; place-items: center; width: 24px; height: 24px; font: 700 11px/1 var(--mono); font-style: normal;
  color: var(--kind); background: #0c1628; border: 2px solid var(--kind); border-radius: 50%;
}

/* Ticker symbol next to the CA */
.ticker-tag { padding: 4px 8px; font: 600 12px var(--mono); color: #3a2a00; background: #ffd84a; border-radius: 7px; }
.ticker-tag[hidden] { display: none; }
[data-kind=holder] { --kind: #ffd84a; }

/* How to buy */
.token-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.token-stats[hidden] { display: none; }
.buy-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.buy-steps li { display: flex; flex-direction: column; gap: 8px; padding: 20px; background: var(--panel); border: 1px solid var(--panel-line); border-radius: 16px; }
.buy-steps h3 { font: 700 19px/1.2 var(--display); }
.buy-steps p { font-size: 14px; color: var(--night-muted); }
.buy-steps .btn { margin-top: auto; align-self: flex-start; min-height: 40px; font-size: 14px; }
.step-n { display: inline-grid; place-items: center; width: 30px; height: 30px; font: 600 14px var(--mono); color: #06202f; background: var(--cyan); border-radius: 50%; }
.add-note:empty { display: none; }
.trust { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; }
.trust-item { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; background: var(--panel); border: 1px solid var(--panel-line); border-radius: 14px; min-width: 0; }
.trust-item .ca-pill { align-self: flex-start; max-width: 100%; background: var(--night-2); }
.trust-value { font: 500 16px var(--body); }
.trust-link { font-size: 13px; color: #a7e6ff; text-decoration: none; }
.trust-link[hidden] { display: none; }
.trust-link:hover { text-decoration: underline; }
.risk-note { margin-top: 14px; }
.perk-note a { color: #ffd84a; font-weight: 600; }

@media (max-width: 980px) {
  .buy-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .buy-steps, .token-stats { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  /* Phones: scrolling already starts the tour, so the hero keeps two buttons. */
  #startTour { display: none; }
}

/* Pre-launch mode: token details stay hidden and people are warned about fake addresses. */
.prelaunch-only { display: none !important; }
.prelaunch .prelaunch-only { display: revert !important; }
.prelaunch .launch-only, .prelaunch .buy-steps, .prelaunch .token-stats, .prelaunch .trust, .prelaunch .risk-note { display: none !important; }
.prelaunch .prelaunch-panel { display: grid !important; }
.prelaunch-panel { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.prelaunch-panel .panel { display: flex; flex-direction: column; gap: 10px; }
.prelaunch-panel h3 { font: 700 19px/1.2 var(--display); }
.prelaunch-panel p { font-size: 14px; color: var(--night-muted); }
.prelaunch-panel .garage-actions { margin-top: auto; }
.scam-panel { border-color: #8a5a12; background: #2a2412; }
.scam-title { font: 700 17px var(--body) !important; color: #ffd84a !important; }
.scam-panel p:last-child { color: #e6dcc2; }
.scam-line {
  display: inline-block; margin: 12px auto 0; max-width: 100%; padding: 6px 14px; font-size: 13px; color: #5a3d00;
  background: #fff4d1; border: 1px solid #f0d58a; border-radius: 99px;
}
.prelaunch .scam-line { display: inline-block !important; }
.scam-line b { color: #3a2800; }
@media (max-width: 980px) {
  .prelaunch-panel { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .scam-line { font-size: 12px; border-radius: 12px; margin-top: 10px; }
}

/* Token pill in the hero: same height as the buttons beside it. Ticker capsule, short address, copy. */
.token-pill {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%; height: 46px; padding: 0 4px;
  background: #fff; border: 1px solid var(--line); border-radius: 11px;
}
.token-sym {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 11px 0 10px; flex: none;
  color: #fff; background: #0f1b2d; border-radius: 8px;
}
.token-sym b { font: 700 14px var(--mono); letter-spacing: .02em; }
.token-led { width: 8px; height: 8px; border-radius: 50%; background: #f2a516; box-shadow: 0 0 8px rgba(242, 165, 22, .8); }
.token-pill.is-live .token-led { background: #3ee06a; box-shadow: 0 0 8px rgba(62, 224, 106, .85); animation: dot 1.8s ease-in-out infinite; }
.token-ca { display: flex; align-items: center; gap: 8px; min-width: 0; }
.token-ca small { font: 600 11px var(--mono); letter-spacing: .1em; color: var(--muted); }
.token-ca .ca-text { font-size: 14px; }
.token-copy {
  position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none;
  color: var(--ink); background: var(--page-2); border: 0; border-radius: 8px; cursor: pointer;
}
.token-copy svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.token-copy:hover:not(:disabled) { background: #e1e9f2; }
.token-copy:disabled { cursor: default; opacity: .4; }
.token-copy.copied .ca-done { opacity: 1; }
/* Before launch there is nothing to copy, and the address slot carries the warning. */
.prelaunch .token-copy { display: none; }
.prelaunch .token-ca .ca-text { font-family: var(--body); color: var(--muted); }
.prelaunch .token-pill { padding-right: 14px; }
.hero-cta { align-items: center; }
@media (min-width: 641px) { .hero-cta .in-nav { display: none; } }
