:root {
  --bg: #faf7f0;
  --bg-alt: #f3ede0;
  --surface: #ffffff;
  --ink: #241a0c;
  --muted: #62503a;
  --line: #e4dac6;
  --accent: #8a5a12;
  --accent-soft: #f1e3c6;
  --cta-bg: #8a5a12;
  --cta-bg-hover: #6f470b;
  --cta-ink: #ffffff;
  --glow: rgba(184, 132, 47, 0.28);
  --shadow: 0 1px 2px rgba(60, 40, 10, 0.06), 0 24px 60px -20px rgba(60, 40, 10, 0.28);
  --ok: #2f6b3a;
  --no: #8b3a2b;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --radius: 14px;
  --gutter: clamp(20px, 5vw, 40px);
  --header-h: 68px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #100c07;
    --bg-alt: #17120b;
    --surface: #1d1710;
    --ink: #f5eee1;
    --muted: #b9aa91;
    --line: #33291a;
    --accent: #e3a94b;
    --accent-soft: #2a2113;
    --cta-bg: #e3a94b;
    --cta-bg-hover: #f0bc66;
    --cta-ink: #1a1208;
    --glow: rgba(227, 169, 75, 0.2);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 30px 70px -20px rgba(0, 0, 0, 0.8);
    --ok: #6fc283;
    --no: #e58b7a;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #100c07;
  --bg-alt: #17120b;
  --surface: #1d1710;
  --ink: #f5eee1;
  --muted: #b9aa91;
  --line: #33291a;
  --accent: #e3a94b;
  --accent-soft: #2a2113;
  --cta-bg: #e3a94b;
  --cta-bg-hover: #f0bc66;
  --cta-ink: #1a1208;
  --glow: rgba(227, 169, 75, 0.2);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 30px 70px -20px rgba(0, 0, 0, 0.8);
  --ok: #6fc283;
  --no: #e58b7a;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

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

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

a {
  color: inherit;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--cta-bg);
  color: var(--cta-ink);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-fill {
  fill: currentColor;
  stroke: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1160px, 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.img-dark {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .img-light {
    display: none;
  }

  :root:not([data-theme="light"]) .img-dark {
    display: block;
  }
}

:root[data-theme="dark"] .img-light {
  display: none;
}

:root[data-theme="dark"] .img-dark {
  display: block;
}

.theme-icon-moon {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-icon-sun {
    display: none;
  }

  :root:not([data-theme="light"]) .theme-icon-moon {
    display: block;
  }
}

:root[data-theme="dark"] .theme-icon-sun {
  display: none;
}

:root[data-theme="dark"] .theme-icon-moon {
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: 12px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.nav-links a:hover {
  color: var(--ink);
  background: var(--accent-soft);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.18s ease;
}

.icon-btn:hover {
  background: var(--accent-soft);
}

.menu-toggle {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 11px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn-primary {
  background: var(--cta-bg);
  color: var(--cta-ink);
}

.btn-primary:hover {
  background: var(--cta-bg-hover);
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--accent);
}

.btn-lg {
  min-height: 52px;
  padding: 0 26px;
  font-size: 1rem;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 9vw, 112px) 0 clamp(48px, 7vw, 88px);
  background:
    radial-gradient(60% 50% at 50% 0%, var(--glow), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 56px,
    var(--bg);
  background-blend-mode: normal, soft-light, normal;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, var(--bg));
  pointer-events: none;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
}

.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

h1 {
  margin-top: 22px;
  font-size: clamp(2.5rem, 6.4vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
  text-wrap: balance;
}

.hero-lead {
  max-width: 640px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  text-wrap: pretty;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.hero-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.875rem;
}

.shot {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.shot img {
  width: 100%;
}

.hero-shot {
  max-width: 1040px;
  margin: clamp(44px, 6vw, 72px) auto 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: clamp(32px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}

.stat {
  padding: 22px 18px;
  background: var(--surface);
  text-align: center;
}

.stat-value {
  font-family: var(--mono);
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--accent);
}

.stat-label {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.875rem;
}

section {
  padding: clamp(64px, 9vw, 112px) 0;
}

.alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

h2 {
  margin-top: 12px;
  font-size: clamp(1.875rem, 4vw, 2.875rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-wrap: balance;
}

h3 {
  font-size: 1.125rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 650;
}

.section-head {
  max-width: 720px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.lead {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.125rem;
  text-wrap: pretty;
}

.compare-wrap {
  margin-top: 44px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.compare {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.compare th,
.compare td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.compare thead th {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: 0;
}

.compare tbody th {
  font-weight: 600;
}

.compare tbody th span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 400;
}

.compare .us {
  background: var(--accent-soft);
}

.compare .us th,
.compare .us td {
  font-weight: 650;
}

.yn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
}

.yn.yes {
  color: var(--ok);
}

.yn.no {
  color: var(--no);
}

.showcase {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.showcase + .showcase {
  margin-top: clamp(64px, 8vw, 104px);
}

.showcase.flip {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.showcase.flip .showcase-copy {
  order: 2;
}

.showcase-copy h3 {
  margin-top: 12px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.showcase-copy > p {
  margin-top: 14px;
  color: var(--muted);
}

.ticks {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.ticks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink);
}

.ticks .icon {
  margin-top: 3px;
  color: var(--accent);
}

kbd {
  padding: 1px 7px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface);
  font-family: var(--mono);
  font-size: 0.8125em;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
}

.card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.tool {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.6vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.tool-planned {
  border-style: dashed;
  background: transparent;
}

.tool-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tool-top .card-icon {
  margin: 0;
}

.tool h3 {
  margin-top: 20px;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
}

.tool-lead {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.flow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}

.flow li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font-size: 0.8125rem;
  font-weight: 500;
  counter-increment: flow;
}

.flow li::before {
  content: counter(flow);
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 600;
}

.tool .ticks {
  margin-top: 22px;
  gap: 11px;
  font-size: 0.9375rem;
}

.tool-where {
  margin-top: auto;
  padding-top: 24px;
}

.tool-where p {
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--bg-alt);
  color: var(--muted);
  font-size: 0.8125rem;
}

.tool-where code {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
}

.tools-note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}

.db-groups {
  display: grid;
  gap: 36px;
  margin-top: 44px;
}

.db-group-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.db-group-head p {
  color: var(--muted);
  font-size: 0.9375rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.9375rem;
  font-weight: 500;
}

.chip-builtin {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: var(--accent-soft);
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.panel {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.panel h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.375rem;
}

.panel > p {
  margin-top: 12px;
  color: var(--muted);
}

.panel .chips {
  margin-top: 22px;
}

.panel .chip {
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.875rem;
}

.panel .ticks {
  margin-top: 22px;
}

.levels {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.level {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.level:last-child {
  border-bottom: 0;
}

.level strong {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 600;
}

.level span {
  color: var(--muted);
}

.level.top {
  background: var(--accent-soft);
}

.platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 44px;
}

.platform {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.platform-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.platform .card-icon {
  margin: 0;
}

.status {
  padding: 3px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.status.stable {
  color: var(--ok);
  border-color: color-mix(in srgb, var(--ok) 40%, var(--line));
}

.status.wip {
  color: var(--muted);
}

.platform p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.install {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.steps {
  display: grid;
  gap: 18px;
  margin-top: 26px;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-left: 48px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -1px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 600;
}

.steps strong {
  display: block;
}

.steps span {
  color: var(--muted);
  font-size: 0.9375rem;
}

.cta-box {
  padding: clamp(32px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(70% 90% at 100% 0%, var(--glow), transparent 70%),
    var(--surface);
  text-align: center;
}

.cta-box .btn-lg {
  margin-top: 8px;
}

.cta-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 20px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.cta-box h3 {
  font-size: 1.5rem;
}

.cta-box p {
  margin: 8px auto 22px;
  max-width: 380px;
  color: var(--muted);
}

.reqs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}

.footer-about {
  max-width: 420px;
}

.footer-about p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-content: flex-start;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.9375rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
  background: var(--accent-soft);
}

.legal {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8125rem;
}

.legal a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (max-width: 1040px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1060px) {
  .menu-toggle {
    display: inline-grid;
  }

  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    display: none;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px var(--gutter) 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    min-height: 48px;
    font-size: 1rem;
  }

  .nav-cta {
    display: none;
  }

  .tools {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .showcase,
  .showcase.flip,
  .install,
  .split {
    grid-template-columns: 1fr;
  }

  .showcase.flip .showcase-copy {
    order: 0;
  }

  .platforms {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 400px) {
  .nav-actions a.icon-btn {
    display: none;
  }
}

@media (max-width: 600px) {
  .compare {
    min-width: 0;
    font-size: 0.8125rem;
  }

  .compare th,
  .compare td {
    padding: 14px 8px;
  }

  .compare th:first-child {
    padding-left: 14px;
  }

  .compare .yn {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .compare .yn .icon {
    width: 16px;
    height: 16px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .level {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .hero-cta .btn {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
