/* The same HUGGYME scene, with project-owned light/dark appearance. */
html[data-theme="light"]{color-scheme:light;--bg:#f5f9ff;--bg-soft:#edf5ff;--card:#ffffff;--line:rgba(34,95,161,.18);--text:#0c2440;--muted:#486079;--dim:#627c99}
html[data-theme="light"] body{background:var(--bg);color:var(--text)}
html[data-theme="light"] .site-header{background:linear-gradient(180deg,rgba(252,254,255,.9),rgba(252,254,255,.12));}
html[data-theme="light"] .brand-copy small,html[data-theme="light"] .primary-nav a{color:#364f70}
html[data-theme="light"] .lang-button{color:#1a3656}
html[data-theme="light"] .lang-menu{background:#fff;border-color:#c6dbf3;box-shadow:0 15px 45px #1b549426}
html[data-theme="light"] .lang-choice{color:#1a3656}
html[data-theme="light"] .lang-choice:hover,html[data-theme="light"] .lang-choice:focus-visible{background:#e6f2ff}
html[data-theme="light"] .btn-ghost{background:rgba(255,255,255,.7);color:#113d68;border-color:#9ac4ef}
html[data-theme="light"] .btn-outline{background:#fff9;color:#0863c9;border-color:#8fbce9}
html[data-theme="light"] .mobile-toggle{background:#fff9;color:#183c65;border-color:#8ab2dd}
html[data-theme="light"] .hero{background:radial-gradient(ellipse at 65% 49%,rgba(65,157,255,.22),transparent 36%),radial-gradient(ellipse at 85% 20%,#e2f3ff,transparent 50%),linear-gradient(120deg,#faffff,#eef7ff 50%,#ddecff);border-bottom-color:#c1d8f0}
html[data-theme="light"] .hero::after{background:linear-gradient(90deg,#fff9,transparent 50%,#deefff55)}
html[data-theme="light"] .hero .eyebrow{color:#4476ab}
html[data-theme="light"] .hero-description,html[data-theme="light"] .metric span{color:#42617e}
html[data-theme="light"] .hero .metric{border-color:#afc9e5}
html[data-theme="light"] .hero-divider{background:#b7d1e9}
html[data-theme="light"] .hero .beam{opacity:.42}
html[data-theme="light"] .visual-glow{background:radial-gradient(ellipse at 54% 51%,rgba(41,146,254,.27),rgba(38,131,245,.07) 43%,transparent 72%)}
html[data-theme="light"] .hero-visual .orbit-product{background:linear-gradient(145deg,rgba(255,255,255,.95),rgba(235,246,255,.91));border-color:#91bce4;box-shadow:0 12px 28px rgba(61,114,172,.18);color:#153554;}
html[data-theme="light"] .hero-visual .orbit-product-body small,html[data-theme="light"] .hero-visual .orbit-product-body>span{color:#476787}
html[data-theme="light"] .product-soon,html[data-theme="light"] .tile-soon{color:#8651c7!important}
html[data-theme="light"] .cube-3d{filter:drop-shadow(0 6px 9px rgba(13,103,219,.13))}
html[data-theme="light"] .cube-ground-glow{opacity:.94}
html[data-theme="light"] .benefit-strip{background:linear-gradient(180deg,#f8fbff,#f1f7ff);border-bottom-color:#ccdeef}
html[data-theme="light"] .benefit-grid article{border-color:#d3e3f2}
html[data-theme="light"] .benefit-grid p{color:#58708b}
html[data-theme="light"] .content-section,html[data-theme="light"] .content-section:nth-of-type(odd),html[data-theme="light"] .architecture-section,html[data-theme="light"] .cases-section{background:#f5f9ff}
html[data-theme="light"] .security-section{background:radial-gradient(ellipse at 90% 50%,#dceeff,transparent 48%),#ecf5ff}
html[data-theme="light"] .company-section{background:radial-gradient(ellipse at 20% 80%,#cee7ff,transparent 45%),#f8fbff}
html[data-theme="light"] .section-intro>p:last-child,html[data-theme="light"] .section-lead,html[data-theme="light"] .company-layout>div:last-child p{color:#526982}
html[data-theme="light"] .product-tile,html[data-theme="light"] .arch-item,html[data-theme="light"] .case-card{background:linear-gradient(145deg,#fff,#eaf5ff);border-color:#cbddf0;box-shadow:0 8px 30px rgba(45,110,171,.08);color:#13385e}
html[data-theme="light"] .product-tile:hover{box-shadow:0 18px 35px rgba(20,93,163,.15)}
html[data-theme="light"] .tile-label,html[data-theme="light"] .arch-item>span:last-child,html[data-theme="light"] .case-card p{color:#56718d}
html[data-theme="light"] .security-points>div{color:#244665}
html[data-theme="light"] .security-visual{background:radial-gradient(ellipse at center,#cdeeff,#ecf7ff);border-color:#a4c8e9}
html[data-theme="light"] .security-head{color:#345c81}
html[data-theme="light"] .security-logs>div{background:#ffffffcd;color:#2b5273;border-color:#bdd8ef}
html[data-theme="light"] .investor-section{background:radial-gradient(ellipse at 29% 50%,#dde4ff,transparent 50%),linear-gradient(130deg,#f5faff,#e7f0ff);border-color:#c8d9ed}
html[data-theme="light"] .investor-content>p:not(.eyebrow){color:#506988}
html[data-theme="light"] .investor-node{color:#3863b7;text-shadow:0 0 25px #b7caff}
html[data-theme="light"] .contact-section{background:radial-gradient(ellipse at 48% 0,#cae6ff,transparent 60%),#eaf5ff;border-color:#b8d9f4}
html[data-theme="light"] .contact-inner>p{color:#476887}
html[data-theme="light"] .site-footer{background:#eaf3fc;border-top-color:#b4d3ee}
html[data-theme="light"] .footer-inner>span:nth-child(2),html[data-theme="light"] .footer-links a,html[data-theme="light"] .copyright{color:#4e6e8d}
html[data-theme="light"] .info-dialog{background:#fff;color:#102c4f;border-color:#b4d5f5;box-shadow:0 35px 95px #153b6c4d}
html[data-theme="light"] .dialog-close{background:#e7f2ff;color:#315b86}
html[data-theme="light"] .dialog-card p,html[data-theme="light"] .dialog-list div{color:#405c7c}
html[data-theme="light"] .dialog-list .ico{color:#148f77}
html[data-theme="light"] .contact-note{color:#21659d!important}
html[data-theme="light"] .appfront-architecture-link a{color:#0870d1}
html[data-theme="light"] .scroll-explore>span:first-child{color:#4376ac}
html[data-theme="light"] .scroll-circle{color:#3474a9}
html[data-theme="light"] .play-pill{background:#062541;color:#fff}
html[data-theme="light"] .primary-nav{background:#fffaf7;color:#123c65;border-color:#c0d9f2;box-shadow:0 15px 40px #32679726}
html[data-theme="light"] .primary-nav a:hover{background:#e6f2ff}
/* Deliberately do not recolor the 3D cube faces: dark blue glass gives depth in both themes. */
.cube-workspace{font-size:11px;font-weight:800;letter-spacing:1.7px;color:#82d8ff;text-shadow:0 0 12px #2d9efe;line-height:1.1;margin-top:7px}
.face-inner .cube-caption{font-size:8px;letter-spacing:.4px;margin-top:5px;text-align:center;white-space:normal;line-height:1.2;color:#b5e9ff}
.theme-toggle{height:39px;width:39px;flex:none;display:grid;place-items:center;background:rgba(54,116,182,.10);border:1px solid rgba(82,155,218,.24);border-radius:12px;color:#55aaf8;font-size:21px;line-height:1}
.theme-toggle .theme-moon{display:none}
html[data-theme="light"] .theme-toggle{color:#0d63bd;background:#e8f4ff;border-color:#c0dbf2}
html[data-theme="light"] .theme-toggle .theme-sun{display:none}
html[data-theme="light"] .theme-toggle .theme-moon{display:block}
.header-actions{gap:11px}
.sign-in-cta{padding-inline:19px;min-height:44px;font-size:13px}
.mobile-auth-link{display:none}
/* A single overlay for both login flows and registration. */
.auth-dialog{border:0;padding:0;max-width:min(476px,calc(100vw - 28px));width:100%;max-height:min(94dvh,860px);border-radius:24px;background:transparent;color:#153154;box-shadow:0 35px 120px rgba(3,29,73,.38);overflow:auto}
.auth-dialog::backdrop{background:rgba(5,17,38,.65);backdrop-filter:blur(9px)}
.auth-dialog:not([open]){display:none}
.auth-shell{padding:34px 36px 27px;background:linear-gradient(145deg,#fff,#f5f9ff);border:1px solid #d0e0f4;border-radius:24px;position:relative}
.auth-dismiss{position:absolute;right:21px;top:19px;width:36px;height:36px;border:1px solid #cfdded;border-radius:11px;display:grid;place-items:center;color:#3e6082;background:#f2f8ff}
.auth-dismiss .ico{width:18px}
.auth-brand{display:flex;align-items:center;gap:8px;color:#0c2b50;font-size:15px;letter-spacing:.3px}
.auth-brand .brand-feather{width:25px;height:32px}
.auth-eyebrow{letter-spacing:1.7px;font-size:10px;color:#0b74d1;font-weight:700;margin:24px 0 8px}
.auth-shell h2{font-size:31px;letter-spacing:-1px;line-height:1.13;margin-bottom:8px}
.auth-intro{color:#55718e;font-size:13px;line-height:1.5;margin-bottom:21px}
.auth-view-switch,.auth-methods{display:grid;grid-template-columns:1fr 1fr;padding:4px;border-radius:12px;background:#e7f0fb;gap:3px;margin-bottom:18px}
.auth-view-switch button,.auth-methods button{border:0;border-radius:9px;background:transparent;color:#55708b;font-size:13px;font-weight:600;padding:11px 4px}
.auth-view-switch button[aria-selected="true"],.auth-methods button[aria-pressed="true"]{background:#fff;color:#0668cf;box-shadow:0 2px 9px #215dad17}
.auth-methods{margin-bottom:17px;background:#eef4fb}
.auth-methods button{font-size:12px;padding:10px 2px}
.auth-form,.auth-form-nested{display:grid;gap:8px}
.auth-form label,.auth-form-nested label{font-size:12px;font-weight:620;color:#264c71;margin-top:6px}
.auth-form input,.auth-form-nested input{font:inherit;width:100%;min-height:46px;border-radius:10px;border:1px solid #c5d6ea;background:#fff;color:#102c4e;padding:10px 13px;font-size:14px;outline-offset:3px}
.auth-form input:focus,.auth-form-nested input:focus{border-color:#278aff;box-shadow:0 0 0 3px #a5d2ff66;outline:0}
.auth-form input:disabled,.auth-form-nested input:disabled{background:#eaf0f7}
.auth-form input::placeholder,.auth-form-nested input::placeholder{color:#91a2b8}
.auth-password-wrap{position:relative}
.auth-password-wrap input{padding-right:50px}
.auth-show-password{position:absolute;right:6px;top:4px;width:40px;height:38px;border:0;background:transparent;color:#4a7199;border-radius:7px}
.auth-label-line{display:flex;justify-content:space-between;align-items:center;gap:7px}
.auth-text-button{border:0;background:transparent;color:#0a73d9;font-size:11px;padding:0}
.auth-submit{width:100%;margin-top:13px;min-height:48px}
.auth-form-nested+.auth-form-nested{margin-top:16px;border-top:1px solid #d1e0ee;padding-top:12px}
.auth-panel[hidden],#auth-password-form[hidden],#auth-code-panel[hidden]{display:none!important}
.auth-status{font-size:13px;line-height:1.5;margin:15px 0 0;min-height:0;color:#0a7661;font-weight:560}
.auth-status:empty{display:none}
.auth-status[data-error="true"]{color:#b13743}
.auth-legal{margin:18px 0 0;color:#6d859f;font-size:11px;line-height:1.5;text-align:center}
html[data-theme="dark"] .auth-shell{background:linear-gradient(150deg,#10233b,#0b182a);border-color:#375c83;color:#f5f9ff}
html[data-theme="dark"] .auth-shell h2,html[data-theme="dark"] .auth-brand{color:#f5f9ff}
html[data-theme="dark"] .auth-intro,html[data-theme="dark"] .auth-legal{color:#acc0d8}
html[data-theme="dark"] .auth-view-switch,html[data-theme="dark"] .auth-methods{background:#1b334f}
html[data-theme="dark"] .auth-view-switch button,html[data-theme="dark"] .auth-methods button{color:#c2d1e3}
html[data-theme="dark"] .auth-view-switch button[aria-selected="true"],html[data-theme="dark"] .auth-methods button[aria-pressed="true"]{background:#27476c;color:#e6f6ff}
html[data-theme="dark"] .auth-form label,html[data-theme="dark"] .auth-form-nested label{color:#b9d0e9}
html[data-theme="dark"] .auth-form input,html[data-theme="dark"] .auth-form-nested input{background:#11243a;color:#f5f9ff;border-color:#41648a}
html[data-theme="dark"] .auth-form input:disabled,html[data-theme="dark"] .auth-form-nested input:disabled{background:#1d2a39}
html[data-theme="dark"] .auth-dismiss{background:#1d3552;color:#cce4ff;border-color:#41648a}
@media(max-width:1250px){.primary-nav{gap:clamp(12px,1.3vw,21px)}.header-inner{gap:11px}.brand{min-width:225px}}
@media(max-width:1100px){.sign-in-cta,.nav-cta{display:none}.header-actions{gap:8px}}
@media(max-width:1000px){.mobile-auth-link{display:block;width:100%;padding:13px 14px;border:0;border-radius:9px;background:#173a5a;color:#d6eaff;text-align:left;font-size:14px}.mobile-auth-link+ .mobile-auth-link{margin-top:5px;background:#0b78e3;color:#fff} html[data-theme="light"] .mobile-auth-link{background:#dcecff;color:#0b4e93} html[data-theme="light"] .mobile-auth-link+ .mobile-auth-link{background:#177de5;color:#fff}}
@media(max-width:600px){.brand{min-width:0}.theme-toggle{width:35px;height:35px;border-radius:9px}.cube-workspace{font-size:9px;letter-spacing:1px}.face-inner .cube-caption{font-size:7px;line-height:1.25}.auth-shell{padding:28px 22px 22px}.auth-shell h2{font-size:26px}.auth-dialog{max-height:94dvh;max-width:calc(100vw - 20px)}.auth-eyebrow{margin-top:16px}}
@media(max-width:380px){.header-actions{gap:5px}.brand-copy small{display:none}.lang-button{padding:5px 0}.auth-shell{padding:22px 17px 18px}.auth-view-switch button{font-size:12px}.face-inner .cube-caption{display:block;font-size:6px}.cube-workspace{font-size:8px}}
/* Keep back-facing glass planes from occluding the branded front. */
.cube-face{backface-visibility:hidden}
.face-front .face-inner{color:#f4fbff}
html[data-theme="light"] .investor-content{min-width:0}
html[data-theme="light"] .investor-cta{max-width:100%;white-space:normal;overflow-wrap:anywhere;text-align:center}
@media(max-width:600px){.investor-content{min-width:0}.investor-cta{max-width:100%;white-space:normal;overflow-wrap:anywhere;text-align:center}.investor-cta span{min-width:0}}
@media(min-width:1001px) and (max-width:1100px){.sign-in-cta{display:inline-flex;min-height:40px;padding:0 10px;font-size:12px}.header-inner{gap:9px}.primary-nav{gap:12px}.header-actions{gap:6px}}
@media(min-width:1101px) and (max-width:1480px){.brand{min-width:220px}.header-inner{gap:10px}.primary-nav{gap:clamp(10px,1.25vw,20px)}.header-actions{gap:8px}.nav-cta{min-width:138px;padding:0 13px}.sign-in-cta{padding-inline:12px}}
/* filter on preserve-3d parent flattens all child planes in Chromium. */
html[data-theme="light"] .cube-3d{filter:none}
html[data-theme="light"] .primary-nav{background:transparent;border:0;box-shadow:none}
@media(max-width:1000px){html[data-theme="light"] .primary-nav{background:#fffaf7;border:1px solid #c0d9f2;box-shadow:0 15px 40px #32679726}}

/* CASI Search is a catalog product, not an extra orbit tile that obscures the hero cube. */
.tile-search:hover{border-color:#42b9ff}
.tile-search .tile-icon{color:#32b9ff}
