:root {
  color-scheme: dark;
  --bg: #080908;
  --panel: #141615;
  --panel2: #0f1110;
  --ink: #f4f7ef;
  --muted: #91a09a;
  --line: #2b302e;
  --green: #2fe083;
  --lime: #c6f006;
  --cyan: #72e4ff;
  --amber: #f2bd4a;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 20%, rgba(47,224,131,.09), transparent 34%),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 34px 34px, 34px 34px, auto;
  color: var(--ink);
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, monospace;
}
button, input, select { font: inherit; }
a { color: inherit; text-decoration: none; }
.app { max-width: 1220px; margin: 0 auto; padding: 0 18px 60px; }
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: grid; grid-template-columns: 270px 1fr 260px; align-items: center;
  min-height: 70px; border-bottom: 1px solid var(--line);
  background: rgba(8,9,8,.92); backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 14px; width: max-content; }
.brand img { width: 48px; height: 48px; object-fit: cover; }
.brand span { color: var(--muted); font-size: 11px; line-height: 1.2; letter-spacing: .22em; }
nav { display: flex; justify-content: center; gap: 28px; height: 70px; }
nav a { display: grid; place-items: center; border-bottom: 2px solid transparent; color: #a4a4a4; font-family: Inter, sans-serif; font-weight: 800; }
nav a.active, nav a:hover { color: var(--green); border-bottom-color: var(--green); }
.actions { display: flex; justify-content: end; gap: 10px; }
.actions button, .actions a, .filters button, #launchButton {
  min-height: 44px; border: 1px solid var(--line); background: transparent; color: var(--ink);
  cursor: pointer; padding: 0 16px; font-weight: 900;
}
.actions a { display: grid; place-items: center; width: 44px; padding: 0; }

.hero { display: grid; grid-template-columns: 1fr 360px; gap: 14px; padding: 34px 0 24px; border-bottom: 1px solid var(--line); }
.flowMap, .routePanel, .thesis, .marketCard, .launchPanel, .ticket, .docs { border: 1px solid var(--line); background: var(--panel); }
.flowMap { min-height: 620px; padding: 24px; position: relative; overflow: hidden; }
.mapHead { position: relative; z-index: 2; }
.green, .mapHead p, .thesis p:first-child, .launchPanel p, .docsIntro p {
  color: var(--green); font-size: 12px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1, .thesis h2, .sectionHeader h2, .launchPanel h2, .docsIntro h2 {
  margin: 0; font-size: clamp(32px, 5vw, 72px); line-height: .96; letter-spacing: .1em; text-transform: uppercase;
}
.network { position: absolute; inset: 110px 40px 34px; }
.network:before, .network:after {
  content: ""; position: absolute; inset: 10% 8%; border: 1px dashed rgba(47,224,131,.32); border-radius: 50%;
}
.network:after { inset: 24% 20%; transform: rotate(22deg); }
.node {
  position: absolute; min-width: 105px; min-height: 48px; border: 1px solid var(--line);
  background: #0b0d0c; color: var(--ink); cursor: pointer; font-weight: 900;
}
.node.active { border-color: var(--green); color: var(--green); box-shadow: 0 0 28px rgba(47,224,131,.2); }
.node:nth-child(1) { left: 7%; top: 18%; }
.node:nth-child(2) { right: 13%; top: 12%; }
.node:nth-child(3) { left: 17%; bottom: 18%; }
.node:nth-child(4) { right: 6%; bottom: 24%; }
.node:nth-child(6) { left: 42%; top: 2%; }
.node:nth-child(7) { left: 4%; bottom: 46%; }
.node:nth-child(8) { right: 30%; bottom: 4%; }
.node.center {
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 168px; height: 168px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47,224,131,.16), #080908 68%);
}
.node.center img { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; }
.node.center span { display: block; margin-top: 8px; }
.routePanel { padding: 18px; align-self: stretch; }
.panelHead, .routeStats span, .routeName span, .ticketGrid span, .pair span, .search span, .marketCard small {
  color: var(--muted); font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase;
}
.panelHead { display: flex; justify-content: space-between; margin-bottom: 14px; }
.panelHead b { color: var(--green); }
.routeName { min-height: 126px; padding: 14px; border: 1px solid var(--line); background: var(--panel2); display: grid; align-content: center; gap: 8px; }
.routeName strong { font-size: 24px; line-height: 1.2; color: var(--cyan); }
.routeStats { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin-top: 12px; }
.routeStats div, .ticketGrid div, .pair {
  min-height: 86px; padding: 13px; border: 1px solid var(--line); background: var(--panel2);
}
.routeStats b, .ticketGrid b, .pair strong { display: block; margin-top: 8px; font-size: 22px; }
.thesis {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 34px; padding: 28px 0 42px;
  border-left: 0; border-right: 0; background: transparent; border-bottom: 1px solid var(--line);
}
.thesis h2 { font-size: clamp(22px, 2.8vw, 34px); }
.thesis p:not(:first-child) { color: #cdd8dc; font-family: Inter, sans-serif; line-height: 1.55; }
.pipe { display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr auto; align-items: center; gap: 10px; }
.pipe span { padding: 12px 16px; border: 1px solid var(--line); color: var(--green); text-transform: uppercase; }
.pipe i { border-top: 1px dashed #555; }
.markets, .launchDesk, .docs { padding: 32px 0; border-bottom: 1px solid var(--line); }
.sectionHeader { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 16px; }
.search { display: grid; gap: 7px; width: 260px; margin-top: 12px; padding: 9px 12px; border: 1px solid var(--line); background: #0d0f0e; }
.search input { border: 0; outline: 0; background: transparent; color: var(--ink); }
.filters { display: flex; gap: 8px; }
.filters button.active { border-color: var(--green); color: var(--green); }
.marketGrid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.marketCard { min-height: 205px; padding: 18px; }
.marketTop { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.avatar { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #202520; color: var(--green); font-weight: 900; }
.marketTop b { display: block; color: var(--green); }
.marketTop span { display: block; margin-top: 6px; }
.cap { display: block; font-size: 30px; letter-spacing: .05em; }
.flowBar { height: 4px; margin: 14px 0 10px; background: repeating-linear-gradient(90deg, var(--cyan) 0 4px, transparent 4px 8px); }
.meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.launchDesk { display: grid; grid-template-columns: 1fr 360px; gap: 14px; }
.launchPanel, .ticket { padding: 18px; }
.formGrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 18px; }
.formGrid label { display: grid; gap: 7px; padding: 12px; border: 1px solid var(--line); background: var(--panel2); }
.formGrid span { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.formGrid input, .formGrid select { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 22px; font-weight: 900; }
.formGrid option { color: #111; }
#launchButton { grid-column: 1 / -1; border-color: var(--green); background: var(--green); color: #06100a; }
.ticketGrid { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; margin-top: 10px; }
.docs { display: grid; grid-template-columns: .35fr 1fr; gap: 20px; }
.docGrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.docGrid article { min-height: 170px; padding: 15px; border: 1px solid var(--line); background: var(--panel); }
.docGrid h3 { margin: 0 0 10px; color: var(--green); text-transform: uppercase; }
.docGrid p { margin: 0; color: #c8d2d8; font-family: Inter, sans-serif; font-size: 14px; line-height: 1.55; }
@media (max-width: 1120px) {
  .topbar, .hero, .thesis, .launchDesk, .docs { grid-template-columns: 1fr; }
  nav { justify-content: start; overflow-x: auto; }
  .actions { justify-content: start; }
  .marketGrid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 660px) {
  .app { padding-inline: 10px; }
  h1 { font-size: 34px; }
  .flowMap { min-height: 520px; }
  .node { min-width: 84px; font-size: 12px; }
  .node.center { width: 132px; height: 132px; }
  .sectionHeader, .filters { flex-direction: column; align-items: stretch; }
  .marketGrid, .formGrid, .ticketGrid, .docGrid { grid-template-columns: 1fr; }
}
