:root {
  --home-ink: #111318;
  --home-muted: #667085;
  --home-soft: #f5f7fb;
  --home-paper: #ffffff;
  --home-line: #d9e0ea;
  --home-blue: #2458d3;
  --home-teal: #0f766e;
  --home-coral: #c8513b;
  --home-amber: #a66714;
  --home-shadow: 0 24px 70px rgba(17, 19, 24, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.home-page {
  background: var(--home-paper);
  color: var(--home-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

.home-page main {
  overflow: hidden;
}

.home-shell {
  min-height: 100vh;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7f9fc 46%, #ffffff 100%);
}

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

.home-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(217, 224, 234, 0.86);
  backdrop-filter: blur(16px);
}

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

.brand-lockup,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--home-ink);
  text-decoration: none;
  font-weight: 800;
  line-height: 1;
}

.brand-mark {
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(36, 88, 211, 0.18);
}

.brand-wordmark {
  font-size: 1.05rem;
}

.home-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.home-nav a,
.header-link,
.footer-links a {
  color: #4b5565;
  text-decoration: none;
  font-weight: 650;
  font-size: 0.95rem;
}

.home-nav a:hover,
.header-link:hover,
.footer-links a:hover {
  color: var(--home-blue);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-button,
.primary-action,
.secondary-action,
.plan-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 8px;
  font-weight: 750;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.header-button {
  padding: 0 16px;
  background: var(--home-ink);
  color: #ffffff;
}

.header-button:hover,
.primary-action:hover,
.plan-link:hover {
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(17, 19, 24, 0.18);
}

.hero-section {
  min-height: 84vh;
  display: flex;
  align-items: center;
  padding: 48px 0 44px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(560px, 1.1fr);
  align-items: center;
  gap: 54px;
}

.hero-kicker,
.section-kicker {
  margin: 0 0 14px;
  color: var(--home-coral);
  font-weight: 800;
  font-size: 0.82rem;
  line-height: 1.3;
}

.hero-copy h1,
.section-heading h2,
.integration-copy h2,
.final-cta h2 {
  margin: 0;
  color: var(--home-ink);
  font-weight: 850;
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-copy h1 {
  max-width: 660px;
  font-size: 3.2rem;
  line-height: 1.06;
  overflow-wrap: break-word;
}

.hero-copy h1 span {
  display: block;
}

.hero-lede {
  max-width: 610px;
  margin: 24px 0 0;
  color: #4b5565;
  font-size: 1.18rem;
  line-height: 1.7;
}

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

.primary-action {
  padding: 0 20px;
  color: #ffffff;
  background: var(--home-blue);
  border: 1px solid var(--home-blue);
}

.secondary-action {
  padding: 0 18px;
  color: var(--home-ink);
  background: #ffffff;
  border: 1px solid var(--home-line);
}

.secondary-action:hover {
  color: var(--home-blue);
  border-color: rgba(36, 88, 211, 0.4);
  transform: translateY(-1px);
}

.secondary-action.light {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

.secondary-action.light:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.74);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 560px;
  margin-top: 32px;
}

.proof-item {
  min-height: 82px;
  padding: 15px;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.proof-item strong,
.proof-item span {
  display: block;
}

.proof-item strong {
  color: var(--home-ink);
  font-size: 1.02rem;
}

.proof-item span {
  margin-top: 5px;
  color: var(--home-muted);
  font-size: 0.88rem;
}

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

.console-window {
  width: 100%;
  min-width: 0;
  background: #ffffff;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  box-shadow: var(--home-shadow);
  overflow: hidden;
}

.console-topbar {
  min-height: 48px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  background: #f6f8fb;
  border-bottom: 1px solid var(--home-line);
}

.window-dots {
  display: flex;
  gap: 7px;
}

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

.window-dots span:nth-child(1) {
  background: var(--home-coral);
}

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

.window-dots span:nth-child(3) {
  background: var(--home-teal);
}

.console-title,
.console-health {
  color: #4b5565;
  font-size: 0.88rem;
  font-weight: 700;
}

.console-health {
  display: flex;
  align-items: center;
  gap: 8px;
}

.health-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--home-teal);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.14);
}

.console-body {
  min-height: 492px;
  min-width: 0;
  display: grid;
  grid-template-columns: 198px minmax(0, 1fr) 168px;
  background: #ffffff;
}

.console-sidebar,
.conversation-panel,
.metrics-panel {
  min-width: 0;
  padding: 18px;
}

.console-sidebar {
  background: #f8fafc;
  border-right: 1px solid var(--home-line);
}

.sidebar-title,
.panel-label {
  margin: 0;
  color: var(--home-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.queue-row {
  width: 100%;
  min-height: 74px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--home-ink);
  text-align: left;
}

.queue-row:hover,
.queue-row:focus-visible,
.queue-row.active {
  background: #ffffff;
  border-color: var(--home-line);
  outline: none;
}

.queue-row.active {
  box-shadow: 0 10px 22px rgba(36, 88, 211, 0.1);
}

.queue-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(36, 88, 211, 0.1);
  color: var(--home-blue);
  font-weight: 800;
}

.queue-row strong,
.queue-row small {
  display: block;
}

.queue-row strong {
  font-size: 0.88rem;
  line-height: 1.25;
}

.queue-row small {
  margin-top: 3px;
  color: var(--home-muted);
  font-size: 0.76rem;
  line-height: 1.25;
}

.conversation-panel {
  display: flex;
  flex-direction: column;
}

.conversation-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--home-line);
}

.conversation-head h2 {
  margin: 4px 0 0;
  color: var(--home-ink);
  font-size: 1.35rem;
  line-height: 1.2;
  font-weight: 820;
}

.status-pill {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--home-teal);
  font-size: 0.78rem;
  font-weight: 800;
}

.message-stack {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 20px 0;
}

.chat-line {
  max-width: 86%;
  padding: 12px 13px;
  border-radius: 8px;
}

.chat-line span {
  display: block;
  margin-bottom: 6px;
  color: var(--home-muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.chat-line p {
  margin: 0;
  color: #263242;
  font-size: 0.94rem;
  line-height: 1.45;
}

.chat-line.visitor {
  background: #f4f6fa;
}

.chat-line.agent {
  align-self: flex-end;
  background: rgba(36, 88, 211, 0.1);
}

.reply-box {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--home-line);
}

.reply-box input {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  color: var(--home-ink);
}

.reply-box button,
.copy-snippet {
  border: 0;
  border-radius: 8px;
  background: var(--home-ink);
  color: #ffffff;
}

.reply-box button {
  min-height: 44px;
}

.reply-box button:focus-visible,
.copy-snippet:focus-visible,
.primary-action:focus-visible,
.secondary-action:focus-visible,
.header-button:focus-visible,
.header-link:focus-visible,
.home-nav a:focus-visible,
.plan-link:focus-visible {
  outline: 3px solid rgba(36, 88, 211, 0.28);
  outline-offset: 3px;
}

.metrics-panel {
  background: #fbfcfe;
  border-left: 1px solid var(--home-line);
}

.metric-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--home-line);
}

.metric-line span {
  color: var(--home-muted);
  font-size: 0.82rem;
}

.metric-line strong {
  color: var(--home-ink);
  font-size: 0.9rem;
}

.mini-widget {
  margin-top: 20px;
  padding: 14px;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: #ffffff;
}

.mini-widget-head {
  display: flex;
  justify-content: space-between;
  color: var(--home-blue);
  font-weight: 800;
  font-size: 0.84rem;
}

.mini-widget p {
  margin: 18px 0 12px;
  color: #263242;
  font-size: 0.9rem;
  line-height: 1.45;
}

.mini-options {
  display: grid;
  gap: 8px;
}

.mini-options span {
  padding: 8px 10px;
  border-radius: 8px;
  background: #f4f6fa;
  color: #4b5565;
  font-size: 0.78rem;
  font-weight: 750;
}

.signal-strip {
  padding: 28px 0;
  background: var(--home-ink);
  color: #ffffff;
}

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

.signal-item {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  row-gap: 4px;
  align-items: baseline;
}

.signal-item span {
  grid-row: span 2;
  color: #8ab4ff;
  font-weight: 850;
}

.signal-item strong {
  font-size: 1rem;
}

.signal-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  line-height: 1.5;
}

.section-block {
  padding: 96px 0;
  background: #ffffff;
}

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

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

.section-heading h2,
.integration-copy h2,
.final-cta h2 {
  font-size: 3rem;
}

.section-heading p:last-child,
.integration-copy > p,
.final-cta p:last-child {
  margin: 18px 0 0;
  color: #566173;
  font-size: 1.08rem;
  line-height: 1.65;
}

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

.feature-tile,
.pricing-plan {
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: #ffffff;
}

.feature-tile {
  min-height: 252px;
  padding: 22px;
}

.feature-tile i {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--home-blue);
  background: rgba(36, 88, 211, 0.09);
  font-size: 1.2rem;
}

.feature-tile:nth-child(2) i {
  color: var(--home-teal);
  background: rgba(15, 118, 110, 0.1);
}

.feature-tile:nth-child(3) i {
  color: var(--home-coral);
  background: rgba(200, 81, 59, 0.1);
}

.feature-tile:nth-child(4) i {
  color: var(--home-amber);
  background: rgba(166, 103, 20, 0.12);
}

.feature-tile h3,
.pricing-plan h3 {
  margin: 22px 0 0;
  color: var(--home-ink);
  font-size: 1.18rem;
  line-height: 1.25;
  font-weight: 820;
}

.feature-tile p,
.pricing-plan p {
  margin: 12px 0 0;
  color: #566173;
  line-height: 1.6;
  font-size: 0.95rem;
}

.integration-section {
  padding: 96px 0;
  background: #f5f7fb;
}

.integration-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(480px, 1fr);
  align-items: center;
  gap: 54px;
}

.install-list {
  display: grid;
  gap: 13px;
  margin-top: 28px;
}

.install-step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
}

.install-step span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--home-ink);
  color: #ffffff;
  font-weight: 850;
}

.install-step p {
  margin: 4px 0 0;
  color: #4b5565;
  line-height: 1.55;
}

.code-panel {
  overflow: hidden;
  border-radius: 8px;
  background: #101318;
  color: #ffffff;
  box-shadow: var(--home-shadow);
}

.code-header,
.code-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
}

.code-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.code-header span {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 750;
}

.copy-snippet {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: #ffffff;
  color: #101318;
  font-weight: 800;
}

.snippet-code {
  margin: 0;
  padding: 26px 20px;
  color: #dbe7ff;
  font-size: 0.95rem;
  line-height: 1.8;
  white-space: pre-wrap;
}

.code-footer {
  justify-content: flex-start;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.92rem;
}

.code-footer i {
  color: #7dd3c7;
}

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

.pricing-plan {
  padding: 24px;
}

.pricing-plan.featured {
  border-color: rgba(36, 88, 211, 0.44);
  box-shadow: 0 20px 46px rgba(36, 88, 211, 0.12);
}

.plan-head h3 {
  margin-top: 0;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 26px 0 20px;
}

.price strong {
  color: var(--home-ink);
  font-size: 2.7rem;
  line-height: 1;
}

.price span {
  color: var(--home-muted);
  font-weight: 700;
}

.pricing-plan ul {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.pricing-plan li {
  color: #4b5565;
  line-height: 1.4;
}

.pricing-plan li::before {
  content: " ";
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--home-teal);
}

.plan-link {
  width: 100%;
  background: var(--home-ink);
  color: #ffffff;
}

.featured .plan-link {
  background: var(--home-blue);
}

.final-cta {
  padding: 84px 0;
  background: var(--home-ink);
  color: #ffffff;
}

.final-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
}

.final-cta h2 {
  color: #ffffff;
  max-width: 680px;
}

.final-cta .section-kicker {
  color: #8ab4ff;
}

.final-cta p:last-child {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.74);
}

.final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-footer {
  padding: 28px 0;
  border-top: 1px solid var(--home-line);
  background: #ffffff;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 20px;
}

@media (max-width: 1080px) {
  .hero-grid,
  .integration-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: 3.4rem;
  }

  .console-body {
    grid-template-columns: 184px minmax(0, 1fr);
  }

  .metrics-panel {
    display: none;
  }

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

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

  .home-header {
    position: static;
  }

  .header-grid {
    min-height: 66px;
    grid-template-columns: 1fr auto;
    gap: 14px;
  }

  .home-nav {
    display: none;
  }

  .header-link {
    display: none;
  }

  .hero-section {
    min-height: auto;
    padding: 42px 0 34px;
  }

  .hero-grid {
    gap: 34px;
  }

  .hero-copy h1,
  .section-heading h2,
  .integration-copy h2,
  .final-cta h2 {
    font-size: 2.55rem;
  }

  .hero-lede {
    font-size: 1.02rem;
  }

  .hero-proof,
  .signal-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .console-body {
    grid-template-columns: 1fr;
  }

  .console-sidebar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    overflow-x: visible;
    border-right: 0;
    border-bottom: 1px solid var(--home-line);
  }

  .sidebar-title {
    grid-column: auto;
  }

  .queue-row {
    min-width: 0;
  }

  .section-block,
  .integration-section {
    padding: 68px 0;
  }

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

  .final-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .home-container {
    width: min(480px, calc(100% - 24px));
  }

  .brand-wordmark {
    font-size: 1rem;
  }

  .header-button {
    min-height: 40px;
    padding: 0 12px;
  }

  .header-actions {
    display: none;
  }

  .hero-copy h1,
  .section-heading h2,
  .integration-copy h2,
  .final-cta h2 {
    font-size: 1.96rem;
  }

  .hero-copy,
  .hero-lede {
    width: 100%;
    max-width: 342px;
  }

  .hero-actions,
  .final-actions {
    display: grid;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .console-topbar {
    grid-template-columns: auto 1fr;
  }

  .console-health {
    display: none;
  }

  .conversation-head {
    display: grid;
  }

  .reply-box {
    grid-template-columns: 1fr;
  }

  .snippet-code {
    font-size: 0.82rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
