:root {
  --bg: #0a0e13;
  --bg-2: #0d1319;
  --surface: #111821;
  --surface-2: #151d27;
  --border: #1f2a36;
  --border-strong: #2a3947;
  --text: #e6edf3;
  --muted: #8b98a5;
  --faint: #5c6b7a;
  --accent: #39d353;
  --accent-2: #58a6ff;
  --blocked: #d29922;
  --error: #f85149;
  --idle: #8b98a5;
  --radius: 14px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: rgba(88, 166, 255, 0.1);
  border: 1px solid rgba(88, 166, 255, 0.16);
  padding: 0.1em 0.38em;
  border-radius: 6px;
  color: #bcd6f7;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--surface);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 19, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 26px;
  height: 26px;
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.brand-mark .pupil { fill: currentColor; stroke: none; }
.brand-name { font-size: 18px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  color: var(--muted);
}
.nav-links a:hover { color: var(--text); }
.nav-links .btn { margin-left: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: #04120a;
  box-shadow: 0 8px 30px rgba(57, 211, 83, 0.24);
}
.btn-primary:hover { background: #46e05f; }
.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover { border-color: var(--muted); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 80px;
  border-bottom: 1px solid var(--border);
}
.hero-glow {
  position: absolute;
  inset: -40% 30% 40% -20%;
  background: radial-gradient(closest-side, rgba(57, 211, 83, 0.18), transparent 70%),
              radial-gradient(closest-side, rgba(88, 166, 255, 0.14), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
.hero h1 {
  font-size: clamp(38px, 5.4vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}
.lede {
  font-size: 17px;
  color: var(--muted);
  max-width: 520px;
  margin: 0 0 26px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}
.hero-points li { padding-left: 22px; position: relative; }
.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(57, 211, 83, 0.14);
}

/* ---------- Mock window ---------- */
.hero-visual { position: relative; }
.window {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}
.tl { width: 11px; height: 11px; border-radius: 50%; background: #2c3a48; }
.tl:nth-child(1) { background: #f85149; opacity: 0.7; }
.tl:nth-child(2) { background: #d29922; opacity: 0.7; }
.tl:nth-child(3) { background: #39d353; opacity: 0.7; }
.window-title {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
}
.agent-list { list-style: none; margin: 0; padding: 8px; display: grid; gap: 4px; }
.agent {
  display: grid;
  grid-template-columns: 12px 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 9px;
  border: 1px solid transparent;
  font-size: 14px;
}
.agent .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--idle); }
.agent .agent-name { font-family: var(--mono); color: var(--text); }
.agent .agent-meta { color: var(--muted); font-size: 12px; }
.agent.is-working .dot { background: var(--accent); }
.agent.is-blocked { background: rgba(210, 153, 34, 0.08); border-color: rgba(210, 153, 34, 0.35); }
.agent.is-blocked .dot { background: var(--blocked); box-shadow: 0 0 0 4px rgba(210, 153, 34, 0.16); }
.agent.is-blocked .agent-meta { color: #e3b341; }
.agent.is-done .dot { background: var(--accent-2); }
.agent.is-error .dot { background: var(--error); }
.agent.is-error .agent-meta { color: #ff7b72; }

.spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(57, 211, 83, 0.25);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.bell { width: 16px; height: 16px; color: var(--blocked); display: inline-flex; }
.bell svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.window-foot {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; border-bottom: 1px solid var(--border); }
.section-alt { background: var(--bg-2); }
.section-title {
  font-size: clamp(26px, 3.4vw, 36px);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.section-sub { color: var(--muted); margin: 0 0 40px; max-width: 640px; }

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(57, 211, 83, 0.1);
  color: var(--accent);
  margin-bottom: 16px;
}
.card-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin: 0 0 8px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- Flow ---------- */
.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 14px;
  margin-bottom: 48px;
}
.flow-node {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.flow-node-accent { border-color: rgba(57, 211, 83, 0.4); box-shadow: 0 0 0 1px rgba(57, 211, 83, 0.08) inset; }
.flow-node h3 { margin: 0 0 6px; font-size: 16px; }
.flow-node p { margin: 0; color: var(--muted); font-size: 13px; }
.flow-link {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  padding: 0 6px;
}

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { display: flex; gap: 14px; }
.step-num {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 13px;
  color: #04120a;
  background: var(--accent);
}
.steps h4 { margin: 2px 0 4px; font-size: 15px; }
.steps p { margin: 0; color: var(--muted); font-size: 13px; }

/* ---------- Install ---------- */
.install-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.install-block h3 { font-size: 15px; margin: 0 0 12px; color: var(--text); }
pre {
  margin: 0;
  background: #060a0e;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  overflow-x: auto;
}
pre code {
  background: none;
  border: 0;
  padding: 0;
  color: #c9d1d9;
  font-size: 13px;
  line-height: 1.7;
}
.c-dim { color: var(--faint); }
.c-key { color: #79c0ff; }
.c-str { color: #a5d6ff; }
.c-bool { color: #ff7b72; }
.c-num { color: #d2a8ff; }
.install-note { margin-top: 20px; color: var(--muted); font-size: 14px; }
.settings-code { max-width: 560px; }

/* ---------- Footer ---------- */
.footer { padding: 40px 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.footer-brand img { filter: none; }
.footer-note { margin: 0; color: var(--faint); font-size: 13px; }
.footer-links { display: flex; gap: 18px; font-size: 13px; color: var(--muted); }
.footer-links a:hover { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 64px 0 56px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr; }
  .flow-link { padding: 6px 0; }
  .steps { grid-template-columns: 1fr; }
  .install-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .nav-links a:not(.btn) { display: none; }
  .cards { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spinner { animation: none; }
  .btn:hover, .card:hover { transform: none; }
}
