/* Light cosmic theme layer. Dark theme remains the original site.css design. */
html[data-theme="cosmic"]{
  color-scheme:light;
  --bg:#f7f9ff;
  --panel:#ffffff;
  --panel2:#e9efff;
  --line:#c7d3e6;
  --text:#172033;
  --muted:#53647a;
  --lime:#5a43d6;
  --cyan:#007b9f;
  --gold:#8a6200;
}
html[data-theme="dark"]{color-scheme:dark}

/* Theme switch works in both palettes. */
.theme-toggle{
  flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;gap:9px;
  min-height:42px;padding:8px 13px;border:1px solid var(--line);border-radius:999px;
  background:var(--panel);color:var(--text);font-weight:800;font-size:12px;cursor:pointer;
  box-shadow:0 8px 24px rgba(0,0,0,.12);
  transition:transform .2s,border-color .2s,background .2s,box-shadow .2s;
  touch-action:manipulation;-webkit-tap-highlight-color:transparent;
}
.theme-toggle:hover{transform:translateY(-1px);border-color:var(--cyan)}
.theme-toggle:hover .theme-toggle-atom{transform:rotate(18deg) scale(1.04)}
.theme-toggle:focus-visible{outline:3px solid var(--cyan);outline-offset:3px}
.theme-toggle-label{line-height:1;white-space:nowrap}
.theme-toggle-atom{position:relative;width:22px;height:22px;display:block;color:var(--cyan);transition:transform .28s ease}
.theme-toggle-atom::before,.theme-toggle-atom::after,.theme-toggle-atom i{
  content:"";position:absolute;left:2px;right:2px;top:7px;height:6px;
  border:1.4px solid currentColor;border-radius:50%;box-sizing:border-box
}
.theme-toggle-atom::before{transform:rotate(60deg)}
.theme-toggle-atom::after{transform:rotate(-60deg)}
.theme-toggle-atom i{transform:rotate(0);margin:0}
.theme-toggle-atom i::after{
  content:"";position:absolute;width:5px;height:5px;border-radius:50%;
  left:50%;top:50%;transform:translate(-50%,-50%);
  background:var(--lime);box-shadow:0 0 9px rgba(90,67,214,.48)
}

/* Bright cosmic canvas with soft nebulae; text remains high-contrast. */
html[data-theme="cosmic"] body{
  position:relative;isolation:isolate;
  background:
    radial-gradient(ellipse 48% 28% at 12% 6%,rgba(90,67,214,.16),transparent 72%),
    radial-gradient(ellipse 42% 25% at 92% 14%,rgba(0,139,176,.13),transparent 70%),
    radial-gradient(circle at 58% 84%,rgba(112,134,255,.12),transparent 30%),
    radial-gradient(circle,rgba(67,83,130,.085) 1px,transparent 1.25px),
    linear-gradient(180deg,#fcfdff 0%,#eef4ff 48%,#f8fbff 100%);
  background-size:auto,auto,auto,30px 30px,auto;
  background-attachment:fixed;color:var(--text);
}
html[data-theme="cosmic"] body::before{
  content:"";position:fixed;z-index:-1;pointer-events:none;
  width:min(64vw,820px);aspect-ratio:1.65;right:-19vw;top:11vh;
  border:1px solid rgba(90,67,214,.11);border-radius:50%;transform:rotate(-17deg);
  box-shadow:0 0 0 34px rgba(90,67,214,.022),0 0 0 72px rgba(0,123,159,.016)
}
html[data-theme="cosmic"] body,
html[data-theme="cosmic"] main,
html[data-theme="cosmic"] .site-footer{color:var(--text)}
html[data-theme="cosmic"] img,
html[data-theme="cosmic"] video{opacity:1;filter:none}

/* Header and navigation. */
html[data-theme="cosmic"] .site-header{
  border-bottom-color:rgba(80,99,140,.18);
  background:rgba(250,252,255,.88);
  box-shadow:0 8px 30px rgba(70,88,130,.08);
}
html[data-theme="cosmic"] .main-nav a{color:#32415a}
html[data-theme="cosmic"] .main-nav a:hover{color:var(--lime)}
html[data-theme="cosmic"] .burger{background:rgba(255,255,255,.7)}
html[data-theme="cosmic"] .burger span{background:var(--text)}
html[data-theme="cosmic"] .mobile-nav{
  background:rgba(255,255,255,.97);box-shadow:0 18px 50px rgba(54,72,115,.16)
}
html[data-theme="cosmic"] .mobile-nav a{color:var(--text)}
html[data-theme="cosmic"] .theme-toggle{
  background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(232,239,255,.94));
  border-color:rgba(95,111,158,.28);
  box-shadow:0 8px 24px rgba(65,80,130,.12),inset 0 1px 0 rgba(255,255,255,.9)
}
html[data-theme="cosmic"] .theme-toggle:hover{
  box-shadow:0 12px 30px rgba(65,80,130,.16),0 0 0 4px rgba(90,67,214,.05)
}
html[data-theme="dark"] .theme-toggle{
  background:rgba(17,21,29,.9);border-color:#354154;color:#f4f6f8;
  box-shadow:0 8px 24px rgba(0,0,0,.24)
}
html[data-theme="dark"] .theme-toggle-atom{color:#51d8ff}
html[data-theme="dark"] .theme-toggle-atom i::after{
  background:#c8ff3d;box-shadow:0 0 9px rgba(200,255,61,.42)
}

/* Primary surfaces. */
html[data-theme="cosmic"] .portal-card,
html[data-theme="cosmic"] .content-card,
html[data-theme="cosmic"] .review-card,
html[data-theme="cosmic"] .contact-option,
html[data-theme="cosmic"] .product-prices>div,
html[data-theme="cosmic"] .product-accordion,
html[data-theme="cosmic"] .product-info,
html[data-theme="cosmic"] .article-cta{
  background:rgba(255,255,255,.88);
  border-color:var(--line);
  box-shadow:0 16px 42px rgba(64,83,128,.08);
}
html[data-theme="cosmic"] .portal-card:hover,
html[data-theme="cosmic"] .contact-option:hover{
  border-color:rgba(90,67,214,.5);box-shadow:0 18px 46px rgba(90,67,214,.11)
}
html[data-theme="cosmic"] .intent-card,
html[data-theme="cosmic"] .partnership-grid article,
html[data-theme="cosmic"] .consultant-card,
html[data-theme="cosmic"] .evidence-note,
html[data-theme="cosmic"] .product-decision{
  background:rgba(255,255,255,.78);
  border-color:var(--line);
  box-shadow:0 14px 36px rgba(69,88,135,.07)
}
html[data-theme="cosmic"] .intent-card small,
html[data-theme="cosmic"] .intent-card span,
html[data-theme="cosmic"] .partnership-grid article>b,
html[data-theme="cosmic"] .partner-price-note a,
html[data-theme="cosmic"] .evidence-note a{color:var(--lime)}
html[data-theme="cosmic"] .story-preview,
html[data-theme="cosmic"] .page-hero{border-color:rgba(80,99,140,.16)}
html[data-theme="cosmic"] .contact-strip{
  border-color:rgba(90,67,214,.28);
  background:linear-gradient(120deg,rgba(90,67,214,.08),rgba(0,123,159,.07),rgba(255,255,255,.5))
}
html[data-theme="cosmic"] .consultant-mark{
  color:#fff;background:linear-gradient(135deg,var(--lime),#758dff);
  border-color:rgba(90,67,214,.32)
}

/* Buttons, links and readable long-form content. */
html[data-theme="cosmic"] .button{background:var(--lime);border-color:var(--lime);color:#fff}
html[data-theme="cosmic"] .button:hover{box-shadow:0 12px 34px rgba(90,67,214,.2)}
html[data-theme="cosmic"] .button.ghost{background:rgba(255,255,255,.56);color:var(--text);border-color:var(--line)}
html[data-theme="cosmic"] .text-link,
html[data-theme="cosmic"] .back-link,
html[data-theme="cosmic"] .article-content a,
html[data-theme="cosmic"] .review-card a{color:var(--cyan)}
html[data-theme="cosmic"] .article-content{color:#1f2a3d}
html[data-theme="cosmic"] .article-content blockquote{background:rgba(255,255,255,.78)}
html[data-theme="cosmic"] .product-accordion-body{color:#25344a}
html[data-theme="cosmic"] .product-document{border-color:#aabbd2}
html[data-theme="cosmic"] .product-documents{
  border-color:rgba(0,123,159,.28);
  background:linear-gradient(145deg,rgba(0,123,159,.06),rgba(255,255,255,.86))
}
html[data-theme="cosmic"] .empty-public{background:rgba(255,255,255,.55)}
html[data-theme="cosmic"] .pagination a{background:rgba(255,255,255,.62)}

/* Product and article images stay visible on a pale neutral stage. */
html[data-theme="cosmic"] .card-image{
  background:linear-gradient(135deg,#eef3ff,#e4ecfa)
}
html[data-theme="cosmic"] .article-cover-frame{
  background:linear-gradient(135deg,#edf2fb,#dfe8f7)
}
html[data-theme="cosmic"] .card-image-backdrop,
html[data-theme="cosmic"] .article-cover-backdrop{opacity:.2}
html[data-theme="cosmic"] .image-placeholder{color:var(--cyan)}
html[data-theme="cosmic"] .story-video-orb{
  background:#e8eef9;color:var(--text);box-shadow:0 12px 32px rgba(49,74,120,.12)
}

/* Molecule illustration gets a brighter cosmic treatment. */
html[data-theme="cosmic"] .molecule{
  border-color:rgba(0,123,159,.3);
  background:radial-gradient(circle at 50% 50%,rgba(255,255,255,.92),rgba(221,232,255,.65));
  box-shadow:inset 0 0 70px rgba(90,67,214,.08),0 20px 60px rgba(70,92,148,.12)
}
html[data-theme="cosmic"] .molecule:before,
html[data-theme="cosmic"] .molecule:after{border-color:rgba(90,67,214,.28)}
html[data-theme="cosmic"] .molecule-core{
  background:linear-gradient(135deg,#5a43d6,#0096bd);color:#fff;
  box-shadow:0 0 55px rgba(90,67,214,.2)
}

/* Floating conversion controls. */
html[data-theme="cosmic"] .fixed-actions a{box-shadow:0 10px 30px rgba(50,65,105,.18)}
html[data-theme="cosmic"] .fixed-contact{background:#fff;color:#172033;border:1px solid #c7d3e6}
html[data-theme="cosmic"] .fixed-register{background:var(--lime);color:#fff}
html[data-theme="cosmic"] .site-footer{border-color:var(--line)}

/* New consultation chat: all text, fields and actions are readable in light mode. */
html[data-theme="cosmic"] .advisor-widget{color:#172033}
html[data-theme="cosmic"] .advisor-toggle{
  border-color:rgba(90,67,214,.42);
  background:linear-gradient(145deg,#ffffff,#e6edff);color:var(--lime);
  box-shadow:0 12px 34px rgba(61,78,124,.2)
}
html[data-theme="cosmic"] .advisor-panel{
  color:#172033;background:rgba(250,252,255,.98);border-color:#b9c8df;
  box-shadow:0 20px 58px rgba(48,65,108,.24)
}
html[data-theme="cosmic"] .advisor-head,
html[data-theme="cosmic"] .advisor-form{border-color:#cbd6e7}
html[data-theme="cosmic"] .advisor-head small,
html[data-theme="cosmic"] .advisor-notice{color:#56667c}
html[data-theme="cosmic"] .advisor-avatar{background:var(--lime);color:#fff}
html[data-theme="cosmic"] .advisor-message{background:#e8eefb;color:#172033}
html[data-theme="cosmic"] .advisor-message.user{background:var(--lime);color:#fff}
html[data-theme="cosmic"] .advisor-message a,
html[data-theme="cosmic"] .advisor-widget a{color:#006f91}
html[data-theme="cosmic"] .advisor-notice{
  background:#f1f5ff;border-color:#c5d1e4
}
html[data-theme="cosmic"] .advisor-notice-persistent{background:#f1f5ff}
html[data-theme="cosmic"] .advisor-form input,
html[data-theme="cosmic"] .advisor-lead>input,
html[data-theme="cosmic"] .advisor-lead>select{
  background:#fff;color:#172033;border-color:#aebed5
}
html[data-theme="cosmic"] .advisor-lead{background:#f7f9ff;border-color:#bdcbe0}
html[data-theme="cosmic"] .advisor-form button,
html[data-theme="cosmic"] .advisor-lead button[type=submit],
html[data-theme="cosmic"] .advisor-cta{
  background:var(--lime);color:#fff
}
html[data-theme="cosmic"] .advisor-secondary,
html[data-theme="cosmic"] .advisor-footer button{
  background:#fff;color:#25344a;border-color:#b8c7dc
}
html[data-theme="cosmic"] .advisor-status{color:#7a4b00}

/* Keep native controls and focus states obvious. */
html[data-theme="cosmic"] input,
html[data-theme="cosmic"] textarea,
html[data-theme="cosmic"] select{color-scheme:light}
html[data-theme="cosmic"] a:focus-visible,
html[data-theme="cosmic"] button:focus-visible{outline-color:var(--cyan)}

@media(max-width:1050px){
  .site-header{gap:16px}
  .theme-toggle{margin-left:auto}
  .burger{margin-left:0}
}
@media(max-width:760px){
  .site-header{gap:10px}
  .theme-toggle{width:44px;height:44px;min-height:44px;padding:0;flex:0 0 44px}
  .theme-toggle-label{display:none}
  html[data-theme="cosmic"] body::before{width:560px;right:-430px;top:18vh;opacity:.72}
}
@media(max-width:420px){
  .site-header{gap:8px;padding-inline:14px}
  .brand{font-size:13px}
}
/* --- Visual refresh: luminous navigation, molecular cage and a deliberate chat beacon. --- */
html[data-theme="cosmic"] .site-header,
html[data-theme="dark"] .site-header{
  height:86px; border-bottom:1px solid transparent; border-image:linear-gradient(90deg,transparent,rgba(81,216,255,.6),rgba(255,123,213,.65),transparent) 1;
  background:linear-gradient(100deg,rgba(248,250,255,.94),rgba(239,238,255,.9) 52%,rgba(232,249,255,.92));
  box-shadow:0 12px 34px rgba(71,73,145,.13),inset 0 1px rgba(255,255,255,.92);
}
html[data-theme="dark"] .site-header{background:linear-gradient(100deg,rgba(9,13,24,.96),rgba(22,16,42,.94) 52%,rgba(8,28,42,.96));box-shadow:0 12px 34px rgba(0,0,0,.32)}
.brand{font-size:16px;letter-spacing:.1em;text-shadow:0 0 20px rgba(81,216,255,.22)}
.brand span,.brand b{color:#7c4dff}.brand b{font-size:.72em}.main-nav{gap:10px}
.main-nav a{position:relative;padding:11px 12px;border:1px solid transparent;border-radius:13px;font-size:14px;font-weight:800;letter-spacing:.01em;color:#293750;transition:transform .2s,color .2s,background .2s,border-color .2s}
html[data-theme="dark"] .main-nav a{color:#e8e8f6}
.main-nav a::after{content:"";position:absolute;left:12px;right:12px;bottom:5px;height:2px;border-radius:2px;background:linear-gradient(90deg,#55ddff,#ff7bd5);transform:scaleX(0);transform-origin:left;transition:transform .2s}
.main-nav a:hover{color:#6941df;background:rgba(124,77,255,.08);border-color:rgba(124,77,255,.2);transform:translateY(-2px)}
.main-nav a:hover::after{transform:scaleX(1)}
html[data-theme="dark"] .main-nav a:hover{color:#72e5ff;background:rgba(85,221,255,.08)}
.theme-toggle{min-height:46px;border-color:rgba(124,77,255,.3)!important;background:linear-gradient(135deg,rgba(255,255,255,.82),rgba(221,236,255,.92))!important}
html[data-theme="dark"] .theme-toggle{background:linear-gradient(135deg,rgba(29,22,53,.92),rgba(8,34,47,.94))!important}

/* A translucent rainbow C60 cage: orbit lines + actual atom nodes. */
.molecule{overflow:visible!important;border:0!important;background:radial-gradient(circle,rgba(255,255,255,.16),transparent 67%)!important;box-shadow:none!important;filter:drop-shadow(0 18px 32px rgba(65,71,170,.16))}
.molecule::before,.molecule::after,.molecule>i{display:none}
.molecule-cage{position:absolute;inset:-3%;width:106%;height:106%;overflow:visible;filter:drop-shadow(0 0 14px rgba(167,139,250,.25))}
.cage-orbit{fill:none;stroke:url(#c60-spectrum);stroke-width:1.35;opacity:.58;stroke-dasharray:3 5;transform-box:view-box;transform-origin:50% 50%;animation:cageSpin 22s linear infinite}
.cage-orbit ellipse:nth-child(2){animation:cagePulse 5s ease-in-out infinite}.cage-orbit ellipse:nth-child(4){opacity:.7}.cage-nodes{fill:url(#c60-spectrum);filter:drop-shadow(0 0 7px #a78bfa);opacity:.9}
.molecule-core{inset:31%!important;background:linear-gradient(135deg,rgba(85,221,255,.72),rgba(167,139,250,.74) 48%,rgba(255,123,213,.72))!important;color:#fff!important;border:1px solid rgba(255,255,255,.6);backdrop-filter:blur(8px);box-shadow:0 0 0 10px rgba(167,139,250,.07),0 0 65px rgba(167,139,250,.38)!important;text-shadow:0 2px 10px rgba(24,15,58,.45)}
@keyframes cageSpin{to{transform:rotate(360deg)}}@keyframes cagePulse{50%{opacity:.22;stroke-width:2.1}}
html[data-theme="dark"] .molecule{filter:drop-shadow(0 18px 42px rgba(0,0,0,.46))}.hero-copy{position:relative;z-index:1}

@media(max-width:1050px){.site-header{height:78px}.main-nav a{font-size:13px;padding-inline:9px}}
@media(max-width:760px){.site-header{height:68px}.brand{font-size:14px}.molecule-cage{inset:-7%;width:114%;height:114%}.molecule-core{inset:30%!important}}
@media(prefers-reduced-motion:reduce){.cage-orbit,.cage-orbit ellipse:nth-child(2){animation:none}.main-nav a{transition:none}}

/* Beacon keeps its rainbow in the light theme too (overrides the white pill above). */
html[data-theme="cosmic"] .advisor-toggle{background:linear-gradient(135deg,#55ddff 0%,#a78bfa 48%,#ff7bd5 100%);color:#fff;border-color:rgba(255,255,255,.78);box-shadow:0 14px 38px rgba(80,64,180,.36),0 0 0 7px rgba(167,139,250,.1),0 0 34px rgba(85,221,255,.34)}
@media(max-width:760px){
  html[data-theme="cosmic"] .site-header,html[data-theme="dark"] .site-header{height:68px}
  html[data-theme="cosmic"] .advisor-toggle,html[data-theme="dark"] .advisor-toggle{box-shadow:0 4px 16px rgba(80,64,180,.24)}
}
