/*
 * Home hero + chrome — match Figma Desktop/1440 and legacy index banner.
 * Floating rounded header; banner grid from index-bnr-bg-gray.webp.
 */

/* ===== Floating header (same pattern as css/pages/home-page/bnr.css) ===== */

body.page-home-new main {
  margin-top: -7.5rem;
}

body.page-home-new header.sticky-top {
  top: 0.9375rem;
  z-index: 1030;
}

body.page-home-new > header {
  width: 100%;
  max-width: 1400px;
  margin: 2.5rem auto 0;
  padding: 0 1.5625rem;
}

body.page-home-new .navbar {
  background-color: #fff !important;
  border-radius: 15px !important;
  box-shadow: 0 8px 20px 0 rgba(53, 40, 104, 0.06);
}

body.page-home-new .navbar.scroll-header {
  background: #fff !important;
  border-bottom: none;
  box-shadow: 0 8px 20px 0 rgba(53, 40, 104, 0.1);
}

body.page-home-new header.sticky-top .primary-btn.gradient-btn {
  background: var(--home-purple-strong, #7e4de6);
  border: 1px solid var(--home-purple-strong, #7e4de6) !important;
  color: #fff;
}

body.page-home-new header.sticky-top .primary-btn.gradient-btn:hover {
  background: var(--primary-color-0, #5229b0) !important;
  border-color: var(--primary-color-0, #5229b0) !important;
  color: #fff !important;
}

body.page-home-new .container-fluid {
  width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* ===== Hero shell ===== */

.wgt-home-hero {
  position: relative;
  /* Room for floating header overlapping the banner */
  padding-top: 10.625rem;
  padding-bottom: 5rem;
  background: transparent;
}

.wgt-home-hero .home-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: center;
}

/*
 * Figma Hero "Main Block": rounded container inset from the section
 * (desktop 24px / 1392px wide; mobile 15px / 345px), not full-bleed.
 */
.wgt-home-hero .home-grid-bg {
  position: absolute;
  z-index: 0;
  top: 24px;
  bottom: 0;
  left: 50%;
  width: min(1392px, calc(100% - 48px));
  overflow: hidden;
  border-radius: 20px;
  background: #f8f8f8;
  pointer-events: none;
  transform: translateX(-50%);
  /* Kill shared CSS-grid from home-base — image fills this container. */
  background-image: none;
  mask-image: none;
  -webkit-mask-image: none;
}

.wgt-home-hero .home-grid-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  padding: 0;
  object-fit: cover;
  object-position: top center;
}

.wgt-home-hero .home-hero-title,
.wgt-home-hero .home-hero-title :is(h1, h2, h3, h4, h5, h6, p) {
  max-width: 956px;
  margin: 0 auto;
  font-size: 58px;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.wgt-home-hero .home-hero-description,
.wgt-home-hero .home-hero-description p {
  max-width: 660px;
  margin: 0 auto;
  font-size: 18px;
}

.wgt-home-hero .home-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  justify-content: center;
}

.wgt-home-hero .home-hero-visual {
  position: relative;
  width: 100%;
  max-width: 1064px;
}

/* Soft purple glow under the dashboard mockup */

.wgt-home-hero .home-hero-visual::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  bottom: -6%;
  width: 78%;
  height: 40%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(139, 111, 255, 0.32) 0%, rgba(139, 111, 255, 0.1) 45%, transparent 72%);
  filter: blur(28px);
  pointer-events: none;
}

.wgt-home-hero .home-hero-visual img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
}

.wgt-home-hero .home-hero-visual .mobile {
  display: none;
}

@media (max-width: 1280px) {
  body.page-home-new > header {
    padding: 0 1rem;
  }
}

@media (max-width: 992px) {
  body.page-home-new main {
    margin-top: -5.5rem;
  }

  body.page-home-new > header {
    margin-top: 1.25rem;
  }

  .wgt-home-hero {
    padding-top: 8rem;
  }

  .wgt-home-hero .home-inner {
    gap: 36px;
  }

  .wgt-home-hero .home-hero-title,
  .wgt-home-hero .home-hero-title :is(h1, h2, h3, h4, h5, h6, p) {
    font-size: 40px;
  }

  .wgt-home-hero .home-hero-description,
  .wgt-home-hero .home-hero-description p {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  body.page-home-new main {
    margin-top: -4rem;
  }

  body.page-home-new > header {
    margin-top: 0.75rem;
    padding: 0 0.75rem;
  }

  .wgt-home-hero {
    padding-top: 6.5rem;
    padding-bottom: 3.5rem;
  }

  .wgt-home-hero .home-inner {
    gap: 28px;
  }

  .wgt-home-hero .home-hero-title,
  .wgt-home-hero .home-hero-title :is(h1, h2, h3, h4, h5, h6, p) {
    font-size: 28px;
  }

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

  .wgt-home-hero .home-grid-bg {
    top: 15px;
    width: calc(100% - 30px);
    border-radius: 16px;
  }

  .wgt-home-hero .home-hero-visual:has(.mobile) .desktop {
    display: none;
  }

  .wgt-home-hero .home-hero-visual .mobile {
    display: block;
  }
}
