/* =========================================
   PINGRA — Theme CSS
   ========================================= */

:root {
  --bg: #FAFAF8;
  --bg-alt: #F2F1EE;
  --fg: #1A1A2E;
  --fg-muted: #6B6B7B;
  --accent: #FF6B35;
  --teal: #0AAE8F;
  --teal-light: #E8F7F5;
  --coral-light: #FFF1ED;
  --border: #E4E3DF;
  --white: #FFFFFF;
  --phone-bg: #0B3D2E;
}

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

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- NAV ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--fg);
  text-decoration: none;
}

.nav-demo-link {
  margin-left: auto;
  display: inline-block;
  background: var(--accent);
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 9px 20px;
  border-radius: 99px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.nav-demo-link:hover { opacity: 0.85; }

/* ---- DEMO SECTION ---- */
.demo-section {
  padding: 100px 0;
  background: var(--white);
  border-top: 1px solid var(--border);
}
.demo-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.demo-section .section-header {
  text-align: center;
  margin-bottom: 48px;
}
.demo-section .section-header h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--fg);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.demo-section .section-header p {
  font-size: 1rem;
  color: var(--fg-muted);
}
.demo-chat-preview {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(26,26,46,0.06);
}
.demo-chat-header {
  background: var(--fg);
  color: white;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.demo-chat-avatar {
  width: 36px; height: 36px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.demo-chat-info h3 {
  font-family: 'Syne', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0;
}
.demo-chat-info p {
  font-size: 0.72rem;
  opacity: 0.5;
  margin: 2px 0 0;
}
.demo-chat-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.demo-msg { display: flex; gap: 8px; }
.demo-msg.user { flex-direction: row-reverse; }
.demo-msg-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.demo-msg.user .demo-msg-avatar { background: var(--accent); color: white; }
.demo-msg.assistant .demo-msg-avatar { background: var(--fg); color: white; }
.demo-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.5;
}
.demo-msg.user .demo-bubble { background: var(--accent); color: white; border-bottom-right-radius: 4px; }
.demo-msg.assistant .demo-bubble { background: #EFEFEF; color: var(--fg); border-bottom-left-radius: 4px; }
.demo-chat-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  align-items: center;
}
.demo-input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 9px 16px;
  font-size: 0.85rem;
  background: white;
  outline: none;
  font-family: 'DM Sans', sans-serif;
}
.demo-input:focus { border-color: var(--accent); }
.demo-cta {
  background: var(--fg);
  color: white;
  border: none;
  border-radius: 99px;
  padding: 9px 20px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
}
.demo-cta:hover { opacity: 0.85; }

/* ---- CTA BUTTONS ---- */
.hero-cta-btn {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 99px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  width: fit-content;
}
.hero-cta-btn:hover { opacity: 0.88; transform: translateY(-1px); }

.closing-cta-btn {
  display: inline-block;
  background: var(--fg);
  color: white;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 16px 40px;
  border-radius: 99px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  margin-top: 32px;
}
.closing-cta-btn:hover { opacity: 0.85; transform: translateY(-2px); }
.closing-sub {
  margin-top: 20px;
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.closing-content { text-align: center; }
.closing-content h2 { text-align: center; }

/* ---- HERO ---- */
.hero {
  min-height: calc(100vh - 65px);
  display: flex;
  align-items: center;
  padding: 80px 0 60px;
  background: var(--bg);
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-left { display: flex; flex-direction: column; gap: 28px; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--coral-light);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 6px 14px;
  border-radius: 100px;
  width: fit-content;
}
.tag-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-headline {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: 1.05;
  color: var(--fg);
  letter-spacing: -0.02em;
}
.headline-accent {
  font-style: normal;
  color: var(--accent);
  position: relative;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--fg-muted);
  max-width: 420px;
  line-height: 1.7;
}

.hero-proof {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.proof-stat { display: flex; flex-direction: column; gap: 2px; }
.proof-num {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--fg);
}
.proof-label {
  font-size: 0.75rem;
  color: var(--fg-muted);
  line-height: 1.3;
  max-width: 80px;
}
.proof-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ---- PHONE MOCKUP ---- */
.hero-right {
  position: relative;
  display: flex;
  justify-content: center;
}
.phone-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,107,53,0.18) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.phone-frame {
  position: relative;
  width: 280px;
  background: var(--fg);
  border-radius: 40px;
  padding: 16px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.1) inset,
    0 40px 80px rgba(26,26,46,0.25),
    0 20px 40px rgba(26,26,46,0.15);
  z-index: 1;
}
.phone-notch {
  width: 90px; height: 24px;
  background: var(--fg);
  border-radius: 0 0 16px 16px;
  margin: -16px auto 12px;
  position: relative;
  z-index: 2;
}
.phone-notch::after {
  content: '';
  position: absolute;
  width: 40px; height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
  top: 10px; left: 50%;
  transform: translateX(-50%);
}
.phone-screen {
  background: var(--phone-bg);
  border-radius: 28px;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  flex-direction: column;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.chat-avatar { flex-shrink: 0; }
.chat-header-info { display: flex; flex-direction: column; gap: 2px; }
.chat-name {
  color: white;
  font-size: 0.8rem;
  font-weight: 500;
}
.chat-status {
  color: #5ED4B8;
  font-size: 0.68rem;
  display: flex;
  align-items: center;
  gap: 5px;
}
.online-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #5ED4B8;
}

.chat-messages {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}
.msg { display: flex; flex-direction: column; }
.msg.customer { align-items: flex-end; }
.msg.bot { align-items: flex-start; }

.bubble {
  max-width: 200px;
  padding: 9px 12px;
  border-radius: 16px;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #1A1A2E;
}
.msg.customer .bubble {
  background: #DCF8C6;
  border-bottom-right-radius: 4px;
}
.msg.bot .bubble {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.95);
  border-bottom-left-radius: 4px;
}
.msg-time {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.35);
  margin-top: 3px;
  padding: 0 4px;
}

/* confirmation bubble */
.msg.bot .bubble .confirmation {
  background: rgba(10, 174, 143, 0.25);
  border: 1px solid rgba(10, 174, 143, 0.4);
  border-radius: 10px;
  padding: 8px 10px;
  margin-top: 4px;
}
.conf-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #5ED4B8;
  margin-bottom: 4px;
}
.conf-detail {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
}

.typing-indicator {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.04);
  border-top: 1px solid rgba(255,255,255,0.05);
}
.typing-dots {
  display: flex;
  gap: 3px;
}
.typing-dots span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  animation: typing-bounce 1.2s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-4px); }
}
.typing-indicator span {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.4);
}

/* ---- FEATURES ---- */
.features {
  padding: 100px 0;
  background: var(--white);
}
.features-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.section-header {
  margin-bottom: 64px;
}
.section-header h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--fg);
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 600px;
}
.section-sub {
  margin-top: 16px;
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 480px;
}
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}
.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(26,26,46,0.08);
}
.feature-primary {
  background: var(--coral-light);
  border-color: rgba(255,107,53,0.2);
}
.feature-icon {
  margin-bottom: 20px;
}
.feature-card h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--fg);
  margin-bottom: 12px;
}
.feature-card p {
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}
.feature-pricing {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.fp-setup {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fg);
}
.fp-month {
  font-size: 0.75rem;
  color: var(--fg-muted);
}

/* ---- HOW IT WORKS ---- */
.how-it-works {
  padding: 100px 0;
  background: var(--bg-alt);
}
.how-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 32px;
}
.step:first-child { padding-left: 0; }
.step:last-child { padding-right: 0; }
.step-num {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 3.5rem;
  color: rgba(255,107,53,0.15);
  line-height: 1;
}
.step-content h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--fg);
  margin-bottom: 10px;
}
.step-content p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.7;
}
.step-connector {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  margin-top: 28px;
  flex-shrink: 0;
  opacity: 0.4;
}

/* ---- RESULTS ---- */
.results {
  padding: 100px 0;
  background: var(--fg);
  color: white;
}
.results-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.results-headline h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: white;
  letter-spacing: -0.02em;
  margin-bottom: 56px;
}
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.result-item { display: flex; flex-direction: column; gap: 16px; }
.result-stat {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(3rem, 5vw, 4.5rem);
  color: var(--accent);
  line-height: 1;
}
.result-text {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  max-width: 280px;
}

/* ---- CLOSING ---- */
.closing {
  padding: 120px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.closing-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.closing-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.closing-content h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--fg);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 24px;
}
.closing-content p {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.75;
}

/* ---- FOOTER ---- */
.footer {
  padding: 40px 0;
  background: var(--fg);
  color: rgba(255,255,255,0.5);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: white;
}
.footer-tagline {
  font-size: 0.85rem;
  flex: 1;
  color: rgba(255,255,255,0.4);
}
.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }
  .hero-left { align-items: center; }
  .hero-sub { max-width: 100%; }
  .hero-proof { justify-content: center; }
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
  .results-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .result-text { max-width: 100%; }
  .steps {
    flex-direction: column;
    gap: 40px;
  }
  .step-connector { display: none; }
}

@media (max-width: 600px) {
  .hero { padding: 60px 0 40px; }
  .hero-headline { font-size: 2.4rem; }
  .features-grid { grid-template-columns: 1fr; }
  .phone-frame { width: 240px; }
  .phone-screen { min-height: 360px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ---- SCROLL REVEAL ANIMATION ---- */
@media (prefers-reduced-motion: no-preference) {
  .feature-card, .step, .result-item {
    opacity: 0;
    transform: translateY(24px);
    animation: fade-up 0.6s ease forwards;
  }
  .feature-card:nth-child(2) { animation-delay: 0.1s; }
  .feature-card:nth-child(3) { animation-delay: 0.2s; }
  .feature-card:nth-child(4) { animation-delay: 0.3s; }
  .step:nth-child(1) { animation-delay: 0.1s; }
  .step:nth-child(3) { animation-delay: 0.2s; }
  .step:nth-child(5) { animation-delay: 0.3s; }
  .result-item:nth-child(2) { animation-delay: 0.1s; }
  .result-item:nth-child(3) { animation-delay: 0.2s; }
  @keyframes fade-up {
    to { opacity: 1; transform: translateY(0); }
  }
}