:root {
  color-scheme: dark;
  --bg: #090812;
  --bg-soft: #111022;
  --panel: rgba(24, 20, 43, .88);
  --panel-strong: rgba(33, 27, 61, .94);
  --text: #f5f2ff;
  --muted: #b8afd1;
  --soft: #ded8ff;
  --line: rgba(170, 137, 255, .22);
  --link: #d8caff;
  --accent: #8b5cf6;
  --accent-strong: #a855f7;
  --accent-hot: #ec4899;
  --accent-soft: rgba(139, 92, 246, .16);
  --shadow: 0 24px 70px rgba(0, 0, 0, .36);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(139, 92, 246, .34), transparent 30rem),
    radial-gradient(circle at 82% 18%, rgba(236, 72, 153, .18), transparent 26rem),
    linear-gradient(180deg, #100e22 0, var(--bg) 460px),
    var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
}

a {
  color: var(--link);
  font-weight: 650;
  text-decoration: none;
}

a:hover {
  color: #fff;
}

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

.nav {
  width: min(1100px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-weight: 760;
}

.brand-mark {
  width: 38px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-hot));
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 12px 28px rgba(139, 92, 246, .34);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
}

.nav-links span {
  color: var(--muted);
  font-size: 14px;
}

.auth-link {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  color: var(--soft);
}

.auth-link.auth-primary {
  border-color: rgba(168, 85, 247, .72);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
}

.wrap {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  padding: 82px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  gap: 34px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 5px 10px;
  border: 1px solid rgba(216, 202, 255, .22);
  border-radius: 999px;
  color: #e7ddff;
  background: var(--accent-soft);
  font-size: 13px;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: .04em;
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.06;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  margin: 0 0 12px;
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: 0;
}

h3 {
  margin: 18px 0 8px;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: 0;
}

p,
li {
  color: var(--muted);
}

.lead {
  max-width: 780px;
  font-size: 21px;
  color: var(--soft);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-weight: 750;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .24);
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-hot));
  border-color: rgba(216, 202, 255, .24);
  color: #fff;
}

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

.product-preview {
  overflow: hidden;
  transform: translateY(6px);
}

.preview-top {
  display: flex;
  gap: 7px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
}

.preview-top span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(216, 202, 255, .44);
}

.preview-body {
  display: grid;
  grid-template-columns: 132px 1fr;
  min-height: 280px;
}

.preview-sidebar {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
}

.preview-sidebar strong,
.preview-toolbar strong,
.post-row strong {
  color: var(--text);
}

.preview-sidebar .channel {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
}

.preview-sidebar .channel.active {
  background: var(--accent-soft);
  color: #efe9ff;
  font-weight: 750;
}

.preview-content {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
}

.preview-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.preview-toolbar em {
  color: #c4b5fd;
  font-style: normal;
  font-weight: 750;
}

.post-row {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .05);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .18);
}

.post-row small {
  display: block;
  color: var(--muted);
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #a78bfa;
  box-shadow: 0 0 0 5px rgba(167, 139, 250, .14);
}

.status-dot.muted {
  background: #655d82;
  box-shadow: none;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.quick-card {
  padding: 22px;
}

.quick-card dl {
  margin: 0;
}

.quick-card dt {
  margin-top: 14px;
  color: var(--text);
  font-weight: 750;
}

.quick-card dt:first-child {
  margin-top: 0;
}

.quick-card dd {
  margin: 4px 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.section {
  padding: 22px 0;
}

.section-card {
  padding: 26px;
}

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

.feature-card {
  padding: 24px;
  transition: transform .18s ease, box-shadow .18s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 60px rgba(0, 0, 0, .42);
}

.feature-card h2 {
  font-size: 21px;
}

.feature-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: var(--accent-soft);
  color: #d8caff;
  font-weight: 850;
}

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

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

.flow {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.flow-section {
  background: var(--panel-strong);
}

.flow li {
  position: relative;
  min-height: 38px;
  margin: 0 0 14px;
  padding-left: 48px;
}

.flow li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: -1px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-hot));
  color: #fff;
  font-weight: 800;
}

.doc {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0 72px;
}

.doc-header {
  margin-bottom: 22px;
  padding: 30px;
}

.updated {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  margin-top: 44px;
  border-top: 1px solid var(--line);
  padding: 32px 0;
  background: rgba(9, 8, 18, .72);
  color: var(--muted);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(160px, .7fr) minmax(190px, .7fr);
  gap: 24px;
  align-items: start;
}

.footer-brand {
  width: fit-content;
}

.footer-grid p {
  max-width: 470px;
  margin: 12px 0 0;
}

.footer-links {
  display: grid;
  gap: 8px;
}

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

.footer-links span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

@media (max-width: 820px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .nav-links {
    justify-content: flex-start;
  }

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

  .hero {
    padding-top: 38px;
  }

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

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

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