:root {
  color-scheme: light;
  --ink: #17211b;
  --muted: #5f6d66;
  --line: #d8e1db;
  --panel: #ffffff;
  --soft: #eef4f1;
  --accent: #1f7a55;
  --accent-dark: #12573b;
  --gold: #b9832d;
  --blue: #276b8f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(247, 250, 248, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 230px;
}

.brand-mark {
  width: 42px;
  height: 42px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--accent-dark);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: clamp(56px, 8vw, 110px) clamp(18px, 4vw, 56px) 64px;
  min-height: calc(100vh - 76px);
}

.hero-copy {
  max-width: 760px;
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 20px;
  letter-spacing: 0;
}

.lede {
  margin: 24px 0 0;
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 750;
  text-decoration: none;
  border: 1px solid transparent;
}

.button.primary {
  color: #fff;
  background: var(--accent);
}

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

.hero-media {
  margin: 0;
}

.hero-media img,
.hero-media video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 28px 80px rgba(18, 87, 59, 0.18);
  background: #101714;
}

.story-section {
  background:
    linear-gradient(135deg, rgba(31, 122, 85, 0.1), rgba(39, 107, 143, 0.08)),
    #fff;
}

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

.story-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 24px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.story-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  color: #fff;
  background: var(--ink);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
}

.story-card p,
.story-card li {
  color: var(--muted);
}

.story-card ul {
  display: grid;
  gap: 9px;
  margin: 8px 0 0;
  padding-left: 20px;
}

.story-card li::marker {
  color: var(--accent);
}

.section {
  padding: 78px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(300px, 1.2fr);
  gap: clamp(28px, 5vw, 70px);
  background: #fff;
}

.copy-stack {
  color: var(--muted);
  font-size: 18px;
}

.copy-stack p:first-child {
  margin-top: 0;
}

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

.cards,
.agent-grid,
.posts {
  display: grid;
  gap: 18px;
}

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

.card,
.agent-grid article,
.post,
.chatbot {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.card p,
.agent-grid p,
.post p {
  color: var(--muted);
}

.agents {
  background: var(--soft);
}

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

.agent-grid span {
  display: block;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.work-section {
  background: #fff;
}

.work-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.work-list article {
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.work-list article:nth-child(even) {
  border-right: 0;
}

.work-list article:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.work-list p {
  color: var(--muted);
}

.journal {
  background: #f2f6f3;
}

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

.date {
  margin-top: 0;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.chat-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
  background: #fff;
}

.chat-section > div:first-child p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.chat-log {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 260px;
  max-height: 340px;
  overflow-y: auto;
  padding: 4px;
}

.bot-message,
.user-message {
  max-width: 84%;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 15px;
}

.bot-message {
  align-self: flex-start;
  background: var(--soft);
}

.user-message {
  align-self: flex-end;
  color: #fff;
  background: var(--accent);
}

.priority-message {
  border-color: #e0b456;
  background: #fff8e8;
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 14px;
}

.lead-fields {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.chat-form input,
.chat-form button {
  min-height: 44px;
  border-radius: 8px;
  font: inherit;
}

.chat-form input {
  width: 100%;
  padding: 0 14px;
  border: 1px solid var(--line);
}

.chat-form button {
  padding: 0 18px;
  color: #fff;
  background: var(--accent-dark);
  border: 0;
  font-weight: 800;
  cursor: pointer;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 34px clamp(18px, 4vw, 56px);
  color: var(--muted);
  background: #101714;
}

.footer strong,
.footer a {
  color: #fff;
}

.footer p {
  margin: 8px 0 0;
}

@media (max-width: 900px) {
  .site-header,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    flex-wrap: wrap;
  }

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

  .three,
  .story-grid,
  .agent-grid,
  .posts,
  .work-list {
    grid-template-columns: 1fr;
  }

  .work-list article,
  .work-list article:nth-child(even),
  .work-list article:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .work-list article:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 38px;
  }

  .brand {
    min-width: 0;
  }

  .chat-form {
    grid-template-columns: 1fr;
  }

  .lead-fields {
    grid-template-columns: 1fr;
  }

  .bot-message,
  .user-message {
    max-width: 100%;
  }
}
