/* ============================================
   Leadmeteor — Custom Styles (Bootstrap 5 base)
   ============================================ */

/* --- Base --- */
:root {
  --bs-primary: #2563eb;
  --bs-primary-rgb: 37, 99, 235;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-light: #dbeafe;
  --brand-lighter: #eff6ff;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-mono { font-family: 'DM Mono', monospace; }

.letter-spaced { letter-spacing: 0.06em; }

.btn-primary {
  --bs-btn-bg: #2563eb;
  --bs-btn-border-color: #1d4ed8;
  --bs-btn-hover-bg: #1d4ed8;
  --bs-btn-hover-border-color: #1e40af;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}

.text-primary { color: #2563eb !important; }

.py-section { padding: 100px 0; }

/* --- Navbar --- */
.navbar {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.3s ease;
}
.navbar.scrolled {
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

/* --- Hero --- */
.hero-section {
  padding: 140px 0 80px;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #e2e8f0 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.5;
  pointer-events: none;
}

.text-gradient {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.badge-pill {
  padding: 6px 14px 6px 10px;
  background: var(--brand-lighter);
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  border-radius: 100px;
  border: 1px solid var(--brand-light);
}

.avatar-stack { display: flex; }
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  border: 2px solid #fff;
  margin-right: -8px;
}

/* Browser mockup */
.browser-mockup {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  overflow: hidden;
}
.browser-toolbar {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  background: #f8fafc;
}
.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e2e8f0;
  display: inline-block;
}
.browser-address {
  font-size: 12px;
  font-family: 'DM Mono', monospace;
  color: #94a3b8;
  background: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #f1f5f9;
}
.browser-body {
  padding: 20px;
  background: #f8fafc;
}

/* Sidepanel mockup in hero */
.sidepanel-mockup {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}
.sidepanel-header {
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
}
.micro-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.micro-tag {
  font-size: 10px;
  padding: 1px 5px;
}

/* --- Trust logos (infinite scroll) --- */
.trust-scroll {
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.trust-scroll-track {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: max-content;
  animation: trust-scroll 105s linear infinite;
}

.trust-logo {
  flex-shrink: 0;
  height: 24px;
  width: auto;
  user-select: none;
  pointer-events: none;
  filter: grayscale(1) opacity(0.4);
}

@keyframes trust-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.trust-scroll:hover .trust-scroll-track {
  animation-play-state: paused;
}

/* --- Section badge --- */
.section-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* --- Feature cards --- */
.feature-card {
  border-radius: 16px !important;
  transition: box-shadow 150ms ease, transform 150ms ease;
}
.feature-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  transform: translateY(-2px);
}

.feature-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon-wrap.blue { background: #eff6ff; color: #2563eb; }
.feature-icon-wrap.green { background: #dcfce7; color: #22c55e; }
.feature-icon-wrap.purple { background: #f3e8ff; color: #9333ea; }
.feature-icon-wrap.orange { background: #ffedd5; color: #ea580c; }
.feature-icon-wrap.pink { background: #fce7f3; color: #db2777; }
.feature-icon-wrap.teal { background: #ccfbf1; color: #0d9488; }

/* Mini demo inside feature card */
.mini-demo {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  padding: 14px;
}
.mini-demo-input {
  font-size: 13px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  margin-bottom: 8px;
  font-family: 'DM Mono', monospace;
}
.mini-demo-result {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #15803d;
  padding: 10px 12px;
  background: #dcfce7;
  border-radius: 6px;
  font-family: 'DM Mono', monospace;
}

/* --- Steps --- */
.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: var(--brand-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Showcase --- */
.showcase-browser {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
}
.showcase-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  border-bottom: 2px solid transparent;
  cursor: default;
}
.showcase-tab.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}
.mock-line {
  height: 10px;
  border-radius: 4px;
  background: #f1f5f9;
}
.showcase-sidepanel {
  width: 200px;
  background: #fff;
  flex-shrink: 0;
}
.sp-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.dot-green {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  display: inline-block;
}

/* --- Pricing --- */
.pricing-popular {
  border-width: 2px !important;
}
.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 100px;
  white-space: nowrap;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
}

/* --- FAQ accordion --- */
.accordion-button:not(.collapsed) {
  background-color: transparent;
  color: var(--brand);
  box-shadow: none;
}
.accordion-button:focus {
  box-shadow: none;
  border-color: #e2e8f0;
}
.accordion-button::after {
  background-size: 16px;
}

/* --- Footer links hover --- */
footer a:hover { color: #0f172a !important; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 991.98px) {
  .hero-section { padding: 120px 0 60px; }
  .py-section { padding: 72px 0; }
}

@media (max-width: 767.98px) {
  .hero-section { padding: 100px 0 48px; }
  .hero-section .display-4 { font-size: 2.2rem; }
  .display-6 { font-size: 1.6rem; }
  .showcase-sidepanel { width: 160px; }
}
