/* ═══════════════════════════════════════════════════════════
   InsoQuest Homepage — Premium SaaS (Crio.do inspired)
   ═══════════════════════════════════════════════════════════ */

/* S1 — Hero */
.home-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--navbar-height) + 2rem) 0 4rem;
  overflow: hidden;
}

.home-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #020617 0%, #0f172a 40%, #1e1b4b 70%, #0f172a 100%);
  z-index: 0;
}

.home-hero-bg::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.home-hero-inner {
  position: relative;
  z-index: 1;
}

.home-hero-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.45rem 1rem;
  border-radius: 50px;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(96, 165, 250, 0.4);
  color: #93c5fd;
  margin-bottom: 1.25rem;
}

.home-hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.home-hero-sub {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.home-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn-hero-secondary {
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: var(--btn-radius-pill);
  background: transparent;
  color: #fff !important;
  border: 2px solid rgba(255, 255, 255, 0.45);
  box-shadow: none;
  transition: all 0.2s ease;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* S1b — Promo banners carousel */
.home-banners {
  background: #0f172a;
}

.home-banner-carousel {
  position: relative;
}

.home-banner-slide {
  position: relative;
  min-height: clamp(260px, 42vw, 480px);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.home-banner-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.home-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(15, 23, 42, 0.88) 0%,
    rgba(15, 23, 42, 0.55) 45%,
    rgba(15, 23, 42, 0.25) 100%
  );
  pointer-events: none;
}

.home-banner-content {
  position: relative;
  z-index: 2;
  padding: 2.5rem 0;
  width: 100%;
}

.home-banner-text {
  max-width: 640px;
}

.home-banner-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.5vw, 2.35rem);
  color: #fff;
  line-height: 1.25;
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
}

.home-banner-subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
  margin-bottom: 1.35rem;
  max-width: 520px;
}

.home-banner-cta {
  font-size: 0.9375rem;
  padding: 0.72rem 1.45rem;
}

.home-banner-indicators {
  margin-bottom: 1rem;
  gap: 0.35rem;
  z-index: 3;
}

.home-banner-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  opacity: 1;
  transition: transform 0.2s ease, background 0.2s ease;
}

.home-banner-indicators .active {
  background: #fff;
  transform: scale(1.15);
}

.home-banner-control {
  width: auto;
  padding: 0 1rem;
  opacity: 1;
  z-index: 3;
}

.home-banner-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: background 0.2s ease, transform 0.2s ease;
}

.home-banner-control:hover .home-banner-nav-btn {
  background: rgba(255, 255, 255, 0.28);
  transform: scale(1.05);
}

@media (max-width: 767.98px) {
  .home-banners {
    background: #0f172a;
  }

  .home-banner-slide {
    min-height: 280px;
    align-items: flex-end;
    background: #0f172a;
  }

  .home-banner-media {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
  }

  .home-banner-overlay {
    background: linear-gradient(
      180deg,
      rgba(15, 23, 42, 0.1) 0%,
      rgba(15, 23, 42, 0.5) 50%,
      rgba(15, 23, 42, 0.92) 100%
    );
  }

  .home-banner-content {
    padding: 0 1.25rem 2.5rem;
    min-height: 280px;
    display: flex;
    align-items: flex-end;
  }

  .home-banner-text {
    max-width: none;
  }

  .home-banner-title {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
    line-height: 1.3;
  }

  .home-banner-subtitle {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.75rem;
    line-height: 1.45;
    margin-bottom: 0.75rem;
    max-width: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .home-banner-cta {
    width: auto;
    font-size: 0.8125rem;
    padding: 0.5rem 1.1rem;
  }

  .home-banner-control {
    display: none;
  }

  .home-banner-carousel .carousel-indicators {
    margin-bottom: 0.65rem;
    bottom: 0;
    top: auto;
  }

  .home-banner-indicators [data-bs-target] {
    width: 7px;
    height: 7px;
    background: rgba(255, 255, 255, 0.5);
  }

  .home-banner-indicators .active {
    background: #fff;
    transform: scale(1.2);
  }
}

.home-hero-stats {
  margin-top: 0.5rem;
}

.home-stat-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem 0.75rem;
  text-align: center;
  backdrop-filter: blur(8px);
}

.home-stat-num {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
  line-height: 1.2;
}

.home-stat-label {
  display: block;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.25rem;
  line-height: 1.3;
}

.home-hero-visual {
  position: relative;
}

.home-hero-img {
  max-width: 100%;
  max-height: 480px;
  object-fit: contain;
  animation: hero-float 4s ease-in-out infinite;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.35));
}

@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.marquee-wrap:hover .marquee-track,
.marquee-wrap:hover .marquee-track-2 {
  animation-play-state: paused;
}

/* S2 — Marquee */
.home-trusted {
  background: #f1f5f9;
  padding: 3.5rem 0;
  overflow: hidden;
}

.home-section-title-sm {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--iq-navy);
}

.marquee-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 3rem;
  animation: marquee-scroll 35s linear infinite;
}

.marquee-track-2 {
  animation-duration: 45s;
  animation-direction: reverse;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-logo {
  flex-shrink: 0;
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 1rem;
}

.marquee-logo img {
  height: 40px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.65;
  transition: all 0.3s ease;
}

.marquee-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

.marquee-fallback {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--iq-text-muted);
  white-space: nowrap;
}

/* S3 — Why cards */
.home-why {
  background: #fff;
}

.why-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  height: 100%;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  border: 1px solid var(--iq-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

.why-card:hover {
  transform: scale(1.03);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.why-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
  line-height: 1;
}

.why-icon-img {
  display: block;
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin: 0 auto 1.25rem;
}

.why-icon-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 150px;
  margin: 0 auto 1.25rem;
  border-radius: 16px;
  background: var(--iq-blue-light, #dbeafe);
  color: var(--iq-blue, #2563eb);
  font-size: 2.5rem;
}

.why-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--iq-navy);
}

.why-desc {
  font-size: 0.9rem;
  color: var(--iq-text-muted);
  margin: 0;
  line-height: 1.65;
}

/* S4 — Courses */
.home-courses {
  background: var(--iq-gradient-soft);
}

.course-tabs-wrap {
  overflow-x: auto;
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
}

.course-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  justify-content: center;
  min-width: min-content;
  margin: 0 auto;
}

.course-tab {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.85rem;
  padding: 0.5rem 1.1rem;
  border-radius: 50px;
  border: 1px solid var(--iq-border);
  background: #fff;
  color: var(--iq-text-muted);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.course-tab:hover,
.course-tab.active {
  background: var(--iq-blue);
  border-color: var(--iq-blue);
  color: #fff;
}

.home-course-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--iq-shadow);
  border: 1px solid var(--iq-border);
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--iq-shadow-lg);
}

.home-course-thumb {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--iq-gradient-soft);
}

.home-course-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.home-course-card:hover .home-course-thumb img {
  transform: scale(1.05);
}

.home-course-thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--iq-blue);
  opacity: 0.4;
}

.home-course-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.cat-dev { background: #dbeafe; color: #1d4ed8; }
.cat-data { background: #ede9fe; color: #6d28d9; }
.cat-cloud { background: #cffafe; color: #0e7490; }
.cat-security { background: #fee2e2; color: #b91c1c; }
.cat-marketing { background: #fef3c7; color: #b45309; }

.home-course-body {
  padding: 1.25rem;
}

.home-course-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.home-course-title a {
  color: var(--iq-navy);
  text-decoration: none;
}

.home-course-title a:hover {
  color: var(--iq-blue);
}

.home-course-trainer {
  font-size: 0.8rem;
  color: var(--iq-text-muted);
  margin-bottom: 0.65rem;
}

.home-course-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.home-course-pills span {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  background: #f1f5f9;
  border-radius: 4px;
  color: var(--iq-text-muted);
}

.home-course-rating {
  font-size: 0.8rem;
  color: #f59e0b;
  margin-bottom: 0.65rem;
}

.home-course-rating span {
  color: var(--iq-text-muted);
  margin-left: 0.25rem;
}

.home-course-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.skill-tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
  background: #eff6ff;
  color: var(--iq-blue);
  border-radius: 4px;
  font-weight: 500;
}

.home-course-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--iq-blue);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.course-filter-item {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.course-filter-item.is-hidden {
  display: none !important;
}

/* S5 — Journey */
.home-journey {
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  position: relative;
  overflow: hidden;
}

.home-journey::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(37, 99, 235, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

.home-journey .container {
  position: relative;
  z-index: 1;
}

.journey-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #93c5fd;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.25);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.journey-subtitle {
  color: rgba(255, 255, 255, 0.62) !important;
  max-width: 540px;
}

.journey-grid {
  position: relative;
}

.journey-card {
  position: relative;
  z-index: 1;
  height: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 0 1.15rem 1.35rem;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.journey-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(37, 99, 235, 0.35);
}

.journey-card-marker {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
  padding-top: 0.25rem;
}

.journey-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--iq-blue);
  border: 3px solid #0f172a;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8125rem;
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.journey-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.journey-icon {
  font-size: 1.35rem;
  color: #60a5fa;
  margin-bottom: 0.65rem;
  line-height: 1;
}

.journey-step-title {
  font-family: var(--font-heading);
  font-weight: 600;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.45rem;
  line-height: 1.3;
}

.journey-step-desc {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
  line-height: 1.55;
}

@media (max-width: 1199.98px) {
  .journey-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
    padding: 1.15rem 1.25rem;
  }

  .journey-card-marker {
    margin-bottom: 0;
    padding-top: 0;
    flex-shrink: 0;
  }

  .journey-card-body {
    align-items: flex-start;
  }

  .journey-num {
    width: 44px;
    height: 44px;
    border-width: 2px;
  }
}

@media (max-width: 767.98px) {
  .journey-card {
    padding: 1rem 1.15rem;
    gap: 1rem;
  }
}

/* S6 — Placement */
.home-placement {
  background: #f8fafc;
}

.placement-stat-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.75rem 1rem;
  text-align: center;
  box-shadow: var(--iq-shadow);
  border: 1px solid var(--iq-border);
  height: 100%;
}

.placement-stat-icon {
  font-size: 1.75rem;
  display: block;
  margin-bottom: 0.5rem;
}

.placement-stat-icon-img {
  display: block;
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin: 0 auto 0.75rem;
}

.placement-stat-icon-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 150px;
  margin: 0 auto 0.75rem;
  border-radius: 16px;
  background: var(--iq-blue-light, #dbeafe);
  color: var(--iq-blue, #2563eb);
  font-size: 2.5rem;
}

.placement-stat-value {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2rem;
  color: var(--iq-blue);
  line-height: 1.2;
}

.placement-stat-label {
  font-size: 0.85rem;
  color: var(--iq-text-muted);
}

.testimonial-carousel {
  max-width: 720px;
  margin: 0 auto;
}

.testimonial-slide {
  text-align: center;
  padding: 2rem 3rem 3rem;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--iq-shadow);
  border: 1px solid var(--iq-border);
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid #eff6ff;
}

.testimonial-quote {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--iq-text);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.testimonial-name {
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.testimonial-package {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.35rem 1rem;
  background: #ecfdf5;
  color: #047857;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 50px;
}

.carousel-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--iq-shadow);
  color: var(--iq-navy);
  font-size: 1.25rem;
}

.testimonial-indicators {
  margin-bottom: -1rem;
}

.testimonial-indicators button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: transparent;
  position: relative;
}

.testimonial-indicators button::before {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #cbd5e1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.testimonial-indicators button.active {
  background-color: transparent;
}

.testimonial-indicators button.active::before {
  background-color: var(--iq-blue);
}

/* S7 — Stories */
.home-stories {
  background: #fff;
}

.story-card {
  background: #fff;
  border: 1px solid var(--iq-border);
  border-radius: 16px;
  padding: 1.5rem;
  height: 100%;
  box-shadow: var(--iq-shadow);
  transition: box-shadow 0.2s ease;
}

.story-card:hover {
  box-shadow: var(--iq-shadow-lg);
}

.story-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.story-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.story-name {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--iq-navy);
}

.story-before {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.story-before span {
  font-weight: 600;
  color: #64748b;
}

.story-after {
  color: #10b981;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.story-after span {
  font-weight: 700;
}

.story-package {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  background: #ecfdf5;
  color: #047857;
  font-weight: 600;
  font-size: 0.8rem;
  border-radius: 6px;
}

/* S8 — FAQ */
.home-faq {
  background: #fff;
}

.home-accordion .accordion-item {
  border: 1px solid var(--iq-border);
  border-radius: 12px !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.home-accordion .accordion-button {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 1.1rem 1.25rem;
  background: #fff;
  color: var(--iq-navy);
  box-shadow: none !important;
}

.home-accordion .accordion-button:not(.collapsed) {
  background: #eff6ff;
  color: var(--iq-blue);
}

.home-accordion .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232563eb'%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");
}

.home-accordion .accordion-body {
  color: var(--iq-text-muted);
  line-height: 1.7;
  padding: 0 1.25rem 1.25rem;
}

/* S9 — Lead section */
.home-lead-section {
  position: relative;
  padding: 5rem 0;
  background: var(--iq-navy);
  overflow: hidden;
}

.home-lead-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(37, 99, 235, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(124, 58, 237, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.home-lead-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
}

.home-lead-sub {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.home-lead-benefits li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  opacity: 0.9;
}

.home-lead-benefits i {
  color: #34d399;
  font-size: 1.1rem;
}

.home-lead-form-card {
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

/* Footer margin on home - hero is full bleed */
.page-home #main-content {
  overflow-x: hidden;
}

.page-home .site-footer {
  margin-top: 0;
}

@media (max-width: 991.98px) {
  .home-hero {
    min-height: auto;
    padding: calc(var(--navbar-height) + 1.2rem) 0 2.5rem;
  }

  .home-hero-ctas {
    gap: 0.75rem;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    text-align: center;
  }

  .home-hero-visual {
    max-width: 420px;
  }

  .home-hero-img {
    max-height: 320px;
  }

  .marquee-wrap {
    gap: 1rem;
  }

  .marquee-track {
    gap: 1.5rem;
  }

  .marquee-logo {
    padding: 0 0.25rem;
  }

  .home-lead-section {
    padding: 3.5rem 0;
  }

  .home-lead-form-card {
    padding: 1.25rem;
  }
}

@media (max-width: 767.98px) {
  .testimonial-slide {
    padding: 1.25rem 1rem 2.25rem;
  }

  .carousel-control-prev,
  .carousel-control-next {
    display: none;
  }

  .story-header {
    align-items: flex-start;
  }
}
