/* ============================================================
   ResiApp — Premium hero (brand: Outfit + blue liquid glass)
   Building cutout + floating liquid-glass feature cards.
   ============================================================ */

.phero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  background: #070b14;
}

/* ---------- Background: smooth navy, blends into next section ---------- */
.phero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(110% 80% at 76% 26%, rgba(59,130,246,0.22) 0%, transparent 58%),
    radial-gradient(80% 60% at 68% 92%, rgba(96,165,250,0.12) 0%, transparent 60%),
    linear-gradient(180deg, #0a1424 0%, #0a1120 52%, #08080d 100%);
}

/* faint sky specks, fade out before mid-screen */
.phero__stars {
  position: absolute;
  inset: 0 0 55% 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent);
  mask-image: linear-gradient(180deg, #000 30%, transparent);
  background-image:
    radial-gradient(1px 1px at 14% 22%, rgba(255,255,255,0.7), transparent 50%),
    radial-gradient(1px 1px at 30% 12%, rgba(255,255,255,0.45), transparent 50%),
    radial-gradient(1.3px 1.3px at 63% 16%, rgba(200,222,255,0.7), transparent 50%),
    radial-gradient(1px 1px at 83% 9%, rgba(255,255,255,0.5), transparent 50%),
    radial-gradient(1px 1px at 92% 24%, rgba(255,255,255,0.4), transparent 50%);
}

/* ---------- Layout wrap ---------- */
.phero__wrap {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 132px 2.5rem 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.phero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: center;
  flex: 1;
}

/* ---------- Left copy ---------- */
.phero__copy { max-width: 560px; }

.phero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: linear-gradient(160deg, rgba(255,255,255,0.1), rgba(255,255,255,0.03));
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  color: rgba(235,240,250,0.9);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.phero__badge svg { width: 14px; height: 14px; color: var(--blue-2); }

.phero__title {
  font-family: 'Sora', var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 5.2vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: #f4f6fb;
  margin: 1.6rem 0 0;
  text-wrap: balance;
}
.phero__title .accent {
  color: transparent;
  background: linear-gradient(180deg, #cfe1ff 0%, #7fb2fb 45%, #3b82f6 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.phero__lead {
  margin-top: 1.5rem;
  font-family: var(--font-body);
  font-size: clamp(1.02rem, 1.1vw, 1.2rem);
  line-height: 1.55;
  color: rgba(228,234,244,0.66);
  max-width: 26em;
}

.phero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.4rem;
}
.pbtn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 1.5rem;
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.pbtn svg { width: 18px; height: 18px; flex: none; }
.pbtn--primary {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(180deg, #5a9cf8 0%, #3b82f6 52%, #2563eb 100%);
  box-shadow: 0 16px 36px -14px rgba(59,130,246,0.65), inset 0 1px 0 rgba(255,255,255,0.45);
}
/* luxe sheen sweep */
.pbtn--primary::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-18deg);
  transition: left 0.7s cubic-bezier(.22,1,.36,1);
  pointer-events: none;
}
.pbtn--primary:hover::before { left: 130%; }
.pbtn--primary:hover { transform: translateY(-2px); box-shadow: 0 22px 46px -14px rgba(59,130,246,0.8), inset 0 1px 0 rgba(255,255,255,0.45); }
.pbtn--primary .pbtn__arrow { transition: transform 0.25s ease; }
.pbtn--primary:hover .pbtn__arrow { transform: translateX(4px); }
/* ghost = liquid glass */
.pbtn--ghost {
  position: relative;
  color: #eef2f9;
  background: linear-gradient(140deg, rgba(255,255,255,0.13), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(22px) saturate(1.8);
  -webkit-backdrop-filter: blur(22px) saturate(1.8);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
  overflow: hidden;
}
.pbtn--ghost:hover { background: linear-gradient(140deg, rgba(255,255,255,0.2), rgba(255,255,255,0.08)); transform: translateY(-2px); }
.pbtn--ghost .pbtn__play {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid var(--blue-2);
  display: inline-grid;
  place-items: center;
  color: var(--blue-2);
}
.pbtn--ghost .pbtn__play svg { width: 10px; height: 10px; }

/* ---------- Right art ---------- */
.phero__art {
  position: relative;
  align-self: stretch;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.phero__building {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  height: auto;
  margin-bottom: -1px;
  filter: drop-shadow(0 44px 64px rgba(0,0,0,0.55));
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 88%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 88%, transparent 100%);
}
@keyframes pheroRise {
  from { transform: translateY(26px) scale(0.99); }
  to   { transform: none; }
}
/* cool blue ground glow under the building */
.phero__art::before {
  content: '';
  position: absolute;
  z-index: 0;
  bottom: 3%;
  left: 50%;
  transform: translateX(-50%);
  width: 74%;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(96,165,250,0.22), transparent 70%);
  filter: blur(26px);
}

/* ---------- Floating LIQUID-GLASS cards ---------- */
.pcard {
  position: absolute;
  z-index: 2;
  display: flex;
  gap: 0.65rem;
  align-items: center;
  padding: 0.75rem 1rem 0.75rem 0.85rem;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(140deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.09) 100%);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(26px) saturate(1.8);
  -webkit-backdrop-filter: blur(26px) saturate(1.8);
  box-shadow:
    0 22px 50px -22px rgba(0,0,0,0.7),
    inset 0 1px 0 rgba(255,255,255,0.4),
    inset 0 -1px 0 rgba(0,0,0,0.2);
}
/* top sheen edge */
.pcard::before {
  content: '';
  position: absolute;
  top: 0; left: 16%; right: 16%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
}
@keyframes pcardIn {
  from { transform: translateY(10px) scale(0.97); }
  to   { transform: none; }
}

/* entrance motion only when motion is allowed — visible state is the base */
@media (prefers-reduced-motion: no-preference) {
  .phero__building { animation: pheroRise 1.1s cubic-bezier(.2,.7,.2,1) both; }
  .pcard { animation: pcardIn 0.7s ease both; animation-delay: var(--d, 0.5s); }
}
.pcard__ico {
  flex: none;
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--blue-2);
  background: rgba(96,165,250,0.16);
  border: 1px solid rgba(96,165,250,0.3);
}
.pcard__ico svg { width: 18px; height: 18px; }
.pcard__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  color: #f3f5fb;
  letter-spacing: -0.01em;
}
.pcard__desc {
  margin-top: 0.1rem;
  font-size: 0.72rem;
  line-height: 1.3;
  color: rgba(220,228,242,0.6);
}

/* desktop positions (relative to .phero__art) */
.pcard--rent   { top: 8%;  right: -1%; }
.pcard--lease  { top: 33%; left: 0; }
.pcard--tenant { top: 52%; right: -3%; }
.pcard--report { bottom: 14%; left: 1%; }

/* ---------- Bottom feature strip ---------- */
.phero__strip {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 1.8rem 0 2.2rem;
  margin-top: 1.4rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.pfeat {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  padding-left: 1.5rem;
  border-left: 1px solid rgba(255,255,255,0.06);
}
.pfeat:first-child { padding-left: 0; border-left: none; }
.pfeat__ico { flex: none; color: var(--blue-2); }
.pfeat__ico svg { width: 28px; height: 28px; }
.pfeat__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.96rem;
  color: #f1f3f9;
  letter-spacing: -0.01em;
}
.pfeat__desc {
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: rgba(220,228,242,0.55);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .pcard { padding: 0.65rem 0.8rem; }
  .pcard--rent { right: 0; }
}
@media (max-width: 960px) {
  .phero { min-height: 0; }
  .phero__wrap { padding: 116px 1.5rem 0; }
  .phero__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
    justify-items: center;
  }
  .phero__copy { max-width: 620px; }
  /* scale the headline down so it never overflows narrow viewports */
  .phero__title { font-size: clamp(2.6rem, 8vw, 4rem); }
  .phero__lead { margin-left: auto; margin-right: auto; }
  .phero__ctas { justify-content: center; }
  .phero__art { min-height: 0; margin-top: 1rem; flex-direction: column; align-items: center; }
  .phero__building { max-width: 440px; flex: none; }
  .phero__cards {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 0.75rem;
    width: 100%;
    max-width: 560px;
  }
  .pcard { position: static; text-align: left; animation: none; }
  .phero__strip { grid-template-columns: repeat(2, 1fr); gap: 1.25rem 1rem; }
  .pfeat:nth-child(3) { padding-left: 0; border-left: none; }
}
@media (max-width: 540px) {
  .phero__wrap { padding: 104px 1.1rem 0; }
  .phero__title { font-size: clamp(2rem, 9vw, 2.8rem); }
  .phero__cards { grid-template-columns: 1fr; }
  .pbtn { flex: 1; justify-content: center; }
}

/* ============================================================
   LUXURY SCROLL REVEAL
   Visible by default; hidden + animated only when JS is on
   and motion is allowed. .vis is added by the observer.
   ============================================================ */
.lux {
  transition:
    opacity 1s cubic-bezier(.22,1,.36,1),
    transform 1.1s cubic-bezier(.22,1,.36,1),
    filter 1.1s cubic-bezier(.22,1,.36,1);
  transition-delay: calc(var(--li, 0) * 90ms);
  will-change: opacity, transform;
}
body.js-lux .lux {
  opacity: 0;
  transform: translateY(34px);
}
body.js-lux .lux--blur { filter: blur(6px); }
body.js-lux .lux.vis {
  opacity: 1;
  transform: none;
  filter: none;
}
@media (prefers-reduced-motion: reduce) {
  body.js-lux .lux { opacity: 1; transform: none; filter: none; transition: none; }
}

/* parallax layers driven by --pscroll (0..1) set in JS */
.phero__art { transition: transform 0.1s linear; }
