:root {
  --bg: #050816;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-solid: #0f172a;
  --text: #eaf1ff;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.18);
  --blue: #38bdf8;
  --purple: #8b5cf6;
  --green: #22c55e;
  --red: #ef4444;
  --orange: #f97316;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(139, 92, 246, 0.16), transparent 30%),
    radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.08), transparent 28%),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 8, 22, 0.74);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand,
.mini-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 17px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  display: grid;
  place-items: center;
  font-weight: 950;
  font-size: 27px;
  box-shadow: 0 0 32px rgba(56, 189, 248, 0.35);
}

.brand-mark.small {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  font-size: 21px;
}

.brand strong,
.mini-brand strong {
  display: block;
  font-size: 20px;
  letter-spacing: -0.04em;
}

.brand small,
.mini-brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

.main-nav a:hover {
  color: var(--text);
}

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
}

.nav-cta,
.btn.primary {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  box-shadow: 0 14px 34px rgba(56, 189, 248, 0.22);
}

.btn.secondary {
  background: rgba(15, 23, 42, 0.72);
  color: var(--text);
}

.hero {
  padding: 82px 0 40px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #c4f1ff;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 800;
}

.pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.12);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  font-size: clamp(44px, 7vw, 78px);
  line-height: 0.94;
  letter-spacing: -0.07em;
  margin: 24px 0 22px;
}

.hero-lead {
  color: var(--muted);
  font-size: 19px;
  max-width: 700px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 30px 0;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.trust-strip div {
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.52);
  border-radius: 20px;
  padding: 16px;
}

.trust-strip strong {
  display: block;
}

.trust-strip span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.hero-visual {
  position: relative;
  min-height: 590px;
  display: grid;
  place-items: center;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.9;
}

.orb-one {
  width: 250px;
  height: 250px;
  background: rgba(56, 189, 248, 0.17);
  top: 32px;
  right: 48px;
}

.orb-two {
  width: 280px;
  height: 280px;
  background: rgba(139, 92, 246, 0.16);
  bottom: 26px;
  left: 20px;
}

.network-card {
  position: relative;
  width: min(470px, 100%);
  border: 1px solid rgba(148, 163, 184, 0.25);
  background:
    linear-gradient(160deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.86)),
    var(--panel-solid);
  border-radius: 34px;
  padding: 24px;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,0.03);
}

.network-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 22px;
}

.network-title strong,
.network-title span {
  display: block;
}

.network-title span {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.route-map {
  display: grid;
  gap: 12px;
}

.node {
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.72);
  border-radius: 22px;
  padding: 15px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
}

.node span {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(56,189,248,.25), rgba(139,92,246,.25));
  color: var(--text);
  font-weight: 950;
}

.node strong,
.node small {
  display: block;
}

.node small {
  color: var(--muted);
}

.relay-node {
  border-color: rgba(56, 189, 248, 0.28);
}

.swarm-node {
  border-color: rgba(34, 197, 94, 0.32);
}

.path-line {
  width: 2px;
  height: 24px;
  background: linear-gradient(var(--blue), var(--purple));
  margin-left: 36px;
  opacity: 0.65;
}

.proof-box {
  border: 1px solid rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.08);
  border-radius: 20px;
  padding: 14px;
  margin-top: 22px;
}

.proof-box span {
  display: block;
  color: var(--green);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 900;
}

.proof-box code {
  display: block;
  color: #d1fae5;
  margin-top: 5px;
}

.network-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.48);
}

.network-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 22px 0;
}

.label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 4px;
}

.section {
  padding: 86px 0;
}

.dark-section {
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.35), rgba(15, 23, 42, 0.5)),
    rgba(2, 6, 23, 0.24);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 790px;
  margin-bottom: 34px;
}

.section-kicker {
  display: inline-block;
  color: var(--blue);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  margin-bottom: 10px;
}

.section h2 {
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1;
  letter-spacing: -0.055em;
  margin-bottom: 16px;
}

.section-heading p,
.split p,
.final-cta p,
.site-footer p {
  color: var(--muted);
  font-size: 17px;
}

.protocol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.protocol-card,
.card,
.safety-panel,
.terminal-card,
.download-card {
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.62);
  border-radius: 26px;
  padding: 24px;
  box-shadow: 0 18px 54px rgba(0,0,0,0.18);
}

.protocol-card span,
.download-card span {
  display: inline-block;
  color: var(--blue);
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 10px;
}

.protocol-card h3,
.card h3,
.download-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.protocol-card p,
.card p,
.download-card p,
.safety-panel p,
.safety-panel li {
  color: var(--muted);
}

.chat-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  border: 1px solid var(--line);
  border-radius: 30px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.54);
  box-shadow: var(--shadow);
}

.chat-sidebar {
  border-right: 1px solid var(--line);
  padding: 20px;
  background: rgba(2, 6, 23, 0.42);
}

.identity-box {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  margin: 18px 0;
  background: rgba(15, 23, 42, 0.62);
}

.identity-box label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin: 10px 0 6px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.identity-box input,
.chat-compose input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.76);
  color: var(--text);
  border-radius: 15px;
  padding: 12px;
  outline: none;
}

.identity-box button,
.chat-compose button {
  border: 0;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  border-radius: 14px;
  padding: 11px 14px;
  font-weight: 900;
  cursor: pointer;
}

.identity-box button {
  width: 100%;
  margin-top: 14px;
}

.contact-list {
  display: grid;
  gap: 10px;
}

.contact {
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.58);
  color: var(--text);
  border-radius: 18px;
  padding: 12px;
  display: flex;
  gap: 10px;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.contact.active {
  border-color: rgba(56, 189, 248, 0.48);
}

.contact span {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(56, 189, 248, 0.15);
  color: var(--blue);
  font-weight: 900;
}

.contact strong,
.contact small {
  display: block;
}

.contact small {
  color: var(--muted);
}

.chat-window {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  min-height: 650px;
}

.chat-header {
  min-height: 74px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
}

.chat-header strong,
.chat-header small {
  display: block;
}

.chat-header small {
  color: var(--muted);
}

.secure-pill {
  border: 1px solid rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.1);
  color: #bbf7d0;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 900;
}

.chat-messages {
  padding: 22px;
  overflow: auto;
}

.system-message {
  text-align: center;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.44);
  padding: 12px;
  border-radius: 16px;
  margin-bottom: 20px;
}

.chat-bubble {
  width: fit-content;
  max-width: 72%;
  border: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.56);
  border-radius: 20px;
  padding: 13px 15px;
  margin-bottom: 14px;
}

.chat-bubble.right {
  margin-left: auto;
  background: linear-gradient(135deg, rgba(56,189,248,.18), rgba(139,92,246,.18));
}

.chat-bubble small {
  color: var(--muted);
  display: block;
  margin-bottom: 5px;
}

.chat-bubble p {
  margin: 0;
}

.chat-compose {
  border-top: 1px solid var(--line);
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.chat-warning {
  border-top: 1px solid var(--line);
  color: #fde68a;
  background: rgba(234, 179, 8, 0.08);
  padding: 12px 18px;
  font-size: 13px;
}

.split {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 44px;
  align-items: center;
}

.flow {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.flow div {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.48);
  border-radius: 18px;
  padding: 13px;
  color: var(--muted);
}

.flow span {
  width: 31px;
  height: 31px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(56, 189, 248, 0.14);
  color: var(--blue);
  font-weight: 900;
  flex: 0 0 auto;
}

.terminal-card {
  background: #020617;
  overflow: hidden;
}

.terminal-top {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.terminal-top span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.4);
}

pre {
  margin: 0;
  white-space: pre-wrap;
  color: #a7f3d0;
  font-size: 14px;
}

.cards.three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card .icon {
  font-size: 30px;
  margin-bottom: 12px;
}

.safety-panel {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 22px;
  align-items: start;
  border-color: rgba(56, 189, 248, 0.25);
}

.safety-panel ul {
  margin: 0;
  padding-left: 20px;
}

.safety-panel li {
  margin-bottom: 8px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.download-card.ready {
  border-color: rgba(34, 197, 94, 0.34);
}

.download-card strong {
  color: var(--green);
}

.final-cta {
  text-align: center;
  background:
    radial-gradient(circle at center, rgba(56, 189, 248, 0.14), transparent 35%),
    rgba(2, 6, 23, 0.36);
}

.final-cta p {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 42px 0 24px;
  background: rgba(2, 6, 23, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 36px;
}

.footer-grid a {
  display: block;
  color: var(--muted);
  margin-top: 9px;
}

.footer-grid a:hover {
  color: var(--text);
}

.footer-brand {
  margin-bottom: 16px;
}

.legal {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 30px;
}

@media (max-width: 1080px) {
  .protocol-grid,
  .download-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 980px) {
  .main-nav,
  .nav-cta {
    display: none;
  }

  .hero-grid,
  .chat-layout,
  .split,
  .safety-panel {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: auto;
  }

  .network-grid,
  .cards.three,
  .trust-strip,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .chat-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .chat-window {
    min-height: 560px;
  }

  .chat-compose {
    grid-template-columns: 1fr;
  }

  .legal {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    padding-top: 50px;
  }

  .section {
    padding: 62px 0;
  }

  .network-card {
    border-radius: 28px;
    padding: 16px;
  }

  .protocol-grid,
  .download-grid {
    grid-template-columns: 1fr;
  }

  .chat-bubble {
    max-width: 88%;
  }
}
