:root {
  color: #17211c;
  background: #f3f0e8;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #17211c;
  background: #f3f0e8;
}

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

button {
  font: inherit;
}

.siteHeader {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: 74px;
  padding: 0 clamp(18px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(243, 240, 232, 0.88);
  border-bottom: 1px solid rgba(32, 42, 36, 0.12);
  backdrop-filter: blur(16px);
}

.brand,
.headerActions,
.siteNav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
}

.brandMark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #ef9d22;
  border-radius: 8px;
  background: #fff7e8;
  color: #8a4b00;
}

.siteNav {
  gap: clamp(14px, 3vw, 34px);
  color: #4f5a53;
  font-size: 14px;
}

.headerActions {
  gap: 12px;
}

.langToggle,
.loginLink,
.secondaryCta {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(23, 33, 28, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #17211c;
  font-weight: 700;
}

.langToggle {
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 92vh;
  padding: 118px clamp(18px, 5vw, 72px) 72px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(243, 240, 232, 0.96) 0%, rgba(243, 240, 232, 0.78) 42%, rgba(243, 240, 232, 0.2) 100%),
    radial-gradient(circle at 82% 34%, rgba(20, 93, 72, 0.2), transparent 34%),
    linear-gradient(135deg, #f3f0e8 0%, #e6eee9 56%, #fff7e8 100%);
}

.heroCopy {
  position: relative;
  z-index: 2;
  width: min(680px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: #99610b;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

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

h1 {
  margin-bottom: 22px;
  max-width: 780px;
  font-size: clamp(46px, 6.1vw, 78px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.04;
  letter-spacing: 0;
}

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

.heroLead,
.sectionCopy p,
.installSection p,
.finalCta h2 + p {
  max-width: 680px;
  color: #49544d;
  font-size: 18px;
  line-height: 1.6;
}

.heroActions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primaryCta {
  min-height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #143f32;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(20, 63, 50, 0.2);
}

.heroScene {
  position: absolute;
  inset: 74px 0 0 auto;
  width: min(58vw, 820px);
  min-width: 560px;
}

.scenePanel {
  position: absolute;
  border: 1px solid rgba(24, 35, 30, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 26px 80px rgba(28, 35, 31, 0.18);
  backdrop-filter: blur(8px);
}

.inboxPanel {
  top: 56px;
  right: 72px;
  width: 360px;
  padding: 18px;
}

.widgetPanel {
  top: 220px;
  right: 190px;
  width: 330px;
  padding: 18px;
}

.scopePanel {
  top: 380px;
  right: 42px;
  width: 390px;
  padding: 18px;
}

.panelTop {
  display: flex;
  gap: 7px;
  margin-bottom: 18px;
}

.panelTop span,
.statusDot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #ef9d22;
}

.panelTop span:nth-child(2) {
  background: #2f7d62;
}

.panelTop span:nth-child(3) {
  background: #cfd8d1;
}

.metricStrip {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 18px;
}

.metricStrip strong {
  font-size: 42px;
  line-height: 1;
}

.metricStrip span,
.sourcePill,
.scopeLabel {
  color: #627068;
  font-size: 13px;
  font-weight: 700;
}

.ticketLine,
.scopeRow,
.mockTable span {
  height: 12px;
  border-radius: 999px;
  background: #d9e1dc;
}

.ticketLine {
  margin-top: 12px;
}

.ticketLine.resolved {
  width: 78%;
  background: #b9dccb;
}

.ticketLine.short {
  width: 52%;
}

.chatHeader {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.statusDot {
  background: #2f7d62;
}

.bubble {
  width: fit-content;
  max-width: 92%;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.35;
}

.bubble.user {
  margin-left: auto;
  background: #143f32;
  color: #fff;
}

.bubble.bot {
  background: #eef3ef;
}

.sourcePill {
  width: fit-content;
  margin-top: 14px;
  padding: 6px 9px;
  border-radius: 999px;
  background: #fff3dc;
  color: #8a4b00;
}

.scopeLabel {
  display: block;
  margin-bottom: 14px;
}

.scopeRow {
  margin-bottom: 10px;
}

.scopeRow.active {
  background: #b9dccb;
}

.scopeRow.blocked {
  width: 62%;
  background: #f2c8bd;
}

.codeLine,
.snippet {
  overflow-x: auto;
  border: 1px solid rgba(20, 63, 50, 0.14);
  border-radius: 8px;
  background: #14241e;
  color: #e9fff5;
  font: 700 14px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.codeLine {
  margin-top: 18px;
  padding: 10px;
}

.proofBand {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(23, 33, 28, 0.12);
  border-bottom: 1px solid rgba(23, 33, 28, 0.12);
  background: #fffdf7;
}

.proofBand div {
  min-height: 132px;
  padding: 26px clamp(18px, 4vw, 52px);
  display: grid;
  align-content: center;
  gap: 6px;
  border-right: 1px solid rgba(23, 33, 28, 0.12);
}

.proofBand div:last-child {
  border-right: 0;
}

.proofBand strong {
  font-size: 32px;
}

.proofBand span {
  color: #59645e;
}

.sectionSplit,
.controlSection,
.installSection,
.finalCta {
  padding: clamp(76px, 10vw, 124px) clamp(18px, 5vw, 72px);
}

.sectionSplit,
.controlSection,
.installSection {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: center;
}

.stepsGrid {
  display: grid;
  gap: 14px;
}

.stepsGrid article {
  min-height: 142px;
  padding: 22px;
  border: 1px solid rgba(23, 33, 28, 0.13);
  border-radius: 8px;
  background: #fffdf8;
}

.stepsGrid span {
  display: block;
  margin-bottom: 18px;
  color: #99610b;
  font-weight: 900;
}

.stepsGrid p {
  color: #59645e;
  line-height: 1.5;
}

.controlSection {
  background: #e7eee9;
}

.controlVisual {
  min-height: 420px;
  display: grid;
  align-items: center;
}

.adminMock {
  min-height: 360px;
  display: grid;
  grid-template-columns: 96px 1fr;
  overflow: hidden;
  border: 1px solid rgba(23, 33, 28, 0.13);
  border-radius: 8px;
  background: #f9faf7;
  box-shadow: 0 22px 70px rgba(23, 33, 28, 0.14);
}

.mockSidebar {
  padding: 22px 16px;
  display: grid;
  align-content: start;
  gap: 14px;
  background: #dce5df;
}

.mockSidebar span,
.mockToolbar,
.mockCards div {
  border-radius: 8px;
  background: #fffdf8;
}

.mockSidebar span {
  height: 36px;
}

.mockMain {
  padding: 24px;
}

.mockToolbar {
  height: 58px;
  margin-bottom: 18px;
}

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

.mockCards div {
  min-height: 92px;
  border: 1px solid rgba(23, 33, 28, 0.1);
}

.mockTable {
  display: grid;
  gap: 12px;
}

.mockTable span {
  height: 18px;
}

.checkList {
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  list-style: none;
}

.checkList li {
  padding-left: 28px;
  position: relative;
  color: #314039;
  line-height: 1.5;
}

.checkList li::before {
  content: "";
  position: absolute;
  top: 0.45em;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #2f7d62;
}

.installSection {
  background: #fffdf8;
}

.snippet {
  margin: 0;
  padding: 24px;
  white-space: pre;
}

.finalCta {
  min-height: 430px;
  display: grid;
  place-items: center;
  text-align: center;
  background: #143f32;
  color: #fff;
}

.finalCta .eyebrow {
  color: #f2b84c;
}

.finalCta h2 {
  max-width: 900px;
}

.finalCta .primaryCta {
  background: #fff7e8;
  color: #143f32;
}

.siteFooter {
  min-height: 86px;
  padding: 0 clamp(18px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #5b665f;
  background: #f3f0e8;
  border-top: 1px solid rgba(23, 33, 28, 0.12);
}

.siteFooter span:first-child {
  color: #17211c;
  font-weight: 900;
}

@media (max-width: 940px) {
  .siteNav {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 118px;
    padding-bottom: 420px;
  }

  .heroScene {
    inset: auto 0 0;
    width: 100%;
    min-width: 0;
    height: 390px;
  }

  .inboxPanel {
    top: 18px;
    right: 18px;
    width: min(340px, 74vw);
  }

  .widgetPanel {
    top: 142px;
    right: auto;
    left: 18px;
    width: min(320px, 78vw);
  }

  .scopePanel {
    top: 262px;
    right: 18px;
    width: min(360px, 80vw);
  }

  .proofBand,
  .sectionSplit,
  .controlSection,
  .installSection {
    grid-template-columns: 1fr;
  }

  .proofBand div {
    border-right: 0;
    border-bottom: 1px solid rgba(23, 33, 28, 0.12);
  }

  .proofBand div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 620px) {
  .siteHeader {
    height: 66px;
  }

  .loginLink {
    display: none;
  }

  h1 {
    font-size: 44px;
  }

  .heroLead,
  .sectionCopy p,
  .installSection p {
    font-size: 16px;
  }

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

  .primaryCta,
  .secondaryCta {
    width: 100%;
  }

  .adminMock {
    grid-template-columns: 68px 1fr;
  }

  .mockCards {
    grid-template-columns: 1fr;
  }

  .siteFooter {
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    padding-top: 22px;
    padding-bottom: 22px;
  }
}
