/* ===== PresenceCraft — Design System ===== */
:root {
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-soft: #eff6ff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 6px 16px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.10);
  --shadow-accent: 0 10px 24px rgba(37, 99, 235, 0.35);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: min(1140px, 100% - 3rem);
  margin-inline: auto;
}

section[id] { scroll-margin-top: 84px; }

/* ===== Scroll reveal (JS toggles .is-visible) ===== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

.stagger > .reveal:nth-child(2) { transition-delay: 0.1s; }
.stagger > .reveal:nth-child(3) { transition-delay: 0.2s; }
.stagger > .reveal:nth-child(4) { transition-delay: 0.3s; }

/* ===== Typography ===== */
.text-accent { color: var(--accent); }

.section { padding: 6.5rem 0; }
.section-soft { background: var(--bg-soft); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }
.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: 0.9rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn:active { transform: translateY(0) scale(0.99); }

.btn-lg { padding: 0.95rem 2rem; font-size: 1.02rem; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover { background: var(--accent-dark); }

.btn-outline {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-light { background: #fff; color: var(--accent); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2); }
.btn-light:hover { color: var(--accent-dark); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.2); }

.btn-block { width: 100%; }

/* ===== Navigation ===== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
}
.logo-accent { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a:not(.btn) {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.2s ease;
}
.nav-links a:not(.btn):hover { color: var(--accent); }
.nav-cta { padding: 0.6rem 1.3rem; font-size: 0.9rem; }

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-btn span {
  width: 24px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-btn.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-btn.active span:nth-child(2) { opacity: 0; }
.menu-btn.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 11rem 0 6rem;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(60rem 30rem at 50% -10%, var(--accent-soft), transparent 60%),
    var(--bg);
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.hero-glow-a { width: 420px; height: 420px; background: rgba(37, 99, 235, 0.14); top: -120px; left: -120px; }
.hero-glow-b { width: 380px; height: 380px; background: rgba(37, 99, 235, 0.10); bottom: -120px; right: -100px; }

.hero-inner { position: relative; z-index: 1; max-width: 820px; }

.hero-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.4rem, 6.5vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 2.2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.2rem;
}

.hero-trust {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.hero-trust svg { color: var(--accent); }

/* ===== Cards / Grid ===== */
.grid { display: grid; gap: 1.5rem; }

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 99, 235, 0.25);
}

.card-title { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 0.5rem; }
.card-text { font-size: 0.95rem; color: var(--muted); }

/* ===== Features ===== */
.features-grid { grid-template-columns: repeat(4, 1fr); }

.feature-card { padding: 2rem 1.6rem; }
.feature-card .card-text { margin-top: 0.4rem; }

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1.25rem;
  transition: transform 0.3s ease;
}
.feature-card:hover .icon-badge { transform: scale(1.1) rotate(-4deg); }

/* ===== Pricing ===== */
.pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }

.pricing-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  align-items: stretch;
  max-width: 880px;
  margin-inline: auto;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2.2rem 2rem;
  gap: 0.25rem;
}
.pricing-card .btn { margin-top: auto; }

.pricing-popular {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-10px);
}
.pricing-popular:hover { transform: translateY(-16px); }

.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: var(--shadow-accent);
}

.pricing-name { font-size: 1.05rem; font-weight: 700; color: var(--muted); }
.pricing-price { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; margin-top: 0.4rem; }
.pricing-price span { color: var(--accent); }
.pricing-note { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.4rem; }

.pricing-note-small {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 1.6rem;
}

.pricing-list { display: flex; flex-direction: column; gap: 0.8rem; margin-bottom: 2rem; }
.pricing-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--ink);
}
.pricing-list svg {
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 50%;
  padding: 2px;
  width: 20px;
  height: 20px;
}

/* ===== How it works ===== */
.steps-grid { grid-template-columns: repeat(4, 1fr); }

.step { text-align: center; padding: 0 0.5rem; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-accent);
  transition: transform 0.3s ease;
}
.step:hover .step-num { transform: scale(1.1) rotate(6deg); }
.step .card-title { margin-bottom: 0.4rem; }

/* ===== About ===== */
.about-card {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2.2rem;
  padding: 2.6rem;
}
.about-card:hover { transform: translateY(-6px); }

.avatar {
  flex-shrink: 0;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-accent);
  border: 4px solid #fff;
}

.about-name { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.01em; }
.about-role { font-size: 0.9rem; font-weight: 600; color: var(--accent); margin-bottom: 1rem; }
.about-bio { margin-bottom: 1.4rem; }

.skill-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.skill-tag {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.skill-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* ===== Testimonials ===== */
.quote-card { padding: 2rem 1.8rem; }
.quote-mark { color: var(--accent); margin-bottom: 1.2rem; opacity: 0.85; }
.quote-text { font-size: 1.05rem; font-weight: 500; color: var(--ink); margin-bottom: 1.5rem; }
.quote-author { font-size: 0.88rem; color: var(--muted); font-weight: 600; }

/* ===== CTA / Contact ===== */
.section-cta { padding-top: 3rem; }

.cta-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 5rem 2rem;
  border-radius: 28px;
  background: linear-gradient(135deg, #1d4ed8, #2563eb 55%, #3b82f6);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.cta-card .hero-glow-a { background: rgba(255, 255, 255, 0.12); }
.cta-card .hero-glow-b { background: rgba(255, 255, 255, 0.08); }

.cta-title {
  position: relative;
  z-index: 1;
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.cta-sub {
  position: relative;
  z-index: 1;
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 460px;
  margin: 0 auto 2.2rem;
}
.cta-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-form {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 3rem auto 0;
  background: #fff;
  color: var(--ink);
  text-align: left;
  padding: 2.2rem;
  border-radius: 24px;
  box-shadow: var(--shadow-md);
}
.form-title {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 1.4rem;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-field-full { grid-column: 1 / -1; }
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.form-field textarea { resize: vertical; min-height: 90px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.form-submit { width: 100%; margin-top: 1.2rem; }
.form-status {
  min-height: 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 0.8rem;
  text-align: center;
}
.form-status.success { color: #16a34a; }
.form-status.error { color: #dc2626; }

/* ===== Footer ===== */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 2.2rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-text { font-size: 0.9rem; color: var(--muted); }
.footer-domain { font-size: 0.9rem; font-weight: 700; color: var(--accent); }
.footer-domain:hover { text-decoration: underline; }

.socials { display: flex; gap: 0.6rem; }
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: all 0.2s ease;
}
.social-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-3px);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
}

@media (max-width: 920px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 1rem 1.5rem 1.5rem;
    transform: translateY(-16px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-links a:not(.btn) { padding: 0.9rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 1rem; justify-content: center; }
  .menu-btn { display: flex; }
}

@media (max-width: 640px) {
  .section { padding: 4.5rem 0; }
  .hero { padding: 8.5rem 0 4.5rem; }

  .features-grid, .pricing-grid { grid-template-columns: 1fr; }
  .pricing-grid-2 { grid-template-columns: 1fr; max-width: 100%; }
  .steps-grid { grid-template-columns: 1fr; }

  .pricing-popular { transform: none; }
  .pricing-popular:hover { transform: translateY(-6px); }

  .about-card { flex-direction: column; text-align: center; padding: 2rem 1.5rem; }
  .skill-tags { justify-content: center; }

  .footer-inner { justify-content: center; text-align: center; }

  .form-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 1.6rem; }

  .hero-actions, .cta-actions { flex-direction: column; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
}

/* ===== Pallavi Chatbot ===== */
.chat-launcher {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 300;
  width: 66px;
  height: 66px;
  padding: 5px;
  border: none;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.28);
  cursor: pointer;
  transition: transform 0.25s ease;
}
.chat-launcher:hover { transform: scale(1.1) rotate(4deg); }
.chat-launcher img, .chat-launcher svg { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }

.launcher-pulse {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  animation: launcher-pulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes launcher-pulse {
  0% { transform: scale(0.85); opacity: 0.8; }
  100% { transform: scale(1.35); opacity: 0; }
}

.launcher-label {
  position: fixed;
  right: 6rem;
  bottom: 2.2rem;
  z-index: 299;
  background: var(--ink);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.6rem 1rem;
  border-radius: 14px 14px 4px 14px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  max-width: 230px;
}
.launcher-label.show { opacity: 1; transform: none; }

.chat-window {
  position: fixed;
  right: 1.5rem;
  bottom: 6.5rem;
  z-index: 310;
  width: min(380px, calc(100vw - 2rem));
  height: min(560px, calc(100vh - 8.5rem));
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
  overflow: hidden;
  transform-origin: bottom right;
  opacity: 0;
  transform: translateY(24px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.chat-window.open { opacity: 1; transform: none; pointer-events: auto; }

.chat-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1.1rem;
  background: linear-gradient(135deg, #1d4ed8, #2563eb 55%, #3b82f6);
  color: #fff;
}
.chat-avatar-wrap { position: relative; }
.chat-avatar-wrap img, .chat-avatar-wrap svg { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: #fff; }
.chat-status-dot {
  position: absolute;
  right: 1px;
  bottom: 2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #fff;
}
.chat-header-info { flex: 1; line-height: 1.25; }
.chat-header-info strong { display: block; font-size: 1rem; font-weight: 800; }
.chat-header-info span { font-size: 0.75rem; opacity: 0.85; }
.chat-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.chat-close:hover { opacity: 1; transform: scale(1.15); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: var(--bg-soft);
}
.chat-messages::-webkit-scrollbar { width: 6px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

.msg {
  max-width: 84%;
  padding: 0.7rem 0.95rem;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.55;
  white-space: pre-line;
  animation: msg-in 0.25s ease;
}
@keyframes msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.msg a { color: var(--accent); text-decoration: underline; word-break: break-all; }
.msg code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.85em;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 0.3em;
}
.msg .bullet { color: var(--accent); font-weight: 700; }

.msg.typing {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.85rem 1rem;
}
.msg.typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  animation: typing-bounce 1.2s infinite;
}
.msg.typing span:nth-child(2) { animation-delay: 0.15s; }
.msg.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

.chat-quick {
  display: flex;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-top: 1px solid var(--line);
  background: #fff;
  overflow-x: auto;
}
.chat-quick::-webkit-scrollbar { height: 0; }
.chat-quick button {
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.chat-quick button:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.chat-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.8rem 1.1rem;
  border-top: 1px solid var(--line);
  background: #fff;
}
.chat-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.6rem 1rem;
  font-family: var(--font);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s ease;
}
.chat-form input:focus { border-color: var(--accent); }
.chat-form button {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.chat-form button:hover { background: var(--accent-dark); transform: scale(1.06); }

@media (max-width: 640px) {
  .chat-window {
    right: 1rem;
    bottom: 6rem;
    width: calc(100vw - 2rem);
    height: calc(100vh - 7.5rem);
  }
  .chat-launcher { right: 1rem; bottom: 1rem; }
  .launcher-label { right: 5.2rem; bottom: 1.7rem; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover, .btn:hover, .feature-card:hover .icon-badge,
  .step:hover .step-num, .social-link:hover { transform: none; }
}