/* ══════════════════════════════════════════════════════════════
   style2_home.css — Style 2 ONLY (home page)
   Loaded only when Site Style = 2. Every rule is scoped with html.style2,
   so Style 1 is never affected.
   1) Soft lavender background with big pastel 3D spheres (like the register page)
   2) Home page colour fixes (old dark sections turned into the light theme)
   ══════════════════════════════════════════════════════════════ */

/* ───────── 3D animated background ───────── */
.s2bg{display:none;}
html.style2 .s2bg{
  display:block;position:fixed;inset:0;z-index:-1;overflow:hidden;pointer-events:none;
  background:linear-gradient(180deg,#f2efff 0%,#f4f1ff 55%,#eef1ff 100%);
  perspective:1200px;perspective-origin:50% 40%;
  --sy:0;--mx:0;--my:0;
}
html.style2 .s2scene{position:absolute;inset:0;transform-style:preserve-3d;
  transform:rotateX(calc(var(--my)*-2.2deg)) rotateY(calc(var(--mx)*3deg));}
html.style2 .s2p{position:absolute;inset:0;transform-style:preserve-3d;
  transform:translate3d(calc(var(--mx)*var(--k)*40px),calc(var(--sy)*var(--k)*1px),0);will-change:transform;}

/* spheres */
html.style2 .s2o{position:absolute;border-radius:50%;will-change:transform;transform-style:preserve-3d;}
html.style2 .s2o::after{content:"";position:absolute;inset:0;border-radius:50%;
  background:radial-gradient(circle at 30% 24%,rgba(255,255,255,.75),rgba(255,255,255,0) 46%);}
html.style2 .o1{width:min(52vw,390px);aspect-ratio:1;left:-14%;top:-5%;
  background:radial-gradient(circle at 34% 30%,#e3f3ff 0,#c8e5fc 40%,#b2daf8 78%,#a4d1f3 100%);
  box-shadow:0 30px 70px rgba(100,170,230,.28),inset -18px -22px 50px rgba(80,150,220,.18);
  animation:s2fa 15s ease-in-out infinite;}
html.style2 .o2{width:min(86vw,720px);aspect-ratio:1;right:-26%;top:-16%;
  background:radial-gradient(circle at 32% 28%,#efe9ff 0,#ddd3ff 42%,#d0c3fe 76%,#c4b5fb 100%);
  box-shadow:0 40px 90px rgba(140,110,240,.26),inset -26px -30px 70px rgba(124,92,230,.16);
  animation:s2fb 19s ease-in-out infinite;}
html.style2 .o3{width:min(38vw,260px);aspect-ratio:1;right:14%;top:21%;
  background:radial-gradient(circle at 32% 28%,#ffe9f2 0,#ffd0e2 44%,#fdbad4 100%);
  box-shadow:0 26px 54px rgba(240,120,170,.30),inset -14px -16px 38px rgba(230,90,150,.18);
  animation:s2fc 11s ease-in-out infinite;}
html.style2 .o4{width:min(30vw,190px);aspect-ratio:1;left:6%;top:66%;
  background:radial-gradient(circle at 32% 28%,#e6fbf1 0,#c9f3df 46%,#aeeacb 100%);
  box-shadow:0 22px 46px rgba(60,190,130,.24),inset -12px -14px 30px rgba(40,170,110,.16);
  animation:s2fd 13s ease-in-out -4s infinite;}
html.style2 .o5{width:min(34vw,230px);aspect-ratio:1;right:-6%;top:70%;
  background:radial-gradient(circle at 32% 28%,#fff1e2 0,#ffe0c2 46%,#fdcfa2 100%);
  box-shadow:0 22px 50px rgba(240,150,70,.24),inset -14px -16px 34px rgba(230,130,50,.16);
  animation:s2fa 17s ease-in-out -7s infinite;}
@keyframes s2fa{0%,100%{transform:translate3d(0,0,0) rotate3d(1,1,0,0deg)}50%{transform:translate3d(18px,26px,70px) rotate3d(1,1,0,14deg)}}
@keyframes s2fb{0%,100%{transform:translate3d(0,0,0) scale(1)}50%{transform:translate3d(-26px,22px,40px) scale(1.04)}}
@keyframes s2fc{0%,100%{transform:translate3d(0,0,0)}33%{transform:translate3d(-16px,-22px,90px)}66%{transform:translate3d(14px,12px,30px)}}
@keyframes s2fd{0%,100%{transform:translate3d(0,0,0)}50%{transform:translate3d(22px,-30px,80px)}}

/* 3D rings */
html.style2 .s2r{position:absolute;border-radius:50%;will-change:transform;}
html.style2 .r1{width:min(40vw,250px);aspect-ratio:1;left:18%;top:30%;
  border:16px solid rgba(167,139,250,.30);
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.75),0 14px 34px rgba(124,92,230,.18);
  animation:s2ra 16s linear infinite;}
html.style2 .r2{width:min(24vw,150px);aspect-ratio:1;right:10%;top:56%;
  border:11px solid rgba(244,114,182,.28);
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.75),0 12px 28px rgba(236,72,153,.16);
  animation:s2rb 12s linear infinite;}
@keyframes s2ra{from{transform:rotateX(62deg) rotateZ(0deg)}to{transform:rotateX(62deg) rotateZ(360deg)}}
@keyframes s2rb{from{transform:rotateY(64deg) rotateZ(0deg)}to{transform:rotateY(64deg) rotateZ(-360deg)}}

/* 3D cube */
html.style2 .s2cube{position:absolute;left:44%;top:78%;width:70px;height:70px;transform-style:preserve-3d;
  animation:s2cube 18s linear infinite;}
html.style2 .s2cube b{position:absolute;inset:0;border:1.5px solid rgba(255,255,255,.9);border-radius:10px;
  background:linear-gradient(135deg,rgba(255,255,255,.65),rgba(165,180,252,.38));box-shadow:inset 0 0 18px rgba(255,255,255,.6);}
html.style2 .s2cube .f1{transform:translateZ(35px)}
html.style2 .s2cube .f2{transform:rotateY(180deg) translateZ(35px)}
html.style2 .s2cube .f3{transform:rotateY(90deg) translateZ(35px)}
html.style2 .s2cube .f4{transform:rotateY(-90deg) translateZ(35px)}
html.style2 .s2cube .f5{transform:rotateX(90deg) translateZ(35px)}
html.style2 .s2cube .f6{transform:rotateX(-90deg) translateZ(35px)}
@keyframes s2cube{from{transform:rotateX(0) rotateY(0) rotateZ(0)}to{transform:rotateX(360deg) rotateY(360deg) rotateZ(180deg)}}

/* small glowing dots (like the logo dots) */
html.style2 .s2d{position:absolute;border-radius:50%;display:block;}
html.style2 .d1{width:14px;height:14px;left:7%;top:12%;background:#22c55e;box-shadow:0 0 0 6px rgba(34,197,94,.16);animation:s2dot 3.2s ease-in-out infinite;}
html.style2 .d2{width:12px;height:12px;left:21%;top:36%;background:#f59e0b;box-shadow:0 0 0 6px rgba(245,158,11,.16);animation:s2dot 3.8s ease-in-out -1s infinite;}
html.style2 .d3{width:10px;height:10px;right:30%;top:14%;background:#ec4899;box-shadow:0 0 0 5px rgba(236,72,153,.15);animation:s2dot 4.2s ease-in-out -2s infinite;}
html.style2 .d4{width:11px;height:11px;right:8%;top:44%;background:#6366f1;box-shadow:0 0 0 5px rgba(99,102,241,.15);animation:s2dot 3.5s ease-in-out -.5s infinite;}
@keyframes s2dot{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-14px) scale(1.18)}}

@media(max-width:600px){
  html.style2 .o2{right:-40%;top:-10%;}
  html.style2 .o1{left:-22%;}
  html.style2 .r1{left:8%;top:34%;}
  html.style2 .s2cube{left:60%;width:54px;height:54px;}
  html.style2 .s2cube b{transform-origin:center;}
}
@media(prefers-reduced-motion:reduce){
  html.style2 .s2bg *{animation:none!important;}
}

/* background sits behind everything; body must be see-through on the home page */
html.style2.s2home body{background:transparent!important;}
html.style2 .hp-wrap{position:relative;}

/* ───────── home page colours (Style 2) ───────── */
html.style2 .hp-hero{background:transparent;}
html.style2 .hp-btns .btn{border-radius:99px;}
html.style2 .hp-stats{background:rgba(255,255,255,.62)!important;border-color:rgba(99,102,241,.14)!important;
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);}
html.style2 .s2-band{background:rgba(255,255,255,.55);border-color:rgba(99,102,241,.14);
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);}
html.style2 .hx-sub,html.style2 .s2-sec .s2-sub{color:var(--muted);}

/* storage mock-up card */
html.style2 .hx-mock-card{background:linear-gradient(160deg,#fff,#f6f3ff 70%)!important;border:1px solid #ded9fb!important;
  box-shadow:0 30px 70px rgba(99,102,241,.20),0 0 0 6px rgba(255,255,255,.5)!important;-webkit-backdrop-filter:none;backdrop-filter:none;}
html.style2 .hx-mock-name{color:var(--text);}
html.style2 .hx-mock-sub{color:#4f46e5;}
html.style2 .hx-live{color:#059669;background:#dcfce7;border-color:#a7f3d0;}
html.style2 .hx-row{background:#fff;border-color:#e6e8f8;box-shadow:0 4px 12px rgba(60,70,160,.06);}
html.style2 .hx-row:nth-child(2) .hx-fi{background:#fee2e2!important;color:#ef4444!important;}
html.style2 .hx-row:nth-child(3) .hx-fi{background:#dbeafe!important;color:#2563eb!important;}
html.style2 .hx-fm{color:var(--muted);}
html.style2 .hx-pct{color:#2563eb;}
html.style2 .hx-bar{background:#e8eaf8;}
html.style2 .hx-speed small{color:var(--faint);}
html.style2 .hx-speed strong i{color:#f59e0b;}
html.style2 .hx-ver{background:#eef0ff;color:#4338ca;}
html.style2 .hx-f1{background:#fff;border-color:#bbf7d0;color:#16a34a;box-shadow:0 14px 30px rgba(34,197,94,.22);}
html.style2 .hx-f2{box-shadow:0 14px 30px rgba(168,85,247,.30);}

/* "Why users choose" timeline */
html.style2 .hx-tl-item h3,html.style2 .hx-tl-item p{text-shadow:none;}
html.style2 .hx-tl-ic{background:linear-gradient(145deg,rgba(var(--c),.20),#fff 90%);box-shadow:0 12px 30px rgba(var(--c),.22);}

/* "Unleash Your Potential" pastel boxes — each with its own colour */
html.style2 .hx-card{background:linear-gradient(150deg,rgba(var(--c),.17),rgba(var(--c),.05) 78%),#fff;
  border:1px solid rgba(var(--c),.28);box-shadow:0 10px 28px rgba(var(--c),.12);}
html.style2 .hx-card:hover{box-shadow:0 18px 40px rgba(var(--c),.26);}
html.style2 .hx-card h3{color:var(--text);}
html.style2 .hx-card p{color:var(--muted);}
html.style2 .hx-code{color:#3b4180;color:color-mix(in srgb,rgb(var(--c)) 68%,#1b1f4a);background:rgba(var(--c),.10);border-color:rgba(var(--c),.26);}
html.style2 .hx-tok{background:rgba(255,255,255,.75);border-color:rgba(var(--c),.28);}
html.style2 .hx-tok small{color:var(--muted);}
html.style2 .hx-tok-k{background:rgba(var(--c),.09);color:var(--muted);}

/* "Power Features" window — dark navy turned light */
html.style2 .hx-power{background:linear-gradient(160deg,#fff,#f4f1ff 65%,#eef4ff);border:1px solid #e0defa;
  box-shadow:0 28px 70px rgba(99,102,241,.18);}
html.style2 .hx-pill{color:#4338ca;background:#eef0ff;}
html.style2 .hx-power h2{color:var(--text);}
html.style2 .hx-chip{background:#fff;border:1px solid #e6e8f8;color:var(--text);box-shadow:0 4px 12px rgba(60,70,160,.05);}
html.style2 .hx-chip:hover{background:rgba(var(--c),.10);}
html.style2 .hx-chip span{background:rgba(var(--c),.15);}
html.style2 .hx-win{background:#fff;border:1px solid #e6e8f8;box-shadow:0 10px 28px rgba(60,70,160,.08);}
html.style2 .hx-win-top{background:#f4f5ff;}
html.style2 .hx-win-top em{color:#8a91b8;}
html.style2 .hx-frow{background:#f7f8ff;animation-name:hxHiS2;}
@keyframes hxHiS2{
  0%,4%{border-color:transparent;background:#f7f8ff}
  10%,28%{border-color:rgba(59,130,246,.5);background:#e8efff}
  34%,100%{border-color:transparent;background:#f7f8ff}}
html.style2 .hx-frow:nth-child(1) .hx-fi{background:#dbeafe!important;color:#2563eb!important;}
html.style2 .hx-frow:nth-child(2) .hx-fi{background:#e0e7ff!important;color:#4f46e5!important;}
html.style2 .hx-frow:nth-child(3) .hx-fi{background:#fef3c7!important;color:#d97706!important;}
html.style2 .hx-fm[style]{color:#2563eb!important;}

/* "Why Choose" feature cards — pastel, own colour each */
html.style2 .hp-fcard:nth-child(6n+1){--pc:124,58,237;}
html.style2 .hp-fcard:nth-child(6n+2){--pc:37,99,235;}
html.style2 .hp-fcard:nth-child(6n+3){--pc:5,150,105;}
html.style2 .hp-fcard:nth-child(6n+4){--pc:219,39,119;}
html.style2 .hp-fcard:nth-child(6n+5){--pc:217,119,6;}
html.style2 .hp-fcard:nth-child(6n+6){--pc:8,145,178;}
html.style2 .hp-fcard{background:linear-gradient(150deg,rgba(var(--pc),.12),#fff 72%)!important;border-color:rgba(var(--pc),.24)!important;}
html.style2 .hp-fcard:hover{border-color:rgba(var(--pc),.5)!important;box-shadow:0 14px 34px rgba(var(--pc),.20)!important;}
html.style2 .hp-fcard .hp-ficon{background:rgba(var(--pc),.14)!important;border-color:rgba(var(--pc),.30)!important;color:rgb(var(--pc))!important;}

/* steps / tiles / faq keep white cards, just lift them off the background */
html.style2 .s2-step,html.style2 .s2-tile,html.style2 .s2-faq details{border-color:rgba(99,102,241,.16);}
html.style2 .hp-cta-box{background:linear-gradient(150deg,#fff,#f4f1ff)!important;border-color:#ded9fb!important;}

/* ───────── 3D background on every public page (file, watch, ld, series, login, register, wn…) ───────── */
html.style2 .auth-wrap,html.style2 .ld-page,html.style2 .dl-page,html.style2 .watch-wrap,html.style2 .sr-wrap{background:transparent;}
html.style2 .s2bg{z-index:-1;}
