/* =========================================================
   Handrise — SKYLINE HERO  (prefix: hf-)
   Real estate x finance: buildings rise like a growth chart.
   ========================================================= */

.hf {
  --gold: #D4AF6A;
  --gold-hi: #F2D9A0;
  --ink: #050C1A;
  --up: #7be3a4;
  --mx: 50%;
  --my: 40%;
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: linear-gradient(180deg, #040A16 0%, #07132A 55%, #0A1A36 100%);
  font-family: "Inter", var(--hr-body), sans-serif;
}

/* ---------- atmosphere ---------- */
.hf-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hf-card-in img{
  height: 100%;
}
/* blueprint grid */
.hf-grid {
  position: absolute;
  inset: -64px 0 0 0;
  background-image:
    linear-gradient(rgba(212, 175, 106, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 106, .07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 38%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 38%, #000 0%, transparent 75%);
  animation: hf-grid 14s linear infinite;
}

@keyframes hf-grid { to { transform: translateY(64px) } }

/* dawn glow rising behind the skyline */
.hf-dawn {
  position: absolute;
  left: 50%;
  bottom: -18%;
  width: 130%;
  height: 80%;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse 50% 60% at 50% 100%, rgba(242, 207, 139, .42) 0%, rgba(212, 175, 106, .16) 38%, transparent 70%);
  animation: hf-dawn 9s ease-in-out infinite;
}

@keyframes hf-dawn { 0%, 100% { opacity: .75; transform: translateX(-50%) scale(1) } 50% { opacity: 1; transform: translateX(-50%) scale(1.06) } }

/* cursor spotlight */
.hf-spot {
  position: absolute;
  inset: 0;
  background: radial-gradient(520px circle at var(--mx) var(--my), rgba(242, 217, 160, .10), transparent 62%);
}

/* soft top aurora */
.hf-aurora {
  position: absolute;
  top: -30%;
  left: 50%;
  width: 90%;
  height: 70%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 50%, rgba(212, 175, 106, .14), transparent 65%);
  filter: blur(30px);
}

.hf-star { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; opacity: 0; animation: hf-tw 4s ease-in-out infinite }
@keyframes hf-tw { 0%, 100% { opacity: 0 } 50% { opacity: .8 } }

/* ---------- content ---------- */
.hr .hf .auto-container {
  max-width: none;
  padding-left: clamp(20px, 4vw, 72px);
  padding-right: clamp(20px, 4vw, 72px);
}

.hf-main {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 104px;
  padding-bottom: 4px;
}
.set-sec{
  background-image: url(../images/Golden-Skyline-Real-Estate-Growth.png);
  background-size: cover;
}
.set-sec::after {
  position: absolute;
  content:'';
  background-color: #040a16b5;
  width: 100%;
  height: 100%;
  top: 0;
  bottom: 0;
}
.hf-copy { position: relative; z-index: 3; width: 100%; max-width: 940px; margin: 0 auto; text-align: center }

.hf-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px 9px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .92);
  background: linear-gradient(135deg, rgba(212, 175, 106, .18), rgba(212, 175, 106, .05));
  border: 1px solid rgba(212, 175, 106, .4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-bottom: 10px;
  animation: hf-fade .9s ease .2s both;
}

.hf-pill i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--up) }
.hf-pill i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: hf-ping 1.8s ease-out infinite }

@keyframes hf-ping { 0% { transform: scale(1); opacity: .8 } 100% { transform: scale(3); opacity: 0 } }
@keyframes hf-fade { from { opacity: 0; transform: translateY(12px) } to { opacity: 1; transform: none } }
@keyframes hf-opa { from { opacity: 0 } to { opacity: 1 } }

.hf h1 {
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: clamp(42px, 4.35vw, 70px);
  line-height: 1.02;
  letter-spacing: -.01em;
  color: #fff;
  margin: 0 0 22px;
}

.hf-line { display: block; padding-bottom: .05em; text-wrap: balance }

.hf-w { display: inline-block; overflow: hidden; vertical-align: top; padding: .04em .03em .12em; margin: -.04em -.03em -.12em }

.hf-w > span {
  display: inline-block;
  transform: translate3d(0, 115%, 0) rotateX(-40deg);
  transform-origin: 50% 100%;
  animation: hf-rise 1.1s cubic-bezier(.16, .84, .24, 1) calc(.4s + var(--i) * .1s) forwards;
}

@keyframes hf-rise { to { transform: none } }

.hf-gold .hf-w > span {
  font-style: italic;
  background: linear-gradient(100deg, #B98F46 0%, #E9CE98 24%, #FFF3D1 40%, #D4AF6A 58%, #E9CE98 78%, #B98F46 100%);
  background-size: 280% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation:
    hf-rise 1.1s cubic-bezier(.16, .84, .24, 1) calc(.4s + var(--i) * .1s) forwards,
    hf-shine 7s ease-in-out 2.4s infinite;
}

@keyframes hf-shine { 0% { background-position: 100% 0 } 60%, 100% { background-position: 0 0 } }

.hf-lede {
  font-size: 19px;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto 20px;
  color: rgba(255, 255, 255, .8);
  animation: hf-fade 1s ease 1.4s both;
}

.hf-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px 26px;
  animation: hf-fade 1s ease 1.55s both;
}

.hf-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 19px 32px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 17px;
  color: #1a1204;
  background: linear-gradient(135deg, #F7E2B0 0%, #D4AF6A 50%, #B98F46 100%);
  box-shadow: 0 0 0 1px rgba(255, 241, 204, .55) inset, 0 16px 44px -12px rgba(212, 175, 106, .8), 0 0 70px -14px rgba(212, 175, 106, .6);
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s;
}

.hf-cta::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .7), transparent);
  transform: skewX(-20deg);
  animation: hf-cta 5s ease-in-out 2.8s infinite;
}

@keyframes hf-cta { 0% { left: -60% } 22%, 100% { left: 140% } }

.hf-cta:hover { color: #1a1204; box-shadow: 0 0 0 1px rgba(255, 241, 204, .8) inset, 0 20px 54px -10px rgba(212, 175, 106, 1), 0 0 90px -10px rgba(212, 175, 106, .8) }
.hf-cta svg { transition: transform .35s }
.hf-cta:hover svg { transform: translateX(5px) }

.hf-ghost {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 28px;
  border-radius: 14px;
  font-weight: 500;
  font-size: 17px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: .3s;
}

.hf-ghost:hover { color: var(--gold-hi); border-color: var(--gold); background: rgba(212, 175, 106, .12) }
.hf-ghost svg { color: var(--gold) }

/* trust row */
.hf-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin-top: 30px;
  font-size: 14px;
  color: rgba(255, 255, 255, .66);
  animation: hf-fade 1s ease 1.75s both;
}

.hf-trust span { display: inline-flex; align-items: center; gap: 8px }
.hf-trust svg { color: var(--gold) }

/* ---------- floating finance cards ---------- */
.hf-card {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 248px;
  padding: 16px 16px 14px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(20, 36, 66, .78), rgba(10, 20, 40, .62));
  border: 1px solid rgba(212, 175, 106, .26);
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .85), 0 1px 0 rgba(255, 241, 204, .14) inset;
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  text-align: left;
  display: none;
  animation: hf-opa 1.2s ease var(--ed, 2s) both;
}

.hf-card-in { animation: hf-bob var(--fd, 7s) ease-in-out infinite }
@keyframes hf-bob { 0%, 100% { transform: translateY(6px) } 50% { transform: translateY(-6px) } }

.hf-card-l { left: clamp(20px, 3.2vw, 64px); margin-top: -118px; --ed: 2s }
.hf-card-r { right: clamp(20px, 3.2vw, 64px); margin-top: -126px; --ed: 2.25s; --fd: 8s }

.hf-card-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px }
.hf-tag, .hf-badge { white-space: nowrap }
.hf-tag { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-hi); display: inline-flex; align-items: center; gap: 6px }
.hf-badge { font-size: 10.5px; padding: 4px 9px; border-radius: 999px; color: var(--up); background: rgba(123, 227, 164, .1); border: 1px solid rgba(123, 227, 164, .3) }

.hf-card h4 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: 20px; line-height: 1.15; color: #fff; margin: 0 0 3px }
.hf-card small { display: block; font-size: 12px; color: rgba(255, 255, 255, .55); margin-bottom: 14px }

.hf-rows { border-top: 1px solid rgba(255, 255, 255, .09) }
.hf-rows div { display: flex; justify-content: space-between; align-items: baseline; padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); font-size: 13px; color: rgba(255, 255, 255, .62) }
.hf-rows div:last-child { border-bottom: 0 }
.hf-rows b { color: #fff; font-weight: 600; font-size: 14.5px; font-variant-numeric: tabular-nums }
.hf-rows b.up { color: var(--up) }

.hf-bars { display: flex; align-items: flex-end; gap: 5px; height: 36px; margin-top: 10px }
.hf-bars i { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--gold-hi), rgba(212, 175, 106, .18)); height: 0; animation: hf-bar 1.4s cubic-bezier(.2, .8, .2, 1) calc(2.4s + var(--k) * .08s) forwards, hf-bar-pulse 4s ease-in-out calc(4s + var(--k) * .15s) infinite }
@keyframes hf-bar { to { height: var(--h) } }
@keyframes hf-bar-pulse { 0%, 100% { filter: brightness(1) } 50% { filter: brightness(1.35) } }

/* donut */
.hf-donut { position: relative; width: 132px; height: 132px; margin: 4px auto 14px }
.hf-donut svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible }
.hf-donut circle { fill: none; stroke-width: 11; stroke-linecap: round }
.hf-donut .bg { stroke: rgba(255, 255, 255, .07) }
.hf-donut .a1, .hf-donut .a2, .hf-donut .a3 { stroke-dasharray: var(--len) 400; stroke-dashoffset: var(--len); animation: hf-arc 1.6s cubic-bezier(.2, .8, .2, 1) var(--ad) forwards }
@keyframes hf-arc { to { stroke-dashoffset: 0 } }
.hf-donut-c { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; line-height: 1.15 }
.hf-donut-c b { display: block; font-family: "Cormorant Garamond", Georgia, serif; font-size: 34px; font-weight: 600; color: #fff }
.hf-donut-c span { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .55) }

.hf-legend { display: grid; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, .78) }
.hf-legend li { display: flex; align-items: center; gap: 10px }
.hf-legend i { width: 9px; height: 9px; border-radius: 3px }
.hf-legend em { margin-left: auto; font-style: normal; font-size: 11px; color: rgba(255, 255, 255, .45) }

.hf-rera { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .09); font-size: 12.5px; color: rgba(255, 255, 255, .7) }
.hf-rera svg { color: var(--up) }

@media (min-width: 1340px) { .hf-card { display: block } }

/* ---------- skyline ---------- */
.hf-sky {
  position: relative;
  z-index: 2;
  height: clamp(190px, 29svh, 310px);
  margin-top: 0;
  animation: hf-opa 1s ease .8s both;
}

.hf-city { position: absolute; inset: 0; width: 100%; height: 100%; display: block }

.hf-sky::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 60%;
  background: linear-gradient(180deg, transparent, rgba(4, 10, 22, .55));
  pointer-events: none;
}

.hf-axis {
  position: absolute;
  left: clamp(20px, 4vw, 72px);
  top: 4px;
  z-index: 2;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: hf-opa 1s ease 2.6s both;
}

.hf-axis::before { content: ""; width: 26px; height: 1px; background: var(--gold) }

/* ---------- ticker ---------- */
.hf-ticker {
  position: relative;
  z-index: 4;
  overflow: hidden;
  border-top: 1px solid rgba(212, 175, 106, .3);
  background: linear-gradient(180deg, rgba(212, 175, 106, .1), rgba(5, 12, 26, .92));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.hf-track { display: flex; width: max-content; animation: hf-marq 48s linear infinite }
.hf-ticker:hover .hf-track { animation-play-state: paused }
@keyframes hf-marq { to { transform: translateX(-50%) } }

.hf-tk {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 34px;
  font-size: 14px;
  white-space: nowrap;
  color: rgba(255, 255, 255, .72);
  font-variant-numeric: tabular-nums;
}

.hf-tk b { color: #fff; font-weight: 600 }
.hf-tk .t-up { color: var(--up); font-weight: 600 }
.hf-tk .t-gold { color: var(--gold-hi); font-weight: 600 }
.hf-tk svg { color: var(--gold) }
.hf-tk::after { content: "◆"; margin-left: 22px; font-size: 8px; color: rgba(212, 175, 106, .55) }

/* ---------- responsive ---------- */
@media (max-width: 991px) {
  .hf { min-height: auto }
  .hf-main { padding-top: 124px; padding-bottom: 14px }
  .hf h1 { font-size: clamp(38px, 9vw, 64px) }
  .hf-sky { height: clamp(190px, 38vw, 300px) }
}

@media (max-width: 575px) {
  .hf-pill { font-size: 10.5px; letter-spacing: .16em; padding: 8px 14px 8px 12px; margin-bottom: 20px }
  .hf-lede { font-size: 17px }
  .hf-cta, .hf-ghost { width: 100%; justify-content: center; padding: 17px 22px; font-size: 16px }
  .hf-actions { gap: 12px; padding: 0 4px }
  .hf-trust { gap: 8px 18px; font-size: 13px; margin-top: 24px }
  .hf-sky { height: 210px }
  .hf-axis { display: none }
  .hf-tk { padding: 13px 24px; font-size: 13px }
}

@media (prefers-reduced-motion: reduce) {
  .hf *, .hf *::before, .hf *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition: none !important }
  .hf-w > span { transform: none }
  .hf-track { animation: none }
}
