:root {
  color-scheme: light;
  --background: #f7f4ef;
  --surface: #ffffff;
  --surface-soft: #f2efe9;
  --ink: #171a19;
  --ink-soft: #626865;
  --line: #ddd9d1;
  --accent: #cb372f;
  --accent-hover: #aa2b25;
  --accent-soft: #f8e7e4;
  --blue: #315eff;
  --success: #16794b;
  --shadow: 0 24px 80px rgba(31, 27, 20, 0.16);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --font-sans:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(49, 94, 255, 0.42);
  outline-offset: 3px;
}

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  min-height: 80px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
}

.brand-mark svg {
  width: 17px;
  fill: currentColor;
}

nav {
  display: flex;
  gap: 28px;
}

nav a {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: color 180ms ease;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 56px;
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  min-height: 690px;
  margin: 0 auto;
  padding: 56px 0 80px;
}

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

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 680px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(52px, 6.5vw, 86px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero-description {
  max-width: 620px;
  margin: 30px 0 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.button svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.button-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(203, 55, 47, 0.2);
}

.button-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  box-shadow: 0 10px 30px rgba(203, 55, 47, 0.28);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.48);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: #b7b2a9;
  background: var(--surface);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.button-full {
  width: 100%;
}

.privacy-note,
.permission-copy {
  color: var(--ink-soft);
  font-size: 12px;
}

.privacy-note {
  margin: 15px 0 0 4px;
}

.hero-visual {
  position: relative;
  min-height: 500px;
  overflow: clip;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
}

.orb-one {
  top: 22px;
  right: -90px;
  width: 430px;
  height: 430px;
  background: #d7dfff;
}

.orb-two {
  bottom: 16px;
  left: 10px;
  width: 300px;
  height: 300px;
  background: #f1bbb4;
}

.conversation-preview {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(390px, calc(100% - 24px));
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.79);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  transform: translate(-50%, -50%) rotate(-2deg);
}

.preview-top,
.agent-identity {
  display: flex;
  gap: 12px;
  align-items: center;
}

.preview-top strong,
.agent-identity strong {
  display: block;
  font-size: 14px;
}

.preview-top small,
.agent-identity small {
  display: block;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 12px;
}

.preview-avatar,
.agent-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

.preview-avatar {
  width: 46px;
  height: 46px;
}

.preview-avatar svg,
.agent-avatar svg,
.idle-icon svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.waveform {
  display: flex;
  height: 78px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 28px 0 20px;
  border-radius: 16px;
  background: var(--surface-soft);
}

.waveform i {
  width: 4px;
  height: 16px;
  border-radius: 10px;
  background: var(--blue);
}

.waveform i:nth-child(2),
.waveform i:nth-child(8) {
  height: 29px;
}

.waveform i:nth-child(3),
.waveform i:nth-child(7) {
  height: 42px;
}

.waveform i:nth-child(4),
.waveform i:nth-child(6) {
  height: 24px;
}

.waveform i:nth-child(5) {
  height: 50px;
}

.preview-message {
  padding: 14px 16px;
  border-radius: 14px 14px 14px 4px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  line-height: 1.45;
}

.support-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 64px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 110px 0 150px;
  border-top: 1px solid var(--line);
}

.support-grid h2 {
  max-width: 370px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(38px, 4vw, 56px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.support-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.support-cards article {
  min-height: 230px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.46);
}

.card-number {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.support-cards h3 {
  margin: 62px 0 10px;
  font-size: 17px;
}

.support-cards p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.voice-widget {
  position: fixed;
  z-index: 20;
  right: 24px;
  bottom: 92px;
  display: flex;
  width: min(390px, calc(100vw - 32px));
  height: min(620px, calc(100vh - 122px));
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.98);
  transform-origin: right bottom;
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.voice-widget.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.widget-header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
}

.agent-avatar {
  width: 42px;
  height: 42px;
}

.icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

.icon-button:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.icon-button svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.widget-body {
  min-height: 0;
  flex: 1;
}

.idle-view {
  display: flex;
  height: 100%;
  min-height: 470px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
}

.idle-icon {
  display: grid;
  width: 68px;
  height: 68px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

.idle-icon svg {
  width: 28px;
}

.idle-view h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.idle-view > p:not(.permission-copy) {
  max-width: 290px;
  margin: 12px 0 26px;
  color: var(--ink-soft);
  font-size: 14px;
}

.permission-copy {
  margin: 12px 0 0;
}

.call-view {
  display: flex;
  height: 100%;
  min-height: 0;
  flex-direction: column;
}

.call-meta {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 12px;
}

.live-indicator {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.live-indicator > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ba7600;
  box-shadow: 0 0 0 4px rgba(186, 118, 0, 0.12);
}

.call-view.is-active .live-indicator > span {
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(22, 121, 75, 0.12);
}

.live-indicator b {
  color: var(--ink);
  font-size: 12px;
}

.transcript {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding: 18px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.transcript-empty {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  text-align: center;
}

.transcript-empty p {
  margin: 12px 0 0;
  font-size: 13px;
}

.listening-bars {
  display: flex;
  height: 30px;
  align-items: center;
  gap: 4px;
}

.listening-bars i {
  width: 3px;
  height: 10px;
  border-radius: 4px;
  background: var(--accent);
  animation: listening 900ms ease-in-out infinite alternate;
}

.listening-bars i:nth-child(2),
.listening-bars i:nth-child(4) {
  animation-delay: -300ms;
}

.listening-bars i:nth-child(3) {
  animation-delay: -600ms;
}

@keyframes listening {
  to {
    height: 26px;
  }
}

.transcript-line {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.transcript-line.is-customer {
  align-items: flex-end;
}

.transcript-speaker {
  margin: 0 8px 4px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.transcript-bubble {
  max-width: 88%;
  padding: 10px 13px;
  border-radius: 15px 15px 15px 4px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.is-customer .transcript-bubble {
  border-radius: 15px 15px 4px;
  background: var(--ink);
  color: #fff;
}

.call-error {
  flex: 0 0 auto;
  margin: 0 18px 12px;
  padding: 10px 12px;
  border: 1px solid #efc2bd;
  border-radius: 10px;
  background: #fff1ef;
  color: #8d211c;
  font-size: 12px;
}

.call-controls {
  display: flex;
  flex: 0 0 auto;
  justify-content: center;
  gap: 22px;
  padding: 16px 18px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}

.control-button {
  display: flex;
  min-width: 64px;
  min-height: 58px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 12px;
  border: 0;
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--ink);
  cursor: pointer;
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

.control-button:hover {
  background: #e7e3dc;
}

.control-button svg {
  width: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.control-button span {
  font-size: 10px;
  font-weight: 750;
}

.control-button .icon-muted {
  display: none;
}

.control-button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}

.control-button[aria-pressed="true"] .icon-mic {
  display: none;
}

.control-button[aria-pressed="true"] .icon-muted {
  display: block;
}

.control-button-end {
  background: var(--accent);
  color: #fff;
}

.control-button-end:hover {
  background: var(--accent-hover);
}

.widget-launcher {
  position: fixed;
  z-index: 21;
  right: 24px;
  bottom: 24px;
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  gap: 9px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 14px 36px rgba(20, 20, 18, 0.24);
  font-weight: 750;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.widget-launcher:hover {
  background: #2b2e2d;
  box-shadow: 0 16px 44px rgba(20, 20, 18, 0.3);
}

.widget-launcher svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.launcher-live-dot {
  display: none;
  width: 8px;
  height: 8px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: #62d899;
  box-shadow: 0 0 0 2px #62d899;
}

.widget-launcher.has-live-call .launcher-live-dot {
  display: block;
}

[hidden] {
  display: none !important;
}

@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 72px;
  }

  .hero-visual {
    min-height: 430px;
  }

  .support-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .support-cards {
    grid-template-columns: 1fr;
  }

  .support-cards article {
    min-height: 180px;
  }

  .support-cards h3 {
    margin-top: 34px;
  }
}

@media (max-width: 560px) {
  .site-header,
  .hero,
  .support-grid {
    width: min(100% - 32px, 1180px);
  }

  nav {
    display: none;
  }

  .hero {
    min-height: auto;
    gap: 20px;
    padding: 54px 0 64px;
  }

  h1 {
    font-size: clamp(48px, 16vw, 68px);
  }

  .hero-description {
    font-size: 17px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .hero-visual {
    min-height: 390px;
  }

  .orb-one {
    right: -140px;
    width: 360px;
    height: 360px;
  }

  .orb-two {
    width: 240px;
    height: 240px;
  }

  .support-grid {
    padding: 80px 0 120px;
  }

  .voice-widget {
    right: 8px;
    bottom: 78px;
    width: calc(100vw - 16px);
    height: calc(100dvh - 92px);
    max-height: 690px;
    border-radius: 22px;
  }

  .widget-launcher {
    right: 12px;
    bottom: 12px;
  }
}

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