:root {
  --answerlytic-primary: #4f46e5;
  --answerlytic-primary-dark: #3730a3;
  --answerlytic-accent: #22d3ee;
  --answerlytic-accent-soft: rgba(34, 211, 238, 0.15);
  --answerlytic-hero-dark: #0f172a;
  --answerlytic-hero-mid: #1e293b;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: #1e293b;
  background-color: #f8fafc;
}

h1,
h2,
h3,
h4,
.navbar-brand,
.brand-text {
  font-family: var(--font-display);
}

.pt-lg-6 {
  padding-top: 6rem !important;
}

/* Navbar */
#mainNav {
  transition: background-color 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(12px);
}

#mainNav.nav-scrolled {
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  border-bottom-color: #e2e8f0;
}

.navbar-brand {
  padding: 0;
}

.brand-logo {
  display: block;
  height: 4rem;
  width: auto;
  max-width: min(280px, 52vw);
  object-fit: contain;
}

.footer-logo {
  display: inline-block;
  height: 5rem;
  width: auto;
  max-width: min(320px, 70vw);
  object-fit: contain;
}

.nav-link {
  font-weight: 500;
  color: #475569 !important;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--answerlytic-primary-dark) !important;
}

.nav-cta {
  font-weight: 600;
}

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--answerlytic-hero-dark) 0%, var(--answerlytic-hero-mid) 45%, #312e81 100%);
  color: #f1f5f9;
  min-height: 100vh;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 70% 20%, rgba(79, 70, 229, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(34, 211, 238, 0.2), transparent 50%);
  pointer-events: none;
}

.hero-badge {
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--answerlytic-hero-dark) !important;
}

.hero-title {
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-lead {
  color: #f1f5f9;
}

.hero-lead strong {
  color: #fff;
}

.hero-subtext {
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero-highlight {
  color: #fff;
}

.text-accent {
  color: var(--answerlytic-accent);
}

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-color: #fff;
  --bs-btn-disabled-color: #fff;
  --bs-btn-bg: var(--answerlytic-primary);
  --bs-btn-border-color: var(--answerlytic-primary);
  --bs-btn-hover-bg: var(--answerlytic-primary-dark);
  --bs-btn-hover-border-color: var(--answerlytic-primary-dark);
  --bs-btn-active-bg: var(--answerlytic-primary-dark);
  --bs-btn-active-border-color: var(--answerlytic-primary-dark);
  font-weight: 600;
  border: none;
  color: #fff;
}

.hero .btn-primary,
.hero .btn-primary:hover,
.hero .btn-primary:focus,
.hero .btn-primary:active {
  color: #fff;
}

.shadow-glow {
  box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4), 0 12px 40px rgba(79, 70, 229, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shadow-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.25), 0 16px 48px rgba(79, 70, 229, 0.5);
}

.btn-outline-light {
  --bs-btn-hover-bg: rgba(255, 255, 255, 0.1);
  font-weight: 600;
}

.hero-visual {
  position: relative;
  padding: 1rem;
}

.hero-image {
  border-radius: 1.25rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

/* Fallback when image missing */
.hero-image-fallback,
.hero-visual:not(:has(img[src])) {
  min-height: 320px;
  border-radius: 1.25rem;
  background:
    linear-gradient(145deg, rgba(34, 211, 238, 0.12), rgba(79, 70, 229, 0.2)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300'%3E%3Crect fill='%231e293b' width='400' height='300' rx='16'/%3E%3Cpath stroke='%2322d3ee' stroke-width='2' fill='none' opacity='0.6' d='M40 150 Q80 80 120 150 T200 150 T280 150 T360 150'/%3E%3Ccircle cx='200' cy='150' r='48' fill='%234f46e5' opacity='0.5'/%3E%3Ctext x='200' y='158' text-anchor='middle' fill='%23e2e8f0' font-family='sans-serif' font-size='14'%3EAI Voice%3C/text%3E%3C/svg%3E")
    center / cover no-repeat;
}

/* Early access */
.section-early {
  background: #fff;
}

.early-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: #475569;
}

.early-benefits i {
  color: var(--answerlytic-primary);
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.early-form-card {
  border-radius: 1.25rem;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.early-industries {
  padding: 1.25rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border: 1px solid #e2e8f0;
}

.industry-icon-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
  padding: 1rem 0.5rem;
  height: 100%;
  border-radius: 0.75rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.industry-icon-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.industry-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  font-size: 1.35rem;
}

.industry-icon-plumbing {
  background: #e0e7ff;
  color: #4f46e5;
}

.industry-icon-hvac {
  background: #cffafe;
  color: #0891b2;
}

.industry-icon-salon {
  background: #fce7f3;
  color: #db2777;
}

.industry-icon-insurance {
  background: #fef3c7;
  color: #d97706;
}

.industry-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
}

/* Pain points */
.section-why {
  background: linear-gradient(180deg, #f1f5f9 0%, #fff 100%);
}

.pain-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

.pain-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.pain-icon-wrap {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.callout-banner {
  background: linear-gradient(135deg, var(--answerlytic-primary) 0%, #6366f1 50%, #0ea5e9 100%);
  color: #fff;
  box-shadow: 0 16px 48px rgba(79, 70, 229, 0.25);
}

.comparison-visual {
  background: #e2e8f0;
  min-height: 120px;
}

.comparison-placeholder {
  min-height: 200px;
  background:
    linear-gradient(90deg, #fecaca 0%, #fecaca 48%, #fff 48%, #fff 52%, #bbf7d0 52%, #bbf7d0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.comparison-placeholder::after {
  content: "Suggested: missed-call vs AI-response split infographic → images/missed-call-vs-ai-response.svg";
  max-width: 28rem;
  text-align: center;
  font-size: 0.875rem;
  color: #475569;
  font-weight: 500;
}

/* Footer */
.site-footer {
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid #e2e8f0;
  color: #475569;
}

.footer-brand {
  font-family: var(--font-display);
}

/* Form focus */
.form-control:focus {
  border-color: var(--answerlytic-primary);
  box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.2);
}

.form-control.is-invalid:focus {
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.2);
}

@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .shadow-glow:hover {
    transform: none;
  }
}
