/* ===== Hero mockup — premium layer (dashboard + phone) =====
   Pure add-on: only adds elements/effects, never changes the existing layout.
   All sizes are in hero-stage pixels (the stage is 3360×1740 and scaled down by JS). */

/* ---------- ambient aurora + floor ---------- */
.lx-aura{position:absolute;left:-4%;right:-4%;top:-8%;bottom:-6%;z-index:0;pointer-events:none;opacity:.95;will-change:transform;contain:strict;
  background:
    radial-gradient(38% 50% at 24% 40%,rgba(0,113,227,.30),rgba(0,113,227,.10) 45%,transparent 72%),
    radial-gradient(34% 46% at 76% 28%,rgba(116,92,255,.24),rgba(116,92,255,.08) 45%,transparent 72%),
    radial-gradient(32% 42% at 56% 88%,rgba(0,190,255,.18),rgba(0,190,255,.06) 45%,transparent 72%),
    radial-gradient(26% 36% at 90% 72%,rgba(0,113,227,.22),rgba(0,113,227,.07) 45%,transparent 72%);
  -webkit-mask-image:linear-gradient(to bottom,#000 0,#000 58%,transparent 94%);mask-image:linear-gradient(to bottom,#000 0,#000 58%,transparent 94%);
  animation:lxAura 22s ease-in-out infinite alternate}
@keyframes lxAura{0%{transform:translate3d(0,0,0)}50%{transform:translate3d(1.5%,-1.5%,0)}100%{transform:translate3d(-1.5%,1%,0)}}
.lx-floor{position:absolute;left:12%;right:16%;bottom:40px;height:220px;z-index:0;pointer-events:none;border-radius:50%;
  background:radial-gradient(50% 50% at 50% 50%,rgba(10,30,80,.22),rgba(10,30,80,.08) 50%,transparent 72%)}

/* ---------- dashboard window ---------- */
html body.rc-hv1-lock .hv1 .hv1-dash.v5{
  box-shadow:0 0 0 1.5px rgba(11,13,18,.06),0 8px 16px rgba(16,24,40,.05),0 70px 140px -50px rgba(0,64,170,.34),0 160px 260px -120px rgba(16,24,40,.42)!important}
.lx-ring{position:absolute;inset:0;border-radius:inherit;padding:4px;pointer-events:none;z-index:40;
  background:linear-gradient(135deg,rgba(255,255,255,.95),rgba(0,113,227,.55) 22%,rgba(255,255,255,.7) 45%,rgba(124,92,255,.45) 70%,rgba(255,255,255,.95));
  
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;
  mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0)}
.lx-sweep{position:absolute;top:-10%;bottom:-10%;left:0;width:34%;pointer-events:none;z-index:39;opacity:.55;will-change:transform;
  background:linear-gradient(105deg,transparent 20%,rgba(255,255,255,.55) 50%,transparent 80%);
  transform:translate3d(-120%,0,0);animation:lxSweep 10s cubic-bezier(.45,.05,.25,1) 2.5s infinite}
@keyframes lxSweep{0%{transform:translate3d(-120%,0,0)}22%,100%{transform:translate3d(420%,0,0)}}
html body.rc-hv1-lock .hv1 .v5-top{background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(242,244,248,.92))!important;
  box-shadow:inset 0 -1.5px 0 rgba(11,13,18,.06),inset 0 2px 0 #fff}
html body.rc-hv1-lock .hv1 .v5-dots i{box-shadow:inset 0 -3px 5px rgba(0,0,0,.18),inset 0 3px 4px rgba(255,255,255,.55)}

/* dark "Loyalty 68%" flow node: living gradient */
html body.rc-hv1-lock .hv1 .c104-n3{background:linear-gradient(120deg,#0b0d12 0%,#10214a 45%,#0b0d12 80%)!important;
  box-shadow:0 24px 48px -18px rgba(0,64,170,.55),inset 0 1.5px 0 rgba(255,255,255,.14)!important}

/* chart: draw-in + live endpoint */
.lx-chart-draw{stroke-dasharray:var(--lxlen);stroke-dashoffset:var(--lxlen);animation:lxDraw 2.2s cubic-bezier(.3,.6,.2,1) .4s forwards}
@keyframes lxDraw{to{stroke-dashoffset:0}}
.lx-chart-fill{opacity:0;animation:lxFade 1.4s ease 1.6s forwards}
@keyframes lxFade{to{opacity:1}}

.lx-pulse{transform-box:fill-box;transform-origin:center;animation:lxPulse 2s ease-out infinite}
@keyframes lxPulse{0%{transform:scale(1);opacity:.55}100%{transform:scale(3.4);opacity:0}}

/* ---------- phone ---------- */
html body.rc-hv1-lock .hv1 .hv1-phone{animation:lxFloat 7.5s ease-in-out infinite;will-change:transform,translate}
@keyframes lxFloat{0%,100%{translate:0 0}50%{translate:0 -22px}}
.lx-frame{position:absolute;inset:-6px;border-radius:132px;padding:7px;pointer-events:none;z-index:6;
  background:linear-gradient(140deg,#c9cdd4 0%,#5d626b 18%,#e9ecf0 36%,#4b4f57 55%,#aeb3bb 74%,#3d4148 88%,#d7dbe0 100%);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;
  mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0)}
.lx-pshadow{position:absolute;left:-6%;right:-6%;bottom:-150px;height:220px;z-index:-1;pointer-events:none;border-radius:50%;
  background:radial-gradient(50% 50% at 50% 50%,rgba(0,40,120,.30),rgba(0,40,120,.10) 45%,transparent 70%)}
.lx-glare{position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:50;
  background:linear-gradient(118deg,rgba(255,255,255,.34) 0%,rgba(255,255,255,.08) 22%,rgba(255,255,255,0) 34%,rgba(255,255,255,0) 72%,rgba(255,255,255,.10) 100%)}
html body.rc-hv1-lock .hv1 .hv1-card{box-shadow:0 30px 60px -24px rgba(0,30,90,.55),inset 0 1.5px 0 rgba(255,255,255,.12)!important}

/* ---------- floating glass chips ---------- */
.lx-chip{position:absolute;z-index:30;pointer-events:none;
  transition:translate .9s cubic-bezier(.2,.7,.2,1),opacity .8s ease,scale .8s cubic-bezier(.2,1.4,.4,1);opacity:0;scale:.86;will-change:translate,opacity}
.lx-in .lx-chip{opacity:1;scale:1}
.lx-chip-in{display:flex;align-items:center;gap:26px;padding:26px 40px 26px 26px;border-radius:44px;
  font-family:"Inter",-apple-system,"SF Pro Display","Helvetica Neue",Arial,sans-serif;color:#0b0d12;white-space:nowrap;
  background:linear-gradient(160deg,rgba(255,255,255,.97),rgba(246,248,252,.94));will-change:transform;
  box-shadow:0 0 0 2px rgba(255,255,255,.95) inset,0 0 0 1.5px rgba(11,13,18,.05),0 40px 80px -28px rgba(0,50,140,.38),0 14px 28px -12px rgba(16,24,40,.18);
  animation:lxBob 6.5s ease-in-out infinite;animation-delay:var(--dl,0s)}
@keyframes lxBob{0%,100%{transform:translate3d(0,0,0)}50%{transform:translate3d(0,-16px,0)}}
.lx-chip small{display:block;font-size:30px;font-weight:500;color:#6e6e73;letter-spacing:-.01em;line-height:1.25}
.lx-chip b{display:block;font-size:38px;font-weight:700;letter-spacing:-.025em;line-height:1.2}
.lx-chip b em{font-style:normal;color:#0071e3}
.lx-av{flex:0 0 auto;width:92px;height:92px;border-radius:50%;display:grid;place-items:center;font-size:32px;font-weight:700;color:#fff;
  background:linear-gradient(140deg,#3a95ff,#0a62e6);box-shadow:0 12px 24px -8px rgba(10,98,230,.6),inset 0 2px 0 rgba(255,255,255,.35)}
.lx-av.g{background:linear-gradient(140deg,#5b5bff,#2a2ad1)}
.lx-txt{transition:opacity .45s ease,transform .45s ease}
.lx-swap .lx-txt,.lx-swap .lx-av{opacity:0;transform:translateY(14px)}
.lx-av{transition:opacity .45s ease,transform .45s ease}
.lx-ringk{flex:0 0 auto;width:96px;height:96px;border-radius:50%;position:relative;
  background:conic-gradient(#0071e3 calc(var(--p,0) * 1%),rgba(0,113,227,.14) 0)}
.lx-ringk::after{content:"";position:absolute;inset:13px;border-radius:50%;background:#fff;box-shadow:inset 0 2px 6px rgba(0,0,0,.06)}
.lx-ringk span{position:absolute;inset:0;display:grid;place-items:center;z-index:1;font-size:27px;font-weight:700;color:#0b0d12;letter-spacing:-.02em}
.lx-wal{flex:0 0 auto;width:92px;height:92px;border-radius:26px;display:grid;place-items:center;
  background:linear-gradient(150deg,#2a2d34,#0b0d12);box-shadow:0 14px 26px -10px rgba(0,0,0,.55),inset 0 2px 0 rgba(255,255,255,.14)}
.lx-wal svg{width:52px;height:52px}
.lx-ok{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#0071e3;margin-left:6px;vertical-align:-6px;box-shadow:0 6px 14px -4px rgba(0,113,227,.7)}
.lx-ok svg{width:22px;height:22px}

/* positions inside the 3360×1740 stage */
.lx-c1{left:36px;top:930px;--d:70px;--dl:-1.2s}
.lx-c2{left:1150px;top:1545px;--d:55px;--dl:-3.4s}
.lx-c3{left:2440px;top:1380px;--d:90px;--dl:-2.2s}

@media (max-width:760px){.lx-chip{display:none}.lx-aura{animation:none}}
@media (prefers-reduced-motion:reduce){
  .lx-aura,.lx-sweep,.lx-chip-in,.lx-pulse,html body.rc-hv1-lock .hv1 .hv1-phone{animation:none!important}
  .lx-chart-draw{animation:none;stroke-dashoffset:0}.lx-chart-fill{animation:none;opacity:1}
}

/* Phones and tablets: mobile.js lays the hero out at its 3360x1740 desktop size and scales it to ~10%.
   iOS Safari sizes every GPU layer inside that stage at the full design size (x3 on iPhone), so the
   will-change, 3D tilt, running animations and backdrop blurs below cost ~680 MB and the tab crashed
   ("A problem repeatedly occurred", Dec 2026). Keep the stage flat and still there: it paints into the
   one small .rc-hv1-fit layer instead. The live numbers (hero-premium.js) keep updating. */
@media (max-width:860px),(hover:none){
  #hero .rc-hv1-stage,#hero .rc-hv1-stage *,#hero .rc-hv1-stage *::before,#hero .rc-hv1-stage *::after{
    will-change:auto!important;animation:none!important;transition:none!important;
    -webkit-backdrop-filter:none!important;backdrop-filter:none!important;transform-style:flat!important}
  #hero .lx-chart-draw{stroke-dashoffset:0!important}#hero .lx-chart-fill{opacity:1!important}   /* end state of the draw-in */
  #hero .lx-sweep,#hero .ph-sheen{display:none!important}                                          /* moving light streaks */
  #hero .hv1-dash{isolation:isolate}   /* keeps the z-index:40 .lx-ring inside the dashboard, under the phone (the 3D tilt used to) */
  /* gentle float of the whole mockup: it moves as the one phone-sized .rc-hv1-fit layer, so it costs ~2 MB */
  #hero .rc-hv1-fit{animation:lxFitFloat 7.5s ease-in-out infinite}
}
@keyframes lxFitFloat{0%,100%{translate:0 0}50%{translate:0 -8px}}
@media (prefers-reduced-motion:reduce){#hero .rc-hv1-fit{animation:none}}
