*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0d0d0f;
  --surface: #141417;
  --surface-raised: #1a1a1f;
  --border: #222226;
  --text: #e8e8ec;
  --muted: #7a7a8a;
  --accent: #5b6fff;
  --accent-dim: rgba(91, 111, 255, 0.1);
  --green: #3dd68c;
  --font: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ── */

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(13, 13, 15, 0.88);
  backdrop-filter: blur(14px);
  z-index: 10;
}

.logo {
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
  text-decoration: none;
}

nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

nav a:hover { color: var(--text); }
nav a.nav-active { color: var(--text); }

/* ── Layout ── */

main {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}

section:last-child { border-bottom: none; }

/* ── Hero ── */

.hero {
  padding-top: 6.5rem;
  padding-bottom: 6rem;
  text-align: center;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.3rem 0.85rem;
  margin-bottom: 1.75rem;
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
}

.subheading {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 2.25rem;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  flex-wrap: wrap;
}

/* ── Buttons ── */

.btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  padding: 0.65rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.15s;
}

.btn-primary:hover { opacity: 0.88; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}

.btn-ghost:hover {
  color: var(--text);
  border-color: #444;
}

/* ── Section headers ── */

.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 1rem;
}

.section-sub {
  color: var(--muted);
  font-size: 0.975rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 560px;
}

/* ── Steps ── */

.steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 1rem;
}

.step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 0.1rem;
}

.step-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.step-content strong {
  font-size: 0.95rem;
  font-weight: 500;
}

.step-content span {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

.step-content code {
  font-family: var(--mono);
  font-size: 0.82rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.35em;
  color: var(--text);
}

.step-link {
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  width: fit-content;
}

.step-link:hover { text-decoration: underline; }

/* ── Chat mock ── */

.chat-mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

.chat-line {
  font-family: var(--mono);
  font-size: 0.82rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.chat-prompt { color: var(--muted); }
.chat-cmd { color: var(--text); }

.chat-response { color: var(--muted); }

.chat-tag {
  color: var(--green);
  font-weight: 500;
}

/* ── Command grid ── */

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

.command-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.command-card code {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  word-break: break-all;
}

.command-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ── Code block ── */

.code-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  overflow-x: auto;
}

.code-block pre,
.code-line {
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.75;
  color: var(--text);
  white-space: pre;
}

/* ── Trust / features ── */

.trust {}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}

.feature-icon {
  color: var(--green);
  font-size: 0.85rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.feature-list strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.15rem;
}

.feature-list span {
  font-size: 0.875rem;
  color: var(--muted);
}

.feature-list code {
  font-family: var(--mono);
  font-size: 0.78rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.35em;
  color: var(--text);
}

/* ── Footer ── */

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border);
  max-width: 100%;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.825rem;
  transition: color 0.15s;
}

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

/* ── Responsive ── */

@media (max-width: 600px) {
  header { padding: 1rem 1.25rem; }
  nav a:not(:last-child) { display: none; }
  main { padding: 0 1.25rem; }
  section { padding: 3.5rem 0; }
  .hero { padding-top: 4rem; }
  footer {
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.5rem 1.25rem;
  }
}
