.hero {
  align-items: start;
  min-height: auto;
  padding-block: 70px 0;
}

.hero-story {
  min-width: 0;
}

.hero-copy {
  min-height: 680px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-chapters {
  scroll-margin-top: 100px;
}

.feature-chapter {
  min-height: 68vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 1px solid var(--line);
  opacity: .38;
  transform: translateY(14px);
  transition: opacity .35s ease, transform .45s cubic-bezier(.2,.8,.2,1);
}

.feature-chapter.active {
  opacity: 1;
  transform: none;
}

.feature-chapter-inner > span {
  color: #087d65;
  font: 800 .74rem var(--display);
  letter-spacing: .14em;
}

.feature-chapter h2 {
  max-width: 620px;
  margin: 18px 0;
  font-size: clamp(2rem, 3.7vw, 3.7rem);
  line-height: 1.04;
}

.feature-chapter p {
  max-width: 570px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-stage {
  position: sticky;
  top: 92px;
  height: calc(100vh - 104px);
  min-height: 650px;
  align-self: start;
}

.phone {
  width: min(374px, 84vw);
  height: min(752px, calc(100vh - 136px));
  min-height: 620px;
  padding: 9px;
  border: 0;
  border-radius: 52px;
  background: linear-gradient(145deg, #26302d, #050b09 45%, #18201d);
  box-shadow: 0 42px 95px rgba(7,27,23,.28), inset 0 0 0 1px rgba(255,255,255,.17);
  transform: rotate(1.25deg);
}

.phone::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 49px;
  pointer-events: none;
}

.phone-volume,
.phone-power {
  position: absolute;
  width: 4px;
  background: #18201d;
  border-radius: 3px;
}

.phone-volume { left: -3px; top: 145px; height: 74px; }
.phone-power { right: -3px; top: 178px; height: 90px; }

.phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 44px;
  background: linear-gradient(180deg, #fafffd, #f1f7f4);
  color: var(--ink);
}

.phone-camera {
  position: absolute;
  z-index: 8;
  top: 11px;
  left: 50%;
  width: 92px;
  height: 25px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #07100d;
  box-shadow: inset 18px 0 20px #000;
}

.phone-camera::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #142d35;
  box-shadow: inset 0 0 0 2px #07100d;
}

.phone-top {
  height: 48px;
  padding: 13px 22px 0;
  align-items: flex-start;
  font-size: .68rem;
}

.status-icons { letter-spacing: .04em; }

.app-bar {
  height: 58px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #e5eeea;
  background: rgba(255,255,255,.82);
}

.app-bar strong { font: 800 .86rem var(--display); }
.mini-mark { width: 18px; height: 18px; border: 5px solid var(--ink); border-block-color: transparent; border-radius: 50%; }
.secure-pill { margin-left: auto; padding: 4px 8px; border-radius: 999px; background: #dcf8ed; color: #087d65; font-size: .58rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }

.phone-panels {
  position: absolute;
  inset: 106px 0 66px;
  overflow: hidden;
}

.app-panel {
  position: absolute;
  inset: 0;
  padding: 24px 20px;
  overflow: hidden;
  opacity: 0;
  transform: translateX(28px) scale(.985);
  pointer-events: none;
  transition: opacity .28s ease, transform .42s cubic-bezier(.2,.8,.2,1);
}

.app-panel.active {
  z-index: 2;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.screen-kicker {
  margin: 0 0 9px;
  color: #087d65;
  font: 800 .61rem var(--display);
  letter-spacing: .15em;
}

.app-panel h2 { margin: 0 0 22px; font-size: 1.9rem; line-height: 1.05; }
.centered { text-align: center; }
.upi-id { margin: -15px 0 24px; color: #67766f; font-size: .78rem; }

.merchant-card { background: rgba(255,255,255,.66); }
.merchant-card.active { box-shadow: 0 10px 28px rgba(0,107,87,.1); }

.scan-line {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  color: #61736b;
  font-size: .72rem;
}

.scan-line i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(242,121,61,.14);
  animation: status-pulse 2.4s ease-out infinite;
}

.verified-orbit {
  width: 108px;
  height: 108px;
  margin: 22px auto 18px;
  display: grid;
  place-items: center;
  border: 1px solid #a9e4cf;
  border-radius: 50%;
  box-shadow: 0 0 0 16px #e9faf4, 0 0 0 32px rgba(233,250,244,.5);
}

.verified-orbit span { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #087d65; color: white; font-size: 1.5rem; }

.detail-sheet,
.amount-card,
.pin-note {
  border: 1px solid #dce8e3;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(7,27,23,.06);
}

.detail-sheet { padding: 6px 16px; }
.detail-sheet > div { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid #e9f0ed; font-size: .76rem; }
.detail-sheet > div:last-child { border: 0; }
.detail-sheet span { color: #687870; }
.detail-sheet .good { color: #087d65; }

.party { padding: 12px 4px; }
.party span,.party strong,.party small { display: block; }
.party span { color: #718079; font: 800 .56rem var(--display); letter-spacing: .13em; }
.party strong { margin-top: 4px; font-size: 1rem; }
.party small { color: #6d7b75; }
.route-line { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; color: #78857f; font-size: .58rem; }
.route-line i { border-top: 1px dashed #a8b8b1; }
.amount-card { margin: 8px 0 12px; padding: 16px; }
.amount-card span,.amount-card strong,.amount-card small { display: block; }
.amount-card span { color: #66766e; font-size: .66rem; }
.amount-card strong { margin: 2px 0; font: 800 1.8rem var(--display); }
.amount-card small { color: #66766e; }
.app-panel .phone-button { margin-top: 4px; }

.handoff-icon { width: 62px; height: 62px; margin: 25px auto 18px; display: grid; place-items: center; border-radius: 20px; background: var(--ink); color: white; font-size: 1.7rem; }
.upi-apps { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 30px 0; }
.upi-apps div { display: grid; place-items: center; gap: 7px; padding: 14px 4px; border: 1px solid #dce8e3; border-radius: 16px; background: #fff; font-size: .6rem; }
.upi-apps i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: #e8f8f2; color: #087d65; font: 800 .82rem var(--display); font-style: normal; }
.pin-note { display: flex; gap: 12px; align-items: center; padding: 14px; background: #fff8f4; border-color: #f4d1bf; }
.pin-note > span { font-size: 1.3rem; color: var(--orange); }
.pin-note p,.pin-note strong,.pin-note small { display: block; margin: 0; }
.pin-note strong { font-size: .72rem; }
.pin-note small { margin-top: 2px; color: #6e756f; line-height: 1.35; }

.phone-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 15px;
  height: 48px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid #e4ede9;
  background: rgba(255,255,255,.92);
  color: #73817b;
  font-size: .57rem;
  font-weight: 700;
}

.phone-nav span:first-child { color: #087d65; }
.gesture-bar { position: absolute; bottom: 7px; left: 50%; width: 104px; height: 4px; transform: translateX(-50%); border-radius: 999px; background: #18201d; z-index: 4; }

.signal-card { right: -16px; bottom: 8%; }

.anime-ready .hero-copy > *,
.anime-ready .hero-stage {
  animation: none;
  opacity: 0;
}

.anime-ready .hero-copy > * { transform: translateY(18px); }
.anime-ready .hero-stage { transform: translateY(22px) scale(.985); }
.anime-ready .phone,
.anime-ready .radar i,
.anime-ready .pulse,
.anime-ready .scan-line i { animation: none; }
.anime-ready .app-panel { transition: none; }

@media (max-width: 1050px) {
  .hero { gap: 26px; }
  .phone { width: min(340px, 84vw); }
  .signal-card { right: 0; }
}

@media (max-width: 900px) {
  .hero { display: flex; flex-direction: column; align-items: stretch; }
  .hero-story { display: contents; }
  .hero-copy { order: 1; min-height: 620px; }
  .hero-stage {
    order: 2;
    position: sticky;
    top: 68px;
    z-index: 8;
    width: 100%;
    height: min(68vh,650px);
    min-height: 520px;
    overflow: hidden;
    background: rgba(244,248,246,.92);
    border-bottom: 1px solid rgba(7,27,23,.08);
    backdrop-filter: blur(14px);
  }
  .feature-chapters { order: 3; }
  .feature-chapter {
    min-height: 100vh;
    padding: 0 20px;
    justify-content: stretch;
    text-align: center;
    align-items: center;
  }
  .feature-chapter-inner {
    position: sticky;
    top: calc(min(68vh,650px) + 88px);
    width: 100%;
    padding: 18px 0 46px;
    background: linear-gradient(180deg, rgba(244,248,246,0), var(--paper) 16%);
  }
}

@media (max-width: 580px) {
  .hero-copy { min-height: 590px; }
  .hero-stage { height: 470px; min-height: 470px; }
  .hero-stage .radar { inset: -8% 0; }
  .phone { width: 340px; height: 620px; min-height: 620px; transform: rotate(.5deg) scale(.68); }
  .signal-card { display: none; }
  .feature-chapter { min-height: 100vh; padding: 0 10px; }
  .feature-chapter-inner { top: 550px; }
}

@media (prefers-reduced-motion: reduce) {
  .feature-chapter,.app-panel { transition: none; }
  .scan-line i { animation: none; }
  .anime-ready .hero-copy > *,
  .anime-ready .hero-stage { opacity: 1; transform: none; }
}
