:root {
  --page: #f7f5fb;
  --paper: #ffffff;
  --paper-soft: #fbfaff;
  --ink: #15131d;
  --muted: #6f6a7b;
  --line: #dfdbea;
  --violet: #5c1eec;
  --violet-soft: #eee9ff;
  --green: #205e4f;
  --green-soft: #e6f4ef;
  --copper: #b67a3c;
  --dark: #101018;
  --dark-2: #171621;
  --shadow: 0 22px 70px rgba(39, 29, 75, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

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

button,
input {
  font: inherit;
}

button {
  letter-spacing: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 6vw, 104px);
  border-bottom: 1px solid rgba(21, 19, 29, 0.08);
  background: rgba(247, 245, 251, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: rgba(21, 19, 29, 0.7);
  font-size: 14px;
  font-weight: 600;
}

.nav a {
  transition: color 160ms ease;
}

.nav a:hover {
  color: var(--ink);
}

.nav-cta {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--violet);
  color: #fff !important;
}

.section-pad {
  padding: clamp(72px, 10vw, 128px) clamp(18px, 6vw, 104px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(430px, 0.85fr);
  gap: clamp(30px, 6vw, 88px);
  align-items: center;
  min-height: calc(100vh - 68px);
  padding-top: clamp(76px, 8vw, 116px);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--violet);
  font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "IBM Plex Serif", Georgia, serif;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(54px, 8vw, 106px);
  line-height: 0.96;
}

h2 {
  max-width: 760px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1;
}

h3 {
  font-size: 28px;
  line-height: 1.1;
}

.lead {
  max-width: 650px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 20px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

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

.button.secondary {
  border-color: var(--line);
  background: var(--paper);
  color: var(--ink);
}

.button.inverse {
  background: #fff;
  color: var(--dark);
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.22);
  background: transparent;
  color: #fff;
}

.fine-print {
  max-width: 610px;
  margin: 18px 0 0;
  color: rgba(21, 19, 29, 0.52);
  font-size: 13px;
  line-height: 1.6;
}

.closer-note {
  max-width: 650px;
  margin-top: 24px;
  border: 1px solid rgba(92, 30, 236, 0.18);
  border-left: 4px solid var(--violet);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 16px 44px rgba(39, 29, 75, 0.08);
  padding: 16px 18px;
}

.closer-note span {
  display: block;
  color: var(--violet);
  font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.closer-note p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.58;
}

.voice-card {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  padding: clamp(18px, 3vw, 28px);
}

.voice-top,
.preview-head,
.payment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.voice-top {
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.voice-top strong {
  color: var(--green);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #18a86c;
  box-shadow: 0 0 0 6px rgba(24, 168, 108, 0.14);
}

.caller-card,
.ai-reply,
.handoff-card,
.rules-grid article,
.compare-card,
.price-card,
.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.caller-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
}

.caller-card span,
.ai-reply span,
.desk-grid span,
.handoff-card span,
.metric-strip span,
.price-card .plan {
  display: block;
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.caller-card strong,
.desk-grid strong {
  display: block;
  margin-top: 5px;
}

.caller-card b {
  border-radius: 999px;
  background: var(--violet-soft);
  color: var(--violet);
  padding: 7px 10px;
  font-size: 12px;
}

.waveform {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 7px;
  min-height: 92px;
  align-items: center;
  border-radius: 8px;
  background: var(--paper-soft);
  padding: 18px;
}

.waveform span {
  display: block;
  height: 28px;
  border-radius: 999px;
  background: var(--violet);
  opacity: 0.45;
  animation: wave 1.3s ease-in-out infinite;
}

.waveform span:nth-child(2n) {
  height: 48px;
  animation-delay: 120ms;
}

.waveform span:nth-child(3n) {
  height: 66px;
  background: var(--green);
  animation-delay: 220ms;
}

.waveform span:nth-child(4n) {
  height: 38px;
  background: var(--copper);
  animation-delay: 320ms;
}

@keyframes wave {
  0%,
  100% {
    transform: scaleY(0.78);
  }
  50% {
    transform: scaleY(1.16);
  }
}

.ai-reply {
  padding: 18px;
}

.ai-reply p,
.handoff-card p,
.rules-grid p,
.compare-card li,
.price-card li,
.price-card p,
.faq-item p,
.section-heading p,
.lab-result p {
  color: var(--muted);
  line-height: 1.65;
}

.ai-reply p,
.handoff-card p {
  margin: 8px 0 0;
}

.desk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.desk-grid article {
  border-radius: 8px;
  background: var(--dark);
  color: #fff;
  padding: 16px;
}

.desk-grid span {
  color: rgba(255, 255, 255, 0.58);
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.metric-strip article {
  min-height: 154px;
  padding: 28px clamp(18px, 4vw, 44px);
  border-right: 1px solid var(--line);
}

.metric-strip article:last-child {
  border-right: 0;
}

.metric-strip strong {
  display: block;
  margin-top: 12px;
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 500;
}

.metric-strip p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.section-heading {
  max-width: 1120px;
  margin: 0 auto 44px;
}

.section-heading.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 28px;
  align-items: end;
}

.section-heading p {
  max-width: 640px;
  margin: 18px 0 0;
  font-size: 17px;
}

.lab-shell,
.channel-shell,
.compare-grid,
.pricing-grid,
.rules-grid {
  max-width: 1120px;
  margin: 0 auto;
}

.lab-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
}

.lab-controls,
.lab-result {
  background: var(--paper);
  padding: clamp(22px, 4vw, 42px);
}

.lab-controls {
  display: grid;
  gap: 30px;
}

.lab-controls label {
  display: grid;
  gap: 12px;
  color: var(--ink);
  font-weight: 700;
}

.lab-controls input[type="range"] {
  width: 100%;
  accent-color: var(--violet);
}

.lab-controls label span {
  color: var(--violet);
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: 36px;
}

.lab-result {
  background: var(--dark);
  color: #fff;
}

.lab-result span {
  color: rgba(255, 255, 255, 0.62);
  font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.lab-result strong {
  display: block;
  margin-top: 12px;
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: clamp(44px, 6vw, 78px);
  font-weight: 500;
}

.lab-result p {
  color: rgba(255, 255, 255, 0.68);
}

.channel-shell {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 18px;
}

.channel-tabs {
  display: grid;
  gap: 10px;
}

.channel-tab {
  display: flex;
  min-height: 62px;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  padding: 0 16px;
  font-weight: 700;
  text-align: left;
}

.channel-tab svg {
  width: 18px;
  height: 18px;
  color: var(--green);
}

.channel-tab.active {
  border-color: rgba(92, 30, 236, 0.38);
  background: var(--violet-soft);
  color: var(--violet);
}

.channel-preview {
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: clamp(20px, 4vw, 34px);
}

.preview-head span {
  color: var(--violet);
  font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.preview-head strong {
  max-width: 460px;
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 500;
  line-height: 1;
  text-align: right;
}

.message-stack {
  display: grid;
  gap: 12px;
  margin: 34px 0;
}

.bubble {
  max-width: 78%;
  border-radius: 8px;
  padding: 14px 16px;
  line-height: 1.45;
}

.bubble.customer {
  justify-self: start;
  background: var(--paper-soft);
  color: var(--ink);
}

.bubble.agent {
  justify-self: end;
  background: var(--violet);
  color: #fff;
}

.bubble.system {
  justify-self: center;
  border: 1px dashed rgba(32, 94, 79, 0.34);
  background: var(--green-soft);
  color: var(--green);
  font-size: 13px;
}

.handoff-card {
  background: var(--paper-soft);
  padding: 18px;
}

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

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

.rules-grid article {
  padding: clamp(20px, 3vw, 30px);
}

.rules-grid span {
  color: var(--copper);
  font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
}

.rules-grid h3 {
  margin-top: 18px;
}

.rules-grid p {
  margin: 14px 0 0;
}

.comparison {
  background: var(--paper-soft);
}

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

.compare-card {
  padding: clamp(22px, 4vw, 38px);
}

.compare-card.featured {
  border-color: rgba(92, 30, 236, 0.28);
  box-shadow: var(--shadow);
}

.compare-card header span {
  color: var(--violet);
  font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.compare-card h3 {
  margin-top: 12px;
}

.compare-card ul,
.price-card ul {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.compare-card li,
.price-card li {
  position: relative;
  padding-left: 20px;
}

.compare-card li::before,
.price-card li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green);
}

.pricing {
  background: var(--paper);
}

.billing-toggle {
  display: flex;
  width: fit-content;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-soft);
  padding: 4px;
}

.billing-toggle button {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  padding: 0 14px;
  color: var(--muted);
  font-weight: 700;
}

.billing-toggle button.active {
  background: var(--dark);
  color: #fff;
}

.price-card {
  display: flex;
  min-height: 520px;
  flex-direction: column;
  padding: clamp(22px, 3vw, 30px);
}

.price-card.highlighted {
  border-color: rgba(92, 30, 236, 0.34);
  box-shadow: var(--shadow);
}

.price-card.dark {
  border-color: var(--dark);
  background: var(--dark);
  color: #fff;
}

.price-card.dark p,
.price-card.dark li,
.price-card.dark .plan {
  color: rgba(255, 255, 255, 0.7);
}

.price-card h3 {
  margin-top: 16px;
  font-size: clamp(38px, 5vw, 58px);
}

.price-card h3 small {
  color: var(--muted);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 17px;
}

.price-card p {
  margin: 16px 0 0;
}

.price-card .button {
  margin-top: auto;
}

.faq-list {
  display: grid;
  max-width: 900px;
  margin: 0 auto;
  gap: 10px;
}

.faq-item {
  overflow: hidden;
}

.faq-question {
  display: flex;
  width: 100%;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0 20px;
  color: var(--ink);
  font-weight: 700;
  text-align: left;
}

.faq-question svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  transition: transform 160ms ease;
}

.faq-item p {
  display: none;
  margin: 0;
  padding: 0 20px 20px;
}

.faq-item.open p {
  display: block;
}

.faq-item.open .faq-question svg {
  transform: rotate(45deg);
}

.final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  background: var(--dark);
  color: #fff;
}

.final-cta .eyebrow {
  color: #cfc6ff;
}

.final-cta h2 {
  max-width: 920px;
}

.final-cta p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.65;
}

.chat-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  pointer-events: none;
}

.chat-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  display: grid;
  width: min(390px, calc(100vw - 32px));
  max-height: min(620px, calc(100vh - 110px));
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.chat-widget.open .chat-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.chat-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 16px;
}

.chat-panel header span {
  display: block;
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  font-size: 11px;
  text-transform: uppercase;
}

.chat-close {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
}

.chat-close svg {
  width: 16px;
  height: 16px;
}

.chat-messages {
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: auto;
  padding: 16px;
}

.chat-message {
  max-width: 86%;
  border-radius: 8px;
  padding: 12px 14px;
  line-height: 1.45;
}

.chat-message span {
  display: block;
  margin-bottom: 5px;
  font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.chat-message.assistant {
  justify-self: start;
  background: var(--paper-soft);
}

.chat-message.user {
  justify-self: end;
  background: var(--violet);
  color: #fff;
}

.chat-message p {
  margin: 0;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 12px;
}

.chat-form input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
}

.chat-form button,
.chat-launcher {
  border: 0;
  border-radius: 999px;
  background: var(--dark);
  color: #fff;
  cursor: pointer;
}

.chat-form button {
  display: grid;
  place-items: center;
}

.chat-form svg {
  width: 17px;
  height: 17px;
}

.chat-launcher {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  box-shadow: 0 14px 44px rgba(16, 16, 24, 0.28);
  pointer-events: auto;
  font-weight: 700;
}

.chat-launcher svg {
  width: 18px;
  height: 18px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 90;
  border-radius: 999px;
  background: var(--dark);
  color: #fff;
  padding: 12px 16px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.site-footer {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 20px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: #0d1411;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

@media (max-width: 620px) {
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

.js-enabled .reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 760ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
    transform 760ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.js-enabled .reveal.reveal-pop {
  transform: translateY(42px) scale(0.975);
}

.js-enabled .reveal.reveal-left {
  transform: translateX(-38px);
}

.js-enabled .reveal.reveal-right {
  transform: translateX(38px);
}

.js-enabled .reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

.js-enabled .reveal.is-visible .waveform span {
  animation-play-state: running;
}

@media (max-width: 1080px) {
  .hero,
  .section-heading.split,
  .lab-shell,
  .channel-shell,
  .final-cta {
    grid-template-columns: 1fr;
  }

  .voice-card {
    max-width: 720px;
  }

  .metric-strip,
  .rules-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .final-cta .cta-actions {
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js-enabled .reveal,
  .js-enabled .reveal.reveal-pop,
  .js-enabled .reveal.reveal-left,
  .js-enabled .reveal.reveal-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 64px;
  }

  .nav a:not(.nav-cta) {
    display: none;
  }

  .section-pad {
    padding: 64px 16px;
  }

  .hero {
    gap: 36px;
    padding-top: 62px;
  }

  h1 {
    font-size: 58px;
  }

  h2 {
    font-size: 40px;
  }

  .hero-actions,
  .hero-actions .button,
  .cta-actions,
  .cta-actions .button {
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .metric-strip,
  .rules-grid,
  .compare-grid,
  .pricing-grid,
  .desk-grid {
    grid-template-columns: 1fr;
  }

  .metric-strip article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric-strip article:last-child {
    border-bottom: 0;
  }

  .preview-head {
    display: grid;
  }

  .preview-head strong {
    text-align: left;
  }

  .bubble {
    max-width: 100%;
  }

  .price-card {
    min-height: auto;
  }

  .chat-widget {
    right: 14px;
    bottom: 14px;
  }
}

@media (max-width: 430px) {
  h1 {
    font-size: 48px;
  }

  .voice-card,
  .channel-preview,
  .lab-controls,
  .lab-result,
  .price-card,
  .compare-card,
  .rules-grid article {
    padding: 18px;
  }

  .caller-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .waveform {
    gap: 5px;
    padding: 14px;
  }
}
