:root {
  --bg: #0a0b0d;
  --bg-elevated: #12141a;
  --bg-card: #161922;
  --border: #252a36;
  --text: #e8eaef;
  --text-muted: #9aa3b2;
  --accent: #5b9cf5;
  --accent-dim: rgba(91, 156, 245, 0.15);
  --success: #3dd68c;
  --error: #f87171;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "Segoe UI Mono", Menlo, Consolas, monospace;
  --radius: 8px;
  --nav-h: 64px;
  --max-w: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

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

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

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--bg);
  z-index: 1000;
}

.skip-link:focus {
  left: 0;
}

.container {
  width: min(100% - 2rem, var(--max-w));
  margin-inline: auto;
}

/* Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(10, 11, 13, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.wordmark {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.wordmark:hover {
  text-decoration: none;
  color: var(--text);
}

.nav-links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
}

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

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #0a0b0d;
  border-color: var(--accent);
}

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

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--bg-elevated);
}

/* Hero */
.hero {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  font-weight: 600;
}

.hero .subhead {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin: 0 0 1.75rem;
  max-width: 36ch;
}

/* Waitlist form */
.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 420px;
}

.waitlist-form label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.waitlist-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.waitlist-row input[type="email"] {
  flex: 1 1 200px;
  min-width: 0;
  padding: 0.65rem 0.85rem;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--text);
}

.waitlist-row input[type="email"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: var(--accent);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.form-message {
  font-size: 0.9rem;
  margin: 0;
  min-height: 1.4em;
}

.form-message.success {
  color: var(--success);
}

.form-message.error {
  color: var(--error);
}

/* Code blocks */
pre,
.code-block {
  margin: 0;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.55;
}

.code-block code {
  display: block;
  white-space: pre;
}

.tok-kw { color: #c792ea; }
.tok-str { color: #c3e88d; }
.tok-fn { color: #82aaff; }
.tok-key { color: #89ddff; }
.tok-val { color: #f78c6c; }
.tok-cmt { color: #546e7a; }
.tok-num { color: #f78c6c; }

.hero-snippet {
  margin-top: 0.5rem;
}

/* Sections */
section {
  padding: 4rem 0;
}

section h2 {
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.section-lead {
  color: var(--text-muted);
  margin: 0 0 2.5rem;
  max-width: 52ch;
}

/* Steps */
.steps {
  display: grid;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.step-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.step-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Features */
.feature-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  padding: 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.feature-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.feature-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Strip */
.strip {
  padding: 2.5rem 0;
  background: var(--accent-dim);
  border-block: 1px solid var(--border);
  text-align: center;
}

.strip h2 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
}

.strip p {
  margin: 0 auto;
  max-width: 48ch;
  color: var(--text-muted);
}

.strip ul {
  list-style: none;
  padding: 0;
  margin: 1.25rem auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text);
}

/* Pricing */
.pricing-teaser {
  text-align: center;
  padding: 3rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.pricing-teaser p {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
}

/* FAQ */
.faq-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.faq-item details {
  padding: 0;
}

.faq-item summary {
  padding: 1.15rem 1.25rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

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

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 1.1rem;
}

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

.faq-answer {
  padding: 0 1.25rem 1.15rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-answer p {
  margin: 0;
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: 4rem 0;
  border-top: 1px solid var(--border);
}

.cta-band h2 {
  margin-bottom: 1rem;
}

.cta-band .waitlist-form {
  margin-inline: auto;
}

/* Footer */
.site-footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

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

/* Guide article */
.guide-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
}

.guide-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.guide-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.guide-body {
  padding: 2.5rem 0 4rem;
  max-width: 65ch;
}

.guide-body h2 {
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
}

.guide-body p,
.guide-body li {
  color: var(--text-muted);
}

.guide-body p {
  margin: 0 0 1rem;
}

.guide-body ul,
.guide-body ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.guide-body a {
  color: var(--accent);
}

.guide-related {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.guide-related h2 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.guide-related ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.guide-related li {
  margin-bottom: 0.5rem;
}
