/* BARQLO v19: OLED cockpit, country ambience, and live four-stage theatre. */
:root{--country-glow:rgba(53,208,154,.20);--country-warm:rgba(240,185,83,.11)}
:root[data-market=SA],:root[data-market=AE],:root[data-market=QA],:root[data-market=KW],:root[data-market=BH],:root[data-market=OM]{--country-glow:rgba(62,180,155,.22);--country-warm:rgba(233,187,86,.18)}
:root[data-market=SD],:root[data-market=MA],:root[data-market=TN],:root[data-market=DZ],:root[data-market=LY],:root[data-market=MR]{--country-glow:rgba(79,185,153,.19);--country-warm:rgba(217,150,84,.20)}
:root[data-theme=dark]{--cream:#030508;--surface:#080C12;--surface-2:#0D131C;--stroke:rgba(53,208,154,.22)}
:root[data-theme=dark] body{background:radial-gradient(ellipse 68% 36% at 14% 10%,var(--country-glow),transparent 72%),radial-gradient(ellipse 46% 30% at 86% 7%,var(--country-warm),transparent 70%),#030508}
:root[data-theme=dark] .demo-section{background:radial-gradient(ellipse 46% 58% at 90% 40%,var(--country-glow),transparent 80%),#030508}
:root[data-theme=dark] .dark,:root[data-theme=dark] .closing{background:linear-gradient(135deg,#030508,#0D131C)}
.ref-banner{position:relative;z-index:9;background:linear-gradient(100deg,#493513,#a77b30,#493513);color:#fff6da;border-bottom:1px solid #f2d2868c;box-shadow:0 0 33px #ebb45d3b;padding:10px 18px;display:flex;justify-content:center;align-items:center;gap:16px;flex-wrap:wrap;font-size:13px;text-align:center}.ref-banner strong{color:#fff;font-family:monospace;font-size:15px}.ref-banner a{border:1px solid #ffe3a9;border-radius:30px;padding:2px 12px;white-space:nowrap}
.hero{grid-template-columns:1fr 1fr;gap:38px;min-height:710px}.hero-copy{position:relative;z-index:1}.hero h1{font-size:clamp(35px,4.1vw,55px);line-height:1.26}.hero .lead{font-size:17px}.hero-art{min-height:570px;width:100%;display:block}.hero-art:before{display:none}.hero .proof span{border:1px solid var(--stroke);border-radius:30px;padding:5px 13px;background:var(--surface);font-size:11px}
.cockpit{position:relative;overflow:hidden;background:linear-gradient(150deg,#0D131C,#080C12 70%);border:1px solid rgba(53,208,154,.33);border-radius:28px;box-shadow:0 34px 90px #0009,0 0 75px var(--country-glow),inset 0 1px rgba(255,255,255,.1);padding:18px;height:100%;display:flex;flex-direction:column;gap:14px}
.cockpit:before{content:'';position:absolute;inset:-50%;background:conic-gradient(from 0deg,transparent 0deg,transparent 68deg,var(--country-glow) 100deg,transparent 125deg);animation:cockpit-rotate 15s linear infinite;pointer-events:none;opacity:.55}.cockpit>*{position:relative}.cockpit-top,.cockpit-bottom{display:flex;align-items:center;justify-content:space-between;gap:9px;flex-wrap:wrap}.cockpit-top{font-size:12px;color:#d7eee6;border-bottom:1px solid var(--stroke);padding-bottom:13px}.cockpit-top small,.cockpit-bottom{color:#8caea5;font-size:10px}.cockpit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:1fr 1fr;gap:12px;flex:1}.cockpit-cell{overflow:hidden;border:1px solid rgba(53,208,154,.21);border-radius:19px;background:radial-gradient(circle at 6% 0%,var(--country-glow),transparent 72%),#080C12;padding:14px;display:flex;flex-direction:column;justify-content:space-between;min-width:0}.cockpit-cell span{color:#a9c8bc;font-size:11px;letter-spacing:.04em}.cockpit-cell small{color:#a7bdb5;font-size:10px}.cockpit-cell svg{width:100%;min-height:78px}.cockpit-wave{fill:none;stroke:url(#waveGrad);stroke-width:2.5;stroke-linecap:round;stroke-dasharray:460;animation:draw-wave 5s ease-in-out infinite alternate;filter:drop-shadow(0 0 6px #35d09a)}.voice-captions b{color:#35d09a}.radar-wrap{width:146px;height:146px;max-height:100%;align-self:center;position:relative}.radar-wrap svg{height:100%}.radar-wrap circle{fill:none;stroke:#35d09a65;stroke-width:1.5}.radar-wrap .radar-ping{fill:#edb65b;stroke:none;filter:drop-shadow(0 0 10px #edb65b);animation:radar-beat 1.7s infinite}.radar-wrap .radar-core{fill:#35d09a;stroke:none}.radar-sweep{fill:#35d09a2b;stroke:#35d09a99;stroke-width:1.2;transform-origin:90px 90px;animation:cockpit-rotate 3.8s linear infinite}.radar-readout{position:absolute;inset:54px 0 auto;text-align:center;pointer-events:none;color:#bfffe4}.radar-readout b{display:block;font-size:16px}.radar-readout small{display:block;font-size:9px}.laser-cell svg rect{fill:none;stroke:#35d09a5e}.laser-cell svg path{fill:none;stroke:#35d09a;stroke-width:1}.laser-cell svg text{fill:#bfffe4;font-size:12px}.laser-cell .laser-scan{stroke:#edb65b;stroke-width:3;filter:drop-shadow(0 0 7px #edb65b);animation:scan-price 2.7s ease-in-out infinite alternate}.tree-flow{display:flex;gap:7px;align-items:center;justify-content:center;direction:ltr}.tree-flow b{display:grid;place-items:center;width:55px;height:55px;border-radius:50%;background:#35d09a14;border:1px solid #35d09a6a;color:#d1ffe9;box-shadow:0 0 20px #35d09a25;animation:radar-beat 2.5s infinite}.tree-flow b:nth-of-type(2){animation-delay:.4s}.tree-flow b:nth-of-type(3){animation-delay:.8s}.tree-flow i{color:#edb65b;font-style:normal}.cockpit-bottom{border-top:1px solid var(--stroke);padding-top:12px}
@keyframes cockpit-rotate{to{transform:rotate(360deg)}}@keyframes draw-wave{from{stroke-dashoffset:460}to{stroke-dashoffset:0}}@keyframes scan-price{to{transform:translateX(220px)}}@keyframes radar-beat{50%{opacity:.42;filter:drop-shadow(0 0 22px #edb65b)}}
.demo-grid{grid-template-columns:minmax(260px,300px) minmax(300px,410px) minmax(250px,1fr);align-items:stretch}.demo-section .section-head{max-width:850px}.demo-section .chat-body{height:560px;min-height:560px;max-height:560px;overflow-y:auto;scrollbar-width:thin}.demo-story{display:flex;flex-direction:column;gap:12px}.demo-story .bubble{max-width:95%;white-space:pre-wrap;font-size:12px;line-height:1.6;padding:10px 13px;animation:chat-in .42s ease both}.demo-story .bubble.customer{align-self:flex-start}.demo-story .bubble.agent{align-self:flex-end}.stage-meter{position:sticky;top:0;z-index:3;background:var(--surface);border:1px solid var(--stroke);padding:6px 10px;border-radius:12px;font-size:10px;color:var(--soft)}.stage-meter>div{height:3px;background:#ffffff16;border-radius:20px;overflow:hidden;margin-top:4px}.stage-meter i{display:block;width:25%;height:100%;background:linear-gradient(90deg,var(--accent),#edb65b);transition:width .6s ease}.team-stage{background:var(--glow);color:var(--accent);border:1px solid var(--stroke);border-radius:11px;padding:9px 12px;font-size:12px}.team-steps{overflow-y:auto;max-height:470px}.team-step{border-inline-start:3px solid var(--accent)}.team-step p{margin:4px 0 0;color:var(--soft)}.team-screen{min-height:600px}
.ledger-entry-label{display:block;margin-bottom:4px}.ledger-entry-date{display:block;padding-top:4px;border-top:1px solid var(--stroke)}.command-kpi{position:relative;isolation:isolate}.kpi-ring{position:absolute;top:13px;left:12px;width:52px;height:52px;transform:rotate(-90deg);filter:drop-shadow(0 0 5px var(--accent))}.kpi-ring circle{fill:none;stroke:var(--stroke);stroke-width:5}.kpi-ring .filled{stroke:var(--accent);stroke-width:6;stroke-linecap:round;transition:stroke-dasharray .7s}.kpi-spark path{filter:drop-shadow(0 0 5px var(--accent))}
@media(max-width:1200px){.demo-grid{grid-template-columns:minmax(235px,290px) minmax(290px,1fr)}.team-screen{grid-column:1/-1;min-height:0}.team-steps{display:grid;grid-template-columns:repeat(2,1fr);max-height:none}}
@media(max-width:920px){.hero{grid-template-columns:1fr}.hero-art{min-height:500px;max-width:650px;margin:auto}.hero h1{font-size:clamp(36px,6vw,58px)}}
@media(max-width:720px){.demo-grid{grid-template-columns:1fr}.team-screen{grid-column:auto}.team-steps{grid-template-columns:1fr}.hero-art{min-height:495px}.cockpit{padding:12px}.cockpit-cell{padding:10px}.cockpit-bottom{font-size:9px}.ref-banner{font-size:11px}.demo-section .chat-body{height:510px;min-height:510px;max-height:510px}}
@media(max-width:420px){.radar-wrap{width:112px;height:112px}.radar-readout{inset:42px 0 auto}.tree-flow b{width:40px;height:40px;font-size:12px}.tree-flow{gap:3px}.cockpit-cell svg{min-height:64px}}
@media(prefers-reduced-motion:reduce){.cockpit:before,.cockpit-wave,.radar-sweep,.radar-ping,.laser-scan,.tree-flow b,.kpi-spark path{animation:none!important}}
