/* Base Mobile Styles (Default - up to 480px) */
.hero-home-section .heroSection {
  width: 100%;
  min-height: 729px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  padding: 0;
  box-sizing: border-box;
  text-align: left;
  font-size: 13px;
  color: #333f5b;
  font-family: 'Avenir Next W1G';
}

.hero-home-section .heroChild {
  width: 243px;
  height: 243px;
  position: absolute;
  margin: 0 !important;
  bottom: 124.27px;
  left: 50%;
  transform: translateX(-50%);
  filter: blur(331.73px);
  border-radius: 50%;
  background-color: #f8d194;
  z-index: 0;
}

.hero-home-section .wrapper {
  width: 100%;
  max-width: 345px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  z-index: 1;
  position: relative;
}

.hero-home-section .wrapperChild {
  width: 243px;
  height: 243px;
  position: absolute;
  margin: 0 !important;
  top: 350px;
  right: -100px;
  filter: blur(331.73px);
  border-radius: 50%;
  background-color: #3495ff;
  opacity: 0.52;
  z-index: 0;
  display: none;
}

.hero-home-section .wrapperItem {
  width: 243px;
  height: 243px;
  position: absolute;
  margin: 0 !important;
  top: -50px;
  right: -100px;
  filter: blur(331.73px);
  border-radius: 50%;
  background-color: #f8d194;
  z-index: 1;
  display: none;
}

.hero-home-section .eyebrow {
  border-radius: 50px;
  border: 1px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  gap: 24px;
  z-index: 2;
}

.hero-home-section .eyebrowChild {
  height: 100%;
  width: 100%;
  position: absolute;
  margin: 0 !important;
  top: 0%;
  right: 0%;
  bottom: 0%;
  left: 0%;
  filter: blur(10px);
  border-radius: 50px;
  background: linear-gradient(95.49deg, rgba(52, 148, 253, 0.3), rgba(243, 127, 84, 0.3));
  z-index: 0;
}

.hero-home-section .subheadingWrapper {
  border-radius: 50px;
  background-color: #fcf9f8;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  z-index: 1;
}

.hero-home-section .subheading {
  position: relative;
  line-height: 150%;
  font-size: 13px;
}

.hero-home-section .heading {
  width: 100%;
  position: relative;
  font-size: 40px;
  letter-spacing: -0.04em;
  line-height: 100%;
  text-transform: capitalize;
  font-weight: 500;
  font-family: 'P22 Mackinac Pro';
  text-align: center;
  margin: 0;
  z-index: 3;
}

.hero-home-section .heroSubheading {
  width: 100%;
  max-width: 287px;
  position: relative;
  font-size: 17px;
  letter-spacing: -0.02em;
  line-height: 145%;
  font-family: 'Avenir Next';
  font-weight: 500;
  color: #6d717b;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  margin: 0;
}

.hero-home-section .button {
  height: 56px;
  border-radius: 20px;
  background-color: #3495ff;
  border: none;
  display: flex;
  align-items: center;
  padding: 24px 32px;
  box-sizing: border-box;
  gap: 10px;
  z-index: 5;
  cursor: pointer;
  color: #fff;
  font-family: 'PP Neue Montreal';
  font-size: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-home-section .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 149, 255, 0.3);
}

.hero-home-section .button:active {
  transform: translateY(0);
}

.hero-home-section .exploreOurResources {
  position: relative;
  letter-spacing: -0.01em;
  line-height: 150%;
  font-weight: 500;
}

.hero-home-section .solararrowRightLinearIcon {
  width: 20px;
  position: relative;
  max-height: 100%;
}

/* Background ellipse element - Top LEFT area (Golden) */
.hero-home-section .ellipseTopLeft {
  width: clamp(200px, 25vw, 350px);
  height: clamp(150px, 20vw, 250px);
  position: absolute;
  top: clamp(-100px, -10vw, -60px);
  left: clamp(-100px, -10vw, -60px);
  filter: blur(clamp(60px, 8vw, 100px));
  border-radius: 50%;
  background: radial-gradient(ellipse, #f8d194 0%, #f8d194 30%, rgba(248, 209, 148, 0.8) 60%, rgba(248, 209, 148, 0.3) 100%);
  opacity: 0.7;
  z-index: 0;
  pointer-events: none;
}

/* Background ellipse element - Bottom left area (Blue) */
.hero-home-section .ellipseBottomLeft {
  width: clamp(180px, 22vw, 300px);
  height: clamp(130px, 18vw, 220px);
  position: absolute;
  bottom: clamp(-80px, -8vw, -50px);
  left: clamp(-90px, -9vw, -50px);
  filter: blur(clamp(50px, 7vw, 80px));
  border-radius: 50%;
  background: radial-gradient(ellipse, #3495ff 0%, #3495ff 25%, rgba(52, 149, 255, 0.7) 50%, rgba(52, 149, 255, 0.3) 100%);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

/* Frame Parent - Main Animation Container */
.hero-home-section .frameParent {
  width: 100%;
  max-width: 345px;
  height: 323.9px;
  position: relative;
  border-radius: 21.59px;
  z-index: 2;
  font-size: 6.68px;
  font-family: 'PP Neue Montreal';
  opacity: 0;
  /* Prevent flexbox from affecting size during padding changes */
  /* transform: translateY(30px) scale(0.95); */
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-home-section .frameParentVisible {
  opacity: 1 !important;
  /* transform: translateY(0) scale(1) !important; */
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-home-section .frameChild {
  position: absolute;
  top: 28.34px;
  left: 51.25px;
  border-radius: 21.59px;
  width: 242.6px;
  height: 255.9px;
  object-fit: cover;
  will-change: opacity;

  object-position: center -40px;
}

/* Card Styles with Enhanced Animation */
.hero-home-section .card {
  position: absolute;
  top: 0px;
  left: 21.59px;
  box-shadow: 0px 6.52px 13.05px rgba(40, 34, 34, 0.1), 0px 2.17px 6.52px rgba(40, 34, 34, 0.05);
  border-radius: 14.39px;
  background-color: #fff;
  width: 143.9px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10.8px;
  box-sizing: border-box;
  will-change: transform, background-color;
}

.hero-home-section .cardSuccess {
  background-color: #3495ff !important;
  color: #fff !important;
  box-shadow: 0px 8px 20px rgba(52, 149, 255, 0.25), 0px 3px 8px rgba(52, 149, 255, 0.15) !important;
  transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.hero-home-section .cardSuccess .identifier {
  color: #fff !important;
  transition: color 1.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.hero-home-section .cardSuccess .description {
  color: rgba(255, 255, 255, 0.85) !important;
  transition: color 1.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* NEW: Highlight effect for card */
.hero-home-section .cardHighlight {
  box-shadow: 0px 12px 24px rgba(40, 34, 34, 0.15), 
              0px 4px 10px rgba(40, 34, 34, 0.08) !important;
  animation: subtleGlow 1s ease-in-out;
}

.hero-home-section .frameGroup {
  align-self: stretch;
  display: flex;
  align-items: flex-start;
  gap: 6.7px;
}

.hero-home-section .frameItem {
  height: 16.7px;
  width: 16.7px;
  border-radius: 208.6px;
  flex-shrink: 0;
  will-change: transform;
}

.hero-home-section .frameWrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-home-section .identifierParent {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3.3px;
}

.hero-home-section .identifier {
  position: relative;
  line-height: 100%;
  font-weight: 500;
  transition: color 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-home-section .description {
  align-self: stretch;
  position: relative;
  font-size: 5.84px;
  line-height: 130%;
  font-weight: 500;
  font-family: 'Avenir Next W1G';
  color: #868a94;
  transition: color 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Calculator Card */
.hero-home-section .calc {
  position: absolute;
  right: -0.03px;
  bottom: 105.59px;
  box-shadow: 0px 6.52px 13.05px rgba(40, 34, 34, 0.1), 0px 2.17px 6.52px rgba(40, 34, 34, 0.05);
  border-radius: 14.39px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14.4px;
  gap: 12px;
  font-size: 7.83px;
  font-family: 'P22 Mackinac Pro';
}

/* NEW: Highlight effect for calc */
.hero-home-section .calcHighlight {
  box-shadow: 0px 12px 24px rgba(40, 34, 34, 0.15), 
              0px 4px 10px rgba(40, 34, 34, 0.08) !important;
  animation: subtleGlow 1s ease-in-out;
}

.hero-home-section .bg {
  width: 100%;
  height: 100%;
  position: absolute;
  margin: 0 !important;
  top: 0%;
  right: 0%;
  bottom: 0%;
  left: 0%;
  background-color: #fff;
  z-index: 0;
}

.hero-home-section .financialHealthScoreParent {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1;
  width: 100%;
}

.hero-home-section .financialHealthScore {
  position: relative;
  letter-spacing: -0.03em;
  line-height: 110%;
  font-weight: 500;
  flex-shrink: 0;
  max-width: 45px;
  font-size: 7px;
}

.hero-home-section .frameContainer {
  position: relative;
  text-align: right;
  font-size: 18.43px;
  font-family: 'PP Neue Montreal';
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-home-section .financialHealthScoreContainer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-home-section .div {
  position: relative;
  line-height: 70%;
  font-weight: 500;
  will-change: transform, color;
}

.hero-home-section .scoreHighlighted {
  color: #3495ff !important;
  animation: scorePulse 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-home-section .dataVizWrapper {
  display: flex;
  align-items: center;
  z-index: 2;
  font-size: 3.59px;
  font-family: 'PP Neue Montreal';
}

.hero-home-section .dataViz {
  height: 84.5px;
  width: 84.5px;
  position: relative;
}

.hero-home-section .dataVizImage {
  width: 100%;
  height: 100%;
  object-fit: contain;
  will-change: transform, opacity;
}

/* Checklist Card */
.hero-home-section .cardParent {
  position: absolute;
  bottom: 10.8px;
  left: 0px;
  box-shadow: 0px 6.52px 13.05px rgba(40, 34, 34, 0.1), 0px 2.17px 6.52px rgba(40, 34, 34, 0.05);
  border-radius: 14.39px;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 7.2px;
  color: #6d717b;
  font-family: 'Avenir Next W1G';
}

/* NEW: Highlight effect for cardParent */
.hero-home-section .cardParentHighlight {
  box-shadow: 0px 12px 24px rgba(40, 34, 34, 0.15), 
              0px 4px 10px rgba(40, 34, 34, 0.08) !important;
  animation: subtleGlow 1s ease-in-out;
}

.hero-home-section .heroCard,
.hero-home-section .card2,
.hero-home-section .card3 {
  height: 28.8px;
  border-radius: 21.59px;
  display: flex;
  align-items: center;
  padding: 10.8px;
  box-sizing: border-box;
  gap: 5.4px;
}

.hero-home-section .heroCard {
  z-index: 0;
}

.hero-home-section .card2 {
  z-index: 2;
}

.hero-home-section .card3 {
  z-index: 4;
  color: #333f5b;
}

.hero-home-section .solarcheckSquareLinearIcon,
.hero-home-section .solarcheckSquareLinearIcon2 {
  width: 7.7px;
  position: relative;
  max-height: 100%;
  flex-shrink: 0;
}

.hero-home-section .title {
  position: relative;
  /* text-decoration: line-through; */
  letter-spacing: -0.02em;
  line-height: 150%;
  flex-shrink: 0;
}

.hero-home-section .title2 {
  width: 90.2px;
  position: relative;
  letter-spacing: -0.02em;
  line-height: 150%;
  display: inline-block;
  flex-shrink: 0;
}

.hero-home-section .frameInner,
.hero-home-section .lineDiv {
  align-self: stretch;
  height: 0.4px;
  position: relative;
  border-top: 0.4px solid #e3e3e5;
  box-sizing: border-box;
}

.hero-home-section .frameInner {
  z-index: 1;
}

.hero-home-section .lineDiv {
  z-index: 3;
}

.hero-home-section .wrapperSolarcursorLinear {
  width: 29.8px;
  height: 29.8px;
  position: absolute;
  margin: 0 !important;
  top: 15px;
  left: 10.8px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.hero-home-section .solarcursorLinearIcon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Enhanced Keyframe Animations */
@keyframes scorePulse {
  0%, 100% { 
    transform: scale(1);
  }
  50% { 
    transform: scale(1.12);
  }
}

/* NEW: Subtle glow animation for highlights */
@keyframes subtleGlow {
  0%, 100% {
    box-shadow: 0px 12px 24px rgba(40, 34, 34, 0.15), 
                0px 4px 10px rgba(40, 34, 34, 0.08);
  }
  50% {
    box-shadow: 0px 16px 32px rgba(40, 34, 34, 0.18), 
                0px 6px 14px rgba(40, 34, 34, 0.1);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tablet: 481px – 1024px */
@media (min-width: 481px) {
  .hero-home-section .heroSection {
    gap: 56px;
  }

  .hero-home-section .wrapper {
    max-width: 500px;
    gap: 32px;
  }

  .hero-home-section .heading {
    font-size: clamp(40px, 7vw, 70px);
    line-height: 95%;
  }

  .hero-home-section .heroSubheading {
    max-width: 400px;
    font-size: 18px;
  }

  .hero-home-section .button {
    height: 60px;
    font-size: 16px;
    padding: 24px 40px;
  }

  .hero-home-section .frameParent {
    max-width: 500px;
    height: 420px;
  }

  .hero-home-section .frameChild {
    width: 350px;
    height: 370px;
    top: 40px;
    left: 75px;

    object-position: center -60px;
  }

  .hero-home-section .card {
    width: 200px;
    padding: 16px;
    left: 30px;
  }

  .hero-home-section .frameItem {
    width: 24px;
    height: 24px;
  }

  .hero-home-section .identifier {
    font-size: 10px;
  }

  .hero-home-section .description {
    font-size: 8.5px;
  }

  .hero-home-section .calc {
    padding: 20px;
    bottom: 145px;
  }

  .hero-home-section .financialHealthScore {
    font-size: 11px;
    max-width: 70px;
  }

  .hero-home-section .frameContainer {
    font-size: 26px;
  }

  .hero-home-section .dataViz {
    width: 120px;
    height: 120px;
  }

  .hero-home-section .cardParent {
    bottom: 15px;
  }

  .hero-home-section .heroCard,
  .hero-home-section .card2,
  .hero-home-section .card3 {
    height: 42px;
    padding: 16px;
    gap: 8px;
  }

  .hero-home-section .solarcheckSquareLinearIcon,
  .hero-home-section .solarcheckSquareLinearIcon2 {
    width: 11px;
  }

  .hero-home-section .title,
  .hero-home-section .title2 {
    font-size: 10.5px;
  }
}

/* Laptop: 1025px – 1366px */
@media (min-width: 1025px) {
  .hero-home-section .heroSection {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    /* position: relative; */
    overflow: visible;
  }

  .hero-home-section .heroChild {
    display: none;
  }

  .hero-home-section .wrapper {
    flex: 1;
    max-width: none;
    align-items: flex-start;
    gap: 48px;
  }

  .hero-home-section .wrapperChild,
  .hero-home-section .wrapperItem {
    display: block;
  }

  .hero-home-section .wrapperChild {
    top: 460px;
    right: auto;
    left: 70%;
  }

  .hero-home-section .wrapperItem {
    top: -80px;
    right: auto;
    left: 70%;
  }

  .hero-home-section .eyebrow {
    align-self: flex-start;
  }

  .hero-home-section .subheadingWrapper {
    padding: 16px 24px;
  }

  .hero-home-section .subheading {
    font-size: 16px;
  }

  .hero-home-section .heading {
    width: 100%;
    max-width: 650px;
    font-size: clamp(60px, 5vw, 80px);
    line-height: 95%;
    text-align: left;
  }

  .hero-home-section .heroSubheading {
    width: 100%;
    max-width: 420px;
    font-size: 19px;
    line-height: 150%;
    text-align: left;
    justify-content: flex-start;
  }

  .hero-home-section .button {
    height: 64px;
    border-radius: 24px;
    padding: 24px 48px;
    font-size: 16px;
  }

  .hero-home-section .frameParent {
    flex: 0 0 auto;
    width: 600px;
    max-width: none;
    height: 650px;
    border-radius: 48px;
    font-size: 12px;
  }

  .hero-home-section .frameChild {
    top: 50px;
    left: 90px;
    width: 420px;
    height: 445px;
    border-radius: 48px;

    object-position: center -70px;
  }

  .hero-home-section .card {
    top: 0px;
    left: 36px;
    width: 260px;
    padding: 20px;
    border-radius: 26px;
  }

  .hero-home-section .frameItem {
    width: 30px;
    height: 30px;
  }

  .hero-home-section .frameGroup {
    gap: 12px;
  }

  .hero-home-section .identifierParent {
    gap: 6px;
  }

  .hero-home-section .identifier {
    font-size: 12px;
  }

  .hero-home-section .description {
    font-size: 10.5px;
  }

  .hero-home-section .calc {
    right: 0px;
    bottom: 185px;
    padding: 26px;
    gap: 22px;
    border-radius: 26px;
    font-size: 14px;
  }

  .hero-home-section .financialHealthScore {
    font-size: 16px;
    max-width: 101px;
  }

  .hero-home-section .frameContainer {
    font-size: 33px;
  }

  .hero-home-section .dataVizWrapper {
    font-size: 6.5px;
  }

  .hero-home-section .dataViz {
    height: 150px;
    width: 150px;
  }

  .hero-home-section .cardParent {
    bottom: 20px;
    border-radius: 26px;
    font-size: 13px;
  }

  .hero-home-section .heroCard,
  .hero-home-section .card2,
  .hero-home-section .card3 {
    height: 52px;
    padding: 20px;
    gap: 10px;
    border-radius: 38px;
  }

  .hero-home-section .solarcheckSquareLinearIcon,
  .hero-home-section .solarcheckSquareLinearIcon2 {
    width: 14px;
  }

  .hero-home-section .frameInner,
  .hero-home-section .lineDiv {
    height: 1px;
    border-top: 1px solid #e3e3e5;
  }

  .hero-home-section .title2 {
    width: 162px;
  }

  .hero-home-section .wrapperSolarcursorLinear {
    width: 24px;
    height: 24px;
    top: 128px;
    left: 20px;
  }

  .hero-home-section .solarcursorLinearIcon {
    width: 100%;
    height: 100%;
  }
}

/* Desktop: 1367px – 1920px */
@media (min-width: 1367px) {
  .hero-home-section .heroSection {
    gap: 80px;
  }

  .hero-home-section .wrapper {
    gap: 64px;
  }

  .hero-home-section .heading {
    max-width: 800px;
    font-size: 100px;
  }

  .hero-home-section .heroSubheading {
    max-width: 479px;
    font-size: 20px;
  }

  .hero-home-section .frameParent {
    width: 767px;
    height: 720px;
    font-size: 14.84px;
  }

  .hero-home-section .frameChild {
    top: 63px;
    left: 113.94px;
    width: 539.3px;
    height: 569px;
    object-position: center -100px;
  }

  .hero-home-section .card {
    left: 48px;
    width: 320px;
    padding: 24px;
    border-radius: 32px;
  }

  .hero-home-section .frameItem {
    width: 37.1px;
    height: 37.1px;
  }

  .hero-home-section .frameGroup {
    gap: 14.8px;
  }

  .hero-home-section .identifierParent {
    gap: 7.4px;
  }

  .hero-home-section .identifier {
    font-size: 14.84px;
  }

  .hero-home-section .description {
    font-size: 12.99px;
  }

  .hero-home-section .calc {
    bottom: 234.6px;
    padding: 32px;
    gap: 26.7px;
    border-radius: 32px;
    font-size: 17.41px;
  }

  .hero-home-section .financialHealthScore {
    font-size: 16px;
    max-width: 101px;
  }

  .hero-home-section .frameContainer {
    font-size: 40.98px;
  }

  .hero-home-section .financialHealthScoreContainer {
    padding: 0.8px 0px;
  }

  .hero-home-section .dataVizWrapper {
    font-size: 7.98px;
  }

  .hero-home-section .dataViz {
    height: 187.8px;
    width: 187.8px;
  }

  .hero-home-section .cardParent {
    bottom: 24px;
    border-radius: 32px;
    font-size: 16px;
  }

  .hero-home-section .heroCard,
  .hero-home-section .card2,
  .hero-home-section .card3 {
    height: 64px;
    padding: 24px;
    gap: 12px;
    border-radius: 48px;
  }

  .hero-home-section .solarcheckSquareLinearIcon,
  .hero-home-section .solarcheckSquareLinearIcon2 {
    width: 17.1px;
  }

  .hero-home-section .title2 {
    width: 200.6px;
  }

  .hero-home-section .wrapperSolarcursorLinear {
    width: 29.8px;
    height: 29.8px;
    top: 35px;
    left: 24px;
  }

  .hero-home-section .solarcursorLinearIcon {
    width: 100%;
    height: 100%;
  }
}

/* Large Desktop: 1921px – 2560px+ */
@media (min-width: 1921px) {
  .hero-home-section .heroSection {
    gap: clamp(80px, 6vw, 120px);
  }

  .hero-home-section .heading {
    font-size: clamp(100px, 6vw, 120px);
  }

  .hero-home-section .heroSubheading {
    font-size: clamp(20px, 1.2vw, 24px);
  }

  .hero-home-section .frameParent {
    width: clamp(767px, 45vw, 900px);
    height: clamp(720px, 42vw, 850px);
  }

  .hero-home-section .frameChild {
    width: clamp(539px, 35vw, 650px);
    height: clamp(569px, 37vw, 680px);
    object-position: center -120px;
  }

  .hero-home-section .financialHealthScore {
    font-size: clamp(17.41px, 1vw, 20px);
  }

  .hero-home-section .frameContainer {
    font-size: clamp(40.98px, 2.5vw, 48px);
  }
}