.scroll-hero {
  --scroll-blue: #57bbf8;
  --scroll-indigo: #5141f1;
  --scroll-p1: 0%;
  --scroll-p2: 0%;
  --scroll-p3: 0%;
  position: relative;
  height: 430svh;
  color: #fff;
  background: #050713;
}

.scroll-hero__scene {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100svh;
  min-height: 680px;
  overflow: hidden;
  perspective: 1400px;
  background: #050713;
  contain: paint;
}

.scroll-hero__copy {
  position: absolute;
  z-index: 8;
  top: 50%;
  left: clamp(34px, 5vw, 88px);
  width: min(45vw, 780px);
  transform: translateY(-48%);
  will-change: transform, opacity;
}

.scroll-hero__eyebrow {
  margin: 0 0 20px;
  color: var(--scroll-blue);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.scroll-hero h1 {
  display: block;
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(4rem, 6.4vw, 8.2rem);
  font-weight: 800;
  font-synthesis: none;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.scroll-hero h1 span { display: block; }
.scroll-hero h1 .scroll-hero__accent { margin-top: 0.06em; color: var(--scroll-blue); }

.scroll-hero__support {
  max-width: 560px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: clamp(1rem, 1.25vw, 1.28rem);
  line-height: 1.55;
}

.scroll-hero .hero__actions { margin-top: 26px; }
.scroll-hero .button--ghost { background: rgba(255, 255, 255, 0.045); }

.scroll-phone-wrap {
  position: absolute;
  z-index: 10;
  top: 50%;
  right: clamp(5vw, 10vw, 13vw);
  width: clamp(260px, min(23vw, calc((100svh - 130px) * 0.4615)), 450px);
  transform: translateY(-47%);
  transform-style: preserve-3d;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

@media (min-width: 901px) and (max-height: 820px) {
  .scroll-hero__scene {
    top: 88px;
    height: calc(100svh - 88px);
    min-height: 520px;
  }

  .scroll-hero__copy {
    top: 48%;
    width: min(47vw, 700px);
    transform: translateY(-45%);
  }

  .scroll-hero h1 {
    font-size: clamp(3.4rem, min(6vw, 10.5vh), 6.6rem);
  }

  .scroll-hero__eyebrow { margin-bottom: 12px; }

  .scroll-hero__support {
    max-width: 520px;
    margin-top: 18px;
    font-size: clamp(0.9rem, 1.1vw, 1.08rem);
    line-height: 1.42;
  }

  .scroll-hero .hero__actions { margin-top: 16px; }

  .scroll-phone-wrap {
    top: 50%;
    width: clamp(220px, min(21vw, calc((100svh - 126px) * 0.4615)), 350px);
    transform: translateY(-50%);
  }
}

.scroll-phone {
  position: relative;
  width: 100%;
  aspect-ratio: 852 / 1846;
  padding: 8px;
  border: 1px solid rgba(185, 214, 255, 0.52);
  border-radius: clamp(45px, 3vw, 62px);
  background: linear-gradient(145deg, #35415d, #0d1224 42%, #596882 100%);
  box-shadow: 0 60px 120px rgba(0, 0, 0, 0.54), 0 0 70px rgba(78, 75, 242, 0.21), inset 0 0 0 2px rgba(255, 255, 255, 0.12);
}

.scroll-phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: clamp(38px, 2.6vw, 54px);
  background: #171823;
}

.scroll-phone__scene {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scroll-phone__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(2, 4, 12, 0.32), transparent 19%, transparent 70%, rgba(2, 4, 12, 0.16));
}

.scroll-phone__island {
  position: absolute;
  z-index: 8;
  top: 16px;
  left: 50%;
  width: 29%;
  height: 3.5%;
  border-radius: 999px;
  background: #03040a;
  transform: translateX(-50%);
}

.scroll-phone__status {
  position: absolute;
  z-index: 7;
  top: 22px;
  right: 7%;
  left: 7%;
  display: flex;
  justify-content: space-between;
  font-size: clamp(9px, 0.72vw, 13px);
  font-weight: 600;
}

.scroll-phone__logo {
  position: absolute;
  z-index: 7;
  top: 6.5%;
  left: 7%;
  width: 25%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.scroll-phone__prompt {
  position: absolute;
  z-index: 7;
  top: 15%;
  right: 9%;
  left: 9%;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(10px, 0.72vw, 14px);
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.scroll-marker {
  position: absolute;
  z-index: 6;
  object-fit: contain;
  filter: drop-shadow(0 10px 17px rgba(0, 0, 0, 0.52));
}

.scroll-marker--tv { top: 58%; left: 51%; width: 20%; transform: translate(-50%, -50%); }
.scroll-marker--painting { top: 47.5%; left: 85%; width: 16%; transform: translate(-50%, -50%); }
.scroll-marker--guitar { top: 48.5%; left: 18%; width: 14%; transform: translate(-50%, -50%); }

.scroll-flight {
  position: absolute;
  z-index: 30;
  inset: 0;
  pointer-events: none;
  transform-style: preserve-3d;
}

.scroll-flight__placard {
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(105px, 8vw, 150px);
  aspect-ratio: 1;
  opacity: 0;
  transform-origin: 50% 50%;
  filter: drop-shadow(0 26px 42px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 25px rgba(57, 195, 255, 0.34));
  will-change: transform, opacity;
  backface-visibility: visible;
  -webkit-backface-visibility: visible;
}

.scroll-hologram {
  position: absolute;
  z-index: 24;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
  contain: layout paint style;
}

.scroll-hologram__beam {
  position: absolute;
  bottom: 19%;
  left: 50%;
  width: min(52vw, 860px);
  height: 55%;
  background: linear-gradient(180deg, rgba(85, 189, 243, 0), rgba(85, 189, 243, 0.07) 42%, rgba(81, 65, 241, 0.32));
  clip-path: polygon(12% 0, 88% 0, 55% 100%, 45% 100%);
  filter: blur(6px) drop-shadow(0 0 24px rgba(85, 189, 243, 0.2));
  mix-blend-mode: screen;
  transform: translateX(-50%);
}

.scroll-hologram__beam::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 22%;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(106, 214, 255, 0.72), rgba(81, 65, 241, 0.28) 48%, transparent 76%);
  filter: blur(10px);
  transform: translateX(-50%);
}

.scroll-hologram__details {
  position: absolute;
  top: 15%;
  left: 50%;
  width: min(680px, 46vw);
  text-align: center;
  text-shadow: 0 0 24px rgba(85, 189, 243, 0.2);
  transform: translateX(-50%);
}

.scroll-hologram__eyebrow {
  margin: 0 0 12px;
  color: var(--scroll-blue);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-hologram__details h2 {
  margin: 0;
  color: #fff;
  font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(2.8rem, 5vw, 6.2rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.scroll-hologram__model {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: clamp(1rem, 1.4vw, 1.35rem);
}

.scroll-hologram__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 34px;
}

.scroll-hologram__card {
  padding: 16px 12px;
  border: 1px solid rgba(117, 205, 255, 0.22);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(76, 79, 195, 0.18), rgba(11, 19, 44, 0.42));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 16px 42px rgba(0, 0, 0, 0.15);
  opacity: 0;
  backdrop-filter: blur(12px);
  transform: translateY(25px) scale(0.94);
}

.scroll-hologram__card span {
  display: block;
  color: rgba(255, 255, 255, 0.44);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scroll-hologram__card strong {
  display: block;
  margin-top: 7px;
  color: #fff;
  font-size: clamp(0.9rem, 1.05vw, 1.08rem);
  font-weight: 600;
}

.scroll-hologram__line {
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.875rem;
  opacity: 0;
}

.scroll-hero__progress {
  position: absolute;
  z-index: 50;
  top: 50%;
  right: 25px;
  display: grid;
  gap: 10px;
  transform: translateY(-50%);
}

.scroll-hero__progress i {
  width: 5px;
  height: 32px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.13);
}

.scroll-hero__progress i::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(var(--scroll-blue), var(--scroll-indigo));
  transform: translateY(100%);
}

.scroll-hero__progress i:nth-child(1)::after { transform: translateY(calc(100% - clamp(0%, var(--scroll-p1), 100%))); }
.scroll-hero__progress i:nth-child(2)::after { transform: translateY(calc(100% - clamp(0%, var(--scroll-p2), 100%))); }
.scroll-hero__progress i:nth-child(3)::after { transform: translateY(calc(100% - clamp(0%, var(--scroll-p3), 100%))); }

@media (max-width: 900px) {
  .scroll-hero__scene { min-height: 620px; }

  .scroll-hero__copy {
    top: 12%;
    left: 24px;
    width: calc(100% - 48px);
    text-align: center;
    transform: none;
  }

  .scroll-hero h1 { font-size: clamp(3rem, 12.5vw, 5.2rem); }
  .scroll-hero__support {
    display: block;
    max-width: 620px;
    margin: 20px auto 0;
    font-size: clamp(0.94rem, 2.25vw, 1.06rem);
    line-height: 1.48;
  }
  .scroll-hero .hero__actions { justify-content: center; margin-top: 20px; }
  .scroll-hero .store-links--hero { justify-content: center; }
  .scroll-phone-wrap {
    top: auto;
    right: auto;
    bottom: -22%;
    left: 50%;
    width: min(55vw, 310px);
    transform: translateX(-50%);
  }

  .scroll-hologram__details { top: 13%; width: calc(100% - 42px); }
  .scroll-hologram__details h2 { font-size: clamp(2.5rem, 12vw, 4rem); }
  .scroll-hologram__grid { grid-template-columns: repeat(2, 1fr); margin-top: 24px; }
  .scroll-hologram__beam { width: 94vw; }
  .scroll-hero__progress { right: 10px; }

  .scroll-phone {
    box-shadow: 0 28px 62px rgba(0, 0, 0, 0.46), 0 0 34px rgba(78, 75, 242, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  }

  .scroll-flight__placard { filter: none; }

  .scroll-hologram__beam {
    filter: none;
    mix-blend-mode: normal;
    background: linear-gradient(180deg, rgba(85, 189, 243, 0), rgba(85, 189, 243, 0.055) 44%, rgba(81, 65, 241, 0.24));
  }

  .scroll-hologram__beam::after {
    filter: none;
    opacity: 0.72;
  }

  .scroll-hologram__card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.07), 0 10px 24px rgba(0, 0, 0, 0.12);
  }
}

@media (max-width: 600px) {
  .scroll-hero__copy { top: 10.5%; }
  .scroll-hero h1 { font-size: clamp(2.65rem, 12vw, 4.35rem); }
  .scroll-hero__eyebrow { margin-bottom: 12px; font-size: 0.68rem; }
  .scroll-hero__support {
    max-width: 350px;
    margin-top: 16px;
    font-size: 0.88rem;
    line-height: 1.42;
  }
  .scroll-hero .hero__actions { gap: 9px; }
  .scroll-hero .button { min-height: 46px; padding: 11px 18px; }
  .scroll-hero .store-links--hero .store-badge { width: 132px; height: 52px; }
  .scroll-hero .store-links--hero .store-badge img,
  .scroll-hero .store-links--hero .store-badge img[alt="Download on the App Store"] {
    width: 112px;
    height: 37px;
    max-height: none;
    object-fit: contain;
  }
  .scroll-hero .store-links--hero .store-badge img[alt="Get it on Google Play"] {
    width: auto;
    height: 37px;
    max-height: none;
    object-fit: contain;
  }
  .scroll-phone-wrap { bottom: -40%; width: min(56vw, 250px); }
  .scroll-hologram__details { top: 12%; }
  .scroll-hologram__model { font-size: 0.9rem; }
  .scroll-hologram__grid { gap: 8px; }
  .scroll-hologram__card { padding: 12px 8px; }
  .scroll-hologram__line { margin-top: 18px; padding-inline: 18px; font-size: 0.78rem; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hero { height: 100svh; }
  .scroll-hero__progress,
  .scroll-flight,
  .scroll-hologram { display: none; }
}
