/* ==========================================================================
   Funnel — Landing Pages, Lead Forms, Dashboard
   ========================================================================== */

/* ---------- Landing Page ---------- */
.funnel-landing {
  background: var(--bg-body);
}
.funnel-landing .hero-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  position: relative;
  padding: var(--section-py-lg) 0;
}
.funnel-landing .hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 40%, rgba(0, 104, 57, 0.1), transparent 60%);
  pointer-events: none;
}
.funnel-landing .hero-section h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.funnel-landing .hero-section .tagline {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 20px 0 32px;
  line-height: 1.6;
}

/* Features grid */
.funnel-features {
  padding: var(--section-py) 0;
}
.funnel-features .feature-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
  transition: all var(--transition-base);
}
.funnel-features .feature-card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.funnel-features .feature-card .icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 168, 90, 0.1);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}
.funnel-features .feature-card .icon i {
  font-size: 1.5rem;
  color: var(--brand-light);
}
.funnel-features .feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.funnel-features .feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

/* Use cases */
.funnel-use-cases .use-case {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
}
.funnel-use-cases .use-case i {
  color: var(--brand-light);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.funnel-use-cases .use-case span {
  color: var(--text-secondary);
}

/* Tech stack badges */
.tech-stack-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tech-stack-badges .badge {
  padding: 6px 14px;
  background: var(--glass-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

/* ---------- Lead Capture Form ---------- */
.lead-form {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: sticky;
  top: 100px;
}
.lead-form h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.lead-form .lead-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.lead-form .form-group {
  margin-bottom: 16px;
}
.lead-form .form-control {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}
.lead-form .form-control:focus {
  border-color: var(--brand-light);
  box-shadow: 0 0 0 3px rgba(0, 168, 90, 0.15);
}
.lead-form .form-control::placeholder {
  color: var(--text-tertiary);
}
.lead-form .btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--gradient-brand);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 0 20px rgba(0, 168, 90, 0.3);
}
.lead-form .btn-submit:hover {
  box-shadow: var(--shadow-glow-strong);
  transform: translateY(-2px);
}
.lead-form .privacy-note {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  text-align: center;
  margin-top: 12px;
}

/* ---------- Thank You Page ---------- */
.thank-you-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--gradient-hero);
}
.thank-you-page .icon-success {
  width: 80px;
  height: 80px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 168, 90, 0.1);
  border: 2px solid var(--brand-light);
  border-radius: 50%;
  margin-bottom: 24px;
}
.thank-you-page .icon-success i {
  font-size: 2.5rem;
  color: var(--brand-light);
}
.thank-you-page h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.thank-you-page p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 32px;
}

/* ---------- Products Overview ---------- */
.funnel-overview .product-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}
.funnel-overview .product-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.funnel-overview .product-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.funnel-overview .product-card .tagline {
  color: var(--accent-teal);
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.funnel-overview .product-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  flex: 1;
}
.funnel-overview .product-card .cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-light);
  font-weight: 600;
  margin-top: auto;
}
.funnel-overview .product-card:hover .cta-link {
  color: var(--accent-teal);
}

/* ---------- Analytics Dashboard ---------- */
.dashboard {
  padding: var(--section-py) 0;
  background: var(--bg-body);
}
.dashboard .stat-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
}
.dashboard .stat-card .stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.dashboard .stat-card .stat-label {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 4px;
}
.dashboard .table-dark-custom {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.dashboard .table-dark-custom thead th {
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
}
.dashboard .table-dark-custom tbody td {
  padding: 12px 16px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.9rem;
}
.dashboard .table-dark-custom tbody tr:hover {
  background: var(--glass-bg-hover);
}
/* Lead status badges */
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}
.status-badge.new { background: rgba(99, 102, 241, 0.15); color: var(--accent-indigo); }
.status-badge.contacted { background: rgba(0, 168, 90, 0.15); color: var(--brand-light); }
.status-badge.qualified { background: rgba(245, 158, 11, 0.15); color: var(--accent-amber); }
.status-badge.converted { background: rgba(0, 212, 170, 0.15); color: var(--accent-teal); }
.status-badge.lost { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
