:root {
  --bg: #05050f;
  --bg-2: #0a0a1a;
  --fg: #f0f0ff;
  --fg-2: #9898b8;
  --violet: #9945FF;
  --violet-dim: rgba(153, 69, 255, 0.15);
  --cyan: #00D9C0;
  --cyan-dim: rgba(0, 217, 192, 0.12);
  --border: rgba(255,255,255,0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Fira Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
  background: rgba(5,5,15,0.92);
  backdrop-filter: blur(12px);
}
.nav-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.logo-bracket { color: var(--violet); }
.nav-tag { font-size: 0.72rem; color: var(--fg-2); letter-spacing: 0.08em; text-transform: uppercase; }

/* ── HERO ── */
.hero {
  min-height: calc(100vh - 65px);
  display: flex;
  align-items: center;
  padding: 4rem 2rem 3rem;
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--violet);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.hero-headline {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 1.75rem;
}
.hero-sub {
  font-size: 1rem;
  color: var(--fg-2);
  max-width: 420px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
}
.stat { display: flex; flex-direction: column; padding: 0 1.5rem; }
.stat:first-child { padding-left: 0; }
.stat-value { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.5rem; color: var(--fg); }
.stat-label { font-size: 0.72rem; color: var(--fg-2); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.15rem; }
.stat-sep { width: 1px; height: 36px; background: var(--border); flex-shrink: 0; }

/* ── HERO VIZ ── */
.hero-viz { display: flex; align-items: center; justify-content: center; }
.viz-container {
  position: relative;
  width: 420px;
  height: 420px;
}
.node-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80px; height: 80px;
  display: flex; align-items: center; justify-content: center;
}
.node-core {
  width: 28px; height: 28px;
  background: var(--violet);
  border-radius: 50%;
  box-shadow: 0 0 30px var(--violet), 0 0 60px rgba(153,69,255,0.4);
  animation: core-pulse 2.5s ease-in-out infinite;
}
.node-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(153,69,255,0.3);
  animation: ring-expand 3s ease-out infinite;
}
.node-ring-1 { width: 70px; height: 70px; animation-delay: 0s; }
.node-ring-2 { width: 110px; height: 110px; animation-delay: 0.8s; }
.node-label {
  position: absolute;
  top: -28px;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--violet);
  font-weight: 600;
}
@keyframes core-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 30px var(--violet), 0 0 60px rgba(153,69,255,0.4); }
  50% { transform: scale(1.15); box-shadow: 0 0 50px var(--violet), 0 0 100px rgba(153,69,255,0.5); }
}
@keyframes ring-expand {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}
.agent-node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.agent-dot {
  width: 10px; height: 10px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--cyan);
  animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.agent-tag { font-size: 0.6rem; color: var(--fg-2); letter-spacing: 0.06em; font-family: 'Fira Sans', monospace; }

.agent-1 { top: 8%; left: 8%; }
.agent-2 { top: 6%; right: 10%; }
.agent-3 { top: 40%; right: 2%; }
.agent-4 { bottom: 8%; right: 12%; }
.agent-5 { bottom: 10%; left: 10%; }
.agent-6 { top: 42%; left: 3%; }

.node-lines { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* ── SECTION LABEL ── */
.section-label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--violet);
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 2rem;
}

/* ── MANIFESTO ── */
.manifesto { padding: 6rem 2rem; border-bottom: 1px solid var(--border); }
.manifesto-inner { max-width: 800px; margin: 0 auto; }
.manifesto-text {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--fg);
  border-left: 2px solid var(--violet);
  padding-left: 2rem;
  margin-bottom: 1.5rem;
}
.manifesto-respond {
  padding-left: 2rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--cyan);
  font-family: 'Syne', sans-serif;
}

/* ── HOW IT WORKS ── */
.howitworks { padding: 6rem 2rem; border-bottom: 1px solid var(--border); }
.hiw-inner { max-width: 1200px; margin: 0 auto; }
.hiw-steps { display: flex; flex-direction: column; gap: 2.5rem; margin-top: 0; }
.hiw-step { display: flex; gap: 2rem; align-items: flex-start; }
.step-num {
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem;
  color: var(--violet);
  font-weight: 700;
  letter-spacing: 0.06em;
  min-width: 40px;
  padding-top: 0.2rem;
}
.step-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.15rem; margin-bottom: 0.6rem; }
.step-desc { color: var(--fg-2); font-size: 0.95rem; line-height: 1.7; max-width: 580px; }

/* ── FEES ── */
.fees { padding: 6rem 2rem; border-bottom: 1px solid var(--border); background: var(--bg-2); }
.fees-inner { max-width: 1200px; margin: 0 auto; }
.fees-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1.5rem; margin-top: 0; }
.fee-card { background: var(--bg); border: 1px solid var(--border); border-radius: 4px; padding: 2rem 1.75rem; }
.fee-card.fee-primary { border-color: rgba(153,69,255,0.3); background: var(--violet-dim); }
.fee-pct { font-family: 'Syne', sans-serif; font-size: 3rem; font-weight: 800; color: var(--fg); line-height: 1; margin-bottom: 0.35rem; }
.fee-pct-sm { font-size: 1.8rem; font-weight: 700; color: var(--violet); }
.fee-label { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-2); margin-bottom: 0.75rem; }
.fee-note { font-size: 0.85rem; color: var(--fg-2); line-height: 1.5; }

/* ── CHAIN ── */
.chain { padding: 6rem 2rem; border-bottom: 1px solid var(--border); }
.chain-inner { max-width: 1200px; margin: 0 auto; }
.chain-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.chain-headline { font-family: 'Syne', sans-serif; font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 800; line-height: 1.1; margin-bottom: 1.5rem; letter-spacing: -0.02em; }
.chain-body { color: var(--fg-2); font-size: 0.95rem; line-height: 1.7; margin-bottom: 2rem; }
.chain-metrics { display: flex; gap: 2rem; }
.cm-val { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.4rem; color: var(--fg); }
.cm-key { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-2); margin-top: 0.1rem; }

.proto-badge, .sol-badge { background: var(--bg-2); border: 1px solid var(--border); border-radius: 4px; padding: 1.5rem; margin-bottom: 1rem; }
.proto-label { font-size: 0.65rem; letter-spacing: 0.12em; color: var(--fg-2); text-transform: uppercase; display: block; margin-bottom: 1rem; }
.proto-list { list-style: none; }
.proto-list li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.88rem; color: var(--fg-2); padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.proto-list li:last-child { border-bottom: none; }
.proto-icon { color: var(--cyan); font-size: 0.7rem; margin-top: 0.2rem; flex-shrink: 0; }
.sol-badge { display: flex; align-items: center; gap: 1.25rem; }
.sol-logo { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.5rem; color: var(--violet); }
.sol-head { font-weight: 600; font-size: 0.95rem; }
.sol-sub { font-size: 0.8rem; color: var(--fg-2); margin-top: 0.2rem; }

/* ── CLOSING ── */
.closing { padding: 6rem 2rem; }
.closing-inner { max-width: 1200px; margin: 0 auto; }
.closing-headline { font-family: 'Syne', sans-serif; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.025em; margin-bottom: 1.25rem; max-width: 750px; }
.closing-sub { color: var(--fg-2); font-size: 1rem; line-height: 1.7; max-width: 600px; margin-bottom: 3rem; }
.closing-meta { display: flex; gap: 3rem; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 2rem; }
.cm-item { display: flex; flex-direction: column; gap: 0.3rem; }
.cm-label { font-size: 0.65rem; letter-spacing: 0.1em; color: var(--fg-2); text-transform: uppercase; }
.cm-val { font-family: 'Syne', sans-serif; font-weight: 600; font-size: 0.95rem; }
.cm-val-green { color: #00C896; }

/* ── HERO TERMINAL BLOCK ── */
.hero-terminal { background: var(--bg-2); border: 1px solid var(--border); border-radius: 6px; padding: 1rem 1.25rem; margin: 1.5rem 0; }
.terminal-label { font-size: 0.65rem; letter-spacing: 0.1em; color: var(--cyan); text-transform: uppercase; margin-bottom: 0.75rem; }
.terminal-code { font-family: 'Fira Mono', 'Fira Code', monospace; font-size: 0.78rem; color: var(--fg-2); white-space: pre; line-height: 1.6; overflow-x: auto; }

/* ── API REFERENCE SECTION ── */
.api-ref { padding: 5rem 2rem; border-top: 1px solid var(--border); }
.api-ref-inner { max-width: 1200px; margin: 0 auto; }
.api-block { margin-bottom: 3rem; }
.api-block-humans { border-top: 1px solid var(--border); padding-top: 2rem; }
.api-block-title { font-family: 'Syne', sans-serif; font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--fg); }
.api-block-sub { color: var(--fg-2); font-size: 0.95rem; margin-bottom: 1.5rem; }
.api-item { display: grid; grid-template-columns: 80px 220px 1fr; align-items: center; gap: 0.75rem; padding: 0.9rem 0; border-bottom: 1px solid var(--border); }
.api-item:last-child { border-bottom: none; }
.api-method-badge { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.05em; border-radius: 3px; padding: 0.2rem 0.5rem; text-align: center; display: inline-block; width: fit-content; }
.method-post { background: rgba(0,200,150,0.15); color: #00C896; }
.method-get { background: rgba(153,69,255,0.15); color: var(--violet); }
.api-endpoint { font-family: 'Fira Mono', monospace; font-size: 0.82rem; color: var(--fg); }
.api-desc { font-size: 0.82rem; color: var(--fg-2); }
.api-desc code, .api-desc .code { font-family: 'Fira Mono', monospace; font-size: 0.75rem; color: var(--cyan); background: var(--cyan-dim); padding: 0.1rem 0.35rem; border-radius: 2px; }
.human-steps { display: flex; flex-direction: column; gap: 1rem; }
.human-step { display: flex; gap: 1.25rem; align-items: flex-start; }
.h-step-num { width: 28px; height: 28px; background: var(--violet-dim); border: 1px solid var(--violet); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Syne', sans-serif; font-size: 0.8rem; font-weight: 700; color: var(--violet); flex-shrink: 0; }
.h-step-body { font-size: 0.9rem; color: var(--fg-2); line-height: 1.6; }
.h-step-body strong { color: var(--fg); }
.h-step-body code { font-family: 'Fira Mono', monospace; font-size: 0.78rem; color: var(--cyan); background: var(--cyan-dim); padding: 0.1rem 0.35rem; border-radius: 2px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-viz { order: -1; }
  .viz-container { width: 300px; height: 300px; }
  .hero-headline { font-size: 3rem; }
  .fees-grid { grid-template-columns: 1fr; }
  .chain-grid { grid-template-columns: 1fr; gap: 2rem; }
  .closing-meta { gap: 1.5rem; }
  .hiw-step { flex-direction: column; gap: 0.5rem; }
}
