:root {
  --bg: #0c0d11;
  --bg-alt: #101218;
  --surface: #15171f;
  --surface-2: #1b1e28;
  --border: #262a36;
  --text: #e7e9ef;
  --muted: #9aa0b0;
  --faint: #6b7180;
  --accent: #7c83ff;
  --accent-2: #51d6a0;
  --accent-soft: rgba(124, 131, 255, 0.14);
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1080px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scrollbar-gutter: stable; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

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

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.4em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }

p { margin: 0 0 1rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font: inherit;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.7em 1.3em;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: #0b0c10;
  box-shadow: 0 6px 22px -8px var(--accent);
}
.btn-primary:hover { background: #9298ff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: #fff; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent-soft); }
.btn-block { width: 100%; }
.btn-lg { padding: 0.9em 1.8em; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(12, 13, 17, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55em;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { color: var(--muted); font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); }
.nav-links .btn { color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  padding: 84px 0 40px;
  text-align: center;
  background:
    radial-gradient(900px 420px at 50% -10%, var(--accent-soft), transparent 70%);
}
.lede {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 2rem;
}
.hero-actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.hero-note { color: var(--faint); font-size: 0.9rem; margin-top: 1.1rem; }

.hero-art { margin-top: 56px; }
.window {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
  text-align: left;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.window-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: #3a3f4d; }
.window-bar .dot:nth-child(1) { background: #ff5f57; }
.window-bar .dot:nth-child(2) { background: #febc2e; }
.window-bar .dot:nth-child(3) { background: #28c840; }
.window-title {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--faint);
}
.window-body { padding: 22px; }
.chat-line {
  font-size: 0.95rem;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 10px;
  max-width: 85%;
}
.chat-line.user { background: var(--accent-soft); border: 1px solid var(--border); margin-left: auto; }
.chat-line.assistant { background: var(--surface-2); border: 1px solid var(--border); }

.task-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.task-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  padding: 10px 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 9px;
}
.task-id {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 7px;
  border-radius: 6px;
}
.badge {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 20px;
}
.badge.done { color: var(--accent-2); background: rgba(81, 214, 160, 0.12); }
.badge.run { color: #febc2e; background: rgba(254, 188, 46, 0.12); }
.badge.wait { color: var(--faint); background: #20232d; }

/* ---------- Pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 64px 24px;
}
.pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.pillar h3 { margin-bottom: 0.35em; }
.pillar p { color: var(--muted); margin: 0; font-size: 0.96rem; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-lede { color: var(--muted); max-width: 720px; font-size: 1.08rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 44px 0;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 14px;
}
.step h4 { font-size: 1.02rem; margin-bottom: 0.4em; }
.step p { color: var(--muted); font-size: 0.92rem; margin: 0; }

.callout {
  background: linear-gradient(135deg, var(--accent-soft), transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}
.callout h3 { color: #fff; }
.callout p { color: var(--muted); margin: 0; }

.check-list { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 12px; }
.check-list li {
  position: relative;
  padding-left: 32px;
  color: var(--text);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(81, 214, 160, 0.15);
  box-shadow: inset 0 0 0 1.5px var(--accent-2);
}
.check-list li::after {
  content: "✓";
  position: absolute;
  left: 4.5px;
  top: 4px;
  font-size: 0.7rem;
  color: var(--accent-2);
  font-weight: 700;
}

/* ---------- Features ---------- */
.features-list {
  grid-template-columns: 1fr 1fr;
  gap: 14px 36px;
}
.features-list li { color: var(--muted); }
.features-list li strong { color: var(--text); }

/* ---------- FAQ ---------- */
.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 36px;
  max-width: 820px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 22px;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  font-weight: 600;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  color: var(--muted);
  margin: 0 0 18px;
  max-width: 70ch;
}

/* ---------- Security ---------- */
.tag-linux {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  background: rgba(81, 214, 160, 0.12);
  border: 1px solid rgba(81, 214, 160, 0.35);
  border-radius: 20px;
  padding: 2px 9px;
  vertical-align: middle;
}
.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 40px 0 24px;
}
.security-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.security-card h3 { color: #fff; }
.security-card p { color: var(--muted); margin: 0; font-size: 0.97rem; }
.security-note {
  color: var(--faint);
  font-size: 0.88rem;
  border-left: 2px solid var(--border);
  padding-left: 14px;
  margin-top: 8px;
}

/* ---------- Pricing ---------- */
.pricing-layout {
  display: grid;
  grid-template-columns: minmax(300px, 380px) 1fr;
  gap: 32px;
  margin-top: 40px;
  align-items: start;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
}
.price-card.highlight {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 30px 60px -40px var(--accent);
}
.price-head { margin-bottom: 18px; }
.price-tag { font-size: 3rem; font-weight: 800; line-height: 1; margin: 6px 0 2px; letter-spacing: -0.03em; }
.price-tag .currency { font-size: 1.5rem; vertical-align: top; color: var(--muted); margin-right: 2px; }
.price-tag-muted { font-size: 1.6rem; color: var(--accent-2); }
.price-sub { color: var(--faint); font-size: 0.9rem; margin: 0; }
.price-features { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 11px; }
.price-features li { position: relative; padding-left: 26px; color: var(--muted); font-size: 0.96rem; }
.price-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.price-card .btn { margin-top: auto; }
.price-fineprint { color: var(--faint); font-size: 0.78rem; text-align: center; margin: 12px 0 0; }

/* ---------- Screenshot gallery ---------- */
.gallery-title {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 14px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.shot {
  padding: 0;
  margin: 0;
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 16 / 10;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.shot:hover,
.shot:focus-visible {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 16px 30px -22px var(--accent);
  outline: none;
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Screenshot viewer (lightbox) ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 7, 10, 0.86);
  backdrop-filter: blur(6px);
  animation: lightbox-in 0.18s ease;
}
.lightbox[hidden] { display: none; }
.lightbox-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.lightbox-img {
  max-width: 96vw;
  max-height: 92vh;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9);
}
.lightbox-caption {
  color: var(--muted);
  font-size: 0.9rem;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.lightbox-close:hover { border-color: var(--accent); color: var(--accent); }
@keyframes lightbox-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- CTA ---------- */
.cta {
  text-align: center;
  padding: 90px 0;
  background: radial-gradient(700px 300px at 50% 120%, var(--accent-soft), transparent 70%);
}
.cta p { color: var(--muted); margin-bottom: 1.8rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 44px 0;
  margin-top: auto;
}
.footer-inner { display: grid; gap: 14px; text-align: center; }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 0.5em; font-weight: 700; }
.footer-links { display: flex; gap: 1.4rem; justify-content: center; }
.footer-links a { color: var(--muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--text); }
.disclaimer {
  color: var(--faint);
  font-size: 0.78rem;
  max-width: 560px;
  margin: 6px auto 0;
}
.copyright { color: var(--faint); font-size: 0.82rem; margin: 0; }

/* ---------- Docs ---------- */
.docs-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 48px;
  /* width:100% gives the grid a definite size so it always fills to max-width
     instead of shrink-wrapping to its content. Without it, the auto margins
     (it's a flex item of the column-flex body) suppress stretching and the
     whole layout drifts right on pages with narrow content. */
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  align-items: start;
  flex: 1;
}
.docs-sidebar {
  position: sticky;
  top: 64px;
  align-self: start;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  padding: 32px 0;
}
.docs-sidebar nav { display: block; }
.docs-nav-group { margin-bottom: 22px; }
.docs-nav-title {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--faint);
  margin: 0 0 10px;
  padding: 0 12px;
}
.docs-sidebar ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.docs-sidebar a {
  display: block;
  padding: 6px 12px;
  font-size: 0.92rem;
  color: var(--muted);
  border-radius: 7px;
  border-left: 2px solid transparent;
}
.docs-sidebar a:hover { color: var(--text); background: var(--surface); }
.docs-sidebar a.active {
  color: var(--text);
  background: var(--accent-soft);
  border-left-color: var(--accent);
}

.docs-content { padding: 40px 0 96px; min-width: 0; }
.docs-content h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 0.5em; }
.docs-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  margin: 0 0 4px;
}
.docs-eyebrow a { color: var(--accent); }
.docs-eyebrow a:hover { color: #9298ff; }
.docs-content article h2 { font-size: 1.4rem; margin-top: 1.6em; color: #fff; }
.docs-content article h2:first-child { margin-top: 0; }
.docs-content article h3 { margin-top: 1.4em; color: #fff; }
.docs-content p { color: var(--muted); max-width: 72ch; }

/* Prev / next pager */
.docs-pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.docs-pager-link {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  min-width: 0;
  transition: border-color 0.18s ease;
}
.docs-pager-link:hover { border-color: var(--accent); }
.docs-pager-link.next { text-align: right; margin-left: auto; }
.docs-pager-dir { font-size: 0.76rem; color: var(--faint); }
.docs-pager-title { font-weight: 600; color: var(--text); }
.docs-content ul.bullets,
.docs-content ol.bullets { color: var(--muted); max-width: 72ch; padding-left: 1.2em; }
.docs-content ul.bullets li,
.docs-content ol.bullets li { margin-bottom: 8px; }
.docs-content code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 6px;
  color: #c7cbff;
}
.docs-content pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  overflow-x: auto;
  max-width: 100%;
}
.docs-content pre code { background: none; border: none; padding: 0; color: var(--text); font-size: 0.86rem; }
.docs-note {
  display: flex;
  gap: 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 18px 0;
}
.docs-note.linux { border-left-color: var(--accent-2); }
.docs-note p { margin: 0; font-size: 0.92rem; color: var(--muted); max-width: none; }
.docs-note .docs-note-icon { font-size: 1.1rem; line-height: 1.5; }

.docs-figure { margin: 20px 0; }
.docs-figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.docs-figure figcaption {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

.docs-menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  width: calc(100% - 48px);
  margin: 16px 24px 0;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 880px) {
  .docs-layout { grid-template-columns: 1fr; gap: 0; }
  .docs-menu-toggle { display: flex; }
  .docs-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 12px 0 0;
    display: none;
  }
  .docs-sidebar.open { display: block; }
  .docs-content { padding-top: 20px; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  translate: -50% 20px;
  background: var(--surface-2);
  border: 1px solid var(--accent);
  color: var(--text);
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, translate 0.25s ease;
  z-index: 100;
  font-size: 0.92rem;
}
.toast.show { opacity: 1; translate: -50% 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .pricing-layout { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .features-list { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 1rem; }
  .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; }
}
