:root {
  color-scheme: light;
  --background: #f5f3ed;
  --surface: #ffffff;
  --surface-muted: #e9e5da;
  --text: #20231f;
  --text-muted: #62675f;
  --accent: #2f5b45;
  --accent-hover: #234936;
  --border: #d7d3c8;
  --radius: 14px;
  --shadow: 0 18px 50px rgb(28 36 30 / 10%);
  --content-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

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

h1,
h2,
h3 {
  line-height: 1.15;
}

h1 {
  max-width: 640px;
  margin-bottom: 24px;
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
  letter-spacing: -0.05em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
}

.container {
  width: min(calc(100% - 40px), var(--content-width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--text);
  color: white;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgb(215 211 200 / 75%);
  background: rgb(245 243 237 / 92%);
  backdrop-filter: blur(12px);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 700;
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav > a:not(.button) {
  color: var(--text-muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.hero {
  padding: 88px 0 84px;
}

.hero-grid,
.boundaries {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(44px, 6vw, 88px);
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lead {
  max-width: 620px;
  margin-bottom: 28px;
  color: var(--text-muted);
  font-size: clamp(1.08rem, 2vw, 1.26rem);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

.button:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.button-small {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.9rem;
}

.text-link {
  color: var(--accent);
  font-weight: 700;
  text-underline-offset: 4px;
}

.microcopy {
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.hero-demo .chat {
  box-shadow: var(--shadow);
}

.chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  background: var(--surface-muted);
}

.message {
  max-width: 88%;
  padding: 13px 16px;
  border-radius: 16px;
  font-size: 0.94rem;
  line-height: 1.48;
}

.message-user {
  align-self: flex-end;
  border-bottom-right-radius: 5px;
  background: var(--accent);
  color: white;
}

.message-bot {
  align-self: flex-start;
  border: 1px solid var(--border);
  border-bottom-left-radius: 5px;
  background: var(--surface);
}

.chat-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.section {
  padding: 88px 0;
}

.section-muted {
  border-block: 1px solid var(--border);
  background: var(--surface-muted);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 44px;
}

.section-heading > p:last-child {
  color: var(--text-muted);
  font-size: 1.08rem;
}

.use-cases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

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

.use-case p {
  margin-bottom: 0;
  color: var(--text-muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  gap: 16px;
}

.step-number {
  display: inline-grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-weight: 750;
  place-items: center;
}

.steps p {
  margin-bottom: 0;
  color: var(--text-muted);
}

.boundaries {
  align-items: start;
}

.boundaries-lead {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 14px 0 14px 28px;
  border-bottom: 1px solid var(--border);
}

.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--accent);
  content: "✓";
  font-weight: 800;
}

.check-list li.no {
  color: var(--text-muted);
}

.check-list li.no::before {
  color: var(--text-muted);
  content: "—";
}

.faq {
  max-width: 760px;
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 650;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  flex: 0 0 auto;
  color: var(--accent);
  content: "+";
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 160ms ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  max-width: 640px;
  margin: 0;
  padding: 0 0 20px;
  color: var(--text-muted);
}

.faq-cta {
  margin: 30px 0 0;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.final-cta {
  padding: 104px 0;
  background: #161817;
  color: white;
  text-align: center;
}

.final-cta-inner {
  max-width: 720px;
}

.final-cta .eyebrow {
  color: #9fc5ae;
}

.final-cta p:not(.eyebrow, .microcopy) {
  margin-bottom: 30px;
  color: #c6cbc7;
  font-size: 1.08rem;
}

.final-cta .button {
  background: #e5efe8;
  color: #183222;
}

.final-cta .button:hover {
  background: #d3e3d8;
}

.microcopy-dark {
  color: #9aa09b;
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.86rem;
}

@media (max-width: 860px) {
  .nav > a:not(.button) {
    display: none;
  }

  .hero {
    padding-top: 56px;
  }

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

  .use-cases,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .boundaries-lead {
    margin-bottom: 8px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 28px), var(--content-width));
  }

  .header-inner {
    min-height: 64px;
  }

  .button-small {
    padding-inline: 13px;
  }

  .section {
    padding: 66px 0;
  }

  .use-cases,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero-actions .button {
    width: 100%;
  }

  .message {
    max-width: 94%;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 20px;
  }
}

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

  .button,
  .faq summary::after {
    transition: none;
  }
}
