/* Mobile composition and always-visible first-paint orientation. */
#scene-hero { height: 165svh; }
#scene-hero .scene-sticky { overflow: hidden; height: 100svh; }
.hero-stage { padding: 80px 32px 105px; }
.hero-stage::before { display: none; }
.hero-composition { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 50px; width: min(1140px, 100%); }
.hero-intro { text-align: left; position: relative; z-index: 2; }
.hero-composition > * { min-width: 0; }
.hero-badge { color: #a9c9ff; border-color: #2873f24d; background: #2873f214; }
.hero-letters { justify-content: flex-start; flex-wrap: nowrap; min-height: 170px; width: 100%; margin-bottom: 20px; }
.hero-letter { font-size: clamp(32px, 4.6vw, 63px); }
.hero-tagline { font-size: 16px; line-height: 1.9; max-width: 520px; }
.hero-tagline-extra { color: #9ab4d8; font-size: 13px; }
.js-animating .hero-badge, .js-animating .hero-tagline, .js-animating .hero-tagline-extra, .js-animating .hero-scroll-cue { opacity: 1; pointer-events: auto; }
.hero-real-preview { display: flex; justify-content: center; align-items: center; position: relative; height: 480px; isolation: isolate; }
.hero-real-preview::before { content: ''; position: absolute; inset: -15%; z-index: -1; background: radial-gradient(ellipse, #2873f240, transparent 66%); }
.hero-preview-orbit { position: absolute; width: 115%; max-width: 560px; fill: none; stroke: #468cff; stroke-width: .6; opacity: .28; z-index: -1; }
.hero-device { flex: 0 0 205px; padding: 5px; position: relative; border: 1px solid #506184; border-radius: 28px; background: linear-gradient(145deg, #364765, #0a1120); box-shadow: 0 25px 60px #0007; cursor: zoom-in; }
.hero-device img { width: 100%; height: auto; display: block; border-radius: 23px; }
.hero-device span { position: absolute; white-space: nowrap; left: 50%; bottom: -20px; transform: translateX(-50%); padding: 9px 14px; border-radius: 999px; background: #0d1d35; border: 1px solid #3a557b; color: #d7e5fd; font-size: 11px; }
.hero-device-work { transform: translateY(-16px) rotate(-8deg); z-index: 1; }
.hero-device-chat { margin-left: -35px; transform: translateY(20px) rotate(8deg); }
.hero-scroll-cue { position: absolute; bottom: max(78px, calc(env(safe-area-inset-bottom) + 70px)); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; white-space: nowrap; padding: 12px 20px; border: 1px solid #4877bb80; border-radius: 999px; background: #10284b; color: #e5eeff; font: inherit; font-size: 12px; letter-spacing: .06em; cursor: pointer; box-shadow: 0 8px 30px #0003; }
.hero-scroll-cue svg { color: #8db8ff; animation: scroll-nudge 1.7s ease-in-out infinite; }
.hero-scroll-cue:focus-visible, .hero-device:focus-visible { outline: 2px solid #8db8ff; outline-offset: 5px; }
.scene-indicator, .scroll-percent { bottom: max(18px, env(safe-area-inset-bottom)); }
.scene-indicator strong { font-size: 13px; color: #8db8ff; }
.scene-indicator, .scroll-percent { color: #9cb1d0; }
.scroll-product-section { position: relative; padding: 100px 24px; background: linear-gradient(180deg, #09162b, #071224); }
.scroll-product-container { max-width: 1160px; margin: auto; }
.scroll-product-more { display: flex; align-items: center; justify-content: center; gap: 32px; margin: 30px auto 0; width: fit-content; border-bottom: 1px solid #45618b; padding: 8px 0; color: #d7e5fd; text-decoration: none; font-size: 13px; }
@keyframes scroll-nudge { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
@media (max-width: 900px) {
  .hero-composition { gap: 20px; }
  .hero-device { flex-basis: 165px; }
  .hero-letter { font-size: 4.5vw; }
  .hero-tagline { font-size: 14px; }
}
@media (max-width: 700px) {
  .scene-sticky { height: 100svh; }
  #scene-define { height: 200svh; }
  #scene-compare, #scene-steps { height: 140svh; }
  #scene-build { height: 150svh; }
  #scene-grid { height: 220svh; }
  #scene-cta { height: 110svh; }
  #scene-hero { height: 150svh; }
  .hero-stage { padding: 66px 24px 118px; }
  .hero-composition { grid-template-columns: 1fr; gap: 25px; }
  .hero-intro { text-align: center; }
  .hero-badge { font-size: 10px; margin-bottom: 6px; }
  .hero-letters { min-height: 95px; justify-content: center; margin: 0; }
  .hero-letter { font-size: clamp(24px, 8vw, 36px); }
  .hero-tagline { font-size: 12px; line-height: 1.8; max-width: 370px; margin: auto; padding: 0; }
  .hero-tagline-extra { display: none; }
  .hero-real-preview { height: min(35svh, 310px); margin: 0 auto; width: min(100%, 340px); }
  .hero-device { flex-basis: min(15.5svh, 140px); padding: 4px; border-radius: 20px; }
  .hero-device img { border-radius: 16px; }
  .hero-device span { font-size: 9px; padding: 7px 10px; bottom: -12px; }
  .hero-device-work { transform: translateY(-6px) rotate(-7deg); }
  .hero-device-chat { margin-left: -10px; transform: translateY(8px) rotate(7deg); }
  .hero-scroll-cue { bottom: max(76px, calc(env(safe-area-inset-bottom) + 65px)); font-size: 11px; padding: 11px 16px; }
  .hero-orbit { display: none; }
  .scroll-product-section { padding: 64px 20px 80px; }
  .scene-inner { padding: 0 22px; }
  .define-layout { gap: 28px; }
  .define-big { font-size: 42px; }
  .define-body p { font-size: 14px; line-height: 1.85; }
  .define-slides { min-height: 200px; }
  .compare-panel { padding: 22px 24px; }
  #scene-compare { height: auto; }
  #scene-compare .scene-sticky { position: relative; height: auto; min-height: 100svh; padding: 88px 0; }
  .compare-item { margin-bottom: 14px; }
  .compare-item span { font-size: 12px; }
  .grid-copy p { font-size: 14px; }
  .benefit-shapes { height: 220px; }
}
@media (max-height: 700px) and (max-width: 700px) {
  .hero-stage { padding-top: 62px; padding-bottom: 105px; }
  .hero-composition { gap: 15px; }
  .hero-letters { min-height: 72px; }
  .hero-real-preview { height: 30svh; }
  .hero-device { flex-basis: 13svh; }
  .hero-scroll-cue { bottom: 68px; }
  .compare-item { margin-bottom: 8px; }
  .compare-panel { padding: 18px 22px; }
  .grid-stage { gap: 16px; }
  .grid-copy h2 { font-size: 25px; margin-bottom: 10px; }
  .grid-copy p { font-size: 12px; line-height: 1.7; }
  .grid-copy .eyebrow { margin-bottom: 10px; }
  .benefit-shapes { height: 145px; }
  .benefit-labels { margin-top: 12px; gap: 8px; }
  .benefit-label { font-size: 10px; padding: 6px 8px; }
}
/* Landscape phones keep the cue and real screens in the first viewport. */
@media (max-height: 500px) and (min-width: 701px) {
  .top-bar { padding: 12px 24px; }
  #scene-hero { height: 150svh; }
  #scene-hero .scene-sticky { height: 100svh; }
  .hero-stage { padding: 66px 40px 88px; }
  .hero-composition { grid-template-columns: 1.3fr 1fr; gap: 28px; }
  .hero-letters { min-height: 80px; margin-bottom: 8px; }
  .hero-letter { font-size: 32px; }
  .hero-badge { font-size: 9px; margin-bottom: 4px; }
  .hero-tagline { font-size: 11px; line-height: 1.75; }
  .hero-tagline-extra { display: none; }
  .hero-real-preview { height: 190px; }
  .hero-device { flex-basis: 83px; border-radius: 16px; padding: 3px; }
  .hero-device img { border-radius: 12px; }
  .hero-device span { font-size: 8px; padding: 5px 8px; bottom: -10px; }
  .hero-device-chat { margin-left: -10px; }
  .hero-scroll-cue { bottom: 52px; padding: 8px 16px; font-size: 10px; }
  .hero-orbit { display: none; }
  .scene:not(#scene-hero) { height: auto !important; }
  .scene:not(#scene-hero) .scene-sticky { position: relative; height: auto; min-height: 100svh; padding: 80px 0; overflow: hidden; }
  .define-slide { position: relative; opacity: 1 !important; transform: none !important; margin-bottom: 20px; pointer-events: auto; }
  .define-slides { min-height: 0; }
  .define-big .line-inner, .define-ring, .step-node, .cta-mega, .cta-sub, .cta-btns { opacity: 1 !important; transform: none !important; }
  .build-viewport { overflow-x: auto; mask-image: none; }
  .build-track { transform: none !important; }
}
html:not(.js-animating) .define-slide { position: relative; opacity: 1; transform: none; margin-bottom: 20px; pointer-events: auto; }
html:not(.js-animating) .define-slides { min-height: 0; }
html:not(.js-animating) .benefit-shape:first-child { opacity: 1; visibility: visible; }
@media (prefers-reduced-motion: reduce) {
  #scene-hero { height: auto; }
  #scene-hero .scene-sticky { position: relative; height: auto; min-height: 100svh; padding: 0; }
  .hero-stage { min-height: 100svh; }
  .hero-scroll-cue svg { animation: none; }
  .hero-letter { transform: none !important; }
  .build-viewport { overflow-x: auto; mask-image: none; }
  .benefit-shape:first-child { opacity: 1; visibility: visible; }
}
