:root {
  --bg: #0a0e12;
  --surface: #10161d;
  --surface-2: #161e27;
  --border: #232d38;
  --text: #e7edf3;
  --text-muted: #8a97a5;
  --signal: #49f2a8;
  --route: #6c8cff;
  --p2p: #ff7a59;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
}

h1, h2, h3, h4, .dc-logo { font-family: var(--font-display); }

a { color: var(--route); text-decoration: none; }
a:hover { color: var(--signal); }

code { font-family: var(--font-mono); color: var(--signal); }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

/* Nav */
.dc-nav {
  background: rgba(10, 14, 18, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.dc-logo {
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text) !important;
}

.dc-cursor {
  color: var(--signal);
  animation: dc-blink 1.1s steps(1) infinite;
}

@keyframes dc-blink {
  50% { opacity: 0; }
}

.dc-nav .nav-link {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.dc-nav .nav-link:hover { color: var(--text); }

/* Buttons */
.dc-btn-signal {
  background: var(--signal);
  color: #06110c;
  font-weight: 600;
  border: none;
}
.dc-btn-signal:hover {
  background: #6ffabf;
  color: #06110c;
}

.dc-btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  font-weight: 500;
}
.dc-btn-ghost:hover {
  border-color: var(--text-muted);
  color: var(--text);
}
.dc-btn-ghost:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Hero */
.dc-hero {
  padding: 9.5rem 0 6rem;
  background:
    radial-gradient(60% 50% at 85% 10%, rgba(108, 140, 255, 0.14), transparent),
    radial-gradient(50% 40% at 10% 90%, rgba(73, 242, 168, 0.10), transparent);
}

.dc-eyebrow {
  font-family: var(--font-mono);
  color: var(--signal);
  text-transform: lowercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.dc-h1 {
  font-size: clamp(2.25rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 1.25rem;
}

.dc-h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  font-weight: 600;
  margin-bottom: 2.5rem;
}

.dc-lead {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 42rem;
}

/* Install snippet */
.dc-install {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin-top: 2rem;
  max-width: 32rem;
  font-family: var(--font-mono);
  font-size: 0.92rem;
}

.dc-install code {
  flex: 1;
  overflow-x: auto;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .dc-install {
    align-items: flex-start;
  }
  .dc-install code {
    white-space: normal;
    overflow-x: visible;
    word-break: break-all;
  }
}

.dc-prompt { color: var(--text-muted); }

.dc-copy {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.3rem 0.6rem;
  flex-shrink: 0;
  min-width: 4.2rem;
  text-align: center;
}
.dc-copy:hover { color: var(--text); border-color: var(--text-muted); }

/* Signature diagram */
.dc-signature { text-align: center; }
.dc-diagram { width: 100%; height: auto; max-width: 480px; }

.dc-node rect {
  fill: var(--surface);
  stroke: var(--border);
  stroke-width: 1.5;
}
.dc-node text {
  fill: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.dc-node-client rect { fill: var(--surface-2); }
.dc-node-client text { font-size: 10px; }

.dc-path-merge {
  fill: none;
  stroke: var(--border);
  stroke-width: 1.5;
}

.dc-path-routed {
  fill: none;
  stroke: var(--route);
  stroke-width: 2;
  stroke-dasharray: 6 6;
  opacity: 0.85;
}

.dc-path-p2p {
  fill: none;
  stroke: var(--p2p);
  stroke-width: 2;
}

.dc-pulse { fill: var(--p2p); }

.dc-diagram-caption {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Sections */
.dc-section { padding: 5.5rem 0; }
.dc-section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* Pipeline */
.dc-pipeline {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}

.dc-hop {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  min-width: 11rem;
  text-align: center;
}

.dc-hop-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--signal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dc-hop-name {
  display: block;
  font-family: var(--font-mono);
  font-weight: 600;
  margin-top: 0.35rem;
}

.dc-hop-detail {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

.dc-hop-line {
  flex: 0 0 2.5rem;
  align-self: center;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--route) 0 6px, transparent 6px 12px);
}

@media (max-width: 767px) {
  .dc-hop-line { flex-basis: 100%; height: 1.5rem; width: 1px; margin: 0 auto; background: var(--border); }
}

/* Feature cards */
.dc-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem;
  height: 100%;
}

.dc-card-icon {
  font-family: var(--font-mono);
  color: var(--signal);
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.dc-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.dc-card p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }

/* Download platforms */
.dc-platform {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.dc-platform-group {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-align: center;
  margin: 2.5rem 0 1.5rem;
}
.dc-platform-group:first-of-type { margin-top: 2.5rem; }

.dc-platform h3 { margin-bottom: 0.5rem; }
.dc-platform p { color: var(--text-muted); font-size: 0.92rem; flex: 1; }
.dc-platform-soon { opacity: 0.85; }

.dc-install-card { margin-top: 0.5rem; max-width: none; align-items: flex-start; }
.dc-install-card code { white-space: normal; overflow-x: visible; word-break: break-all; }

/* Video */
.dc-video-frame {
  position: relative;
  padding-top: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.dc-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
/* Footer */
.dc-footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border);
}
.dc-footer-logo { font-size: 1.1rem; margin-bottom: 0.5rem; }
.dc-footer-tagline { color: var(--text-muted); font-size: 0.9rem; }
.dc-footer h4 {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}
.dc-footer-links { list-style: none; padding: 0; margin: 0; }
.dc-footer-links li { margin-bottom: 0.5rem; }
.dc-footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.dc-footer-links a:hover { color: var(--signal); }
.dc-footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
}

@media (prefers-reduced-motion: reduce) {
  .dc-cursor { animation: none; }
  .dc-pulse animateMotion { display: none; }
}
