/* m:\chatforwix.com\public\assets\css\style.css */

:root {
  --primary-color: #116dff;
  --primary-dark: #0a3d91;
  --accent-color: #ff6b5f;
  --mint-color: #20c997;
  --sun-color: #f7c948;
  --ink-color: #15141a;
  --text-color: #3c4050;
  --muted-color: #6f7587;
  --light-bg: #f6f8fc;
  --line-color: #dde3ef;
  --body-font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  color: var(--text-color);
  background: var(--light-bg);
  line-height: 1.6;
}

main {
  overflow: hidden;
}

a {
  color: var(--primary-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--ink-color);
  font-weight: 760;
  letter-spacing: 0;
}

p {
  margin-bottom: 1rem;
}

:focus-visible {
  outline: 3px solid rgba(255, 107, 95, 0.65);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(21, 20, 26, 0.08);
  box-shadow: 0 8px 24px rgba(21, 20, 26, 0.05);
  backdrop-filter: blur(16px);
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink-color) !important;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: clamp(11rem, 22vw, 17rem);
  height: auto;
}

.nav-link {
  color: #555b6d;
  font-weight: 650;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--primary-color);
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.text-primary {
  color: var(--primary-color) !important;
}

.btn {
  border-radius: 8px;
  font-weight: 720;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), #0756d6);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 12px 22px rgba(17, 109, 255, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, #0f61df, var(--primary-dark));
  border-color: transparent;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(17, 109, 255, 0.28);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: rgba(17, 109, 255, 0.42);
  background: #ffffff;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff;
}

.hero-section,
.page-hero {
  position: relative;
  padding: 6rem 0 5rem;
  background:
    radial-gradient(circle at 9% 15%, rgba(32, 201, 151, 0.22), transparent 28%),
    radial-gradient(circle at 87% 14%, rgba(255, 107, 95, 0.18), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f6f8fc 100%);
}

.hero-section::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--line-color);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: var(--accent-color);
  box-shadow: 0 0 0 5px rgba(255, 107, 95, 0.14);
}

.hero-copy {
  max-width: 42rem;
  color: #53596b;
  font-size: 1.18rem;
}

.hero-actions,
.final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.hero-proof span,
.supporting-note,
.visual-tip,
.success-panel,
.sidebar-note {
  border: 1px solid rgba(17, 109, 255, 0.14);
  border-radius: 8px;
  background: #ffffff;
}

.hero-proof span {
  padding: 0.55rem 0.75rem;
  color: #3f4657;
  font-size: 0.93rem;
  font-weight: 650;
}

.product-panel,
.quick-card,
.signup-box,
.install-step,
.install-sidebar,
.feature-card,
.comparison-grid > div,
.use-case-grid > div {
  border: 1px solid rgba(21, 20, 26, 0.08);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 20px 55px rgba(21, 20, 26, 0.08);
}

.product-panel {
  overflow: hidden;
}

.product-toolbar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 1rem;
  border-bottom: 1px solid var(--line-color);
  background: #fbfcff;
}

.product-toolbar span {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  background: var(--line-color);
}

.product-toolbar span:nth-child(1) { background: var(--accent-color); }
.product-toolbar span:nth-child(2) { background: var(--sun-color); }
.product-toolbar span:nth-child(3) { background: var(--mint-color); }
.product-toolbar strong { margin-left: auto; color: var(--muted-color); font-size: 0.85rem; }

.chat-preview {
  display: grid;
  gap: 0.9rem;
  padding: 1.35rem;
  background:
    linear-gradient(90deg, rgba(17, 109, 255, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(17, 109, 255, 0.05) 1px, transparent 1px),
    #ffffff;
  background-size: 24px 24px;
}

.message {
  max-width: 82%;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
}

.message.visitor {
  justify-self: start;
  background: #eef3ff;
  color: #203154;
}

.message.ai {
  justify-self: end;
  background: #e8fbf5;
  color: #123f33;
}

.message.agent {
  justify-self: end;
  background: #fff0ee;
  color: #5a241e;
}

.route-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-color);
}

.route-strip div {
  display: grid;
  place-items: center;
  gap: 0.35rem;
  min-height: 86px;
  padding: 0.8rem;
  background: #fbfcff;
  color: #4a5062;
  text-align: center;
  font-weight: 680;
}

.route-strip span {
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border-radius: 999px;
  background: var(--ink-color);
  color: #ffffff;
  font-size: 0.82rem;
}

.signup-band,
.content-section,
.install-shell {
  padding: 5rem 0;
}

.white-section {
  background: #ffffff;
}

.signup-box {
  padding: clamp(1.3rem, 4vw, 2rem);
}

.signup-hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.signup-captcha-group {
  padding: 1rem;
  border: 1px solid rgba(17, 109, 255, 0.14);
  border-radius: 8px;
  background: #f7fbff;
}

.form-control {
  min-height: 3.05rem;
  border-color: #cfd7e6;
  border-radius: 8px;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(17, 109, 255, 0.14);
}

.mini-steps {
  display: grid;
  gap: 0.8rem;
}

.mini-steps div {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  border-left: 4px solid var(--mint-color);
  border-radius: 8px;
  background: #ffffff;
}

.mini-steps span {
  color: var(--muted-color);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 2.3rem;
  text-align: center;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted-color);
  font-size: 1.06rem;
}

.install-roadmap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.install-roadmap article {
  position: relative;
  min-height: 260px;
  padding: 1.35rem;
  border-radius: 8px;
  background: var(--ink-color);
  color: #dfe6f2;
}

.install-roadmap article:nth-child(2) { background: #0f4ebf; }
.install-roadmap article:nth-child(3) { background: #067a65; }
.install-roadmap article:nth-child(4) { background: #8c3a34; }

.install-roadmap h3 {
  color: #ffffff;
  font-size: 1.16rem;
  margin-top: 3.2rem;
}

.step-number {
  position: absolute;
  top: 1.1rem;
  left: 1.2rem;
  color: rgba(255, 255, 255, 0.48);
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1;
}

.feature-card {
  height: 100%;
  padding: 1.4rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(21, 20, 26, 0.11);
}

.feature-card h3 {
  font-size: 1.18rem;
}

.feature-kicker {
  display: inline-flex;
  margin-bottom: 1.1rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: #edf4ff;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.use-case-grid,
.comparison-grid,
.fix-grid,
.settings-grid {
  display: grid;
  gap: 1rem;
}

.use-case-grid {
  grid-template-columns: repeat(2, 1fr);
}

.use-case-grid > div,
.comparison-grid > div {
  padding: 1.25rem;
}

.use-case-grid strong,
.use-case-grid span {
  display: block;
}

.use-case-grid span,
.comparison-grid p {
  color: var(--muted-color);
}

.comparison-grid {
  grid-template-columns: repeat(3, 1fr);
}

.comparison-grid h3 {
  font-size: 1.12rem;
}

.final-cta {
  padding: 4rem 0;
}

.final-cta-inner {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1.5rem, 5vw, 3rem);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(17, 109, 255, 0.95), rgba(10, 61, 145, 0.96)),
    var(--primary-dark);
  color: #ffffff;
}

.final-cta h2,
.final-cta .eyebrow {
  color: #ffffff;
}

.final-cta .eyebrow::before {
  background: var(--sun-color);
  box-shadow: 0 0 0 5px rgba(247, 201, 72, 0.16);
}

.final-cta p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.84);
}

.quick-card {
  padding: 1.5rem;
}

.quick-list {
  display: grid;
  gap: 0;
  margin-bottom: 0;
}

.quick-list div {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--line-color);
}

.quick-list dt {
  color: var(--muted-color);
  font-weight: 700;
}

.quick-list dd {
  margin: 0;
  color: var(--ink-color);
  font-weight: 760;
}

.install-sidebar {
  position: sticky;
  top: 6.5rem;
  padding: 1.25rem;
}

.install-sidebar a {
  display: block;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line-color);
  color: #454b5d;
  text-decoration: none;
  font-weight: 700;
}

.install-sidebar a:hover,
.install-sidebar a:focus {
  color: var(--primary-color);
}

.sidebar-note,
.supporting-note,
.visual-tip,
.success-panel {
  margin-top: 1rem;
  padding: 0.95rem;
  color: #444b5e;
}

.install-step {
  scroll-margin-top: 7rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  margin-bottom: 1rem;
}

.step-label {
  display: inline-flex;
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: #fff0ee;
  color: #8c3a34;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.clean-list {
  display: grid;
  gap: 0.7rem;
  padding-left: 1.2rem;
}

.settings-grid {
  grid-template-columns: repeat(2, 1fr);
  margin: 1.2rem 0;
}

.settings-grid div,
.fix-grid div {
  padding: 1rem;
  border: 1px solid var(--line-color);
  border-radius: 8px;
  background: #fbfcff;
}

.settings-grid span,
.settings-grid strong {
  display: block;
}

.settings-grid span {
  color: var(--muted-color);
  font-size: 0.85rem;
  font-weight: 700;
}

.install-screenshot {
  margin: 1.4rem 0;
  overflow: hidden;
  border: 1px solid var(--line-color);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(21, 20, 26, 0.08);
}

.install-screenshot img {
  display: block;
  width: 100%;
  height: auto;
}

.install-screenshot figcaption {
  margin: 0;
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--line-color);
  color: var(--muted-color);
  font-size: 0.9rem;
}

.fix-grid {
  grid-template-columns: repeat(2, 1fr);
}

.fix-grid h3 {
  font-size: 1rem;
}

.fix-grid p {
  margin-bottom: 0;
  color: var(--muted-color);
}

/* Code block */
.code-block-wrapper {
  position: relative;
  overflow: auto;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #15141a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.code-block-wrapper code {
  display: block;
  min-width: min(100%, 34rem);
  padding-top: 1.9rem;
  color: #f6f8fc;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.copy-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  min-height: 2rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  transition: background 0.2s ease, transform 0.2s ease;
}

.copy-btn:hover,
.copy-btn:focus {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.card,
.accordion-item,
.alert,
.list-group-item {
  border-radius: 8px;
}

footer {
  background: #ffffff !important;
}

@media (max-width: 991.98px) {
  .site-header {
    position: static;
  }

  .hero-section,
  .page-hero {
    padding: 4rem 0;
  }

  .navbar-collapse .btn {
    width: 100%;
    margin-top: 0.75rem;
  }

  .install-roadmap,
  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .install-roadmap article {
    min-height: auto;
  }

  .install-sidebar {
    position: static;
  }

  .final-cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 767.98px) {
  .hero-actions,
  .final-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .btn,
  .final-actions .btn {
    width: 100%;
  }

  .route-strip,
  .use-case-grid,
  .settings-grid,
  .fix-grid {
    grid-template-columns: 1fr;
  }

  .mini-steps div,
  .quick-list div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .signup-band,
  .content-section,
  .install-shell {
    padding: 3.5rem 0;
  }
}

/* Chat widget button overrides */
.ims-chatwidget-btn.ims-chatwidget-btn {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  box-shadow: 0 0 0 3px rgba(17, 109, 255, 0.22), 0 8px 28px rgba(17, 109, 255, 0.45);
  border: 1.5px solid rgba(32, 201, 151, 0.7) !important;
  overflow: visible !important;
  isolation: isolate;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.ims-chatwidget-btn.ims-chatwidget-btn:hover {
  background: linear-gradient(135deg, #20c997 0%, var(--primary-color) 100%);
  box-shadow: 0 0 0 5px rgba(32, 201, 151, 0.22), 0 12px 40px rgba(17, 109, 255, 0.55);
  transform: scale(1.07) translateY(-2px) !important;
}

.ims-chatwidget-btn .ims-cwi.ims-cwi-default:before {
  color: #ffffff !important;
  text-shadow: 0 0 12px rgba(32, 201, 151, 0.72) !important;
}

@keyframes cwfx-orbit-a {
  0% { transform: rotate(0deg) scale(1); opacity: 0.52; }
  50% { transform: rotate(180deg) scale(1.08); opacity: 0.95; }
  100% { transform: rotate(360deg) scale(1); opacity: 0.52; }
}

@keyframes cwfx-orbit-b {
  0% { transform: rotate(360deg) scale(1.02); opacity: 0.6; }
  50% { transform: rotate(180deg) scale(0.96); opacity: 0.9; }
  100% { transform: rotate(0deg) scale(1.02); opacity: 0.6; }
}

@keyframes cwfx-orbit-c {
  0%, 100% { transform: rotate(0deg) scale(1); opacity: 0.56; }
  33% { transform: rotate(120deg) scale(1.12); opacity: 0.88; }
  66% { transform: rotate(240deg) scale(0.98); opacity: 0.72; }
}

@keyframes cwfx-spark-a {
  0%, 100% { opacity: 0.38; filter: saturate(1); }
  50% { opacity: 1; filter: saturate(1.4); }
}

@keyframes cwfx-pulse-a {
  0%, 100% { box-shadow: 0 0 0 3px rgba(17, 109, 255, 0.2), 0 8px 28px rgba(17, 109, 255, 0.42); }
  50% { box-shadow: 0 0 0 7px rgba(255, 107, 95, 0.12), 0 12px 38px rgba(32, 201, 151, 0.42); }
}

.ims-chatwidget-btn::before,
.ims-chatwidget-btn::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
}

.ims-chatwidget-btn::before {
  inset: -12px;
  background:
    radial-gradient(circle at 16% 26%, rgba(255, 255, 255, 0.88) 0 2px, transparent 3px),
    radial-gradient(circle at 84% 24%, rgba(32, 201, 151, 0.72) 0 2px, transparent 3px),
    radial-gradient(circle at 24% 82%, rgba(255, 107, 95, 0.72) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 78%, rgba(247, 201, 72, 0.72) 0 2px, transparent 3px);
  animation: cwfx-spark-a 1.9s ease-in-out infinite;
}

.ims-chatwidget-btn::after {
  inset: -7px;
  border: 1.5px dashed rgba(32, 201, 151, 0.64);
  opacity: 0.74;
  animation: cwfx-orbit-a 5s linear infinite;
}

.ims-chatwidget-btn.cwfx-1::after { animation-duration: 5s; }
.ims-chatwidget-btn.cwfx-1::before { animation-duration: 1.9s; }
.ims-chatwidget-btn.cwfx-2::after { border-style: solid; animation: cwfx-orbit-b 6.5s linear infinite; }
.ims-chatwidget-btn.cwfx-2::before { animation-duration: 2.4s; }
.ims-chatwidget-btn.cwfx-3::after { inset: -10px; border-color: rgba(255, 107, 95, 0.58); animation: cwfx-orbit-c 4.6s ease-in-out infinite; }
.ims-chatwidget-btn.cwfx-3::before { animation-duration: 1.45s; }
.ims-chatwidget-btn.cwfx-4::after { border-style: dotted; border-color: rgba(247, 201, 72, 0.72); animation: cwfx-orbit-b 4.2s linear infinite; }
.ims-chatwidget-btn.cwfx-4::before { inset: -15px; animation-duration: 2.8s; }
.ims-chatwidget-btn.cwfx-5 { animation: cwfx-pulse-a 3.2s ease-in-out infinite; }
.ims-chatwidget-btn.cwfx-5::after { border-style: double; animation: cwfx-orbit-c 7s linear infinite; }
.ims-chatwidget-btn.cwfx-5::before { animation-duration: 1.65s; }

.ims-chatwidget-btn:hover::before {
  opacity: 1;
  transform: scale(1.07);
}

.ims-chatwidget-btn:hover::after {
  opacity: 1;
  animation-duration: 2.5s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
