@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=JetBrains+Mono:wght@400;500;700&display=swap");

:root {
  --bg: #040506;
  --panel: rgba(7, 8, 10, 0.95);
  --ink: #f6f8fb;
  --muted: rgba(246, 248, 251, 0.44);
  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.05);
  --cyan: #21d2ee;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: #030405;
  color: var(--ink);
  font-family: "Space Grotesk", system-ui, sans-serif;
}

body {
  padding: 18px;
}

.nav {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.nav a {
  color: rgba(246, 248, 251, 0.58);
  text-decoration: none;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 10px 12px;
  border: 1px solid var(--line);
}

.nav a.active,
.nav a:hover {
  color: var(--cyan);
  border-color: rgba(33, 210, 238, 0.2);
}

.frame {
  position: relative;
  width: 1440px;
  height: 820px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    radial-gradient(circle at 50% 54%, rgba(33, 210, 238, 0.09), transparent 18%),
    radial-gradient(circle at 50% 54%, rgba(255, 255, 255, 0.03), transparent 32%),
    var(--bg);
  background-size: 52px 52px, 52px 52px, auto, auto, auto;
}

.topbar {
  position: absolute;
  inset: 0 0 auto 0;
  height: 46px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(4, 5, 6, 0.78);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 6;
}

.brand,
.topmeta,
.toplink,
.small-copy,
.legend {
  font-family: "JetBrains Mono", monospace;
  text-transform: uppercase;
}

.brand,
.toplink {
  font-size: 11px;
  letter-spacing: 0.16em;
}

.brand {
  color: rgba(246, 248, 251, 0.58);
}

.topmeta {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--cyan);
}

.toplink {
  color: rgba(246, 248, 251, 0.42);
}

.small-copy {
  position: absolute;
  left: 26px;
  top: 68px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(246, 248, 251, 0.28);
}

.note {
  position: absolute;
  right: 26px;
  top: 68px;
  width: 330px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(246, 248, 251, 0.56);
  text-align: right;
}

.legend {
  position: absolute;
  left: 26px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(246, 248, 251, 0.42);
}

.legend strong {
  color: var(--cyan);
  font-weight: 500;
}

.map {
  position: absolute;
  inset: 46px 0 0 0;
}

.ring {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  pointer-events: none;
}

.line-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.connector {
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1.25;
  stroke-dasharray: 8 8;
}

.core {
  position: absolute;
  width: 132px;
  height: 132px;
  border-radius: 999px;
  border: 2px solid var(--cyan);
  background:
    linear-gradient(180deg, rgba(33, 210, 238, 0.16), rgba(33, 210, 238, 0.03)),
    rgba(7, 9, 11, 0.95);
  box-shadow: 0 0 34px rgba(33, 210, 238, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 4;
}

.core-copy {
  font-family: "JetBrains Mono", monospace;
  font-size: 7px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(246, 248, 251, 0.42);
  line-height: 1.25;
}

.core-value {
  margin-top: 10px;
  font-size: 18px;
  line-height: 0.95;
  font-weight: 700;
}

.core-value strong {
  display: block;
  font-size: 49px;
  letter-spacing: -0.08em;
}

.node-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.node {
  position: absolute;
  width: 214px;
  min-height: 102px;
  padding: 13px 15px 11px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  background: var(--panel);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.node-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.node-title {
  max-width: 160px;
  font-size: 11px;
  line-height: 1.12;
  font-weight: 700;
  text-transform: uppercase;
}

.node-level,
.node-meta {
  font-family: "JetBrains Mono", monospace;
}

.node-level {
  font-size: 11px;
  color: rgba(246, 248, 251, 0.6);
}

.node-bar {
  margin-top: 13px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
}

.node-bar span {
  display: block;
  height: 100%;
  background: rgba(255, 255, 255, 0.72);
}

.node-meta {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: rgba(246, 248, 251, 0.48);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.node-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  padding: 22px;
}

.index-grid {
  position: absolute;
  inset: 120px 26px 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card h2 {
  margin: 0 0 10px;
  font-size: 22px;
  text-transform: uppercase;
}

.card p {
  margin: 0 0 16px;
  line-height: 1.55;
  color: rgba(246, 248, 251, 0.58);
}

.card .meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(246, 248, 251, 0.42);
}

.card a {
  display: inline-block;
  margin-top: 18px;
  color: var(--cyan);
  text-decoration: none;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
