/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #DBEAFE;
  --accent: #10B981;
  --text: #1F2937;
  --text-secondary: #6B7280;
  --bg: #FFFFFF;
  --bg-alt: #F9FAFB;
  --border: #E5E7EB;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-sm: 8px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-family: inherit;
  text-align: center;
}

.btn-sm { padding: 8px 20px; font-size: 14px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(37,99,235,0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--bg-alt);
  border-color: #D1D5DB;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary-light);
}

.btn-white {
  background: white;
  color: var(--primary);
}
.btn-white:hover {
  background: #F0F4FF;
  box-shadow: 0 4px 12px rgba(255,255,255,0.3);
}

/* ===== BADGE ===== */
.badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

.navbar.scrolled {
  box-shadow: var(--shadow);
}

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

.logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-icon {
  color: var(--primary);
  font-size: 22px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== HERO ===== */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(180deg, #F0F6FF 0%, var(--bg) 100%);
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--text);
}

.highlight {
  color: var(--primary);
}

.hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 480px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
}

.hero-proof {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.proof-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.proof-icon {
  color: var(--accent);
  font-weight: 700;
}

/* ===== PAIN POINTS ===== */
.pain-points {
  padding: 80px 0;
  background: var(--bg);
}

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

.pain-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pain-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.pain-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.pain-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
}

.pain-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== SOLUTION ===== */
.solution {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg) 0%, #F0F6FF 100%);
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.solution-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow 0.2s;
}

.solution-item:hover {
  box-shadow: var(--shadow-md);
}

.solution-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.solution-item h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.solution-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.solution-item code {
  background: var(--primary-light);
  color: var(--primary);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}

/* ===== PHONE MOCKUP ===== */
.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 300px;
  background: white;
  border-radius: 32px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,0.05);
  overflow: hidden;
}

.phone-screen {
  padding: 0;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--primary);
  color: white;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.chat-info strong {
  display: block;
  font-size: 15px;
}

.chat-info small {
  opacity: 0.8;
  font-size: 12px;
}

.chat-body {
  padding: 20px;
  background: #ECE5DD;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 340px;
}

.msg {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  max-width: 85%;
  word-wrap: break-word;
}

.msg-user {
  background: #DCF8C6;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.msg-bot {
  background: white;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 1px rgba(0,0,0,0.06);
}

.msg-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  display: block;
  margin-bottom: 2px;
}

/* Hero multi-screen */
.hero-screen {
  display: none;
  flex-direction: column;
  gap: 12px;
}
.hero-screen.active {
  display: flex;
}

/* Recap card highlight */
.msg-recap {
  border-left: 3px solid var(--accent);
  background: #f0fdf4;
}

/* Message slide-in animation */
.msg-animate {
  opacity: 0;
  transform: translateY(12px);
  animation: msgSlideIn 0.4s ease forwards;
}
.msg-animate.delay-1 { animation-delay: 0.6s; }
.msg-animate.delay-2 { animation-delay: 1.8s; }
.msg-animate.delay-3 { animation-delay: 2.4s; }

@keyframes msgSlideIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Screen dots */
.screen-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 14px 0 18px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #D1D5DB;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.dot.active {
  background: var(--primary);
  transform: scale(1.3);
}

/* Screen fade transition */
.hero-screen {
  animation: screenFade 0.4s ease;
}
@keyframes screenFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ===== SECTION HEADER ===== */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.2;
}

.section-header p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
}

/* ===== FEATURES ===== */
.features {
  padding: 100px 0;
}

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

.feature-card {
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== HOW ===== */
.how {
  padding: 100px 0;
  background: var(--bg-alt);
}

.steps {
  display: flex;
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
}

.step {
  flex: 1;
  background: white;
  padding: 36px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  position: relative;
}

.step-num {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 20px;
}

.step-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-content code {
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--primary);
}

/* ===== PRICING ===== */
.pricing {
  padding: 100px 0;
}

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

.pricing-card {
  padding: 36px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: white;
  text-align: center;
  position: relative;
}

.pricing-popular {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 100px;
}

.pricing-badge-soon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #F59E0B;
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 100px;
}

.pricing-soon {
  opacity: 0.7;
  border-style: dashed;
}

.pricing-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 40px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.pricing-price span {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
}

.pricing-period {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.pricing-features {
  text-align: left;
  margin-bottom: 28px;
}

.pricing-features li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child {
  border-bottom: none;
}

/* ===== FAQ ===== */
.faq {
  padding: 100px 0;
  background: var(--bg-alt);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-item summary {
  padding: 18px 24px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  user-select: none;
  list-style: none;
}

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

.faq-item summary::after {
  content: '+';
  float: right;
  font-size: 20px;
  color: var(--text-secondary);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 24px 18px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== CTA ===== */
.cta {
  padding: 100px 0;
}

.cta-box {
  background: linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
  border-radius: 20px;
  padding: 64px 40px;
  text-align: center;
  color: white;
}

.cta-box h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.cta-box p {
  font-size: 17px;
  opacity: 0.9;
  margin-bottom: 32px;
}

.cta-actions {
  margin-bottom: 16px;
}

.cta-note {
  font-size: 13px;
  opacity: 0.7;
}

/* ===== FOOTER ===== */
.footer {
  padding: 60px 0 32px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 12px;
  max-width: 280px;
}

.footer-links h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-content h1 { font-size: 36px; }
  .hero-desc { margin: 0 auto 32px; }
  .hero-actions { justify-content: center; }
  .hero-proof { justify-content: center; }

  .pain-grid { grid-template-columns: repeat(2, 1fr); }
  .solution-grid { grid-template-columns: 1fr; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }

  .steps { flex-direction: column; }

  .pricing-grid { grid-template-columns: repeat(2, 1fr); max-width: 600px; margin: 0 auto; }
  .pricing-popular { transform: none; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: white;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    gap: 12px;
  }
  .mobile-toggle { display: flex; }
  .navbar .btn-sm { display: none; }

  .hero { padding: 120px 0 60px; }
  .hero-content h1 { font-size: 30px; }
  .hero-desc { font-size: 16px; }
  .hero-actions { flex-direction: column; }

  .pain-grid { grid-template-columns: 1fr; }
  .pain-card { padding: 20px; }

  .solution-grid { grid-template-columns: 1fr; }
  .solution-item { padding: 20px; }

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

  .section-header h2 { font-size: 28px; }

  .cta-box { padding: 48px 24px; }
  .cta-box h2 { font-size: 28px; }

  .phone-mockup { width: 260px; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate.visible {
  opacity: 1;
  transform: translateY(0);
}
