:root {
  --kx-ink: #172033;
  --kx-muted: #5f6b7a;
  --kx-line: #dfe4ea;
  --kx-surface: #ffffff;
  --kx-soft: #f5f7fa;
  --kx-blue: #1d5fd1;
  --kx-blue-strong: #164ca8;
  --kx-green: #14845d;
  --kx-amber: #b86b12;
  --kx-coral: #c8573c;
  --kx-radius: 8px;
  --kx-shadow: 0 14px 40px rgba(31, 42, 58, 0.09);
}

html {
  scroll-padding-top: 76px;
}

body.ui-refresh {
  color: var(--kx-ink);
  background: var(--kx-surface);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  letter-spacing: 0;
}

body.ui-refresh *,
body.ui-refresh *::before,
body.ui-refresh *::after {
  letter-spacing: 0;
}

body.ui-refresh nav {
  min-height: 68px;
  background: rgba(255, 255, 255, 0.97) !important;
  border-bottom: 1px solid rgba(223, 228, 234, 0.95) !important;
  box-shadow: none !important;
}

body.ui-refresh nav > div {
  min-height: 68px;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body.ui-refresh nav a,
body.ui-refresh nav button {
  letter-spacing: 0;
}

body.ui-refresh nav .rounded-full,
body.ui-refresh nav button,
body.ui-refresh nav a[class*="bg-"] {
  border-radius: 6px !important;
}

body.ui-refresh .dropdown-inner {
  border-radius: var(--kx-radius);
  border-color: var(--kx-line);
  box-shadow: var(--kx-shadow);
}

body.ui-refresh .dropdown-inner a {
  border-radius: 6px;
}

body.ui-refresh .rounded-2xl,
body.ui-refresh .rounded-xl {
  border-radius: var(--kx-radius) !important;
}

body.ui-refresh .rounded-full:not(.chat-btn):not([class*="w-"]) {
  border-radius: 6px !important;
}

body.ui-refresh .shadow-lg,
body.ui-refresh .shadow-xl,
body.ui-refresh .shadow-2xl {
  box-shadow: var(--kx-shadow) !important;
}

body.ui-refresh .card-hover {
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

body.ui-refresh .card-hover:hover {
  transform: translateY(-2px);
  border-color: #b9c8dc !important;
  box-shadow: 0 12px 30px rgba(31, 42, 58, 0.08) !important;
}

body.ui-refresh input,
body.ui-refresh textarea,
body.ui-refresh select {
  border-radius: 6px !important;
  border-color: var(--kx-line) !important;
  background: #fff !important;
}

body.ui-refresh input:focus,
body.ui-refresh textarea:focus,
body.ui-refresh select:focus {
  border-color: var(--kx-blue) !important;
  box-shadow: 0 0 0 3px rgba(29, 95, 209, 0.12) !important;
}

body.ui-refresh button,
body.ui-refresh a[class*="px-"][class*="py-"] {
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

body.ui-refresh button:hover,
body.ui-refresh a[class*="px-"][class*="py-"]:hover {
  transform: translateY(-1px);
}

body.ui-refresh footer {
  background: #111827 !important;
}

.kx-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.kx-hero {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  padding: 92px 0 14px;
  color: var(--kx-ink);
  background: #f6f8fb;
  border-bottom: 1px solid var(--kx-line);
}

.kx-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(29, 95, 209, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(29, 95, 209, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.kx-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1.08fr);
  align-items: center;
  gap: 64px;
}

.kx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 6px 10px;
  color: #17488f;
  background: #e8f0fc;
  border: 1px solid #c8daf4;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}

.kx-hero h1 {
  max-width: 650px;
  margin: 24px 0 20px;
  color: #172033;
  font-size: 46px;
  line-height: 1.12;
  font-weight: 800;
}

.kx-hero h1 span {
  color: var(--kx-blue);
}

.kx-hero-copy {
  max-width: 620px;
  margin: 0;
  color: var(--kx-muted);
  font-size: 18px;
  line-height: 1.75;
}

.kx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.kx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.kx-btn-primary {
  color: #fff;
  background: var(--kx-blue);
  box-shadow: 0 8px 20px rgba(29, 95, 209, 0.2);
}

.kx-btn-primary:hover {
  color: #fff;
  background: var(--kx-blue-strong);
}

.kx-btn-secondary {
  color: var(--kx-ink);
  background: #fff;
  border-color: #cbd3dc;
}

.kx-btn-secondary:hover {
  color: var(--kx-blue);
  border-color: #9eb6d7;
}

.kx-proof-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 24px 0 0;
  padding: 0;
  color: #455163;
  list-style: none;
  font-size: 14px;
}

.kx-proof-list li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.kx-proof-list i {
  color: var(--kx-green);
}

.kx-quick-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  max-width: 650px;
  margin-top: 26px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--kx-line);
  border-radius: var(--kx-radius);
  box-shadow: 0 12px 30px rgba(31, 42, 58, 0.07);
}

.kx-quick-form input {
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  font-size: 14px;
}

.kx-quick-form button {
  height: 44px;
  padding: 0 16px;
}

.kx-form-note {
  margin-top: 9px;
  color: #7a8492;
  font-size: 12px;
}

.kx-stage {
  position: relative;
}

.kx-workspace {
  overflow: hidden;
  min-height: 510px;
  background: #fff;
  border: 1px solid #cfd7e1;
  border-radius: var(--kx-radius);
  box-shadow: 0 26px 60px rgba(31, 42, 58, 0.15);
}

.kx-workspace-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 16px;
  background: #fff;
  border-bottom: 1px solid var(--kx-line);
  font-size: 13px;
  font-weight: 700;
}

.kx-workspace-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--kx-green);
  font-size: 12px;
}

.kx-workspace-status::before {
  content: "";
  width: 7px;
  height: 7px;
  background: #22a978;
  border-radius: 50%;
}

.kx-workspace-body {
  display: grid;
  grid-template-columns: 58px 1fr;
  min-height: 462px;
}

.kx-toolrail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 8px;
  color: #7a8492;
  background: #182235;
}

.kx-toolrail span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
}

.kx-toolrail span.active {
  color: #fff;
  background: var(--kx-blue);
}

.kx-console {
  padding: 16px;
  background: #f5f7fa;
}

.kx-console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.kx-console-title {
  color: #263246;
  font-size: 14px;
  font-weight: 800;
}

.kx-demo-badge {
  padding: 4px 7px;
  color: #6d4b14;
  background: #fff2d6;
  border: 1px solid #efd397;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
}

.kx-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.kx-metric {
  padding: 12px;
  background: #fff;
  border: 1px solid var(--kx-line);
  border-radius: 6px;
}

.kx-metric span {
  display: block;
  margin-bottom: 7px;
  color: #7a8492;
  font-size: 10px;
}

.kx-metric strong {
  color: #253047;
  font-size: 20px;
}

.kx-console-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 10px;
  margin-top: 10px;
}

.kx-panel {
  min-height: 248px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--kx-line);
  border-radius: 6px;
}

.kx-panel-title {
  margin-bottom: 12px;
  color: #455163;
  font-size: 11px;
  font-weight: 800;
}

.kx-conversation {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid #edf0f4;
}

.kx-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #fff;
  background: var(--kx-blue);
  border-radius: 6px;
  font-size: 10px;
}

.kx-conversation strong,
.kx-conversation small {
  display: block;
}

.kx-conversation strong {
  color: #384459;
  font-size: 10px;
}

.kx-conversation small {
  margin-top: 3px;
  color: #8b94a2;
  font-size: 9px;
}

.kx-tag {
  padding: 3px 5px;
  color: #216c51;
  background: #e4f5ee;
  border-radius: 4px;
  font-size: 8px;
}

.kx-chart {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 150px;
  padding: 18px 6px 0;
  border-bottom: 1px solid #dfe4ea;
}

.kx-chart span {
  flex: 1;
  min-width: 10px;
  background: #4f7fd1;
  border-radius: 3px 3px 0 0;
}

.kx-channel-row {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  color: #697587;
  font-size: 9px;
}

.kx-trust-band {
  padding: 28px 0;
  background: #fff;
  border-bottom: 1px solid var(--kx-line);
}

.kx-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.kx-trust-item {
  padding: 8px 24px;
  text-align: center;
  border-right: 1px solid var(--kx-line);
}

.kx-trust-item:last-child {
  border-right: 0;
}

.kx-trust-item strong {
  display: block;
  color: #22304a;
  font-size: 24px;
  line-height: 1.2;
}

.kx-trust-item span {
  display: block;
  margin-top: 6px;
  color: var(--kx-muted);
  font-size: 13px;
}

body.ui-refresh:not(.ui-home) > section:first-of-type {
  border-bottom: 1px solid var(--kx-line);
}

body.ui-refresh:not(.ui-home) > section:first-of-type h1 {
  letter-spacing: 0;
}

body.ui-refresh .chat-window {
  border: 1px solid var(--kx-line);
  border-radius: var(--kx-radius);
  box-shadow: var(--kx-shadow);
}

body.ui-refresh .floating-cta,
body.ui-refresh a[href="/demo.html"].fixed {
  display: none !important;
}

body.ui-refresh .chat-btn,
body.ui-refresh #wxworkFloatBtn {
  right: 20px !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 24px rgba(31, 42, 58, 0.18) !important;
}

body.ui-refresh .chat-btn {
  bottom: 22px !important;
  background: var(--kx-blue) !important;
}

body.ui-refresh #wxworkFloatBtn {
  bottom: 78px !important;
}

body.ui-refresh .chat-header {
  background: #172033;
}

@media (max-width: 1100px) {
  .kx-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(430px, 0.95fr);
    gap: 36px;
  }

  .kx-hero h1 {
    font-size: 48px;
  }
}

@media (max-width: 900px) {
  .kx-hero {
    padding-top: 104px;
  }

  .kx-hero-grid {
    grid-template-columns: 1fr;
  }

  .kx-stage {
    max-width: 680px;
  }
}

@media (max-width: 767px) {
  .kx-shell {
    width: min(100% - 28px, 680px);
  }

  body.ui-refresh nav,
  body.ui-refresh nav > div {
    min-height: 64px;
  }

  body.ui-refresh #mobileMenu {
    top: 64px;
  }

  .kx-hero {
    min-height: auto;
    padding: 84px 0 8px;
  }

  .kx-hero-grid {
    gap: 36px;
  }

  .kx-hero h1 {
    margin: 14px 0;
    font-size: 38px;
    line-height: 1.18;
  }

  .kx-hero-copy {
    font-size: 16px;
    line-height: 1.65;
  }

  .kx-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 20px;
  }

  .kx-btn {
    width: 100%;
    min-height: 46px;
    padding: 0 12px;
  }

  .kx-proof-list {
    gap: 8px 14px;
    margin-top: 18px;
  }

  .kx-quick-form {
    grid-template-columns: 1fr 1fr;
    margin-top: 18px;
    padding: 10px;
  }

  .kx-quick-form button {
    grid-column: 1 / -1;
  }

  .kx-form-note {
    padding-bottom: 4px;
  }

  .kx-workspace {
    min-height: 430px;
  }

  .kx-stage {
    display: none;
  }

  .kx-workspace-body {
    grid-template-columns: 46px 1fr;
    min-height: 382px;
  }

  .kx-toolrail {
    padding-inline: 6px;
  }

  .kx-toolrail span {
    width: 30px;
    height: 30px;
  }

  .kx-console {
    padding: 10px;
  }

  .kx-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .kx-metric {
    padding: 8px;
  }

  .kx-metric strong {
    font-size: 16px;
  }

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

  .kx-console-grid .kx-panel:last-child {
    display: none;
  }

  .kx-panel {
    min-height: 210px;
  }

  .kx-trust-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px 0;
  }

  .kx-trust-item:nth-child(2) {
    border-right: 0;
  }

  .kx-trust-item strong {
    font-size: 21px;
  }

  body.ui-refresh .chat-btn {
    right: 14px;
    bottom: 74px !important;
  }

  body.ui-refresh #wxworkFloatBtn {
    display: none !important;
  }

  body.ui-refresh .chat-window {
    right: 12px;
    bottom: 142px;
    width: calc(100vw - 24px);
    height: min(520px, calc(100vh - 170px));
  }
}

@media (prefers-reduced-motion: reduce) {
  body.ui-refresh *,
  body.ui-refresh *::before,
  body.ui-refresh *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Core product pages */
body.ui-refresh > div.fixed.bottom-4.right-4 {
  display: none !important;
}

.ui-page-pricing > section:first-of-type {
  background: #172033 !important;
}

.ui-page-pricing > section:first-of-type h1 {
  font-size: 42px !important;
  letter-spacing: 0 !important;
}

.kx-product-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(440px, 0.78fr);
  gap: 64px;
  align-items: center;
  min-height: 570px;
  padding: 54px 0 42px;
}

.kx-product-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--kx-blue);
  font-size: 13px;
  font-weight: 800;
}

.kx-product-kicker i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #fff;
  background: var(--kx-blue);
  border-radius: 6px;
}

.kx-product-copy h1 {
  max-width: 600px;
  margin: 0 0 18px;
  color: var(--kx-ink);
  font-size: 48px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: 0;
}

.kx-product-copy > p {
  max-width: 620px;
  margin: 0;
  color: var(--kx-muted);
  font-size: 18px;
  line-height: 1.75;
}

.kx-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 24px;
}

.kx-product-actions a,
.kx-product-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 7px !important;
  font-weight: 750;
}

.kx-product-actions .is-primary {
  color: #fff;
  background: var(--kx-blue);
}

.kx-product-actions .is-secondary {
  color: var(--kx-ink);
  background: #fff;
  border: 1px solid var(--kx-line);
}

.kx-product-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: #4b586c;
  font-size: 14px;
}

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

.kx-product-proof i {
  color: var(--kx-green);
}

.kx-product-console {
  overflow: hidden;
  background: #fff;
  border: 1px solid #dce3ed;
  border-radius: 8px;
  box-shadow: 0 22px 52px rgba(21, 31, 50, 0.13);
}

.kx-product-console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 18px;
  background: #172033;
  color: #fff;
}

.kx-product-console-head strong {
  font-size: 14px;
}

.kx-product-console-head span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #b7f1d0;
  font-size: 12px;
}

.kx-product-console-head span::before {
  width: 7px;
  height: 7px;
  content: "";
  background: #44ce86;
  border-radius: 50%;
}

.kx-channel-list {
  display: grid;
  gap: 1px;
  padding: 14px 18px;
  background: #edf1f6;
}

.kx-channel-row {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 8px 12px;
  background: #fff;
}

.kx-channel-row > i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--kx-blue);
  background: #edf4ff;
  border-radius: 6px;
}

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

.kx-channel-row strong {
  color: var(--kx-ink);
  font-size: 13px;
}

.kx-channel-row small {
  margin-top: 3px;
  color: var(--kx-muted);
  font-size: 11px;
}

.kx-channel-row > span {
  color: var(--kx-green);
  font-size: 12px;
  font-weight: 750;
}

.kx-console-form {
  padding: 16px 18px 18px;
  border-top: 1px solid var(--kx-line);
}

.kx-console-form > p {
  margin: 0 0 11px;
  color: var(--kx-ink);
  font-size: 13px;
  font-weight: 800;
}

.kx-console-form form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.kx-console-form input {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--kx-line);
  border-radius: 6px;
  background: #f8fafc;
  font-size: 13px;
}

.kx-console-form textarea {
  display: none;
}

.kx-console-form button {
  grid-column: 1 / -1;
  min-height: 42px;
  color: #fff;
  background: var(--kx-blue);
  border-radius: 6px !important;
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 960px) {
  .kx-product-hero {
    grid-template-columns: 1fr;
    gap: 30px;
    min-height: 0;
    padding: 34px 0 30px;
  }

  .kx-product-copy h1 {
    font-size: 42px;
  }

  .kx-product-console {
    max-width: 680px;
  }
}

@media (max-width: 640px) {
  .ui-page-pricing > section:first-of-type h1 {
    font-size: 34px !important;
  }

  .kx-product-hero {
    gap: 24px;
    padding-top: 18px;
  }

  .kx-product-copy h1 {
    font-size: 34px;
  }

  .kx-product-copy > p {
    font-size: 16px;
  }

  .kx-product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 22px 0 18px;
  }

  .kx-product-actions a,
  .kx-product-actions button {
    min-width: 0;
    padding-inline: 12px;
    font-size: 14px;
  }

  .kx-product-proof {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
  }

  .kx-channel-list {
    display: none;
  }

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

  .kx-console-form button {
    grid-column: 1 / -1;
  }
}

/* Shared site header and footer */
.kx-site-header {
  position: fixed;
  z-index: 80;
  top: 0;
  right: 0;
  left: 0;
  height: 68px;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--kx-line);
  backdrop-filter: blur(14px);
}

.kx-site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 40px, 1200px);
  height: 100%;
  margin: 0 auto;
}

.kx-site-brand {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  color: var(--kx-ink);
  line-height: 1.05;
}

.kx-site-brand strong {
  color: var(--kx-blue);
  font-size: 20px;
  font-weight: 850;
}

.kx-site-brand span {
  margin-top: 5px;
  color: #7b8798;
  font-size: 10px;
}

.kx-primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 100%;
  margin-left: auto;
  margin-right: 22px;
}

.kx-primary-nav > a,
.kx-nav-group > a {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 40px;
  padding: 0 12px;
  color: #364155;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 650;
}

.kx-primary-nav > a:hover,
.kx-nav-group:hover > a,
.kx-nav-group:focus-within > a {
  color: var(--kx-blue);
  background: #f1f6ff;
}

.kx-nav-group {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.kx-nav-group > a .kx-icon {
  font-size: 9px;
}

.kx-nav-menu {
  position: absolute;
  top: 58px;
  left: 50%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  width: 520px;
  padding: 10px;
  visibility: hidden;
  opacity: 0;
  transform: translate(-50%, 8px);
  background: #fff;
  border: 1px solid var(--kx-line);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(20, 31, 49, 0.15);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.kx-nav-group:hover .kx-nav-menu,
.kx-nav-group:focus-within .kx-nav-menu {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
}

.kx-nav-menu a {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 8px 10px;
  color: var(--kx-ink);
  border-radius: 6px;
}

.kx-nav-menu a:hover {
  background: #f4f7fb;
}

.kx-nav-menu > a > .kx-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--kx-blue);
  background: #edf4ff;
  border-radius: 6px;
}

/* Lucide icon system */
.kx-icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  overflow: visible;
  color: currentColor;
  fill: none;
  vertical-align: -0.18em;
}

.kx-inline-icon {
  width: 18px;
  height: 18px;
  margin-right: 0;
}

.kx-icon-xl {
  width: 36px;
  height: 36px;
  vertical-align: middle;
}

.kx-iconized-control {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
}

.kx-icon-spin {
  animation: kx-icon-rotate 800ms linear infinite;
}

@keyframes kx-icon-rotate {
  to { transform: rotate(360deg); }
}

.kx-icon-tile {
  display: grid !important;
  place-items: center;
  width: 42px !important;
  height: 42px !important;
  margin-bottom: 14px !important;
  color: var(--kx-blue) !important;
  background: #edf4ff !important;
  border: 1px solid #d9e6fa;
  border-radius: 7px !important;
  font-size: 0 !important;
}

.kx-feature-icon {
  width: 22px;
  height: 22px;
}

.kx-product-kicker .kx-icon,
.kx-product-actions .kx-icon,
.kx-product-proof .kx-icon,
.kx-channel-row > .kx-icon {
  width: 18px;
  height: 18px;
}

.kx-nav-group > a .kx-icon {
  width: 14px;
  height: 14px;
}

.kx-nav-menu > a > .kx-icon {
  padding: 7px;
}

.kx-mobile-toggle .kx-icon,
.kx-mobile-nav-head .kx-icon {
  width: 22px;
  height: 22px;
}

.kx-nav-menu strong,
.kx-nav-menu small {
  display: block;
}

.kx-nav-menu strong { font-size: 13px; }
.kx-nav-menu small { margin-top: 3px; color: var(--kx-muted); font-size: 11px; }
.kx-nav-menu-compact { width: 500px; }

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

.kx-login-link { color: #4b586c; font-size: 13px; font-weight: 650; }
.kx-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  color: #fff;
  background: var(--kx-blue);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 750;
}

.kx-mobile-toggle {
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--kx-ink);
  background: transparent;
  border: 0;
  border-radius: 6px;
}

.kx-mobile-overlay,
.kx-mobile-nav { display: none; }

.kx-site-footer {
  position: relative;
  z-index: 1;
  margin-top: 0;
  color: #c4ccd7;
  background: #151d2b;
}

.kx-site-footer-inner {
  display: grid;
  grid-template-columns: 1.45fr 0.7fr 0.8fr 0.7fr 1.05fr;
  gap: 42px;
  width: min(100% - 40px, 1200px);
  margin: 0 auto;
  padding: 52px 0 40px;
}

.kx-footer-brand > a { color: #fff; font-size: 21px; font-weight: 850; }
.kx-footer-brand p {
  max-width: 330px;
  margin: 16px 0;
  color: #9faaba;
  font-size: 13px;
  line-height: 1.75;
}

.kx-footer-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.kx-footer-badges span {
  padding: 5px 8px;
  color: #bfdbfe;
  background: rgba(37, 99, 235, 0.16);
  border-radius: 5px;
  font-size: 11px;
}

.kx-footer-column { display: flex; flex-direction: column; gap: 11px; }
.kx-footer-column strong,
.kx-footer-contact strong { margin-bottom: 5px; color: #fff; font-size: 13px; }
.kx-footer-column a,
.kx-footer-contact a { color: #aab4c2; font-size: 12px; }
.kx-footer-column a:hover,
.kx-footer-contact a:hover { color: #fff; }

.kx-footer-contact {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 13px;
  align-items: center;
}

.kx-footer-contact img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border: 5px solid #fff;
  border-radius: 7px;
}

.kx-footer-contact span,
.kx-footer-contact a,
.kx-footer-contact strong { display: block; }
.kx-footer-contact span { margin: 5px 0 8px; color: #919dad; font-size: 11px; }

.kx-site-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(100% - 40px, 1200px);
  min-height: 58px;
  margin: 0 auto;
  color: #7f8a9a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
}

.kx-site-footer-bottom div { display: flex; gap: 18px; }
.kx-site-footer-bottom a { color: #8f9aaa; }

.ui-page-contact.kx-shell-installed,
.ui-page-pricing.kx-shell-installed,
.ui-page-400-phone.kx-shell-installed,
.ui-page-cases.kx-shell-installed,
.ui-page-blog.kx-shell-installed,
.ui-page-water-ai.kx-shell-installed { padding-top: 68px; }

@media (max-width: 1020px) {
  .kx-primary-nav,
  .kx-login-link,
  .kx-header-cta { display: none; }
  .kx-mobile-toggle { display: grid; }
  .kx-mobile-overlay {
    position: fixed;
    z-index: 89;
    inset: 0;
    display: block;
    visibility: hidden;
    opacity: 0;
    background: rgba(10, 18, 30, 0.42);
    transition: opacity 180ms ease, visibility 180ms ease;
  }
  .kx-mobile-overlay.is-open { visibility: visible; opacity: 1; }
  .kx-mobile-nav {
    position: fixed;
    z-index: 90;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    width: min(88vw, 340px);
    height: 100dvh;
    padding: 16px;
    overflow-y: auto;
    visibility: hidden;
    transform: translateX(100%);
    background: #fff;
    box-shadow: -18px 0 44px rgba(20, 31, 49, 0.18);
    transition: transform 200ms ease, visibility 200ms ease;
  }
  .kx-mobile-nav.is-open { visibility: visible; transform: translateX(0); }
  .kx-mobile-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    color: var(--kx-ink);
    border-bottom: 1px solid var(--kx-line);
  }
  .kx-mobile-nav-head button {
    width: 36px;
    height: 36px;
    color: var(--kx-ink);
    background: #f3f6fa;
    border: 0;
    border-radius: 6px;
  }
  .kx-mobile-nav > a {
    padding: 12px 10px;
    color: #39465a;
    border-bottom: 1px solid #edf0f4;
    font-size: 14px;
    font-weight: 650;
  }
  .kx-mobile-nav .kx-mobile-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: 16px;
    padding: 0 12px;
    color: #fff;
    background: var(--kx-blue);
    border: 0;
    border-radius: 6px;
  }
  body.kx-menu-open { overflow: hidden; }
  .kx-site-footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
  .kx-footer-contact { grid-column: 2 / 4; }
}

@media (max-width: 640px) {
  .kx-site-header-inner,
  .kx-site-footer-inner,
  .kx-site-footer-bottom { width: min(100% - 28px, 1200px); }
  .kx-site-footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px 18px;
    padding: 38px 0 30px;
  }
  .kx-footer-brand,
  .kx-footer-contact { grid-column: 1 / -1; }
  .kx-footer-column:nth-of-type(4) { display: none; }
  .kx-site-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 16px 0;
  }
  .kx-site-footer-bottom div { flex-wrap: wrap; gap: 8px 14px; }
}

/* Product imagery */
.kx-product-card-visual {
  display: block;
  width: 100%;
  height: 132px;
  margin-bottom: 18px;
  object-fit: cover;
  object-position: top center;
  background: #eaf1fb;
  border: 1px solid #dbe3ee;
  border-radius: 7px;
}

.kx-wide-product-visual {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin: -4px 0 26px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--kx-line);
  border-radius: 8px;
}

.kx-wide-product-visual img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
}

.kx-wide-product-visual figcaption {
  max-width: 180px;
  padding: 0 14px;
  color: #5f6c7e;
  font-size: 13px;
  line-height: 1.65;
}

.kx-product-banner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 0.7fr);
  gap: 36px;
  align-items: center;
  overflow: hidden;
}

.kx-product-banner figure {
  overflow: hidden;
  margin: 0;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 7px;
  box-shadow: 0 18px 40px rgba(9, 20, 45, 0.18);
}

.kx-product-banner figure img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 850px) {
  .kx-product-banner {
    grid-template-columns: 1fr;
  }

  .kx-product-banner figure {
    max-width: 620px;
  }
}

@media (max-width: 640px) {
  .kx-wide-product-visual {
    grid-template-columns: 1fr;
  }

  .kx-wide-product-visual figcaption {
    max-width: none;
    padding: 2px 4px 5px;
  }

  .kx-product-card-visual {
    height: 156px;
  }
}

/* Batch 7: product photography and unified visual language */
.kx-hero-visual {
  isolation: isolate;
  min-height: min(700px, calc(100svh - 42px));
  padding: 104px 0 46px;
  color: #fff;
  background: #111827;
}

.kx-hero-visual::before {
  z-index: -1;
  background: linear-gradient(90deg, rgba(12, 20, 34, 0.96) 0%, rgba(12, 20, 34, 0.86) 38%, rgba(12, 20, 34, 0.3) 70%, rgba(12, 20, 34, 0.08) 100%);
  mask-image: none;
}

.kx-hero-media,
.kx-number-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
}

.kx-hero-media img,
.kx-number-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kx-hero-media img {
  object-position: center;
}

.kx-hero-visual .kx-hero-grid {
  grid-template-columns: minmax(0, 660px);
  min-height: 540px;
}

.kx-hero-visual .kx-eyebrow {
  color: #d8e9ff;
  background: rgba(22, 76, 168, 0.38);
  border-color: rgba(167, 205, 255, 0.34);
}

.kx-hero-visual h1,
.kx-hero-visual h1 span {
  color: #fff;
}

.kx-hero-visual .kx-hero-copy,
.kx-hero-visual .kx-proof-list,
.kx-hero-visual .kx-form-note {
  color: #d8e1ec;
}

.kx-hero-visual .kx-proof-list i {
  color: #69d6a2;
}

.kx-visual-label {
  position: absolute;
  right: 88px;
  bottom: 18px;
  z-index: 2;
  padding: 6px 9px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(12, 20, 34, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  font-size: 11px;
  line-height: 1;
  backdrop-filter: blur(8px);
}

.kx-page-intro {
  max-width: 760px;
  margin-inline: auto;
}

.kx-page-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 14px;
  padding: 5px 9px;
  color: #17488f;
  background: #e8f0fc;
  border: 1px solid #c8daf4;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}

.ui-page-products .product-tab {
  border-radius: 6px;
}

.kx-product-banner--call {
  background: #172033 !important;
}

.kx-product-banner--voice {
  background: #263244 !important;
}

.kx-product-banner--chat {
  background: #175d50 !important;
}

.kx-product-banner--quality {
  background: #343b47 !important;
}

.kx-product-banner p,
.kx-product-banner [class*="text-blue-200"],
.kx-product-banner [class*="text-purple-200"],
.kx-product-banner [class*="text-emerald-200"],
.kx-product-banner [class*="text-orange-200"] {
  color: #dce5ef !important;
}

.kx-product-banner figure {
  position: relative;
  aspect-ratio: 3 / 2;
  background: #eef3f8;
}

.kx-product-banner figure picture {
  display: block;
  width: 100%;
  height: 100%;
}

.kx-product-banner figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kx-product-banner figure figcaption {
  position: absolute;
  right: 9px;
  bottom: 9px;
  padding: 5px 7px;
  color: #e7edf5;
  background: rgba(18, 27, 42, 0.72);
  border-radius: 5px;
  font-size: 10px;
  line-height: 1;
}

.kx-wide-product-visual {
  grid-template-columns: minmax(0, 1fr) minmax(190px, 240px);
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.kx-wide-product-visual picture {
  display: block;
  min-width: 0;
}

.kx-wide-product-visual img {
  aspect-ratio: 3 / 2;
  max-height: 430px;
  border-radius: 0;
}

.kx-wide-product-visual figcaption {
  max-width: none;
  padding: 24px;
}

.kx-wide-product-visual figcaption strong {
  display: block;
  margin-bottom: 8px;
  color: var(--kx-ink);
  font-size: 12px;
}

.kx-number-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 430px;
  color: #fff;
  background: #172033;
}

.kx-number-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, rgba(17, 32, 51, 0.96) 0%, rgba(17, 32, 51, 0.78) 45%, rgba(17, 32, 51, 0.14) 76%, rgba(17, 32, 51, 0.04) 100%);
}

.kx-number-hero-media img {
  object-position: center;
}

.kx-number-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 430px;
  padding-top: 64px;
  padding-bottom: 54px;
}

.kx-number-hero-content h1,
.kx-number-hero-content p,
.kx-number-hero-content > div {
  max-width: 660px;
}

.kx-number-hero .kx-page-kicker {
  align-self: flex-start;
  color: #d8e9ff;
  background: rgba(22, 76, 168, 0.36);
  border-color: rgba(167, 205, 255, 0.3);
}

.ui-page-cases .hero-gradient {
  background: #172033;
}

.kx-case-stats {
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .kx-hero-visual {
    min-height: 660px;
  }

  .kx-hero-visual .kx-hero-grid {
    min-height: 500px;
  }
}

@media (max-width: 767px) {
  .ui-page-products #productTabs,
  .ui-page-cloud-cs #productTabs {
    justify-content: flex-start;
    padding-inline: 2px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .ui-page-products #productTabs::-webkit-scrollbar,
  .ui-page-cloud-cs #productTabs::-webkit-scrollbar {
    display: none;
  }

  .ui-page-products #productTabs .product-tab,
  .ui-page-cloud-cs #productTabs .product-tab {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .kx-case-stats {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 18px 12px !important;
  }

  .kx-hero-visual {
    min-height: calc(100svh - 30px);
    padding: 82px 0 44px;
  }

  .kx-hero-visual::before {
    background: linear-gradient(180deg, rgba(12, 20, 34, 0.94) 0%, rgba(12, 20, 34, 0.88) 60%, rgba(12, 20, 34, 0.62) 100%);
  }

  .kx-hero-media img {
    object-position: 58% center;
  }

  .kx-hero-visual .kx-hero-grid {
    min-height: 0;
  }

  .kx-hero-visual .kx-quick-form,
  .kx-hero-visual .kx-form-note {
    display: none;
  }

  .kx-visual-label {
    right: auto;
    bottom: 82px;
    left: 14px;
  }

  .kx-wide-product-visual {
    grid-template-columns: 1fr;
  }

  .kx-wide-product-visual figcaption {
    padding: 16px;
  }

  .kx-number-hero,
  .kx-number-hero-content {
    min-height: 480px;
  }

  .kx-number-hero::before {
    background: linear-gradient(180deg, rgba(17, 32, 51, 0.94) 0%, rgba(17, 32, 51, 0.84) 68%, rgba(17, 32, 51, 0.56) 100%);
  }

  .kx-number-hero-media img {
    object-position: 62% center;
  }

  .kx-number-hero-content {
    justify-content: flex-start;
    padding-top: 100px;
    padding-bottom: 64px;
  }
}
