:root {
  --bg: #fdfaf4;
  --ink: #0c0c0f;
  --red: #e23a3a;
  --yellow: #ffc857;
  --blue: #1f6feb;
  --muted: #3a3a46;
  --panel: rgba(255, 255, 255, 0.92);
  --grid: rgba(12, 12, 15, 0.06);
  --shadow: 0 16px 48px rgba(12, 12, 15, 0.14);
  --mono: 'Space Mono', monospace;
  --grotesk: 'Space Grotesk', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 200, 87, 0.06), transparent 26%),
              radial-gradient(circle at 86% 10%, rgba(31, 111, 235, 0.08), transparent 32%),
              var(--bg);
  color: var(--ink);
  font-family: var(--grotesk);
  min-height: 100vh;
  line-height: 1.6;
}

.page-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 20px 80px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.86));
  box-shadow: var(--shadow);
}

.logo {
  font-size: 20px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo .mark {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--yellow));
  box-shadow: 0 10px 30px rgba(226, 58, 58, 0.26);
}

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

.nav a {
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--ink);
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 4px 4px 0 var(--ink);
}

.nav a:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.hero {
  margin: 36px 0 30px;
  padding: 26px;
  border-radius: 18px;
  border: 1.5px solid var(--ink);
  background: linear-gradient(135deg, rgba(226, 58, 58, 0.14), rgba(31, 111, 235, 0.14)), var(--panel);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.06) 1px, transparent 1px),
              linear-gradient(0deg, rgba(0, 0, 0, 0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.4;
  pointer-events: none;
}

.hero h1 {
  font-size: 32px;
  margin: 0 0 10px;
}

.hero p {
  max-width: 780px;
  font-size: 18px;
}

.badges {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.badge {
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 700;
  border: 1px solid var(--ink);
  background: #fff;
  box-shadow: 3px 3px 0 var(--ink);
}

.layout-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

@media (max-width: 1000px) {
  .layout-grid { grid-template-columns: 1fr; }
  .nav { justify-content: flex-start; }
}

.panel {
  position: relative;
  background: var(--panel);
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel h3 {
  margin: 0 0 6px;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel p { margin: 6px 0 12px; }

.grid-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--grid) 1px, transparent 1px),
              linear-gradient(0deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.node-map {
  position: relative;
  min-height: 320px;
  background: linear-gradient(135deg, rgba(255, 200, 87, 0.16), rgba(31, 111, 235, 0.16));
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  overflow: hidden;
}

.node-map .lines {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.24), transparent 36%),
              radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.20), transparent 30%);
  mix-blend-mode: screen;
}

.node {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 200px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.node:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.16);
}

.node .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.node .tag .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.14);
}

.node .meta {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}

.connector {
  position: absolute;
  border: 2px solid rgba(12, 12, 15, 0.18);
  border-radius: 18px;
  box-shadow: 0 14px 22px rgba(0, 0, 0, 0.14);
  background: rgba(255, 255, 255, 0.6);
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.24));
}

.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.timeline .step {
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.timeline .step .label {
  font-family: var(--mono);
  color: var(--muted);
  font-size: 12px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  padding: 6px 10px;
  border-radius: 20px;
  border: 1px solid var(--ink);
  background: #fff;
  font-weight: 600;
  font-size: 13px;
  box-shadow: 3px 3px 0 var(--ink);
}

.ops-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.pill-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.op-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.86));
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  min-height: 180px;
  position: relative;
}

.op-card ul {
  padding-left: 20px;
  margin: 8px 0 0;
}

.op-card li { margin-bottom: 4px; }

.ops-dual {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 14px;
  margin-top: 18px;
}

@media (max-width: 1000px) {
  .ops-dual { grid-template-columns: 1fr; }
}

.ops-panel {
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(226, 58, 58, 0.08), rgba(255, 200, 87, 0.14));
  box-shadow: var(--shadow);
}

.micro-card {
  margin-top: 12px;
  border: 1.5px dashed var(--ink);
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}

.micro-lines {
  display: grid;
  gap: 4px;
  font-family: var(--mono);
  font-size: 13px;
}

.whitepaper-shell {
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 12px 14px;
}

.whitepaper-shell details {
  border: 1px solid var(--grid);
  border-radius: 10px;
  padding: 10px;
}

.whitepaper-shell summary {
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.whitepaper {
  margin-top: 10px;
  background: linear-gradient(90deg, rgba(31, 111, 235, 0.06) 1px, transparent 1px),
              linear-gradient(0deg, rgba(31, 111, 235, 0.06) 1px, transparent 1px);
  background-size: 18px 18px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--grid);
}

.whitepaper h4 { margin: 12px 0 6px; }

.whitepaper ul { margin: 6px 0 12px 18px; }

.console {
  background: #0c0c10;
  color: #daf0ff;
  border-radius: 14px;
  padding: 16px;
  border: 1.5px solid #1f6feb;
  box-shadow: 0 14px 40px rgba(31, 111, 235, 0.3);
  font-family: var(--mono);
}

.console h4 {
  margin: 0 0 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.console pre {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.4;
}

.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.button {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--ink);
  background: linear-gradient(180deg, #fff, #f3f3f7);
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.legend .item {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px dashed var(--ink);
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
}

.legend .swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.16);
}

.radio-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--ink);
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
}

.radio input {
  accent-color: var(--red);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.module {
  padding: 14px;
  border-radius: 12px;
  border: 1.5px solid var(--ink);
  background: #fff;
  box-shadow: var(--shadow);
}

.module h4 {
  margin: 0 0 6px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.module .meta {
  color: var(--muted);
  font-family: var(--mono);
}

.footer {
  margin-top: 32px;
  padding: 20px 16px;
  border-radius: 16px;
  border: 1.5px solid var(--ink);
  background: linear-gradient(90deg, rgba(226, 58, 58, 0.1), rgba(31, 111, 235, 0.1));
  box-shadow: var(--shadow);
}

.subtle-grid {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--grid) 1px, transparent 1px),
              linear-gradient(0deg, var(--grid) 1px, transparent 1px);
  background-size: 22px 22px;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.spark {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 6px rgba(255, 200, 87, 0.24), 0 0 0 12px rgba(31, 111, 235, 0.16);
  opacity: 0.8;
  animation: drift 9s ease-in-out infinite;
}

@keyframes drift {
  0% { transform: translate(0, 0); opacity: 0.9; }
  50% { transform: translate(14px, -10px); opacity: 0.5; }
  100% { transform: translate(-8px, 12px); opacity: 0.9; }
}
