:root {
  --bg: #ffffff;
  --bg-soft: #fff7ed;
  --bg-elev: #fafafa;
  --fg: #111827;
  --fg-muted: #4b5563;
  --fg-dim: #6b7280;
  --border: #e5e7eb;
  --accent: #ea580c;
  --accent-hover: #c2410c;
  --accent-soft: #fed7aa;
  --code-bg: #1f2937;
  --code-fg: #f9fafb;
  --max: 1100px;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.04);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d10;
    --bg-soft: #14181c;
    --bg-elev: #14181c;
    --fg: #f3f4f6;
    --fg-muted: #cbd5e1;
    --fg-dim: #94a3b8;
    --border: #2a2f36;
    --accent: #fb923c;
    --accent-hover: #fdba74;
    --accent-soft: #431407;
    --code-bg: #0a0c0f;
    --code-fg: #f3f4f6;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: white;
  padding: 8px 16px;
  z-index: 100;
}
.skip-link:focus { left: 0; }

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

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

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  backdrop-filter: blur(8px);
  z-index: 10;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--fg);
  font-weight: 700;
}
.brand img { width: 32px; height: 32px; border-radius: 6px; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--fg-muted); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--fg); text-decoration: none; }

/* Hero */
.hero {
  padding: 80px 0 64px;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  text-align: center;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  font-weight: 800;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}
.hero h1 .accent { color: var(--accent); }
.hero .lede {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--fg-muted);
  max-width: 700px;
  margin: 0 auto 32px;
}
.hero .badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
}
.hero .badges img { height: 22px; }
.cta-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.1s, box-shadow 0.15s;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: var(--shadow);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--bg-elev);
  color: var(--fg);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--fg);
  text-decoration: none;
}

/* Pitch */
.pitch {
  padding: 64px 0;
  text-align: center;
}
.pitch .quote {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--fg);
  margin: 0 auto;
  max-width: 700px;
}
.pitch .quote .accent { color: var(--accent); }
.pitch .sub {
  margin-top: 16px;
  color: var(--fg-dim);
  font-size: 0.95rem;
}

/* Section base */
section { padding: 64px 0; }
section.alt { background: var(--bg-soft); border-block: 1px solid var(--border); }
h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
h3 { font-size: 1.25rem; margin: 0 0 8px; }
.section-lede {
  color: var(--fg-muted);
  font-size: 1.05rem;
  max-width: 720px;
  margin-bottom: 40px;
}

/* Demo */
.demo-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
  background: #000;
}
.demo-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.feature {
  padding: 24px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.feature h3 { display: flex; align-items: center; gap: 10px; }
.feature .tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.feature p { margin: 0; color: var(--fg-muted); }

/* Inspector mockup */
.inspector {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
  background: var(--code-bg);
  color: var(--code-fg);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 20px;
  white-space: pre;
  overflow-x: auto;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 16px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
th {
  background: var(--bg-soft);
  font-weight: 600;
}
td.center, th.center { text-align: center; }
tr:last-child td { border-bottom: 0; }
.yes { color: #16a34a; font-weight: 700; }
.no { color: #dc2626; }
.partial { color: #ca8a04; }

/* FAQ */
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  background: var(--bg-elev);
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 400;
}
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 12px 0 0; color: var(--fg-muted); }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  color: var(--fg-dim);
  font-size: 0.9rem;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--fg-muted); }

@media (max-width: 640px) {
  .nav-links { gap: 16px; }
  .hero { padding: 56px 0 40px; }
  section { padding: 48px 0; }
}
