/* =============================================
   CallPilot Landing Page — Custom Theme
   ============================================= */

:root {
  --bg: #FAF9F7;
  --bg-alt: #F3F1ED;
  --fg: #1A1A18;
  --fg-muted: #6B6860;
  --teal: #0D9488;
  --teal-light: #14B8A6;
  --teal-dark: #0F766E;
  --amber: #F59E0B;
  --red: #EF4444;
  --white: #FFFFFF;
  --border: #E5E2DC;
  --shadow: rgba(26, 26, 24, 0.06);
}

/* === RESET & BASE === */
*, *::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: 'DM Sans', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  line-height: 1.15;
  font-weight: 600;
}
a { text-decoration: none; color: inherit; }

/* === NAV === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 249, 247, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Fraunces', serif;
  font-size: 1.1rem; font-weight: 600;
  color: var(--fg);
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 0.875rem; font-weight: 500;
  color: var(--fg-muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--fg); }

/* === HERO === */
.hero {
  position: relative;
  padding: 140px 24px 100px;
  overflow: hidden;
  min-height: 100vh;
  display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0;
  pointer-events: none;
}
.hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.35;
}
.hero-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #0D9488 0%, transparent 70%);
  top: -100px; right: -100px;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #F59E0B 0%, transparent 70%);
  bottom: 50px; left: 10%;
  opacity: 0.15;
}
.hero-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-left { padding-right: 20px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--teal);
  background: rgba(13, 148, 136, 0.08);
  border: 1px solid rgba(13, 148, 136, 0.2);
  padding: 6px 14px; border-radius: 100px;
  margin-bottom: 28px;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}
.hero-headline {
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--fg);
}
.hero-headline em {
  font-style: italic;
  color: var(--teal);
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--fg-muted);
  max-width: 480px;
  margin-bottom: 40px;
  line-height: 1.7;
}
.hero-stats {
  display: flex; align-items: center; gap: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 2px 20px var(--shadow);
}
.hero-stat {
  flex: 1; padding: 20px 24px;
  display: flex; flex-direction: column; gap: 4px;
}
.hero-stat-num {
  font-family: 'Fraunces', serif;
  font-size: 1.6rem; font-weight: 700;
  color: var(--teal);
}
.hero-stat-label {
  font-size: 0.72rem; color: var(--fg-muted);
  line-height: 1.4;
}
.hero-stat-div {
  width: 1px; height: 50px;
  background: var(--border);
}

/* === PHONE MOCKUP === */
.hero-right { display: flex; justify-content: center; align-items: center; }
.phone-mockup {
  transform: perspective(1000px) rotateY(-6deg) rotateX(3deg);
  filter: drop-shadow(0 32px 64px rgba(0,0,0,0.15));
  transition: transform 0.4s ease;
}
.phone-mockup:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}
.phone-frame {
  width: 300px; height: 600px;
  background: #111;
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 40px 80px rgba(0,0,0,0.3);
}
.phone-notch {
  width: 100px; height: 28px;
  background: #111;
  border-radius: 0 0 18px 18px;
  margin: 0 auto 12px;
}
.call-screen {
  background: var(--white);
  border-radius: 28px;
  height: 100%;
  padding: 20px 16px;
  display: flex; flex-direction: column; gap: 16px;
}
.call-header {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.call-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(13, 148, 136, 0.1);
  display: flex; align-items: center; justify-content: center;
}
.call-info { display: flex; flex-direction: column; gap: 2px; }
.call-label { font-size: 0.75rem; font-weight: 600; color: var(--teal); }
.call-duration { font-size: 0.65rem; color: var(--fg-muted); }

.waveform {
  display: flex; align-items: center; gap: 3px;
  height: 48px; padding: 0 4px;
  background: rgba(13, 148, 136, 0.05);
  border-radius: 12px;
}
.waveform-bar {
  flex: 1;
  background: var(--teal);
  border-radius: 3px;
  min-height: 8px;
  animation: wave-pulse 1.5s ease-in-out infinite;
}
.waveform-bar:nth-child(1) { animation-delay: 0s; }
.waveform-bar:nth-child(2) { animation-delay: 0.1s; }
.waveform-bar:nth-child(3) { animation-delay: 0.2s; }
.waveform-bar:nth-child(4) { animation-delay: 0.3s; }
.waveform-bar:nth-child(5) { animation-delay: 0.4s; }
.waveform-bar:nth-child(6) { animation-delay: 0.5s; }
.waveform-bar:nth-child(7) { animation-delay: 0.6s; }
.waveform-bar:nth-child(8) { animation-delay: 0.7s; }
.waveform-bar:nth-child(9) { animation-delay: 0.8s; }
.waveform-bar:nth-child(10) { animation-delay: 0.9s; }
.waveform-bar:nth-child(11) { animation-delay: 1.0s; }
.waveform-bar:nth-child(12) { animation-delay: 1.1s; }
@keyframes wave-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
.transcript { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.transcript-line {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  max-width: 88%;
}
.transcript-line.caller {
  background: var(--bg-alt);
  align-self: flex-start;
}
.transcript-line.agent {
  background: rgba(13, 148, 136, 0.08);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.transcript-speaker {
  font-size: 0.65rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--fg-muted);
}
.transcript-text {
  font-size: 0.78rem; line-height: 1.5;
  color: var(--fg);
}
.call-actions { display: flex; flex-direction: column; gap: 8px; }
.call-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.7rem; font-weight: 500;
  padding: 6px 12px;
  border-radius: 100px;
}
.call-badge-green { background: rgba(34, 197, 94, 0.1); color: #16A34A; }
.call-badge-amber { background: rgba(245, 158, 11, 0.1); color: #B45309; }

/* === TRUSTBAR === */
.trustbar {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
}
.trustbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex; align-items: center; gap: 20px;
  flex-wrap: wrap;
}
.trustbar-label { font-size: 0.75rem; color: var(--fg-muted); font-weight: 500; }
.trustbar-items { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.trustbar-items span { font-size: 0.875rem; font-weight: 500; color: var(--fg); }
.trustbar-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--border);
}

/* === SECTION LABEL === */
.section-label {
  font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--teal); margin-bottom: 16px;
}

/* === PROBLEM === */
.problem { padding: 100px 24px; background: var(--white); }
.problem-inner { max-width: 1200px; margin: 0 auto; }
.problem-headline {
  font-size: clamp(2rem, 3.5vw, 3rem);
  max-width: 600px;
  margin-bottom: 24px;
}
.problem-headline-accent { color: var(--red); }
.problem-body {
  font-size: 1.05rem; color: var(--fg-muted);
  max-width: 540px; margin-bottom: 60px;
  line-height: 1.7;
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.problem-card {
  padding: 32px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: border-color 0.2s, transform 0.2s;
}
.problem-card:hover { border-color: var(--teal); transform: translateY(-2px); }
.problem-card-bad { border-left: 3px solid var(--red); }
.problem-icon { margin-bottom: 20px; }
.problem-card h3 {
  font-size: 1.1rem; margin-bottom: 10px;
  color: var(--fg);
}
.problem-card p { font-size: 0.9rem; color: var(--fg-muted); line-height: 1.6; }

/* === HOW === */
.how { padding: 100px 24px; background: var(--bg); }
.how-inner { max-width: 1200px; margin: 0 auto; }
.how-headline {
  font-size: clamp(2rem, 3.5vw, 3rem);
  max-width: 580px;
  margin-bottom: 80px;
}
.how-headline-accent { color: var(--teal); font-style: italic; }
.how-steps {
  display: flex; gap: 0;
  position: relative;
}
.how-step {
  flex: 1;
  position: relative;
  padding: 0 40px 0 0;
}
.step-number {
  font-family: 'Fraunces', serif;
  font-size: 3.5rem; font-weight: 700;
  color: rgba(13, 148, 136, 0.15);
  line-height: 1; margin-bottom: 24px;
}
.step-content h3 {
  font-size: 1.15rem; margin-bottom: 12px;
  color: var(--fg);
}
.step-content p {
  font-size: 0.9rem; color: var(--fg-muted);
  line-height: 1.7;
}
.step-line {
  position: absolute;
  top: 20px; right: 0;
  width: 1px; height: calc(100% - 40px);
  background: var(--border);
}
.how-step-last .step-line { display: none; }

/* === FEATURES === */
.features { padding: 100px 24px; background: var(--white); }
.features-inner { max-width: 1200px; margin: 0 auto; }
.features-headline {
  font-size: clamp(2rem, 3.5vw, 3rem);
  max-width: 500px;
  margin-bottom: 60px;
}
.features-headline-accent { color: var(--teal); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.feature-card {
  padding: 32px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  border-color: var(--teal);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(13, 148, 136, 0.08);
}
.feature-icon { margin-bottom: 24px; }
.feature-card h3 {
  font-size: 1.1rem; margin-bottom: 12px;
  color: var(--fg);
}
.feature-card p {
  font-size: 0.875rem; color: var(--fg-muted);
  line-height: 1.7;
}

/* === OUTCOMES === */
.outcomes { padding: 100px 24px; background: var(--teal-dark); }
.outcomes-inner { max-width: 1200px; margin: 0 auto; }
.outcomes-headline {
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--white);
  max-width: 500px;
  margin-bottom: 60px;
}
.outcomes-headline-accent { opacity: 0.7; font-style: italic; }
.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.outcome-card {
  padding: 40px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
  transition: background 0.2s;
}
.outcome-card:hover { background: rgba(255, 255, 255, 0.12); }
.outcome-metric {
  display: flex; align-items: baseline; gap: 8px;
  margin-bottom: 16px;
}
.outcome-number {
  font-family: 'Fraunces', serif;
  font-size: 3rem; font-weight: 700;
  color: var(--white);
}
.outcome-suffix {
  font-size: 1rem; color: rgba(255,255,255,0.6);
  font-weight: 500;
}
.outcome-card p {
  font-size: 0.9rem; color: rgba(255,255,255,0.7);
  line-height: 1.7;
}

/* === MANIFESTO === */
.manifesto {
  padding: 100px 24px;
  background: var(--bg);
}
.manifesto-inner { max-width: 800px; margin: 0 auto; }
.manifesto-quote { text-align: center; }
.manifesto-mark { margin-bottom: 32px; }
.manifesto-quote blockquote {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-style: italic;
  color: var(--fg);
  line-height: 1.7;
}

/* === CLOSING === */
.closing {
  padding: 120px 24px;
  background: var(--white);
  text-align: center;
}
.closing-inner { max-width: 700px; margin: 0 auto; }
.closing-graphic {
  position: relative;
  width: 120px; height: 120px;
  margin: 0 auto 48px;
  display: flex; align-items: center; justify-content: center;
}
.closing-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(13, 148, 136, 0.2);
  animation: ring-expand 3s ease-in-out infinite;
}
.closing-ring-1 { width: 80px; height: 80px; animation-delay: 0s; }
.closing-ring-2 { width: 100px; height: 100px; animation-delay: 0.5s; }
.closing-ring-3 { width: 120px; height: 120px; animation-delay: 1s; }
@keyframes ring-expand {
  0% { opacity: 0.6; transform: scale(0.9); }
  50% { opacity: 0.2; transform: scale(1); }
  100% { opacity: 0.6; transform: scale(0.9); }
}
.closing-icon { position: relative; z-index: 1; }
.closing-headline {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin-bottom: 24px;
  color: var(--fg);
}
.closing-body {
  font-size: 1.05rem; color: var(--fg-muted);
  line-height: 1.7;
}

/* === FOOTER === */
.footer {
  padding: 48px 24px 32px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-brand { margin-bottom: 40px; }
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Fraunces', serif;
  font-size: 1.1rem; font-weight: 600;
  margin-bottom: 12px;
  color: var(--fg);
}
.footer-tagline {
  font-size: 0.875rem; color: var(--fg-muted);
  max-width: 400px;
}
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.footer-bottom p {
  font-size: 0.75rem; color: var(--fg-muted);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 60px; }
  .hero-right { display: none; }
  .hero-left { padding-right: 0; }
  .problem-grid { grid-template-columns: 1fr; }
  .how-steps { flex-direction: column; gap: 40px; }
  .step-line { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .outcomes-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .hero { padding: 100px 20px 60px; }
  .hero-stats { flex-direction: column; gap: 0; }
  .hero-stat { border-bottom: 1px solid var(--border); }
  .hero-stat:last-child { border-bottom: none; }
  .hero-stat-div { display: none; }
  .trustbar-items { display: none; }
  .problem, .how, .features, .outcomes, .manifesto, .closing {
    padding: 60px 20px;
  }
}