.hero-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding: 60px 60px 90px;
  background: radial-gradient(circle at 80% 30%, #3a1466 0%, #0c0617 55%),
    #0c0617;
  color: #ffffff;
  margin-top: -5px;
}

/* ---------- LEFT SIDE ---------- */
.hero-left {
  flex: 1 1 480px;
  max-width: 600px;
}

.hero-heading {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
}

.hero-highlight {
  color: #b388ff;
}

.hero-paragraph {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.6;
  color: #cfc8de;
  max-width: 520px;
}

.hero-featureGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.00) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: 24px 16px;
}

.hero-featureItem {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 15px;
  font-size: 14px;
  color: #e4dfee;
}

.hero-featureIconCircle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.00) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #CB93FF;
}

.hero-demoButton {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  background: linear-gradient(90deg, #BA70FF 0%, #2AF 100%);
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.hero-trustRow {
  display: flex;
  gap: 24px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.hero-trustItem {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #cfc8de;
}

.hero-trustItem svg {
  color: #4ade80;
}

/* ---------- RIGHT SIDE ---------- */
.hero-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 420px;
  max-width: 480px;
  width: 100%;
  min-height: 480px;
  margin-right: 60px;
  top: 35px;
}

.hero-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1 1 0;
  min-width: 0;
}

.hero-colCenter {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.hero-colLeft {
  position: absolute;
  top: 0;
  left: -10px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 90px;
  z-index: 1;
}

.hero-colRight {
  position: absolute;
  top: 60px;
  right: -20px;
  width: 100px;
  height: auto;
  z-index: 4;
}

.hero-agentImage {
  margin-top: 21px;
  margin-left: -99px;
  position: relative;
  z-index: 3;
  width: 300%;
  max-width: 360px;
  height: auto;
}

.hero-categoryItem {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #e4dfee;
  text-align: center;
}

.hero-categoryItem svg {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.00) 100%);
  border-radius: 50%;
  padding: 20px;
  width: 73.112px;
  height: 73.112px;
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
}

.hero-categoryItem--left {
  align-self: flex-start;
}

.hero-phoneWrapper {
  position: relative;
  width: 100%;
  max-width: 248.072px;
  height: 488.877px;
  border-radius: 36px;
  top: 50px;
}

.hero-categoryItem--realEstate {
  position: absolute;
  top: -70px;
  left: 50%;
  transform: translateX(-50%);
}

/* notification cards stacked near the bottom of the phone */
.hero-notificationCards {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 90%;
}

.hero-notificationCard {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #ffffff;
  color: #0c0617;
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.hero-notificationTitle {
  font-size: 13px;
  font-weight: 600;
}

.hero-notificationText {
  font-size: 11px;
  color: #6b6b6b;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero-hero {
    padding: 50px 30px 80px;
  }

  .hero-heading {
    font-size: 36px;
  }
}

@media (max-width: 900px) {
  .hero-hero {
    flex-direction: column;
    padding: 20px 30px 30px;
    gap: 30px;
  }

  .hero-right {
    height: auto;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .hero-notificationCards {
    position: static;
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 600px) {
  .hero-heading {
    font-size: 28px;
  }

  .hero-featureGrid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-phoneWrapper {
    width: 220px;
    height: 440px;
  }
}

@media (max-width: 700px) {
  .hero-right {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .hero-col {
    width: 100%;
    max-width: 320px;
  }

  .hero-colLeft,
  .hero-colCenter,
  .hero-colRight {
    justify-content: flex-start;
  }

  .hero-agentImage {
    margin-top: 0;
    margin-left: 0;
  }
}

@media (max-width: 380px) {
  .hero-phoneWrapper {
    height: 360px;
  }
}

/* ---------- MOBILE REORDER (phone + icons + sections) ---------- */
@media (max-width: 600px) {
  .hero-left {
    display: contents;
  }

  .hero-heading {
    order: 1;
    width: 100%;
  }

  .hero-right {
    order: 2;
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 6px;
    row-gap: 8px;
    align-items: start;
    width: 100%;
    max-width: 100%;
    margin: 24px 0;
    position: relative;
    top: 0;
    min-height: auto;
  }

  .hero-paragraph {
    order: 4;
    width: 100%;
    margin-top: 4px;
  }

  .hero-demoButton {
    order: 3;
    margin-top: -90px;
  }

  .hero-trustRow {
    order: 5;
    width: 100%;
  }

  .hero-featureGrid {
    order: 6;
    width: 100%;
  }

  /* flatten the 3 column-blocks so every icon + the phone become
     direct grid items of .hero-right (layout-wise), while their
     real DOM ancestry stays intact for selector purposes below */
  .hero-colLeft,
  .hero-colCenter,
  .hero-colRight {
    display: contents;
  }

  .hero-categoryItem--realEstate {
    position: static;
    transform: none;
  }

  .hero-phoneWrapper {
    top: 0;
    max-width: 180.673px;
    height: 362.727px;
  }

  .hero-agentImage {
    display: none;
  }

  /* explicit grid placement using real DOM ancestry —
     selectors must reference the actual parent, since
     display:contents flattens layout but not the DOM tree */
  .hero-colLeft > .hero-categoryItem:nth-child(1) {
    grid-column: 2;
    grid-row: 1;
  }

  .hero-colLeft > .hero-categoryItem:nth-child(2) {
    grid-column: 2 / span 2;
    grid-row: 3;
    justify-self: center;
  }

  .hero-colLeft > .hero-categoryItem:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }

  .hero-colCenter > .hero-categoryItem--realEstate {
    grid-column: 3;
    grid-row: 1;
  }

  .hero-colCenter > .hero-phoneWrapper {
    grid-column: 1;
    grid-row: 1 / span 3;
    align-self: start;
  }

  .hero-colRight > .hero-categoryItem {
    grid-column: 3;
    grid-row: 2;
  }

  .hero-colRight > .hero-agentImage {
    display: none;
  }

  .hero-categoryItem svg {
  width: 55.017px;
  height: 55.017px;
  aspect-ratio: 1 / 1;
  padding: 14px; /* adjusted slightly to fit the new size proportionally */
}

  .hero-categoryItem span {
    font-size: 11px;
  }
}


