:root {
  --bg: #f6f4ef;
  --panel: #fffdf8;
  --ink: #1d1b18;
  --muted: #6a6258;
  --line: #ddd5c8;
  --accent: #8f3b1b;
  --accent-soft: #f7e6db;
  --code-bg: #f2eee6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top, #fff9ef, #f6f4ef 38%),
    linear-gradient(180deg, #f7f2e8 0%, #f6f4ef 100%);
}
a { color: var(--accent); }
a:hover { color: #6f2d14; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--panel) 84%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 12%, var(--line));
}
.site-header__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.brand {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.9rem;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.nav-link {
  text-decoration: none;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
}
.nav-link.is-active {
  color: var(--accent);
  background: var(--accent-soft);
}
.page-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 20px 56px;
}
.markdown-body {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 18px 48px rgba(44, 30, 13, 0.08);
  padding: 32px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.markdown-body > :first-child { margin-top: 0; }
.markdown-body > :last-child { margin-bottom: 0; }
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
  line-height: 1.2;
  margin-top: 1.6em;
  margin-bottom: 0.55em;
}
.markdown-body h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
}
.markdown-body h2 {
  font-size: clamp(1.45rem, 2vw, 2rem);
  padding-bottom: 0.2em;
  border-bottom: 1px solid var(--line);
}
.markdown-body p,
.markdown-body ul,
.markdown-body ol,
.markdown-body table,
.markdown-body pre,
.markdown-body blockquote {
  margin-top: 0;
  margin-bottom: 1em;
}
.markdown-body code {
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.92em;
  background: var(--code-bg);
  padding: 0.14em 0.38em;
  border-radius: 6px;
}
.markdown-body pre {
  background: #1d1a17;
  color: #f6efe6;
  padding: 16px;
  border-radius: 14px;
  overflow: auto;
}
.markdown-body pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}
.markdown-body blockquote {
  margin-left: 0;
  padding: 0.2em 1em;
  border-left: 4px solid color-mix(in srgb, var(--accent) 40%, var(--line));
  color: var(--muted);
}
.markdown-body table {
  width: 100%;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
}
.markdown-body th,
.markdown-body td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.markdown-body th {
  background: #f3ece2;
}
.markdown-body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2em 0;
}
@media (max-width: 720px) {
  .site-header__inner,
  .page-shell { padding-left: 14px; padding-right: 14px; }
  .markdown-body { padding: 22px 18px; border-radius: 16px; }
}

.landing-shell {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.95fr);
  gap: 24px;
  align-items: stretch;
}

.hero-copy,
.proof-card,
.metric-card,
.demo-section,
.resource-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 18px 48px rgba(44, 30, 13, 0.08);
}

.hero-copy {
  padding: 34px 36px;
}

.hero-copy h1,
.section-heading h2 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  max-width: 11ch;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-lede,
.hero-body,
.section-heading p,
.metric-card p,
.resource-card p,
.proof-list {
  color: var(--muted);
}

.hero-lede {
  margin: 1.25rem 0 0;
  font-size: 1.12rem;
  line-height: 1.65;
  max-width: 60ch;
}

.hero-body {
  margin: 1rem 0 0;
  line-height: 1.7;
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.5rem;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.05rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

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

.button-link--primary {
  color: #fff7f2;
  background: linear-gradient(135deg, #8f3b1b, #b14d23);
  box-shadow: 0 14px 28px rgba(143, 59, 27, 0.18);
}

.button-link--primary:hover {
  color: #ffffff;
}

.button-link--secondary {
  color: var(--ink);
  background: #f4ede2;
  border: 1px solid #e1d4c0;
}

.hero-aside {
  display: flex;
}

.proof-card {
  padding: 28px 28px 26px;
  width: 100%;
}

.proof-card h2,
.metric-card h2,
.resource-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  line-height: 1.2;
}

.proof-list {
  margin: 0;
  padding-left: 1.15rem;
  line-height: 1.75;
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.metric-card {
  padding: 22px 24px;
}

.demo-section {
  padding: 28px;
}

.section-heading {
  max-width: 72ch;
}

.section-heading p {
  margin: 0.9rem 0 0;
  line-height: 1.7;
}

.demo-frame {
  margin-top: 22px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #1a1a1a;
  background: #090909;
  box-shadow: 0 20px 60px rgba(16, 14, 12, 0.16);
}

.demo-embed {
  display: block;
  width: 100%;
  min-height: 980px;
  border: 0;
  background: #090909;
}

.demo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
  font-weight: 600;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.resource-card {
  padding: 24px 24px 22px;
}

.resource-card a,
.demo-links a {
  font-weight: 700;
  text-decoration-thickness: 1px;
}

@media (max-width: 980px) {
  .hero-panel,
  .metrics-strip,
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 28px 24px;
  }

  .demo-section {
    padding: 22px;
  }

  .demo-embed {
    min-height: 860px;
  }
}

@media (max-width: 720px) {
  .hero-copy h1 {
    max-width: none;
    font-size: clamp(2.2rem, 9vw, 3.2rem);
  }

  .hero-actions,
  .demo-links {
    flex-direction: column;
    align-items: stretch;
  }

  .demo-embed {
    min-height: 760px;
  }
}
