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

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #1a1a2e;
  --accent: #f59e0b;
  --dark: #0f0f1a;
  --dark-card: #1a1a2e;
  --light: #ffffff;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --text: #111827;
  --text-light: #6b7280;
  --success: #10b981;
  --danger: #ef4444;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

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

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--light);
}
.btn-primary:hover {
  background: var(--primary-dark);
  text-decoration: none;
}

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

.btn-paypal {
  background: #0070ba;
  color: var(--light);
  padding: 14px 28px;
  font-size: 16px;
}
.btn-paypal:hover {
  background: #005ea6;
  text-decoration: none;
}

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

/* Nav */
.nav {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
  z-index: 100;
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}
.logo {
  font-weight: 800;
  font-size: 18px;
  color: var(--secondary);
}
.nav-link {
  color: var(--gray-600);
  font-weight: 500;
  font-size: 15px;
}
.nav-link:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero {
  padding: 80px 0 100px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  text-align: center;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  margin: 16px 0 24px;
  color: var(--secondary);
}
.hero-sub {
  font-size: 20px;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto 40px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  background: var(--primary);
  color: var(--light);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Sections */
.section { padding: 80px 0; }
.section-dark { background: var(--secondary); color: var(--light); }
.section-dark .section-label { color: var(--accent); }
.section-dark h2 { color: var(--light); }
.section-demo { background: #f8fafc; }

.section-label {
  display: block;
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.section h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--secondary);
  line-height: 1.2;
}

.section-intro {
  font-size: 18px;
  color: var(--gray-600);
  max-width: 700px;
  margin-bottom: 48px;
}
.section-dark .section-intro { color: var(--gray-300); }

/* Problem Grid */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.problem-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 32px;
}
.problem-icon { font-size: 40px; margin-bottom: 16px; }
.problem-card h3 { font-size: 20px; margin-bottom: 12px; color: var(--light); }
.problem-card p { color: var(--gray-300); font-size: 15px; }

/* Solution Flow */
.solution-flow {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.flow-step {
  flex: 1;
  min-width: 200px;
  text-align: center;
  padding: 24px;
}
.flow-number {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--light);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 16px;
}
.flow-step h3 { font-size: 18px; margin-bottom: 8px; }
.flow-step p { font-size: 15px; color: var(--gray-500); }
.flow-arrow {
  font-size: 32px;
  color: var(--gray-300);
  padding-top: 24px;
}

/* Demo */
.demo-mockup {
  background: var(--secondary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 900px;
  margin: 0 auto;
}
.demo-header {
  background: #2d2d3d;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.demo-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ef4444;
}
.demo-dot:nth-child(2) { background: #f59e0b; }
.demo-dot:nth-child(3) { background: #22c55e; }
.demo-url {
  margin-left: 12px;
  color: var(--gray-400);
  font-size: 13px;
}
.demo-content {
  position: relative;
  aspect-ratio: 16/9;
  background: #111;
}
.demo-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.demo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
}
.demo-caption {
  text-align: center;
  margin-top: 20px;
  color: var(--gray-500);
  font-size: 14px;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.feature-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 28px;
}
.feature-icon { font-size: 32px; margin-bottom: 16px; }
.feature-card h3 { font-size: 17px; margin-bottom: 8px; color: var(--light); }
.feature-card p { font-size: 14px; color: var(--gray-300); }

/* Pricing */
.pricing-card {
  background: var(--light);
  border: 2px solid var(--gray-200);
  border-radius: 16px;
  padding: 48px;
  max-width: 500px;
  margin: 0 auto 32px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.pricing-header h3 { font-size: 24px; margin-bottom: 8px; color: var(--secondary); }
.pricing-header p { color: var(--gray-500); margin-bottom: 24px; }
.pricing-price { margin-bottom: 24px; }
.price-amount {
  display: block;
  font-size: 56px;
  font-weight: 800;
  color: var(--secondary);
}
.price-period { color: var(--gray-500); }
.pricing-includes {
  text-align: left;
  margin-bottom: 32px;
}
.pricing-includes h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: var(--gray-500); margin-bottom: 12px; }
.pricing-includes ul { list-style: none; }
.pricing-includes li { padding: 8px 0; border-bottom: 1px solid var(--gray-100); font-size: 15px; }
.pricing-guarantee {
  margin-top: 24px;
  padding: 16px;
  background: #f0fdf4;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: #166534;
}
.pricing-note { margin-top: 16px; font-size: 14px; color: var(--gray-500); }
.pricing-paypal {
  text-align: center;
  color: var(--gray-600);
}
.pricing-paypal p { margin-bottom: 12px; font-size: 14px; }

/* FAQ */
.faq-list { max-width: 700px; margin: 48px auto 0; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.1); }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  background: none;
  border: none;
  color: var(--light);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.faq-question:hover { color: var(--accent); }
.faq-arrow { transition: transform 0.2s; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer {
  display: none;
  padding-bottom: 20px;
  color: var(--gray-300);
  font-size: 15px;
  line-height: 1.7;
}
.faq-item.open .faq-answer { display: block; }

/* CTA Section */
.section-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--light);
  text-align: center;
}
.section-cta h2 { color: var(--light); font-size: clamp(28px, 4vw, 40px); }
.section-cta p { opacity: 0.9; font-size: 18px; margin-bottom: 32px; }
.section-cta .btn-outline {
  border-color: var(--light);
  color: var(--light);
}
.section-cta .btn-outline:hover {
  background: var(--light);
  color: var(--primary);
}

/* Footer */
.footer {
  background: var(--dark);
  color: var(--gray-500);
  padding: 32px 0;
  text-align: center;
  font-size: 14px;
}
.footer p { margin-bottom: 8px; }
.footer a { color: var(--gray-400); }

/* Chat Widget */
.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 360px;
  background: var(--light);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  z-index: 1000;
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--gray-200);
}
.chat-widget.open { display: flex; }

.chat-header {
  background: var(--secondary);
  color: var(--light);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.chat-title { font-weight: 700; font-size: 15px; flex: 1; }
.chat-status { font-size: 12px; display: flex; align-items: center; gap: 6px; }
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}
.chat-close {
  background: none;
  border: none;
  color: var(--gray-400);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}
.chat-close:hover { color: var(--light); }

.chat-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 450px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-message {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
}
.chat-message.bot {
  background: var(--gray-100);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chat-message.user {
  background: var(--primary);
  color: var(--light);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.chat-message p { margin: 0; }
.chat-message+.chat-message.bot { margin-top: -8px; }

.chat-input-area {
  display: flex;
  gap: 8px;
  padding: 16px 20px;
  border-top: 1px solid var(--gray-200);
}
.chat-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: 24px;
  font-size: 14px;
  outline: none;
}
.chat-input:focus { border-color: var(--primary); }
.chat-send {
  background: var(--primary);
  color: var(--light);
  border: none;
  padding: 12px 20px;
  border-radius: 24px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
}
.chat-send:hover { background: var(--primary-dark); }

.chat-footer {
  padding: 8px 20px;
  text-align: center;
  font-size: 11px;
  color: var(--gray-400);
  border-top: 1px solid var(--gray-100);
}

/* Floating chat button */
.chat-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 64px;
  height: 64px;
  background: var(--primary);
  color: var(--light);
  border-radius: 50%;
  border: none;
  box-shadow: 0 4px 20px rgba(37,99,235,0.4);
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.chat-fab:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(37,99,235,0.5);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-inner { gap: 16px; }
  .nav-link { display: none; }
  .hero { padding: 60px 0 80px; }
  .hero h1 { font-size: 28px; }
  .section { padding: 60px 0; }
  .pricing-card { padding: 32px 24px; }
  .chat-widget {
    width: calc(100vw - 32px);
    right: 16px;
    bottom: 16px;
  }
}
