:root {
  color: #1c2550;
  background: #f5f6fb;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 82% 8%, rgba(116, 123, 184, 0.13), transparent 28rem),
    #f7f8fc;
}

button,
a {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(69, 83, 176, 0.25);
  outline-offset: 3px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 48px));
  height: 80px;
  margin: auto;
}

.site-brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: #1c2550;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.site-brand-mark {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  color: white;
  font-size: 14px;
  background: #1c2550;
  border-radius: 10px;
  transform: rotate(-5deg);
}

.site-header nav {
  display: flex;
  gap: 34px;
}

.site-header nav a,
.hero-actions a {
  color: #646b8b;
  font-size: 13px;
  font-weight: 550;
  text-decoration: none;
}

.site-header nav a:hover,
.hero-actions a:hover {
  color: #1c2550;
}

.account-button {
  height: 39px;
  padding: 0 16px;
  color: #1c2550;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  background: white;
  border: 1px solid #dde0ed;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(31, 43, 91, 0.04);
}

main {
  width: min(1180px, calc(100% - 48px));
  margin: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(48px, 7vw, 100px);
  align-items: center;
  min-height: 610px;
  padding: 80px 0 100px;
}

.eyebrow {
  display: block;
  margin-bottom: 17px;
  color: #747bb8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.hero h1 {
  margin: 0;
  color: #17204a;
  font-size: clamp(42px, 5.3vw, 67px);
  font-weight: 730;
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.hero h1 em {
  color: #747bb8;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.hero-copy > p {
  max-width: 520px;
  margin: 24px 0 30px;
  color: #707795;
  font-size: 15px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 22px;
  align-items: center;
}

.primary-action {
  height: 47px;
  padding: 0 21px;
  color: white;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  background: #1c2550;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 11px 25px rgba(28, 37, 80, 0.18);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.primary-action:hover {
  box-shadow: 0 14px 30px rgba(28, 37, 80, 0.24);
  transform: translateY(-2px);
}

.preview-card {
  min-height: 380px;
  overflow: hidden;
  background: white;
  border: 1px solid #e1e3ef;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(41, 51, 101, 0.13);
  transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
}

.preview-toolbar {
  display: flex;
  gap: 7px;
  align-items: center;
  height: 49px;
  padding: 0 17px;
  background: #fbfbfd;
  border-bottom: 1px solid #e9eaf2;
}

.preview-toolbar i {
  width: 8px;
  height: 8px;
  background: #d8dae7;
  border-radius: 50%;
}

.preview-toolbar span {
  width: 45%;
  height: 12px;
  margin-left: auto;
  margin-right: auto;
  background: #eef0f6;
  border-radius: 99px;
}

.preview-body {
  display: grid;
  grid-template-columns: 115px 1fr;
  min-height: 330px;
}

.preview-body--customer-chat {
  display: grid;
  min-height: 330px;
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  background:
    radial-gradient(circle at 85% 5%, rgba(116, 123, 184, 0.12), transparent 170px),
    #fff;
}

.customer-preview-header {
  display: flex;
  min-height: 68px;
  align-items: center;
  gap: 11px;
  padding: 12px 18px;
  color: #fff;
  background: linear-gradient(125deg, #6872b0, #7b82bd);
}

.customer-preview-avatar {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  color: #6971aa;
  font-size: 16px;
  font-weight: 800;
  background: #f4f5fb;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
}

.customer-preview-avatar i {
  position: absolute;
  right: -1px;
  bottom: 0;
  width: 10px;
  height: 10px;
  background: #42c487;
  border: 2px solid #747cb8;
  border-radius: 50%;
}

.customer-preview-header > div {
  display: grid;
  gap: 3px;
}

.customer-preview-header strong {
  font-size: 12px;
}

.customer-preview-header strong b {
  padding: 1px 4px;
  color: #6670ad;
  font-size: 7px;
  background: #fff;
  border-radius: 4px;
}

.customer-preview-header > div > span {
  font-size: 9px;
  opacity: 0.88;
}

.customer-preview-online {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin-left: auto;
  padding: 6px 9px;
  font-size: 8px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.customer-preview-online i {
  width: 6px;
  height: 6px;
  background: #72e2aa;
  border-radius: 50%;
}

.customer-preview-conversation {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 9px;
  padding: 15px 18px 9px;
  overflow: hidden;
}

.customer-preview-message {
  max-width: 74%;
}

.customer-preview-message span {
  display: block;
  margin: 0 5px 3px;
  color: #77809e;
  font-size: 7px;
  font-weight: 750;
}

.customer-preview-message p {
  margin: 0;
  padding: 8px 11px;
  color: #27315f;
  font-size: 9px;
  line-height: 1.45;
  background: #f0f2f8;
  border-radius: 5px 12px 12px 12px;
}

.customer-preview-message.is-customer {
  align-self: flex-end;
}

.customer-preview-message.is-customer span {
  text-align: right;
}

.customer-preview-message.is-customer p {
  color: #fff;
  background: #1c3265;
  border-radius: 12px 5px 12px 12px;
}

.customer-preview-actions {
  display: flex;
  gap: 7px;
  padding: 0 18px 10px;
}

.customer-preview-actions span {
  padding: 7px 10px;
  color: #263465;
  font-size: 8px;
  font-weight: 700;
  background: #fff;
  border: 1px solid #cfd4e6;
  border-radius: 7px;
}

.customer-preview-composer {
  display: flex;
  min-height: 48px;
  align-items: center;
  margin: 0 14px 13px;
  padding: 6px 7px 6px 13px;
  color: #9299b0;
  font-size: 9px;
  background: #eef0f6;
  border-radius: 11px;
}

.customer-preview-composer i {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  margin-left: auto;
  color: #fff;
  font-size: 15px;
  font-style: normal;
  background: #6570ad;
  border-radius: 9px;
}

.preview-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 20px;
  background: #f2f3f9;
}

.preview-sidebar b {
  width: 100%;
  height: 9px;
  background: #dfe2ed;
  border-radius: 99px;
}

.preview-sidebar b:nth-child(2) { width: 72%; }
.preview-sidebar b:nth-child(3) { width: 84%; }
.preview-sidebar b:nth-child(4) { width: 58%; }

.preview-content {
  padding: 36px 32px;
}

.preview-heading {
  width: 48%;
  height: 20px;
  background: #293361;
  border-radius: 6px;
}

.preview-line {
  width: 72%;
  height: 10px;
  margin-top: 13px;
  background: #e4e6ef;
  border-radius: 99px;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
  margin-top: 38px;
}

.preview-grid i {
  height: 145px;
  background: linear-gradient(145deg, #eef0f7, #e4e6f1);
  border-radius: 13px;
}

.preview-grid i:nth-child(2) {
  background: linear-gradient(145deg, #e9e8f6, #deddf0);
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #dfe2ed;
  border-bottom: 1px solid #dfe2ed;
}

.feature-row article {
  display: flex;
  gap: 18px;
  padding: 37px 32px;
  border-right: 1px solid #dfe2ed;
}

.feature-row article:first-child { padding-left: 0; }
.feature-row article:last-child { padding-right: 0; border-right: 0; }

.feature-number {
  color: #9ba0ba;
  font-family: Georgia, serif;
  font-size: 12px;
}

.feature-row h2 {
  margin: 0 0 8px;
  font-size: 15px;
}

.feature-row p {
  margin: 0;
  color: #747a96;
  font-size: 12px;
  line-height: 1.6;
}

.agent-showcase {
  display: grid;
  grid-template-columns: minmax(420px, 1.08fr) minmax(300px, 0.92fr);
  gap: clamp(48px, 7vw, 92px);
  align-items: center;
  padding: 105px 0;
  border-bottom: 1px solid #dfe2ed;
}

.agent-dashboard-preview {
  position: relative;
  margin: 0;
  padding: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #dde1ee;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(41, 51, 101, 0.14);
}

.agent-dashboard-preview::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: inherit;
}

.agent-dashboard-preview img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 19px;
}

.agent-dashboard-preview figcaption {
  padding: 14px 8px 5px;
  color: #7b819e;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.preview-badge {
  position: absolute;
  top: 30px;
  left: 30px;
  z-index: 2;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 11px;
  color: #2f396c;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(215, 219, 235, 0.9);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(32, 43, 91, 0.1);
  backdrop-filter: blur(8px);
}

.preview-badge span {
  width: 7px;
  height: 7px;
  background: #4abf88;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(74, 191, 136, 0.15);
}

.agent-showcase-copy h2 {
  max-width: 470px;
  margin: 0;
  color: #17204a;
  font-size: clamp(34px, 4vw, 49px);
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.agent-showcase-copy > p {
  max-width: 510px;
  margin: 22px 0 28px;
  color: #707795;
  font-size: 14px;
  line-height: 1.75;
}

.agent-benefits {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 0 0 31px;
  list-style: none;
  border-top: 1px solid #e0e3ee;
}

.agent-benefits li {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 15px 0;
  color: #333c69;
  font-size: 12px;
  font-weight: 620;
  border-bottom: 1px solid #e0e3ee;
}

.agent-benefits li span {
  color: #9197b4;
  font-family: Georgia, serif;
  font-size: 10px;
  font-weight: 400;
}

.dashboard-action {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  min-height: 46px;
  padding: 0 19px;
  color: white;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  background: #1c2550;
  border-radius: 11px;
  box-shadow: 0 11px 25px rgba(28, 37, 80, 0.16);
  transition: gap 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.dashboard-action:hover {
  gap: 16px;
  box-shadow: 0 14px 30px rgba(28, 37, 80, 0.22);
  transform: translateY(-2px);
}

.embed-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
  align-items: center;
  padding: 100px 0;
}

.embed-section h2 {
  margin: 0 0 14px;
  font-size: 33px;
  letter-spacing: -0.04em;
}

.embed-section p {
  color: #747a96;
  font-size: 14px;
  line-height: 1.7;
}

.embed-section pre {
  padding: 24px;
  overflow-x: auto;
  color: #e8eaf6;
  font-size: 12px;
  line-height: 1.75;
  background: #17204a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 22px 50px rgba(28, 37, 80, 0.14);
}

footer {
  display: flex;
  justify-content: space-between;
  width: min(1180px, calc(100% - 48px));
  padding: 25px 0 40px;
  margin: auto;
  color: #9196ac;
  font-size: 11px;
  border-top: 1px solid #e0e2eb;
}

@media (max-width: 880px) {
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 70px; }
  .preview-card { min-height: 330px; transform: none; }
  .feature-row { grid-template-columns: 1fr; }
  .feature-row article,
  .feature-row article:first-child,
  .feature-row article:last-child { padding: 27px 0; border-right: 0; border-bottom: 1px solid #dfe2ed; }
  .feature-row article:last-child { border-bottom: 0; }
  .agent-showcase { grid-template-columns: 1fr; gap: 48px; }
  .agent-dashboard-preview { max-width: 620px; }
  .embed-section { grid-template-columns: 1fr; gap: 25px; }
}

@media (max-width: 560px) {
  .site-header,
  main,
  footer { width: min(100% - 30px, 1180px); }
  .account-button { display: none; }
  .hero { min-height: auto; padding: 55px 0 70px; }
  .hero h1 { font-size: 40px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .preview-card { min-height: 270px; }
  .preview-body { grid-template-columns: 75px 1fr; min-height: 220px; }
  .preview-sidebar { padding: 22px 12px; }
  .preview-content { padding: 27px 18px; }
  .preview-grid i { height: 95px; }
  .agent-showcase { padding: 75px 0; }
  .agent-dashboard-preview { padding: 8px; border-radius: 21px; }
  .agent-dashboard-preview img { border-radius: 15px; }
  .preview-badge { top: 20px; left: 20px; }
  .agent-showcase-copy h2 { font-size: 34px; }
  .embed-section { padding: 75px 0; }
  footer { gap: 12px; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
}
