:root {
  --ink: #101416;
  --muted: #5e6a70;
  --line: #dfe7e5;
  --paper: #fbfcfa;
  --white: #ffffff;
  --mint: #25c2a0;
  --mint-dark: #087b69;
  --coral: #ff7a59;
  --sun: #f4c95d;
  --blue: #2d6cdf;
  --shadow: 0 24px 70px rgba(16, 20, 22, 0.12);
}

* {
  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: var(--paper);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 0 clamp(18px, 5vw, 72px);
  background: rgba(251, 252, 250, 0.88);
  border-bottom: 1px solid rgba(223, 231, 229, 0.75);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: var(--white);
  background: var(--ink);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 0.94rem;
}

.desktop-nav a:hover,
.site-footer a:hover {
  color: var(--mint-dark);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 8px;
  font-weight: 750;
}

.nav-cta {
  padding: 0 18px;
  color: var(--white);
  background: var(--ink);
}

.button {
  padding: 0 20px;
  border: 1px solid transparent;
}

.button.primary {
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 12px 28px rgba(16, 20, 22, 0.18);
}

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

.button-icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.18);
}

.button.secondary .button-icon {
  background: #eff5f3;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.mobile-nav {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(52px, 8vw, 96px) clamp(18px, 5vw, 72px) 42px;
  background:
    linear-gradient(135deg, rgba(37, 194, 160, 0.13), transparent 38%),
    linear-gradient(315deg, rgba(255, 122, 89, 0.12), transparent 40%),
    var(--paper);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 16px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--mint-dark);
  background: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 8vw, 7.2rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4.5vw, 4.4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
  line-height: 1.25;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-copy p {
  max-width: 610px;
  font-size: 1.16rem;
}

.hero-actions,
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-actions {
  margin-top: 28px;
}

.hero-proof {
  margin-top: 26px;
  color: #3c484d;
  font-size: 0.94rem;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-proof span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
}

.hero-media {
  filter: drop-shadow(0 34px 52px rgba(16, 20, 22, 0.16));
}

.stats-section {
  padding-top: 0 !important;
  background: var(--paper);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1050px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 44px rgba(16, 20, 22, 0.08);
}

.stats-grid div {
  display: grid;
  gap: 8px;
  min-height: 112px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

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

.stats-grid strong {
  color: var(--ink);
  font-size: 2rem;
  line-height: 1;
}

.stats-grid span {
  color: var(--muted);
  font-weight: 700;
}

.section-heading {
  width: min(860px, 100%);
  margin: 0 auto 40px;
  text-align: center;
}

section:not(.hero) {
  padding: clamp(68px, 9vw, 116px) clamp(18px, 5vw, 72px);
}

.pain-section,
.solutions,
.testimonials,
.features,
.pricing,
.faq {
  background: var(--white);
}

.pain-grid,
.steps,
.feature-grid,
.price-grid,
.trust-grid {
  display: grid;
  width: min(1180px, 100%);
  margin: 0 auto;
  gap: 18px;
}

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

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

.price-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.solution-grid,
.testimonial-grid {
  display: grid;
  width: min(1180px, 100%);
  margin: 0 auto;
  gap: 18px;
}

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

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

.pain-grid article,
.steps article,
.solution-grid article,
.feature-grid article,
.testimonial-grid article,
.trust-grid article,
.price-grid article,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.pain-grid article,
.steps article,
.solution-grid article,
.feature-grid article,
.testimonial-grid article,
.trust-grid article {
  padding: 26px;
}

.solution-grid article {
  display: flex;
  min-height: 270px;
  flex-direction: column;
}

.solution-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  border-radius: 8px;
  color: var(--mint-dark);
  background: #e8f8f3;
  font-weight: 900;
}

.solution-grid a {
  margin-top: auto;
  color: var(--mint-dark);
  font-weight: 850;
}

.testimonial-grid article {
  background: #f8fbfa;
}

.testimonial-grid p {
  color: #334045;
  font-size: 1.02rem;
}

.testimonial-grid strong {
  display: block;
  margin-top: 18px;
}

.workflow,
.comparison,
.trust {
  background: #eef7f4;
}

.step-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border-radius: 8px;
  color: var(--white);
  background: var(--mint-dark);
  font-weight: 900;
}

.demo-band {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 1.08fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  background: var(--ink);
  color: var(--white);
}

.demo-band p,
.demo-band .eyebrow {
  color: rgba(255, 255, 255, 0.74);
}

.demo-band .eyebrow {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.demo-copy {
  max-width: 610px;
}

.chat-demo {
  display: grid;
  place-items: center;
}

.phone-shell {
  width: min(430px, 100%);
  min-height: 560px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background: #f8fbfa;
  box-shadow: var(--shadow);
}

.phone-top {
  width: 82px;
  height: 8px;
  margin: 0 auto 34px;
  border-radius: 999px;
  background: #cbd8d5;
}

.message,
.preview-chip,
.deploy-row {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 8px;
  color: var(--ink);
  line-height: 1.5;
}

.message.user {
  margin-left: 44px;
  background: #dcfff6;
}

.message.agent {
  margin-right: 44px;
  background: #eef2f1;
}

.preview-chip {
  border: 1px solid #c9ded9;
  background: var(--white);
  color: var(--mint-dark);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.deploy-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
}

.pulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(37, 194, 160, 0.65);
  animation: pulse 1.4s infinite;
}

@keyframes pulse {
  to {
    box-shadow: 0 0 0 14px rgba(37, 194, 160, 0);
  }
}

.table-wrap {
  width: min(1050px, 100%);
  margin: 0 auto;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

th,
td {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #f5faf8;
  font-size: 0.86rem;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.price-grid article {
  display: flex;
  flex-direction: column;
  padding: 28px;
}

.featured-plan {
  color: var(--white);
  background: var(--ink) !important;
  border-color: var(--ink) !important;
  box-shadow: var(--shadow);
}

.featured-plan p,
.featured-plan li {
  color: rgba(255, 255, 255, 0.75);
}

.plan-label {
  align-self: flex-start;
  margin-bottom: 18px;
  padding: 7px 10px;
  border-radius: 8px;
  background: #e8f8f3;
  color: var(--mint-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.featured-plan .plan-label {
  background: rgba(37, 194, 160, 0.18);
  color: #77f2d7;
}

.price {
  color: var(--ink);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
}

.price span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.price-grid ul {
  display: grid;
  gap: 12px;
  margin: 10px 0 28px;
  padding: 0;
  list-style: none;
}

.price-grid li::before {
  content: "+";
  margin-right: 9px;
  color: var(--mint-dark);
  font-weight: 900;
}

.featured-plan li::before {
  color: #77f2d7;
}

.price-grid .button {
  margin-top: auto;
}

.pricing-note {
  width: min(880px, 100%);
  margin: 24px auto 0;
  text-align: center;
  font-weight: 700;
}

.faq-list {
  display: grid;
  gap: 14px;
  width: min(850px, 100%);
  margin: 0 auto;
}

.faq-list details {
  padding: 20px 22px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 850;
}

.faq-list p {
  margin: 12px 0 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
}

.chatbot {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
}

.chatbot-toggle {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 0;
  border-radius: 16px;
  color: var(--white);
  background: var(--ink);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.chatbot-toggle span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--mint);
  color: var(--ink);
  font-weight: 950;
}

.chatbot-panel {
  position: absolute;
  right: 0;
  bottom: 78px;
  display: none;
  width: min(380px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.chatbot-panel.is-open {
  display: block;
}

.chatbot-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 16px;
  color: var(--white);
  background: var(--ink);
}

.chatbot-header strong,
.chatbot-header span {
  display: block;
}

.chatbot-header span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
}

.chatbot-close {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.chatbot-messages {
  display: grid;
  gap: 10px;
  max-height: 320px;
  min-height: 260px;
  overflow-y: auto;
  padding: 16px;
  background: #f8fbfa;
}

.bot-message,
.user-message {
  max-width: 86%;
  padding: 12px 14px;
  border-radius: 8px;
  line-height: 1.45;
  font-size: 0.95rem;
}

.bot-message {
  justify-self: start;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
}

.user-message {
  justify-self: end;
  color: var(--ink);
  background: #dcfff6;
}

.quick-replies {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  border-top: 1px solid var(--line);
}

.quick-replies button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.chatbot-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 14px 16px 16px;
  border-top: 1px solid var(--line);
}

.chatbot-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
}

.chatbot-form button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  color: var(--white);
  background: var(--ink);
  font-weight: 850;
  cursor: pointer;
}

@media (max-width: 920px) {
  .desktop-nav,
  .nav-cta {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .mobile-nav {
    position: fixed;
    inset: 76px 14px auto;
    z-index: 19;
    display: none;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .mobile-nav.is-open {
    display: grid;
  }

  .mobile-nav a {
    padding: 13px 12px;
    border-radius: 8px;
    background: #f3f8f6;
  }

  .hero,
  .demo-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .pain-grid,
  .steps,
  .feature-grid,
  .trust-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

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

  .solution-grid,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-grid div:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 560px) {
  .hero-actions .button {
    width: 100%;
  }

  h1 {
    font-size: clamp(2.7rem, 17vw, 4.8rem);
  }

  .phone-shell {
    min-height: 500px;
    padding: 18px;
  }

  .message.user {
    margin-left: 18px;
  }

  .message.agent {
    margin-right: 18px;
  }

  .site-footer {
    flex-direction: column;
  }

  .chatbot {
    right: 14px;
    bottom: 14px;
  }

  .solution-grid,
  .stats-grid,
  .price-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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