/* QAVENIX theme switcher - light-mode overrides + toggle button.
   Dark is the default (no attribute / data-theme="dark" = untouched).
   Loaded LAST on every page; :root[data-theme="light"] outranks the
   per-page :root{} variable blocks. */

:root{color-scheme:dark}

/* ---------- Toggle button (both themes) ---------- */
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;flex:none;border-radius:8px;border:1px solid rgba(255,255,255,.25);background:transparent;color:rgba(255,255,255,.85);cursor:pointer;padding:0;transition:border-color .25s,color .25s,box-shadow .25s}
.theme-toggle:hover{border-color:var(--cyan,#00D4FF);color:var(--cyan,#00D4FF);box-shadow:0 0 12px rgba(0,212,255,.22)}
.theme-toggle svg{width:17px;height:17px;display:block}
.theme-fixed{position:fixed;top:14px;inset-inline-end:14px;z-index:120;background:rgba(13,16,23,.85)}
[data-theme="light"] .theme-toggle{border-color:rgba(12,22,44,.28);color:rgba(16,20,28,.8)}
[data-theme="light"] .theme-toggle:hover{border-color:#0083b3;color:#0083b3;box-shadow:0 0 12px rgba(0,131,179,.18)}
[data-theme="light"] .theme-fixed{background:rgba(255,255,255,.85)}
[data-theme] body{transition:background-color .25s,color .25s}

/* ---------- Light palette ---------- */
:root[data-theme="light"]{
  color-scheme:light;
  --bg:#f3f5fa; --bg2:#e8ecf4; --panel:#ffffff;
  --txt:#10141c; --txt2:rgba(16,20,28,.72); --txt3:rgba(16,20,28,.55);
  --line:rgba(12,22,44,.1); --line2:rgba(12,22,44,.16);
  --cyan:#0083b3;
}
[data-theme="light"] body{background:var(--bg);color:var(--txt)}
[data-theme="light"] a:hover{color:#006a94}

/* ---------- Nav (home fixed + inner sticky share .nav) ---------- */
[data-theme="light"] .nav{background:rgba(246,248,252,.6);border-bottom-color:rgba(12,22,44,.08)}
[data-theme="light"] .nav.scrolled{background:rgba(246,248,252,.94)}
[data-theme="light"] .nav-links a:hover,[data-theme="light"] .nav-links a.active{color:#000}
[data-theme="light"] .nav-lang{color:rgba(16,20,28,.55)}
[data-theme="light"] .nav-lang a{color:rgba(16,20,28,.8)}
[data-theme="light"] .nav-lang span[style]{color:rgba(16,20,28,.3)!important}
[data-theme="light"] .nav a.mono[style]{color:rgba(16,20,28,.65)!important}
[data-theme="light"] .btn-login{border-color:rgba(12,22,44,.28);color:var(--txt)}
[data-theme="light"] .nav-burger{border-color:rgba(12,22,44,.3);color:var(--txt)}
[data-theme="light"] .nav-mobile{background:rgba(248,250,253,.98)}
[data-theme="light"] .crumb,[data-theme="light"] .crumb a{color:rgba(16,20,28,.5)}
[data-theme="light"] .crumb a:hover{color:#000}

/* The lockup logo is a black-background JPEG shown with
   mix-blend-mode:screen on dark pages - on light it becomes a chip. */
[data-theme="light"] .nav-logo img,[data-theme="light"] .foot-brand img{mix-blend-mode:normal;background:#050608;border-radius:8px}

/* ---------- Home: hero / about ---------- */
[data-theme="light"] #heroCanvas{opacity:.5}
[data-theme="light"] .hero-sub{color:var(--txt)}
[data-theme="light"] .hero-stats .div{background:rgba(12,22,44,.15)}
[data-theme="light"] .grad-text{filter:brightness(.82) saturate(1.15)}
[data-theme="light"] .btn-outline-p{background:rgba(111,66,193,.06);color:var(--txt)}
[data-theme="light"] .btn-ghost{border-color:rgba(12,22,44,.25);color:var(--txt)}
[data-theme="light"] .btn-ghost:hover{border-color:rgba(12,22,44,.5);color:var(--txt)}
[data-theme="light"] .geo-card{background:#fff}
[data-theme="light"] .geo-card .role{color:var(--txt3)}
[data-theme="light"] .about-visual .frame{background:#0b0e14}
[data-theme="light"] .about-visual .cap{color:rgba(16,20,28,.5)}

/* ---------- Home: solutions / builder / industries / why ---------- */
[data-theme="light"] .sol-card,[data-theme="light"] .ind-card{background:#fff}
[data-theme="light"] .sol-num{color:rgba(16,20,28,.45)}
[data-theme="light"] .sol-blurb,[data-theme="light"] .sol-tag{color:rgba(16,20,28,.6)}
[data-theme="light"] .eco-node{background:rgba(255,255,255,.85)}
[data-theme="light"] .builder-box{background:rgba(255,255,255,.75)}
[data-theme="light"] .chip,[data-theme="light"] .sol-chip{background:#fff;border-color:rgba(12,22,44,.18);color:rgba(16,20,28,.75)}
[data-theme="light"] .chip.on,[data-theme="light"] .sol-chip.on{background:linear-gradient(135deg,#6F42C1,#3949FF);border-color:transparent;color:#fff;box-shadow:0 4px 16px rgba(57,73,255,.3)}
[data-theme="light"] .why{background:rgba(12,22,44,.03);border-top-color:rgba(12,22,44,.07);border-bottom-color:rgba(12,22,44,.07)}
[data-theme="light"] .why-intro,[data-theme="light"] .why-text{color:rgba(16,20,28,.6)}
[data-theme="light"] .why-letter{filter:brightness(.8) saturate(1.1)}

/* ---------- Home: partners (white-out logos become black-out) ---------- */
[data-theme="light"] .partner-logo{filter:brightness(0);opacity:.72}
[data-theme="light"] .pl-sam,[data-theme="light"] .pl-lg,[data-theme="light"] .pl-hme{filter:none;opacity:1}

/* ---------- Home: contact / forms / CTA ---------- */
[data-theme="light"] .office,[data-theme="light"] .form-card,[data-theme="light"] .map-card{background:#fff}
[data-theme="light"] .office .cline:hover{color:#000}
[data-theme="light"] .field{background:rgba(12,22,44,.04);color:var(--txt)}
[data-theme="light"] select.field{color:rgba(16,20,28,.8)}
[data-theme="light"] select.field option{background:#fff;color:#10141c}
[data-theme="light"] .form-note{color:rgba(16,20,28,.5)}
[data-theme="light"] .cta-box{background:radial-gradient(ellipse 70% 120% at 50% 0%,rgba(111,66,193,.12),transparent 70%),linear-gradient(135deg,rgba(57,73,255,.07),rgba(0,212,255,.05))}

/* ---------- Footer ---------- */
[data-theme="light"] footer{border-top-color:rgba(12,22,44,.1)}
[data-theme="light"] .foot-brand p{color:rgba(16,20,28,.55)}
[data-theme="light"] .socials a{border-color:rgba(12,22,44,.2)}
[data-theme="light"] .socials a svg{fill:rgba(16,20,28,.65)}
[data-theme="light"] .foot-head{color:rgba(16,20,28,.5)}
[data-theme="light"] .foot-bottom{border-top-color:rgba(12,22,44,.08);color:rgba(16,20,28,.45)}
[data-theme="light"] .foot-bottom .legal a{color:rgba(16,20,28,.55)}
[data-theme="light"] .foot-row .brand{color:rgba(16,20,28,.45)}
[data-theme="light"] .foot-row .tag{color:rgba(16,20,28,.55)}

/* ---------- Wizard modal ---------- */
[data-theme="light"] .modal-veil{background:rgba(20,26,40,.45)}
[data-theme="light"] .wiz{box-shadow:0 30px 80px rgba(20,30,60,.25)}
[data-theme="light"] .wiz-sub{color:var(--txt3)}
[data-theme="light"] .wiz-x{border-color:rgba(12,22,44,.2);color:rgba(16,20,28,.6)}
[data-theme="light"] .wiz-x:hover{border-color:rgba(12,22,44,.45);color:#000}
[data-theme="light"] .wiz-dot{background:rgba(12,22,44,.04);color:rgba(16,20,28,.5);border-color:rgba(12,22,44,.1)}
[data-theme="light"] .wiz-dot.on{background:linear-gradient(90deg,#6F42C1,#3949FF);color:#fff;border-color:transparent}
[data-theme="light"] .wiz-back{border-color:rgba(12,22,44,.2)}
[data-theme="light"] .wiz-back:hover{border-color:rgba(12,22,44,.45)}
[data-theme="light"] .wiz-summary{background:rgba(12,22,44,.03)}
[data-theme="light"] .wiz-summary .k{color:rgba(16,20,28,.55)}
[data-theme="light"] .btn-mail{background:rgba(12,22,44,.05);border-color:rgba(12,22,44,.25);color:var(--txt)}
[data-theme="light"] .btn-mail:hover{border-color:rgba(12,22,44,.5);color:var(--txt)}

/* ---------- Chat ---------- */
[data-theme="light"] .chat{background-image:linear-gradient(#fff,#fff),linear-gradient(135deg,#6F42C1,#3949FF,#00D4FF);box-shadow:0 24px 70px rgba(20,30,60,.3)}
[data-theme="light"] .msg.ai .bubble{background:rgba(12,22,44,.05);color:rgba(16,20,28,.85)}
[data-theme="light"] .typing{background:rgba(12,22,44,.05)}
[data-theme="light"] .chat-x{color:rgba(16,20,28,.55)}
[data-theme="light"] .chat-x:hover{color:#000}
[data-theme="light"] .chat-input input{background:rgba(12,22,44,.04);color:var(--txt)}
[data-theme="light"] .chat-sug{background:rgba(0,131,179,.06);border-color:rgba(0,131,179,.35)}

/* ---------- Solution pages ---------- */
/* Photo/banner heroes stay dark (they are images); pin white text + bright
   cyan back inside them via scoped variables. */
[data-theme="light"] .glass{--txt:#fff;--txt2:rgba(255,255,255,.65);--txt3:rgba(255,255,255,.5);--cyan:#00D4FF}
[data-theme="light"] .banner-ctas{--cyan:#00D4FF}
[data-theme="light"] .hero-banner::after{display:none}
[data-theme="light"] .lead{color:rgba(16,20,28,.72)}
[data-theme="light"] .feat{background:#fff}
[data-theme="light"] .feat .text{color:rgba(16,20,28,.6)}

/* ---------- Blog ---------- */
[data-theme="light"] .blog-head p{color:rgba(16,20,28,.6)}
[data-theme="light"] .post-card{background:#fff}
[data-theme="light"] .post-title{color:var(--txt)}
[data-theme="light"] .post-ex{color:rgba(16,20,28,.6)}
[data-theme="light"] .post-date{color:rgba(16,20,28,.5)}
[data-theme="light"] .art{color:rgba(16,20,28,.8)}
[data-theme="light"] .art h2,[data-theme="light"] .art h3,[data-theme="light"] .art strong,[data-theme="light"] .art .faq-q{color:var(--txt)}
[data-theme="light"] .art-meta{color:rgba(16,20,28,.5)}
[data-theme="light"] .art-cover img{border-color:rgba(12,22,44,.12)}
[data-theme="light"] .art .note{background:rgba(0,131,179,.06);border-color:rgba(0,131,179,.25)}

/* ---------- 404 ---------- */
[data-theme="light"] .box p{color:rgba(16,20,28,.6)}
[data-theme="light"] .box img{mix-blend-mode:normal!important;background:#050608;border-radius:12px}
