:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #05070a;
  color: #e8eff7;
  --bg: #05070a;
  --surface: rgba(15, 23, 42, 0.88);
  --surface-strong: #111827;
  --surface-soft: rgba(15, 23, 42, 0.72);
  --border: rgba(148, 163, 184, 0.16);
  --text: #e8eff7;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-strong: #0ea5e9;
  --shadow: 0 28px 80px rgba(3, 11, 24, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.09), transparent 25%),
    radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.08), transparent 28%),
    var(--bg);
  color: var(--text);
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1rem;
  gap: 1rem;
  backdrop-filter: blur(24px);
  background: rgba(5, 7, 10, 0.9);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.site-brand a {
  display: inline-flex;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.site-nav a {
  padding: 0.55rem 0.35rem;
  transition: color 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  transform: translateY(-1px);
}

.site-nav a.btn {
  padding: 0.85rem 1.2rem;
}

.hero {
  padding: 5rem 1rem 2rem;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

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

.eyebrow {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.75rem, 4vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.hero-copy p {
  margin-top: 1.5rem;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.8;
}

.action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.95rem 1.5rem;
  font-weight: 600;
  transition: transform 170ms ease, background 170ms ease, border-color 170ms ease;
}

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

.btn-primary {
  color: #05070a;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(148, 163, 184, 0.18);
}

.btn-ghost {
  color: var(--text);
  background: transparent;
  border-color: rgba(148, 163, 184, 0.18);
}

.panel {
  position: relative;
  overflow: hidden;
  border-radius: 1.75rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.82);
  box-shadow: var(--shadow);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 45%);
}

.panel-content {
  position: relative;
  padding: 2rem;
}

.hero-visual {
  border-radius: 1.75rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.08);
  background: #0c1220;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.section {
  padding: 4rem 1rem;
}

.section-heading {
  display: grid;
  gap: 1rem;
  max-width: 54rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.75rem);
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.feature-grid,
.card-grid,
.step-grid,
.roadmap-list,
.usecase-grid {
  display: grid;
  gap: 1.5rem;
}

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.75rem;
  border-radius: 1.5rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.card h3 {
  margin: 0;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.step {
  padding: 1.75rem;
  border-radius: 1.5rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.step-number {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent);
  font-weight: 700;
}

.step h3 {
  margin: 1rem 0 0.5rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.usecase-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.roadmap-list {
  grid-template-columns: 1fr;
}

.roadmap-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.4rem;
  border-radius: 1.5rem;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.roadmap-item span {
  display: inline-flex;
  min-width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.85rem;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent);
  font-weight: 700;
}

.roadmap-item p {
  margin: 0;
  color: var(--muted);
}

.cta-panel {
  padding: 3rem 2rem;
  border-radius: 2rem;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.12);
  text-align: center;
  box-shadow: var(--shadow);
}

.cta-panel h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
}

.cta-panel p {
  margin: 1.25rem auto 0;
  max-width: 48rem;
  color: var(--muted);
  line-height: 1.8;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.site-footer {
  padding: 2rem 1rem 3rem;
  text-align: center;
  color: var(--muted);
}

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

.docs-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  align-items: start;
  padding: 2.5rem 0;
}

.docs-sidebar {
  position: sticky;
  top: 1.5rem;
  max-height: calc(100vh - 3rem);
  padding: 1.5rem;
  border-radius: 1.5rem;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.sidebar-header {
  margin-bottom: 1.75rem;
}

.sidebar-header h1 {
  margin: 0.75rem 0 0;
  font-size: 1.75rem;
}

#docs-sidebar {
  display: grid;
  gap: 0.35rem;
}

.docs-link {
  display: block;
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background: transparent;
  color: var(--text);
  border: 1px solid transparent;
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.docs-link:hover,
.docs-link.active {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.18);
  transform: translateX(2px);
}

.docs-content {
  padding: 0;
}

.docs-topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.markdown-body {
  padding: 2rem;
  border-radius: 1.75rem;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
  color: #ffffff;
  margin-top: 1.75rem;
  margin-bottom: 1rem;
}

.markdown-body p,
.markdown-body li,
.markdown-body blockquote,
.markdown-body code {
  color: var(--muted);
}

.markdown-body a {
  color: var(--accent);
}

.markdown-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  background: rgba(148, 163, 184, 0.12);
  padding: 0.2rem 0.4rem;
  border-radius: 0.45rem;
}

.markdown-body pre {
  overflow-x: auto;
  padding: 1.25rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.markdown-body ul,
.markdown-body ol {
  padding-left: 1.35rem;
  margin: 1rem 0;
}

.markdown-body blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 3px solid rgba(56, 189, 248, 0.24);
}

@media (max-width: 900px) {
  .hero-grid,
  .docs-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .site-header,
  .cta-panel,
  .docs-sidebar,
  .markdown-body,
  .panel {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .site-nav {
    gap: 0.75rem;
  }

  .hero {
    padding-top: 3rem;
  }
}
