:root {
  --bg: #0a0d0d;
  --panel: rgba(18, 26, 24, 0.9);
  --panel-soft: rgba(22, 31, 29, 0.72);
  --panel-border: rgba(116, 153, 142, 0.2);
  --panel-border-strong: rgba(198, 244, 88, 0.28);
  --text: #eef4ee;
  --muted: #a8b6ae;
  --accent: #94d82d;
  --accent-strong: #c6f458;
  --accent-blue: #6ecbf5;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(148, 216, 45, 0.15), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(77, 171, 247, 0.14), transparent 24%),
    linear-gradient(180deg, #08100f 0%, #0a0d0d 42%, #111716 100%);
  color: var(--text);
  overflow-x: hidden;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 30;
  background: rgba(255, 255, 255, 0.04);
}

.scroll-progress-bar {
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-blue) 55%, #fff0a8 100%);
  box-shadow: 0 0 20px rgba(148, 216, 45, 0.32);
}

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

.ambient {
  position: fixed;
  inset: auto;
  pointer-events: none;
  filter: blur(30px);
  opacity: 0.55;
}

.ambient-a {
  top: 72px;
  left: 5vw;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: rgba(148, 216, 45, 0.13);
}

.ambient-b {
  top: 280px;
  right: 6vw;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background: rgba(110, 203, 245, 0.12);
}

.ambient-c {
  bottom: 80px;
  left: 38vw;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: rgba(198, 244, 88, 0.09);
}

.page-shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 72px;
  position: relative;
  z-index: 1;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 14px 18px;
  margin-bottom: 28px;
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  background: rgba(11, 18, 17, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--accent) 0%, #5ec67d 100%);
  color: #16200c;
  font-weight: 800;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
}

.topnav a {
  padding: 8px 12px;
  border-radius: 999px;
}

.topnav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.topnav a:hover,
.doc-link:hover {
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 64px;
}

.home-layout {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.home-content {
  min-width: 0;
}

.scroll-rail {
  position: sticky;
  top: 108px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: start;
}

.scroll-rail-label {
  margin: 0 0 8px;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  transition: all 180ms ease;
}

.scroll-link::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 0 rgba(198, 244, 88, 0);
  transition: inherit;
}

.scroll-link.active {
  color: var(--text);
  border-color: var(--panel-border-strong);
  background: rgba(198, 244, 88, 0.08);
  transform: translateX(4px);
}

.scroll-link.active::before {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-blue) 100%);
  box-shadow: 0 0 18px rgba(198, 244, 88, 0.4);
}

.hero-copy,
.hero-panel,
.card,
.doc-link,
.surface-card,
.cta-card,
.flow-step,
.metric-card {
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 42px;
  position: relative;
  overflow: hidden;
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto -80px -100px auto;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(198, 244, 88, 0.18) 0%, transparent 70%);
}

.chapter-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.chapter-index,
.chapter-name {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.chapter-index {
  background: rgba(198, 244, 88, 0.15);
  color: var(--accent-strong);
}

.chapter-name {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
}

.hero h1,
.section h2 {
  margin: 0;
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
  line-height: 0.98;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5.6rem);
  max-width: 12ch;
}

.lede {
  max-width: 60ch;
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.eyebrow {
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.77rem;
  color: var(--accent-strong);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.signal-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  color: #dbe6d7;
  font-size: 0.92rem;
}

.scroll-cue::after {
  content: "";
  width: 38px;
  height: 1px;
  background: linear-gradient(90deg, rgba(198, 244, 88, 0.8) 0%, rgba(110, 203, 245, 0.4) 100%);
}

.signal-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #d7e4dc;
  font-size: 0.92rem;
}

.signal-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-blue) 100%);
  box-shadow: 0 0 16px rgba(148, 216, 45, 0.55);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #e7ff77 100%);
  color: #17200f;
}

.button-secondary {
  border: 1px solid var(--panel-border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.hero-panel {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.hero-orbit {
  position: relative;
  min-height: 260px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(198, 244, 88, 0.12);
  background:
    radial-gradient(circle at center, rgba(110, 203, 245, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(12, 18, 17, 0.96) 0%, rgba(18, 26, 24, 0.88) 100%);
}

.orbit-ring {
  position: absolute;
  inset: 50%;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform: translate(-50%, -50%);
}

.orbit-ring-a {
  width: 210px;
  height: 210px;
}

.orbit-ring-b {
  width: 300px;
  height: 300px;
}

.orbit-core,
.orbit-node {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
}

.orbit-core {
  top: 50%;
  left: 50%;
  width: 110px;
  height: 110px;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, rgba(198, 244, 88, 0.2) 0%, rgba(110, 203, 245, 0.18) 100%);
  border: 1px solid rgba(198, 244, 88, 0.28);
  box-shadow: 0 0 30px rgba(110, 203, 245, 0.12);
}

.orbit-node {
  min-width: 86px;
  min-height: 36px;
  padding: 0 14px;
  background: rgba(18, 27, 25, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d8e1db;
}

.orbit-node-chain {
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
}

.orbit-node-p2p {
  bottom: 34px;
  left: 28px;
}

.orbit-node-store {
  right: 26px;
  bottom: 48px;
}

.hero-console {
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(12, 18, 17, 0.96) 0%, rgba(18, 26, 24, 0.88) 100%);
  border: 1px solid rgba(198, 244, 88, 0.12);
}

.console-header,
.console-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.console-header {
  padding-bottom: 14px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.console-status {
  color: var(--accent-strong);
}

.console-row {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.console-row:last-child {
  border-bottom: 0;
}

.console-row span {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.console-row strong {
  font-size: 0.98rem;
  text-align: right;
}

.hero-metrics {
  display: grid;
  gap: 12px;
}

.hero-stat {
  padding: 18px;
  border-radius: 20px;
  background: var(--panel-soft);
}

.hero-stat-label {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-stat strong {
  display: block;
  margin-top: 8px;
  font-size: 1.22rem;
}

.hero-stat p,
.card p,
.feature-copy p,
.doc-link span,
.plain-list {
  color: var(--muted);
  line-height: 1.65;
}

.section {
  margin-bottom: 56px;
}

.home-chapter {
  position: relative;
}

.home-chapter::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 22px;
  bottom: 22px;
  width: 2px;
  background: linear-gradient(180deg, rgba(198, 244, 88, 0.34) 0%, rgba(110, 203, 245, 0.14) 100%);
}

.page-hero {
  margin: 8px 0 48px;
  padding: 26px 0 8px;
}

.page-hero h1 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  line-height: 0.98;
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
}

.page-lede {
  max-width: 64ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.75;
}

.section-heading {
  margin-bottom: 20px;
}

.section-heading h2 {
  font-size: clamp(2rem, 3vw, 3.1rem);
  max-width: 12ch;
}

.section-dark .card {
  background: rgba(18, 19, 24, 0.86);
}

.card-grid,
.split-grid,
.docs-grid,
.flow-grid,
.surface-grid,
.validation-band,
.cta-grid,
.faq-preview-grid,
.story-grid {
  display: grid;
  gap: 18px;
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.split-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.flow-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.story-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  padding: 24px;
}

.card h3,
.doc-link strong {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.feature-copy {
  padding: 8px 0;
}

.soft-panel {
  background: rgba(20, 29, 27, 0.9);
}

.section-flow {
  position: relative;
}

.flow-step {
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.flow-step::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-blue) 100%);
  opacity: 0.85;
}

.flow-index,
.surface-label,
.metric-card span {
  display: block;
  margin-bottom: 10px;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.flow-step h3,
.surface-card h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
}

.flow-step p,
.surface-card p,
.metric-card p,
.cta-card span {
  color: var(--muted);
  line-height: 1.65;
}

.plain-list {
  margin: 0;
  padding-left: 18px;
}

.plain-list li + li {
  margin-top: 8px;
}

.docs-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.doc-link {
  padding: 22px;
  display: block;
  transition: transform 160ms ease, border-color 160ms ease;
}

.doc-link:hover {
  transform: translateY(-2px);
  border-color: rgba(198, 244, 88, 0.28);
}

.validation-band {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.metric-card {
  padding: 20px;
  background: rgba(15, 19, 25, 0.92);
}

.metric-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1;
}

.surface-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.surface-card {
  padding: 22px;
  background: rgba(16, 25, 22, 0.9);
}

.story-card {
  padding: 24px;
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(18, 27, 25, 0.92) 0%, rgba(13, 18, 17, 0.92) 100%);
  box-shadow: var(--shadow);
}

.story-card h3 {
  margin: 0 0 10px;
  font-size: 1.14rem;
}

.story-card p {
  color: var(--muted);
  line-height: 1.68;
}

.question-scroll {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(0, 1.18fr);
  gap: 22px;
  align-items: start;
}

.question-lead {
  position: sticky;
  top: 108px;
  padding: 22px;
  border: 1px solid rgba(198, 244, 88, 0.16);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(19, 28, 25, 0.94) 0%, rgba(12, 16, 16, 0.96) 100%);
  box-shadow: var(--shadow);
}

.question-kicker,
.question-pill span,
.question-index {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.question-summary {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.question-nav {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.question-pill {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease,
    opacity 180ms ease;
  opacity: 0.62;
}

.question-pill strong {
  display: block;
  margin-top: 6px;
  font-size: 1rem;
}

.question-pill.active {
  opacity: 1;
  border-color: rgba(198, 244, 88, 0.28);
  background: rgba(198, 244, 88, 0.08);
  transform: translateX(4px);
}

.question-stack {
  display: grid;
  gap: 18px;
}

.question-stage {
  min-height: 70vh;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(21, 30, 28, 0.92) 0%, rgba(13, 18, 18, 0.95) 100%);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.28;
  transform: translateY(40px) scale(0.985);
  filter: blur(7px);
  transition: opacity 320ms ease, transform 320ms ease, filter 320ms ease,
    border-color 320ms ease;
}

.question-stage.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  border-color: rgba(198, 244, 88, 0.22);
}

.question-stage h3 {
  margin: 12px 0 14px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
}

.question-stage p {
  max-width: 48ch;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.82;
}

.faq-preview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.faq-preview {
  padding: 22px;
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  background: rgba(19, 27, 26, 0.84);
}

.faq-preview h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.faq-preview p {
  color: var(--muted);
  line-height: 1.65;
}

.faq-preview:hover,
.metric-card:hover,
.story-card:hover,
.surface-card:hover {
  border-color: var(--panel-border-strong);
  transform: translateY(-3px);
}

.metric-card,
.story-card,
.surface-card,
.faq-preview {
  transition: transform 180ms ease, border-color 180ms ease;
}

.inline-cta {
  margin-top: 18px;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--panel-border);
  border-radius: 22px;
  background: rgba(18, 25, 24, 0.9);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 22px;
  font-size: 1.05rem;
  font-weight: 700;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--muted);
  line-height: 1.7;
}

.final-cta {
  margin-bottom: 0;
}

.final-cta-copy {
  margin-bottom: 18px;
}

.cta-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cta-card {
  padding: 24px;
  display: block;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
  background: linear-gradient(180deg, rgba(17, 24, 22, 0.95) 0%, rgba(13, 18, 17, 0.92) 100%);
}

.cta-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.12rem;
}

.cta-card:hover {
  transform: translateY(-3px);
  border-color: var(--panel-border-strong);
  background: linear-gradient(180deg, rgba(22, 31, 28, 0.98) 0%, rgba(16, 21, 20, 0.95) 100%);
}

.site-footer {
  margin-top: 36px;
  padding: 22px 0 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 920px) {
  .home-layout {
    grid-template-columns: 1fr;
  }

  .scroll-rail {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    margin-bottom: 8px;
  }

  .hero,
  .feature-band,
  .card-grid,
  .split-grid,
  .docs-grid,
  .flow-grid,
  .surface-grid,
  .validation-band,
  .cta-grid,
  .faq-preview-grid,
  .question-scroll,
  .story-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    position: static;
  }

  .hero-copy {
    padding: 28px;
  }

  .home-chapter::before {
    display: none;
  }

  .question-lead {
    position: static;
  }

  .question-stage {
    min-height: auto;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100vw - 20px, 1180px);
    padding-top: 10px;
  }

  .topbar {
    padding: 12px 14px;
    border-radius: 14px;
  }

  .topnav {
    gap: 12px;
    font-size: 0.92rem;
  }

  .scroll-rail {
    gap: 6px;
  }

  .scroll-link {
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.84rem;
  }

  .hero-copy,
  .hero-panel,
  .card,
  .doc-link,
  .surface-card,
  .cta-card,
  .flow-step,
  .metric-card,
  .story-card,
  .question-lead,
  .question-stage,
  .faq-preview,
  .faq-item {
    border-radius: 22px;
  }

  .hero h1 {
    font-size: 2.7rem;
  }

  .hero-orbit {
    min-height: 210px;
  }

  .orbit-ring-b {
    width: 240px;
    height: 240px;
  }

  .page-hero h1 {
    font-size: 2.5rem;
  }

  .section-heading h2 {
    font-size: 2.1rem;
  }
}
