:root {
  --green: #43d977;
  --green-2: #2fc862;
  --cream: #f3e9ce;
  --cream-2: #ece0bd;
  --cream-3: #e3d4a6;
  --black: #0a0a0a;
  --muted: #6b6b6b;
  --line: #0a0a0a;
  --shadow: 6px 6px 0 var(--black);
  --shadow-sm: 3px 3px 0 var(--black);
  --shadow-lg: 10px 10px 0 var(--black);
  --radius: 14px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background: var(--green);
  color: var(--black);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  cursor: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}
input, textarea { user-select: text; -webkit-user-select: text; }
a, button, input { cursor: none; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { padding: 0; margin: 0; list-style: none; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; position: relative; }
.mono { font-family: 'JetBrains Mono', monospace; }

/* ===== Window primitive (Mac-style cream panel) ===== */
.window {
  background: var(--cream);
  border: 3px solid var(--black);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 3px solid var(--black);
  background: var(--cream-2);
}
.dots { display: flex; gap: 6px; }
.dot {
  width: 12px; height: 12px;
  border: 2px solid var(--black);
  border-radius: 50%;
  background: var(--cream);
}
.dot.r { background: #ff6b5a; }
.dot.y { background: #ffd24d; }
.dot.g { background: var(--green); }
.window-title {
  flex: 1;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.window-icons {
  display: flex; gap: 8px; align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}
.window-body { padding: 28px; }

/* ===== Decorative desktop icons floating in green bg ===== */
.desktop-icon {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--black);
  font-family: 'JetBrains Mono', monospace;
  user-select: none;
  pointer-events: none;
}
.desktop-icon svg { width: 56px; height: 56px; }

/* ===== NAV ===== */
.nav {
  position: sticky; top: 16px; z-index: 50;
  margin: 16px 24px 0;
}
.nav-window {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--cream);
  border: 3px solid var(--black);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  max-width: 1180px;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.04em;
}
.logo-mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: #1f3a1f;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--black);
  overflow: hidden;
}
.logo-mark img, .logo-mark svg { width: 100%; height: 100%; display: block; object-fit: cover; }
.logo-tag {
  font-size: 11px; padding: 2px 8px;
  border: 2px solid var(--black); border-radius: 999px;
  font-family: 'JetBrains Mono', monospace; font-weight: 600;
}
.nav-links { display: flex; gap: 22px; font-size: 14px; font-weight: 500; }
.nav-links a:hover { text-decoration: underline; text-decoration-thickness: 2px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px;
  border: 3px solid var(--black);
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  background: var(--cream);
  color: var(--black);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  text-align: center;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--black); }
.btn-primary { background: var(--black); color: var(--green); }
.btn-accent  { background: var(--green); color: var(--black); }
.btn-lg { padding: 16px 26px; font-size: 15px; }

/* ===== HERO ===== */
.hero { padding: 60px 0 80px; position: relative; }

.hero-window { position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px 32px;
}
.badge {
  display: inline-block;
  padding: 6px 14px;
  border: 2px solid var(--black);
  border-radius: 999px;
  background: var(--green);
  font-size: 12px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  margin: 0 0 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero h1 .hl {
  background: var(--green);
  padding: 0 12px;
  display: inline-block;
  border: 3px solid var(--black);
  box-shadow: var(--shadow-sm);
  margin: 4px 0;
}
.lede {
  font-size: 17px;
  color: var(--black);
  margin: 0 0 28px;
  max-width: 540px;
}
.lede b { font-weight: 700; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  border-top: 3px dashed var(--black);
  padding-top: 20px;
}
.metric {
  background: var(--cream-2);
  border: 2px solid var(--black);
  border-radius: var(--radius-sm);
  padding: 12px;
}
.metric-num { font-size: 20px; font-weight: 800; }
.metric-label { font-size: 11px; font-family: 'JetBrains Mono', monospace; opacity: 0.7; margin-top: 2px; }

/* hero illustration */
.hero-art {
  position: relative;
  background: var(--cream-2);
  border: 3px solid var(--black);
  border-radius: var(--radius);
  padding: 24px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art-inner { width: 100%; height: 100%; position: relative; }

.coin {
  position: absolute;
  border: 3px solid var(--black);
  border-radius: 50%;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
  animation: bob 4s ease-in-out infinite;
}
.coin.btc {
  width: 90px; height: 90px;
  top: 10%; left: 8%;
  background: #ffb547;
  font-size: 36px;
}
.coin.usdt {
  width: 100px; height: 100px;
  bottom: 8%; right: 6%;
  background: var(--green);
  font-size: 16px;
  animation-delay: 1.5s;
}
.coin.lightning {
  width: 70px; height: 70px;
  top: 12%; right: 12%;
  background: #ffe16b;
  font-size: 30px;
  animation-delay: 2.5s;
}
.core-disk {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 160px; height: 160px;
  border-radius: 50%;
  background: var(--black);
  color: var(--green);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  box-shadow: var(--shadow);
  border: 3px solid var(--black);
  text-align: center;
  padding: 0;
  flex-shrink: 0;
}
.core-u { font-size: 50px; font-weight: 800; line-height: 1; }
.core-mark {
  width: 100px; height: 100px;
  display: block;
  border-radius: 14px;
  object-fit: cover;
}
.core-tag-big {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.14em;
  color: var(--green);
  line-height: 1;
}
.core-tag-sm {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--cream);
  margin-top: 8px;
  opacity: 0.65;
  text-transform: uppercase;
  white-space: nowrap;
}
.core-tag { font-size: 10px; letter-spacing: 0.2em; font-family: 'JetBrains Mono', monospace; margin-top: 4px; }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-8px) rotate(3deg); }
}
.dot-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(var(--black) 1.2px, transparent 1.4px);
  background-size: 14px 14px;
  opacity: 0.18;
  border-radius: 10px;
  pointer-events: none;
}

/* ===== SECTIONS ===== */
.section { padding: 60px 0; position: relative; }
.section-head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.eyebrow {
  display: inline-block;
  padding: 4px 12px;
  background: var(--black);
  color: var(--green);
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
  border-radius: 4px;
}
.section h2 {
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  font-weight: 800;
  line-height: 1.1;
}
.section h2 .hl {
  background: var(--cream);
  padding: 0 10px;
  border: 3px solid var(--black);
  box-shadow: var(--shadow-sm);
  display: inline-block;
}
.section-sub { font-size: 16px; max-width: 580px; margin: 0 auto; }

/* ===== CARDS ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--cream);
  border: 3px solid var(--black);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow); }
.card-icon {
  width: 48px; height: 48px;
  border: 2.5px solid var(--black);
  border-radius: 10px;
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  font-size: 22px;
}
.card h3 { margin: 0 0 6px; font-size: 17px; font-weight: 800; }
.card p { margin: 0; font-size: 14px; color: #2a2a2a; }

/* ===== ARCHITECTURE STACK ===== */
.stack-window { max-width: 820px; margin: 0 auto; }
.stack { display: flex; flex-direction: column; gap: 0; padding: 0; }
.layer {
  text-align: left;
  width: 100%;
  padding: 16px 20px;
  border: none;
  border-bottom: 3px solid var(--black);
  background: var(--cream);
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 16px;
  align-items: center;
  cursor: pointer;
  transition: background 0.15s ease;
  font-family: inherit;
}
.layer:last-of-type { border-bottom: none; }
.layer:hover { background: var(--cream-2); }
.layer.active { background: var(--green); }
.layer-tag {
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  letter-spacing: 0.15em;
  background: var(--black);
  color: var(--cream);
  padding: 4px 8px;
  border-radius: 4px;
  text-align: center;
}
.layer-title { font-size: 16px; font-weight: 800; margin-bottom: 2px; }
.layer-desc { font-size: 13px; color: #2a2a2a; }
.layer-arrow {
  width: 28px; height: 28px;
  border: 2px solid var(--black);
  border-radius: 50%;
  background: var(--cream-2);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}
.layer.active .layer-arrow { background: var(--black); color: var(--green); }

.layer-detail {
  margin-top: 22px;
  background: var(--cream);
  border: 3px solid var(--black);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 0;
  overflow: hidden;
}
.layer-detail .window-bar { background: var(--green); }
.layer-detail-body { padding: 22px 24px; }
.layer-detail h4 { margin: 0 0 8px; font-size: 16px; font-weight: 800; }
.layer-detail p { margin: 0; font-size: 14px; }

/* ===== DEMO (Slack-style chat) ===== */
.demo-window { max-width: 1100px; margin: 0 auto; }
.demo {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 480px;
}
.demo-side {
  background: var(--cream-2);
  border-right: 3px solid var(--black);
  padding: 18px 14px;
  font-size: 14px;
}
.demo-side-title {
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 6px;
  border-bottom: 2px dashed var(--black);
  margin-bottom: 10px;
}
.channel-list { display: flex; flex-direction: column; gap: 2px; padding: 6px 0; }
.channel {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  padding: 6px 8px;
  border-radius: 6px;
  color: #5a5a5a;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  border-left: 3px solid transparent;
}
.channel.active {
  background: var(--black);
  color: var(--green);
  border-left-color: var(--green);
}
.channel.done { color: var(--black); }

.demo-form-block {
  margin-top: 18px;
  border-top: 2px dashed var(--black);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.demo-form-block label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.demo-form-block input {
  background: var(--cream);
  border: 2px solid var(--black);
  border-radius: 6px;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  outline: none;
}
.demo-form-block input:focus { background: var(--green); }
.fee-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  background: var(--cream);
  border: 2px solid var(--black);
  border-radius: 6px;
  padding: 8px 10px;
}
.fee-tag {
  background: var(--green);
  border: 2px solid var(--black);
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 999px;
  font-weight: 700;
}

.demo-main { background: var(--cream); display: flex; flex-direction: column; }
.demo-header {
  padding: 12px 20px;
  border-bottom: 3px solid var(--black);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--cream);
}
.demo-header-title {
  font-weight: 800;
  font-size: 15px;
}
.demo-header-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.member-pill {
  border: 2px solid var(--black);
  background: var(--cream-2);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.demo-stream {
  flex: 1;
  padding: 18px 20px;
  overflow-y: auto;
  max-height: 360px;
  min-height: 280px;
  display: none;
  flex-direction: column;
  gap: 16px;
}
.stream-empty {
  font-style: italic;
  font-family: 'JetBrains Mono', monospace;
  color: #6b6b6b;
  font-size: 13px;
  text-align: center;
  margin: auto 0;
}
.msg {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  animation: msgIn 0.35s ease;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.msg-avatar {
  width: 38px; height: 38px;
  border-radius: 8px;
  border: 2px solid var(--black);
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 16px;
}
.msg-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 2px;
}
.msg-author { font-weight: 800; font-size: 14px; }
.msg-time { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #6b6b6b; }
.msg-body { font-size: 14px; line-height: 1.5; }
.msg-attach {
  margin-top: 8px;
  border: 2px solid var(--black);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--cream-2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}
.msg.ok .msg-avatar { background: var(--black); color: var(--green); }
.msg.ok .msg-body::after { content: ' ✓'; font-weight: 800; }

.demo-foot {
  border-top: 3px solid var(--black);
  padding: 14px 20px;
  display: flex;
  gap: 10px;
  background: var(--cream-2);
}
.demo-input {
  flex: 1;
  background: var(--cream);
  border: 2px solid var(--black);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: inherit;
  font-weight: 500;
  color: #6b6b6b;
}

/* ===== COMPARE ===== */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.compare-col { padding: 0; }
.compare-col.bad .window-bar { background: #ffb6ad; }
.compare-col.good .window-bar { background: var(--green); }
.compare-list { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.compare-list li {
  display: flex; gap: 10px;
  padding: 8px 10px;
  border: 2px solid var(--black);
  border-radius: 8px;
  background: var(--cream-2);
  font-size: 14px;
  font-weight: 500;
}
.compare-col.good .compare-list li { background: var(--cream); }
.tick {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border: 2px solid var(--black);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 12px;
  background: var(--cream);
}
.compare-col.bad .tick { background: #ff6b5a; color: var(--cream); }
.compare-col.good .tick { background: var(--green); }

/* ===== CASES ===== */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case {
  background: var(--cream);
  border: 3px solid var(--black);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.case:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow); }
.case-tab {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-bottom: 3px solid var(--black);
  background: var(--cream-2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
}
.case-body { padding: 20px 22px; }
.case-emoji {
  font-size: 32px;
  margin-bottom: 8px;
  display: inline-block;
}
.case h3 { margin: 0 0 6px; font-size: 18px; font-weight: 800; }
.case p { margin: 0; font-size: 14px; color: #2a2a2a; }

/* ===== CTA ===== */
.cta { padding: 60px 0 100px; }
.cta-window { max-width: 820px; margin: 0 auto; text-align: center; }
.cta-window .window-body { padding: 40px 32px; }
.cta h2 { font-size: clamp(26px, 3.5vw, 38px); margin: 0 0 12px; font-weight: 800; }
.cta p { margin: 0 0 24px; }
.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== FOOTER ===== */
.footer { padding: 30px 0 50px; }
.footer-window {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 22px;
}
.footer-window > div { font-size: 13px; font-family: 'JetBrains Mono', monospace; }
.footer-links { display: flex; gap: 16px; font-weight: 700; }
.footer-links a:hover { background: var(--green); padding: 0 4px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-3, .cases { grid-template-columns: 1fr 1fr; }
  .compare { grid-template-columns: 1fr; }
  .demo { grid-template-columns: 1fr; }
  .demo-side { border-right: none; border-bottom: 3px solid var(--black); }
  .nav-links { display: none; }
  .desktop-icon { display: none; }
}
@media (max-width: 620px) {
  .grid-3, .cases { grid-template-columns: 1fr; }
  .hero-metrics { grid-template-columns: 1fr 1fr; }
  .layer { grid-template-columns: 70px 1fr 32px; gap: 10px; padding: 14px; }
  .section { padding: 40px 0; }
  .window-body { padding: 22px; }
  .hero-grid { padding: 24px 18px; }
  .footer-window { flex-direction: column; gap: 8px; text-align: center; }
}


/* ===== Custom cursor ===== */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
}
.cursor-dot {
  width: 8px; height: 8px;
  background: var(--black);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 2.5px solid var(--black);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(67, 217, 119, 0.0);
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
body.cursor-hover .cursor-dot {
  width: 0; height: 0;
}
body.cursor-hover .cursor-ring {
  width: 56px; height: 56px;
  background: var(--green);
  mix-blend-mode: multiply;
}
body.cursor-down .cursor-ring {
  width: 24px; height: 24px;
}

#trailCanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
}

/* hide custom cursor on touch / no fine pointer */
@media (hover: none), (pointer: coarse) {
  body { cursor: auto; user-select: text; }
  a, button, input { cursor: auto; }
  .cursor-dot, .cursor-ring, #trailCanvas { display: none !important; }
}

/* ===== Address tabs (form) ===== */
.addr-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 4px;
}
.addr-tab {
  flex: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 4px;
  border: 2px solid var(--black);
  border-radius: 6px;
  background: var(--cream);
  color: var(--black);
}
.addr-tab.active {
  background: var(--black);
  color: var(--green);
}
.addr-hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #6b6b6b;
  margin-top: 4px;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}
.demo-form-block input { word-break: break-all; }


/* ===== Network map (SVG) ===== */
.map-wrap {
  background: var(--cream-2);
  display: flex;
  flex-direction: column;
}
.map-svg {
  width: 100%;
  height: auto;
  display: block;
  background:
    radial-gradient(circle at 50% 50%, var(--cream) 0%, var(--cream-2) 100%);
  border-bottom: 3px solid var(--black);
}

/* nodes */
.node .node-bg {
  fill: var(--cream);
  stroke: var(--black);
  stroke-width: 2.5;
  filter: drop-shadow(3px 3px 0 var(--black));
  transition: fill 0.2s ease;
}
.node .node-bar {
  fill: var(--cream-2);
  stroke: var(--black);
  stroke-width: 2.5;
}
.node .node-bar-clip { fill: var(--cream-2); }
.node .td.r { fill: #ff6b5a; stroke: var(--black); stroke-width: 1; }
.node .td.y { fill: #ffd24d; stroke: var(--black); stroke-width: 1; }
.node .td.g { fill: var(--green); stroke: var(--black); stroke-width: 1; }
.node .node-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 800;
  fill: var(--black);
  text-anchor: middle;
}
.node .node-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  fill: #6b6b6b;
  text-anchor: middle;
}

.node.active .node-bg {
  fill: var(--green);
  filter: drop-shadow(3px 3px 0 var(--black)) drop-shadow(0 0 12px rgba(67, 217, 119, 0.9));
  animation: nodePulse 0.7s ease;
}
.node.active .node-bar { fill: var(--black); }
.node.done .node-bg { fill: #d8f5e2; }
@keyframes nodePulse {
  0%   { transform-origin: center; }
  30%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}
.node { transition: transform 0.25s ease; transform-box: fill-box; transform-origin: center; }

/* wires */
.wire {
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 6 6;
  opacity: 0.55;
  transition: opacity 0.2s, stroke 0.2s, stroke-dasharray 0.2s;
}
.wire.lit {
  stroke: #0a0a0a;
  opacity: 1;
  stroke-dasharray: 8 6;
  stroke-width: 4;
  animation: wireFlow 0.7s linear infinite;
  filter: drop-shadow(0 0 6px rgba(67, 217, 119, 0.9));
}
.wire.done {
  opacity: 0.85;
  stroke-dasharray: 0;
  stroke: #0a0a0a;
  stroke-width: 3;
}
@keyframes wireFlow {
  to { stroke-dashoffset: -28; }
}

.wire-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  fill: var(--black);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.wire-label.lit { opacity: 1; }

/* moving packet */
.packet {
  opacity: 0;
  transform: translate(110px, 230px);
  filter: drop-shadow(2px 2px 0 var(--black));
  transition: opacity 0.2s ease;
}
.packet.live { opacity: 1; }
.packet.live circle { animation: packetSpin 0.8s linear infinite; transform-origin: center; }
@keyframes packetSpin {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* trace log */
.trace {
  background: #0a0a0a;
  color: var(--cream);
  padding: 14px 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  min-height: 90px;
  max-height: 130px;
  overflow-y: auto;
}
.trace-empty { color: #6b6b6b; font-style: italic; }
.trace-line {
  display: flex; gap: 10px; padding: 2px 0;
  animation: traceIn 0.25s ease;
}
.trace-line .t { color: var(--green); flex-shrink: 0; min-width: 56px; }
.trace-line .tag { color: #ffd24d; font-weight: 700; flex-shrink: 0; min-width: 90px; }
.trace-line.ok .tag { color: var(--green); }
@keyframes traceIn { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: translateX(0); } }

/* sidebar status dots */
.channel { position: relative; }
.ch-dot {
  width: 8px; height: 8px; border-radius: 50%;
  border: 1.5px solid var(--black);
  background: var(--cream);
  display: inline-block;
}
.channel.active .ch-dot {
  background: var(--green);
  box-shadow: 0 0 0 2px rgba(67, 217, 119, 0.4);
  animation: chPulse 0.8s ease infinite;
}
.channel.done .ch-dot { background: var(--green); }
@keyframes chPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.4); }
}

/* status pill */
.member-pill.live {
  background: var(--green);
  animation: liveBlink 0.8s ease infinite;
}
@keyframes liveBlink {
  0%, 100% { background: var(--green); }
  50%      { background: var(--cream); }
}

@media (max-width: 980px) {
  .map-svg { min-height: 360px; }
}
@media (max-width: 620px) {
  .map-svg { min-height: 280px; }
  .node .node-title { font-size: 12px; }
  .node .node-sub { font-size: 9px; }
}
