:root {
  --bg: #f7f8fb;
  --card: #ffffff;
  --muted: #5b6576;
  --text: #0b1020;
  --brand: #0a84ff;
  --brand-2: #5eb2ff;
  --ok: #2ecc71;
  --ring: 0 0 0 4px rgba(10, 132, 255, .25);
  --border: rgba(0, 0, 0, .08);
  --surface: #ffffff;
  --surface-alt: #f3f5f9;
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(1200px 800px at 20% -10%, rgba(10, 132, 255, .08), transparent 60%),
    radial-gradient(1000px 700px at 100% 0%, rgba(94, 178, 255, .08), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif
}

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

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .04)
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px
}

.brand img {
  height: 32px;
  width: auto
}

nav {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  white-space: nowrap;
  align-items: center
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, .12);
  background: linear-gradient(#fff, #f6f7fb);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 1px 1px rgba(0, 0, 0, .04);
  font-weight: 600;
  color: var(--text);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 6px 16px rgba(0, 0, 0, .08)
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--ring), inset 0 1px 0 rgba(255, 255, 255, .95)
}

.btn.primary {
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  color: #fff;
  border: 1px solid rgba(10, 132, 255, .6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 16px rgba(10, 132, 255, .25)
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items: center;
  padding: 38px 0
}

.hero h1 {
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.1;
  margin: 0 0 10px
}

.hero p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 18px
}

.cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap
}

.banner {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .08)
}

.banner img {
  display: block;
  width: 100%;
  height: auto
}

section {
  margin: 28px 0
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px
}

.card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .05)
}

.card h3 {
  margin: 2px 0 10px
}

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

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #0b1020;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 10px
}

.kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px
}

.kpi {
  background: linear-gradient(180deg, rgba(46, 204, 113, .12), rgba(46, 204, 113, .06));
  border: 1px solid rgba(46, 204, 113, .25);
  border-radius: 16px;
  padding: 16px;
  text-align: center
}

.kpi .v {
  font-size: 30px;
  font-weight: 800
}

.kpi .l {
  color: var(--muted)
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px
}

footer {
  margin-top: 34px;
  border-top: 1px solid rgba(0, 0, 0, .06);
  padding: 20px 0;
  color: #4a5565;
  font-size: 14px
}

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

  .cards {
    grid-template-columns: 1fr
  }

  .kpis {
    grid-template-columns: 1fr
  }

  .grid-2 {
    grid-template-columns: 1fr
  }

  nav {
    justify-content: flex-end
  }
}

@media (max-width: 520px) {
  .btn {
    padding: 8px 10px;
    font-size: 13px
  }

  .top {
    gap: 8px
  }
}

/* ---------------- Help / Docs Page ---------------- */
.page-hero {
  padding: 72px 0 40px;
  display: grid;
  gap: 32px
}

.breadcrumb {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 8px
}

.gradient-text {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent
}

.grid {
  display: grid;
  gap: 28px
}

.card.help {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 18px;
  padding: 18px
}

.card.help:before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .05;
  background: radial-gradient(circle at 30% 20%, var(--brand), transparent 60%)
}

.module-block {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 26px 10px;
  position: relative;
  background: var(--surface-alt)
}

.step-list {
  counter-reset: steps;
  display: grid;
  gap: 18px;
  margin: 28px 0
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 18px 18px 18px 52px;
  border-radius: 12px;
  position: relative;
  line-height: 1.45
}

.step:before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--brand-2);
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px -2px rgba(0, 0, 0, .25)
}

.badge.inline {
  display: inline-block;
  padding: 4px 10px;
  font-size: .65rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  border-radius: 20px;
  background: var(--brand);
  color: #fff;
  margin-right: 6px
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 0;
  font-size: .9rem
}

.compare-table th,
.compare-table td {
  padding: 10px 12px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top
}

.compare-table th {
  background: var(--surface);
  font-weight: 600
}

details.faq {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  background: var(--surface)
}

details.faq+details.faq {
  margin-top: 10px
}

details.faq[open] {
  background: var(--surface-alt)
}

.callout {
  border: 1px solid var(--brand);
  background: rgba(0, 0, 0, .03);
  padding: 16px 18px;
  border-radius: 12px;
  display: flex;
  gap: 14px;
  align-items: flex-start
}

.inline-code {
  font-family: monospace;
  background: var(--surface-alt);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: .85em
}

.flow {
  display: grid;
  gap: 54px;
  margin-top: 10px
}

.subtle {
  color: var(--muted);
  font-size: .9rem
}

.toc {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 18px 20px;
  border-radius: 14px;
  position: sticky;
  top: 20px;
  max-height: 80vh;
  overflow: auto
}

.toc h4 {
  margin-top: 0;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted)
}

.toc a {
  display: block;
  padding: 6px 0;
  color: var(--text);
  text-decoration: none;
  font-size: .85rem
}

.toc a:hover {
  color: var(--brand)
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 50px 0
}

.cta-final {
  text-align: center;
  padding: 60px 0 30px
}

.cta-final h2 {
  font-size: 2rem;
  margin: 0 0 12px
}

.cta-final p {
  max-width: 60ch;
  margin: 0 auto 24px;
  color: var(--muted)
}

.btn.secondary {
  background: var(--surface);
  border: 1px solid var(--border)
}

.btn.secondary:hover {
  border-color: var(--brand)
}

/* Responsive adjustments */
@media (max-width:1100px) {
  .grid.docs-two-cols {
    grid-template-columns: 1fr 300px
  }
}

@media (max-width:880px) {
  .grid.docs-two-cols {
    grid-template-columns: 1fr
  }

  .toc {
    position: relative;
    top: auto;
    max-height: none;
    margin-top: 20px
  }
}

@media (max-width:600px) {
  .page-hero {
    padding: 56px 0 24px
  }

  .step {
    padding: 16px 16px 16px 48px
  }

  .cta-final h2 {
    font-size: 1.65rem
  }
}

/* ---------------- Demo / Friendly Steps ---------------- */
.demo-block {
  margin: 28px 0 10px;
  padding: 20px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  background: var(--surface-alt)
}

.demo-block h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  letter-spacing: .5px
}

.demo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  background: repeating-linear-gradient(45deg, #e9edf3, #e9edf3 10px, #dfe3ea 10px, #dfe3ea 20px);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
  padding: 12px;
  font-size: .85rem
}

.friendly-steps {
  counter-reset: fs;
  margin: 24px 0;
  display: grid;
  gap: 14px
}

.friendly-steps li {
  list-style: none;
  position: relative;
  padding: 14px 16px 14px 50px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: .95rem
}

.friendly-steps li:before {
  counter-increment: fs;
  content: counter(fs);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .15)
}

.simple-note {
  background: rgba(10, 132, 255, .08);
  border: 1px solid rgba(10, 132, 255, .25);
  padding: 14px 16px;
  border-radius: 12px;
  font-size: .85rem;
  color: var(--muted);
  margin-top: 14px
}

.section-mini-title {
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 4px;
  font-weight: 600
}