:root {
  --ink: #132722;
  --muted: #5d6b66;
  --paper: #f4f1ea;
  --paper-deep: #ebe5da;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-solid: #fffefa;
  --line: rgba(19, 39, 34, 0.14);
  --green: #0b7a5a;
  --green-dark: #075b44;
  --green-soft: #d9eee7;
  --lime: #c6e66b;
  --coral: #e7654a;
  --shadow: 0 24px 70px rgba(28, 48, 41, 0.13);
  --radius-lg: 28px;
  --radius-md: 18px;
  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 9%, rgba(198, 230, 107, 0.27), transparent 26rem),
    radial-gradient(circle at 8% 36%, rgba(11, 122, 90, 0.1), transparent 24rem),
    var(--paper);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: white;
  background: var(--ink);
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}

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

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: white;
  background: var(--ink);
  border-radius: 10px 10px 10px 3px;
}

.demo-label,
.section-kicker,
.eyebrow {
  color: var(--green-dark);
  font-size: 0.73rem;
  font-weight: 760;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.demo-label {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
  min-height: 650px;
  padding: 54px 0 88px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 26px;
  font-size: clamp(3rem, 6.4vw, 6.4rem);
  font-weight: 650;
  line-height: 0.97;
  letter-spacing: -0.067em;
}

.lede {
  max-width: 650px;
  margin-bottom: 35px;
  color: var(--muted);
  font-size: clamp(1.07rem, 1.65vw, 1.35rem);
  line-height: 1.55;
}

.benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.benefits li {
  padding: 9px 13px;
  color: #31443e;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.86rem;
}

.call-card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 40px);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.call-card::before {
  position: absolute;
  top: -70px;
  right: -70px;
  width: 190px;
  height: 190px;
  background: var(--green-soft);
  border-radius: 50%;
  content: "";
  filter: blur(2px);
  opacity: 0.8;
}

.call-card-topline,
.section-heading,
.panel-header {
  position: relative;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
}

.call-card h2,
.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.5rem, 2.3vw, 2.15rem);
  letter-spacing: -0.04em;
}

.status-badge {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 8px;
  align-items: center;
  padding: 8px 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 680;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: #89938f;
  border-radius: 50%;
}

.status-badge[data-state="ready"] .status-dot,
.status-badge[data-state="listening"] .status-dot {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(11, 122, 90, 0.12);
}

.status-badge[data-state="connecting"] .status-dot,
.status-badge[data-state="speaking"] .status-dot {
  background: #d59b15;
  box-shadow: 0 0 0 4px rgba(213, 155, 21, 0.12);
}

.status-badge[data-state="error"] .status-dot {
  background: var(--coral);
}

.voice-orb-wrap {
  display: grid;
  min-height: 176px;
  place-items: center;
}

.voice-orb {
  display: flex;
  width: 142px;
  height: 142px;
  gap: 6px;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 37% 30%, rgba(255, 255, 255, 0.92), transparent 19%),
    linear-gradient(145deg, var(--lime), #80ceb3);
  border: 10px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  box-shadow:
    0 18px 45px rgba(11, 122, 90, 0.2),
    inset 0 -15px 25px rgba(11, 91, 68, 0.12);
  transition:
    transform 200ms ease,
    box-shadow 200ms ease;
}

.voice-orb span {
  width: 4px;
  height: 22px;
  background: var(--green-dark);
  border-radius: 999px;
  opacity: 0.64;
  transform: scaleY(0.55);
}

.voice-orb[data-state="connecting"] {
  animation: breathe 1.2s ease-in-out infinite;
}

.voice-orb[data-state="listening"] {
  box-shadow:
    0 0 0 12px rgba(11, 122, 90, 0.07),
    0 0 0 24px rgba(11, 122, 90, 0.035),
    0 18px 45px rgba(11, 122, 90, 0.2);
}

.voice-orb[data-state="speaking"] span {
  animation: waveform 620ms ease-in-out infinite alternate;
}

.voice-orb[data-state="speaking"] span:nth-child(2) {
  animation-delay: -320ms;
}

.voice-orb[data-state="speaking"] span:nth-child(3) {
  animation-delay: -140ms;
}

.voice-orb[data-state="speaking"] span:nth-child(4) {
  animation-delay: -430ms;
}

.voice-orb[data-state="speaking"] span:nth-child(5) {
  animation-delay: -240ms;
}

.voice-orb[data-state="error"] {
  background: linear-gradient(145deg, #ffd9d0, #f2a18d);
}

.status-text {
  min-height: 48px;
  margin-bottom: 20px;
  color: var(--muted);
  text-align: center;
}

.call-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 720;
  transition:
    transform 140ms ease,
    background 140ms ease,
    border-color 140ms ease;
}

.button svg {
  width: 20px;
  height: 20px;
  margin-right: 9px;
  fill: currentColor;
}

.button-primary {
  color: white;
  background: var(--green-dark);
}

.button-primary:hover:not(:disabled) {
  background: var(--green);
  transform: translateY(-1px);
}

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

.button-secondary:hover:not(:disabled) {
  background: var(--paper);
}

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

.button:focus-visible,
.text-button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(11, 122, 90, 0.34);
  outline-offset: 3px;
}

.privacy-note {
  margin: 14px 3px 0;
  color: #71807b;
  font-size: 0.75rem;
  text-align: center;
}

.readiness {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 24px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
}

.readiness > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.readiness-label {
  color: #7b8783;
  font-size: 0.69rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.readiness-value {
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-section {
  padding: 72px 0 100px;
  border-top: 1px solid var(--line);
}

.section-heading {
  align-items: flex-end;
  margin-bottom: 28px;
}

.text-button {
  padding: 8px 0;
  color: var(--green-dark);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 720;
}

.text-button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.conversation-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 18px;
}

.panel {
  min-height: 350px;
  padding: 22px;
  background: rgba(255, 254, 250, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.panel-header {
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.panel-header h3 {
  margin-bottom: 0;
  font-size: 1rem;
}

.panel-header span {
  color: #7b8783;
  font-size: 0.72rem;
}

.transcript-list,
.event-log {
  display: flex;
  max-height: 440px;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  margin: 0;
  padding: 18px 2px 2px;
  list-style: none;
  scrollbar-color: rgba(19, 39, 34, 0.28) transparent;
}

.empty-state {
  padding: 42px 18px;
  color: #7b8783;
  text-align: center;
}

.transcript-item {
  max-width: 84%;
  padding: 11px 14px;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: 14px 14px 14px 4px;
}

.transcript-item[data-role="user"] {
  align-self: flex-end;
  background: var(--green-soft);
  border-color: rgba(11, 122, 90, 0.14);
  border-radius: 14px 14px 4px;
}

.transcript-meta {
  display: block;
  margin-bottom: 4px;
  color: #71807b;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.transcript-copy {
  margin: 0;
  color: #243a34;
  font-size: 0.9rem;
  line-height: 1.55;
}

.transcript-item[data-final="false"] .transcript-copy {
  opacity: 0.68;
}

.event-item {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 8px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(19, 39, 34, 0.11);
  color: #3b4e48;
  font-size: 0.8rem;
}

.event-time {
  color: #83908c;
  font-variant-numeric: tabular-nums;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 24px 0 36px;
  color: #71807b;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
}

.noscript {
  position: fixed;
  z-index: 100;
  right: 12px;
  bottom: 12px;
  left: 12px;
  margin: 0;
  padding: 14px;
  color: white;
  background: var(--ink);
  border-radius: 12px;
  text-align: center;
}

@keyframes waveform {
  from {
    transform: scaleY(0.35);
  }
  to {
    transform: scaleY(1.55);
  }
}

@keyframes breathe {
  50% {
    transform: scale(0.94);
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 36px;
  }

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

  h1 {
    max-width: 830px;
  }

  .conversation-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header,
  main,
  footer {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    padding: 18px 0;
  }

  .hero {
    gap: 38px;
    padding: 38px 0 64px;
  }

  h1 {
    font-size: clamp(2.75rem, 14vw, 4.4rem);
  }

  .call-card {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .call-card-topline,
  .section-heading {
    flex-direction: column;
  }

  .call-card-topline {
    gap: 12px;
  }

  .call-actions {
    grid-template-columns: 1fr;
  }

  .readiness {
    gap: 12px;
  }

  .panel {
    padding: 16px;
  }

  .panel-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .transcript-item {
    max-width: 94%;
  }

  footer {
    flex-direction: column;
    gap: 4px;
  }
}

@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;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: rgba(19, 39, 34, 0.38);
    --muted: #43524d;
  }

  .button-primary {
    background: #064332;
  }
}
