:root {
  --bg: #0c0d12;
  --bg-elev: #14161c;
  --bg-card: #181b23;
  --fg: #e8eaf0;
  --fg-dim: #a0a6b8;
  --fg-mute: #6b7080;
  --accent: #6ee7b7;
  --accent-2: #5eb6ff;
  --border: #262a35;
  --code-bg: #0a0b0f;
  --max: 1100px;
  --pad: 24px;
  --radius: 12px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre {
  font-family: "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}
code { background: var(--code-bg); padding: 2px 6px; border-radius: 4px; color: var(--accent); }
pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  overflow-x: auto;
  margin: 16px 0;
}
pre code { background: none; padding: 0; color: var(--fg); }
h1, h2, h3, h4 { margin-top: 0; line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(1.95rem, 4.4vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; margin-bottom: 24px; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 600; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(12, 13, 18, 0.9); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); }
.brand:hover { text-decoration: none; }
.brand-logo { width: 32px; height: 32px; display: block; }
.brand-text { font-weight: 700; font-size: 1.1rem; }
.brand-ex { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-left: 4px; }
.nav nav a { color: var(--fg-dim); margin-left: 24px; font-size: 0.95rem; }
.nav nav a:hover { color: var(--fg); text-decoration: none; }

/* hero */
.hero { padding: 80px 0 60px; border-bottom: 1px solid var(--border); }
.hero-media { display: flex; justify-content: flex-start; margin-bottom: 28px; }
.footer-strip-img { animation: floaty 7s ease-in-out infinite; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.85rem; font-weight: 600; margin: 0 0 16px; }
.lede { font-size: 1.2rem; color: var(--fg-dim); max-width: 760px; margin: 24px 0 32px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.cta { display: inline-block; padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 0.98rem; border: 1px solid transparent; transition: transform 0.05s ease, background 0.15s ease; }
.cta:hover { text-decoration: none; transform: translateY(-1px); }
.cta.primary { background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #0a0b0f; }
.cta.primary:hover { filter: brightness(1.08); }
.cta.ghost { background: transparent; color: var(--fg); border-color: var(--border); }
.cta.ghost:hover { background: var(--bg-elev); }
.install-snippet { margin-top: 8px; }
.install-snippet code { color: var(--fg); }

/* features */
.features { padding: 80px 0; border-bottom: 1px solid var(--border); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.feature { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.feature h3 { color: var(--accent); margin-bottom: 10px; }
.feature p { color: var(--fg-dim); margin: 0; font-size: 0.97rem; }

/* install */
.install { padding: 80px 0; border-bottom: 1px solid var(--border); }
.install-steps { list-style: none; padding: 0; margin: 32px 0 0; counter-reset: step; }
.install-steps li { padding: 24px 0; border-bottom: 1px solid var(--border); }
.install-steps li:last-child { border-bottom: none; }
.install-steps h4 { color: var(--accent); margin-bottom: 4px; }
.install-steps .note { color: var(--fg-dim); font-size: 0.94rem; margin: 8px 0 0; }
.alt-install { margin-top: 32px; padding: 16px; background: var(--bg-elev); border-radius: var(--radius); color: var(--fg-dim); font-size: 0.93rem; }

/* pricing */
.pricing { padding: 80px 0; border-bottom: 1px solid var(--border); }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 36px; }
.price-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 24px; display: flex; flex-direction: column; position: relative; }
.price-card-featured { border-color: var(--accent); box-shadow: 0 0 40px -8px rgba(110, 231, 183, 0.25); }
.featured-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #0a0b0f; padding: 4px 12px; border-radius: 20px; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.price { font-size: 2.4rem; font-weight: 800; margin: 8px 0 4px; color: var(--fg); }
.price-unit { font-size: 0.9rem; color: var(--fg-mute); font-weight: 400; }
.price-sub { color: var(--fg-dim); font-size: 0.9rem; margin: 0 0 20px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.price-card li { padding: 6px 0; color: var(--fg-dim); position: relative; padding-left: 22px; font-size: 0.95rem; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.price-card li strong { color: var(--fg); font-weight: 600; }
.price-card .cta { text-align: center; }
.price-foot { color: var(--fg-mute); font-size: 0.82rem; margin: 12px 0 0; text-align: center; }

/* hosted callout */
.hosted-callout { padding: 60px 0; background: var(--bg-elev); border-bottom: 1px solid var(--border); text-align: center; }
.hosted-callout h3 { margin-bottom: 12px; }
.hosted-callout p { color: var(--fg-dim); margin: 0; }

/* footer */
footer { padding: 40px 0; text-align: center; color: var(--fg-mute); font-size: 0.9rem; }
.footer-strip { margin: 0 auto 20px; max-width: 760px; }
.footer-strip-img { width: 100%; height: auto; display: block; border-radius: 18px; }
.footer-inner p { margin: 6px 0; }
.footer-links a { margin: 0 6px; color: var(--fg-dim); }

@keyframes floaty {
  0%, 100% { transform: translateY(0); filter: saturate(1); }
  50% { transform: translateY(-4px); filter: saturate(1.05); }
}

/* ───────────────────────── terminal (hero watch feed) ───────────────────────── */
.terminal {
  width: min(100%, 560px);
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(110, 231, 183, 0.04);
  font-family: "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  position: relative;
  animation: floaty 7s ease-in-out infinite;
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
}
.term-dots { display: inline-flex; gap: 7px; }
.term-dot { width: 11px; height: 11px; border-radius: 50%; display: block; }
.term-dot.red { background: #ff5f57; }
.term-dot.amber { background: #febc2e; }
.term-dot.green { background: #28c840; }
.term-title {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 auto; color: var(--fg-dim); font-size: 0.82rem; letter-spacing: 0.01em;
}
.term-bird { width: 18px; height: 18px; border-radius: 5px; display: block; }
.term-status {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
}
.term-status .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(110, 231, 183, 0.7);
  animation: term-pulse 1.8s ease-out infinite;
}
.term-body {
  padding: 16px 18px;
  height: 320px;
  overflow: hidden;
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--fg-dim);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22px);
          mask-image: linear-gradient(to bottom, transparent 0, #000 22px);
}
.term-line { white-space: pre-wrap; word-break: break-word; animation: term-in 0.18s ease both; }
.term-line .tok-cmd { color: var(--fg); }
.term-line .tok-prompt { color: var(--accent); }
.term-line .tok-dim { color: var(--fg-mute); }
.term-line .tok-ok { color: var(--accent); }
.term-line .tok-info { color: var(--accent-2); }
.term-line .tok-warn { color: #febc2e; }
.term-line .tok-err { color: #ff6b66; }
.term-line .tok-audit { color: #c4b5fd; }
.term-cursor {
  display: inline-block; width: 8px; height: 1.05em; vertical-align: text-bottom;
  background: var(--accent); margin-left: 2px; animation: term-blink 1s steps(2, start) infinite;
}
/* faint scanline sweep so it reads as "live" */
.term-scan {
  position: absolute; inset: 42px 0 0; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(110, 231, 183, 0.05) 50%, transparent);
  height: 60px; opacity: 0.6;
  animation: term-sweep 6s linear infinite;
}

@keyframes term-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
@keyframes term-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes term-pulse {
  0% { box-shadow: 0 0 0 0 rgba(110, 231, 183, 0.6); }
  70% { box-shadow: 0 0 0 7px rgba(110, 231, 183, 0); }
  100% { box-shadow: 0 0 0 0 rgba(110, 231, 183, 0); }
}
@keyframes term-sweep {
  0% { transform: translateY(-60px); }
  100% { transform: translateY(360px); }
}

@media (prefers-reduced-motion: reduce) {
  .terminal, .term-status .pulse, .term-scan { animation: none; }
  .term-line { animation: none; }
  .term-cursor { animation: none; opacity: 1; }
  .term-scan { display: none; }
}

/* ─────────────────── command terminal (copyable shell snippets) ─────────────────── */
.cmd-term {
  width: 100%;
  max-width: 560px;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  font-family: "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}
.install-snippet.cmd-term { margin-top: 18px; }
.cmd-term .term-bar { padding: 8px 12px; }
.cmd-term .term-title { font-size: 0.76rem; }
.cmd-copy {
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--fg-dim);
  font: inherit;
  font-size: 0.72rem;
  line-height: 1.4;
  padding: 3px 11px;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.cmd-copy:hover { color: var(--fg); border-color: var(--accent); }
.cmd-copy:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.cmd-copy.copied { color: var(--accent); border-color: var(--accent); }
.cmd-body {
  margin: 0;
  padding: 14px 16px;
  background: none;
  border: none;
  border-radius: 0;
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--fg);
}
.cmd-body code { background: none; padding: 0; color: var(--fg); }
.cmd-prompt { color: var(--accent); user-select: none; margin-right: 9px; }
