/* Homepage-only presentation and resilience layer. */
:root {
  --hp-ink: #0f172a;
  --hp-muted: #475569;
  --hp-brand: #6366f1;
  --hp-brand-dark: #4f46e5;
  --hp-surface: #f8fafc;
  --hp-border: #e2e8f0;
}

body {
  color: var(--hp-ink);
  background: #ffffff;
}

.header {
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 1px 0 rgba(16, 33, 63, 0.08) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  padding: 16px 0 !important;
}

.header .logo img {
  max-height: 40px !important;
  width: auto !important;
}

.navbar a {
  font-weight: 600 !important;
  font-size: 14.5px !important;
  color: #334155 !important;
}

.navbar a:hover,
.navbar .active,
.navbar .active:focus {
  color: #4f46e5 !important;
}

.navbar .getstarted,
.btn-get-started,
.btn-hero-primary {
  border-radius: 12px !important;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  padding: 13px 28px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  transition: all 0.25s ease !important;
  border: 1px solid transparent !important;
}

.navbar .getstarted:hover,
.btn-get-started:hover,
.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(99, 102, 241, 0.45) !important;
  color: #ffffff !important;
}

.btn-hero-secondary {
  background: #ffffff !important;
  color: #1e293b !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  padding: 13px 28px !important;
  border-radius: 12px !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  transition: all 0.25s ease !important;
}

.btn-hero-secondary:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #4f46e5 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08) !important;
}

.hero {
  min-height: min(760px, 84vh);
  padding: 135px 0 70px !important;
  background: radial-gradient(circle at 85% 20%, #dbeafe 0%, transparent 28%), linear-gradient(135deg, #f8fbff 0%, #ffffff 55%, #f1f6ff 100%) !important;
}

.hero h1 {
  max-width: 620px;
  color: var(--hp-ink) !important;
  font-size: clamp(32px, 3.8vw, 44px) !important;
  font-weight: 800 !important;
  line-height: 1.22 !important;
  letter-spacing: -0.025em !important;
}

.hero h2 {
  max-width: 540px;
  color: var(--hp-muted) !important;
  font-size: clamp(15px, 1.8vw, 17px) !important;
  line-height: 1.65 !important;
  font-weight: 400 !important;
}

.hero .hero-img img,
.hero-img img {
  mix-blend-mode: multiply !important;
  border-radius: 20px !important;
  max-height: 440px !important;
  width: auto !important;
  object-fit: contain !important;
  filter: none !important;
}

.section-header h2 {
  font-size: 13px !important;
  letter-spacing: 0.1em !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  color: #6366f1 !important;
}

.section-header p {
  color: var(--hp-ink) !important;
  font-size: clamp(24px, 2.5vw, 32px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
}

.values, .features, .faq {
  background: var(--hp-surface);
}

.values .box,
.pricing .box,
.service-box,
.feature-box,
.info-box {
  border: 1px solid var(--hp-border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.values .box:hover,
.pricing .box:hover,
.service-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.count-box {
  border-radius: 14px;
  border: 1px solid var(--hp-border);
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.footer {
  background: #090d16 !important;
  color: #cbd5e1 !important;
}

.footer h4,
.footer .footer-info .logo span {
  color: #ffffff !important;
}

.footer a {
  color: #94a3b8 !important;
}

.footer a:hover {
  color: #6366f1 !important;
}

/* The browser can wait indefinitely for an image. Never hide the content. */
[data-aos] {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

@media (max-width: 991px) {
  .hero {
    min-height: auto;
    padding: 110px 0 50px !important;
    text-align: center;
  }
  .hero h1,
  .hero h2 {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-img {
    margin-top: 30px;
  }
}

/* ==========================================================================
   Modern FAQ Section Styling
   ========================================================================== */
.faq {
  padding: 80px 0 !important;
  background: var(--hp-surface) !important;
}

.faq .modern-faq-accordion {
  max-width: 880px;
  margin: 0 auto;
}

.faq .faq-card-item {
  background: #ffffff !important;
  border: 1px solid var(--hp-border) !important;
  border-radius: 14px !important;
  margin-bottom: 14px !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03) !important;
  overflow: hidden !important;
  transition: all 0.25s ease !important;
}

.faq .faq-card-item:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06) !important;
}

.faq .faq-btn {
  width: 100% !important;
  background: #ffffff !important;
  border: none !important;
  padding: 20px 24px !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  text-align: left !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  box-shadow: none !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}

.faq .faq-btn:not(.collapsed) {
  color: var(--hp-brand-dark) !important;
  background: #f8fafc !important;
  border-bottom: 1px solid var(--hp-border) !important;
}

.faq .faq-btn::after {
  flex-shrink: 0 !important;
  width: 1.25rem !important;
  height: 1.25rem !important;
  margin-left: auto !important;
  content: "" !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2364748b'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-size: 1.25rem !important;
  transition: transform 0.25s ease-in-out !important;
}

.faq .faq-btn:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%234f46e5'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
  transform: rotate(-180deg) !important;
}

.faq .faq-body {
  padding: 20px 24px 24px 24px !important;
  font-size: 0.98rem !important;
  color: #475569 !important;
  line-height: 1.75 !important;
  background: #ffffff !important;
}

/* ==========================================================================
   Comprehensive Mobile View Optimization & Responsive Comfort
   ========================================================================== */

/* Prevent horizontal overflow on small devices */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

/* Mobile Nav Toggle Button */
.mobile-nav-toggle {
  font-size: 28px !important;
  color: #0f172a !important;
  cursor: pointer !important;
  line-height: 1 !important;
  padding: 8px !important;
  border-radius: 8px !important;
  transition: all 0.2s ease !important;
  -webkit-tap-highlight-color: transparent !important;
  user-select: none !important;
  z-index: 9999 !important;
}

.mobile-nav-toggle:hover,
.mobile-nav-toggle:active {
  color: #4f46e5 !important;
  background: rgba(79, 70, 229, 0.08) !important;
}

@media (max-width: 1199px) {
  .mobile-nav-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .navbar:not(.navbar-mobile) ul {
    display: none !important;
  }
}

/* When Mobile Navigation is Open */
body.mobile-nav-active {
  overflow: hidden !important;
}

body.mobile-nav-active #header {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  position: fixed !important;
  z-index: 999999 !important;
}

.navbar.navbar-mobile {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(15, 23, 42, 0.82) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  z-index: 999999 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  padding: 16px !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  transition: opacity 0.25s ease !important;
}

.navbar.navbar-mobile .mobile-nav-toggle {
  position: fixed !important;
  top: 18px !important;
  right: 18px !important;
  color: #ffffff !important;
  font-size: 28px !important;
  z-index: 1000001 !important;
  cursor: pointer !important;
  width: 44px !important;
  height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255, 255, 255, 0.18) !important;
  border-radius: 50% !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

.navbar.navbar-mobile ul {
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  top: 64px !important;
  left: 0 !important;
  right: 0 !important;
  bottom: auto !important;
  background: #ffffff !important;
  border-radius: 20px !important;
  padding: 24px 18px !important;
  margin: 0 auto !important;
  max-width: 420px !important;
  width: 100% !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45) !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  list-style: none !important;
}

.navbar.navbar-mobile ul li {
  padding: 3px 0 !important;
  width: 100% !important;
}

.navbar.navbar-mobile ul a {
  display: flex !important;
  align-items: center !important;
  padding: 12px 16px !important;
  font-size: 15.5px !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  border-radius: 10px !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.navbar.navbar-mobile ul a:hover,
.navbar.navbar-mobile ul a.active {
  color: #4f46e5 !important;
  background: #f1f5f9 !important;
}

.navbar.navbar-mobile ul .getstarted {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
  color: #ffffff !important;
  text-align: center !important;
  justify-content: center !important;
  margin-top: 14px !important;
  padding: 13px 20px !important;
  border-radius: 12px !important;
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35) !important;
  width: 100% !important;
}

/* Mobile Hero & Component Comfort */
@media (max-width: 767px) {
  .header {
    padding: 12px 0 !important;
  }

  .header .logo img {
    max-height: 34px !important;
  }

  .hero {
    padding-top: 96px !important;
    padding-bottom: 40px !important;
    text-align: center !important;
  }

  .hero h1 {
    font-size: clamp(26px, 7vw, 34px) !important;
    line-height: 1.25 !important;
    margin-bottom: 16px !important;
  }

  .hero h2 {
    font-size: 15px !important;
    line-height: 1.6 !important;
    margin-bottom: 24px !important;
    padding: 0 4px !important;
  }

  .hero-buttons {
    flex-direction: column !important;
    width: 100% !important;
    gap: 12px !important;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100% !important;
    padding: 13px 20px !important;
    font-size: 15px !important;
    border-radius: 12px !important;
    text-align: center !important;
  }

  .hero-img {
    margin-top: 24px !important;
  }

  .hero-img img {
    max-height: 300px !important;
    max-width: 100% !important;
    height: auto !important;
  }

  /* Values / Cards on mobile */
  .values .box,
  .pricing .box,
  .service-box,
  .feature-box {
    margin-bottom: 20px !important;
    padding: 24px 18px !important;
  }

  /* Section header on mobile */
  .section-header {
    margin-bottom: 30px !important;
    padding-bottom: 0 !important;
  }

  .section-header h2 {
    font-size: 13px !important;
    letter-spacing: 1px !important;
  }

  .section-header p {
    font-size: 24px !important;
    line-height: 1.3 !important;
  }

  /* FAQ on mobile */
  .faq {
    padding: 50px 0 !important;
  }

  .faq .faq-btn {
    padding: 16px 18px !important;
    font-size: 15px !important;
  }

  .faq .faq-body {
    padding: 14px 18px 18px 18px !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
  }

  /* Footer on mobile */
  .footer {
    padding-top: 40px !important;
  }

  .footer .footer-top {
    padding-bottom: 20px !important;
  }
}
