:root {
  --bg: #f7f4ec;
  --ink: #182133;
  --muted: #687082;
  --line: rgba(116, 98, 70, 0.22);
  --panel: rgba(255, 253, 247, 0.86);
  --panel-strong: #fffdf7;
  --green: #1fa855;
  --green-dark: #0d6f3d;
  --green-soft: rgba(31, 168, 85, 0.12);
  --navy: #11233d;
  --wa-dark: #111b21;
  --wa-panel: #202c33;
  --wa-out: #005c4b;
  --shadow: 0 22px 60px rgba(61, 47, 28, 0.16);
  --radius: 8px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(31, 168, 85, 0.12), transparent 26rem),
    linear-gradient(180deg, #fffaf0 0%, var(--bg) 42%, #ffffff 100%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(24, 33, 51, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 33, 51, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 78%);
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 244, 236, 0.9);
  backdrop-filter: blur(14px);
}

.back-btn,
.btn-secondary,
.btn-green {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 800;
  line-height: 1;
}

.back-btn {
  padding: 0 13px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.72);
  color: var(--muted);
  font-size: 13px;
}

.back-btn:hover {
  color: var(--ink);
  background: var(--panel-strong);
}

.header-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.header-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(31, 168, 85, 0.22);
  border-radius: var(--radius);
  background: var(--green-soft);
  color: var(--green-dark);
}

.header-brand h1,
.header-brand p {
  margin: 0;
}

.header-brand h1 {
  font-size: 17px;
  line-height: 1.1;
}

.header-brand p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

main {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 74px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(380px, 1.06fr);
  gap: 42px;
  align-items: center;
  margin-bottom: 62px;
}

.hero-copy {
  min-width: 0;
}

.channel-pill {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  padding: 8px 13px;
  border: 1px solid rgba(31, 168, 85, 0.22);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.78);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 850;
}

.channel-pill span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px var(--green-soft);
}

.hero h1 {
  max-width: 12ch;
  margin: 0 0 18px;
  color: var(--navy);
  font-size: 56px;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p {
  max-width: 58ch;
  margin: 0 0 26px;
  color: #4f5b6d;
  font-size: 18px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-green {
  padding: 0 18px;
  border: 1px solid rgba(13, 111, 61, 0.25);
  background: var(--green);
  color: #04180d;
  box-shadow: 0 14px 28px rgba(31, 168, 85, 0.24);
}

.btn-green:hover {
  background: #25bd63;
}

.btn-secondary {
  padding: 0 18px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.72);
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--panel-strong);
}

.chat-preview {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: var(--wa-dark);
  box-shadow: var(--shadow);
}

.chat-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #075e54;
  color: #ffffff;
}

.chat-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #d9fdd3;
  color: #075e54;
  font-size: 13px;
  font-weight: 950;
}

.chat-topbar strong,
.chat-topbar span {
  display: block;
}

.chat-topbar strong {
  font-size: 15px;
}

.chat-topbar span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
}

.chat-thread {
  min-height: 520px;
  max-height: 620px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  background:
    radial-gradient(circle at 20px 20px, rgba(255, 255, 255, 0.045) 0 2px, transparent 3px),
    linear-gradient(135deg, #0f171c, #151f25);
  background-size: 36px 36px, auto;
}

.wa-msg {
  max-width: min(78%, 430px);
  padding: 10px 12px 7px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.44;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.wa-msg.in {
  align-self: flex-start;
  background: var(--wa-panel);
  border-bottom-left-radius: 2px;
}

.wa-msg.out {
  align-self: flex-end;
  background: var(--wa-out);
  border-bottom-right-radius: 2px;
}

.wa-msg strong {
  color: inherit;
  font-weight: 850;
}

.wa-msg span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
  text-align: right;
}

.try-section,
.capability-section,
.cta-box {
  margin-top: 24px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 20px;
}

.section-heading span,
.cta-box span {
  display: block;
  margin-bottom: 8px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.section-heading h2,
.cta-box h2 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p,
.cta-box p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.section-heading.compact {
  max-width: 620px;
}

.steps-grid,
.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

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

.step-card,
.capability-grid article,
.cta-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 14px 34px rgba(61, 47, 28, 0.08);
}

.step-card,
.capability-grid article {
  min-width: 0;
  padding: 18px;
}

.step-card strong {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: var(--radius);
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 14px;
}

.step-card h3,
.capability-grid h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.2;
}

.step-card h3 span {
  display: inline-grid;
  min-width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 6px;
  background: #d9fdd3;
  color: #075e54;
  font-weight: 950;
}

.step-card p,
.capability-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(31, 168, 85, 0.14), rgba(255, 253, 247, 0.92)),
    var(--panel);
}

.cta-box h2 {
  font-size: 32px;
}

.cta-box .btn-green {
  flex: 0 0 auto;
}

@media (max-width: 980px) {
  main {
    width: min(720px, calc(100% - 32px));
    padding-top: 38px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero h1 {
    max-width: 14ch;
    font-size: 46px;
  }

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

@media (max-width: 640px) {
  header {
    padding: 12px 14px;
    align-items: flex-start;
  }

  .back-btn {
    min-height: 38px;
    padding: 0 11px;
  }

  .header-icon {
    width: 36px;
    height: 36px;
  }

  .header-brand h1 {
    font-size: 15px;
  }

  .header-brand p {
    font-size: 11px;
  }

  main {
    width: min(100% - 24px, 520px);
    padding: 30px 0 52px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: 38px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-actions,
  .cta-box {
    align-items: stretch;
    flex-direction: column;
  }

  .btn-green,
  .btn-secondary {
    width: 100%;
  }

  .chat-thread {
    min-height: 0;
    max-height: none;
    padding: 12px;
  }

  .wa-msg {
    max-width: 88%;
    font-size: 13px;
  }

  .section-heading h2,
  .cta-box h2 {
    font-size: 28px;
  }

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

  .cta-box {
    padding: 20px;
  }
}
