/* ================================================================
   ANYONE HOME | REQUEST A DEMO — CINEMATIC HERO V2
   Replacement for the previous ah-demo-hero stylesheet.
   All selectors are unique to the new hero section.
   ================================================================ */

.ah-demo-v2 {
  --demo-lime: #87cf36;
  --demo-ice: #d1e0eb;
  --demo-drift: 0px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(155px, 13vw, 215px) 0 0 !important;
  background:
    radial-gradient(
      ellipse 38% 42% at 78% 38%,
      rgba(0, 139, 158, 0.29),
      transparent 90%
    ),
    radial-gradient(
      ellipse 58% 35% at -8% 91%,
      rgba(2, 96, 133, 0.22),
      transparent 85%
    ),
    linear-gradient(118deg, #06162d 12%, #071f36 54%, #043950 100%) !important;
  box-shadow: none !important;
}

.ah-demo-v2::before {
  content: "";
  position: absolute;
  inset: 2% -18% 12% 25%;
  z-index: -1;
  pointer-events: none;
  background: url("https://anyonedevelop.wpenginepowered.com/wp-content/uploads/2025/05/home-lease-better-bg.svg")
    center / cover no-repeat;
  opacity: 0.13;
  mix-blend-mode: screen;
  transform: translate3d(0, var(--demo-drift), 0);
}

.ah-demo-v2::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.018) 50%,
      transparent 100%
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0 119px,
      rgba(170, 224, 234, 0.024) 120px 121px
    );
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent,
    black 25%,
    black 70%,
    transparent 98%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent,
    black 25%,
    black 70%,
    transparent 98%
  );
}

/* A deliberate two-stage composition: statement + live form. */
.ah-demo-v2 .ah-demo-v2__main.et_pb_row {
  position: relative;
  z-index: 2;
  display: grid !important;
  grid-template-columns: minmax(0, 1.13fr) minmax(0, 0.87fr);
  align-items: center;
  column-gap: clamp(36px, 6vw, 110px);
  width: min(88%, 1580px) !important;
  max-width: 1580px !important;
  padding: 0 !important;
  margin: 0 auto !important;
}

.ah-demo-v2 .ah-demo-v2__main > .et_pb_column {
  position: relative;
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  margin: 0 !important;
}

.ah-demo-v2 .ah-demo-v2__intro {
  padding: 0 !important;
  margin: 0 !important;
}

.ah-demo-v2 .ah-demo-v2__intro .et_pb_text_inner {
  color: var(--demo-ice) !important;
}

.ah-demo-v2 .ah-demo-v2__intro h1 {
  max-width: 900px;
  margin: 0 0 clamp(30px, 3.8vw, 57px) !important;
  padding: 0 !important;
  color: #fff !important;
  font-size: clamp(57px, 6.15vw, 112px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.064em !important;
  line-height: 0.985em !important;
  text-transform: uppercase !important;
  text-wrap: balance;
}

.ah-demo-v2 .ah-demo-v2__intro h1 .ah-demo-v2__accent,
.ah-demo-v2 .ah-demo-v2__intro h1 .ah-demo-v2__accent * {
  color: var(--demo-lime) !important;
}

/* Existing subtitle, unchanged. */
.ah-demo-v2 .ah-demo-v2__intro .et_pb_text_inner > span {
  position: relative;
  display: block !important;
  max-width: 590px;
  margin: 0 0 23px;
  padding: 0 0 0 23px !important;
  border-left: 3px solid var(--demo-lime);
  color: #f0f8fb !important;
  font-size: clamp(20px, 1.72vw, 27px) !important;
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.35em !important;
}

.ah-demo-v2 .ah-demo-v2__description,
.ah-demo-v2 .ah-demo-v2__intro .et_pb_text_inner > p {
  max-width: 580px;
  padding: 0;
  margin: 0 !important;
  color: #b7cbd9 !important;
  font-size: clamp(15px, 1.06vw, 17px);
  line-height: 1.8 !important;
  font-weight: 400;
}

/* Form itself is real, interactive Marketo; only its outer frame moves. */
.ah-demo-v2 .ah-demo-v2__stage {
  isolation: isolate;
  padding: 24px 5px 24px 10px;
  perspective: 1100px;
}

.ah-demo-v2 .ah-demo-v2__stage::before {
  content: "";
  position: absolute;
  inset: 7% -4% 2% 4%;
  z-index: -1;
  border: 1px solid rgba(135, 207, 54, 0.34);
  border-radius: 27px;
  background: linear-gradient(
    155deg,
    rgba(102, 188, 198, 0.19),
    rgba(4, 28, 54, 0.14) 55%,
    rgba(135, 207, 54, 0.1)
  );
  box-shadow: 0 0 78px rgba(68, 212, 179, 0.07);
  transform: rotate(3deg) translate(12px, 12px);
  pointer-events: none;
}

.ah-demo-v2 .ah-demo-v2__stage::after {
  content: "";
  position: absolute;
  z-index: -2;
  inset: -60px -70px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    ellipse,
    rgba(13, 151, 156, 0.24),
    transparent 68%
  );
  filter: blur(16px);
}

.ah-demo-v2 .ah-demo-v2__form.et_pb_code {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: none;
  min-height: 0 !important;
  margin: 0 !important;
  padding: clamp(30px, 3.15vw, 52px) !important;
  border: 1px solid rgba(228, 246, 250, 0.94) !important;
  border-radius: 22px !important;
  overflow: visible;
  background: #fff !important;
  box-shadow:
    0 45px 110px rgba(0, 7, 22, 0.55),
    0 0 0 8px rgba(164, 239, 230, 0.045) !important;
}

.ah-demo-v2 .ah-demo-v2__form::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 52px;
  width: 37%;
  height: 4px;
  border-radius: 0 0 5px 5px;
  background: linear-gradient(90deg, var(--demo-lime), #50d4c0);
  box-shadow: 0 0 22px rgba(135, 207, 54, 0.6);
}

.ah-demo-v2 .ah-demo-v2__form h3 {
  max-width: 430px;
  margin: 0 0 27px !important;
  padding: 0 !important;
  color: #061d34 !important;
  font-size: clamp(20px, 1.9vw, 29px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.045em;
  line-height: 1.2 !important;
  text-transform: none !important;
}

.ah-demo-v2 .ah-demo-v2__form #mktoForm_5569 {
  max-width: 100%;
}

/* A small, purely graphical orbital control-plane behind the live form. */
.ah-demo-v2 .ah-demo-v2__visual-module.et_pb_code {
  position: absolute !important;
  inset: -90px -96px -72px -96px;
  z-index: 0;
  margin: 0 !important;
  width: auto !important;
  overflow: visible;
  pointer-events: none;
}

.ah-demo-v2__visual,
.ah-demo-v2__visual > span {
  position: absolute;
  display: block;
  pointer-events: none;
}
.ah-demo-v2__visual {
  inset: 0;
}

.ah-demo-v2__ring {
  width: 90%;
  aspect-ratio: 1;
  left: 7%;
  top: 0;
  border: 1px solid rgba(94, 206, 197, 0.17);
  border-radius: 50%;
}
.ah-demo-v2__ring--b {
  width: 112%;
  left: -5%;
  top: -9%;
  border-color: rgba(135, 207, 54, 0.12);
  border-style: dashed;
}
.ah-demo-v2__halo {
  width: 43%;
  aspect-ratio: 1;
  top: 4%;
  right: 3%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(135, 207, 54, 0.18),
    transparent 71%
  );
  filter: blur(30px);
}

.ah-demo-v2__signal {
  display: flex !important;
  align-items: end;
  gap: 5px;
  height: 48px;
  padding: 12px 16px;
  border: 1px solid rgba(183, 233, 231, 0.19);
  border-radius: 12px;
  background: rgba(7, 39, 59, 0.8);
  box-shadow: 0 17px 45px rgba(0, 13, 30, 0.3);
  backdrop-filter: blur(10px);
}
.ah-demo-v2__signal i {
  display: block;
  width: 5px;
  border-radius: 3px;
  background: var(--demo-lime);
  opacity: 0.9;
}
.ah-demo-v2__signal i:nth-child(1) {
  height: 13px;
}
.ah-demo-v2__signal i:nth-child(2) {
  height: 24px;
}
.ah-demo-v2__signal i:nth-child(3) {
  height: 17px;
}
.ah-demo-v2__signal i:nth-child(4) {
  height: 28px;
}
.ah-demo-v2__signal--a {
  top: 7%;
  left: 0;
  transform: rotate(-6deg);
}
.ah-demo-v2__signal--b {
  bottom: 9%;
  right: -1%;
  transform: rotate(5deg);
}

.ah-demo-v2__crosshair {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(135, 207, 54, 0.78);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(135, 207, 54, 0.45);
}
.ah-demo-v2__crosshair--a {
  top: 1%;
  right: 23%;
}
.ah-demo-v2__crosshair--b {
  bottom: 5%;
  left: 17%;
  width: 7px;
  height: 7px;
}

/* Three original blurbs recompose as an anchored feature band. */
.ah-demo-v2 .ah-demo-v2__benefits-row.et_pb_row {
  position: relative;
  z-index: 2;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(88%, 1580px) !important;
  max-width: 1580px !important;
  padding: 0 !important;
  margin: clamp(85px, 9vw, 150px) auto 0 !important;
}

.ah-demo-v2 .ah-demo-v2__benefit-col.et_pb_column {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  margin: 0 !important;
  border: 1px solid rgba(137, 194, 207, 0.18);
  border-radius: 18px;
  background: linear-gradient(
    142deg,
    rgba(17, 60, 83, 0.78),
    rgba(8, 38, 60, 0.49)
  );
  box-shadow: 0 14px 38px rgba(0, 10, 27, 0.13);
  backdrop-filter: blur(12px);
  transition:
    border-color 0.3s,
    background 0.3s,
    box-shadow 0.3s;
}

.ah-demo-v2 .ah-demo-v2__benefit-col:hover {
  border-color: rgba(135, 207, 54, 0.38);
  background: linear-gradient(
    142deg,
    rgba(19, 74, 91, 0.85),
    rgba(8, 42, 65, 0.55)
  );
  box-shadow: 0 20px 50px rgba(0, 10, 27, 0.27);
}

.ah-demo-v2 .ah-demo-v2__benefit.et_pb_blurb {
  padding: clamp(22px, 2.25vw, 36px) !important;
  margin: 0 !important;
}

.ah-demo-v2 .ah-demo-v2__benefit .et_pb_blurb_content {
  display: flex;
  align-items: flex-start;
  max-width: none;
  margin: 0 !important;
}

.ah-demo-v2 .ah-demo-v2__benefit .et_pb_main_blurb_image {
  flex: 0 0 42px;
  width: 42px !important;
  margin: 0 13px 0 0 !important;
  text-align: left;
}

.ah-demo-v2 .ah-demo-v2__benefit .et-pb-icon {
  color: var(--demo-lime) !important;
  font-size: 35px !important;
  text-shadow: 0 0 20px rgba(135, 207, 54, 0.28);
}

.ah-demo-v2 .ah-demo-v2__benefit .et_pb_blurb_container {
  min-width: 0;
  padding: 0 !important;
}

.ah-demo-v2 .ah-demo-v2__benefit .et_pb_blurb_description,
.ah-demo-v2 .ah-demo-v2__benefit .et_pb_blurb_description p {
  color: #c3d5df !important;
  font-size: clamp(13px, 0.95vw, 15px);
  line-height: 1.65 !important;
}

.ah-demo-v2 .ah-demo-v2__benefit strong {
  color: #fff !important;
  font-weight: 800 !important;
}

/* The partner carousel belongs to the dark stage, just as on home. */
.ah-demo-v2 .ah-demo-v2__logos.et_pb_row {
  position: relative;
  z-index: 2;
  width: min(88%, 1580px) !important;
  max-width: 1580px !important;
  padding: 15px 0 24px !important;
  margin: clamp(55px, 6vw, 90px) auto 0 !important;
  border-top: 1px solid rgba(167, 214, 223, 0.16);
}

.ah-demo-v2 .ah-demo-v2__logos > .et_pb_column {
  width: 100% !important;
  margin: 0 !important;
}

.ah-demo-v2 .ah-demo-v2__logos .et_pb_code {
  margin: 0 !important;
}
.ah-demo-v2 .ah-demo-v2__logos .logo-carousel {
  padding: 13px 0;
  opacity: 0.68;
}
.ah-demo-v2 .ah-demo-v2__logos .logo-carousel-group img {
  filter: grayscale(1) brightness(1.75);
}

@media (max-width: 1280px) {
  .ah-demo-v2 .ah-demo-v2__intro h1 {
    font-size: clamp(55px, 5.7vw, 76px) !important;
  }
  .ah-demo-v2 .ah-demo-v2__main.et_pb_row {
    gap: 40px;
  }
  .ah-demo-v2 .ah-demo-v2__benefit.et_pb_blurb {
    padding: 23px !important;
  }
}

@media (max-width: 980px) {
  .ah-demo-v2 {
    padding-top: 155px !important;
  }
  .ah-demo-v2 .ah-demo-v2__main.et_pb_row {
    display: flex !important;
    flex-direction: column;
    gap: 65px;
    width: min(88%, 760px) !important;
  }
  .ah-demo-v2 .ah-demo-v2__intro h1 {
    font-size: clamp(55px, 8vw, 83px) !important;
  }
  .ah-demo-v2 .ah-demo-v2__stage {
    width: 100% !important;
  }
  .ah-demo-v2 .ah-demo-v2__benefits-row.et_pb_row {
    grid-template-columns: 1fr;
    width: min(88%, 760px) !important;
    gap: 14px;
    margin-top: 75px !important;
  }
  .ah-demo-v2 .ah-demo-v2__logos.et_pb_row {
    width: 88% !important;
  }
}

@media (max-width: 600px) {
  .ah-demo-v2 {
    padding-top: 125px !important;
  }
  .ah-demo-v2 .ah-demo-v2__main.et_pb_row,
  .ah-demo-v2 .ah-demo-v2__benefits-row.et_pb_row {
    width: 90% !important;
  }
  .ah-demo-v2 .ah-demo-v2__main.et_pb_row {
    gap: 32px;
  }
  .ah-demo-v2 .ah-demo-v2__intro h1 {
    font-size: clamp(42px, 11vw, 64px) !important;
    margin-bottom: 30px !important;
  }
  .ah-demo-v2 .ah-demo-v2__intro .et_pb_text_inner > span {
    font-size: 20px !important;
  }
  .ah-demo-v2 .ah-demo-v2__stage {
    padding: 12px 0 12px 0;
  }
  .ah-demo-v2 .ah-demo-v2__form.et_pb_code {
    padding: 27px 18px !important;
    border-radius: 16px !important;
  }
  .ah-demo-v2 .ah-demo-v2__stage::before {
    inset: 7% -2% 1% 2%;
  }
  .ah-demo-v2 .ah-demo-v2__visual-module.et_pb_code {
    inset: -20px -17px;
  }
  .ah-demo-v2__signal {
    display: none !important;
  }
  .ah-demo-v2 .ah-demo-v2__benefits-row.et_pb_row {
    margin-top: 48px !important;
  }
  .ah-demo-v2 .ah-demo-v2__logos.et_pb_row {
    width: 100% !important;
    margin-top: 54px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ah-demo-v2::before {
    transform: none !important;
  }
  .ah-demo-v2 .ah-demo-v2__benefit-col {
    transition: none;
  }
}
