:root {
  --background: #f7f3ec;
  --foreground: #17201c;
  --muted: #647067;
  --line: #ded6ca;
  --panel: #fffdf8;
  --ink: #10211b;
  --green: #176f53;
  --teal: #0d8a8a;
  --gold: #c8841b;
  --rose: #b75a50;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .75), rgba(247, 243, 236, .94) 34%),
    radial-gradient(circle at top left, rgba(13, 138, 138, .16), transparent 30%),
    radial-gradient(circle at 92% 12%, rgba(200, 132, 27, .18), transparent 28%),
    var(--background);
  color: var(--foreground);
  font-family: Arial, Helvetica, sans-serif;
}

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

main {
  min-height: 100vh;
}

.hero,
.section {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  padding: 24px 0 44px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  margin-bottom: 48px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(23, 111, 83, .28);
  border-radius: 8px;
  background: #e7f4ee;
  color: var(--green);
  font-weight: 800;
}

.nav-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 253, 248, .78);
  color: var(--muted);
  font-size: 14px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(360px, .78fr);
  gap: 42px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  color: var(--ink);
  font-size: clamp(44px, 7vw, 82px);
  line-height: .98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  color: var(--ink);
  font-size: 18px;
}

.lead {
  max-width: 700px;
  color: #425048;
  font-size: 20px;
  line-height: 1.75;
}

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

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 700;
}

.primary-action {
  background: var(--green);
  color: #fff;
}

.secondary-action {
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, .88);
  color: var(--ink);
}

.demo-panel,
.spec-panel,
.tool-card,
.workflow-item,
.boundary-item,
.summary-band > div,
.final-cta {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, .92);
  box-shadow: 0 16px 50px rgba(38, 32, 24, .08);
}

.demo-panel {
  padding: 18px;
}

.demo-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
}

.demo-header strong {
  margin-left: auto;
  color: var(--rose);
  font-size: 13px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(23, 111, 83, .12);
}

.message {
  margin-bottom: 12px;
  border-radius: 8px;
  padding: 14px 16px;
  line-height: 1.65;
}

.message.user {
  background: #e9f1ed;
}

.message.agent {
  background: #f7ead8;
}

.result-card {
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  padding: 16px;
  background: #fff8ed;
}

.result-card span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.section {
  padding: 58px 0;
}

.section-intro {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-intro p,
.spec-panel p,
.tool-card p,
.workflow-item p,
.boundary-item,
.final-cta p {
  color: var(--muted);
  line-height: 1.72;
}

.summary-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 8px;
}

.summary-band > div {
  padding: 22px;
}

.metric {
  display: block;
  margin-bottom: 10px;
  color: var(--green);
  font-size: 28px;
  font-weight: 900;
}

.workflow-list {
  display: grid;
  gap: 14px;
}

.workflow-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  padding: 20px;
}

.workflow-item > span {
  color: var(--teal);
  font-size: 26px;
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: 1fr .78fr;
  gap: 28px;
  align-items: start;
}

.check-list {
  display: grid;
  gap: 12px;
}

.check-item {
  position: relative;
  padding: 14px 16px 14px 42px;
  border-bottom: 1px solid var(--line);
  color: #334238;
}

.check-item::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 20px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--green);
}

.spec-panel {
  padding: 22px;
}

pre {
  overflow-x: auto;
  border-radius: 8px;
  padding: 16px;
  background: #17201c;
  color: #f7f3ec;
  line-height: 1.65;
  white-space: pre-wrap;
}

.tool-grid,
.boundary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tool-card,
.boundary-item {
  padding: 20px;
}

.safety {
  border-top: 1px solid var(--line);
}

.final-cta {
  margin-bottom: 54px;
  padding: 34px;
  text-align: center;
}

.final-cta p {
  max-width: 680px;
  margin: 0 auto;
}

@media (max-width: 860px) {
  .hero-grid,
  .split,
  .summary-band,
  .tool-grid,
  .boundary-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    gap: 14px;
  }

  .nav-pill {
    max-width: 220px;
    text-align: right;
  }

  .workflow-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero,
  .section {
    width: min(100% - 28px, 1160px);
  }

  .hero {
    padding-top: 16px;
  }

  h1 {
    font-size: 40px;
  }

  .lead {
    font-size: 17px;
  }

  .demo-header {
    flex-wrap: wrap;
  }

  .demo-header strong {
    width: 100%;
    margin-left: 18px;
  }
}
