:root {
  color-scheme: light dark;
  --accent: #4f46e5;
  --accent-hover: #3f37c9;
  --text: #1a1a1a;
  --text-muted: #6b7280;
  --bg: #fafafa;
  --bg-card: #ffffff;
  --border: #e3e4ec;
  --code-bg: #1a1a22;
  --code-text: #e6e6e6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e8e8e8;
    --text-muted: #9ca3af;
    --bg: #0e0e10;
    --bg-card: #161618;
    --border: #2a2a30;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, sans-serif;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.2; margin: 0; }

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

/* ============================================================ */
/* Site header                                                   */
/* ============================================================ */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  border-bottom: 1px solid transparent;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: inherit;
  font-weight: 600;
}
.brand:hover { text-decoration: none; }
.brand-mark { font-size: 1.4rem; color: var(--accent); }
.brand-name { font-size: 1.05rem; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
}
.site-nav a {
  color: var(--text-muted);
}
.site-nav a:hover {
  color: var(--text);
  text-decoration: none;
}
@media (max-width: 640px) {
  .site-header { padding: 1rem 1rem; flex-direction: column; gap: 0.75rem; }
  .site-nav { gap: 1rem; font-size: 0.85rem; }
}

/* ============================================================ */
/* Hero                                                          */
/* ============================================================ */

.hero {
  max-width: 880px;
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 2rem;
}
.cta-row {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.cta {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 1rem;
  transition: background 0.15s, transform 0.05s;
}
.cta:hover { text-decoration: none; }
.cta:active { transform: translateY(1px); }
.cta-primary {
  background: var(--accent);
  color: #fff;
}
.cta-primary:hover { background: var(--accent-hover); }
.cta-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.cta-secondary:hover { background: var(--bg-card); }
.hero-fineprint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ============================================================ */
/* Quickstart side-by-side                                       */
/* ============================================================ */

.quickstart {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
}
.quickstart-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 800px) {
  .quickstart-grid { grid-template-columns: 1fr; }
}
.quickstart-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}
.quickstart-tag {
  display: inline-block;
  background: rgba(79, 70, 229, 0.12);
  color: var(--accent);
  font-size: 0.7rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 1rem;
  align-self: flex-start;
}
.quickstart-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.quickstart-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 1rem;
}
.quickstart-card pre {
  background: var(--code-bg);
  color: var(--code-text);
  padding: 1rem 1.15rem;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.85rem;
  margin: 0 0 1rem;
  flex: 1;
}
.quickstart-card code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.link-arrow {
  font-size: 0.9rem;
  font-weight: 500;
  align-self: flex-start;
}

/* ============================================================ */
/* Features                                                      */
/* ============================================================ */

.features {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem;
}
.features h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2.5rem;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features-grid { grid-template-columns: 1fr; } }
.feature {
  padding: 1.5rem;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.feature h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.feature p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
}

/* ============================================================ */
/* Compare                                                       */
/* ============================================================ */

.compare {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem;
}
.compare h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2.5rem;
}
.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 800px) { .compare-grid { grid-template-columns: 1fr; } }
.compare-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}
.compare-featured {
  border-color: var(--accent);
  box-shadow: 0 4px 24px rgba(79, 70, 229, 0.12);
}
.compare-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.compare-card h3 {
  font-size: 1.35rem;
}
.compare-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex: 1;
}
.compare-card li {
  padding: 0.4rem 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
  padding-left: 1.5rem;
}
.compare-card li::before {
  content: "✓";
  color: #10b981;
  font-weight: bold;
  position: absolute;
  left: 0;
}
.badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}
.badge-muted { background: rgba(107, 114, 128, 0.15); color: var(--text-muted); }
.badge-primary { background: rgba(79, 70, 229, 0.15); color: var(--accent); }

/* ============================================================ */
/* Pricing teaser                                                */
/* ============================================================ */

.pricing-teaser {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem;
  text-align: center;
}
.pricing-teaser h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.pricing-teaser p {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

/* ============================================================ */
/* Footer                                                        */
/* ============================================================ */

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  padding: 3rem 2rem 2rem;
}
.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.footer-tag {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}
.site-footer h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.site-footer a {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.site-footer a:hover { color: var(--accent); text-decoration: none; }
.footer-copy {
  max-width: 1100px;
  margin: 2rem auto 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
