.modern-header{top:14px;margin:0 auto;width:min(1248px,calc(100% - 32px));border:1px solid rgba(110,82,155,.16);border-radius:24px;background:rgba(255,255,255,.94)!important;box-shadow:0 14px 42px rgba(47,31,76,.10);backdrop-filter:blur(20px)}
.modern-header .header-inner{height:66px!important;padding:0 24px!important}.modern-header .brand{color:#171322}.modern-header .brand-symbol{background:linear-gradient(135deg,#7c3aed,#9b5cff);clip-path:none;border-radius:12px;box-shadow:0 10px 24px rgba(124,58,237,.25)}
.mega-nav{gap:10px!important}.mega-nav>a,.nav-trigger{border:0;background:transparent;color:#3e3948!important;padding:11px 13px!important;border-radius:12px;font:700 14px/1 Inter,Arial,sans-serif;cursor:pointer}.mega-nav>a:hover,.nav-trigger:hover,.mega-nav>a.active{background:#f5efff;color:#7138dc!important}.nav-group{position:relative}.nav-trigger span{font-size:16px;margin-left:5px}.mega-menu{position:absolute;left:50%;top:calc(100% + 17px);width:min(790px,calc(100vw - 42px));transform:translate(-50%,10px);display:grid;grid-template-columns:1fr 1fr .8fr;gap:22px;padding:24px;border:1px solid #e8e0f0;border-radius:20px;background:#fff;box-shadow:0 28px 70px rgba(42,28,65,.16);opacity:0;visibility:hidden;transition:.2s;z-index:80}.nav-group.open .mega-menu,.nav-group:hover .mega-menu{opacity:1;visibility:visible;transform:translate(-50%,0)}.mega-menu section{display:grid;gap:8px}.mega-menu h3{padding:0 8px 9px;margin:0 0 4px!important;border-bottom:1px solid #eee7f3;color:#5b21b6;font-size:14px!important}.mega-menu section>a{display:flex;gap:11px;padding:10px 8px;border-radius:13px}.mega-menu section>a:hover{background:#faf7ff}.mega-menu i{display:grid;place-items:center;flex:0 0 34px;height:34px;border-radius:11px;background:#f2e9ff;color:#7c3aed;font-style:normal;font-weight:900}.mega-menu b,.mega-menu small{display:block}.mega-menu b{color:#211b2b;font-size:14px}.mega-menu small{margin-top:4px;color:#756d80;font-size:11px;line-height:1.35}.mega-menu aside{padding:20px;border-radius:16px;background:linear-gradient(145deg,#f5edff,#fcfaff);display:flex;flex-direction:column;justify-content:center}.mega-menu aside span{color:#7c3aed;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.mega-menu aside strong{margin:10px 0 18px;color:#21172e;font-size:18px;line-height:1.25}.mega-menu aside a{color:#7138dc;font-size:13px;font-weight:900}.header-cta{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 18px;border-radius:13px;background:linear-gradient(135deg,#7c3aed,#9333ea);color:#fff!important;font-size:13px;font-weight:900;box-shadow:0 10px 24px rgba(124,58,237,.24)}
@media(max-width:860px){.modern-header{top:8px;border-radius:19px}.modern-header .header-inner{height:64px!important;min-height:64px!important;padding:0 14px!important}.modern-header .menu-toggle{order:3;border-color:#e5d9ef;background:#f9f5ff}.modern-header .menu-toggle span{background:#392d45}.modern-header .header-actions{margin-left:auto!important}.modern-header .header-cta{display:none}.modern-header .mega-nav{display:none;position:absolute;left:0;right:0;top:72px;padding:12px;background:#fff;border:1px solid #eadff2;border-radius:18px;box-shadow:0 20px 50px rgba(42,28,65,.16);flex-direction:column;align-items:stretch!important}.menu-open .modern-header .mega-nav{display:flex}.mega-nav>a,.nav-trigger{width:100%;text-align:left}.mega-menu{position:static;width:100%;transform:none!important;grid-template-columns:1fr;padding:12px;margin-top:8px;box-shadow:none;display:none;opacity:1;visibility:visible}.nav-group.open .mega-menu{display:grid}.mega-menu aside{display:none}.modern-header .admin-link{display:inline-flex!important}}

/* Identidade HexaDev: claro principal, roxo e lilás, sem vermelho */
:root{
  --red:#7c3aed!important;--red-2:#6d28d9!important;--ink:#191525!important;
  --muted:#6f687b!important;--soft:#f8f5fc!important;--line:#e8e0ef!important;
  --dark:#17121f!important;--shadow:0 24px 70px rgba(73,48,101,.12)!important;
  color-scheme:light;
}

/* =========================================================
   PADRÃO GLOBAL DE TÍTULOS + RESPONSIVIDADE ANDROID / IOS
   ========================================================= */
html{
  width:100%;
  max-width:100%;
  overflow-x:hidden;
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
  -webkit-tap-highlight-color:transparent;
}
body{
  width:100%;
  max-width:100%;
  min-width:0;
  overflow-x:clip;
  overscroll-behavior-x:none;
}

img,svg,video,canvas,picture,iframe{
  max-width:100%;
}
img,video,canvas,picture{
  height:auto;
}
main,section,article,aside,header,footer,nav,
.wrap,.split,.section-head,.large-dark,.cta-wide,
.method-heading,.method-timeline,.services-showcase-grid,
.clean-grid,.service-grid,.process-line,.timeline,
.mission-layout,.mission-options,.mission-console{
  min-width:0;
  max-width:100%;
  box-sizing:border-box;
}
pre,code,.table-wrap,.code-editor,.editor-code{
  max-width:100%;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
}
input,select,textarea,button{
  max-width:100%;
  box-sizing:border-box;
}
.float-wa{
  right:max(16px,env(safe-area-inset-right));
  bottom:max(16px,env(safe-area-inset-bottom));
}

@media(max-width:860px){
  .wrap{
    width:calc(100% - 32px)!important;
    max-width:100%!important;
    margin-inline:auto!important;
  }
  .split,.section-head,.large-dark,.cta-wide,.method-heading,.mission-layout{
    grid-template-columns:minmax(0,1fr)!important;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:20px!important;
  }
  .clean-grid,.service-grid,.services-showcase-grid{
    grid-template-columns:minmax(0,1fr)!important;
  }
  .hero-home,.sub-hero,.page-section,.mission-hero{
    padding-left:0!important;
    padding-right:0!important;
  }
  .hero-actions,.maintenance-popup-actions,.mission-modal-actions{
    flex-wrap:wrap!important;
  }
  .hero-actions>*{
    max-width:100%;
  }
  input,select,textarea{
    font-size:16px!important;
  }
  .wormhole-deck{
    width:100%!important;
    max-width:100%!important;
  }
  .wormhole-deck>.wormhole-card{
    max-width:calc(100vw - 48px)!important;
  }
  .lab-modal-card,.maintenance-popup-card,.mission-modal>section,.wormhole-dialog{
    width:calc(100vw - 24px)!important;
    max-width:calc(100vw - 24px)!important;
    max-height:calc(100dvh - 24px)!important;
    overflow:auto!important;
    -webkit-overflow-scrolling:touch;
  }
}

@media(max-width:520px){
  .wrap{
    width:calc(100% - 20px)!important;
  }
  .modern-header{
    width:calc(100% - 16px)!important;
    margin-inline:auto!important;
  }
  .modern-header .header-inner{
    padding-inline:10px!important;
  }
  .modern-header .brand{
    min-width:0!important;
    padding-inline:8px!important;
  }
  .modern-header .brand-text{
    font-size:18px!important;
  }
  .modern-header .admin-link{
    display:none!important;
  }
  .modern-header .header-actions{
    flex:0 0 auto!important;
  }
  .modern-header .mega-nav{
    left:8px!important;
    right:8px!important;
    width:auto!important;
    max-height:calc(100dvh - 94px)!important;
    overflow-y:auto!important;
    -webkit-overflow-scrolling:touch;
  }
  .page-section,.sub-hero,.hero-home,.mission-hero{
    padding-top:42px!important;
    padding-bottom:42px!important;
  }
  .service-card,.method-card,.clean-card,.service-tile,.timeline-item{
    max-width:100%!important;
  }
  .float-wa{
    right:max(10px,env(safe-area-inset-right));
    bottom:max(10px,env(safe-area-inset-bottom));
  }
}

/* HexaDocs: mantém títulos e descrições dos cards inferiores dentro do espaço. */
.docs-page .solutions-track h3{
  font-size:10px!important;
  line-height:1.15!important;
  white-space:nowrap!important;
}
.docs-page .solutions-track p{
  font-size:10px!important;
  line-height:1.3!important;
}
.docs-page .solutions-track span{
  margin-top:7px!important;
  padding:2px 5px!important;
  font-size:7px!important;
  line-height:1.1!important;
}

/* Menu móvel compartilhado: Android e iOS, em todas as páginas. */
@media(max-width:860px){
  body.menu-open{
    overflow:hidden!important;
  }
  .modern-header{
    z-index:10020!important;
    overflow:visible!important;
  }
  .modern-header .menu-toggle{
    position:relative!important;
    z-index:10023!important;
    display:flex!important;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:5px;
    width:42px!important;
    height:42px!important;
    min-width:42px!important;
    padding:0!important;
    touch-action:manipulation;
    -webkit-appearance:none;
    appearance:none;
  }
  .modern-header .menu-toggle span{
    display:block!important;
    width:19px!important;
    height:2px!important;
    margin:0!important;
    transition:transform .22s ease,opacity .18s ease;
  }
  .menu-open .modern-header .menu-toggle span:nth-child(1){transform:translateY(7px) rotate(45deg)}
  .menu-open .modern-header .menu-toggle span:nth-child(2){opacity:0}
  .menu-open .modern-header .menu-toggle span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
  .menu-open .modern-header .mega-nav{
    position:absolute!important;
    z-index:10022!important;
    top:72px!important;
    left:0!important;
    right:0!important;
    display:flex!important;
    width:100%!important;
    max-width:none!important;
    max-height:calc(100dvh - 92px)!important;
    padding:12px!important;
    overflow-y:auto!important;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
    transform:none!important;
  }
  .modern-header .nav-trigger{
    min-height:44px;
    touch-action:manipulation;
  }
  .modern-header .nav-group.open>.mega-menu{
    display:grid!important;
    position:static!important;
    width:100%!important;
    max-width:100%!important;
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
    transform:none!important;
  }
  .modern-header .mega-nav a{
    touch-action:manipulation;
  }
}

@media(max-width:380px){
  .modern-header .brand-text{
    display:none!important;
  }
  .modern-header .brand{
    width:48px!important;
    justify-content:center!important;
  }
}

@media(orientation:landscape) and (max-height:520px){
  .modern-header .mega-nav{
    max-height:calc(100dvh - 82px)!important;
  }
  .lab-modal-card,.maintenance-popup-card,.mission-modal>section,.wormhole-dialog{
    max-height:calc(100dvh - 16px)!important;
  }
}
html,body{background:#fff!important;color:var(--ink)!important}
body{background:radial-gradient(circle at 82% 8%,rgba(139,92,246,.09),transparent 28%),linear-gradient(180deg,#fff 0%,#fdfcff 100%)!important}
.modern-header{background:rgba(255,255,255,.94)!important;border-color:#e8e0ef!important}
.brand,.brand-text,.mega-nav>a,.nav-trigger,.admin-link{color:#2e2838!important}.brand-text span{color:#7c3aed!important}
.theme-toggle{width:42px;height:42px;display:grid;place-items:center;border:1px solid #e6dcef;border-radius:13px;background:#faf7fe;color:#6d28d9;cursor:pointer;font-size:18px;transition:.2s}.theme-toggle:hover{transform:translateY(-1px);background:#f2eaff}.theme-moon{display:none}
.hero-home,.sub-hero,.process-home,.page-section,.page-section.alt,.final-cta,.trust-strip{background:transparent!important;color:#191525!important;border-color:#e8e0ef!important}
.hero-home{background:radial-gradient(circle at 78% 28%,rgba(139,92,246,.13),transparent 30%),linear-gradient(180deg,#fff,#fbf9fe)!important}
h1,h2,h3,.section-head,.timeline-item,.proof-row{color:#191525!important}p,.muted,.lead{color:#6f687b!important}
.eyebrow,.step b{color:#7c3aed!important}.eyebrow:before{background:#8b5cf6!important}
.btn,.cta{background:linear-gradient(135deg,#7c3aed,#9333ea)!important;border-color:#7c3aed!important;box-shadow:0 16px 34px rgba(124,58,237,.20)!important;color:#fff!important}
.btn.outline{background:#fff!important;color:#2e2838!important;border-color:#ded5e7!important;box-shadow:none!important}
.product-stage:before{background:linear-gradient(145deg,#f4edff,#fff)!important;border-color:#e5daee!important;box-shadow:0 28px 75px rgba(73,48,101,.12)!important}
.product-screen,.metric,.chart,.clean-card,.quote-box,.cta-wide,.large-dark,.sub-visual{background:#fff!important;color:#191525!important;border-color:#e6deec!important;box-shadow:0 20px 55px rgba(67,45,90,.10)!important}
.screen-top{background:#f8f4fc!important;color:#2a2433!important;border-bottom:1px solid #e8e0ef!important}.screen-side{background:#f6f1fb!important}.side-line{background:#ddd2e8!important}.side-line:nth-child(2),.dot:first-child{background:#8b5cf6!important}
.mini-card{background:#fff!important;color:#241d2e!important;border:1px solid #e4dbea!important;box-shadow:0 22px 55px rgba(67,45,90,.14)!important}.mini-card strong{color:#6d28d9!important}.mini-card span{color:#756d80!important}
.dark-services{background:#f8f5fc!important;color:#191525!important;border-color:#e8e0ef!important}.dark-services p{color:#6f687b!important}.service-grid{background:#e8e0ef!important;border-color:#e8e0ef!important}.service-tile{background:#fff!important;color:#191525!important}.service-tile:hover{background:#faf7fe!important}.service-icon,.clean-card .ico{background:#f1e8ff!important;color:#7c3aed!important}
.large-dark,.cta-panel{background:linear-gradient(135deg,#f3ebff,#fbf9ff)!important;color:#191525!important}.large-dark p,.cta-panel p{color:#6f687b!important}.cta-wide:after,.cta-panel:after{color:#756d80!important}
.site-footer{background:#faf8fd!important;color:#241d2e!important;border-color:#e8e0ef!important}.footer-grid a,.footer-copy{color:#756d80!important}.footer-copy{border-color:#e8e0ef!important}

/* Tema escuro opcional */
html[data-theme="dark"]{--ink:#f7f4fb!important;--muted:#b9b0c3!important;--soft:#17131d!important;--line:rgba(255,255,255,.11)!important;color-scheme:dark}
html[data-theme="dark"] body{background:radial-gradient(circle at 80% 8%,rgba(124,58,237,.16),transparent 28%),#0d0a12!important;color:#f7f4fb!important}
html[data-theme="dark"] .modern-header{background:rgba(20,16,26,.94)!important;border-color:rgba(255,255,255,.11)!important}
html[data-theme="dark"] .brand,html[data-theme="dark"] .brand-text,html[data-theme="dark"] .mega-nav>a,html[data-theme="dark"] .nav-trigger,html[data-theme="dark"] .admin-link{color:#f7f4fb!important}
html[data-theme="dark"] .theme-toggle{background:#211a2b;border-color:#3b3048;color:#d8b4fe}html[data-theme="dark"] .theme-sun{display:none}html[data-theme="dark"] .theme-moon{display:inline}
html[data-theme="dark"] .mega-menu{background:#17121f;border-color:#382e44}html[data-theme="dark"] .mega-menu h3,html[data-theme="dark"] .mega-menu b{color:#f7f4fb!important}html[data-theme="dark"] .mega-menu small{color:#b9b0c3!important}html[data-theme="dark"] .mega-menu section>a:hover{background:#211a2b}html[data-theme="dark"] .mega-menu aside{background:linear-gradient(145deg,#261b34,#17121f)}
html[data-theme="dark"] .hero-home,html[data-theme="dark"] .sub-hero,html[data-theme="dark"] .process-home,html[data-theme="dark"] .page-section,html[data-theme="dark"] .page-section.alt,html[data-theme="dark"] .final-cta,html[data-theme="dark"] .trust-strip{background:transparent!important;color:#f7f4fb!important}
html[data-theme="dark"] h1,html[data-theme="dark"] h2,html[data-theme="dark"] h3,html[data-theme="dark"] .section-head,html[data-theme="dark"] .timeline-item,html[data-theme="dark"] .proof-row{color:#f7f4fb!important}html[data-theme="dark"] p,html[data-theme="dark"] .lead{color:#b9b0c3!important}
html[data-theme="dark"] .product-stage:before,html[data-theme="dark"] .product-screen,html[data-theme="dark"] .metric,html[data-theme="dark"] .chart,html[data-theme="dark"] .clean-card,html[data-theme="dark"] .quote-box,html[data-theme="dark"] .cta-wide,html[data-theme="dark"] .large-dark,html[data-theme="dark"] .sub-visual,html[data-theme="dark"] .mini-card,html[data-theme="dark"] .cta-panel{background:linear-gradient(145deg,#1b1622,#120e18)!important;color:#f7f4fb!important;border-color:rgba(255,255,255,.11)!important;box-shadow:0 24px 65px rgba(0,0,0,.28)!important}
html[data-theme="dark"] .dark-services{background:#120e18!important;color:#f7f4fb!important}html[data-theme="dark"] .service-grid{background:#352b40!important;border-color:#352b40!important}html[data-theme="dark"] .service-tile{background:#18131f!important;color:#f7f4fb!important}html[data-theme="dark"] .service-tile:hover{background:#211a2b!important}
html[data-theme="dark"] .site-footer{background:#0d0a12!important;color:#f7f4fb!important;border-color:rgba(255,255,255,.10)!important}html[data-theme="dark"] .btn.outline{background:transparent!important;color:#f7f4fb!important;border-color:#463951!important}
@media(max-width:860px){html[data-theme="dark"] .modern-header .mega-nav{background:#17121f;border-color:#382e44}.theme-toggle{width:40px;height:40px}.modern-header .header-actions{gap:7px!important}}

/* Tipografia compacta em todas as páginas */
body,p,.lead,.muted,.nav-menu,.mega-menu,.btn,.cta,.header-cta,.admin-link,.proof-row,.footer-grid,.footer-copy{font-size:15px!important}
h1{font-size:clamp(34px,4.1vw,54px)!important;line-height:1.04!important;letter-spacing:-.045em!important;max-width:720px}
h2{font-size:clamp(25px,2.8vw,38px)!important;line-height:1.1!important;letter-spacing:-.035em!important}
h3{font-size:18px!important;line-height:1.25!important;letter-spacing:-.02em!important}
.eyebrow,.trust-label{font-size:11px!important}.hero-home .lead,.sub-hero .lead{font-size:15px!important;line-height:1.65!important;max-width:620px}.mega-menu small{font-size:11px!important}
.hero-home{padding-top:64px!important}.hero-home .split{gap:48px!important}.hero-actions{margin-top:22px!important}.proof-row{margin-top:22px!important;gap:22px!important}.product-stage{min-height:450px!important}

/* Vermelho e preto exclusivamente na marca */
.brand{color:#111116!important}.brand-text{color:#111116!important}.brand-text span{color:#e30613!important}.brand-symbol{background:linear-gradient(135deg,#111116,#26232b)!important;color:#fff!important;box-shadow:0 10px 24px rgba(227,6,19,.18)!important;position:relative}.brand-symbol:after{content:"";position:absolute;width:7px;height:7px;right:-2px;top:-2px;border-radius:50%;background:#e30613}
html[data-theme="dark"] .brand,html[data-theme="dark"] .brand-text{color:#111116!important}html[data-theme="dark"] .modern-header .brand{background:#fff;border-radius:12px;padding:5px 9px 5px 5px}
@media(max-width:700px){h1{font-size:clamp(30px,10vw,42px)!important}h2{font-size:clamp(23px,7vw,32px)!important}.hero-home{padding-top:46px!important}.product-stage{min-height:390px!important}}


/* Aviso automático de manutenção */
.maintenance-popup{position:fixed;inset:0;z-index:300;display:none;align-items:center;justify-content:center;padding:20px}.maintenance-popup.is-open{display:flex}.maintenance-popup-backdrop{position:absolute;inset:0;background:rgba(32,24,41,.58);backdrop-filter:blur(10px)}.maintenance-popup-card{position:relative;z-index:1;width:min(510px,100%);padding:34px;border:1px solid #e4daec;border-radius:26px;background:#fff;color:#211a2b;box-shadow:0 36px 110px rgba(45,30,61,.28);text-align:center;animation:maintenanceIn .28s ease both}.maintenance-popup-close{position:absolute;right:16px;top:16px;width:38px;height:38px;border:1px solid #e1d7e9;border-radius:12px;background:#f8f4fb;color:#32293d;font-size:24px;line-height:1;cursor:pointer}.maintenance-popup-icon{width:64px;height:64px;margin:0 auto 18px;display:grid;place-items:center;border-radius:20px;background:linear-gradient(135deg,#7c3aed,#a855f7);color:#fff;font-size:28px;box-shadow:0 16px 35px rgba(124,58,237,.24)}.maintenance-popup-label{display:block;color:#7c3aed;font-size:11px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}.maintenance-popup-card h2{margin:10px 0 12px!important;color:#211a2b!important;font-size:30px!important}.maintenance-popup-card p{max-width:420px;margin:0 auto;color:#716879!important;font-size:15px!important;line-height:1.6}.maintenance-popup-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:24px}.maintenance-popup-actions .btn{min-height:46px!important;font-size:13px!important}@keyframes maintenanceIn{from{opacity:0;transform:translateY(18px) scale(.97)}to{opacity:1;transform:none}}
html[data-theme="dark"] .maintenance-popup-backdrop{background:rgba(0,0,0,.72)}html[data-theme="dark"] .maintenance-popup-card{background:#141019;color:#f7f4fb;border-color:#3c3048;box-shadow:0 36px 110px rgba(0,0,0,.56)}html[data-theme="dark"] .maintenance-popup-card h2{color:#f7f4fb!important}html[data-theme="dark"] .maintenance-popup-card p{color:#b9b0c3!important}html[data-theme="dark"] .maintenance-popup-close{background:#211a29;color:#fff;border-color:#453750}
@media(max-width:560px){.maintenance-popup{padding:12px}.maintenance-popup-card{padding:30px 20px 22px;border-radius:20px}.maintenance-popup-card h2{font-size:25px!important}.maintenance-popup-actions{display:grid}.maintenance-popup-actions .btn{width:100%!important}}

/* Núcleo Digital HexaDev — hero totalmente animado */
.hexa-lab{--rx:0deg;--ry:0deg;position:relative!important;min-height:500px!important;isolation:isolate;perspective:1000px;transform-style:preserve-3d;overflow:visible}.hexa-lab:before{display:none!important}.lab-grid{position:absolute;inset:9% 3% 4%;border-radius:42px;background-image:linear-gradient(rgba(124,58,237,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(124,58,237,.055) 1px,transparent 1px);background-size:28px 28px;mask-image:radial-gradient(ellipse,black 20%,transparent 72%);transform:rotateX(62deg) translateY(26%);animation:gridDrift 12s linear infinite}.lab-glow{position:absolute;left:50%;top:50%;width:68%;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,rgba(124,58,237,.20),rgba(167,139,250,.07) 38%,transparent 68%);transform:translate(-50%,-50%);filter:blur(8px);animation:labPulse 4s ease-in-out infinite}.hexa-core-wrap{position:absolute;z-index:8;left:50%;top:50%;width:190px;height:235px;transform:translate(-50%,-48%) rotateX(var(--rx)) rotateY(var(--ry));transform-style:preserve-3d;transition:transform .18s ease-out}.hexa-core{position:absolute;left:50%;top:42%;width:164px;height:164px;transform:translate(-50%,-50%) rotate(30deg);clip-path:polygon(25% 4%,75% 4%,98% 50%,75% 96%,25% 96%,2% 50%);background:linear-gradient(145deg,#08070b,#27222d 48%,#070609);box-shadow:0 28px 50px rgba(32,18,43,.28),inset 0 0 0 5px #19151e;animation:coreFloat 4s ease-in-out infinite}.hexa-core:before{content:"";position:absolute;inset:14px;clip-path:inherit;background:linear-gradient(145deg,#e30613,#68020a 38%,#161119 65%);box-shadow:inset 0 0 0 5px #ff3947,0 0 28px rgba(227,6,19,.48);animation:coreEnergy 2.4s ease-in-out infinite}.hexa-core:after{content:"";position:absolute;inset:25px;clip-path:inherit;background:linear-gradient(145deg,#241b29,#08070b)}.hexa-core span{position:absolute;z-index:2;left:50%;top:50%;transform:translate(-50%,-50%) rotate(-30deg);font-size:64px;font-weight:950;color:#fff;text-shadow:0 0 28px rgba(255,255,255,.55)}.hexa-core b{position:absolute;z-index:3;inset:0;clip-path:inherit;background:linear-gradient(110deg,transparent 26%,rgba(255,255,255,.16) 45%,transparent 60%);animation:coreShine 3.5s linear infinite}.core-platform{position:absolute;left:50%;bottom:0;width:155px;height:34px;border:3px solid rgba(124,58,237,.50);border-radius:50%;transform:translateX(-50%) rotateX(68deg);background:radial-gradient(ellipse,rgba(124,58,237,.26),transparent 62%);box-shadow:0 0 22px #8b5cf6,0 0 55px rgba(124,58,237,.30);animation:platformPulse 2s ease-in-out infinite}.orbit{position:absolute;z-index:7;left:50%;top:47%;border:2px solid rgba(124,58,237,.28);border-radius:50%;transform-style:preserve-3d;pointer-events:none}.orbit-one{width:390px;height:130px;margin:-65px 0 0 -195px;transform:rotate(-13deg);animation:orbitSpin 8s linear infinite}.orbit-two{width:330px;height:110px;margin:-55px 0 0 -165px;transform:rotate(64deg);animation:orbitSpinReverse 10s linear infinite}.orbit-three{width:430px;height:155px;margin:-78px 0 0 -215px;transform:rotate(26deg);animation:orbitSpin 14s linear infinite}.orbit i{position:absolute;width:12px;height:12px;border-radius:50%;background:#8b5cf6;box-shadow:0 0 18px #8b5cf6}.orbit i:nth-child(1){left:8%;top:44%}.orbit i:nth-child(2){right:12%;top:23%;background:#e30613;box-shadow:0 0 18px rgba(227,6,19,.70)}.orbit i:nth-child(3){left:55%;bottom:-5px;background:#d8b4fe}.tech-panel{position:absolute;z-index:10;border:1px solid rgba(124,58,237,.22);border-radius:16px;background:rgba(255,255,255,.74);box-shadow:0 18px 45px rgba(54,33,73,.13);backdrop-filter:blur(13px);color:#282130;transition:transform .25s ease,box-shadow .25s ease;overflow:hidden}.tech-panel:hover{transform:translateY(-5px) scale(1.025)!important;box-shadow:0 25px 60px rgba(80,46,111,.20)}.code-panel{left:-2%;top:8%;width:235px;min-height:174px;transform:rotateY(7deg);animation:panelFloatA 5s ease-in-out infinite}.code-panel header{height:34px;display:flex;align-items:center;gap:5px;padding:0 10px;border-bottom:1px solid rgba(124,58,237,.14);font-size:10px}.code-panel header span{width:6px;height:6px;border-radius:50%;background:#d8d1df}.code-panel header span:first-child{background:#e30613}.code-panel header b{margin-left:5px}.code-panel pre{margin:0;padding:12px;color:#54465f;font:9px/1.55 Consolas,monospace;white-space:pre-wrap}.code-panel code{font:inherit}.scan-line{position:absolute;left:0;right:0;height:1px;top:35px;background:linear-gradient(90deg,transparent,#8b5cf6,transparent);box-shadow:0 0 10px #8b5cf6;animation:scanPanel 3s linear infinite}.api-panel{right:0;top:7%;width:175px;padding:14px;display:flex;gap:11px;align-items:center;animation:panelFloatB 4.6s ease-in-out infinite}.panel-icon,.floating-chip{display:grid;place-items:center;color:#7c3aed;font-weight:950}.panel-icon{width:40px;height:40px;border-radius:13px;background:#f1e9fb;font-size:22px}.tech-panel b,.tech-panel small{display:block}.tech-panel b{font-size:13px}.tech-panel small{margin-top:3px;color:#746b7c;font-size:9px}.live-status{color:#16804b!important}.live-status i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#20b86a;box-shadow:0 0 9px #20b86a;animation:statusBlink 1.2s infinite}.ai-panel{right:-2%;top:35%;width:180px;padding:14px;display:flex;gap:12px;align-items:center;animation:panelFloatA 5.4s ease-in-out infinite reverse}.neural-orb{position:relative;width:44px;height:44px;border-radius:50%;border:1px solid #9f7aea;background:radial-gradient(circle,#c4b5fd,#7c3aed 48%,transparent 52%);box-shadow:0 0 20px rgba(124,58,237,.35);animation:neuralSpin 5s linear infinite}.neural-orb i{position:absolute;width:6px;height:6px;border-radius:50%;background:#fff;box-shadow:0 0 8px #fff}.neural-orb i:nth-child(1){left:4px;top:16px}.neural-orb i:nth-child(2){right:5px;top:7px}.neural-orb i:nth-child(3){right:7px;bottom:5px}.db-panel{left:0;bottom:8%;width:190px;padding:14px;display:flex;gap:12px;align-items:center;animation:panelFloatB 5.8s ease-in-out infinite reverse}.db-stack{width:42px;height:48px;position:relative}.db-stack i{position:absolute;left:0;width:42px;height:15px;border:2px solid #8b5cf6;border-radius:50%;background:rgba(124,58,237,.08);box-shadow:0 0 10px rgba(124,58,237,.18);animation:dbPulse 1.8s ease-in-out infinite}.db-stack i:nth-child(1){top:0}.db-stack i:nth-child(2){top:12px;animation-delay:.2s}.db-stack i:nth-child(3){top:24px;animation-delay:.4s}.db-bars{height:16px;display:flex!important;gap:2px;align-items:end;margin-top:6px}.db-bars i{display:block;width:4px;background:#8b5cf6;border-radius:2px;animation:barWave 1.1s ease-in-out infinite}.db-bars i:nth-child(1){height:6px}.db-bars i:nth-child(2){height:12px;animation-delay:.15s}.db-bars i:nth-child(3){height:9px;animation-delay:.3s}.db-bars i:nth-child(4){height:15px;animation-delay:.45s}.db-bars i:nth-child(5){height:8px;animation-delay:.6s}.floating-chip{position:absolute;z-index:9;width:48px;height:48px;border:1px solid rgba(124,58,237,.22);border-radius:15px;background:rgba(255,255,255,.76);box-shadow:0 14px 35px rgba(57,35,75,.13);backdrop-filter:blur(10px);font-size:18px}.chip-code{left:25%;bottom:2%;animation:chipFloat 4s ease-in-out infinite}.chip-shield{right:18%;bottom:5%;animation:chipFloat 4.7s ease-in-out infinite reverse}.chip-cloud{left:43%;top:1%;animation:chipFloat 5.2s ease-in-out infinite}.lab-particle{position:absolute;z-index:6;width:9px;height:9px;border-radius:50%;background:#8b5cf6;box-shadow:0 0 16px #8b5cf6;animation:particleFloat 5s ease-in-out infinite}.lab-particle.p1{left:18%;top:40%}.lab-particle.p2{right:24%;top:22%;animation-delay:-1s;background:#e30613}.lab-particle.p3{right:12%;bottom:25%;animation-delay:-2s}.lab-particle.p4{left:32%;top:15%;animation-delay:-3s}.lab-particle.p5{left:20%;bottom:28%;animation-delay:-4s;background:#e30613}.lab-particle.p6{right:35%;bottom:8%;animation-delay:-2.5s}@keyframes gridDrift{to{background-position:56px 56px}}@keyframes labPulse{50%{transform:translate(-50%,-50%) scale(1.12);opacity:.72}}@keyframes coreFloat{50%{transform:translate(-50%,-58%) rotate(30deg)}}@keyframes coreEnergy{50%{filter:brightness(1.35)}}@keyframes coreShine{from{transform:translateX(-100%)}to{transform:translateX(100%)}}@keyframes platformPulse{50%{transform:translateX(-50%) rotateX(68deg) scale(1.15);opacity:.65}}@keyframes orbitSpin{to{transform:rotate(347deg)}}@keyframes orbitSpinReverse{to{transform:rotate(-296deg)}}@keyframes panelFloatA{50%{transform:translateY(-9px) rotateY(7deg)}}@keyframes panelFloatB{50%{transform:translateY(8px)}}@keyframes scanPanel{from{transform:translateY(0)}to{transform:translateY(138px)}}@keyframes statusBlink{50%{opacity:.25}}@keyframes neuralSpin{to{transform:rotate(360deg)}}@keyframes dbPulse{50%{border-color:#c4b5fd;transform:scaleX(1.08)}}@keyframes barWave{50%{height:4px}}@keyframes chipFloat{50%{transform:translateY(-11px) rotate(5deg)}}@keyframes particleFloat{50%{transform:translate(10px,-16px) scale(1.35);opacity:.45}}
html[data-theme="dark"] .tech-panel,html[data-theme="dark"] .floating-chip{background:rgba(20,16,26,.78);color:#f7f4fb;border-color:#443651;box-shadow:0 18px 48px rgba(0,0,0,.28)}html[data-theme="dark"] .tech-panel small{color:#b9b0c3}html[data-theme="dark"] .code-panel pre{color:#d5c9df}html[data-theme="dark"] .panel-icon{background:#241a30;color:#c4b5fd}html[data-theme="dark"] .lab-grid{background-image:linear-gradient(rgba(167,139,250,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(167,139,250,.08) 1px,transparent 1px)}
@media(max-width:980px){.hexa-lab{min-height:490px!important}.code-panel{left:2%}.api-panel{right:2%}.ai-panel{right:1%}.db-panel{left:2%}}
@media(max-width:600px){.hexa-lab{min-height:430px!important;transform:scale(.94)}.hexa-core-wrap{transform:translate(-50%,-45%) scale(.78)}.orbit-one{transform:rotate(-13deg) scale(.78)}.orbit-two{transform:rotate(64deg) scale(.78)}.orbit-three{transform:rotate(26deg) scale(.78)}.code-panel{width:165px;min-height:130px;top:3%;left:0}.code-panel pre{font-size:7px;padding:8px}.api-panel{width:132px;right:0;top:5%;padding:9px}.ai-panel{width:145px;right:0;top:39%;padding:9px}.db-panel{width:148px;left:0;bottom:4%;padding:9px}.chip-cloud{display:none}.floating-chip{width:38px;height:38px}.chip-code{left:36%}.chip-shield{right:24%}}
@media(prefers-reduced-motion:reduce){.hexa-lab *{animation:none!important}.hexa-core-wrap{transform:translate(-50%,-48%)!important}}

/* Camada avançada: painéis extras, telemetria e conexões vivas */
.lab-connections{position:absolute;z-index:4;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}.lab-connections path{fill:none;stroke:rgba(124,58,237,.22);stroke-width:1.4;stroke-dasharray:7 9;filter:drop-shadow(0 0 5px rgba(124,58,237,.32));animation:dataTravel 3.4s linear infinite}.lab-connections path:nth-child(2){animation-delay:-.7s}.lab-connections path:nth-child(3){animation-delay:-1.4s}.lab-connections path:nth-child(4){animation-delay:-2.1s}.lab-connections path:nth-child(5){animation-delay:-2.8s}.performance-panel{right:2%;bottom:4%;width:180px;padding:12px;display:flex;align-items:center;gap:11px;animation:panelFloatB 5s ease-in-out infinite}.performance-ring{width:46px;height:46px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:conic-gradient(#8b5cf6 0 98%,#e7dff0 98%);position:relative;animation:performanceSpin 3s ease-in-out infinite}.performance-ring:before{content:"";position:absolute;inset:5px;border-radius:50%;background:#fff}.performance-ring strong,.performance-ring span{position:relative;z-index:1}.performance-ring strong{font-size:13px}.performance-ring span{font-size:8px}.performance-line{display:block;width:78px;height:4px;margin-top:7px;border-radius:4px;background:#eee7f3;overflow:hidden}.performance-line i{display:block;width:70%;height:100%;background:linear-gradient(90deg,#7c3aed,#c4b5fd);animation:metricFlow 2s ease-in-out infinite}.security-panel{left:22%;bottom:-1%;width:174px;padding:11px;display:flex;gap:10px;align-items:center;animation:panelFloatA 6.2s ease-in-out infinite}.security-shield{width:40px;height:44px;display:grid;place-items:center;position:relative;clip-path:polygon(50% 0,93% 15%,86% 72%,50% 100%,14% 72%,7% 15%);background:linear-gradient(145deg,#ede9fe,#8b5cf6);color:#fff;font-size:23px}.security-shield i{position:absolute;inset:4px;clip-path:inherit;border:1px solid rgba(255,255,255,.5);animation:shieldPulse 1.8s infinite}.security-code{display:block;margin-top:5px;color:#7c3aed;font:7px Consolas,monospace;letter-spacing:.05em}.pipeline-panel{left:31%;top:1%;width:160px;padding:10px 12px;animation:panelFloatB 6s ease-in-out infinite reverse}.pipeline-flow{height:20px;display:flex;align-items:center;justify-content:space-between;position:relative;margin:5px 0}.pipeline-flow:before{content:"";position:absolute;left:5px;right:5px;height:1px;background:linear-gradient(90deg,#8b5cf6,#e30613,#8b5cf6)}.pipeline-flow i{position:relative;width:8px;height:8px;border-radius:50%;background:#fff;border:2px solid #8b5cf6;animation:pipelineNode 1.6s ease-in-out infinite}.pipeline-flow i:nth-child(2){animation-delay:.2s}.pipeline-flow i:nth-child(3){animation-delay:.4s}.pipeline-flow i:nth-child(4){animation-delay:.6s}.pipeline-flow i:nth-child(5){animation-delay:.8s}.micro-cluster{position:absolute;z-index:8;right:26%;top:12%;width:65px;height:65px;animation:clusterRotate 12s linear infinite}.micro-cluster i{position:absolute;width:23px;height:23px;border:1px solid #9f7aea;background:rgba(255,255,255,.76);box-shadow:0 7px 16px rgba(80,45,105,.12)}.micro-cluster i:nth-child(1){left:21px;top:0}.micro-cluster i:nth-child(2){right:0;top:22px}.micro-cluster i:nth-child(3){left:21px;bottom:0}.micro-cluster i:nth-child(4){left:0;top:22px}.micro-cluster span{position:absolute;inset:21px;display:grid;place-items:center;background:#111116;color:#fff;font-weight:900;font-size:11px;box-shadow:0 0 18px rgba(227,6,19,.38)}.system-hud{position:absolute;z-index:5;display:flex;align-items:center;gap:6px;color:#756d80;font:7px/1 Consolas,monospace;letter-spacing:.12em}.system-hud i{width:5px;height:5px;border-radius:50%;background:#20b86a;box-shadow:0 0 8px #20b86a;animation:statusBlink 1.2s infinite}.hud-top{right:30%;top:0}.hud-bottom{right:32%;bottom:0}.status-changing{opacity:.25;transform:translateY(2px);transition:.18s}.ai-panel small{transition:.18s}.hexa-core-wrap{width:220px!important;height:255px!important}.hexa-core{width:188px!important;height:188px!important}.hexa-core span{font-size:72px!important}.orbit-one{width:430px!important;margin-left:-215px!important}.orbit-two{width:370px!important;margin-left:-185px!important}.orbit-three{width:470px!important;margin-left:-235px!important}.hexa-lab{min-height:540px!important}@keyframes dataTravel{to{stroke-dashoffset:-32}}@keyframes performanceSpin{50%{transform:rotate(12deg) scale(1.05)}}@keyframes metricFlow{50%{width:96%}}@keyframes shieldPulse{50%{opacity:.35;transform:scale(.82)}}@keyframes pipelineNode{50%{background:#8b5cf6;box-shadow:0 0 10px #8b5cf6;transform:scale(1.45)}}@keyframes clusterRotate{to{transform:rotate(360deg)}}
html[data-theme="dark"] .performance-ring:before{background:#18131f}html[data-theme="dark"] .micro-cluster i{background:rgba(22,17,28,.84)}html[data-theme="dark"] .performance-line{background:#362b42}

/* Tema escuro global e rodapé único */
html[data-theme="dark"] main,html[data-theme="dark"] .page-section,html[data-theme="dark"] .page-section.alt,html[data-theme="dark"] .sub-hero{background:transparent!important;color:#f7f4fb!important}
html[data-theme="dark"] .clean-card,html[data-theme="dark"] .feature-card,html[data-theme="dark"] .info-card,html[data-theme="dark"] .tool-card,html[data-theme="dark"] .api-card,html[data-theme="dark"] .code-card,html[data-theme="dark"] .mission-card,html[data-theme="dark"] .stat-card,html[data-theme="dark"] table,html[data-theme="dark"] .table-wrap{background:linear-gradient(145deg,#191320,#110d17)!important;border-color:#3b3048!important;color:#f7f4fb!important;box-shadow:0 20px 55px rgba(0,0,0,.24)!important}
html[data-theme="dark"] input,html[data-theme="dark"] textarea,html[data-theme="dark"] select{background:#15101b!important;border-color:#40334c!important;color:#f7f4fb!important}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#887d91!important}
html[data-theme="dark"] th{background:#201829!important;color:#e9ddf5!important;border-color:#3b3048!important}html[data-theme="dark"] td{color:#c9c0d1!important;border-color:#33293d!important}
html[data-theme="dark"] pre,html[data-theme="dark"] code,html[data-theme="dark"] .code-box{background:#0b090f!important;color:#decdf0!important;border-color:#3b3048!important}
html[data-theme="dark"] .site-footer{background:#0b0810!important;border-top:1px solid rgba(196,181,253,.12)!important;color:#f7f4fb!important;padding:18px 0!important}
html[data-theme="dark"] .footer-copy{margin-top:0!important;padding-top:0!important;border-top:0!important;color:#aaa0b4!important}

/* Laboratório de códigos: tema escuro completo */
html[data-theme="dark"] body.code-lab-page{
  --code-ink:#f7f4fb;
  --code-muted:#b8afc2;
  --code-line:#3a2f46;
  --code-soft:#15101b;
  --code-card:#17121f;
  background:radial-gradient(circle at 82% 6%,rgba(124,58,237,.16),transparent 27%),linear-gradient(180deg,#0d0a12,#100c16 55%,#0b090f)!important;
  color:#f7f4fb!important;
}
html[data-theme="dark"] .code-lab-page .site-header{background:rgba(19,15,25,.94)!important;border-color:#392e45!important;box-shadow:0 14px 45px rgba(0,0,0,.30)!important}
html[data-theme="dark"] .code-lab-page .brand,
html[data-theme="dark"] .code-lab-page .nav-menu a,
html[data-theme="dark"] .code-lab-page .admin-link{color:#f7f4fb!important}
html[data-theme="dark"] .code-lab-page p{color:#b8afc2!important}
html[data-theme="dark"] .code-intro-bar,
html[data-theme="dark"] .architecture-panel,
html[data-theme="dark"] .impact-grid,
html[data-theme="dark"] .code-benefits{
  background:linear-gradient(145deg,#1b1523,#120e18)!important;
  border-color:#3a2f46!important;
  box-shadow:0 18px 48px rgba(0,0,0,.28)!important;
}
html[data-theme="dark"] .code-btn-ghost{background:#1a1422!important;border-color:#58436b!important;color:#d8b4fe!important}
html[data-theme="dark"] .tech-badge,
html[data-theme="dark"] .status-card,
html[data-theme="dark"] .uptime-card,
html[data-theme="dark"] .architecture-flow article,
html[data-theme="dark"] .impact-grid article{
  background:#17121f!important;
  border-color:#3a2f46!important;
  color:#f3edf8!important;
  box-shadow:0 10px 28px rgba(0,0,0,.24)!important;
}
html[data-theme="dark"] .tech-badge:hover,
html[data-theme="dark"] .tech-badge.active{background:#21182c!important;border-color:#8b5cf6!important}
html[data-theme="dark"] .code-editor{background:#100c16!important;border-color:#493858!important;box-shadow:0 28px 70px rgba(0,0,0,.42)!important}
html[data-theme="dark"] .code-tabs{background:#17121f!important;border-color:#3a2f46!important}
html[data-theme="dark"] .code-tabs button{background:#1d1725!important;border-color:#3f324b!important;color:#cbc2d3!important}
html[data-theme="dark"] .code-tabs button:hover{background:#281d34!important;color:#fff!important}
html[data-theme="dark"] .code-tabs button.active{background:linear-gradient(135deg,#6d28d9,#9333ea)!important;color:#fff!important;border-color:transparent!important}
html[data-theme="dark"] .editor-tools{background:#120e18!important;border-color:#33283e!important;color:#8f829b!important}
html[data-theme="dark"] .code-lines{background:linear-gradient(90deg,#120e18 0 44px,#0d0a12 44px)!important;color:#e5dcea!important}
html[data-theme="dark"] .line-no{color:#665c70!important}
html[data-theme="dark"] .tok-key{color:#c4b5fd!important}
html[data-theme="dark"] .tok-fn{color:#60a5fa!important}
html[data-theme="dark"] .tok-str{color:#34d399!important}
html[data-theme="dark"] .tok-var{color:#5eead4!important}
html[data-theme="dark"] .tok-num{color:#fb7185!important}
html[data-theme="dark"] .tok-comment{color:#7d7287!important}
html[data-theme="dark"] .tok-type{color:#e879f9!important}
html[data-theme="dark"] .editor-status{background:#15101b!important;border-color:#33283e!important;color:#aaa0b4!important}
html[data-theme="dark"] .status-card>i,
html[data-theme="dark"] .architecture-flow article i,
html[data-theme="dark"] .impact-grid article i{background:#281d35!important;color:#c4b5fd!important}
html[data-theme="dark"] .status-card small,
html[data-theme="dark"] .uptime-card small,
html[data-theme="dark"] .architecture-flow small{color:#a69bad!important}
html[data-theme="dark"] .status-card em{background:rgba(34,197,94,.13)!important;color:#4ade80!important}
html[data-theme="dark"] .build-terminal{background:#0b090f!important;border-color:#3a2f46!important;box-shadow:0 20px 55px rgba(0,0,0,.32)!important}
html[data-theme="dark"] .build-terminal header{background:#17121f!important;border-color:#3a2f46!important;color:#e9e1ef!important}
html[data-theme="dark"] .code-benefits span{color:#c0b6c8!important;border-color:#3a2f46!important}
html[data-theme="dark"] .code-lab-page .site-footer{background:#0b0810!important;color:#f7f4fb!important;border-color:rgba(196,181,253,.12)!important}
html[data-theme="dark"] .code-lab-page .footer-copy{color:#aaa0b4!important;border-top:0!important}

/* Proteção global contra componentes claros nas demais páginas */
html[data-theme="dark"] main [class*="card"],
html[data-theme="dark"] main [class*="panel"],
html[data-theme="dark"] main [class*="box"]{
  border-color:#3a2f46;
}

/* Cabeçalho escuro: controles uniformes e profissionais */
html[data-theme="dark"] .modern-header .mega-nav>a,
html[data-theme="dark"] .modern-header .nav-trigger{
  border:1px solid transparent!important;
  background:transparent!important;
  color:#d8d0e1!important;
}
html[data-theme="dark"] .modern-header .mega-nav>a:hover,
html[data-theme="dark"] .modern-header .nav-trigger:hover{
  border-color:rgba(167,139,250,.18)!important;
  background:rgba(124,58,237,.10)!important;
  color:#fff!important;
}
html[data-theme="dark"] .modern-header .mega-nav>a.active{
  border-color:rgba(167,139,250,.32)!important;
  background:linear-gradient(145deg,rgba(124,58,237,.25),rgba(124,58,237,.12))!important;
  color:#fff!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.035),0 8px 22px rgba(0,0,0,.20)!important;
}
html[data-theme="dark"] .modern-header .mega-nav>a.active:after{
  background:linear-gradient(90deg,#8b5cf6,#c4b5fd)!important;
  box-shadow:0 0 12px rgba(139,92,246,.75)!important;
}
html[data-theme="dark"] .modern-header .theme-toggle{
  border:1px solid rgba(196,181,253,.22)!important;
  background:linear-gradient(145deg,#211a2b,#17121f)!important;
  color:#c4b5fd!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.025)!important;
}
html[data-theme="dark"] .modern-header .theme-toggle:hover{
  border-color:#8b5cf6!important;
  background:#292034!important;
  color:#fff!important;
  box-shadow:0 0 20px rgba(124,58,237,.22)!important;
}
html[data-theme="dark"] .modern-header .admin-link{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 15px;
  border:1px solid rgba(196,181,253,.18);
  border-radius:13px;
  background:rgba(255,255,255,.035);
  color:#eee9f3!important;
  transition:.2s;
}
html[data-theme="dark"] .modern-header .admin-link:hover{
  border-color:rgba(167,139,250,.42);
  background:rgba(124,58,237,.12);
  color:#fff!important;
}
html[data-theme="dark"] .modern-header .header-cta{
  border:1px solid rgba(216,180,254,.28);
  background:linear-gradient(135deg,#6d28d9,#9333ea 55%,#7c3aed);
  color:#fff!important;
  box-shadow:0 10px 28px rgba(124,58,237,.32),inset 0 1px 0 rgba(255,255,255,.16);
}
html[data-theme="dark"] .modern-header .header-cta:hover{
  filter:brightness(1.12);
  transform:translateY(-1px);
  box-shadow:0 14px 34px rgba(124,58,237,.42),inset 0 1px 0 rgba(255,255,255,.20);
}
@media(max-width:760px){.performance-panel,.security-panel,.pipeline-panel,.micro-cluster,.system-hud{display:none}.hexa-lab{min-height:440px!important}.hexa-core-wrap{transform:translate(-50%,-45%) scale(.72)!important}.lab-connections{opacity:.55}}

/* Detalhes interativos do núcleo */
.lab-clickable{cursor:pointer;outline:none}.lab-clickable:focus-visible{box-shadow:0 0 0 4px rgba(124,58,237,.22),0 22px 58px rgba(80,46,111,.25)!important}.lab-clickable:after{content:"CLIQUE";position:absolute;right:8px;bottom:6px;color:#7c3aed;font:700 6px/1 Consolas,monospace;letter-spacing:.12em;opacity:0;transition:.2s}.lab-clickable:hover:after,.lab-clickable:focus-visible:after{opacity:.75}.lab-modal{pointer-events:none;position:fixed;z-index:10000;inset:0;display:grid;place-items:center;padding:24px;opacity:0;visibility:hidden;transition:.25s}.lab-modal.is-open{pointer-events:auto;opacity:1;visibility:visible}.lab-modal-backdrop{position:absolute;inset:0;background:rgba(13,10,18,.68);backdrop-filter:blur(12px)}.lab-modal-card{position:relative;width:min(760px,100%);max-height:90vh;overflow:auto;padding:36px;border:1px solid rgba(139,92,246,.3);border-radius:26px;background:rgba(255,255,255,.96);box-shadow:0 35px 100px rgba(17,10,28,.35);transform:translateY(20px) scale(.96);transition:.3s;color:#201a28}.lab-modal.is-open .lab-modal-card{transform:none}.lab-modal-close{position:absolute;right:18px;top:16px;width:42px;height:42px;border:1px solid #ded5e8;border-radius:13px;background:#fff;color:#241d2c;font-size:26px;cursor:pointer}.lab-modal-kicker{display:block;margin-right:54px;color:#7c3aed;font:800 11px/1.4 Consolas,monospace;letter-spacing:.12em}.lab-modal-card h2{margin:13px 0 4px;font-size:34px}.lab-modal-card h3{margin:0 0 10px;font-size:17px;color:#5d5267}.lab-modal-card>p{margin:0;max-width:620px;color:#6f6578;line-height:1.7}.lab-modal-visual{position:absolute;right:38px;top:93px;width:95px;height:95px;border:1px solid rgba(124,58,237,.2);border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle,#fff 15%,#ede9fe 32%,rgba(124,58,237,.15) 55%,transparent 57%);animation:neuralSpin 8s linear infinite}.lab-modal-visual i{position:absolute;width:8px;height:8px;border-radius:50%;background:#7c3aed;box-shadow:0 0 12px #7c3aed}.lab-modal-visual i:nth-child(1){top:2px}.lab-modal-visual i:nth-child(2){right:4px;bottom:16px}.lab-modal-visual i:nth-child(3){left:5px;bottom:17px;background:#e30613}.lab-modal-visual strong{font:800 8px Consolas;color:#4c3d58}.core-playground{margin-top:28px;border:1px solid #ded5e8;border-radius:18px;background:#0e0d12;overflow:hidden;color:#f5effb}.core-editor-head{height:42px;display:flex;align-items:center;gap:7px;padding:0 16px;border-bottom:1px solid #29242f}.core-editor-head span{width:9px;height:9px;border-radius:50%;background:#6d6474}.core-editor-head span:first-child{background:#e30613}.core-editor-head span:nth-child(2){background:#f0b84d}.core-editor-head span:nth-child(3){background:#2ac879}.core-editor-head b{margin-left:7px;font:700 12px Consolas}.core-playground label{display:block;padding:15px 17px 8px;color:#b9adc4;font-size:12px}.core-playground textarea{display:block;width:calc(100% - 32px);min-height:180px;margin:0 16px;padding:15px;resize:vertical;border:1px solid #37303f;border-radius:12px;background:#17141c;color:#e9dcf5;font:13px/1.6 Consolas,monospace;outline:none}.core-playground textarea:focus{border-color:#8b5cf6;box-shadow:0 0 0 3px rgba(139,92,246,.15)}.core-editor-actions{display:flex;gap:9px;padding:12px 16px}.core-editor-actions button{border:0;border-radius:10px;padding:11px 17px;background:#7c3aed;color:#fff;font-weight:800;cursor:pointer}.core-editor-actions button+button{background:#29242f}.core-console{min-height:94px;margin:0 16px 12px;padding:14px;border:1px solid #2f2937;border-radius:12px;background:#08070a;color:#72efa8;font:12px/1.65 Consolas,monospace;white-space:pre-wrap}.core-playground small{display:block;padding:0 16px 17px;color:#8f8499}.lab-modal-open{overflow:hidden}html[data-theme="dark"] .lab-modal-card{background:rgba(20,16,26,.98);color:#f7f4fb;border-color:#49395a}html[data-theme="dark"] .lab-modal-close{background:#292330;border-color:#493e53;color:#fff}html[data-theme="dark"] .lab-modal-card h3,html[data-theme="dark"] .lab-modal-card>p{color:#c1b7ca}@media(max-width:700px){.lab-modal{padding:12px}.lab-modal-card{padding:28px 20px}.lab-modal-card h2{font-size:27px}.lab-modal-visual{display:none}.core-playground textarea{min-height:150px}}

/* Layout global em largura total: todas as paginas usam a janela disponivel. */
.wrap{
  width:calc(100% - 48px)!important;
  max-width:none!important;
  margin-left:24px!important;
  margin-right:24px!important;
}
.modern-header{
  width:calc(100% - 32px)!important;
  max-width:none!important;
}
@media(max-width:700px){
  .wrap{
    width:calc(100% - 28px)!important;
    margin-left:14px!important;
    margin-right:14px!important;
  }
  .modern-header{
    width:calc(100% - 16px)!important;
  }
}

/* Garantias finais compartilhadas por todas as páginas. */
html:not(#hexadev-title-lock) body :is(h1,h2,h3,h4,h5,h6){
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin-left:0;
  margin-right:0;
  font-size:12px!important;
  line-height:1.35!important;
  letter-spacing:normal!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
}
@media(max-width:520px){
  html[data-theme="dark"] .modern-header .admin-link,
  .modern-header .admin-link{
    display:none!important;
  }
  .modern-header .mega-nav{
    left:8px!important;
    right:8px!important;
    width:auto!important;
    max-width:none!important;
  }
  .wormhole-deck>.wormhole-card{
    max-width:calc(100vw - 40px)!important;
  }
}
