:root {
  color-scheme: dark;
  --bg: #090a0c;
  --panel: #111318;
  --panel-2: #171a20;
  --line: #2a2f38;
  --text: #f4f1e8;
  --muted: #a3a9b5;
  --green: #b7ff4a;
  --violet: #9b7cff;
  --amber: #ffbf4d;
  --cyan: #4fd6ff;
  --red: #ff6d6d;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    var(--bg);
  background-size: 40px 40px;
  color: var(--text);
  font-family: Geist, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button {
  font: inherit;
}

.site {
  min-height: 100vh;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 10, 12, .86);
  backdrop-filter: blur(16px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border: 1px solid var(--green);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--green);
  box-shadow: inset 0 0 18px rgba(183,255,74,.18);
}

.links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.links a {
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 8px 10px;
  font-size: 14px;
}

.links a:hover,
.links a.active {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255,255,255,.04);
}

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 20px 64px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, .98fr);
  gap: 28px;
  align-items: stretch;
  min-height: calc(100vh - 138px);
}

.section {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--green);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
}

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

h1 {
  max-width: 760px;
  font-size: clamp(44px, 7vw, 88px);
  line-height: .94;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  font-size: 18px;
  line-height: 1.25;
}

.lede {
  max-width: 650px;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 16px;
  background: var(--panel);
  color: var(--text);
  font-weight: 600;
}

.btn.primary {
  background: var(--green);
  border-color: var(--green);
  color: #111;
}

.btn:hover {
  transform: translateY(-1px);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 34px;
}

.metric,
.panel,
.mini-card,
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17,19,24,.88);
}

.metric {
  padding: 16px;
}

.metric strong {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 22px;
  color: var(--green);
}

.metric span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.market-console {
  min-height: 520px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.console-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  font-family: "IBM Plex Mono", monospace;
  color: var(--muted);
  font-size: 12px;
}

.status {
  color: var(--green);
}

.signal-map {
  width: 100%;
  min-height: 240px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0d0f13;
}

.ticker {
  display: grid;
  gap: 8px;
}

.ticker-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.025);
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
}

.up {
  color: var(--green);
}

.down {
  color: var(--red);
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 14px;
}

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

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

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

.mini-card,
.panel {
  padding: 18px;
}

.mini-card p,
.panel p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.55;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 9px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
}

.split-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 18px;
}

.split-head p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.55;
}

.flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.flow-step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  min-height: 124px;
  background: rgba(255,255,255,.025);
}

.flow-step b {
  display: block;
  color: var(--amber);
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
}

.flow-step span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 14px;
  text-align: left;
}

th {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

td {
  color: var(--text);
}

.mono {
  font-family: "IBM Plex Mono", monospace;
}

.accent-green { color: var(--green); }
.accent-violet { color: var(--violet); }
.accent-amber { color: var(--amber); }
.accent-cyan { color: var(--cyan); }

.quote {
  border-left: 2px solid var(--green);
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 24px 20px 34px;
  color: var(--muted);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

@media (max-width: 940px) {
  .hero,
  .grid-2,
  .grid-3,
  .grid-4,
  .flow {
    grid-template-columns: 1fr;
  }

  .market-console {
    min-height: 420px;
  }
}

@media (max-width: 720px) {
  .nav-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .links {
    justify-content: flex-start;
  }

  .links a {
    padding: 7px 8px;
    font-size: 13px;
  }

  .page {
    padding-inline: 14px;
  }

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

  .split-head {
    display: block;
  }

  .split-head p {
    margin-top: 12px;
  }
}
