@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800;900&display=swap');
/* ⬇ برای کار کردن آفلاین، دو بلاک @font-face جاسازی‌شده‌ی قبلی (font-family:V) را همین‌جا بگذار */
:root{--f:'Vazirmatn',V,Tahoma,sans-serif;
--t1:12px;--t2:14px;--t3:16px;--t4:20px;--h2:clamp(26px,3.3vw,46px);--h1:clamp(34px,min(5vw,8.5vh),66px);
--acc:#8b5cf6;--acc2:#c4b5fd;--fg:#f2f1ed;--mut:rgba(242,241,237,.76);--line:rgba(255,255,255,.14);--mx:50vw;--my:50vh;--p:0}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{font:400 var(--t3)/1.95 var(--f);color:var(--fg);background:#090a0e;overflow-x:hidden}
a{color:inherit;text-decoration:none}button{font:inherit;color:inherit;cursor:pointer}
h1,h2,p,li,span,a,b{letter-spacing:0}
:focus-visible{outline:2px solid var(--acc2);outline-offset:3px}
#bg{position:fixed;inset:0;z-index:0}
#bg:after{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px);background-size:72px 72px;mask-image:linear-gradient(transparent,#000 18%,#000 82%,transparent)}
body:before{content:"";position:fixed;inset:0;z-index:1;pointer-events:none;background:radial-gradient(520px circle at var(--mx) var(--my),rgba(139,92,246,.13),transparent 60%)}
/* هدر */
header{position:fixed;top:14px;inset-inline:0;z-index:80;display:flex;justify-content:center;padding:0 14px;pointer-events:none}
.hd{pointer-events:auto;position:relative;display:flex;align-items:center;gap:16px;width:min(1100px,100%);padding:8px 8px 8px 10px;padding-inline-start:18px;border-radius:99px;background:rgba(14,15,20,.58);border:1px solid var(--line);backdrop-filter:blur(22px) saturate(1.5);box-shadow:0 22px 60px rgba(0,0,0,.4),inset 0 1px rgba(255,255,255,.09);transition:width .5s,background .4s}
.hd.sm{width:min(920px,100%);background:rgba(10,11,15,.88)}
.hd:after{content:"";position:absolute;bottom:-1px;inset-inline:34px;height:2px;border-radius:2px;background:linear-gradient(90deg,var(--acc),var(--acc2));box-shadow:0 0 14px var(--acc);transform:scaleX(var(--p));transform-origin:right}
.logo{display:flex;align-items:center;gap:10px;font-weight:900;white-space:nowrap}
.logo i{display:grid;place-items:center;width:38px;height:38px;border-radius:13px;background:linear-gradient(145deg,var(--acc),#5b21b6);color:#fff;font:900 var(--t4) var(--f);font-style:normal;transform:rotate(-8deg);box-shadow:0 10px 28px rgba(139,92,246,.4);transition:transform .5s}
.logo:hover i{transform:rotate(8deg) scale(1.1)}
.live{display:flex;align-items:center;gap:7px;padding:2px 12px;border-radius:99px;border:1px solid var(--line);font-size:var(--t1);color:var(--mut);white-space:nowrap}
.live:before{content:"";width:7px;height:7px;border-radius:50%;background:#3ddc84;animation:pl 2s infinite}
@keyframes pl{0%{box-shadow:0 0 0 0 rgba(61,220,132,.6)}70%,100%{box-shadow:0 0 0 8px transparent}}
.nav{display:flex;gap:2px;margin-inline:auto}
.nav a{padding:6px 16px;border-radius:99px;font-size:var(--t2);font-weight:500;color:var(--mut);transition:.3s}
.nav a:hover{color:#fff;background:rgba(255,255,255,.07)}
.nav a.on{color:#fff;background:rgba(139,92,246,.2);box-shadow:inset 0 0 0 1px rgba(139,92,246,.5)}
.btn{position:relative;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 24px;border-radius:99px;border:1px solid var(--line);background:rgba(255,255,255,.08);color:var(--fg);font:700 var(--t2)/1.8 var(--f);white-space:nowrap;translate:var(--tx,0) var(--ty,0);transition:transform .3s,box-shadow .3s,background .3s}
.btn:hover{transform:translateY(-3px);background:rgba(255,255,255,.14)}
.btn.p{background:linear-gradient(135deg,var(--acc),#5b21b6);border-color:transparent;color:#fff;box-shadow:0 12px 36px rgba(139,92,246,.35)}
.btn.p:hover{box-shadow:0 18px 50px rgba(139,92,246,.55)}
.btn.p:before{content:"";position:absolute;inset:0;background:linear-gradient(110deg,transparent 35%,rgba(255,255,255,.4),transparent 65%);transform:translateX(-130%);animation:sh 3.6s infinite}
@keyframes sh{45%,100%{transform:translateX(130%)}}
.btn.lg{padding:12px 28px;font-size:var(--t3)}
.dots{position:fixed;left:22px;top:50%;transform:translateY(-50%);z-index:50;display:flex;flex-direction:column;gap:12px}
.dot{width:8px;height:8px;border-radius:8px;border:0;padding:0;background:var(--fg);opacity:.3;transition:.4s}
.dot.on{opacity:1;height:28px;background:var(--acc)}
/* دوک ارتباط */
.dock{position:fixed;right:16px;top:50%;transform:translateY(-50%);z-index:70;display:flex;flex-direction:column;align-items:center;gap:10px;padding:12px 10px;border-radius:32px;background:rgba(14,15,20,.74);border:1px solid var(--line);backdrop-filter:blur(18px);box-shadow:0 26px 70px rgba(0,0,0,.55),0 0 40px rgba(139,92,246,.12)}
.dock b{font-size:var(--t1);font-weight:700;color:var(--mut);writing-mode:vertical-rl;padding-bottom:4px}
.sc{--c:#25d366;position:relative;display:grid;place-items:center;width:52px;height:52px;border-radius:19px;color:var(--c);background:color-mix(in srgb,var(--c) 15%,#0d0e13);border:1px solid color-mix(in srgb,var(--c) 50%,transparent);translate:var(--tx,0) var(--ty,0);transition:transform .35s,background .35s,color .35s,box-shadow .35s}
.sc svg{width:25px;height:25px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sc:hover{background:var(--c);color:#fff;transform:scale(1.14);box-shadow:0 0 0 6px color-mix(in srgb,var(--c) 22%,transparent),0 16px 40px color-mix(in srgb,var(--c) 55%,transparent)}
.sc:after{content:attr(data-t);position:absolute;right:calc(100% + 16px);padding:2px 14px;border-radius:12px;background:var(--c);color:#fff;font:700 var(--t2)/1.8 var(--f);white-space:nowrap;opacity:0;transform:translateX(10px);pointer-events:none;transition:.3s}
.sc:hover:after{opacity:1;transform:none}
.sc.w:before{content:"";position:absolute;inset:-1px;border-radius:19px;border:2px solid var(--c);animation:ping 2.2s infinite}
@keyframes ping{from{opacity:.9;transform:scale(1)}to{opacity:0;transform:scale(1.55)}}
.sc.t{--c:#2aabee}.sc.m{--c:#8b5cf6}.sc.c{--c:#ffb020}
/* شیء سه‌بعدی */
#stage{position:fixed;inset:0;z-index:5;perspective:1500px;pointer-events:none;overflow:hidden}
.obj{--w:min(44vw,540px);position:absolute;left:50%;top:50%;width:var(--w);aspect-ratio:1.3;transform-style:preserve-3d;will-change:transform;filter:drop-shadow(0 55px 70px rgba(0,0,0,.5))}
.obj:before{content:"";position:absolute;inset:-30%;background:radial-gradient(circle,rgba(139,92,246,.34),transparent 65%);filter:blur(40px);transform:translateZ(-150px)}
.win,.back{position:absolute;inset:0;border-radius:20px}
.win{background:linear-gradient(145deg,rgba(35,37,44,.96),rgba(10,11,15,.98));border:1px solid rgba(255,255,255,.18);overflow:hidden;direction:ltr;color:#ecebe6}
.back{border:1.5px solid var(--acc);transform:translateZ(-60px) scale(.94);opacity:.7}
.bar{display:flex;align-items:center;gap:6px;padding:12px 16px;border-bottom:1px solid rgba(255,255,255,.09)}
.bar i{width:9px;height:9px;border-radius:50%;background:#3d3e45}.bar em{margin-left:auto;font:var(--t1) var(--f);color:#8a8b91;font-style:normal}
.bd{padding:22px;display:grid;gap:12px}
.lg{width:44px;height:44px;border-radius:12px;background:linear-gradient(145deg,var(--acc),#6d28d9);color:#fff;display:grid;place-items:center;font:900 var(--t4) var(--f);transform:rotate(-8deg)}
.ln{height:10px;border-radius:6px;background:#34353b}.w1{width:70%}.w2{width:45%}
.bd pre{font:var(--t1)/1.8 ui-monospace,Menlo,Consolas,monospace;color:#b8b9bf}
.chip{position:absolute;padding:2px 16px;border-radius:99px;background:rgba(15,16,21,.88);border:1px solid rgba(255,255,255,.18);color:#ecebe6;font:700 var(--t2)/1.9 var(--f);box-shadow:0 20px 45px rgba(0,0,0,.45);white-space:nowrap}
.c1{top:-4%;right:-6%;transform:translateZ(90px)}.c2{bottom:12%;left:-8%;transform:translateZ(120px);background:var(--acc);border-color:var(--acc);color:#fff}.c3{bottom:-5%;right:10%;transform:translateZ(70px)}
.ring{position:absolute;inset:-4%;border:1px solid rgba(139,92,246,.22);border-radius:50%;transform:rotateX(65deg) rotateZ(15deg)}
/* بخش‌ها */
main{position:relative;z-index:10}
.sec{height:130vh}
.in{position:sticky;top:0;height:100vh;height:100svh;display:flex;align-items:center;justify-content:flex-start;padding:70px max(8vw,112px) 0}
.sec[data-s=l] .in{justify-content:flex-end}
.sec[data-s=c] .in{justify-content:center;text-align:center}
.tx{width:min(46vw,540px);padding:32px 34px;border-radius:32px;background:rgba(10,11,16,.66);border:1px solid var(--line);backdrop-filter:blur(18px);box-shadow:0 30px 80px rgba(0,0,0,.4),inset 0 1px rgba(255,255,255,.07);will-change:opacity,transform}
.sec:first-child .tx{width:min(54vw,650px)}
.sec[data-s=c] .tx{width:min(720px,90vw)}
.k{display:inline-block;margin-bottom:14px;padding:0 16px;border-radius:99px;border:1px solid rgba(139,92,246,.5);background:rgba(139,92,246,.1);color:var(--acc2);font:700 var(--t1)/2 var(--f)}
h1{font-size:var(--h1);line-height:1.4;font-weight:900}
h2{font-size:var(--h2);line-height:1.45;font-weight:900}
h1 span,h2 .a{color:var(--acc)}
.tx p{margin-top:14px;color:var(--mut);max-width:50ch}
.sec[data-s=c] .tx p{margin-inline:auto}
.cta{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}
.sec[data-s=c] .cta{justify-content:center}
.note{margin-top:16px;font-size:var(--t2);color:var(--mut)}
.note b{color:var(--acc2)}
.svc{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 18px;border:1px solid var(--line);border-radius:16px;background:rgba(255,255,255,.04);transition:.35s}
.svc:hover{transform:translateX(-6px);border-color:rgba(139,92,246,.5);background:rgba(139,92,246,.08)}
.svc b{font-size:var(--t3);font-weight:700}.svc span{font-size:var(--t1);color:var(--mut)}
.stack{display:grid;gap:8px;margin-top:20px}
.g3,.cmp{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:20px}
.cmp{grid-template-columns:1fr 1fr}
.g3 div,.cmp div{padding:12px 12px;border-radius:16px;border:1px solid var(--line);background:rgba(255,255,255,.05);font-size:var(--t2);line-height:1.8;color:var(--mut)}
.g3 b,.cmp b{display:block;font-size:var(--t3);font-weight:800;color:var(--fg)}
.cmp .y{border-color:rgba(139,92,246,.55);background:rgba(139,92,246,.09)}.cmp .y b{color:var(--acc2)}
ol.l{list-style:none;margin-top:18px;counter-reset:n;text-align:start}
.l li{padding:8px 0;border-bottom:1px solid var(--line);font-size:var(--t2);color:var(--mut)}
.l li b{font-size:var(--t3);color:var(--fg);margin-inline-end:6px}
.l li:before{counter-increment:n;content:counter(n);display:inline-grid;place-items:center;width:26px;height:26px;margin-inline-end:12px;border-radius:50%;background:rgba(139,92,246,.2);color:var(--acc2);font:700 var(--t1)/1 var(--f)}
.hint{position:absolute;bottom:22px;inset-inline:0;text-align:center;font-size:var(--t2);color:var(--mut);animation:bn 2s infinite}
@keyframes bn{50%{transform:translateY(8px)}}
.sec:last-child .tx{width:min(780px,92vw);background:rgba(10,11,16,.84);border-color:rgba(139,92,246,.4);box-shadow:0 30px 90px rgba(0,0,0,.6),0 0 60px rgba(139,92,246,.15)}
.foot{margin-top:22px;padding-top:12px;border-top:1px solid var(--line);font-size:var(--t1);color:var(--mut)}
/* چت‌بات */
#cb{position:fixed;right:16px;bottom:16px;z-index:90;display:flex;align-items:center;gap:10px;padding:6px 18px 6px 6px;border:0;border-radius:99px;background:linear-gradient(135deg,var(--acc),#5b21b6);color:#fff;font:700 var(--t2)/1.8 var(--f);box-shadow:0 14px 40px rgba(139,92,246,.45)}
#cb i{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.22);font-style:normal;font-size:18px}
#cp{position:fixed;right:16px;bottom:78px;z-index:90;width:min(360px,calc(100vw - 32px));height:min(500px,calc(100svh - 170px));display:flex;flex-direction:column;border-radius:26px;background:rgba(12,13,18,.95);border:1px solid var(--line);backdrop-filter:blur(20px);box-shadow:0 30px 90px rgba(0,0,0,.6);overflow:hidden}
#cp[hidden],#fm[hidden]{display:none}
.ch{display:flex;justify-content:space-between;align-items:center;padding:10px 18px;border-bottom:1px solid var(--line);font-weight:700;font-size:var(--t2);line-height:1.6}
.ch small{display:block;font-weight:400;font-size:var(--t1);color:var(--mut)}.ch button{border:0;background:none;font-size:24px;line-height:1;padding:4px 8px}
#ms{flex:1;overflow:auto;padding:14px;display:flex;flex-direction:column;gap:8px}
.m{max-width:86%;padding:6px 14px;border-radius:16px 16px 16px 4px;background:rgba(255,255,255,.09);font-size:var(--t2);line-height:1.8}
.m.me{align-self:flex-end;background:var(--acc);border-radius:16px 16px 4px 16px}
#qr{display:flex;flex-wrap:wrap;gap:8px;padding:0 14px 12px}
#qr button{padding:4px 14px;border-radius:99px;border:1px solid rgba(139,92,246,.5);background:rgba(139,92,246,.1);font:500 var(--t2)/1.8 var(--f)}#qr button:hover{background:var(--acc)}
#fm{display:flex;gap:8px;padding:10px 14px 14px;border-top:1px solid var(--line)}
#fm input{flex:1;min-width:0;padding:8px 16px;border-radius:99px;border:1px solid var(--line);background:rgba(255,255,255,.06);color:var(--fg);font:16px var(--f)}
/* ماوس */
html.cur,html.cur *{cursor:none!important}
#cd,#cr{position:fixed;left:0;top:0;z-index:999;pointer-events:none;border-radius:50%;opacity:0}
html.cur #cd,html.cur #cr{opacity:1}
#cd{width:8px;height:8px;margin:-4px 0 0 -4px;background:var(--acc);box-shadow:0 0 14px var(--acc)}
#cr{width:38px;height:38px;margin:-19px 0 0 -19px;border:1.5px solid rgba(255,255,255,.55);transition:width .28s,height .28s,margin .28s,background .28s,border-color .28s}
#cr.h{width:66px;height:66px;margin:-33px 0 0 -33px;background:rgba(139,92,246,.16);border-color:var(--acc)}
#cr.d{width:24px;height:24px;margin:-12px 0 0 -12px;background:rgba(139,92,246,.4)}
.rp{position:fixed;width:12px;height:12px;margin:-6px 0 0 -6px;border-radius:50%;border:2px solid var(--acc);z-index:998;pointer-events:none;animation:rp .7s forwards}
@keyframes rp{to{transform:scale(7);opacity:0}}
@media(max-width:900px){.nav,.live{display:none}.hd{justify-content:space-between}}
@media(max-width:800px){
:root{--t3:15px;--t4:18px;--h2:clamp(23px,6.6vw,30px);--h1:clamp(30px,9.4vw,42px)}
header{top:8px}.dots,.hint,.note,.ring{display:none}
.sec{height:120vh}
.in{align-items:flex-end;justify-content:center!important;text-align:center;padding:0 62px 78px 14px}
.tx,.sec:first-child .tx,.sec:last-child .tx{width:100%;padding:18px 18px;border-radius:26px}
.tx p{margin:8px auto 0}.cta{justify-content:center;margin-top:14px;gap:8px}.btn.lg{padding:8px 18px;font-size:var(--t2)}
.k{margin-bottom:6px}.stack,.g3,.cmp{margin-top:12px}.svc{padding:4px 14px}.l li{padding:5px 0}.l{margin-top:10px}.foot{margin-top:12px}
.obj{--w:min(76vw,340px)}
.dock{right:6px;padding:8px 6px;gap:8px;border-radius:24px}.dock b{display:none}.sc{width:42px;height:42px;border-radius:15px}.sc svg{width:21px;height:21px}.sc:after{display:none}
#cb{right:8px;bottom:8px;padding:6px}#cb span{display:none}#cp{right:8px;left:8px;width:auto;bottom:70px}
}
@media(max-height:620px) and (min-width:801px){.in{padding-top:64px}.tx{padding:22px 26px}.stack{gap:5px;margin-top:12px}.g3,.cmp{margin-top:12px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important}}

/* ===== پولیش نهایی رابط ===== */
.hero-cta .btn,.footer-cta .btn{min-width:176px}
.btn i{font-style:normal;font-size:17px;transition:transform .3s}
.btn:hover i{transform:translate(-3px,-2px)}
.btn-bale{border-color:rgba(139,92,246,.38);background:rgba(139,92,246,.055)}
.btn-shine{box-shadow:0 16px 48px rgba(139,92,246,.28)}
.dock{padding:14px 11px}
.sc{overflow:visible}
.sc.b{--c:#8b5cf6}
.sc.b svg{fill:none}
.sc.b svg path:first-child{fill:currentColor;stroke:currentColor}
.sc.b svg path:last-child{stroke:#0d0e13}
.sc:hover{z-index:2}
.sc:after{font-size:12px;right:calc(100% + 12px);box-shadow:0 8px 24px rgba(0,0,0,.3)}
/* مراحل کار: تایم‌لاین واقعی */
ol.l{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-top:22px;counter-reset:steps}
.l li{position:relative;min-height:148px;padding:20px 14px 16px;border:1px solid var(--line);border-radius:20px;background:linear-gradient(145deg,rgba(255,255,255,.065),rgba(139,92,246,.035));overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;transition:.35s}
.l li:hover{transform:translateY(-8px);border-color:rgba(139,92,246,.55);box-shadow:0 18px 42px rgba(0,0,0,.28)}
.l li:before{counter-increment:steps;content:"0" counter(steps);position:absolute;top:13px;right:13px;width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:rgba(139,92,246,.12);color:var(--acc2);font-size:12px;font-weight:900;border:1px solid rgba(139,92,246,.25);margin:0}
.l li:after{content:"";position:absolute;top:34px;left:-12px;width:25px;height:1px;background:linear-gradient(90deg,transparent,var(--acc))}
.l li:last-child:after{display:none}
.l li b{display:block;margin:0 0 5px;font-size:17px;color:#fff}
.l li{font-size:12px;line-height:1.85;color:var(--mut)}
/* فرم */
.contact-form{margin-top:20px;padding:18px;border:1px solid rgba(139,92,246,.25);border-radius:24px;background:rgba(255,255,255,.035)}
.form-head{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:14px}
.form-head span{font-weight:900}.form-head small{font-size:11px;color:var(--mut)}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.contact-form label{display:block;text-align:right}
.contact-form label span{display:block;font-size:11px;color:var(--mut);margin:0 4px 5px}
.contact-form input,.contact-form select,.contact-form textarea{width:100%;border:1px solid var(--line);border-radius:14px;background:rgba(0,0,0,.2);color:var(--fg);padding:10px 13px;font:500 13px/1.8 var(--f);outline:none}
.contact-form select option{background:#121319;color:#fff}
.contact-form textarea{resize:vertical;min-height:90px}
.contact-form input:focus,.contact-form select:focus,.contact-form textarea:focus{border-color:rgba(139,92,246,.7);box-shadow:0 0 0 3px rgba(139,92,246,.08)}
.contact-form .full{margin-top:10px}
.form-actions{display:flex;align-items:center;gap:12px;margin-top:12px}
#formStatus{font-size:11px;color:var(--acc2)}
/* بات */
#cb{width:62px;height:62px;padding:5px;border-radius:21px;justify-content:center;position:fixed;overflow:visible}
#cb i{width:50px;height:50px;border-radius:17px;background:linear-gradient(145deg,#a78bfa,#6d28d9);display:grid;place-items:center;box-shadow:inset 0 1px rgba(255,255,255,.35),0 7px 22px rgba(0,0,0,.25)}
#cb .bot-core{font-size:25px;text-shadow:0 0 16px #fff,0 0 30px #ddd6fe}
#cb span:not(.bot-core){display:none}
.cb-pulse{position:absolute;inset:-5px;border:1px solid rgba(139,92,246,.55);border-radius:25px;animation:botpulse 2.4s infinite;pointer-events:none}
@keyframes botpulse{0%{opacity:.8;transform:scale(.94)}70%,100%{opacity:0;transform:scale(1.28)}}
.bot-title{display:flex;align-items:center;gap:10px}.bot-title>i{font-style:normal;display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:rgba(139,92,246,.16);color:var(--acc2);font-size:19px}.bot-title small{margin-top:2px}
#cp{box-shadow:0 30px 100px rgba(0,0,0,.7),0 0 60px rgba(139,92,246,.12)}
#qr button{border-color:rgba(139,92,246,.4);transition:.25s}
#qr button:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(139,92,246,.18)}
@media(max-width:800px){
 ol.l{grid-template-columns:repeat(5,minmax(110px,1fr));overflow-x:auto;padding-bottom:5px;scrollbar-width:none}
 .l li{min-height:126px}
 .l li:after{display:none}
 .contact-form{padding:14px}
 .form-grid{grid-template-columns:1fr}
 .form-head{align-items:flex-start;flex-direction:column;gap:2px}
 .footer-cta{margin-top:12px}
 .hero-cta .btn,.footer-cta .btn{min-width:145px}
}

/* ===== Final responsive refinement ===== */
:root{--f:'Vazirmatn',Tahoma,sans-serif}
body{font-family:var(--f);text-align:right}
.tx{direction:rtl;text-align:right}
.cta{justify-content:flex-start}
.footer-cta{justify-content:flex-start;margin-top:22px}
.hero-cta{justify-content:flex-start}
.btn{direction:rtl}
.btn i{display:inline-grid;place-items:center;line-height:1}
.sec[data-s="c"] .tx{text-align:right}
.sec[data-s="c"] .tx p{margin-inline:0}

/* five-stage process */
ol.l{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;align-items:stretch;margin-top:24px;padding:0;overflow:visible}
.l li{min-width:0;min-height:174px;padding:68px 18px 18px;border-radius:22px;text-align:right;justify-content:flex-end;overflow:hidden}
.l li:before{top:15px;right:15px;left:auto;width:44px;height:44px;border-radius:14px;font-size:12px}
.l li:after{top:36px;left:-14px;right:auto;width:28px}
.l li b{font-size:16px;line-height:1.8;margin:0 0 4px}
.l li:not(b){font-size:12px;line-height:1.9}
.l li:hover{transform:translateY(-6px)}

/* contact separation */
.contact-shell{width:min(780px,92vw);display:flex;flex-direction:column;gap:18px}
.contact-shell .tx{width:100%!important}
.contact-form{margin-top:20px;text-align:right}
.contact-form label,.contact-form .full{text-align:right}
.form-actions{justify-content:flex-start;flex-wrap:wrap}
.site-footer{width:min(780px,92vw);display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 4px 0;margin-top:2px;border-top:1px solid var(--line);color:var(--mut);font-size:11px;line-height:1.9}
.site-footer div{display:flex;align-items:center;gap:12px}
.site-footer strong{color:var(--fg);font-weight:800}

/* professional chat surface */
#cb{right:18px;bottom:18px}
#cb i{position:relative}
#cb .bot-core{font-size:0;width:23px;height:23px;border:1.5px solid currentColor;border-radius:8px;position:relative;display:block}
#cb .bot-core:before{content:"";position:absolute;left:5px;right:5px;top:7px;height:2px;border-radius:2px;background:currentColor;box-shadow:0 5px 0 currentColor}
#cb .bot-core:after{content:"";position:absolute;right:-3px;bottom:-3px;width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:skew(0,-30deg)}
#cp{direction:rtl}
.ch{direction:rtl}
#cx{font-size:26px!important}
#ms{direction:rtl;text-align:right}
.m{align-self:flex-start;text-align:right;border-radius:18px 18px 4px 18px}
.m.me{align-self:flex-end;border-radius:18px 18px 18px 4px}
#qr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#qr button{min-height:44px;display:flex;align-items:center;justify-content:flex-start;gap:9px;text-align:right;padding:8px 11px;border-radius:14px;background:rgba(255,255,255,.045);color:var(--fg)}
#qr button:before{content:"↗";display:grid;place-items:center;flex:0 0 26px;width:26px;height:26px;border-radius:9px;background:rgba(139,92,246,.13);color:var(--acc2);font-size:12px}
#fm{direction:rtl;flex-wrap:wrap}
#fm input{width:100%;flex:1 1 100%}
#fm .chat-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%}
#fm .chat-fields input{min-width:0}
#fm button{width:100%;min-height:42px}

@media (max-width:1100px){
  .in{padding-inline:7vw}
  ol.l{grid-template-columns:repeat(5,minmax(125px,1fr));overflow-x:auto;padding:3px 2px 12px;scroll-snap-type:x mandatory}
  .l li{scroll-snap-align:start}
}
@media (max-width:800px){
  .in{align-items:flex-end!important;justify-content:flex-start!important;text-align:right;padding:0 14px 74px 14px}
  .tx,.sec:first-child .tx,.sec:last-child .tx{width:100%;padding:20px 18px;text-align:right}
  .sec[data-s="c"] .in{justify-content:center!important}
  .sec[data-s="c"] .tx{width:100%!important}
  .tx p,.sec[data-s="c"] .tx p{margin-inline:0}
  .cta,.footer-cta{justify-content:flex-start;align-items:stretch}
  .cta .btn{flex:0 1 auto}
  .hero-cta .btn,.footer-cta .btn{min-width:0}
  ol.l{display:flex;flex-direction:column;gap:10px;overflow:visible;margin-top:18px;padding:0}
  .l li{width:100%;min-height:0;height:auto;padding:15px 16px 15px 16px;padding-right:72px;justify-content:center;border-radius:18px}
  .l li:before{top:50%;right:14px;transform:translateY(-50%);width:42px;height:42px}
  .l li:after{display:none}
  .l li b{font-size:15px;margin-bottom:2px}
  .l li{font-size:11.5px;line-height:1.9}
  .contact-shell{width:100%;gap:14px}
  .site-footer{width:100%;flex-direction:column;align-items:flex-start;gap:5px;padding-top:14px}
  .site-footer div{flex-direction:column;align-items:flex-start;gap:0}
  .contact-form{padding:14px;margin-top:16px;border-radius:18px}
  .form-grid{grid-template-columns:1fr}
  .form-head{align-items:flex-start;text-align:right}
  .form-actions{align-items:stretch}
  .form-actions .btn{width:100%}
  #cb{right:10px;bottom:10px;width:56px;height:56px;border-radius:18px}
  #cb i{width:46px;height:46px;border-radius:14px}
  #cp{right:8px;left:8px;bottom:76px;width:auto;height:min(620px,calc(100svh - 96px));border-radius:22px}
  #qr{grid-template-columns:1fr}
  #fm .chat-fields{grid-template-columns:1fr}
}
@media (max-width:390px){
  .in{padding-inline:10px;padding-bottom:68px}
  .tx{padding:16px 14px!important;border-radius:22px!important}
  h1{font-size:31px}.btn.lg{padding:9px 14px}
  .dock{right:4px}.sc{width:39px;height:39px}
  #cp{right:6px;left:6px}
}


/* =========================================================
   CORTEXA / SINA — FINAL V2 POLISH
   Keeps the original scroll-driven composition intact.
   ========================================================= */

:root{
  --f:'Vazirmatn',Tahoma,Arial,sans-serif;
  --body-size:15px;
  --body-leading:1.95;
  --panel-pad:clamp(22px,2.4vw,34px);
}
body{
  font-family:var(--f);
  font-size:var(--body-size);
  line-height:var(--body-leading);
}
h1,h2,.k,.btn,.svc,.l,.contact-form,.site-footer,#cp,#cb{
  font-family:var(--f);
}
h1{font-size:clamp(36px,4.8vw,64px);line-height:1.35;letter-spacing:-.025em}
h2{font-size:clamp(28px,3.15vw,44px);line-height:1.5;letter-spacing:-.018em}
.tx{padding:var(--panel-pad);overflow:visible}
.tx p{font-size:clamp(14px,1.05vw,16px);line-height:2;color:rgba(242,241,237,.72)}
.k{font-size:12px;line-height:2.1;white-space:nowrap}
.btn{min-height:46px}
.btn.lg{min-height:50px}

/* More visible social dock */
.dock{
  right:18px;
  padding:12px 10px;
  gap:9px;
  border-radius:25px;
  background:rgba(12,13,18,.86);
  border-color:rgba(255,255,255,.17);
  box-shadow:0 22px 65px rgba(0,0,0,.55),0 0 35px rgba(139,92,246,.10);
}
.sc{
  width:48px;
  height:48px;
  border-radius:16px;
  box-shadow:inset 0 1px rgba(255,255,255,.10);
}
.sc svg{width:23px;height:23px}
.sc:after{font-size:12px}

/* Keep contact content visually separated from the copy */
.sec:last-child .tx{
  width:min(820px,92vw);
  padding:clamp(22px,2.5vw,34px);
}
.contact-shell{gap:22px}
.contact-form{
  margin-top:22px;
  padding:20px;
  background:rgba(6,7,11,.72);
  border:1px solid rgba(139,92,246,.28);
  box-shadow:0 18px 50px rgba(0,0,0,.22);
}
.form-head{
  padding-bottom:12px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.form-head span{font-size:15px}
.form-head small{font-size:11px}
.contact-form input,
.contact-form select,
.contact-form textarea{
  min-height:44px;
  font-size:14px;
  line-height:1.8;
}
.contact-form textarea{min-height:104px}
.form-actions{margin-top:14px}
.site-footer{margin-top:16px;padding-top:16px}

/* Keep process cards readable instead of allowing text to become tiny */
.l li{
  font-size:12px;
  line-height:1.9;
}
.l li b{font-size:16px;line-height:1.7}

/* Avoid accidental horizontal overflow from long labels */
*,*::before,*::after{max-width:100%}
html,body{overflow-x:hidden}

/* Tablet */
@media (max-width:1100px) and (min-width:801px){
  .in{padding-inline:6vw}
  .tx{width:min(48vw,560px)}
  .sec:first-child .tx{width:min(56vw,650px)}
  .dock{right:12px}
}

/* Mobile: preserve the scroll-driven sequence but make the final form a
   clearly separated, readable block rather than letting it collide with copy. */
@media (max-width:800px){
  :root{--body-size:14px}
  .in{
    padding:0 14px 70px;
  }
  .tx,
  .sec:first-child .tx,
  .sec:last-child .tx{
    padding:20px 18px;
  }
  h1{font-size:clamp(31px,9.3vw,42px);line-height:1.42}
  h2{font-size:clamp(25px,7vw,31px);line-height:1.5}
  .tx p{font-size:14px;line-height:1.9}
  .dock{
    right:7px;
    padding:7px 5px;
    gap:7px;
  }
  .sc{
    width:44px;
    height:44px;
    border-radius:14px;
  }
  .sc svg{width:21px;height:21px}
  .sec:last-child .tx{
    width:100%!important;
    padding:20px 16px;
  }
  .contact-shell{gap:14px}
  .contact-form{
    margin-top:18px;
    padding:15px;
    border-radius:18px;
  }
  .form-grid{gap:9px}
  .contact-form input,
  .contact-form select,
  .contact-form textarea{
    min-height:46px;
    font-size:14px;
  }
  .contact-form textarea{min-height:96px}
  .form-actions .btn{min-height:48px}
  .site-footer{
    margin-top:14px;
    padding-top:14px;
  }
}

/* Very small phones */
@media (max-width:390px){
  .dock{right:4px}
  .sc{width:40px;height:40px;border-radius:13px}
  .sc svg{width:19px;height:19px}
  .tx{padding:16px 14px!important}
  h1{font-size:30px}
  h2{font-size:24px}
  .contact-form{padding:13px}
}

/* ===== CORTEXA/Sina refinement pass: clean controls, compact contact, mobile-first ===== */
:root{--f:'Vazirmatn','Sans Life',Tahoma,Arial,sans-serif;--acc:#8b5cf6;--acc2:#c4b5fd}
html{scroll-behavior:smooth;scroll-padding-top:88px}
.btn,.sc{translate:none!important;transform-origin:center;writing-mode:horizontal-tb}
.btn{min-height:44px;box-shadow:none;transition:transform .22s ease,border-color .22s ease,background .22s ease,box-shadow .22s ease}
.btn:hover{transform:translateY(-2px);border-color:rgba(255,255,255,.28)}
.btn.p{box-shadow:0 8px 24px rgba(139,92,246,.22)}
.btn.p:hover{box-shadow:0 12px 30px rgba(139,92,246,.34)}
.btn.p:before{pointer-events:none}
.btn:focus-visible,.sc:focus-visible,#cb:focus-visible,#cx:focus-visible,#qr button:focus-visible{outline:2px solid var(--acc2);outline-offset:3px}

/* Five clear process cards on desktop; text stays inside its own card. */
ol.l{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;padding:0;margin-top:20px}
.l li{min-width:0;min-height:150px;padding:64px 13px 14px;justify-content:flex-start;text-align:right;overflow-wrap:anywhere;word-break:normal}
.l li b{font-size:clamp(14px,1.1vw,17px);line-height:1.65;margin-bottom:5px}
.l li:before{right:12px;top:12px}
.l li:after{pointer-events:none}

/* The contact section uses natural document flow: no clipping or footer collision. */
.sec:last-child{height:auto;min-height:100svh;padding-top:0}
.sec:last-child .in{position:relative;top:auto;height:auto;min-height:100svh;align-items:center;padding:100px max(7vw,80px) 28px}
.sec:last-child .tx{width:min(900px,100%);padding:clamp(20px,2vw,28px);margin-inline:auto}
.sec:last-child h2{font-size:clamp(25px,2.8vw,38px);line-height:1.45}
.sec:last-child .tx>p{max-width:66ch;margin-inline:auto}
.sec:last-child .footer-cta{margin-top:15px}
.contact-form{margin-top:16px;padding:16px;border-radius:20px;background:rgba(6,7,11,.78)}
.form-head{margin-bottom:10px;padding-bottom:9px}
.form-head span{font-size:14px}
.form-head small{font-size:11px}
.form-grid{gap:9px}
.contact-form label span{margin-bottom:3px}
.contact-form input,.contact-form select,.contact-form textarea{min-height:40px;padding:7px 11px;font-size:13px;border-radius:11px}
.contact-form textarea{min-height:66px;height:66px;resize:vertical}
.contact-form .full{margin-top:8px}
.form-actions{margin-top:9px;flex-wrap:wrap}
#formStatus{min-width:0;line-height:1.7}
.site-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-top:14px;padding-top:12px;font-size:11px;border-top:1px solid var(--line)}
.site-footer div{display:flex;flex-direction:column;gap:2px}.site-footer div span{color:var(--mut)}

/* Chat assistant: shorter introduction, restrained quick replies and sensible viewport sizing. */
#cp{height:min(430px,calc(100dvh - 110px));max-height:calc(100dvh - 110px);border-radius:20px}
.ch{padding:9px 13px}
.ch small{font-size:10px;line-height:1.5}
#ms{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:7px;padding:12px}
.m{max-width:92%;padding:7px 11px;font-size:12px;line-height:1.75;border-radius:14px 14px 14px 4px;overflow-wrap:anywhere}
.m.me{align-self:flex-start;background:rgba(139,92,246,.16);border:1px solid rgba(139,92,246,.18)}
#qr{flex:0 0 auto;max-height:132px;overflow:auto;display:flex;flex-direction:column;align-items:stretch;gap:6px;padding:8px 12px 12px;border-top:1px solid rgba(255,255,255,.07)}
#qr button{display:flex;align-items:center;gap:8px;width:100%;min-height:34px;text-align:right;padding:5px 10px;border-radius:10px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.045);font:500 12px/1.6 var(--f);transition:background .2s,border-color .2s}
#qr button span{display:grid;place-items:center;flex:0 0 22px;width:22px;height:22px;border-radius:7px;background:rgba(139,92,246,.13);color:var(--acc2);font-size:10px}
#qr button:hover{background:rgba(139,92,246,.12);border-color:rgba(139,92,246,.4)}
#fm{padding:0 12px 12px}
.chat-fields{display:flex;gap:7px;margin-bottom:8px}
#fm input{min-width:0;width:50%;padding:8px 10px;font-size:13px;border-radius:10px}
#fm .btn{width:100%;min-height:38px;font-size:12px}
#cb{right:18px;bottom:18px;min-height:48px;padding:5px 14px 5px 6px;gap:8px;border:1px solid rgba(255,255,255,.18);box-shadow:0 10px 30px rgba(139,92,246,.25);transition:transform .2s,box-shadow .2s}
#cb:hover{transform:translateY(-2px);box-shadow:0 14px 34px rgba(139,92,246,.35)}
#cb i{width:36px;height:36px}

/* Dedicated floating Bale shortcut, separate from the social dock. */
.bale-float{position:fixed;left:18px;bottom:18px;z-index:89;display:grid;place-items:center;width:48px;height:48px;border-radius:17px;color:#fff;background:linear-gradient(145deg,#25a7e8,#0876bb);border:1px solid rgba(255,255,255,.28);box-shadow:0 10px 28px rgba(0,0,0,.35),0 7px 22px rgba(20,142,210,.24);transition:transform .2s,box-shadow .2s}
.bale-float:hover{transform:translateY(-3px);box-shadow:0 14px 32px rgba(20,142,210,.35)}
.bale-float svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.bale-float:after{content:'ارتباط در بله';position:absolute;left:58px;white-space:nowrap;background:#11131a;border:1px solid var(--line);padding:4px 10px;border-radius:9px;font:600 11px var(--f);opacity:0;transform:translateX(-4px);pointer-events:none;transition:.2s}
.bale-float:hover:after{opacity:1;transform:none}

@media(max-width:1100px) and (min-width:801px){
 .sec:last-child .in{padding-inline:6vw}
 .l li{padding-inline:10px}
}
@media(max-width:800px){
 .sec{height:115svh}
 .in{height:100svh;min-height:620px;padding:72px 16px 62px}
 .tx,.sec:first-child .tx,.sec:last-child .tx{width:100%;padding:19px 16px;border-radius:22px}
 .sec[data-s=l] .in,.sec[data-s=r] .in{justify-content:center}
 .sec:last-child{height:auto;min-height:100svh;padding-top:0}
 .sec:last-child .in{height:auto;min-height:100svh;padding:84px 12px 20px;align-items:flex-start}
 .sec:last-child .tx{width:100%;padding:17px 13px!important}
 h1{font-size:clamp(30px,8.5vw,40px);line-height:1.42}
 h2{font-size:clamp(24px,6.7vw,30px);line-height:1.48}
 .tx p{font-size:13px;line-height:1.85;margin-top:9px}
 .k{font-size:10px;white-space:normal;padding-inline:10px}
 .cta{gap:8px;margin-top:15px}
 .hero-cta .btn,.footer-cta .btn{min-width:0;flex:1;padding-inline:12px;font-size:12px}
 .stack{gap:7px;margin-top:13px}
 .svc{padding:8px 11px;gap:8px}
 .svc b{font-size:13px}.svc span{font-size:10px;white-space:nowrap}
 .g3,.cmp{gap:6px;margin-top:12px}.g3 div,.cmp div{padding:9px 8px;font-size:11px}.g3 b,.cmp b{font-size:13px}
 ol.l{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:14px}
 .l li{min-height:108px;padding:48px 11px 11px;border-radius:15px;font-size:11px;line-height:1.7}
 .l li b{font-size:14px}.l li:before{width:29px;height:29px;top:9px;right:9px;border-radius:9px}
 .l li:last-child{grid-column:1/-1;min-height:86px}
 .sec:last-child h2{font-size:clamp(23px,6.2vw,29px)}
 .sec:last-child .tx>p{font-size:12px}
 .footer-cta{display:grid;grid-template-columns:1fr 1fr}
 .contact-form{margin-top:13px;padding:12px;border-radius:15px}
 .form-head{align-items:flex-start;flex-direction:column;gap:0;padding-bottom:8px}
 .form-head small{font-size:10px}
 .form-grid{grid-template-columns:1fr 1fr;gap:8px}
 .contact-form label span{font-size:10px}
 .contact-form input,.contact-form select,.contact-form textarea{min-height:40px;padding:7px 9px;font-size:12px}
 .contact-form textarea{height:58px;min-height:58px}
 .form-actions{align-items:flex-start;flex-direction:column;gap:6px}
 .form-actions .btn{min-height:40px;width:100%}
 #formStatus{font-size:10px}
 .site-footer{margin-top:10px;padding-top:9px;font-size:10px}
 .dock{top:auto;bottom:76px;right:8px;transform:none;padding:6px;gap:5px;border-radius:17px}
 .sc{width:34px;height:34px;border-radius:11px}.sc svg{width:17px;height:17px}
 .dots{left:7px;gap:9px}.dot{width:5px;height:5px}.dot.on{height:18px}
 #cb{right:10px;bottom:10px;min-height:42px;padding:4px 11px 4px 4px;gap:6px}
 #cb i{width:32px;height:32px}#cb span{display:inline;font-size:11px}
 #cp{left:10px;right:10px;bottom:62px;width:auto;height:min(400px,calc(100dvh - 82px));max-height:calc(100dvh - 82px);border-radius:17px}
 #qr{max-height:116px;gap:5px;padding:7px 10px 10px}
 #qr button{min-height:31px;padding:4px 8px;font-size:11px}
 .bale-float{left:10px;bottom:10px;width:42px;height:42px;border-radius:14px}
 .bale-float:after{display:none}
}
@media(max-width:390px){
 .in{padding-inline:10px}
 .sec:last-child .in{padding-inline:8px}
 .sec:last-child .tx{padding:14px 10px!important}
 .form-grid{grid-template-columns:1fr}
 .contact-form textarea{height:54px;min-height:54px}
 .site-footer{align-items:flex-start;flex-direction:column}
 .dock{right:5px;bottom:68px}.sc{width:31px;height:31px}
 #cb{right:7px;bottom:7px}
 .bale-float{left:7px;bottom:7px;width:39px;height:39px}
}
@media(prefers-reduced-motion:reduce){.btn,.sc,.bale-float,#cb,#qr button{transition:none!important}}
.sec:last-child .in{flex-direction:column;justify-content:center;align-items:stretch;gap:0}
.sec:last-child .site-footer{width:min(900px,100%);margin-inline:auto}
@media(max-width:800px){.sec:last-child .in{flex-direction:column;justify-content:flex-start;align-items:stretch}}

/* ===== V4 polish: compact chat, stable buttons, mobile social drawer ===== */
.btn,.btn:hover,.btn:focus{rotate:none;skew:none;writing-mode:horizontal-tb;direction:rtl}
.btn{transform:translateY(0);transition:transform .2s ease,background .2s ease,border-color .2s ease,box-shadow .2s ease}
.btn:hover{transform:translateY(-2px)}
.dock-links{display:flex;flex-direction:column;align-items:center;gap:10px}
.dock-toggle{display:none}
#cb{width:auto;min-width:54px;height:54px;min-height:54px;padding:5px 8px;border-radius:18px;gap:7px;overflow:hidden}
#cb i{width:38px;height:38px;flex:0 0 38px;border-radius:13px}
#cb i svg,.bot-title>i svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#cb>span{display:inline!important;font-size:11px;white-space:nowrap}
#cb .cb-pulse{display:none}
.bot-title>i{flex:0 0 34px}
#qr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:6px;max-height:none;overflow:visible;padding:8px 11px 10px}
#qr button{min-width:0;min-height:32px;height:auto;padding:4px 7px;border-radius:10px;gap:6px;font-size:11px;line-height:1.45;justify-content:flex-start}
#qr button span{flex:0 0 19px;width:19px;height:19px;border-radius:6px;font-size:9px}
#qr button:before{display:none}
#cp{height:min(410px,calc(100dvh - 100px));max-height:calc(100dvh - 100px)}
#ms{padding:10px;gap:6px}
.m{font-size:11px;line-height:1.6;padding:6px 9px}
#fm{padding:0 10px 10px}
#fm .chat-fields{gap:6px}
#fm input{min-height:36px;padding:6px 8px;font-size:12px}
#fm .btn{min-height:35px}
.contact-form{padding:13px 15px;margin-top:12px}
.contact-form textarea{height:52px;min-height:52px;resize:vertical}
.form-head{margin-bottom:7px;padding-bottom:7px}
.form-grid{gap:7px}
.form-actions{margin-top:7px}
.site-footer{margin-top:9px;padding-top:8px}
.bale-float{display:none!important}
@media(max-width:800px){
 .dock{top:auto;right:10px;bottom:12px;transform:none;display:flex;flex-direction:column;align-items:stretch;gap:0;width:126px;max-width:42vw;padding:5px;border-radius:15px;z-index:91}
 .dock-toggle{display:flex;align-items:center;justify-content:space-between;gap:5px;width:100%;min-height:36px;padding:6px 8px;border:0;border-radius:10px;background:rgba(255,255,255,.06);color:var(--fg);font:600 10px/1.4 var(--f);white-space:nowrap}
 .dock-toggle span{font-size:13px;transition:transform .2s}
 .dock.open .dock-toggle span{transform:rotate(180deg)}
 .dock-links{display:none;flex-direction:column;align-items:stretch;gap:6px;max-height:min(190px,35dvh);overflow-y:auto;overscroll-behavior:contain;padding:7px 3px 3px;scrollbar-width:thin}
 .dock.open .dock-links{display:flex}
 .dock-links>b{display:none}
 .sc{width:100%;height:34px;min-height:34px;display:flex;justify-content:flex-start;gap:9px;padding:0 9px;border-radius:10px}
 .sc:after{content:attr(data-t);display:block;position:static;opacity:1;transform:none;background:transparent;border:0;padding:0;font:500 10px var(--f);color:var(--fg)}
 .sc svg{width:17px;height:17px;flex:0 0 17px}
 #cb{left:10px;right:auto;bottom:12px;width:48px;height:48px;min-width:48px;min-height:48px;padding:5px;border-radius:15px;justify-content:center;z-index:92}
 #cb>span{display:none!important}
 #cb i{width:36px;height:36px;flex-basis:36px;border-radius:11px}
 #cp{left:8px;right:8px;bottom:68px;width:auto;height:min(390px,calc(100dvh - 82px));max-height:calc(100dvh - 82px);z-index:93}
 #qr{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:7px 9px 9px}
 #qr button{min-height:30px;font-size:10px;padding:4px 6px}
 .sec:last-child .in{padding-bottom:76px}
 .sec:last-child .tx{padding:14px 11px!important}
 .sec:last-child h2{font-size:clamp(22px,6vw,28px);line-height:1.4}
 .sec:last-child .tx>p{font-size:11px;line-height:1.7;margin-top:7px}
 .footer-cta{margin-top:10px;gap:6px}
 .footer-cta .btn{min-height:38px;padding:7px 8px;font-size:10px;white-space:normal;line-height:1.5}
 .contact-form{margin-top:10px;padding:10px;border-radius:13px}
 .form-head{flex-direction:row;align-items:center;gap:6px}
 .form-head span{font-size:12px}
 .form-head small{font-size:9px}
 .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 .contact-form label span{font-size:9px;margin-bottom:2px}
 .contact-form input,.contact-form select,.contact-form textarea{min-height:35px;padding:5px 8px;font-size:11px;border-radius:9px}
 .contact-form textarea{height:43px;min-height:43px}
 .contact-form .full{margin-top:6px}
 .form-actions{flex-direction:row;align-items:center;gap:8px}
 .form-actions .btn{width:auto;min-height:35px;padding:6px 13px;font-size:11px}
 #formStatus{font-size:9px;flex:1}
 .site-footer{font-size:9px;gap:5px}
}
@media(max-width:390px){
 .dock{right:7px;bottom:9px;width:116px}
 #cb{left:7px;bottom:9px}
 #cp{left:7px;right:7px;bottom:64px}
 .form-grid{grid-template-columns:1fr 1fr}
 .sec:last-child .in{padding-inline:7px}
 .contact-form{padding:9px}
 .form-head small{max-width:48%;text-align:left}
 .contact-form textarea{height:40px;min-height:40px}
 .site-footer{align-items:flex-start;flex-direction:column}
}
@media(max-height:650px) and (max-width:800px){
 #cp{height:calc(100dvh - 74px);max-height:calc(100dvh - 74px);bottom:62px}
 #ms{padding:7px}
 #qr{gap:4px;padding:5px 7px}
 #qr button{min-height:27px}
 .sec:last-child .in{padding-top:70px;padding-bottom:68px}
}

/* V5 targeted fixes only: desktop submit visibility, compact contact form, mobile button wrapping. */
.form-actions{display:flex;align-items:center;justify-content:flex-start;gap:10px;min-width:0;width:100%;overflow:visible}
.form-actions .btn{display:inline-flex;flex:0 0 auto;width:auto;min-width:190px;max-width:100%;white-space:nowrap;overflow:visible;position:relative;z-index:1}
.contact-form{padding:11px 14px;margin-top:10px}
.form-head{margin-bottom:6px;padding-bottom:6px}
.contact-form input,.contact-form select{min-height:37px;padding-block:5px}
.contact-form textarea{height:46px;min-height:46px}
.contact-form .full{margin-top:5px}
.form-actions{margin-top:6px}
@media(max-width:800px){
  .btn,.footer-cta .btn,.hero-cta .btn,.form-actions .btn{box-sizing:border-box;min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;word-break:normal;line-height:1.45;text-align:center;justify-content:center;gap:5px;padding-inline:9px}
  .btn span{min-width:0;max-width:100%;overflow-wrap:anywhere}
  .btn i{flex:0 0 auto;font-style:normal}
  .form-actions{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;width:100%;gap:6px}
  .form-actions .btn{width:100%;min-width:0;min-height:40px;flex:0 0 auto;padding:8px 12px}
  .contact-form{padding:10px;margin-top:9px}
  .contact-form textarea{height:42px;min-height:42px}
}
@media(min-width:801px){
  .sec:last-child .tx{padding-block:20px}
  .contact-form textarea{height:44px;min-height:44px}
  .form-actions .btn{min-height:42px;padding:8px 22px}
}
@media(max-width:390px){
  .footer-cta .btn,.hero-cta .btn{font-size:11px;padding-inline:7px;gap:4px}
  .form-actions .btn{font-size:12px}
}


/* V5 bug fix only: normal document flow; preserve approved visual design. */
html{scroll-behavior:smooth;scroll-padding-top:96px}
body{overflow-x:clip}
.sec{height:auto!important;min-height:100svh;position:relative;overflow:visible}
.sec .in{position:relative!important;top:auto!important;height:auto!important;min-height:100svh;display:flex;align-items:center;box-sizing:border-box;padding-top:112px;padding-bottom:52px}
.sec .tx{opacity:1!important;visibility:visible!important;transform:none!important;pointer-events:auto!important;max-width:100%;min-width:0}
.sec .in>*{min-width:0;max-width:100%}
.sec .tx,.contact-shell,.contact-form,.form-grid,.form-actions{min-width:0;max-width:100%}
.sec .tx *{max-width:100%;overflow-wrap:anywhere}
.sec:last-child .in{min-height:100svh;height:auto!important;padding-top:104px;padding-bottom:28px;justify-content:center}
#stage{pointer-events:none}
#cp[hidden],#fm[hidden]{display:none!important}
@media(max-width:800px){
 .sec{height:auto!important;min-height:100svh}
 .sec .in{height:auto!important;min-height:100svh;align-items:flex-start!important;justify-content:center!important;padding:86px 14px 76px!important}
 .sec .tx{width:100%!important;padding:18px 15px!important}
 .sec .contact-shell{width:100%;gap:12px}
 .sec:last-child .in{padding:78px 10px 78px!important;align-items:stretch!important;justify-content:flex-start!important}
 .sec:last-child .tx{padding:14px 11px!important}
 .contact-form{height:auto;overflow:visible}
 .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .contact-form input,.contact-form select,.contact-form textarea{width:100%;min-width:0}
 .cta,.footer-cta{display:flex;flex-wrap:wrap;align-items:stretch;gap:8px}
 .cta .btn,.footer-cta .btn{min-height:42px;flex:1 1 135px;max-width:100%;white-space:normal}
 #cp{max-height:calc(100dvh - 82px);overflow:hidden}
 #ms{min-height:0;overflow-y:auto;overscroll-behavior:contain}
 #qr{max-height:112px;overflow-y:auto;overscroll-behavior:contain}
}
@media(max-width:390px){
 .sec .in{padding-inline:9px!important}
 .sec .tx{padding:15px 11px!important}
 .form-grid{grid-template-columns:minmax(0,1fr)}
 .footer-cta .btn,.hero-cta .btn{flex:1 1 120px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* ===== CORTEXA FINAL MOTION PASS — dimensional travel, not side-to-side ===== */
#stage{perspective:1800px;perspective-origin:50% 48%}
.obj{--w:min(42vw,520px);filter:drop-shadow(0 48px 78px rgba(0,0,0,.55));transform-style:preserve-3d}
.obj:before{inset:-24%;background:radial-gradient(ellipse at 48% 48%,rgba(139,92,246,.25),rgba(139,92,246,.04) 42%,transparent 70%);filter:blur(48px)}
.win{box-shadow:inset 0 1px rgba(255,255,255,.12),0 28px 70px rgba(0,0,0,.34)}
.back{transform:translate3d(18px,14px,-90px) rotateZ(-5deg) scale(.92);border-color:rgba(139,92,246,.68);box-shadow:0 0 45px rgba(139,92,246,.12)}
.ring{inset:-12%;transform:translateZ(-100px) rotateX(66deg) rotateZ(-22deg);border-color:rgba(196,181,253,.26)}
.chip{backdrop-filter:blur(14px);border-color:rgba(255,255,255,.22);box-shadow:0 20px 60px rgba(0,0,0,.45),0 0 25px rgba(139,92,246,.08)}
.c1{transform:translate3d(0,0,125px) rotateZ(3deg)}.c2{transform:translate3d(0,0,165px) rotateZ(-5deg)}.c3{transform:translate3d(0,0,100px) rotateZ(4deg)}
@media(max-width:1100px){.obj{--w:min(43vw,430px)}.chip{font-size:11px;padding:2px 10px}}
@media(max-width:800px){
 #stage{opacity:.48;perspective:1200px}
 .obj{--w:min(64vw,300px);top:22%;left:50%;filter:drop-shadow(0 25px 38px rgba(0,0,0,.45))}
 .obj:before{filter:blur(28px);opacity:.65}
 .win{border-radius:15px}.bar{padding:9px 12px}.bd{padding:15px;gap:9px}.bd pre{font-size:9px}.lg{width:34px;height:34px}
 .chip{font-size:10px;padding:1px 8px}.c1{right:-2%}.c2{left:-2%;bottom:9%}.c3{right:3%;bottom:-2%}
 .ring{inset:-8%}
}
@media(max-width:390px){.obj{--w:min(70vw,270px);top:20%}.bd{padding:12px}.chip{font-size:9px}}
@media(prefers-reduced-motion:reduce){#stage,.obj{transition:none!important}}


/* FINAL SCROLL + MOTION ALIGNMENT: keep the object in the open half of each section. */
html{scroll-behavior:smooth;scroll-snap-type:y proximity;scroll-padding-top:0}
.sec{scroll-snap-align:start;scroll-snap-stop:normal}
#stage{z-index:8;pointer-events:none;isolation:isolate}
main{z-index:10}
.obj{opacity:.96;backface-visibility:visible;transform-origin:50% 50%;will-change:transform,opacity}
.sec .tx{position:relative;z-index:12}
@media(min-width:801px){
 .obj{--w:min(40vw,510px)}
 .sec[data-s="r"] .tx{margin-inline-start:0}
 .sec[data-s="l"] .tx{margin-inline-end:0}
}
@media(max-width:800px){
 html{scroll-snap-type:y proximity}
 #stage{z-index:4;opacity:.3;mask-image:linear-gradient(to bottom,transparent 0%,#000 12%,#000 76%,transparent 100%)}
 .obj{--w:min(64vw,290px);top:24%;filter:drop-shadow(0 18px 34px rgba(0,0,0,.4))}
 .sec .tx{z-index:10;background:rgba(10,11,16,.76);backdrop-filter:blur(14px)}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto;scroll-snap-type:none}.obj{will-change:auto}}


/* ===== CORTEXA V8 — violet art direction + section-by-section scroll ===== */
:root{--acc:#8b5cf6;--acc2:#c4b5fd;--line:rgba(221,214,254,.15)}
html{scroll-snap-type:y mandatory;scroll-padding-top:0;overscroll-behavior-y:contain}
body{background:#090a12}
#bg:after{background-image:linear-gradient(rgba(196,181,253,.028) 1px,transparent 1px),linear-gradient(90deg,rgba(196,181,253,.028) 1px,transparent 1px)}
body:before{background:radial-gradient(520px circle at var(--mx) var(--my),rgba(139,92,246,.12),transparent 62%)}
.sec{height:auto!important;min-height:100svh;position:relative;overflow:clip;scroll-snap-align:start;scroll-snap-stop:always;display:flex;align-items:stretch}
.sec .in{position:relative!important;top:auto!important;height:auto!important;min-height:100svh;flex:1;display:flex;align-items:center;box-sizing:border-box;padding:clamp(100px,12vh,140px) max(8vw,92px) clamp(54px,8vh,88px)}
.sec[data-s="l"] .in{justify-content:flex-end}
.sec[data-s="r"] .in{justify-content:flex-start}
.sec[data-s="c"] .in{justify-content:center}
.sec .tx{max-width:100%;min-width:0;z-index:12;backdrop-filter:blur(18px);border-color:rgba(221,214,254,.12)}
.sec:first-child .in{padding-top:100px}
.sec:last-child{height:auto!important;min-height:100svh;padding:0}
.sec:last-child .in{height:auto!important;min-height:100svh;padding:100px max(7vw,80px) 28px;align-items:center}
/* Keep the two code-card beats, then hand off to a different geometric visual. */
#stage{z-index:6;perspective:1500px;perspective-origin:50% 48%;isolation:isolate}
#obj{--w:min(39vw,490px);transition:filter .4s;transform-origin:50% 50%;backface-visibility:visible}
#obj:before{background:radial-gradient(ellipse at 50% 50%,rgba(139,92,246,.25),rgba(139,92,246,.035) 44%,transparent 72%)}
.win{border-color:rgba(221,214,254,.2);box-shadow:inset 0 1px rgba(255,255,255,.13),0 35px 100px rgba(0,0,0,.5)}
.back{border-color:rgba(167,139,250,.78);box-shadow:0 0 48px rgba(139,92,246,.18)}
.ring{border-color:rgba(196,181,253,.32)}
.chip{border-color:rgba(221,214,254,.22);box-shadow:0 20px 60px rgba(0,0,0,.45),0 0 28px rgba(139,92,246,.1)}
.c2{background:linear-gradient(135deg,#8b5cf6,#5b21b6);border-color:#8b5cf6}
/* New faceted symbol replaces the code card after section 2. */
#geo{position:absolute;left:50%;top:50%;width:min(37vw,470px);aspect-ratio:1;opacity:0;transform:translate(-50%,-50%);transform-style:preserve-3d;will-change:transform,opacity;filter:drop-shadow(0 35px 70px rgba(0,0,0,.45))}
#geo:before{content:"";position:absolute;inset:-25%;border-radius:50%;background:radial-gradient(circle,rgba(139,92,246,.22),rgba(139,92,246,.04) 42%,transparent 70%);filter:blur(40px);transform:translateZ(-120px)}
#geo svg{position:absolute;inset:6%;width:88%;height:88%;overflow:visible}
#geo .geo-orbit{position:absolute;inset:8%;border:1px solid rgba(196,181,253,.3);border-radius:50%;transform-style:preserve-3d}
#geo .orbit-a{transform:rotateX(66deg) rotateZ(-28deg);animation:geoOrbitA 13s linear infinite}
#geo .orbit-b{inset:18%;transform:rotateY(65deg) rotateZ(35deg);border-color:rgba(139,92,246,.42);animation:geoOrbitB 17s linear infinite}
#geo .geo-core{fill:rgba(139,92,246,.12);stroke:#c4b5fd;stroke-width:1.15;vector-effect:non-scaling-stroke}
#geo .geo-line{fill:none;stroke:#8b5cf6;stroke-width:1.2;vector-effect:non-scaling-stroke;filter:drop-shadow(0 0 5px rgba(139,92,246,.7))}
#geo .geo-bright{fill:#ddd6fe;filter:drop-shadow(0 0 8px rgba(196,181,253,.9))}
#geo .geo-label{position:absolute;bottom:7%;left:50%;transform:translateX(-50%);white-space:nowrap;color:#c4b5fd;font:600 10px/1.5 ui-monospace,monospace;letter-spacing:.18em;opacity:.8}
@keyframes geoOrbitA{to{transform:rotateX(66deg) rotateZ(332deg)}}
@keyframes geoOrbitB{to{transform:rotateY(65deg) rotateZ(-325deg)}}
/* Clear depth cues without turning the object into a thin horizontal streak. */
@media(min-width:801px){
 .sec[data-s="r"] .tx{margin-inline-start:0}
 .sec[data-s="l"] .tx{margin-inline-end:0}
 .sec[data-s="c"] .tx{width:min(760px,88vw)}
 .contact-shell{width:min(1000px,100%)}
}
@media(max-width:800px){
 html{scroll-snap-type:y proximity;overscroll-behavior-y:auto}
 .sec{overflow:visible;scroll-snap-stop:normal}
 .sec .in{min-height:100svh;padding:94px 16px 74px!important;align-items:center!important;justify-content:center!important}
 .sec .tx,.sec:first-child .tx,.sec:last-child .tx{width:100%!important;padding:19px 16px!important;background:rgba(10,11,18,.84);backdrop-filter:blur(12px)}
 #stage{opacity:.68;mask-image:linear-gradient(to bottom,transparent 0%,#000 15%,#000 78%,transparent 100%)}
 #obj{--w:min(68vw,300px);top:24%;filter:drop-shadow(0 22px 42px rgba(0,0,0,.42))}
 #geo{width:min(66vw,290px);top:25%}
 #geo .geo-label{font-size:8px}
 .sec:last-child .in{min-height:100svh;padding:82px 12px 78px!important;align-items:stretch!important}
 .sec:last-child .tx{padding:16px 12px!important}
}
@media(max-width:390px){#obj{--w:min(72vw,260px);top:22%}#geo{width:min(70vw,260px);top:23%}.sec .in{padding-inline:11px!important}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto;scroll-snap-type:none}#geo .geo-orbit{animation:none}#obj,#geo{will-change:auto}}


/* V8.1 targeted correction: frontal code monitor and correctly mirrored geometric placement. */
@media (min-width:801px){
  #stage{z-index:8}
  main{z-index:auto}
  .sec .tx{position:relative;z-index:12}
  #obj{transform-origin:50% 50%;}
}
@media (max-width:800px){
  #stage{z-index:4}
  main{z-index:auto}
  .sec .tx{position:relative;z-index:12}
}


/* V8.2: focused responsive and lead-form UX polish. Motion and section scroll intentionally unchanged. */
.contact-form .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
.contact-form input,.contact-form textarea{min-width:0}
.contact-form input:focus-visible,.contact-form textarea:focus-visible{outline:2px solid var(--acc2);outline-offset:2px}
.contact-form .form-actions .btn{min-height:44px}
#cp{width:min(360px,calc(100vw - 28px));right:max(14px,env(safe-area-inset-right));bottom:max(78px,calc(env(safe-area-inset-bottom) + 72px))}
#qr button{min-height:40px;overflow-wrap:anywhere}
#fm input{min-height:42px}
@media(max-width:800px){
 .contact-shell,.contact-form,.form-grid,.form-actions{min-width:0;width:100%;max-width:100%}
 .contact-form{padding:clamp(12px,3.5vw,16px)}
 .contact-form .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .contact-form input,.contact-form textarea{font-size:16px;min-height:44px}
 .contact-form textarea{height:76px;min-height:76px}
 .contact-form .form-actions .btn{width:100%;min-width:0;justify-content:center}
 #cp{width:min(360px,calc(100vw - 24px));right:12px;bottom:max(76px,calc(env(safe-area-inset-bottom) + 70px));height:min(430px,calc(100dvh - 150px));max-height:calc(100dvh - 150px)}
 #qr{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:8px 10px}
 #qr button{min-width:0;min-height:40px;font-size:12px;padding:7px 8px}
 #fm .chat-fields{gap:7px}
 #fm input{width:50%;min-height:44px;font-size:16px}
 #fm .btn{min-height:42px}
}
@media(max-width:390px){
 .contact-form .form-grid{grid-template-columns:minmax(0,1fr);gap:8px}
 .contact-form textarea{height:70px;min-height:70px}
 #cp{width:calc(100vw - 20px);right:10px}
 #qr{gap:6px;padding-inline:8px}
 #qr button{font-size:11px;padding-inline:7px}
}


/* V8.3 targeted UI polish: wider desktop process cards, compact AI panel,
   and a single primary action in the contact form area. Motion/scroll untouched. */
@media (min-width: 1101px){
  .process-sec .in{padding-inline:6vw;justify-content:center!important}
  .process-sec .tx{width:min(1180px,100%);padding:34px 38px;border-radius:30px}
  .process-sec .tx>p{max-width:66ch}
  .process-sec ol.l{grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-top:28px}
  .process-sec .l li{min-height:220px;padding:76px 22px 22px;border-radius:24px;justify-content:flex-start}
  .process-sec .l li b{font-size:18px;line-height:1.75;margin-bottom:9px}
  .process-sec .l li{font-size:14px;line-height:2.05}
  .process-sec .l li:before{width:48px;height:48px;top:17px;right:18px;font-size:13px}
  .process-sec .l li:after{top:41px;left:-16px;width:32px}
}
@media (min-width:801px) and (max-width:1100px){
  .process-sec .tx{width:min(92vw,1000px);padding:28px}
  .process-sec ol.l{gap:9px}
  .process-sec .l li{min-height:180px;padding:64px 12px 14px}
  .process-sec .l li b{font-size:15px}
  .process-sec .l li{font-size:12px}
}
/* AI section: keep its full content within the viewport without changing the visual language. */
@media (min-width:801px){
  .ai-sec .tx{width:min(520px,43vw);padding:24px 28px;border-radius:26px}
  .ai-sec .k{margin-bottom:8px}
  .ai-sec .tx p{margin-top:8px;line-height:1.8}
  .ai-sec .stack{gap:6px;margin-top:12px}
  .ai-sec .svc{padding:6px 14px;min-height:43px}
  .ai-sec .cta{margin-top:14px}
  .ai-sec .note{margin-top:8px;line-height:1.7}
}
@media (max-height:760px) and (min-width:801px){
  .ai-sec .tx{padding:18px 24px}
  .ai-sec .stack{gap:5px;margin-top:9px}
  .ai-sec .svc{min-height:38px;padding:4px 12px}
  .ai-sec .cta{margin-top:10px}
  .ai-sec .note{font-size:12px}
  .process-sec .tx{padding-block:22px}
  .process-sec .l li{min-height:185px}
}
@media (max-width:800px){
  .process-sec .tx{width:100%!important}
  .ai-sec .tx{padding:18px 15px!important}
  .ai-sec .stack{gap:6px;margin-top:12px}
  .ai-sec .svc{min-height:42px;padding:6px 12px}
  .ai-sec .note{font-size:12px;line-height:1.8}
  .contact-sec .footer-cta{display:none!important}
}
