:root {
  color-scheme: light;
  --ink: #17211b;
  --muted: #5c6a62;
  --line: #d8e0d8;
  --paper: #f7f8f4;
  --green: #237a4f;
  --green-dark: #165335;
  --amber: #d5932f;
  --brick: #a84731;
  --shadow: 0 20px 80px rgba(27, 41, 31, 0.16);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(216, 224, 216, 0.9);
  background: rgba(247, 248, 244, 0.92);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  gap: 16px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #133823;
  border-radius: 8px;
  background: #1b5d3d;
  color: #fff;
  font-size: 18px;
}

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-link { color: var(--muted); font-size: 14px; font-weight: 700; }

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--green-dark);
  border-radius: 8px;
  padding: 0 16px;
  background: var(--green-dark);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.button.secondary { border-color: var(--line); background: #fff; color: var(--ink); }

.hero {
  position: relative;
  min-height: 82vh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.product-scene {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(520px, 1.1fr);
  gap: 24px;
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 92px 0 42px;
  opacity: 0.94;
}

.scene-column { display: grid; gap: 14px; align-content: end; }
.scene-column:first-child { padding-bottom: 34px; }

.preview-panel {
  border: 1px solid rgba(23, 33, 27, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.preview-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  border-bottom: 1px solid var(--line);
  padding: 0 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.dot-row { display: flex; gap: 6px; }
.dot { width: 9px; height: 9px; border-radius: 999px; background: var(--line); }
.dot:nth-child(1) { background: var(--brick); }
.dot:nth-child(2) { background: var(--amber); }
.dot:nth-child(3) { background: var(--green); }

.conversation { display: grid; grid-template-columns: 190px 1fr; min-height: 430px; }
.queue { border-right: 1px solid var(--line); background: #f5f7f1; padding: 14px; }

.queue-item {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 10px;
  padding: 10px;
  background: #fff;
}

.queue-item.active {
  border-color: rgba(35, 122, 79, 0.5);
  box-shadow: 0 0 0 3px rgba(35, 122, 79, 0.1);
}

.queue-item strong, .thread strong { font-size: 13px; }
.queue-item span, .thread span, .guardrail span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.thread { display: grid; align-content: space-between; gap: 14px; padding: 18px; }

.message {
  max-width: 78%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  font-size: 13px;
  line-height: 1.45;
}

.message.bot { margin-left: auto; border-color: rgba(35, 122, 79, 0.38); background: #eef7ef; }

.decision-bar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.decision-pill {
  min-height: 30px;
  border-radius: 8px;
  padding: 7px 10px;
  background: #eef2eb;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
}

.guardrails { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.guardrail {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(23, 33, 27, 0.13);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 50px rgba(27, 41, 31, 0.1);
}

.guardrail b { font-size: 13px; }

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 126px 0 90px;
  pointer-events: none;
}

.hero-copy > * { pointer-events: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 999px; background: var(--amber); }

h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(46px, 8vw, 94px);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-copy p { max-width: 560px; margin: 24px 0 0; color: #34423a; font-size: 20px; line-height: 1.45; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.section { border-bottom: 1px solid var(--line); background: #fff; }
.section.alt { background: var(--paper); }
.section-inner { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 64px 0; }
.section-heading { max-width: 660px; margin: 0 0 28px; font-size: 34px; line-height: 1.08; letter-spacing: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { display: grid; gap: 14px; border: 1px solid var(--line); border-radius: 8px; padding: 20px; background: #fff; }
.feature-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 8px; background: #eef7ef; color: var(--green-dark); font-weight: 900; }
.feature h2 { margin: 0; font-size: 18px; }
.feature p, .steps p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
}

.step { padding: 24px; background: #fff; }
.step-number { color: var(--amber); font-size: 13px; font-weight: 900; text-transform: uppercase; }
.step h2 { margin: 12px 0 10px; font-size: 20px; }

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid #173b27;
  border-radius: 8px;
  padding: 28px;
  background: #173b27;
  color: #fff;
}

.cta h2 { margin: 0 0 8px; font-size: 28px; }
.cta p { margin: 0; color: #dbe8de; }
.cta .button { border-color: #fff; background: #fff; color: #173b27; }
.footer { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0; color: var(--muted); font-size: 14px; }

@media (max-width: 920px) {
  .hero { min-height: auto; }
  .product-scene { position: relative; grid-template-columns: 1fr; padding: 24px 0 40px; }
  .scene-column:first-child { display: none; }
  .hero-copy { padding: 72px 0 24px; }
  h1 { font-size: clamp(42px, 12vw, 72px); }
  .feature-grid, .steps, .guardrails { grid-template-columns: 1fr; }
  .conversation { grid-template-columns: 1fr; }
  .queue { display: none; }
  .cta { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  .nav { min-height: 64px; }
  .nav-link { display: none; }
  .button { min-height: 40px; padding: 0 12px; font-size: 13px; }
  .hero-copy p { font-size: 17px; }
  .product-scene { width: min(100% - 24px, 1280px); }
  .message { max-width: 100%; }
  .decision-bar { grid-template-columns: 1fr; }
}
