/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #fafaf9;
  --fg: #1c1917;
  --muted: #78716c;
  --accent: #1c1917;
  --accent-hover: #44403c;
  --border: #e7e5e4;
  --card-bg: #ffffff;
  --success: #15803d;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  min-height: 100vh;
}

/* Layout */
.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
.nav {
  padding: 20px 0;
}

.nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-cta {
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  background: var(--accent);
  padding: 8px 18px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
}

.nav-cta:hover {
  background: var(--accent-hover);
}

/* Hero */
.hero {
  padding: 60px 0 60px;
  text-align: center;
}

.hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero .subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

/* Signup form */
.signup-form {
  display: flex;
  justify-content: center;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto;
}

.cta-button {
  display: inline-block;
  padding: 16px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: var(--font);
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
  text-decoration: none;
}

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

/* Hero label */
.hero-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 16px;
}

/* Chat Demo */
.demo {
  padding: 20px 0 80px;
}

.chat-window {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.08);
}

.chat-header {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  gap: 10px;
}

.chat-header-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}

.chat-header-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fg);
}

.chat-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 240px;
  max-height: 360px;
  overflow-y: auto;
  background: #fafaf9;
}

.chat-msg {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 10px;
  opacity: 0;
  animation: fadeIn 0.3s ease forwards;
}

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

.chat-msg.user {
  background: var(--fg);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-msg.agent {
  background: var(--card-bg);
  color: var(--fg);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  border: 1px solid var(--border);
}

.agent-name {
  color: #2563eb;
  font-weight: 600;
  font-size: 0.8rem;
  display: block;
  margin-bottom: 4px;
}

.msg-text {
  display: inline;
}

.chat-time {
  font-size: 0.75rem;
  color: var(--muted);
  float: right;
  margin-top: 4px;
  margin-left: 12px;
}

/* Pain source attribution */
.pain-header {
  font-size: 0.85rem;
  color: #a8a29e;
  font-style: italic;
  margin-bottom: 24px;
}

/* Pricing note */
.pricing-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 16px;
}

/* Pain points */
.pain {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.pain-grid {
  display: grid;
  gap: 40px;
}

.pain-item h3 {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 8px;
  color: var(--fg);
}

.pain-item p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--muted);
}

/* Solution / How it works */
.solution {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.solution h2 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
  text-align: center;
}

.steps {
  display: grid;
  gap: 28px;
  max-width: 480px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  padding-top: 2px;
  flex-shrink: 0;
}

.step-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.step-content strong {
  font-size: 1.05rem;
  font-weight: 600;
}

.step-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
}

/* FAQ */
.faq {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.faq h2 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  text-align: center;
}

.faq-list {
  display: grid;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-item summary {
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--muted);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item[open] summary::after {
  content: '\2212';
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--muted);
  margin-top: 12px;
}

.faq-item p + p {
  margin-top: 8px;
}

/* CTA */
.cta {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.cta h2 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.cta > .container > p {
  color: var(--muted);
  margin-bottom: 28px;
}

/* Footer */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-brand {
  font-weight: 600;
  color: var(--fg);
}

.footer-sep {
  margin: 0 8px;
}

.footer-note {
  color: #a8a29e;
}

/* Voice demo */
.demo-headline {
  text-align: center;
  margin-bottom: 8px;
}

.demo-sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 1.05rem;
}

.demo-setup {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

.demo-setup-row {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.demo-biz-input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card-bg);
  color: var(--fg);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  text-align: center;
}

.demo-biz-input:focus {
  border-color: var(--accent);
}

.demo-examples {
  margin-top: 14px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 0.85rem;
}

.demo-eg {
  background: none;
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 5px 12px;
  border-radius: 14px;
  font-size: 0.82rem;
  cursor: pointer;
  margin: 3px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.demo-eg:hover {
  border-color: var(--accent);
}

.call-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  background: #22c55e;
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.call-btn:hover {
  background: #16a34a;
  transform: scale(1.03);
}

.call-btn:active {
  transform: scale(0.98);
}

.demo-warn {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.85rem;
}

.demo-warn a {
  color: var(--fg);
  text-decoration: underline;
}

/* Call UI */
.call-ui {
  display: flex;
  justify-content: center;
}

.call-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 40px 36px 28px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.08);
}

.call-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.call-avatar svg {
  fill: var(--muted);
}

.call-avatar.ringing {
  animation: ring-pulse 1.2s ease-in-out infinite;
}

.call-avatar.connected {
  background: #22c55e;
}

.call-avatar.connected svg {
  fill: #fff;
}

.call-avatar.speaking {
  background: #22c55e;
  animation: speak-pulse 0.8s ease-in-out infinite;
}

.call-avatar.speaking svg {
  fill: #fff;
}

.call-avatar.listening {
  background: #3b82f6;
  animation: listen-pulse 1.5s ease-in-out infinite;
}

.call-avatar.listening svg {
  fill: #fff;
}

@keyframes ring-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50% { box-shadow: 0 0 0 16px rgba(34,197,94,0); }
}

@keyframes speak-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(34,197,94,0.3); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 12px rgba(34,197,94,0); }
}

@keyframes listen-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59,130,246,0.4); }
  50% { box-shadow: 0 0 0 14px rgba(59,130,246,0); }
}

.call-info {
  margin-bottom: 20px;
}

.call-name {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 4px;
}

.call-status {
  font-size: 0.85rem;
  color: var(--muted);
}

.call-transcript {
  min-height: 60px;
  padding: 16px;
  color: var(--fg);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.call-controls {
  margin-bottom: 16px;
}

.call-end-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ef4444;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.1s;
}

.call-end-btn:hover {
  background: #dc2626;
  transform: scale(1.05);
}

.demo-cta {
  padding: 16px 0 0;
  text-align: center;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

.demo-cta p {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.demo-cta .cta-button {
  font-size: 0.9rem;
  padding: 10px 24px;
}

/* Mobile */
@media (max-width: 600px) {
  .hero { padding: 40px 0 48px; }
  .hero h1 { font-size: 1.7rem; }

  .pain, .solution, .faq, .cta {
    padding: 60px 0;
  }

  .pain-item h3 {
    font-size: 1.1rem;
  }

  .call-card {
    padding: 32px 24px 24px;
  }
}
