:root {
  --bg: #fbfcfc;
  --surface: #ffffff;
  --tint: #f0f7f6;
  --text: #0f1f1d;
  --muted: #52615f;
  --border: #dde7e5;
  --primary: #0f766e;
  --primary-ink: #ffffff;
  --bubble: #eef2f2;
  --shadow: 0 20px 50px -24px rgb(15 60 55 / 0.35);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1211;
    --surface: #111b1a;
    --tint: #0e1817;
    --text: #e7efee;
    --muted: #9aaba8;
    --border: #22302e;
    --primary: #2fb3a6;
    --primary-ink: #04201d;
    --bubble: #1a2725;
    --shadow: 0 20px 50px -24px rgb(0 0 0 / 0.7);
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    16px/1.6 system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.container {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-default {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-name {
  font-weight: 650;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.brand-logo {
  height: 32px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

nav {
  display: flex;
  gap: 20px;
  font-size: 0.95rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
}

nav a:hover {
  color: var(--text);
}

/* Hero */
.hero {
  padding: 72px 0 56px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.lead {
  margin: 20px 0 0;
  max-width: 56ch;
  color: var(--muted);
  font-size: 1.1rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  background: var(--primary);
  color: var(--primary-ink);
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
}

.button:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.button-quiet {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.button:focus-visible,
nav a:focus-visible,
.brand:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent);
  outline-offset: 2px;
}

/* Chat demo */
.chat-demo {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--primary);
  color: var(--primary-ink);
}

.chat-head strong {
  display: block;
  font-size: 0.98rem;
}

.chat-head small {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.85;
}

.chat-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary-ink) 22%, transparent);
  font-weight: 700;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
}

.chat-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 18px 22px;
  font-size: 0.95rem;
}

.bubble {
  margin: 0;
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 16px;
  line-height: 1.45;
}

.bubble-visitor {
  align-self: flex-end;
  background: var(--primary);
  color: var(--primary-ink);
  border-bottom-right-radius: 6px;
}

.bubble-agent {
  align-self: flex-start;
  background: var(--bubble);
  border-bottom-left-radius: 6px;
}

.handoff {
  align-self: center;
  margin: 6px 0 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--muted);
  font-size: 0.8rem;
}

/* Sections */
.section {
  padding: 72px 0;
}

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

h2 {
  margin: 0 0 32px;
  max-width: 28ch;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

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

.features li {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.features p,
.steps p {
  margin: 0;
  color: var(--muted);
}

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

.steps li {
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-ink);
  font-weight: 700;
}

/* Footer */
.site-footer {
  padding: 28px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

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

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

  .hero-inner {
    gap: 40px;
  }

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

@media (min-width: 861px) and (max-width: 1040px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .button {
    transition: none;
  }
}
