/* ========================================
   WhatsAppCRM Mini — Landing Page Styles
   Mobile-first, conversion-focused
   ======================================== */

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

:root {
  --green: #25D366;
  --green-dark: #1da851;
  --green-glow: rgba(37, 211, 102, 0.3);
  --dark: #0f172a;
  --dark-mid: #1e293b;
  --dark-light: #334155;
  --gray-bg: #f8fafc;
  --gray-border: #e2e8f0;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --white: #ffffff;
  --red: #ef4444;
  --blue: #3b82f6;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --transition: 0.2s ease;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
code { font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace; font-size: 0.9em; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }

/* ========== Typography ========== */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
.highlight { color: var(--red); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 28px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 4px 16px var(--green-glow);
}
.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--green-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text-light);
  border: 1px solid var(--dark-light);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.05);
  color: var(--white);
}

.btn-lg { padding: 16px 36px; font-size: 1.1rem; }
.btn-full { width: 100%; }

/* ========== Navigation ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 4px;
}
.logo span { color: var(--green); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-links .nav-cta {
  background: var(--green);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 600;
}
.nav-links .nav-cta:hover { background: var(--green-dark); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  gap: 16px;
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.mobile-menu a {
  color: var(--text-light);
  font-size: 1rem;
  font-weight: 500;
}
.mobile-menu .nav-cta {
  background: var(--green);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 50px;
  text-align: center;
  font-weight: 600;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu.open { display: flex; }
}

/* ========== Hero ========== */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-mid) 50%, #0f2a1e 100%);
  color: var(--white);
  padding: 120px 24px 80px;
  text-align: center;
}

.hero-inner { max-width: 780px; margin: 0 auto; }

.hero-badge {
  display: inline-block;
  background: rgba(37, 211, 102, 0.12);
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid rgba(37, 211, 102, 0.2);
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 36px;
}
.hero-sub strong { color: var(--white); }

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-proof {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}
.proof-item {
  font-size: 0.9rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}
.proof-item strong { color: var(--white); }

/* ========== Sections ========== */
.section { padding: 80px 0; }
.section-dark { background: var(--dark); color: var(--white); }
.section-gray { background: var(--gray-bg); }

.section-header {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 48px;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  margin-bottom: 12px;
}
.section-label-light { color: var(--green); }

.section-header h2 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}
.section-desc.light { color: var(--text-light); }

/* ========== Pain Grid ========== */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.pain-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.pain-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.pain-icon { font-size: 2rem; margin-bottom: 12px; }
.pain-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.pain-card p { font-size: 0.95rem; color: var(--text-muted); }

.pain-stat {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: center;
  background: linear-gradient(135deg, #fef2f2, #fff7ed);
  border: 1px solid #fecaca;
  border-radius: var(--radius-lg);
  padding: 28px 36px;
}
.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
}
.stat-text {
  font-size: 1rem;
  color: var(--text);
  text-align: left;
}
.stat-text small { color: var(--text-muted); font-size: 0.85rem; }

@media (max-width: 640px) {
  .pain-grid { grid-template-columns: 1fr; }
  .pain-stat { flex-direction: column; text-align: center; }
  .stat-text { text-align: center; }
}

/* ========== Features Grid ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
}
.feature-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(37, 211, 102, 0.3);
  transform: translateY(-2px);
}

.feature-icon { font-size: 2rem; margin-bottom: 12px; }
.feature-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.5; }

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

/* ========== Steps ========== */
.steps {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  position: relative;
  padding-bottom: 40px;
}
.step:last-child { padding-bottom: 0; }

.step::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: 0;
  width: 2px;
  background: var(--gray-border);
}
.step:last-child::before { display: none; }

.step-number {
  min-width: 48px;
  height: 48px;
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  font-size: 1.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.step-content h3 { font-size: 1.1rem; margin-bottom: 4px; margin-top: 4px; }
.step-content p { font-size: 0.95rem; color: var(--text-muted); }
.step-content code {
  background: var(--gray-bg);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
}

/* ========== Demo ========== */
.demo-wrapper { margin-bottom: 32px; }

.demo-browser {
  background: var(--dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(37, 211, 102, 0.08);
  border: 1px solid var(--gray-border);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--dark-mid);
  border-bottom: 1px solid var(--dark-light);
}

.browser-dots { display: flex; gap: 6px; }
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.browser-url {
  flex: 1;
  background: rgba(255,255,255,0.06);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--text-light);
  font-family: monospace;
}

.demo-img { width: 100%; display: block; }

.demo-highlights {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.demo-hl {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.demo-hl strong { color: var(--text); }

/* ========== ROI ========== */
.roi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.roi-card {
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  background: var(--white);
  position: relative;
}
.roi-after {
  border-color: var(--green);
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
}

.roi-badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--green);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
}

.roi-card h4 { font-size: 1.1rem; margin-bottom: 16px; }
.roi-card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.roi-card li {
  font-size: 0.95rem;
  color: var(--text-muted);
  padding-left: 0;
}
.roi-after li { color: var(--text); }

.roi-math {
  text-align: center;
  background: linear-gradient(135deg, #fef2f2, #fff7ed);
  border: 1px solid #fecaca;
  border-radius: var(--radius-lg);
  padding: 28px;
  font-size: 1.05rem;
}

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

/* ========== Tech Section ========== */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.tech-item {
  text-align: center;
  padding: 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
}
.tech-item code {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 6px;
}
.tech-item span {
  font-size: 0.85rem;
  color: var(--text-light);
}

.tech-code {
  max-width: 640px;
  margin: 0 auto;
  background: #0a0f1a;
  border: 1px solid var(--dark-light);
  border-radius: var(--radius);
  overflow: hidden;
}
.code-header {
  padding: 10px 16px;
  font-size: 0.8rem;
  color: var(--text-light);
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--dark-light);
}
.tech-code pre {
  padding: 20px;
  overflow-x: auto;
}
.tech-code code {
  color: var(--green);
  font-size: 0.9rem;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ========== CTA / Form ========== */
.section-cta {
  background: linear-gradient(135deg, var(--dark) 0%, #0f2a1e 100%);
  color: var(--white);
}
.section-cta .section-desc { color: var(--text-light); }

.form-wrapper {
  max-width: 480px;
  margin: 0 auto;
}

.capture-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-lg);
}

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.optional { font-weight: 400; color: var(--text-muted); font-size: 0.85rem; }

.form-group input {
  padding: 14px 16px;
  border: 1px solid var(--gray-border);
  border-radius: 10px;
  font-size: 1rem;
  color: var(--text);
  background: var(--gray-bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  font-family: inherit;
}
.form-group input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-glow);
}
.form-group input::placeholder { color: var(--text-light); }

.form-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Form success */
.form-success {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.success-icon { font-size: 3rem; margin-bottom: 16px; }
.form-success h3 { font-size: 1.4rem; color: var(--text); margin-bottom: 8px; }
.form-success p { color: var(--text-muted); font-size: 1rem; }

/* ========== FAQ ========== */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.faq-item summary {
  padding: 18px 24px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition);
}
.faq-item summary:hover { background: var(--gray-bg); }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform var(--transition);
}
.faq-item[open] summary::after {
  content: '−';
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item p {
  padding: 0 24px 18px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.faq-item code {
  background: var(--gray-bg);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ========== Footer ========== */
.footer {
  background: var(--dark);
  color: var(--text-light);
  padding: 48px 0 24px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 24px;
}

.footer-brand p {
  font-size: 0.9rem;
  margin-top: 8px;
  color: var(--text-light);
}
.footer-brand a { color: var(--green); }
.footer-brand a:hover { text-decoration: underline; }

.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 0.9rem;
  color: var(--text-light);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .footer-inner { flex-direction: column; gap: 24px; }
  .footer-links { flex-wrap: wrap; gap: 16px; }
}

/* ========== Animations ========== */
@media (prefers-reduced-motion: no-preference) {
  .pain-card, .feature-card, .step, .faq-item, .roi-card, .tech-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.5s ease forwards;
  }
  
  .pain-card:nth-child(1) { animation-delay: 0.1s; }
  .pain-card:nth-child(2) { animation-delay: 0.2s; }
  .pain-card:nth-child(3) { animation-delay: 0.3s; }
  .pain-card:nth-child(4) { animation-delay: 0.4s; }
  
  .feature-card:nth-child(1) { animation-delay: 0.1s; }
  .feature-card:nth-child(2) { animation-delay: 0.15s; }
  .feature-card:nth-child(3) { animation-delay: 0.2s; }
  .feature-card:nth-child(4) { animation-delay: 0.25s; }
  .feature-card:nth-child(5) { animation-delay: 0.3s; }
  .feature-card:nth-child(6) { animation-delay: 0.35s; }
}

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

/* ========== Print ========== */
@media print {
  .nav, .hero-ctas, .section-cta, .btn { display: none !important; }
  body { font-size: 12pt; color: #000; }
  .section { padding: 24px 0; }
}
