/* Variables */
:root {
  --bg: #FAF7F2;
  --bg-alt: #F0EAE0;
  --fg: #1C1917;
  --fg-muted: #78716C;
  --accent: #C84B31;
  --accent-warm: #E8846B;
  --surface: #FFFFFF;
  --border: #E5DDD3;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

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

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Navigation */
.nav {
  padding: 20px 40px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--fg);
  letter-spacing: -0.02em;
}

.nav-tagline {
  font-size: 0.875rem;
  color: var(--fg-muted);
}

.nav-logo {
  text-decoration: none;
}

.nav-cta {
  margin-left: auto;
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 24px;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.nav-cta:hover {
  opacity: 0.85;
}

/* Hero */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 40px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  background: #FDEEEA;
  padding: 4px 10px;
  border-radius: 20px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.0625rem;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 460px;
  margin-bottom: 36px;
}

.hero-cta {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: 1.0625rem;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: 28px;
  text-decoration: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  box-shadow: 0 4px 16px rgba(200, 75, 49, 0.25);
}

.hero-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.hero-phone-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero-phone {
  width: 220px;
  background: #1C1917;
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18), 0 4px 12px rgba(0,0,0,0.1);
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 22px;
  background: #1C1917;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

.phone-screen {
  background: #111;
  border-radius: 28px;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  flex-direction: column;
}

.phone-app-header {
  display: flex;
  gap: 6px;
  padding: 20px 16px 10px;
  justify-content: flex-start;
}

.phone-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #333;
}

.phone-app-body {
  flex: 1;
  padding: 12px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.phone-ai-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1E1E1E;
  border-radius: 10px;
  padding: 10px 12px;
}

.ai-icon {
  font-size: 1.25rem;
}

.ai-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #FFF;
}

.ai-status {
  font-size: 0.625rem;
  color: #6B7280;
}

.phone-transcript {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.transcript-user {
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  padding: 8px 12px;
  border-radius: 12px 12px 4px 12px;
  align-self: flex-end;
  max-width: 90%;
}

.transcript-ai {
  background: #1E1E1E;
  color: #D1D5DB;
  font-size: 0.75rem;
  padding: 8px 12px;
  border-radius: 12px 12px 12px 4px;
  align-self: flex-start;
  line-height: 1.5;
}

.phone-voice-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  justify-content: center;
  padding: 4px 0;
  margin-top: auto;
}

.phone-voice-wave span {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
  height: 14px;
  animation: wave 1s ease-in-out infinite;
}
.phone-voice-wave span:nth-child(1) { animation-delay: 0s; }
.phone-voice-wave span:nth-child(2) { animation-delay: 0.1s; }
.phone-voice-wave span:nth-child(3) { animation-delay: 0.2s; }
.phone-voice-wave span:nth-child(4) { animation-delay: 0.3s; }
.phone-voice-wave span:nth-child(5) { animation-delay: 0.4s; }

@keyframes wave {
  0%, 100% { height: 6px; }
  50% { height: 20px; }
}

.hero-callout-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.callout-voice {
  font-size: 1.25rem;
}

.callout-text {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.4;
}

/* How It Works */
.how {
  background: var(--bg-alt);
  padding: 80px 40px;
}

.how-header {
  max-width: 700px;
  margin: 0 auto 56px;
  text-align: center;
}

.how-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 14px;
}

.how-header p {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

.how-steps {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
}

.step {
  flex: 1;
  padding: 32px 28px;
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.step-connector {
  width: 48px;
  height: 2px;
  background: var(--border);
  flex-shrink: 0;
  position: relative;
}

.step-connector::after {
  content: '→';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.875rem;
  color: var(--fg-muted);
  background: var(--bg-alt);
  padding: 0 4px;
}

.step-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.step p {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.55;
}

/* Features */
.features {
  padding: 80px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.features-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 36px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px;
  transition: box-shadow 0.2s ease;
}

.feature-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.07);
}

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.55;
}

/* Closing */
.closing {
  background: var(--fg);
  color: white;
  padding: 100px 40px;
}

.closing-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: #FAF7F2;
  margin-bottom: 24px;
}

.closing-body {
  font-size: 1.0625rem;
  color: #A8A29E;
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto;
}

/* Footer */
.footer {
  background: #111;
  color: #6B7280;
  padding: 40px;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #FAF7F2;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.footer-note {
  font-size: 0.875rem;
  margin-bottom: 6px;
}

.footer-copy {
  font-size: 0.75rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 48px 24px 40px;
    gap: 40px;
    text-align: center;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .how-steps {
    flex-direction: column;
    gap: 16px;
  }

  .step-connector {
    width: 2px;
    height: 24px;
  }

  .step-connector::after {
    content: '↓';
    background: var(--bg-alt);
  }

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

  .how {
    padding: 60px 24px;
  }

  .features {
    padding: 60px 24px;
  }

  .closing {
    padding: 72px 24px;
  }

  .nav {
    padding: 16px 24px;
  }

  .hero-phone {
    width: 180px;
  }

  .phone-screen {
    min-height: 300px;
  }
}

@media (max-width: 480px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}