:root {
  --ink: #343846;
  --muted: #6d7280;
  --soft: #eef0fb;
  --purple: #6657b8;
  --purple-dark: #4d438b;
  --line: rgba(67, 72, 90, 0.16);
  --paper: #ffffff;
  --bot: #f2f4ff;
  --user: #e9fbf6;
  --teal: #10a58f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -8%, rgba(111, 116, 174, 0.36), transparent 34%),
    linear-gradient(180deg, #8990c1 0, #f5f6fb 54%, #ffffff 78%);
  overflow-x: hidden;
}

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

button,
input {
  font: inherit;
}

.site-shell {
  width: min(980px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 18px 0 42px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 44px;
  color: #fff;
}

.brand {
  font-size: 1.15rem;
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 800;
}

.hero {
  min-height: 78vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: clamp(30px, 7vw, 92px);
  align-items: center;
  padding: 58px 0 74px;
}

.hero__copy {
  max-width: 560px;
  margin-left: clamp(0px, 9vw, 130px);
}

.eyebrow {
  margin: 0 0 12px;
  color: rgba(52, 56, 70, 0.62);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  margin-bottom: 18px;
  max-width: 10ch;
  font-size: clamp(2.55rem, 5.7vw, 4.65rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero__text {
  max-width: 560px;
  margin-bottom: 24px;
  color: #5f6472;
  font-size: 0.96rem;
  line-height: 1.72;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 16px;
  font-size: 0.82rem;
  font-weight: 800;
}

.button--primary {
  color: #fff;
  background: var(--purple);
}

.button--secondary {
  color: var(--purple-dark);
  border: 1px solid rgba(102, 87, 184, 0.26);
  background: rgba(255, 255, 255, 0.46);
}

.hero__meta {
  display: grid;
  gap: 6px;
  color: #5f6472;
  font-size: 0.84rem;
}

.hero__meta strong,
.hero__meta a,
.contact-strip a {
  color: var(--purple-dark);
}

.front-chat {
  position: relative;
  align-self: center;
  border-radius: 28px;
  padding: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.54);
  box-shadow: 0 22px 60px rgba(61, 63, 95, 0.18);
  backdrop-filter: blur(14px);
}

.front-chat::before {
  content: "";
  position: absolute;
  inset: -18px 42px auto;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 36px rgba(255, 255, 255, 0.85);
}

.front-chat__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.82rem;
  font-weight: 800;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 6px rgba(16, 165, 143, 0.12);
}

.front-chat__messages {
  display: grid;
  gap: 10px;
  max-height: 330px;
  overflow-y: auto;
  padding-right: 4px;
}

.bubble {
  max-width: 88%;
  border-radius: 17px;
  padding: 10px 12px;
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.48;
  animation: messageIn 220ms ease both;
}

.bubble p {
  margin: 0;
}

.bubble--bot {
  justify-self: start;
  border-bottom-left-radius: 6px;
  background: var(--bot);
}

.bubble--user {
  justify-self: end;
  border-bottom-right-radius: 6px;
  background: var(--user);
}

.services,
.demo,
.contact-strip {
  padding: 58px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 680px;
  margin-bottom: 28px;
}

.section-heading--split {
  max-width: none;
  display: grid;
  grid-template-columns: 1fr 0.86fr;
  gap: 28px;
  align-items: end;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3.4vw, 2.65rem);
  line-height: 1.08;
}

.section-heading p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.service-lines {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.service-lines div {
  display: grid;
  grid-template-columns: minmax(170px, 0.42fr) 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.service-lines h3,
.service-lines p {
  margin: 0;
}

.service-lines h3 {
  font-size: 1rem;
}

.service-lines p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.demo-grid {
  display: grid;
  grid-template-columns: minmax(230px, 0.82fr) minmax(300px, 1.18fr);
  gap: 30px;
  align-items: start;
}

.bot-picker {
  display: grid;
  border-top: 1px solid var(--line);
}

.bot-card {
  width: 100%;
  display: grid;
  gap: 4px;
  padding: 17px 0;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.bot-card strong {
  font-size: 0.94rem;
}

.bot-card small {
  color: var(--muted);
  font-size: 0.8rem;
}

.bot-card.is-active strong {
  color: var(--purple-dark);
}

.phone {
  width: min(100%, 390px);
  justify-self: center;
  border-radius: 34px;
  padding: 9px;
  background: #2f3444;
  box-shadow: 0 24px 52px rgba(47, 52, 68, 0.24);
}

.phone__top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 4px 14px 8px;
  color: #fff;
  font-size: 0.68rem;
}

.phone__top span:last-child {
  text-align: right;
}

.phone__notch {
  width: 92px;
  height: 20px;
  border-radius: 999px;
  background: #11151f;
}

.phone__screen {
  height: 560px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border-radius: 27px;
  color: var(--ink);
  background: linear-gradient(180deg, var(--screen-a), var(--screen-b));
}

.phone__screen[data-theme="support"] {
  --screen-a: #eef3ff;
  --screen-b: #ffffff;
  --bot: #e6eeff;
  --user: #e7fbf5;
}

.phone__screen[data-theme="sales"] {
  --screen-a: #fff4df;
  --screen-b: #ffffff;
  --bot: #fff0d3;
  --user: #e9f6ff;
}

.phone__screen[data-theme="hospital"] {
  --screen-a: #f0efff;
  --screen-b: #ffffff;
  --bot: #eceaff;
  --user: #e4fbf4;
}

.phone__screen[data-theme="furniture"] {
  --screen-a: #fff0e6;
  --screen-b: #ffffff;
  --bot: #ffeadb;
  --user: #edfbe9;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
}

.chat-header p {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.chat-header h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.12;
}

.chat-header span {
  align-self: start;
  border-radius: 999px;
  padding: 5px 8px;
  color: #05604f;
  background: #cff8ed;
  font-size: 0.68rem;
  font-weight: 800;
}

.chat-log {
  display: grid;
  align-content: end;
  gap: 10px;
  padding: 15px;
  overflow-y: auto;
  min-height: 0;
}

.composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(67, 72, 90, 0.12);
  background: rgba(255, 255, 255, 0.7);
}

.front-composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(67, 72, 90, 0.12);
}

.front-composer input {
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(67, 72, 90, 0.16);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  outline: none;
}

.front-composer input::placeholder {
  color: #8f95a3;
}

.front-composer button {
  height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  background: var(--purple);
}

.composer input {
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(67, 72, 90, 0.16);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.composer input::placeholder {
  color: #9ba1ad;
}

.composer button {
  height: 40px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  background: var(--purple);
}

.contact-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding-bottom: 18px;
}

.contact-strip p {
  margin: 0;
  font-weight: 800;
}

.contact-strip a {
  font-size: 0.94rem;
  font-weight: 800;
}

@keyframes messageIn {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 840px) {
  .nav-links {
    gap: 14px;
  }

  .hero,
  .section-heading--split,
  .demo-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 52px 0 54px;
  }

  .hero__copy {
    margin-left: 0;
  }

  .hero h1 {
    max-width: 12ch;
  }

  .front-chat {
    max-width: 380px;
  }
}

@media (max-width: 580px) {
  .site-shell {
    width: min(100vw - 22px, 980px);
  }

  .topbar {
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 13vw, 3.25rem);
  }

  .hero__text,
  .service-lines p,
  .section-heading p:last-child {
    font-size: 0.88rem;
  }

  .service-lines div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .phone {
    width: 100%;
  }

  .phone__screen {
    height: 535px;
  }
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 20px 0 8px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.site-footer p {
  margin: 0;
}
