:root {
  --bg: #07090a;
  --bg-2: #0c0f10;
  --panel: #0f1314;
  --line: #1c2122;
  --line-2: #2a3132;
  --ink: #e6efe9;
  --mute: #7a8482;
  --dim: #4a5452;
  --accent: #00ff9c;
  --accent-dim: #0e3a28;
  --warn: #ffb84d;
  --red: #ff5c5c;
  --serif: 'Instrument Serif', ui-serif, Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --sans: 'Inter', system-ui, sans-serif;

  --d-pad: 28px;
  --d-gap: 28px;
  --d-section: 140px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
code { font-family: var(--mono); color: var(--accent); font-size: 0.9em; }
::selection { background: var(--accent); color: #000; }

.grid-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 80%);
}
.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

main { position: relative; z-index: 2; }

.topbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(7,9,10,0.72);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1320px; margin: 0 auto;
  padding: 14px 32px;
  display: flex; align-items: center; gap: 32px;
  font-family: var(--mono); font-size: 13px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.brand-mark {
  width: 18px; height: 18px; position: relative;
}
.brand-mark::before, .brand-mark::after {
  content: ''; position: absolute; inset: 0;
  border: 1.5px solid var(--accent);
}
.brand-mark::after { transform: rotate(45deg); border-color: var(--ink); opacity: 0.4; }
.brand-name { letter-spacing: -0.01em; }
.brand-name b { font-weight: 700; }
.brand-name span { color: var(--mute); }
.topnav { display: flex; gap: 22px; color: var(--mute); }
.topnav a:hover { color: var(--ink); }
.top-spacer { flex: 1; }
.top-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border: 1px solid var(--line-2);
  border-radius: 2px; color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.top-cta:hover { border-color: var(--accent); color: var(--accent); }
.top-cta.primary {
  background: var(--accent); color: #00130a; border-color: var(--accent);
  font-weight: 600;
}
.top-cta.primary:hover { background: #2effb1; color: #00130a; }
.star-count { color: var(--mute); }

.hero {
  max-width: 1320px; margin: 0 auto;
  padding: 80px 32px 60px;
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 64px; align-items: start;
}
.hero-eyebrow {
  font-family: var(--mono); font-size: 12px; color: var(--accent);
  letter-spacing: 0.08em; text-transform: uppercase;
  display: flex; align-items: center; gap: 10px; margin-bottom: 28px;
}
.hero-eyebrow::before {
  content: ''; width: 8px; height: 8px; background: var(--accent);
  box-shadow: 0 0 12px var(--accent); border-radius: 50%;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.hero h1 {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(44px, 5.4vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0 0 28px;
  color: var(--ink);
}
.hero h1 em {
  font-family: var(--serif); font-style: italic;
  font-weight: 400; color: var(--accent);
}
.hero h1 .strike {
  position: relative; color: var(--mute);
}
.hero h1 .strike::after {
  content:''; position: absolute; left: -2%; right: -2%; top: 52%;
  height: 4px; background: var(--red); transform: rotate(-2deg);
}
.hero p.lede {
  font-size: 18px; line-height: 1.55; color: var(--mute);
  max-width: 56ch; margin: 0 0 36px;
}
.hero p.lede b { color: var(--ink); font-weight: 500; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  padding: 14px 20px; border-radius: 2px; cursor: pointer;
  border: 1px solid var(--line-2); background: transparent; color: var(--ink);
  transition: all 0.15s ease;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.primary {
  background: var(--accent); color: #00130a; border-color: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
}
.btn.primary:hover { background: #2effb1; color: #00130a; box-shadow: 0 0 24px -6px var(--accent); }
.btn .arrow { transition: transform 0.15s; }
.btn:hover .arrow { transform: translateX(3px); }

.hero-meta {
  margin-top: 36px; display: flex; gap: 28px;
  font-family: var(--mono); font-size: 12px; color: var(--mute);
  flex-wrap: wrap;
}
.hero-meta b { color: var(--ink); font-weight: 500; }

.terminal {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.65;
  box-shadow: 0 30px 80px -30px rgba(0,255,156,0.08), 0 1px 0 rgba(255,255,255,0.03) inset;
}
.term-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.term-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.term-bar .term-title { margin-left: 6px; color: var(--mute); font-size: 11.5px; }
.term-bar .term-tag {
  margin-left: auto; padding: 2px 8px; border: 1px solid var(--line-2);
  border-radius: 2px; color: var(--accent); font-size: 10.5px;
}
.term-body { padding: 18px 20px; color: var(--ink); }
.term-line { display: flex; gap: 10px; }
.term-prompt { color: var(--accent); user-select: none; }
.term-cmd { color: var(--ink); }
.term-out { color: var(--mute); white-space: pre; font-family: var(--mono); }
.term-out .ok { color: var(--accent); }
.term-out .warn { color: var(--warn); }
.term-out .red { color: var(--red); }
.term-out .ink { color: var(--ink); }
.blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

section.block {
  max-width: 1320px; margin: 0 auto;
  padding: 0 32px var(--d-section);
}
.section-head {
  display: grid; grid-template-columns: 220px 1fr; gap: 48px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  margin-bottom: 48px;
}
.section-tag {
  font-family: var(--mono); font-size: 11.5px; color: var(--accent);
  letter-spacing: 0.12em; text-transform: uppercase;
}
.section-tag .num { color: var(--mute); }
.section-head h2 {
  margin: 0; font-weight: 300;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05; letter-spacing: -0.02em;
  max-width: 24ch;
}
.section-head h2 em { font-family: var(--serif); font-style: italic; color: var(--accent); font-weight: 400; }

.manifesto {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 80px 0;
}
.manifesto-inner { max-width: 1080px; margin: 0 auto; padding: 0 32px; }
.manifesto p {
  font-family: var(--sans); font-weight: 300;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.35; letter-spacing: -0.015em;
  color: var(--ink); margin: 0 0 24px;
  text-wrap: pretty;
}
.manifesto p .accent { color: var(--accent); }
.manifesto p em { font-family: var(--serif); font-style: italic; font-weight: 400; }
.manifesto p .mute { color: var(--mute); }
.manifesto-sig {
  margin-top: 36px; display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12px; color: var(--mute);
}
.manifesto-sig::before { content: ''; width: 24px; height: 1px; background: var(--accent); }

.how {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--d-gap);
}
.how-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: var(--d-pad);
  position: relative;
  border-radius: 4px;
}
.how-card .step {
  font-family: var(--mono); font-size: 11px; color: var(--mute);
  letter-spacing: 0.1em; margin-bottom: 14px;
}
.how-card .step b { color: var(--accent); font-weight: 500; }
.how-card h3 {
  margin: 0 0 10px; font-weight: 400; font-size: 22px;
  letter-spacing: -0.01em;
}
.how-card p { margin: 0; color: var(--mute); font-size: 14.5px; line-height: 1.55; }
.how-card .ascii {
  font-family: var(--mono); font-size: 11px; color: var(--accent);
  line-height: 1.4; white-space: pre;
  margin-top: 22px;
  padding: 14px; background: rgba(0,255,156,0.04);
  border: 1px dashed var(--line-2);
  overflow-x: auto;
}

.network {
  grid-column: 1 / -1;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.network-grid {
  position: absolute; inset: 0; opacity: 0.4; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 24px 24px;
}
.network-svg {
  width: 100%; height: 360px;
  position: relative; z-index: 1;
}
.network-meta {
  display: flex; gap: 22px; margin-top: 14px;
  font-family: var(--mono); font-size: 11px; color: var(--mute);
  flex-wrap: wrap;
}
.network-meta span { display: flex; align-items: center; gap: 8px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

.concepts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.concept {
  padding: var(--d-pad);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  position: relative;
  min-height: 220px;
}
.concept:nth-child(3n) { border-right: none; }
.concept:nth-last-child(-n+3) { border-bottom: none; }
.concept .ico {
  width: 32px; height: 32px; margin-bottom: 18px;
  color: var(--accent); display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--accent-dim);
  background: rgba(0,255,156,0.04);
}
.concept h4 { margin: 0 0 8px; font-size: 16px; font-weight: 500; letter-spacing: -0.005em; }
.concept h4 em { font-family: var(--serif); font-style: italic; font-weight: 400; }
.concept p { margin: 0; color: var(--mute); font-size: 13.5px; line-height: 1.55; }
.concept p code { font-size: 0.85em; color: var(--accent); }
.concept .num {
  position: absolute; top: 16px; right: 18px;
  font-family: var(--mono); font-size: 10.5px; color: var(--dim);
}

.preview-wrap {
  background: linear-gradient(180deg, transparent, rgba(0,255,156,0.03));
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
  position: relative;
}
.preview-frame {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 40px 100px -40px rgba(0,255,156,0.1);
}
.preview-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; border-bottom: 1px solid var(--line);
  background: var(--panel);
  font-family: var(--mono); font-size: 11.5px; color: var(--mute);
}
.preview-bar .url {
  flex: 1; padding: 4px 10px; background: var(--bg);
  border: 1px solid var(--line); border-radius: 2px;
  color: var(--ink);
}
.preview-bar .url b { color: var(--accent); }
.preview-body {
  display: grid; grid-template-columns: 200px 1fr;
  min-height: 540px;
}
.pv-side {
  background: var(--bg);
  border-right: 1px solid var(--line);
  padding: 18px 14px;
  font-family: var(--mono); font-size: 12px;
}
.pv-side .pv-section { color: var(--dim); font-size: 10.5px; letter-spacing: 0.1em; margin: 18px 0 8px; }
.pv-side .pv-section:first-child { margin-top: 0; }
.pv-side a {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 8px; color: var(--mute); border-radius: 2px;
}
.pv-side a.active { background: rgba(0,255,156,0.06); color: var(--accent); }
.pv-side a .pvd { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.6; }
.pv-main { padding: 22px 24px; }
.pv-main h5 {
  margin: 0 0 4px; font-size: 18px; font-weight: 500; letter-spacing: -0.01em;
}
.pv-main h5 + p { margin: 0 0 22px; color: var(--mute); font-size: 13px; }
.pv-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-bottom: 22px;
}
.pv-stat {
  border: 1px solid var(--line); padding: 14px;
  background: var(--panel); border-radius: 2px;
}
.pv-stat .lbl { font-family: var(--mono); font-size: 10.5px; color: var(--mute); letter-spacing: 0.08em; }
.pv-stat .val { font-family: var(--mono); font-size: 22px; margin-top: 6px; color: var(--ink); letter-spacing: -0.01em; }
.pv-stat .val .accent { color: var(--accent); }
.pv-stat .delta { font-family: var(--mono); font-size: 10.5px; color: var(--accent); margin-top: 2px; }
.pv-stat .delta.down { color: var(--red); }
.pv-table {
  border: 1px solid var(--line); border-radius: 2px; overflow: hidden;
  background: var(--panel);
}
.pv-th, .pv-tr {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.9fr 1fr 1fr 0.7fr;
  align-items: center;
  padding: 10px 14px;
  font-family: var(--mono); font-size: 12px;
}
.pv-th {
  color: var(--mute); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  border-bottom: 1px solid var(--line); background: var(--bg-2);
}
.pv-tr { border-bottom: 1px solid var(--line); color: var(--ink); }
.pv-tr:last-child { border-bottom: none; }
.pv-tr .node { display: flex; align-items: center; gap: 10px; }
.pv-tr .node .badge {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
  display: inline-block;
}
.pv-tr .node .badge.warn { background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.pv-tr .node .badge.off { background: var(--dim); box-shadow: none; }
.pv-tr .pill {
  display: inline-block; padding: 2px 8px; border-radius: 2px;
  border: 1px solid var(--line-2); font-size: 10.5px; color: var(--mute);
}
.pv-tr .pill.live { color: var(--accent); border-color: var(--accent-dim); background: rgba(0,255,156,0.04); }
.pv-tr .bar {
  height: 4px; background: var(--line); border-radius: 2px; overflow: hidden;
}
.pv-tr .bar > i { display: block; height: 100%; background: var(--accent); }

.preview-cta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 18px; padding: 14px 16px;
  border: 1px dashed var(--line-2); border-radius: 4px;
  font-family: var(--mono); font-size: 12px; color: var(--mute);
  gap: 16px;
  flex-wrap: wrap;
}
.preview-cta b { color: var(--ink); font-weight: 500; }

.codeblock {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.7;
}
.code-bar {
  display: flex; gap: 0; border-bottom: 1px solid var(--line); background: var(--bg-2);
}
.code-tab {
  padding: 10px 18px; font-size: 11.5px; color: var(--mute);
  border-right: 1px solid var(--line); cursor: pointer; user-select: none;
  border-radius: 0;
  font-family: var(--mono);
}
.code-tab:hover { color: var(--ink); }
.code-tab.active { color: var(--accent); background: var(--panel); }
.code-bar .right { margin-left: auto; padding: 10px 14px; color: var(--mute); font-size: 11px; }
.code-body { padding: 22px 24px; color: var(--ink); white-space: pre; overflow-x: auto; margin: 0; font-family: var(--mono); }
.code-body .k { color: var(--accent); }
.code-body .s { color: var(--warn); }
.code-body .c { color: var(--mute); font-style: italic; }
.code-body .p { color: #7aa2ff; }

.mcp-grid {
  display: grid; grid-template-columns: 1fr 0.9fr; gap: var(--d-gap);
}
.mcp-side h3 { margin: 0 0 10px; font-size: 22px; font-weight: 400; letter-spacing: -0.01em; }
.mcp-side p { color: var(--mute); margin: 0 0 22px; font-size: 14.5px; line-height: 1.6; }
.mcp-list { list-style: none; margin: 0; padding: 0; }
.mcp-list li {
  padding: 12px 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start;
  font-size: 14px; color: var(--ink);
}
.mcp-list li:last-child { border-bottom: 1px solid var(--line); }
.mcp-list li .check {
  width: 18px; height: 18px; border: 1px solid var(--accent);
  color: var(--accent); display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 10px;
}
.mcp-list li small { color: var(--mute); font-size: 12.5px; display: block; margin-top: 2px; }

.cta {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 64px 48px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(0,255,156,0.07), transparent 60%),
    var(--panel);
  text-align: left;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end;
}
.cta h2 {
  margin: 0; font-weight: 300;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.02; letter-spacing: -0.025em;
}
.cta h2 em { font-family: var(--serif); font-style: italic; color: var(--accent); font-weight: 400; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }
.cta-install {
  font-family: var(--mono); font-size: 13px;
  background: var(--bg); border: 1px solid var(--line-2);
  padding: 12px 14px; color: var(--ink);
  display: flex; align-items: center; gap: 10px;
}
.cta-install .copy {
  margin-left: auto; color: var(--mute); cursor: pointer;
  font-family: var(--mono); font-size: 12px;
}
.cta-install .copy:hover { color: var(--accent); }
.cta-install .copy.copied { color: var(--accent); }
.cta-platforms {
  font-family: var(--mono); font-size: 11px; color: var(--mute); margin-top: 6px;
}

footer {
  border-top: 1px solid var(--line);
  padding: 48px 32px;
  max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px;
  font-family: var(--mono); font-size: 12px; color: var(--mute);
}
footer h6 { margin: 0 0 12px; color: var(--ink); font-weight: 500; font-size: 12px; letter-spacing: 0.05em; }
footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
footer ul a:hover { color: var(--accent); }
footer .colophon { line-height: 1.7; max-width: 36ch; }
footer .colophon b { color: var(--ink); font-weight: 500; }
.foot-bottom {
  max-width: 1320px; margin: 0 auto;
  padding: 18px 32px 32px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11px; color: var(--dim);
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 8px;
}

.node-circle { fill: var(--bg); stroke: var(--accent); stroke-width: 1.4; }
.node-circle.warn { stroke: var(--warn); }
.node-circle.off { stroke: var(--dim); }
.node-label { font-family: var(--mono); font-size: 10.5px; fill: var(--mute); }
.node-glow { fill: var(--accent); opacity: 0.15; filter: blur(6px); }
.edge { stroke: var(--accent); stroke-width: 1; opacity: 0.35; stroke-dasharray: 3 4; }
.packet { fill: var(--accent); }
.central { stroke: var(--accent); fill: rgba(0,255,156,0.08); }

@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; }
  .how, .mcp-grid, .cta { grid-template-columns: 1fr; }
  .concepts { grid-template-columns: 1fr 1fr; }
  .concept:nth-child(3n) { border-right: 1px solid var(--line); }
  .concept:nth-child(2n) { border-right: none; }
  .pv-stats { grid-template-columns: repeat(2, 1fr); }
  .preview-body { grid-template-columns: 1fr; }
  .pv-side { display: none; }
  .pv-th, .pv-tr { grid-template-columns: 1.2fr 1fr 1fr; }
  .pv-th .col-hide, .pv-tr .col-hide { display: none; }
  footer { grid-template-columns: 1fr 1fr; }
  .section-head { grid-template-columns: 1fr; gap: 12px; }
  .topnav { display: none; }
}

@media (max-width: 640px) {
  .hero { padding: 48px 20px 40px; }
  section.block { padding: 0 20px var(--d-section); }
  .topbar-inner { padding: 12px 20px; gap: 16px; }
  .top-cta { display: none; }
  .top-cta.primary { display: inline-flex; padding: 6px 10px; font-size: 12px; }
  .concepts { grid-template-columns: 1fr; }
  .concept:nth-child(n) { border-right: none; }
  .pv-stats { grid-template-columns: 1fr; }
  .cta { padding: 32px 24px; }
  footer { grid-template-columns: 1fr; }
}
