*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #070b16;
  --bg-soft: #0f162a;
  --card: rgba(19, 28, 52, 0.8);
  --card-border: rgba(145, 167, 255, 0.2);
  --text: #e6ecff;
  --text-dim: #aeb8d8;
  --brand: #5b7bff;
  --brand-2: #16c7b3;
  --accent: #9a7dff;
  --radius: 20px;
  --shadow: 0 22px 50px rgba(4, 9, 22, 0.45);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes float-y {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes shimmer-bar {
  0% {
    transform: scaleY(0.35);
    opacity: 0.65;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
  100% {
    transform: scaleY(0.35);
    opacity: 0.65;
  }
}

@keyframes score-glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(22, 199, 179, 0.35);
  }
  50% {
    box-shadow: 0 0 28px 4px rgba(91, 123, 255, 0.25);
  }
}

@keyframes chip-glow {
  0%,
  100% {
    border-color: rgba(167, 188, 255, 0.24);
  }
  50% {
    border-color: rgba(140, 255, 241, 0.45);
  }
}

@keyframes eyebrow-shine {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.25);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ambient-shift {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1) translate(0, 0);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.08) translate(3%, -2%);
  }
}

@keyframes metric-pop-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(91, 123, 255, 0.2), transparent 40%),
    radial-gradient(circle at 100% 20%, rgba(22, 199, 179, 0.15), transparent 35%),
    var(--bg);
  line-height: 1.55;
}

.ambient {
  pointer-events: none;
  position: fixed;
  inset: -20% -10% auto;
  height: 70vh;
  z-index: 0;
  background:
    radial-gradient(ellipse 50% 40% at 20% 10%, rgba(154, 125, 255, 0.18), transparent 55%),
    radial-gradient(ellipse 45% 35% at 85% 25%, rgba(91, 123, 255, 0.2), transparent 50%);
  animation: ambient-shift 18s ease-in-out infinite;
}

body > header,
body > main,
body > footer {
  position: relative;
  z-index: 1;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(158, 179, 255, 0.14);
  background: rgba(7, 11, 22, 0.75);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(1180px, 100% - 2rem);
  margin: 0 auto;
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.brand img {
  display: block;
  width: clamp(280px, 28vw, 420px);
  height: auto;
  max-height: 82px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.92rem;
  color: var(--text-dim);
}

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

.nav-cta {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(168, 188, 255, 0.34);
  color: #fff !important;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 26px rgba(91, 123, 255, 0.35);
}

.menu-button {
  display: none;
  border: 1px solid rgba(169, 188, 255, 0.34);
  color: var(--text);
  background: transparent;
  border-radius: 12px;
  padding: 0.5rem 0.75rem;
}

main {
  width: min(1180px, 100% - 2rem);
  margin: 0 auto;
}

.hero {
  padding: 4.5rem 0 3.5rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8cfff1;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
}

.hero h1 {
  margin-top: 1rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
  max-width: 22ch;
}

.hero-lead {
  margin-top: 1.15rem;
  color: var(--text-dim);
  max-width: 62ch;
}

.hero-actions {
  margin-top: 1.4rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 0.78rem 1.1rem;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 14px 28px rgba(91, 123, 255, 0.35);
}

.button.secondary {
  border: 1px solid rgba(168, 189, 255, 0.3);
  color: var(--text);
  background: rgba(18, 26, 47, 0.6);
}

.hero-checklist {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
  color: #c8d2f6;
  font-size: 0.94rem;
}

.hero-checklist li::before {
  content: "✓";
  color: #8cfff1;
  margin-right: 0.55rem;
}

.command-chip {
  margin-top: 1.2rem;
  border: 1px solid rgba(167, 188, 255, 0.24);
  border-radius: 14px;
  background: rgba(8, 14, 29, 0.7);
  padding: 0.85rem 1rem;
  display: inline-flex;
  gap: 0.7rem;
  align-items: center;
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.command-chip code {
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  color: #8cfff1;
}

.hero-eyebrow {
  animation: eyebrow-shine 4s ease-in-out infinite;
}

.command-chip-glow {
  animation: chip-glow 5s ease-in-out infinite;
}

.visual-float {
  animation: float-y 7s ease-in-out infinite;
}

.score-pulse {
  animation: score-glow 4s ease-in-out infinite;
}

.metric-pop {
  animation: metric-pop-in 0.7s var(--ease-out) both;
}

.metric-pop-delay {
  animation-delay: 0.12s;
}

.metric-pop-delay-2 {
  animation-delay: 0.24s;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.75s var(--ease-out),
    transform 0.75s var(--ease-out);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.12s;
}

.lift-card {
  transition:
    transform 0.35s var(--ease-out),
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.lift-card:hover {
  transform: translateY(-6px);
  border-color: rgba(168, 200, 255, 0.38);
  box-shadow: 0 28px 60px rgba(4, 9, 22, 0.55);
}

.proof-tags span {
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.proof-tags span:hover {
  transform: translateY(-2px);
  border-color: rgba(140, 255, 241, 0.45);
}

.examples-section {
  position: relative;
}

.examples-section::before {
  content: "";
  position: absolute;
  inset: -2rem -4vw;
  border-radius: 32px;
  background: linear-gradient(165deg, rgba(91, 123, 255, 0.08), transparent 45%, rgba(22, 199, 179, 0.06));
  pointer-events: none;
  z-index: -1;
}

.examples-lead {
  margin: 0.85rem auto 0;
  max-width: 48ch;
  color: var(--text-dim);
  font-size: 0.98rem;
}

.examples-lead code {
  color: #8cfff1;
  font-size: 0.88em;
}

.examples-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.example-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(22, 32, 58, 0.95), rgba(12, 18, 36, 0.88));
  box-shadow: var(--shadow);
  padding: 1.15rem 1.1rem 1.25rem;
  transition:
    transform 0.4s var(--ease-out),
    border-color 0.35s ease,
    box-shadow 0.4s ease;
}

.example-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.06) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.85s ease;
  pointer-events: none;
}

.example-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(154, 125, 255, 0.45);
  box-shadow: 0 26px 56px rgba(91, 123, 255, 0.22);
}

.example-card:hover::after {
  transform: translateX(100%);
}

.example-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8cfff1;
  margin-bottom: 0.45rem;
}

.example-card h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

.example-card p {
  margin: 0.5rem 0 0;
  color: var(--text-dim);
  font-size: 0.92rem;
}

.example-meta {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.example-meta li {
  font-size: 0.75rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(145, 167, 255, 0.22);
  background: rgba(10, 16, 34, 0.65);
  color: #c8d4ff;
}

.examples-cta {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.examples-hint {
  font-size: 0.88rem;
  color: var(--text-dim);
}

.examples-hint code {
  color: #8cfff1;
  font-size: 0.85em;
}

.partners-section {
  margin-top: 3.5rem;
}

.partners-lead {
  margin: 0.85rem auto 0;
  max-width: 58ch;
  color: var(--text-dim);
  font-size: 0.98rem;
  line-height: 1.65;
}

.partners-lead strong {
  color: #dfe6ff;
}

.partner-logos {
  margin-top: 1.75rem;
}

.partner-logos-caption {
  margin: 0 0 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.partner-logos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.25rem;
}

.partner-logo {
  display: block;
  border-radius: 14px;
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(145, 167, 255, 0.2);
  background: rgba(8, 12, 26, 0.55);
  transition:
    transform 0.3s var(--ease-out),
    border-color 0.25s ease,
    box-shadow 0.3s ease;
  filter: saturate(0.92) brightness(0.98);
}

.partner-logo:hover {
  transform: translateY(-4px);
  border-color: rgba(140, 255, 241, 0.45);
  box-shadow: 0 16px 36px rgba(91, 123, 255, 0.2);
  filter: none;
}

.partner-logo img {
  display: block;
  width: min(160px, 28vw);
  height: auto;
  aspect-ratio: 160 / 56;
}

.crypto-panel {
  margin-top: 2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(145, 167, 255, 0.2);
  background: rgba(11, 17, 36, 0.75);
  padding: 1.25rem 1.25rem 1.4rem;
  box-shadow: var(--shadow);
}

.crypto-disclaimer {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.crypto-disclaimer strong {
  color: #ffb4a8;
}

.wallet-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wallet-card {
  display: grid;
  gap: 0.45rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(145, 167, 255, 0.16);
  background: rgba(8, 13, 28, 0.85);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.wallet-card:hover {
  border-color: rgba(140, 255, 241, 0.35);
  transform: translateY(-2px);
}

.wallet-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #95ffef;
}

.wallet-address {
  display: block;
  word-break: break-all;
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #d4dcff;
  margin: 0;
}

.wallet-copy {
  justify-self: start;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(168, 189, 255, 0.35);
  background: rgba(91, 123, 255, 0.2);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.wallet-copy:hover {
  background: rgba(91, 123, 255, 0.35);
  transform: translateY(-1px);
}

.wallet-copy.copied {
  background: rgba(22, 199, 179, 0.35);
  border-color: rgba(22, 199, 179, 0.55);
}

.final-cta-glow {
  position: relative;
  overflow: hidden;
}

.final-cta-glow::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 120deg, rgba(91, 123, 255, 0.35), transparent, rgba(22, 199, 179, 0.3), transparent);
  animation: ambient-shift 12s linear infinite;
  opacity: 0.35;
}

.final-cta-glow > * {
  position: relative;
  z-index: 1;
}

.hero-visual .visual-shell {
  border-radius: 26px;
  border: 1px solid var(--card-border);
  background: linear-gradient(155deg, rgba(14, 22, 43, 0.9), rgba(11, 16, 34, 0.9));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.visual-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(145, 167, 255, 0.16);
  color: var(--text-dim);
}

.visual-head span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(165, 185, 255, 0.45);
}

.visual-head strong {
  margin-left: auto;
  color: #dfe6ff;
  font-size: 0.85rem;
}

.visual-body {
  display: grid;
  grid-template-columns: 120px 1fr;
  min-height: 320px;
}

.visual-side {
  border-right: 1px solid rgba(145, 167, 255, 0.16);
  display: grid;
  align-content: start;
  gap: 0.35rem;
  padding: 0.85rem;
}

.visual-side a {
  font-size: 0.82rem;
  color: var(--text-dim);
  padding: 0.4rem 0.55rem;
  border-radius: 10px;
}

.visual-side .active {
  background: rgba(91, 123, 255, 0.22);
  color: #ecf1ff;
}

.visual-main {
  padding: 1rem;
}

.visual-metrics {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(3, 1fr);
}

.visual-metrics article {
  border-radius: 14px;
  background: rgba(145, 167, 255, 0.1);
  border: 1px solid rgba(145, 167, 255, 0.16);
  padding: 0.7rem;
}

.visual-metrics small {
  display: block;
  color: var(--text-dim);
  font-size: 0.73rem;
}

.visual-metrics strong {
  display: block;
  margin-top: 0.22rem;
}

.visual-metrics em {
  font-style: normal;
  font-size: 0.75rem;
  color: #8cfff1;
}

.visual-panels {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 0.6rem;
}

.chart-panel,
.score-panel {
  border-radius: 14px;
  border: 1px solid rgba(145, 167, 255, 0.16);
  padding: 0.85rem;
  background: rgba(145, 167, 255, 0.08);
}

.bars {
  margin-top: 0.6rem;
  height: 96px;
  display: grid;
  align-items: end;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.35rem;
}

.bars b {
  border-radius: 999px;
  background: linear-gradient(180deg, #7f9dff, #19d2c2);
  transform-origin: bottom center;
  animation: shimmer-bar 2.4s ease-in-out infinite;
}

.bars b:nth-child(1) {
  height: 32%;
  animation-delay: 0s;
}
.bars b:nth-child(2) {
  height: 55%;
  animation-delay: 0.15s;
}
.bars b:nth-child(3) {
  height: 42%;
  animation-delay: 0.3s;
}
.bars b:nth-child(4) {
  height: 70%;
  animation-delay: 0.45s;
}
.bars b:nth-child(5) {
  height: 80%;
  animation-delay: 0.6s;
}
.bars b:nth-child(6) {
  height: 92%;
  animation-delay: 0.75s;
}

.score-panel div {
  margin-top: 0.45rem;
  font-size: 2rem;
  font-weight: 800;
}

.score-panel span {
  color: var(--text-dim);
  font-size: 0.83rem;
}

.proof-rail {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 2.4rem;
}

.proof-rail p {
  margin: 0;
  color: var(--text-dim);
}

.proof-rail div {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.proof-rail span {
  border-radius: 999px;
  border: 1px solid rgba(163, 184, 255, 0.24);
  background: rgba(16, 24, 45, 0.66);
  padding: 0.42rem 0.85rem;
  font-size: 0.82rem;
}

.section {
  margin: 3.2rem 0;
}

.section-heading {
  margin-bottom: 1.25rem;
}

.section-heading h2 {
  margin-top: 0.65rem;
  font-size: clamp(1.55rem, 2vw, 2.2rem);
  max-width: 27ch;
}

.section-heading p:not(.eyebrow) {
  margin-top: 0.75rem;
  color: var(--text-dim);
}

.section-heading.centered {
  text-align: center;
}

.section-heading.centered h2 {
  margin-left: auto;
  margin-right: auto;
}

.value-grid,
.architecture-grid,
.module-grid,
.pricing-grid,
.testimonial-grid,
.docs-grid {
  display: grid;
  gap: 1rem;
}

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

.value-grid article,
.architecture-grid article,
.module-grid article,
.pricing-card,
.testimonial-grid article,
.docs-grid > div,
.docs-callout,
.docs-hero-card,
.docs-sidebar,
.docs-content section {
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.value-grid article,
.architecture-grid article,
.module-grid article,
.testimonial-grid article,
.docs-grid > div,
.docs-content section {
  padding: 1.1rem;
}

.value-grid p,
.architecture-grid p,
.module-grid p,
.testimonial-grid p {
  margin: 0.5rem 0 0;
  color: var(--text-dim);
}

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

.architecture-grid span,
.module-grid span {
  font-size: 0.72rem;
  color: #95ffef;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

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

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

.pricing-card {
  padding: 1.2rem;
}

.pricing-card .plan {
  font-size: 0.75rem;
  color: #95ffef;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.pricing-card h3 {
  margin-top: 0.5rem;
  font-size: 2rem;
}

.pricing-card h3 span {
  font-size: 0.9rem;
  color: var(--text-dim);
}

.pricing-card p {
  color: var(--text-dim);
  margin: 0.5rem 0 0;
}

.pricing-card ul {
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.pricing-card ul li {
  font-size: 0.92rem;
  color: #cad4f8;
}

.pricing-card ul li::before {
  content: "•";
  color: #8cfff1;
  margin-right: 0.45rem;
}

.pricing-card .button {
  margin-top: 1rem;
}

.pricing-card.featured {
  background: linear-gradient(160deg, rgba(91, 123, 255, 0.22), rgba(22, 199, 179, 0.14));
}

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

.testimonial-grid strong {
  display: block;
  margin-top: 0.75rem;
  color: #8cfff1;
  font-size: 0.84rem;
}

.faq-list {
  display: grid;
  gap: 0.7rem;
}

.faq-list details {
  border: 1px solid var(--card-border);
  border-radius: 14px;
  background: rgba(18, 27, 49, 0.7);
  padding: 0.95rem 1rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
}

.faq-list p {
  margin: 0.6rem 0 0;
  color: var(--text-dim);
}

.final-cta-card {
  border-radius: 28px;
  padding: 2rem;
  background: linear-gradient(155deg, rgba(91, 123, 255, 0.3), rgba(22, 199, 179, 0.2));
  border: 1px solid rgba(171, 191, 255, 0.3);
  box-shadow: var(--shadow);
}

.final-cta-card h2 {
  margin-top: 0.65rem;
}

.final-cta-card p {
  margin-top: 0.8rem;
  color: #d0dcff;
}

.footer {
  width: min(1180px, 100% - 2rem);
  margin: 2.4rem auto 2.2rem;
  border-top: 1px solid rgba(157, 178, 255, 0.2);
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.site-body--docs .header-inner,
.site-body--docs > main,
.site-body--docs > footer {
  width: 100%;
  max-width: min(1480px, 100% - 2rem);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.docs-page {
  padding-top: 2rem;
}

.docs-page--nest {
  width: 100%;
}

.docs-hero--wide {
  width: 100%;
}

.docs-layout {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  gap: clamp(1rem, 2.5vw, 2.25rem);
  align-items: start;
}

.docs-sidebar--nest {
  padding: 1rem 0.85rem;
  border-radius: 16px;
  border: 1px solid rgba(145, 167, 255, 0.18);
  background: rgba(10, 16, 34, 0.75);
  position: sticky;
  top: 88px;
  align-self: start;
  max-height: calc(100vh - 100px);
  overflow: auto;
  min-width: 0;
}

.docs-nav-group {
  margin-bottom: 1.15rem;
}

.docs-search-wrap {
  margin: 0 0.2rem 1rem;
}

.docs-search-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7a87b8;
  margin: 0 0 0.35rem;
}

.docs-search-input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(145, 167, 255, 0.25);
  background: rgba(7, 11, 24, 0.95);
  color: #eef2ff;
  padding: 0.52rem 0.62rem;
  font-size: 0.84rem;
  outline: none;
}

.docs-search-input:focus {
  border-color: #5d89ff;
  box-shadow: 0 0 0 3px rgba(93, 137, 255, 0.2);
}

.docs-search-input::placeholder {
  color: #8996c2;
}

.docs-search-meta {
  margin: 0.4rem 0 0;
  font-size: 0.73rem;
  color: #8f9ac3;
}

.docs-nav-group:last-child {
  margin-bottom: 0;
}

.docs-nav-heading {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7a87b8;
  margin: 0 0 0.4rem 0.35rem;
}

.docs-sidebar--nest a {
  display: block;
  border-radius: 10px;
  padding: 0.42rem 0.6rem;
  color: var(--text-dim);
  font-size: 0.88rem;
  border-left: 2px solid transparent;
  margin-bottom: 0.1rem;
}

.docs-sidebar--nest a:hover {
  background: rgba(91, 123, 255, 0.14);
  color: #fff;
}

.docs-sidebar--nest a.is-active {
  color: #fff;
  background: rgba(91, 123, 255, 0.2);
  border-left-color: #16c7b3;
}

.docs-content--nest {
  max-width: none;
  width: 100%;
  min-width: 0;
}

.docs-content--nest section {
  padding-bottom: 1.75rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(145, 167, 255, 0.12);
}

.docs-content--nest section:last-of-type {
  border-bottom: none;
}

.docs-hidden {
  display: none !important;
}

.docs-content--nest section[id],
.docs-content--nest h2[id],
.docs-content--nest h3[id] {
  scroll-margin-top: 5.75rem;
}

.docs-steps {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
  color: var(--text-dim);
  display: grid;
  gap: 0.85rem;
  max-width: 72ch;
}

.docs-steps li::marker {
  color: #5d89ff;
  font-weight: 700;
}

.docs-steps li strong {
  color: #dfe6ff;
}

.docs-table-wrap {
  margin-top: 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid rgba(152, 174, 255, 0.18);
  background: rgba(6, 10, 22, 0.45);
}

.docs-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.84rem;
  background: transparent;
}

.docs-table th,
.docs-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.55rem 0.72rem;
  border-bottom: 1px solid rgba(152, 174, 255, 0.12);
}

.docs-table th {
  color: #8cfff1;
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 0.74rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.docs-table td code {
  font-size: 0.8em;
  color: #c8d6ff;
}

.docs-table tr:last-child td {
  border-bottom: none;
}

.docs-content--nest section > p {
  max-width: 72ch;
}

.docs-content--nest section > ul.docs-list {
  max-width: 72ch;
}

.docs-content--nest section .docs-table-wrap,
.docs-content--nest section .docs-callout,
.docs-content--nest section .docs-grid,
.docs-content--nest section .docs-code-block {
  max-width: none;
}

.docs-search-input:focus-visible {
  outline: 2px solid rgba(22, 199, 179, 0.45);
  outline-offset: 1px;
}

.docs-content--nest h2 {
  color: var(--text);
  margin-top: 0;
  font-size: 1.45rem;
}

.docs-content--nest section:first-of-type h2 {
  padding-top: 0;
}

.docs-content--nest h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.05rem;
  color: #dfe6ff;
}

.docs-list {
  margin: 0.75rem 0 0;
  padding-left: 1.15rem;
  color: var(--text-dim);
}

.docs-list li {
  margin-bottom: 0.35rem;
}

.docs-grid--urls {
  margin-top: 0.75rem;
}

.docs-code-block {
  margin: 1rem 0 0;
  border-radius: 12px;
  border: 1px solid rgba(152, 174, 255, 0.2);
  background: rgba(6, 10, 22, 0.95);
  overflow: hidden;
}

.docs-code-block--inline {
  margin-top: 0.65rem;
}

.docs-code-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.4rem 0.65rem;
  background: rgba(12, 18, 36, 0.98);
  border-bottom: 1px solid rgba(152, 174, 255, 0.14);
}

.docs-code-lang {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8cfff1;
}

.docs-code-copy {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.32rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(168, 189, 255, 0.35);
  background: rgba(91, 123, 255, 0.22);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.docs-code-copy:hover {
  background: rgba(91, 123, 255, 0.38);
}

.docs-code-copy.copied {
  background: rgba(22, 199, 179, 0.35);
  border-color: rgba(22, 199, 179, 0.55);
}

.docs-code-block pre {
  margin: 0;
  border: none;
  border-radius: 0;
  padding: 0.95rem 1rem 1.05rem;
  background: rgba(5, 8, 18, 0.98);
  font-size: 0.82rem;
  line-height: 1.55;
  overflow-x: auto;
  max-width: 100%;
}

.docs-code-block--inline pre {
  padding: 0.65rem 0.75rem;
  font-size: 0.78rem;
}

.docs-hero {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
}

.docs-hero h1 {
  margin-top: 0.6rem;
  font-size: clamp(1.8rem, 2.8vw, 2.8rem);
}

.docs-hero-card {
  padding: 1rem;
  min-width: 260px;
}

.docs-hero-card span {
  display: block;
  font-size: 0.75rem;
  color: #95ffef;
  margin-bottom: 0.5rem;
}

.docs-hero-card code {
  display: block;
  margin-top: 0.5rem;
  border-radius: 10px;
  background: rgba(9, 14, 29, 0.85);
  border: 1px solid rgba(153, 175, 255, 0.16);
  padding: 0.55rem;
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  color: #8cfff1;
  font-size: 0.81rem;
}

.docs-shell {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 1rem;
}

.docs-sidebar {
  padding: 0.7rem;
  position: sticky;
  top: 86px;
  align-self: start;
  display: grid;
  gap: 0.2rem;
}

.docs-sidebar a {
  border-radius: 10px;
  padding: 0.45rem 0.6rem;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.docs-sidebar a:hover {
  background: rgba(91, 123, 255, 0.18);
  color: #fff;
}

.docs-content {
  display: grid;
  gap: 0.75rem;
}

.docs-content section h2 {
  font-size: 1.35rem;
}

.docs-content section p,
.docs-content li,
.docs-content span {
  color: var(--text-dim);
}

.docs-callout {
  margin-top: 0.75rem;
  padding: 0.95rem 1rem;
}

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

pre {
  margin: 0.8rem 0 0;
  border-radius: 14px;
  background: rgba(9, 14, 29, 0.9);
  border: 1px solid rgba(152, 174, 255, 0.16);
  padding: 0.95rem;
  overflow: auto;
}

code {
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

@media (max-width: 980px) {
  .brand img {
    width: clamp(220px, 62vw, 300px);
    max-height: 64px;
  }

  .menu-button {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 1rem;
    width: min(320px, calc(100% - 2rem));
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 0.75rem;
    background: rgba(7, 11, 22, 0.95);
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    align-items: stretch;
  }

  .nav.is-open {
    display: flex;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .visual-body {
    grid-template-columns: 1fr;
  }

  .visual-side {
    display: none;
  }

  .value-grid,
  .architecture-grid,
  .module-grid,
  .pricing-grid,
  .examples-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .wallet-grid {
    grid-template-columns: 1fr;
  }

  .docs-hero {
    flex-direction: column;
    align-items: start;
  }

  .docs-shell {
    grid-template-columns: 1fr;
  }

  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: static;
  }

  .docs-sidebar--nest {
    position: static;
    max-height: none;
  }

  .docs-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ambient,
  .visual-float,
  .bars b,
  .score-pulse,
  .command-chip-glow,
  .hero-eyebrow,
  .metric-pop,
  .final-cta-glow::before {
    animation: none !important;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .lift-card,
  .example-card,
  .wallet-card,
  .proof-tags span {
    transition: none;
  }

  .lift-card:hover,
  .example-card:hover,
  .wallet-card:hover,
  .proof-tags span:hover {
    transform: none;
  }
}
