:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-soft: #eef4ff;
  --text: #111827;
  --muted: #5b6472;
  --line: #e5eaf2;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --violet: #7c3aed;
  --green: #10b981;
  --amber: #f59e0b;
  --red: #ef4444;
  --shadow-sm: 0 10px 30px rgba(17, 24, 39, 0.08);
  --shadow-md: 0 20px 60px rgba(37, 99, 235, 0.13);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
  max-width: 100%;
  overflow-x: hidden;
  overflow-wrap: anywhere;
}

body.nav-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
  min-width: 0;
}

.section-pad {
  padding: 96px 0;
}

.section-soft {
  background:
    radial-gradient(circle at 15% 15%, rgba(37, 99, 235, 0.07), transparent 28%),
    linear-gradient(180deg, #f9fbff 0%, #f2f6fc 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(229, 234, 242, 0.8);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 74px;
}

.logo,
.main-nav,
.header-cta {
  display: flex;
  align-items: center;
}

.logo {
  gap: 10px;
  font-weight: 800;
}

.logo-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: #fff;
  font-size: 13px;
  box-shadow: var(--shadow-sm);
}

.main-nav {
  justify-content: center;
  gap: 24px;
  color: var(--muted);
  font-size: 15px;
}

.main-nav a {
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--blue);
}

.header-cta,
.btn {
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-weight: 750;
  white-space: normal;
  text-align: center;
}

.header-cta {
  padding: 0 18px;
  background: #111827;
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
  border-radius: 10px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 116px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(37, 99, 235, 0.1), transparent 45%),
    radial-gradient(circle at 88% 10%, rgba(124, 58, 237, 0.14), transparent 30%);
  pointer-events: none;
}

.hero-grid,
.manager-grid,
.final-grid,
.compare-grid,
.included-grid,
.split-section,
.faq-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  gap: 54px;
  align-items: center;
}

.hero-grid > *,
.manager-grid > *,
.final-grid > *,
.compare-grid > *,
.included-grid > *,
.split-section > *,
.faq-grid > * {
  min-width: 0;
}

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

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(42px, 7vw, 68px);
}

h2 {
  font-size: clamp(30px, 4.2vw, 46px);
}

h3 {
  font-size: 21px;
}

.hero-lead,
.section-heading p,
.final-copy p {
  color: var(--muted);
  font-size: 19px;
}

.hero-lead {
  max-width: 680px;
  margin: 24px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  padding: 13px 22px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: #fff;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.2);
}

.btn-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero-badges span,
.tag,
.integration-pill,
.lead-label,
.recommend-label {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #334155;
  font-size: 14px;
  font-weight: 750;
}

.hero-badges span {
  padding: 9px 12px;
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 520px;
}

.chat-window,
.lead-card,
.contact-form,
.compare-table,
.mid-cta {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.chat-window {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding: 0 0 22px;
  overflow: hidden;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
  color: var(--muted);
  font-size: 13px;
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}

.window-bar span:first-child {
  background: var(--red);
}

.window-bar span:nth-child(2) {
  background: var(--amber);
}

.window-bar span:nth-child(3) {
  background: var(--green);
}

.window-bar strong {
  margin-left: 8px;
}

.chat-thread {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.bubble {
  max-width: 82%;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-weight: 650;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.06);
}

.bubble-client {
  justify-self: start;
  background: #f1f5f9;
}

.bubble-ai {
  justify-self: end;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(124, 58, 237, 0.12));
  color: #1e293b;
}

.crm-card {
  position: absolute;
  right: -18px;
  bottom: 34px;
  width: min(290px, 72%);
  padding: 18px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
}

.crm-card div,
.lead-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.crm-card div:first-child,
.lead-card-head div {
  justify-content: flex-start;
}

.crm-card p {
  margin: 12px 0 8px;
  color: var(--muted);
}

.crm-card small {
  color: var(--green);
  font-weight: 800;
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.12);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 38px;
}

.section-heading.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading p {
  margin: 16px 0 0;
}

.audience-grid,
.cards-grid,
.pain-grid,
.integration-grid,
.kpi-grid,
.pricing-grid,
.steps-grid {
  display: grid;
  gap: 18px;
}

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

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

.mini-card,
.feature-card,
.solution-card,
.step-card,
.kpi-card,
.pricing-card,
.comparison-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.mini-card,
.feature-card,
.solution-card,
.pricing-card,
.comparison-card {
  padding: 24px;
}

.mini-card p,
.feature-card p,
.solution-card p,
.comparison-card li,
.pricing-card li,
.kpi-card p,
.step-card p,
.compare-col p,
.compare-col li,
.faq-list p {
  color: var(--muted);
}

.icon-letter {
  display: inline-grid;
  min-width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--blue);
  font-weight: 900;
}

.before-after,
.compare-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.comparison-card ul,
.solution-card ul,
.pricing-card ul,
.compare-col ul,
.check-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.comparison-card li,
.solution-card li,
.pricing-card li,
.compare-col li,
.check-list li {
  position: relative;
  padding-left: 24px;
  margin-top: 10px;
}

.comparison-card li::before,
.solution-card li::before,
.pricing-card li::before,
.compare-col li::before,
.check-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

.before li::before,
.muted li::before {
  background: var(--red);
}

.after li::before,
.strong li::before,
.check-list li::before {
  background: var(--green);
}

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

.solution-card {
  grid-column: span 2;
}

.solution-card:nth-child(4),
.solution-card:nth-child(5) {
  grid-column: span 3;
}

.tag,
.lead-label,
.recommend-label {
  display: inline-flex;
  padding: 7px 10px;
  color: var(--blue);
}

.solution-card h3 {
  margin-top: 16px;
}

.accent-card {
  border-color: rgba(37, 99, 235, 0.24);
  background: linear-gradient(180deg, #fff, #f3f7ff);
}

.lead-card {
  padding: 26px;
}

.lead-fields {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
}

.lead-fields div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding: 12px;
  border-radius: var(--radius);
  background: #f8fafc;
}

.lead-fields dt {
  color: var(--muted);
  font-weight: 750;
}

.lead-fields dd {
  margin: 0;
  font-weight: 750;
}

.process-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.process-step {
  min-height: 82px;
  display: grid;
  place-items: center;
  padding: 18px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: var(--radius);
  background: var(--surface);
  color: #1e293b;
  font-weight: 850;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.process-arrow {
  color: var(--blue);
  font-size: 26px;
  font-weight: 900;
}

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

.step-card {
  padding: 18px;
}

.step-card span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 50%;
  background: #e0e7ff;
  color: var(--blue);
  font-weight: 900;
}

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

.integration-pill {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border-radius: var(--radius);
  font-size: 16px;
  box-shadow: var(--shadow-sm);
}

.scenario-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.tab-button {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.tab-button.active {
  border-color: rgba(37, 99, 235, 0.22);
  background: var(--blue);
  color: #fff;
}

.scenario-panel {
  display: none;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.scenario-panel.active {
  display: block;
}

.scenario-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.scenario-flow span {
  min-height: 72px;
  display: grid;
  place-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
  color: #334155;
  text-align: center;
  font-weight: 750;
}

.mid-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(124, 58, 237, 0.09)),
    var(--surface);
}

.mid-cta h2 {
  max-width: 760px;
}

.compare-table {
  padding: 10px;
}

.compare-col {
  padding: 24px;
  border-radius: var(--radius);
}

.compare-col.muted {
  background: #f8fafc;
}

.compare-col.strong {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(16, 185, 129, 0.09));
}

.included-grid {
  grid-template-columns: 0.85fr 1.15fr;
}

.check-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

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

.pricing-card {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.pricing-card.recommended {
  border-color: rgba(37, 99, 235, 0.34);
  transform: translateY(-12px);
  box-shadow: var(--shadow-md);
}

.recommend-label {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #eff6ff;
}

.price {
  margin: 18px 0 2px;
  font-size: clamp(30px, 3vw, 38px);
  font-weight: 900;
  line-height: 1.08;
}

.term {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.support-note {
  margin: 28px auto 0;
  padding: 16px;
  max-width: 720px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

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

.kpi-card {
  padding: 22px;
}

.kpi-card strong {
  display: block;
  color: var(--blue);
  font-size: 30px;
  line-height: 1;
}

.faq-grid {
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

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

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

.final-section {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.94), rgba(124, 58, 237, 0.9)),
    #1d4ed8;
  color: #fff;
}

.final-copy .eyebrow,
.final-copy p {
  color: rgba(255, 255, 255, 0.82);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  color: var(--text);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: #334155;
  font-size: 14px;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--text);
  background: #f8fafc;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(37, 99, 235, 0.13);
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--green);
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .header-inner {
    gap: 18px;
  }

  .main-nav {
    gap: 14px;
  }

  .hero-grid,
  .manager-grid,
  .final-grid,
  .compare-grid,
  .included-grid,
  .split-section,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 440px;
  }

  .solution-grid,
  .audience-grid,
  .cards-grid,
  .pain-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .solution-card,
  .solution-card:nth-child(4),
  .solution-card:nth-child(5) {
    grid-column: auto;
  }

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

@media (max-width: 820px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .section-pad {
    padding: 72px 0;
  }

  .header-inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav,
  .header-cta {
    display: none;
  }

  .main-nav.open,
  .header-cta.open {
    display: flex;
  }

  .main-nav.open {
    position: absolute;
    top: 74px;
    right: 14px;
    left: 14px;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-md);
  }

  .header-cta.open {
    position: absolute;
    right: 32px;
    bottom: -264px;
    left: 32px;
  }

  .hero {
    padding-top: 86px;
  }

  .hero-actions,
  .mid-cta,
  .before-after,
  .compare-table {
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .btn,
  .hero-actions .btn {
    width: 100%;
  }

  .crm-card {
    right: 12px;
    bottom: 0;
  }

  .audience-grid,
  .cards-grid,
  .pain-grid,
  .solution-grid,
  .pricing-grid,
  .integration-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.recommended {
    transform: none;
  }

  .process-flow {
    grid-template-columns: 1fr;
  }

  .process-arrow {
    transform: rotate(90deg);
    text-align: center;
  }

  .steps-grid,
  .kpi-grid,
  .scenario-flow,
  .check-list {
    grid-template-columns: 1fr;
  }

  .lead-fields div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 34px;
    line-height: 1.12;
  }

  h2 {
    font-size: 28px;
  }

  .eyebrow {
    font-size: 12px;
    line-height: 1.35;
  }

  .hero-lead,
  .section-heading p,
  .final-copy p {
    font-size: 17px;
  }

  .hero {
    padding-top: 76px;
  }

  .hero-copy,
  .section-heading,
  .hero-actions,
  .hero-badges,
  .final-copy {
    max-width: min(100%, 362px);
  }

  .hero-visual {
    min-height: 470px;
  }

  .chat-window {
    max-width: 340px;
    margin-right: auto;
    margin-left: 0;
  }

  .bubble {
    max-width: 90%;
    font-size: 15px;
  }

  .crm-card {
    right: auto;
    left: 24px;
    width: min(280px, calc(100% - 24px));
  }
}

@media (max-width: 460px) {
  h1 {
    font-size: 33px;
    line-height: 1.12;
  }

  h2 {
    font-size: 27px;
  }

  .eyebrow {
    font-size: 12px;
  }

  .hero-lead,
  .section-heading p,
  .final-copy p {
    font-size: 17px;
  }

  .chat-thread,
  .mini-card,
  .feature-card,
  .solution-card,
  .pricing-card,
  .comparison-card,
  .contact-form,
  .lead-card,
  .mid-cta {
    padding: 18px;
  }

  .bubble {
    max-width: 96%;
  }

  .hero-visual {
    min-height: 470px;
  }

  .crm-card {
    right: 0;
    width: calc(100% - 24px);
  }

  .recommend-label {
    position: static;
    width: max-content;
    margin-bottom: 14px;
  }
}
