:root {
  --host-bg: #070b14;
  --host-bg-alt: #0d1424;
  --host-surface: rgba(255, 255, 255, 0.04);
  --host-surface-hover: rgba(255, 255, 255, 0.07);
  --host-border: rgba(255, 255, 255, 0.1);
  --host-text: #e8edf7;
  --host-muted: rgba(232, 237, 247, 0.68);
  --host-dim: rgba(232, 237, 247, 0.42);
  --host-accent: #38bdf8;
  --host-accent-2: #6366f1;
  --host-accent-glow: rgba(56, 189, 248, 0.25);
  --host-success: #34d399;
  --host-font: "Plus Jakarta Sans", system-ui, sans-serif;
  --host-mono: "IBM Plex Mono", ui-monospace, monospace;
  --host-radius: 16px;
  --host-max: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--host-font);
  background: var(--host-bg);
  color: var(--host-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

code {
  font-family: var(--host-mono);
  font-size: 0.88em;
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

.host-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.host-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 16px 24px;
  border: 0;
  border-bottom: 0;
  box-shadow: none;
  background: rgba(7, 11, 20, 0.88);
  backdrop-filter: blur(14px);
}

.host-header--compact {
  grid-template-columns: auto 1fr;
}

.host-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Match robomap.ai .brand-icon: official planet mark, 44×44, no frame. */
.host-logo__icon {
  width: 44px;
  height: 44px;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
  flex-shrink: 0;
  display: block;
}

.host-logo__product {
  font-size: 1rem;
  font-weight: 800;
  color: var(--host-text);
}

.host-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 0.92rem;
  font-weight: 600;
}

.host-nav a {
  color: var(--host-muted);
}

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

.host-nav__external {
  color: var(--host-dim) !important;
}

.host-header__actions {
  display: flex;
  gap: 10px;
}

.host-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--host-border);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.host-nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--host-text);
}

.host-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

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

.host-btn--primary {
  background: linear-gradient(135deg, var(--host-accent), var(--host-accent-2));
  color: #041018;
}

.host-btn--outline {
  border-color: var(--host-border);
  background: transparent;
  color: var(--host-text);
}

.host-btn--ghost {
  background: transparent;
  color: var(--host-muted);
}

.host-btn--lg {
  min-height: 48px;
  padding: 0 22px;
}

.host-btn--block {
  width: 100%;
}

.host-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  max-width: var(--host-max);
  margin: 0 auto;
  padding: 72px 24px 88px;
  overflow: hidden;
}

.host-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 30% 20%, black, transparent 70%);
  pointer-events: none;
}

.host-hero__content,
.host-hero__panel {
  position: relative;
}

.host-eyebrow {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--host-accent);
}

.host-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.host-lead {
  margin: 0 0 28px;
  max-width: 52ch;
  font-size: 1.08rem;
  color: var(--host-muted);
}

.host-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.host-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}

.host-stats div {
  padding: 16px;
  border: 1px solid var(--host-border);
  border-radius: var(--host-radius);
  background: var(--host-surface);
}

.host-stats dt {
  margin: 0 0 4px;
  font-size: 1.35rem;
  font-weight: 800;
}

.host-stats dd {
  margin: 0;
  font-size: 0.85rem;
  color: var(--host-muted);
}

.host-terminal {
  border: 1px solid var(--host-border);
  border-radius: 18px;
  overflow: hidden;
  background: #050810;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.host-terminal__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--host-border);
  background: rgba(255, 255, 255, 0.02);
}

.host-terminal__bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.host-terminal__bar span:first-child { background: #f87171; }
.host-terminal__bar span:nth-child(2) { background: #fbbf24; }
.host-terminal__bar span:nth-child(3) { background: #34d399; }

.host-terminal__bar code {
  margin-left: auto;
  background: transparent;
  color: var(--host-dim);
  font-size: 0.78rem;
}

.host-terminal__body {
  margin: 0;
  padding: 20px;
  font-family: var(--host-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--host-muted);
  overflow-x: auto;
}

.host-terminal__prompt { color: var(--host-accent); }
.host-terminal__ok { color: var(--host-success); }
.host-terminal__dim { color: var(--host-dim); }

.host-section {
  max-width: var(--host-max);
  margin: 0 auto;
  padding: 72px 24px;
}

.host-section--alt {
  max-width: none;
  background: var(--host-bg-alt);
  border-block: 1px solid var(--host-border);
}

.host-section--alt .host-section__head,
.host-section--alt .host-plans {
  max-width: var(--host-max);
  margin-inline: auto;
}

.host-section--cta {
  padding-bottom: 96px;
}

.host-section__head {
  max-width: 640px;
  margin-bottom: 40px;
}

.host-section__head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
}

.host-section__head p:last-child {
  margin: 0;
  color: var(--host-muted);
}

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

.host-card {
  padding: 24px;
  border: 1px solid var(--host-border);
  border-radius: var(--host-radius);
  background: var(--host-surface);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.host-card:hover {
  background: var(--host-surface-hover);
  border-color: rgba(56, 189, 248, 0.35);
}

.host-card__icon {
  margin-bottom: 16px;
  font-family: var(--host-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--host-accent);
}

.host-card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.host-card p {
  margin: 0;
  color: var(--host-muted);
  font-size: 0.95rem;
}

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

.host-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  border: 1px solid var(--host-border);
  border-radius: 20px;
  background: var(--host-surface);
}

.host-plan--featured {
  border-color: rgba(56, 189, 248, 0.45);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.08), rgba(99, 102, 241, 0.04));
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.12);
}

.host-plan__badge {
  position: absolute;
  top: 18px;
  right: 18px;
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--host-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.host-plan h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.host-plan__price {
  margin: 0 0 6px;
  font-size: 2rem;
  font-weight: 800;
}

.host-plan__price small {
  font-size: 1rem;
  font-weight: 600;
  color: var(--host-muted);
}

.host-plan__note {
  margin: 0 0 20px;
  color: var(--host-muted);
  font-size: 0.92rem;
}

.host-plan ul {
  flex: 1;
  margin: 0 0 24px;
  padding-left: 18px;
  color: var(--host-muted);
  font-size: 0.92rem;
}

.host-plan li + li {
  margin-top: 8px;
}

.host-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: host-step;
}

.host-steps li {
  counter-increment: host-step;
  padding: 24px;
  border: 1px solid var(--host-border);
  border-radius: var(--host-radius);
  background: var(--host-surface);
}

.host-steps li::before {
  content: counter(host-step, decimal-leading-zero);
  display: block;
  margin-bottom: 14px;
  font-family: var(--host-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--host-accent);
}

.host-steps h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.host-steps p {
  margin: 0;
  color: var(--host-muted);
  font-size: 0.94rem;
}

.host-cta {
  padding: 48px;
  border: 1px solid var(--host-border);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.12), transparent 45%),
    radial-gradient(circle at bottom left, rgba(99, 102, 241, 0.1), transparent 40%),
    var(--host-surface);
  text-align: center;
}

.host-cta h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

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

.host-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.host-footer {
  margin-top: auto;
  padding: 40px 24px 28px;
  border-top: 1px solid var(--host-border);
  background: var(--host-bg-alt);
}

.host-footer--compact {
  padding-block: 24px;
}

.host-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 24px;
  max-width: var(--host-max);
  margin: 0 auto 28px;
}

.host-footer__brand {
  margin: 0 0 6px;
  font-weight: 800;
}

.host-footer__copy,
.host-footer__label {
  margin: 0 0 10px;
  font-size: 0.85rem;
  color: var(--host-muted);
}

.host-footer__grid a {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--host-muted);
}

.host-footer__legal {
  max-width: var(--host-max);
  margin: 0 auto;
  font-size: 0.82rem;
  color: var(--host-dim);
  text-align: center;
}

.host-docs {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 40px;
  max-width: var(--host-max);
  margin: 0 auto;
  padding: 48px 24px 72px;
  flex: 1;
}

.host-docs__nav {
  position: sticky;
  top: 88px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.92rem;
}

.host-docs__nav-title {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--host-dim);
}

.host-docs__nav a {
  color: var(--host-muted);
}

.host-docs__content section {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--host-border);
}

.host-docs__content section:last-child {
  border-bottom: 0;
}

.host-docs__head h1 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

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

.host-docs__content h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

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

.host-docs__content ul {
  padding-left: 20px;
}

.host-docs__content pre {
  padding: 16px;
  border: 1px solid var(--host-border);
  border-radius: 12px;
  background: #050810;
  overflow-x: auto;
}

.host-docs__content pre code {
  padding: 0;
  background: transparent;
  font-size: 0.84rem;
}

.host-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.host-table th,
.host-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--host-border);
  text-align: left;
}

.host-table th {
  color: var(--host-dim);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 960px) {
  .host-header {
    grid-template-columns: 1fr auto auto;
  }

  .host-nav-toggle {
    display: block;
  }

  .host-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 16px 24px 20px;
    border-bottom: 1px solid var(--host-border);
    background: rgba(7, 11, 20, 0.98);
  }

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

  .host-header__actions {
    display: none;
  }

  .host-hero,
  .host-cards,
  .host-plans,
  .host-steps,
  .host-docs {
    grid-template-columns: 1fr;
  }

  .host-stats {
    grid-template-columns: 1fr;
  }

  .host-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .host-docs__nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .host-footer__grid {
    grid-template-columns: 1fr;
  }

  .host-cta {
    padding: 28px 20px;
  }
}
