:root {
  --bg: #0b0e14;
  --bg-alt: #0e121b;
  --panel: #121724;
  --border: #232b3d;
  --text: #e6eaf2;
  --muted: #8b93a7;
  --accent: #34d399;
  --accent-dim: #1e5e46;
  --danger: #f87171;
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 750; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.05rem; font-weight: 650; }

main { max-width: 960px; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- nav ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 960px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}
.logo-dot { color: var(--accent); }

.nav-cta {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .45rem .9rem;
  transition: border-color .15s ease;
}
.nav-cta:hover { border-color: var(--accent); text-decoration: none; }

/* ---------- hero ---------- */

.hero { text-align: center; padding: 4rem 0 3rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  border-radius: 999px;
  padding: .25rem .8rem;
  margin-bottom: 1.25rem;
}

.sub {
  max-width: 640px;
  margin: 1.25rem auto 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  gap: .75rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  border-radius: 10px;
  padding: .8rem 1.5rem;
  font-weight: 650;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .1s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: #06231a;
  border: 1px solid var(--accent);
}
.btn-primary:hover { background: #3fe0a4; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--muted); }

.btn-block { width: 100%; }

/* ---------- terminal ---------- */

.terminal {
  margin: 3rem auto 0;
  max-width: 640px;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem .9rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.terminal-bar .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #3a4256;
}
.terminal-bar .dot:nth-child(1) { background: #f87171; }
.terminal-bar .dot:nth-child(2) { background: #fbbf24; }
.terminal-bar .dot:nth-child(3) { background: #34d399; }

.term-title {
  margin-left: auto;
  margin-right: auto;
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--muted);
}

.terminal-body {
  margin: 0;
  padding: 1.1rem 1.2rem;
  font-family: var(--font-mono);
  font-size: .85rem;
  line-height: 1.7;
  overflow-x: auto;
  white-space: pre;
}

.prompt { color: var(--accent); }
.ok { color: var(--accent); }
.muted { color: var(--muted); }

/* ---------- sections ---------- */

section { padding: 3.5rem 0; }
section h2 { text-align: center; margin-bottom: 2rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem;
}

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

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
  margin-bottom: .75rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.feature {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem;
}

.card p, .feature p, .steps p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- form ---------- */

.join {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.join-sub { color: var(--muted); margin: 0 auto 2rem; max-width: 480px; }

#lead-form {
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.8rem;
}

#lead-form label {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  margin: 1rem 0 .35rem;
}
#lead-form label:first-child { margin-top: 0; }

.req { color: var(--accent); }

#lead-form input[type="email"],
#lead-form input[type="text"],
#lead-form input[type="url"],
#lead-form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: .65rem .8rem;
  font-size: .95rem;
  font-family: inherit;
  transition: border-color .15s ease;
}
#lead-form textarea { resize: vertical; }
#lead-form input:focus, #lead-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

#lead-form .btn { margin-top: 1.4rem; }

.form-status { min-height: 1.2rem; margin: .8rem 0 0; font-size: .9rem; }
.form-status.error { color: var(--danger); }
.form-status.success { color: var(--accent); }

.microcopy { color: var(--muted); font-size: .8rem; margin: .9rem 0 0; }

#lead-form.hidden { display: none; }

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding: 2.5rem 1.5rem 3rem;
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
}

.footer-links { display: flex; gap: 1.5rem; justify-content: center; margin-bottom: .75rem; }

.footer-note { margin: 0; }

.privacy {
  max-width: 640px;
  margin: 1.5rem auto 0;
  text-align: left;
  font-size: .85rem;
}
.privacy summary { cursor: pointer; color: var(--muted); }
.privacy p { color: var(--muted); margin-top: .6rem; }

/* ---------- responsive ---------- */

@media (max-width: 640px) {
  .hero { padding-top: 2.5rem; }
  .terminal-body { font-size: .75rem; }
  section { padding: 2.5rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
