:root {
  color-scheme: dark;
  --bg: #0f1417;
  --card: #161d21;
  --border: #2b383f;
  --text: #e7edef;
  --dim: #8ca0a8;
  --accent: #4fd1c5;
  --error: #e2645a;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a { color: inherit; }

.brand-word {
  text-transform: uppercase;
  font-weight: 700;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
}

/* --- shared buttons (same look as the dashboard) --- */

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #08211f;
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary:hover { filter: brightness(1.08); }

.btn-ghost {
  display: inline-block;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}

.hero-cta .btn-ghost {
  border-color: rgba(231, 237, 239, 0.65);
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-small { padding: 7px 14px; font-size: 13px; }

/* --- nav --- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 20, 23, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.brand-logo { height: 1.2em; width: auto; flex-shrink: 0; }

.nav-links {
  display: flex;
  gap: 22px;
  font-size: 14px;
  color: var(--dim);
  flex: 1;
}

.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--text); }

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

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .nav-cta .btn-primary { display: none; }
}

/* --- hero --- */

.hero {
  position: relative;
  /* the sticky nav takes ~65px of flow above the hero */
  min-height: calc(100vh - 65px);
  min-height: calc(100svh - 65px);
  display: flex;
  align-items: center;
  padding: 40px 24px 88px;
  background:
    linear-gradient(90deg, transparent 0%, transparent 38%, rgba(15, 20, 23, 0.55) 58%, rgba(15, 20, 23, 0.88) 100%),
    url("assets/hero-bg.jpg") center 35% / cover no-repeat;
}

.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-col { position: relative; z-index: 1; }

.hero-scroll {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
  animation: hero-scroll-bounce 2.4s ease-in-out infinite;
}

.hero-scroll svg { width: 18px; height: 18px; }

/* content can't fit one screen here — the hint would land below the fold */
@media (max-width: 720px), (max-height: 680px) {
  .hero-scroll { display: none; }
}

@keyframes hero-scroll-bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

.hero-col { width: 100%; }

.hero-col {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-inner {
  max-width: 600px;
  margin: 0 0 0 auto;
  text-align: right;
}

.hero h1 {
  font-size: 40px;
  line-height: 1.15;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.hero h1 code {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0 8px;
}

.hero-sub {
  font-size: 17px;
  color: var(--dim);
  margin: 0 0 32px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}

.hero-cta {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 36px;
}

.hero-code-label {
  font-size: 13px;
  color: var(--dim);
  margin: 0 0 10px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}

.hero-code {
  text-align: left;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  max-width: 560px;
  margin: 0 0 0 auto;
  font-size: 13px;
  overflow-x: auto;
}

.hero-code code { color: var(--accent); white-space: pre; line-height: 1.7; }

@media (max-width: 720px) {
  .hero { background: var(--bg); }
  .hero-inner { margin: 0 auto; text-align: center; }
  .hero h1 br { display: none; }
  .hero-cta { justify-content: center; flex-wrap: wrap; }
  .hero-code { margin: 0 auto; }
}

/* --- generic section --- */

.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 64px 24px;
}

.section-title {
  font-size: 26px;
  margin: 0 0 12px;
  text-align: center;
}

.section-sub {
  color: var(--dim);
  text-align: center;
  max-width: 620px;
  margin: 0 auto 40px;
  font-size: 15px;
}

/* --- how it works --- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 860px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
}

.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 20px;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--accent);
  color: #08211f;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.step h3 { font-size: 15px; margin: 0 0 8px; }
.step p { font-size: 13px; color: var(--dim); margin: 0; }

/* --- features --- */

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

@media (max-width: 860px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
}

.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.feature h3 { font-size: 15px; margin: 0 0 8px; }
.feature p { font-size: 13px; color: var(--dim); margin: 0; }

/* --- comparison table --- */

.table-wrap { overflow-x: auto; }

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  font-size: 14px;
}

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

.compare-table th {
  color: var(--dim);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.compare-table th:nth-child(2), .compare-table th:nth-child(3),
.compare-table td:nth-child(2), .compare-table td:nth-child(3) {
  text-align: center;
}

.compare-table tr:last-child td { border-bottom: none; }

.compare-table td.yes { color: var(--accent); }
.compare-table td.no { color: var(--dim); }

/* --- pricing --- */

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

@media (max-width: 860px) {
  .plans { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
}

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

.plan-highlight {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.plan-badge {
  position: absolute;
  top: -11px;
  left: 24px;
  background: var(--accent);
  color: #08211f;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 999px;
}

.plan-name { font-size: 15px; color: var(--dim); margin-bottom: 8px; }

.plan-price {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 22px;
}

.plan-price span { font-size: 14px; font-weight: 400; color: var(--dim); }

.plan-features {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
  flex: 1;
}

.plan-features li { padding-left: 20px; position: relative; }
.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.plan-cta { text-align: center; }

.plans-note {
  text-align: center;
  color: var(--dim);
  font-size: 12px;
  margin: 28px 0 0;
}

.plans-note + .plans-note { margin-top: 6px; }

/* --- install: GUI + CLI side by side --- */

.install-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 720px) {
  .install-grid { grid-template-columns: 1fr; }
}

.install-col h3 {
  font-size: 16px;
  margin: 0 0 14px;
}

.install-sub {
  text-align: left;
  max-width: none;
  margin: 0;
}

/* --- cli snippet (reused look from dashboard) --- */

.cli-steps {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 0 0 20px;
  overflow-x: auto;
}

.cli-steps code {
  color: var(--text);
  line-height: 1.7;
  white-space: pre;
  font-size: 13px;
}

/* --- faq --- */

.faq-list {
  max-width: 740px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px 20px;
}

.faq-item summary {
  padding: 16px 0;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  color: var(--dim);
  font-size: 18px;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item[open] summary::after { content: "–"; }

.faq-item p {
  margin: 0 0 16px;
  color: var(--dim);
  font-size: 13px;
}

/* --- footer --- */

.footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 18px;
  font-size: 13px;
  color: var(--dim);
  flex: 1;
}

.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--text); }

.footer-copy { color: var(--dim); font-size: 12px; }
