:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-soft: #0d1728;
  --panel: rgba(13, 23, 40, 0.78);
  --panel-strong: rgba(16, 28, 49, 0.96);
  --line: rgba(170, 187, 210, 0.16);
  --text: #f5f8fc;
  --muted: #a8b5c8;
  --accent: #57e1c1;
  --accent-2: #ffb86c;
  --accent-3: #7cd4ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max-width: 1180px;
  --header-height: 78px;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(87, 225, 193, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(124, 212, 255, 0.12), transparent 24%),
    linear-gradient(180deg, #06101d 0%, #09111d 42%, #050912 100%);
  min-height: 100vh;
}

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

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
}

::selection {
  background: rgba(87, 225, 193, 0.25);
  color: var(--text);
}

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(7, 17, 31, 0.72);
  border-bottom: 1px solid rgba(170, 187, 210, 0.08);
}

.header-inner,
.footer-inner,
.page-inner,
.hero-inner,
.docs-grid,
.features-grid,
.channel-grid,
.step-grid,
.stats-grid {
  width: min(var(--max-width), calc(100vw - 32px));
  margin: 0 auto;
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand-mark {
  position: relative;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 16px;
  background: radial-gradient(circle, rgba(87, 225, 193, 0.2), rgba(124, 212, 255, 0.08) 48%, transparent 72%);
  filter: blur(7px);
  opacity: 0.85;
}

.brand-mark img {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 1px rgba(209, 229, 247, 0.55)) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.28));
}

.brand-title {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-title strong {
  font-size: 1.05rem;
}

.brand-title span {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--muted);
  font-size: 0.94rem;
  transition: color 180ms ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

.hero {
  padding: 64px 0 36px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: 44px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(87, 225, 193, 0.2);
  border-radius: 999px;
  background: rgba(87, 225, 193, 0.08);
  color: #d7fff5;
  font-size: 0.84rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--text);
}

.hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(3rem, 4.4vw, 4.8rem);
  line-height: 1.04;
  max-width: 12ch;
}

.hero p,
.section p,
.page-hero p,
.docs-card p,
.feature p,
.channel p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.02rem;
}

.hero-copy {
  max-width: 640px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--accent), #8ef2d7);
  color: #04121b;
}

.button-primary:hover {
  color: #ffffff;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line);
  color: var(--text);
}

.surface {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025)),
    var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
}

.hero-panel,
.hero-poster-frame {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  margin: 0;
}

.hero-panel {
  padding: 32px;
  min-height: 430px;
}

.hero-panel::before,
.hero-panel::after,
.hero-poster-frame::before,
.hero-poster-frame::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.7;
}

.hero-panel::before {
  width: 260px;
  height: 260px;
  top: -60px;
  right: -20px;
  background: radial-gradient(circle, rgba(87, 225, 193, 0.35), transparent 65%);
}

.hero-panel::after {
  width: 320px;
  height: 320px;
  left: -80px;
  bottom: -100px;
  background: radial-gradient(circle, rgba(124, 212, 255, 0.24), transparent 65%);
}

.hero-poster-frame {
  min-height: 340px;
  max-height: 420px;
  aspect-ratio: 1.55;
  padding: clamp(22px, 3vw, 36px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 82% 18%, rgba(87, 225, 193, 0.2), transparent 26%),
    linear-gradient(135deg, #f5fbff 0%, #dfeef6 48%, #bfd8e8 100%);
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: var(--shadow);
}

.hero-poster-frame::before {
  width: 320px;
  height: 320px;
  right: -90px;
  top: -100px;
  background: radial-gradient(circle, rgba(87, 225, 193, 0.28), transparent 66%);
}

.hero-poster-frame::after {
  width: 280px;
  height: 280px;
  left: -100px;
  bottom: -90px;
  background: radial-gradient(circle, rgba(124, 212, 255, 0.22), transparent 66%);
}

.hero-poster {
  position: relative;
  z-index: 1;
  width: min(96%, 820px);
  max-height: 86%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 18px 34px rgba(7, 17, 31, 0.24));
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  height: 100%;
}

.metric,
.glass-card,
.docs-card,
.feature,
.channel,
.timeline-step {
  position: relative;
  overflow: hidden;
  background: rgba(10, 19, 33, 0.76);
  border: 1px solid rgba(170, 187, 210, 0.12);
  border-radius: var(--radius-lg);
}

.metric {
  min-height: 150px;
  padding: 18px 18px 52px;
  display: flex;
  flex-direction: column;
}

.metric strong {
  display: block;
  font-size: 1.9rem;
  letter-spacing: 0;
  margin-top: 18px;
}

.metric span,
.metric small {
  color: var(--muted);
}

.metric:nth-child(1) {
  background:
    linear-gradient(135deg, rgba(87, 225, 193, 0.18), rgba(10, 19, 33, 0.72));
}

.metric:nth-child(2) {
  background:
    linear-gradient(135deg, rgba(124, 212, 255, 0.16), rgba(10, 19, 33, 0.72));
}

.metric:nth-child(3) {
  background:
    linear-gradient(135deg, rgba(255, 184, 108, 0.18), rgba(10, 19, 33, 0.72));
}

.metric:nth-child(4) {
  background:
    linear-gradient(135deg, rgba(157, 133, 255, 0.18), rgba(10, 19, 33, 0.72));
}

.metric-bar {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.metric-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--fill, 68%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
}

.metric:nth-child(3) .metric-bar::after {
  background: linear-gradient(90deg, var(--accent-2), #ffe8b5);
}

.metric:nth-child(4) .metric-bar::after {
  background: linear-gradient(90deg, #98a6ff, #c6b8ff);
}

.section {
  padding: 48px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section h2,
.page-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
}

.section .lede,
.page-hero .lede {
  max-width: 62ch;
}

.features-grid,
.docs-grid,
.channel-grid {
  display: grid;
  gap: 16px;
}

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

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

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

.feature,
.docs-card,
.channel {
  padding: 20px;
  min-height: 190px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.feature:hover,
.docs-card:hover,
.channel:hover {
  transform: translateY(-3px);
  border-color: rgba(87, 225, 193, 0.26);
  background: rgba(10, 19, 33, 0.9);
}

.feature p,
.docs-card p,
.channel p {
  margin-bottom: 0;
}

.eyebrow-inline {
  display: inline-flex;
  color: var(--accent);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 14px;
}

.docs-card h3,
.feature h3,
.channel h3 {
  margin: 0 0 10px;
  font-size: 1.45rem;
  line-height: 1.18;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.86rem;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.timeline-step {
  padding: 20px;
}

.timeline-step .index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(87, 225, 193, 0.12);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 18px;
}

.page-hero {
  padding: 52px 0 24px;
}

.page-hero .surface {
  padding: 28px;
}

.breadcrumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.breadcrumbs a {
  color: inherit;
}

.docs-page {
  padding-bottom: 40px;
}

.docs-page .section {
  padding-top: 24px;
}

.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  font-weight: 600;
}

.page-grid {
  width: min(var(--max-width), calc(100vw - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
}

.docs-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  align-self: start;
  padding: 18px;
  border-radius: var(--radius-xl);
  background: rgba(10, 19, 33, 0.9);
  border: 1px solid rgba(170, 187, 210, 0.12);
  box-shadow: var(--shadow);
}

.docs-sidebar h2,
.docs-section h2 {
  margin-top: 0;
}

.docs-section h2,
.docs-sidebar h2 {
  line-height: 1.16;
}

.docs-sidebar nav {
  display: grid;
  gap: 8px;
}

.docs-sidebar a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--muted);
  border: 1px solid transparent;
}

.docs-sidebar a[aria-current="page"],
.docs-sidebar a:hover {
  color: var(--text);
  background: rgba(87, 225, 193, 0.08);
  border-color: rgba(87, 225, 193, 0.18);
}

.docs-main {
  display: grid;
  gap: 20px;
}

.docs-section,
.docs-callout,
.docs-card.surface,
.feature.surface,
.channel.surface,
.timeline-step.surface {
  backdrop-filter: blur(8px);
}

.docs-section {
  padding: 28px;
}

.docs-section h2 {
  margin-bottom: 12px;
}

.docs-section p:last-child {
  margin-bottom: 0;
}

.callout {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: rgba(87, 225, 193, 0.08);
  border: 1px solid rgba(87, 225, 193, 0.18);
  color: var(--text);
}

.callout strong {
  font-size: 1rem;
}

.code-block {
  margin: 18px 0 0;
  padding: 18px;
  border-radius: var(--radius-lg);
  overflow-x: auto;
  border: 1px solid rgba(170, 187, 210, 0.12);
  background: #07101c;
  color: #d8e7f9;
  line-height: 1.65;
  font-size: 0.95rem;
}

.code-block.compact {
  margin-top: 12px;
}

.diagram-flow {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.diagram-node {
  position: relative;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: rgba(10, 19, 33, 0.92);
  border: 1px solid rgba(170, 187, 210, 0.12);
}

.diagram-node strong {
  display: block;
  margin-bottom: 4px;
}

.diagram-arrow {
  display: flex;
  justify-content: center;
  color: var(--accent);
  font-size: 1.4rem;
  line-height: 1;
}

.diagram-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.architecture-svg {
  width: 100%;
  height: auto;
  margin-top: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(170, 187, 210, 0.12);
  background: linear-gradient(180deg, rgba(7, 16, 28, 0.95), rgba(10, 19, 33, 0.98));
}

.diagram-caption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.diagram-legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.legend-item {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(170, 187, 210, 0.1);
}

.legend-item strong {
  display: block;
  margin-bottom: 6px;
}

.channel-flow {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

.channel-flow li strong {
  color: var(--text);
}

.two-up {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.stack {
  display: grid;
  gap: 16px;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(170, 187, 210, 0.12);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(10, 19, 33, 0.92);
}

th,
td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(170, 187, 210, 0.12);
}

th {
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

td {
  color: var(--muted);
}

.footer {
  padding: 28px 0 42px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.94rem;
  padding-top: 18px;
  border-top: 1px solid rgba(170, 187, 210, 0.12);
}

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

.docs-nav-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.docs-nav-inline a {
  padding: 8px 12px;
  border: 1px solid rgba(170, 187, 210, 0.14);
  border-radius: 999px;
  color: var(--muted);
}

.docs-nav-inline a:hover,
.docs-nav-inline a[aria-current="page"] {
  color: var(--text);
  border-color: rgba(87, 225, 193, 0.2);
  background: rgba(87, 225, 193, 0.08);
}

.hero-copy h1,
.page-hero h1 {
  text-wrap: balance;
}

.prose {
  display: grid;
  gap: 16px;
}

.prose p,
.prose li {
  color: var(--muted);
  line-height: 1.8;
}

.prose ul,
.prose ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.code-block {
  padding: 18px;
  border-radius: var(--radius-md);
  background: #08111d;
  border: 1px solid rgba(170, 187, 210, 0.12);
  overflow-x: auto;
  color: #dce7f2;
  line-height: 1.7;
  font-size: 0.94rem;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(170, 187, 210, 0.12);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(10, 19, 33, 0.88);
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(170, 187, 210, 0.1);
  text-align: left;
  color: var(--muted);
}

th {
  color: var(--text);
  font-size: 0.94rem;
  background: rgba(255, 255, 255, 0.03);
}

.footer {
  padding: 32px 0 44px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(170, 187, 210, 0.1);
  padding-top: 18px;
}

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

.mobile-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0%,
  100% {
    opacity: 0.75;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

.animate-in {
  animation: fadeUp 700ms ease both;
}

.animate-delay-1 {
  animation-delay: 120ms;
}

.animate-delay-2 {
  animation-delay: 220ms;
}

.animate-delay-3 {
  animation-delay: 320ms;
}

.hero-panel .metric:nth-child(odd) {
  animation: shimmer 7s ease-in-out infinite;
}

@media (max-width: 1080px) {
  .hero-inner,
  .features-grid,
  .channel-grid,
  .step-grid,
  .two-up,
  .page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .hero h1 {
    max-width: 13ch;
  }

  .docs-sidebar {
    position: static;
  }
}

@media (max-width: 760px) {
  .header-inner {
    align-items: start;
    padding: 14px 0;
    flex-direction: column;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 8px;
  }

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

  .mobile-toggle {
    display: inline-flex;
  }

  .hero-inner,
  .features-grid,
  .channel-grid,
  .step-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 32px;
  }

  .hero-panel {
    min-height: 420px;
  }

  .hero-poster-frame {
    min-height: 260px;
    max-height: none;
    aspect-ratio: 1.35;
  }

  .hero-poster {
    width: min(96%, 560px);
    max-height: 86%;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .page-grid,
  .two-up,
  .docs-grid,
  .features-grid,
  .channel-grid,
  .step-grid {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: static;
  }

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