:root {
  --bg: #f6f3ee;
  --bg-elevated: #fffcf8;
  --fg: #141210;
  --muted: #5a5249;
  --muted-soft: #7a7268;
  --accent: #c96f2e;
  --accent-hover: #a85a22;
  --accent-soft: rgba(201, 111, 46, 0.12);
  --accent-glow: rgba(201, 111, 46, 0.25);
  --card: #ffffff;
  --border: #e4ddd3;
  --border-strong: #d4cbc0;
  --code-bg: #1c1916;
  --code-fg: #f5efe6;
  --success: #2d6a4f;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(20, 18, 16, 0.04), 0 8px 24px rgba(20, 18, 16, 0.06);
  --shadow-lg: 0 4px 6px rgba(20, 18, 16, 0.04), 0 24px 48px rgba(20, 18, 16, 0.08);
  --font: "DM Sans", ui-sans-serif, system-ui, "Segoe UI", Roboto, Ubuntu, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  --max: 920px;
  --nav-h: 3.75rem;
}

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

html {
  scroll-behavior: smooth;
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--accent-glow), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(201, 111, 46, 0.06), transparent 50%);
  pointer-events: none;
  z-index: -1;
}

a {
  color: var(--accent-hover);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

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

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 252, 248, 0.88);
  backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--nav-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-decoration: none;
}

.brand:hover {
  color: var(--accent-hover);
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #e8a066);
  box-shadow: 0 2px 8px var(--accent-glow);
}

.nav-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem 0.75rem;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
}

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

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

.nav-cta {
  margin-left: 0.35rem;
  padding: 0.45rem 0.95rem !important;
  background: var(--accent) !important;
  color: #fff !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  filter: brightness(1.06);
  color: #fff !important;
}

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 0 2.5rem;
  text-align: center;
}

.hero-logo {
  display: block;
  max-width: min(400px, 88vw);
  width: 100%;
  height: auto;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 8px 24px rgba(20, 18, 16, 0.08));
}

.hero-install {
  width: min(100%, 42rem);
  margin: 0 auto 1.5rem;
  text-align: left;
}

.hero-install .code-block {
  margin-bottom: 0.75rem;
}

.hero-install-note {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
  text-align: center;
}

.value-props {
  list-style: none;
  margin: 0 auto 1.5rem;
  padding: 1rem 1.25rem;
  max-width: 32rem;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
}

.value-props li {
  margin: 0.35rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.value-props li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-hover);
  font-weight: 700;
}

.value-props strong {
  color: var(--fg);
  font-weight: 600;
}

.free-section {
  padding: 3rem 0;
  background: linear-gradient(180deg, var(--accent-soft) 0%, transparent 100%);
  border-block: 1px solid var(--border);
}

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

.free-section .section-head h2 {
  max-width: none;
}

.free-section .section-head p {
  margin-inline: auto;
}

.free-table-wrap {
  overflow-x: auto;
  margin-top: 1.5rem;
}

.free-table {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.free-table th,
.free-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.free-table tr:last-child th,
.free-table tr:last-child td {
  border-bottom: none;
}

.free-table th {
  width: 38%;
  font-weight: 600;
  color: var(--fg);
  background: var(--surface);
}

.free-table td {
  color: var(--muted);
}

.free-table td strong {
  color: var(--fg);
}

.free-note {
  max-width: 40rem;
  margin: 1.25rem auto 0;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.55;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-hover);
  background: var(--accent-soft);
  border: 1px solid var(--border);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 1rem;
  max-width: 18ch;
  margin-inline: auto;
}

.hero .lead {
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  color: var(--muted);
  max-width: 38rem;
  margin: 0 auto 1.75rem;
  line-height: 1.55;
}

.hero .lead strong {
  color: var(--fg);
  font-weight: 600;
}

.hero-demo {
  width: min(100%, 52rem);
  margin: 0 auto 1.75rem;
}

.hero-demo-video-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-strong);
  background: var(--code-bg);
}

.hero-demo-video-wrap video {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.hero-demo-caption {
  margin: 0.85rem auto 0;
  max-width: 40rem;
  font-size: 0.9rem;
  color: var(--muted-soft);
  line-height: 1.5;
}

.hero-demo-caption strong {
  color: var(--fg);
}

.cta-row {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.bmc-btn {
  display: inline-flex;
  line-height: 0;
  text-decoration: none;
  border-radius: 10px;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.bmc-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.bmc-btn img {
  display: block;
  height: 60px;
  width: auto;
}

.bmc-btn--header {
  flex-shrink: 0;
  margin-left: 0.15rem;
}

.bmc-btn--header img {
  height: 2.5rem;
  width: auto;
}

.footer-bmc {
  margin-top: 1.25rem;
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-primary:hover {
  color: #fff;
  filter: brightness(1.05);
}

.btn-ghost {
  background: var(--card);
  border-color: var(--border-strong);
  color: var(--fg);
  box-shadow: var(--shadow);
}

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

/* Flow strip */
.flow-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  text-align: left;
  margin-top: 0.5rem;
}

.flow-step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
  position: relative;
}

.flow-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  margin-bottom: 0.5rem;
}

.flow-step h3 {
  margin: 0 0 0.25rem;
  font-size: 0.92rem;
  font-weight: 650;
}

.flow-step p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.flow-arrow {
  display: none;
}

@media (min-width: 720px) {
  .flow-strip--linear {
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: stretch;
  }

  .flow-arrow {
    display: flex;
    align-items: center;
    color: var(--border-strong);
    font-size: 1.25rem;
    padding: 0 0.15rem;
  }
}

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

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

.section-head {
  margin-bottom: 1.5rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
  font-size: 0.98rem;
}

.pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent-hover);
  margin-bottom: 0.5rem;
}

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

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
  font-weight: 650;
}

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

.card code {
  font-size: 0.85em;
}

/* Code */
pre {
  font-family: var(--mono);
  font-size: 0.84rem;
  background: var(--code-bg);
  color: var(--code-fg);
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 0;
  line-height: 1.5;
  box-shadow: var(--shadow-lg);
}

pre .comment {
  color: #9a8f82;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--accent-soft);
  color: var(--accent-hover);
  padding: 0.12em 0.4em;
  border-radius: 5px;
}

pre code {
  background: none;
  color: inherit;
  padding: 0;
}

.code-block {
  margin: 1rem 0;
}

.code-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-soft);
  margin-bottom: 0.45rem;
}

/* Steps (docs) */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.step:last-child {
  border-bottom: none;
}

.step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  flex-shrink: 0;
}

.step-body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 650;
}

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

.step-body p:last-child {
  margin-bottom: 0;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  font-weight: 650;
  background: var(--bg);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

tr:last-child td {
  border-bottom: none;
}

/* Callouts */
.callout {
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin: 1.25rem 0;
  font-size: 0.92rem;
  border: 1px solid var(--border);
}

.callout-tip {
  background: rgba(45, 106, 79, 0.08);
  border-color: rgba(45, 106, 79, 0.25);
}

.callout-warn {
  background: var(--accent-soft);
  border-color: rgba(201, 111, 46, 0.35);
}

.callout strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--fg);
}

/* Docs layout */
.docs-layout {
  display: grid;
  gap: 2rem;
  padding: 2rem 0 3rem;
}

@media (min-width: 800px) {
  .docs-layout {
    grid-template-columns: 200px 1fr;
    align-items: start;
  }
}

.docs-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
}

.docs-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.88rem;
}

.docs-sidebar a {
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--muted);
}

.docs-sidebar a:hover {
  background: var(--accent-soft);
  color: var(--fg);
}

.docs-main h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.03em;
}

.docs-main .docs-intro {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 2rem;
  max-width: 42rem;
}

.docs-main h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 2.25rem 0 0.75rem;
  padding-top: 0.5rem;
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}

.docs-main h2:first-of-type {
  margin-top: 0;
}

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

.site-footer p {
  margin: 0.35rem 0;
}

.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  margin: 1.25rem 0 0;
}

.topic-tags a {
  font-size: 0.8rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  text-decoration: none;
  color: var(--muted);
}

.topic-tags a:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
}

/* Page hero (docs) */
.page-hero {
  padding: 2rem 0 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4vw, 2rem);
  margin: 0 0 0.4rem;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 36rem;
}

