* {
  box-sizing: border-box;
}

:root {
  --background: #f8f5f0;
  --surface: #ffffff;
  --surface-raised: #f3eee6;
  --border: #e3dbd0;
  --text: #1c1814;
  --text-muted: #6b5f54;
  --accent: #a56c15;
  --accent-hover: #b0781d;
  --accent-tint: #f7f0e3;
  --error: #c9372d;
  --max-width: 1180px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  color-scheme: light;
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(181, 130, 52, 0.08), transparent 420px),
    var(--background);
  color: var(--text);
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

pre,
code {
  font-family: "SFMono-Regular", ui-monospace, Menlo, Monaco, Consolas, monospace;
}

pre {
  margin: 0;
  white-space: pre-wrap;
}

.site-shell {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 24px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 0 44px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
}

.brand-glyph {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(165, 108, 21, 0.35);
  border-radius: var(--radius-md);
  background: var(--accent-tint);
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--text-muted);
  font-size: 13px;
}

.site-nav a:hover {
  color: var(--text);
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(460px, 1.12fr);
  gap: 44px;
  align-items: center;
  min-height: calc(100vh - 120px);
  padding-bottom: 72px;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 740px;
  margin-bottom: 18px;
  color: var(--text);
  font-size: 78px;
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: 48px;
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.25;
}

p {
  color: var(--text-muted);
}

.hero-lede {
  max-width: 640px;
  margin-bottom: 28px;
  color: var(--text);
  font-size: 19px;
}

.hero-actions,
.hero-facts,
.output-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 11px 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

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

.btn-primary {
  background: var(--accent);
  color: var(--background);
}

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

.btn-secondary {
  border-color: var(--border);
  background: var(--surface-raised);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: rgba(165, 108, 21, 0.44);
}

.hero-facts {
  margin: 32px 0 0;
}

.hero-facts div {
  min-width: 150px;
  border-left: 1px solid var(--border);
  padding-left: 14px;
}

.hero-facts dt {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 13px;
}

.hero-visual {
  position: relative;
  min-height: 540px;
}

.product-frame,
.markdown-preview,
.output-card,
.terminal-card,
.workflow-card,
.trust-grid article,
.use-case-grid article,
.screenshot-row figure {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.product-frame {
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(28, 24, 20, 0.12);
}

.product-frame-primary {
  width: min(100%, 760px);
  margin-left: auto;
}

.product-frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
}

.markdown-preview {
  position: absolute;
  right: 8%;
  bottom: 0;
  width: min(420px, 76%);
  padding: 18px;
  background: var(--surface);
  box-shadow: 0 18px 56px rgba(28, 24, 20, 0.14);
}

.preview-label {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.markdown-preview code,
.output-card code,
.terminal-card code {
  color: var(--text);
  font-size: 12px;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: start;
  padding: 88px 0;
}

.content-section,
.trust-section {
  padding: 88px 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 28px;
}

.section-copy {
  display: grid;
  gap: 16px;
  font-size: 18px;
}

.workflow-grid,
.trust-grid,
.use-case-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.workflow-card,
.trust-grid article,
.use-case-grid article {
  padding: 20px;
}

.step-index {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--accent);
  font-family: "SFMono-Regular", ui-monospace, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
}

.screenshot-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.screenshot-row figure {
  margin: 0;
  overflow: hidden;
}

.screenshot-row img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
}

.screenshot-row figcaption {
  border-top: 1px solid var(--border);
  padding: 12px 14px;
  color: var(--text-muted);
  font-size: 12px;
}

.output-section {
  align-items: center;
}

.output-card {
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(181, 130, 52, 0.08), transparent),
    var(--surface);
}

.output-meta {
  margin-bottom: 16px;
}

.output-meta span {
  border: 1px solid rgba(165, 108, 21, 0.28);
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent);
  padding: 4px 9px;
  font-size: 12px;
}

.trust-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.use-case-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.install-section {
  align-items: center;
}

.download-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 24px;
}

.download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 14px 16px;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.download-card:hover {
  border-color: rgba(165, 108, 21, 0.44);
  background: var(--surface-raised);
}

.download-card span {
  color: var(--text);
  font-weight: 700;
}

.download-card strong {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

.terminal-card {
  overflow: hidden;
  background: var(--surface-raised);
}

.terminal-bar {
  display: flex;
  gap: 7px;
  border-bottom: 1px solid var(--border);
  padding: 12px 14px;
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.terminal-card pre {
  padding: 22px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--border);
  padding: 28px 0 8px;
  color: var(--text-muted);
  font-size: 13px;
}

.site-footer span:first-child {
  color: var(--text);
  font-weight: 700;
}

@media (max-width: 980px) {
  .site-nav {
    display: none;
  }

  .hero-section,
  .section-grid {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: 0;
    padding-top: 24px;
  }

  .hero-visual {
    min-height: 430px;
  }

  .workflow-grid,
  .use-case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-shell {
    padding: 18px;
  }

  .site-header {
    padding-bottom: 24px;
  }

  .hero-section,
  .section-grid,
  .content-section,
  .trust-section {
    padding-bottom: 56px;
  }

  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 32px;
  }

  .hero-lede {
    font-size: 17px;
  }

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

  .btn {
    width: 100%;
  }

  .hero-facts {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: auto;
  }

  .markdown-preview {
    position: static;
    width: 100%;
    margin-top: 12px;
  }

  .screenshot-row,
  .workflow-grid,
  .trust-grid,
  .use-case-grid {
    grid-template-columns: 1fr;
  }

  .section-copy {
    font-size: 16px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .download-card {
    align-items: flex-start;
    flex-direction: column;
  }
}
