/* AFT boot loader v4 (pairs with /assets/js/aft-boot.js): 6 clear scenes, one big visual + one big line + one quote,
   brand «AI For Trading» with the clean logo (assembled from its parts). Opaque overlay over the painting page; 1.8 s
   (repeat 1.2 s), cap 2.2 s, 0.3 s fade. transform/opacity/clip only. */
#aftBoot{position:fixed;inset:0;z-index:2147483000;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:clamp(14px,2.6vh,24px);padding:24px 18px;
 background:radial-gradient(ellipse at 50% 40%,var(--bA,#10214a) 0%,var(--bB,#060b18) 64%,#03050b 100%);color:#F2F5FB;font-family:"IBM Plex Sans Arabic","Inter",system-ui,sans-serif;
 transition:opacity .3s ease,transform .3s ease;cursor:pointer;text-align:center}
html:not(.aft-booting) #aftBoot{opacity:0;transform:scale(1.02);pointer-events:none}
#aftBoot.k1{--bA:#10214a;--bB:#050a17}#aftBoot.k2{--bA:#0c2a24;--bB:#04100d}#aftBoot.k3{--bA:#1c1a46;--bB:#08071a}
#aftBoot.k4{--bA:#0b2c4a;--bB:#041019}#aftBoot.k5{--bA:#0e1c3c;--bB:#050914}#aftBoot.k6{--bA:#2a2108;--bB:#0d0a04}
#aftBoot .bS{position:absolute;top:16px;font:600 12px/1 inherit;font-family:inherit;color:#8c98b5;background:rgba(255,255,255,.04);border:1px solid #243052;border-radius:999px;padding:8px 14px;cursor:pointer}
#aftBoot .bS:hover,#aftBoot .bS:focus-visible{color:#fff;border-color:#4F7CFF;outline:none}
#aftBoot .br{position:absolute;top:18px;display:flex;align-items:center;gap:9px;font:700 15px/1 "Segoe UI",system-ui,sans-serif;color:#fff;direction:ltr}
#aftBoot .br img{width:auto;height:24px}
#aftBoot[dir=rtl] .br{right:18px}#aftBoot[dir=ltr] .br{left:18px}#aftBoot[dir=rtl] .bS{left:16px}#aftBoot[dir=ltr] .bS{right:16px}
@media (min-width:641px){#aftBoot .vis{width:min(720px,90vw)!important;height:min(440px,48vh)!important}#aftBoot .vis.v3{height:auto!important}}
#aftBoot .vis{position:relative;width:min(560px,90vw);height:min(300px,36vh);display:flex;align-items:center;justify-content:center}
#aftBoot .vis svg{width:100%;height:100%;overflow:visible}
#aftBoot .big{font-size:clamp(34px,9vw,54px);line-height:1.35;font-weight:800;letter-spacing:-.01em;opacity:0;animation:bUp .55s .45s cubic-bezier(.2,.8,.2,1) forwards;max-width:92vw}
#aftBoot .qt{font-size:clamp(15px,4vw,18px);line-height:1.7;color:#AEB9CF;opacity:0;animation:bUp .5s .75s cubic-bezier(.2,.8,.2,1) forwards;max-width:88vw}
#aftBoot .bar{width:min(220px,50vw);height:3px;border-radius:3px;background:rgba(255,255,255,.08);overflow:hidden}
#aftBoot .bar i{display:block;height:100%;width:0;background:linear-gradient(90deg,#4F7CFF,#E9B44C);animation:bW var(--d,1.8s) linear forwards}
#aftBoot .gold{background:linear-gradient(90deg,#FFE7A6,#EDB548 55%,#C98A12);-webkit-background-clip:text;background-clip:text;color:transparent}
#aftBoot .grn{color:#34D399}#aftBoot .blu{color:#9CB8FF}
@keyframes bUp{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes bIn{from{opacity:0;transform:scale(.85)}to{opacity:1;transform:none}}
@keyframes bF{to{opacity:1}}@keyframes bO{to{opacity:0}}
@keyframes bW{to{width:100%}}
@keyframes bDraw{to{stroke-dashoffset:0}}
@keyframes bSpin{to{transform:rotate(360deg)}}
/* 1 logo assembly */
#aftBoot .lg{position:relative;width:min(340px,62vw,40vh);aspect-ratio:1}
#aftBoot .wm{font:800 clamp(22px,5.6vw,28px)/1 "Segoe UI",system-ui,sans-serif;color:#fff;direction:ltr;letter-spacing:.01em;opacity:0;animation:bUp .5s .95s cubic-bezier(.2,.8,.2,1) forwards}
#aftBoot .lg img{position:absolute;inset:0;width:100%;height:100%}
#aftBoot .lg .pR{animation:lR .8s .05s cubic-bezier(.2,.8,.3,1) both,bO .35s 1.15s forwards}
#aftBoot .lg .pA{animation:lA .55s .15s cubic-bezier(.2,.9,.3,1) both,bO .35s 1.15s forwards}
#aftBoot .lg .pI{animation:lI .5s .32s cubic-bezier(.2,.9,.3,1) both,bO .35s 1.15s forwards}
#aftBoot .lg .pC{clip-path:inset(0 53% 0 0);animation:lC .6s .5s steps(7) forwards,bO .35s 1.15s forwards}
#aftBoot .lg .pF{opacity:0;animation:bF .35s 1.15s forwards}
#aftBoot .lg::after{content:"";position:absolute;inset:0;background:linear-gradient(105deg,transparent 40%,rgba(255,255,255,.8) 50%,transparent 60%) no-repeat;background-size:300% 100%;background-position:120% 0;
 -webkit-mask:var(--m) center/contain no-repeat;mask:var(--m) center/contain no-repeat;animation:lS .8s 1.25s ease-in-out forwards}
@keyframes lR{from{opacity:0;transform:rotate(-28deg) scale(.62)}to{opacity:1;transform:none}}
@keyframes lA{from{opacity:0;transform:translateX(-14%)}to{opacity:1;transform:none}}
@keyframes lI{from{opacity:0;transform:translateY(14%)}to{opacity:1;transform:none}}
@keyframes lC{to{clip-path:inset(0 24% 0 0)}}
@keyframes lS{to{background-position:-20% 0}}
/* 2 / 6 charts */
#aftBoot .cd{transform-box:fill-box;transform-origin:50% 100%;animation:cG .26s cubic-bezier(.2,.8,.2,1) both}
@keyframes cG{from{transform:scaleY(0);opacity:0}to{transform:none;opacity:1}}
#aftBoot .pl{fill:none;stroke:#F5CE6B;stroke-width:3.2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:1;animation:bDraw 1s .35s cubic-bezier(.45,.05,.3,1) forwards;filter:drop-shadow(0 0 8px rgba(245,206,107,.6))}
#aftBoot .tg line{stroke-dasharray:7 6;transition:none}
#aftBoot .tg.h line{animation:tH .01s forwards}#aftBoot .tg.h rect{animation:tR .3s forwards}
@keyframes tH{to{stroke-dasharray:none;stroke-width:2.6}}
@keyframes tR{from{fill:rgba(10,15,29,.9)}to{fill:#16a07a}}
#aftBoot .tk{opacity:0;transform-box:fill-box;transform-origin:center;animation:bIn .3s both}
#aftBoot .stp{animation:sS .5s 1.05s cubic-bezier(.45,0,.3,1) forwards}
@keyframes sS{to{transform:translateY(var(--dy))}}
#aftBoot .stp line,#aftBoot .stp rect{animation:sC .3s 1.45s forwards}
@keyframes sC{to{stroke:#79a3ff;fill:#3d7bfd}}
#aftBoot .stp .lb{animation:bO .15s 1.4s forwards}#aftBoot .stp .lb2{opacity:0;animation:bF .25s 1.5s forwards}
/* 3 words */
#aftBoot .wds{display:flex;align-items:center;justify-content:center;gap:clamp(8px,2vw,22px);flex-wrap:nowrap}
#aftBoot .wd{display:flex;flex-direction:column;align-items:center;gap:10px;opacity:.18;animation:wL .4s both}
#aftBoot .wd i{width:clamp(54px,14vw,78px);aspect-ratio:1;border-radius:22px;display:grid;place-items:center;background:rgba(255,255,255,.06);border:1.5px solid rgba(255,255,255,.12);font-style:normal}
#aftBoot .wd svg{width:52%;height:52%}
#aftBoot .wd b{font-size:clamp(30px,4.2vw,48px);font-weight:800;white-space:nowrap}
#aftBoot .ar{font-size:clamp(26px,5vw,38px);font-weight:800;color:#6d7fb3;opacity:0;animation:bF .3s both}#aftBoot .ar::before{content:"→"}html[dir=rtl] #aftBoot .ar::before,#aftBoot[dir=rtl] .ar::before{content:"←"}
#aftBoot .vis.v3{height:auto}
@media (max-width:640px){#aftBoot .wds{flex-direction:column;gap:6px}#aftBoot .wd{flex-direction:row;gap:14px;min-width:230px}#aftBoot .wd b{font-size:38px}#aftBoot .wd i{width:62px;border-radius:18px}#aftBoot .ar::before,#aftBoot[dir=rtl] .ar::before,html[dir=rtl] #aftBoot .ar::before{content:"↓"}#aftBoot .ar{font-size:26px;line-height:1}}
@keyframes wL{to{opacity:1}}
/* 4 phone */
#aftBoot .ph{position:relative;height:100%;aspect-ratio:5/8;border-radius:28px;background:#0d1526;border:2px solid #2a3756;box-shadow:0 24px 60px -20px rgba(0,0,0,.7);overflow:hidden;animation:bIn .45s both}
#aftBoot .ph .top{height:12%;display:flex;align-items:center;gap:7px;padding:0 10px;background:#13203a;direction:ltr}
#aftBoot .ph .top img{width:auto;height:18px}#aftBoot .ph .top b{font:700 13px/1 "Segoe UI",system-ui;color:#fff}
#aftBoot .msgs{display:flex;flex-direction:column;gap:12px;padding:14% 8% 0}
#aftBoot .bub{position:relative;padding:12px 13px;border-radius:15px;border-start-start-radius:4px;background:#1c2d4f;text-align:start;opacity:0;transform:translateY(16px) scale(.94);animation:bB .45s .15s cubic-bezier(.3,1.4,.5,1) forwards;overflow:hidden}
#aftBoot .bub b{display:block;font-size:clamp(14px,3.8vw,17px);line-height:1.45;color:#fff}#aftBoot .bub span{display:block;font-size:clamp(12px,3.1vw,13.5px);color:#a9b8d6;margin-top:5px}
#aftBoot .bub.b2{background:#123b2e;animation-delay:1s}
#aftBoot .dots{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:6px;background:#1c2d4f;animation:bO .15s .6s forwards}
#aftBoot .dots i{width:8px;height:8px;border-radius:50%;background:#8aa0c8;animation:dt .8s infinite}#aftBoot .dots i:nth-child(2){animation-delay:.15s}#aftBoot .dots i:nth-child(3){animation-delay:.3s}
@keyframes dt{40%{transform:translateY(-4px)}}
@keyframes bB{to{opacity:1;transform:none}}
/* 5 orbit */
#aftBoot .ob{position:relative;width:min(460px,90vw);height:100%}
#aftBoot .ob .core{position:absolute;inset:0;margin:auto;width:min(160px,32vw);height:min(160px,32vw);animation:bIn .5s both}
#aftBoot .ob .core img{width:100%;height:100%}
#aftBoot .ob .ow{position:absolute;inset:0;transform:scaleY(.72)}
#aftBoot .ob .orb{position:absolute;inset:0;animation:bSpin 7s linear infinite}
#aftBoot .ob .cp{position:absolute;left:50%;top:50%;width:46px;height:46px;margin:-23px}
#aftBoot .ob .cr{position:absolute;inset:0;animation:bSpin 7s linear infinite reverse}
#aftBoot .ob .cu{position:absolute;inset:0;transform:scaleY(1.389)}
#aftBoot .ob .ch{position:absolute;inset:0;border-radius:50%;display:grid;place-items:center;font:800 10px/1 Arial,sans-serif;color:#fff;background:#24304f;box-shadow:0 0 0 3px #060b18;opacity:0;animation:bIn .35s both;overflow:hidden}
#aftBoot .ob .ch svg{width:100%;height:100%}
#aftBoot.sw .ch{animation-play-state:paused}
@media (prefers-reduced-motion:reduce){#aftBoot{display:none!important}}
@media (min-width:641px){#aftBoot .wd i{width:104px;border-radius:28px}#aftBoot .wd b{font-size:60px}#aftBoot .ar{font-size:44px}#aftBoot .wds{gap:30px}}
