/* Seller Build premium 3D preview: glass depth, 3D hero layer, sparkline, tilt, cursor, process line */

/* ---------- ambient light behind the page so glass has something to refract ---------- */
body::before{content:"";position:fixed;inset:-10vmax;z-index:-2;pointer-events:none;
  background:
    radial-gradient(38vmax 38vmax at 12% 18%,rgba(188,239,18,.07),transparent 60%),
    radial-gradient(42vmax 42vmax at 88% 72%,rgba(188,239,18,.06),transparent 62%),
    radial-gradient(30vmax 30vmax at 60% 40%,rgba(163,230,53,.035),transparent 60%);
  animation:fx-ambient 26s ease-in-out infinite alternate}
@keyframes fx-ambient{to{transform:translate3d(-3vmax,2vmax,0) scale(1.05)}}
main section{position:relative}
#why-us,#proof{background:rgba(16,16,16,.55)!important;backdrop-filter:blur(2px)}

/* ---------- 3D hero layer ---------- */
.hero-3d{position:absolute;inset:0;z-index:0;pointer-events:none;opacity:0;animation:fx-fade 1.4s .2s ease forwards}
.hero-3d canvas{display:block;width:100%;height:100%}
.hero > .container{position:relative;z-index:1}
@keyframes fx-fade{to{opacity:1}}
/* keep hero copy readable over the scene */
.hero-copy{position:relative}
.hero-copy::before{content:"";position:absolute;inset:-2rem -3rem -2rem -6rem;z-index:-1;pointer-events:none;
  background:radial-gradient(60% 60% at 40% 50%,rgba(0,0,0,.72),transparent 75%)}

/* ---------- glass snapshot card ---------- */
.hero.fx-3d-on .hero-card,.hero-card{
  background:linear-gradient(155deg,rgba(40,40,44,.55),rgba(14,14,14,.42));
  -webkit-backdrop-filter:blur(18px) saturate(150%);backdrop-filter:blur(18px) saturate(150%);
  border:1px solid rgba(255,255,255,.1);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    inset 0 0 0 1px rgba(188,239,18,.05),
    0 50px 100px -40px rgba(0,0,0,.95),
    0 30px 90px -40px rgba(188,239,18,.35),
    0 0 0 1px rgba(0,0,0,.4)}
.hero-card::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  background:linear-gradient(115deg,transparent 30%,rgba(255,255,255,.07) 45%,rgba(188,239,18,.08) 50%,transparent 62%);
  background-size:250% 100%;background-position:120% 0;animation:fx-sheen 7s 1.6s ease-in-out infinite}
@keyframes fx-sheen{0%,60%{background-position:120% 0}100%{background-position:-60% 0}}
.hero-card .mini-kpi{background:rgba(0,0,0,.38);border-color:rgba(255,255,255,.07);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);transition:border-color .3s,transform .3s}
.hero-card .mini-kpi:hover{border-color:rgba(188,239,18,.35);transform:translateY(-2px)}
.hero-card .mini-kpi .value{text-shadow:0 0 24px rgba(188,239,18,.25)}
.hero-float{-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
.hero-float.bottom-left{background:rgba(17,15,15,.6)}

/* ---------- sparkline over the existing bars ---------- */
.fx-chart{position:relative;overflow:hidden}
.fx-chart > div{transform-origin:50% 100%;transform:scaleY(0);
  transition:transform .8s cubic-bezier(.22,1,.36,1);transition-delay:calc(var(--fx-i,0) * 60ms)}
.fx-chart.fx-in > div{transform:scaleY(1)}
.fx-chart > div{opacity:.32!important}
.fx-spark-wrap{position:absolute;inset:8px;pointer-events:none}
.fx-spark{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.fx-spark-line{stroke-dasharray:1;stroke-dashoffset:1;filter:drop-shadow(0 0 4px rgba(188,239,18,.8));
  transition:stroke-dashoffset 1.6s .35s cubic-bezier(.65,0,.35,1)}
.fx-spark-area{opacity:0;transition:opacity 1s 1.3s ease}
.fx-chart.fx-in .fx-spark-line{stroke-dashoffset:0}
.fx-chart.fx-in .fx-spark-area{opacity:1}
.fx-spark-dot{position:absolute;width:9px;height:9px;margin:-4.5px 0 0 -4.5px;border-radius:50%;background:#BCEF12;
  box-shadow:0 0 0 0 rgba(188,239,18,.6),0 0 12px #BCEF12;opacity:0;transform:scale(.3);
  transition:opacity .4s 1.9s,transform .4s 1.9s cubic-bezier(.34,1.56,.64,1)}
.fx-chart.fx-in .fx-spark-dot{opacity:1;transform:scale(1);animation:fx-ping 2s 2.4s infinite}
@keyframes fx-ping{0%{box-shadow:0 0 0 0 rgba(188,239,18,.55),0 0 12px #BCEF12}100%{box-shadow:0 0 0 12px rgba(188,239,18,0),0 0 12px #BCEF12}}

/* ---------- glass cards + 3D tilt + glare ---------- */
.services-grid,.why-grid,.proof-grid,.tools-grid{perspective:1200px}
.fx-glass{position:relative;isolation:isolate;
  background:linear-gradient(160deg,rgba(32,32,35,.62),rgba(12,12,12,.5))!important;
  -webkit-backdrop-filter:blur(14px) saturate(140%);backdrop-filter:blur(14px) saturate(140%);
  border-color:rgba(255,255,255,.08)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 1px 2px rgba(0,0,0,.6),0 24px 48px -28px rgba(0,0,0,.9);
  transform-style:preserve-3d;
  transition:rotate .6s cubic-bezier(.22,1,.36,1),border-color .3s,box-shadow .4s,opacity .7s var(--ease),transform .7s var(--ease)}
.fx-glass:hover{border-color:rgba(188,239,18,.4)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 30px 60px -30px rgba(0,0,0,.95),0 24px 60px -30px rgba(188,239,18,.35)}
.fx-glass.fx-tilting{transition:rotate .12s linear,border-color .3s,box-shadow .4s,opacity .7s var(--ease),transform .7s var(--ease)}
.fx-glare{position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:2;opacity:0;transition:opacity .35s;
  background:radial-gradient(420px circle at var(--mx,50%) var(--my,0%),rgba(188,239,18,.14),rgba(255,255,255,.04) 30%,transparent 60%)}
.fx-glass:hover .fx-glare{opacity:1}
.service-card.fx-glass > *:not(.fx-glare){position:relative;z-index:1}
.service-card.fx-glass .service-icon{transform:translateZ(30px)}
.service-card.fx-glass h3{transform:translateZ(20px)}
.service-card .service-icon{box-shadow:0 10px 30px -10px rgba(188,239,18,.45)}
.why-panel,.cta-banner,.faq-item{-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 30px 70px -40px rgba(188,239,18,.3)}
.faq-item{background:rgba(17,15,15,.55)!important}

/* section reveal: a little more depth than the base fade-up */
.reveal{filter:blur(6px);transition:opacity .8s var(--ease),transform .8s var(--ease),filter .8s var(--ease),rotate .6s cubic-bezier(.22,1,.36,1),translate .2s linear}
.reveal.visible{filter:none}
.fx-glass.reveal{transition:opacity .8s var(--ease),transform .8s var(--ease),filter .8s var(--ease),rotate .6s cubic-bezier(.22,1,.36,1),border-color .3s,box-shadow .4s}
.fx-glass.reveal.fx-tilting{transition:opacity .8s var(--ease),transform .8s var(--ease),filter .8s var(--ease),rotate .12s linear,border-color .3s,box-shadow .4s}

/* ---------- process line (Why Seller Build 01-04) ---------- */
.fx-steps{position:relative}
.fx-steps-line{position:absolute;width:2px;background:rgba(255,255,255,.08);border-radius:2px;pointer-events:none;z-index:0}
.fx-steps-line i{position:absolute;inset:0;transform-origin:50% 0;transform:scaleY(0);border-radius:2px;
  background:linear-gradient(180deg,#BCEF12,rgba(188,239,18,.5));box-shadow:0 0 12px rgba(188,239,18,.7)}
.fx-steps .why-item{position:relative;z-index:1}
.fx-steps .why-num{position:relative;z-index:1;transition:background .4s,color .4s,box-shadow .4s,transform .4s cubic-bezier(.34,1.56,.64,1)}
.fx-steps .why-item.fx-step-on .why-num{background:#BCEF12;color:#09090B;box-shadow:0 0 0 6px rgba(188,239,18,.12),0 0 24px rgba(188,239,18,.55);transform:scale(1.06)}
.fx-steps .why-item h3,.fx-steps .why-item p{transition:opacity .5s}
.fx-steps .why-item:not(.fx-step-on) h3,.fx-steps .why-item:not(.fx-step-on) p{opacity:.55}

/* ---------- magnetic buttons ---------- */
.fx-magnetic{transition:translate .35s cubic-bezier(.22,1,.36,1),background .2s,box-shadow .2s,transform .2s}
.fx-magnetic:hover{transition:translate .1s linear,background .2s,box-shadow .2s,transform .2s}

/* ---------- cursor glow ---------- */
.fx-cursor-glow,.fx-cursor-dot{position:fixed;left:0;top:0;pointer-events:none;z-index:9999;opacity:0;transition:opacity .3s,width .3s,height .3s,margin .3s,background .3s}
.fx-cursor-glow{width:340px;height:340px;margin:-170px 0 0 -170px;border-radius:50%;
  background:radial-gradient(closest-side,rgba(188,239,18,.12),rgba(188,239,18,.04) 50%,transparent);mix-blend-mode:screen}
.fx-cursor-dot{width:10px;height:10px;margin:-5px 0 0 -5px;border-radius:50%;border:1.5px solid #BCEF12;box-shadow:0 0 12px rgba(188,239,18,.8)}
body.fx-cursor-on .fx-cursor-glow,body.fx-cursor-on .fx-cursor-dot{opacity:1}
body.fx-cursor-hot .fx-cursor-dot{width:36px;height:36px;margin:-18px 0 0 -18px;background:rgba(188,239,18,.08)}

/* ---------- mobile / reduced motion ---------- */
@media (max-width:959px){.hero-copy::before{display:none}
  .hero-bg::before{background:radial-gradient(closest-side,rgba(188,239,18,.2) 0%,rgba(159,209,50,.07) 50%,transparent 100%)}}
@media (max-width:767px){
  .fx-glass{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
  body::before{animation:none}
  .reveal{filter:none}
}
@media (hover:none){.fx-cursor-glow,.fx-cursor-dot{display:none}}
@media (prefers-reduced-motion:reduce){
  body::before,.hero-card::after{animation:none}
  .hero-3d{animation:none;opacity:1}
  .reveal{filter:none}
  .fx-chart > div{transform:none}
  .fx-spark-line{stroke-dashoffset:0}
  .fx-spark-area,.fx-spark-dot{opacity:1;transform:none;animation:none}
  .fx-cursor-glow,.fx-cursor-dot{display:none}
}
