/* --- CUBE VOLUME (wireframe) --- */
.cube-volume { width:100%; max-width:380px; margin:0 auto; }
.cube-perspective { width:100%; aspect-ratio:1/1; perspective:1600px; position:relative; }
.cube-shell { position:absolute; inset:0; transform-style:preserve-3d; transform:rotateX(30deg) rotateY(-32deg); }
.cube-side { position:absolute; width:100%; height:100%; background:rgba(255,255,255,0.015); border:1px solid rgba(255,255,255,0.08); box-shadow:0 0 0 1px rgba(255,255,255,0.06) inset; }
.cube-side.side-front { transform:translateZ(160px); }
.cube-side.side-back { transform:translateZ(-160px) rotateY(180deg); }
.cube-side.side-left { transform:rotateY(-90deg) translateZ(160px); }
.cube-side.side-right { transform:rotateY(90deg) translateZ(160px); }
.cube-side.side-top { transform:rotateX(90deg) translateZ(160px); }
.cube-side.side-bottom { transform:rotateX(-90deg) translateZ(160px); }
.cube-layers { position:absolute; inset:0; transform-style:preserve-3d; transform:rotateX(30deg) rotateY(-32deg); }
/* Reaproveita agent-layer, mas agora com coordenadas internas (Y dentro do volume) */
.agent-layer { width:68%; }
.layer-atlas { bottom:0; transform:translateX(-50%) translateY(0) translateZ(0); }
.layer-sentinel { bottom:70px; transform:translateX(-50%) translateY(0) translateZ(40px); }
.layer-oracle { bottom:140px; transform:translateX(-50%) translateY(0) translateZ(80px); }
.layer-care { bottom:210px; transform:translateX(-50%) translateY(0) translateZ(120px); }
/* Extrusão lateral (desktop) */
.agent-layer.expanded { transform:translateX(-50%) translateZ(var(--z,0)) translateY(0) translateX(150px); }
.layer-atlas.expanded { --z:0; }
.layer-sentinel.expanded { --z:40px; }
.layer-oracle.expanded { --z:80px; }
.layer-care.expanded { --z:120px; }
@media (max-width: 900px){
    .agent-layer.expanded { transform:translateX(-50%) translateZ(var(--z,0)) translateY(-10px) translateX(100px); }
}
@media (max-width: 640px){
    .agent-layer.expanded { transform:translateX(-50%) translateZ(var(--z,0)) translateY(-30px) translateX(0); }
}
/* --- 1. DESIGN SYSTEM (Manual de Identidade) --- */
:root {
    /* Cores Principais */
    --atlas-blue: #00C3FF;      /* Atlas */
    --deep-blue: #0A1F44;       /* Fundo profundo */
    --neon-blue: #008CFF;       /* Acento neon */
    
    /* Cores Secundárias */
    --tech-black: #0B0B0D;      /* Preto Grafite */
    --pro-grey: #1F1F23;        /* Cinza Profissional */
    --medium-grey: #6D6D73;     /* Cinza Médio */
    --pure-white: #FFFFFF;
    
    /* Cores de Suporte */
    --action-green: #00F5B5;    /* Care */
    --intel-purple: #4C3AFF;    /* Oracle */
    --alert-yellow: #FFC93C;    /* Sentinel */

    /* Dimensões do Cubo */
    --cube-size: 340px; /* ampliado para dar mais presença visual */
    --slab-height: 45px;
    --slab-spacing: 65px; /* Altura de cada "degrau" */
    --slide-distance: 140px; /* Distância que a gaveta sai para a direita */
    /* Novas variáveis (cubo & animação) */
    --inactive-opacity: 0.85;
    --hover-shift: 12px;
    --slab-scale-in: 0.95;
    --slab-glow-size: 18px;
    --transition-bezier: cubic-bezier(.17,.9,.28,1.05);
}

/* Utilitário para textos escuros em botões claros */
.text-deep-navy { color: #0A1F44; }

body {
    margin: 0;
    /* Fundo em gradiente que continua por toda a página */
    background: radial-gradient(circle at center, var(--deep-blue) 0%, var(--tech-black) 90%) fixed;
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    line-height: 1.65;
    color: var(--pure-white);
    overflow-x: hidden;
    cursor: default; 
}

/* Ensure footer sits at the bottom with flexible layout */
html, body { height: 100%; }
/* Use flex layout inside main website only, not entire body */
#main-website { display: flex; flex-direction: column; min-height: 100vh; }
.site-footer { margin-top: auto; margin-bottom: 0; }

/* Viva Vision solid background override for secondary pages */
body.viva-vision-bg { background: #0f172a !important; }

/* Tipografia */
.font-black { font-weight: 900; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.font-light { font-weight: 300; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--tech-black); }
::-webkit-scrollbar-thumb { background: var(--pro-grey); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--atlas-blue); }

/* CANVAS BACKGROUND */
/* CANVAS BACKGROUND */
#canvas-container {
    position: absolute; /* scrolls with page and can extend full height */
    top: 0;
    left: 0;
    width: 100vw;
    height: auto; /* will be set to document height via JS */
    min-height: 100vh;
    z-index: 0; /* stays behind content; main site z-index is 10 */
    background: transparent;
    pointer-events: none; /* don't block clicks/scroll */
}
/* Ensure the WebGL canvas can exceed viewport height */
#canvas-container canvas { display:block; position:absolute; top:0; left:0; width:100% !important; height:100% !important; }

/* Sphere container confines animation to its own block */
#home .sphere-layer { position: relative; width: 100%; min-height: 50vh; }
#hero-sphere { position: relative; width: 100%; height: 100%; overflow: hidden; }
#hero-sphere canvas { position: absolute; top: 0; left: 0; width: 100% !important; height: 100% !important; pointer-events: none; }

/* --- UI COMPONENTS --- */
#main-website {
    position: relative;
    z-index: 10;
    opacity: 0; /* revelado após entrar */
    transform: translateY(12px);
    transition: opacity .6s ease, transform .8s ease;
    padding-top: 60px; /* reduced offset under header/canvas */
}

/* Estado após entrada */
body.entered #main-website {
    opacity: 1;
    transform: translateY(0);
}

/* --- FOOTER ENHANCED --- */
.site-footer {
    position: relative;
    z-index: 10;
    background: rgba(5, 10, 20, 0.9);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 195, 255, 0.15);
    padding: 80px 24px 40px;
    margin-top: 80px;
    overflow: hidden;
}
.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--atlas-blue), transparent);
    opacity: 0.5;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
}
.footer-brand h3 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 26px;
    color: #fff;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-brand p { font-size: 15px; color: #9ca3af; line-height: 1.6; margin-bottom: 24px; }
.system-status {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px;
    background: rgba(0, 245, 181, 0.1);
    border: 1px solid rgba(0, 245, 181, 0.2);
    border-radius: 99px;
    font-size: 12px; font-weight: 600; color: var(--action-green);
    cursor: default;
    transition: all 0.3s;
}
.system-status:hover { background: rgba(0, 245, 181, 0.2); box-shadow: 0 0 10px rgba(0, 245, 181, 0.2); }
.status-ping { width: 6px; height: 6px; background: var(--action-green); border-radius: 50%; animation: pulse-status 2s infinite; }
@keyframes pulse-status { 0% { box-shadow: 0 0 0 0 rgba(0, 245, 181, 0.7); } 70% { box-shadow: 0 0 0 6px rgba(0, 245, 181, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 245, 181, 0); } }
.footer-links h4 { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #fff; margin-bottom: 20px; }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a {
    color: #9ca3af; text-decoration: none; font-size: 15px; transition: all 0.2s;
    display: inline-block;
}
.footer-links a:hover { color: var(--atlas-blue); transform: translateX(4px); }
.footer-cta {
    background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    padding: 24px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.08);
}
.footer-cta h4 { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.footer-cta p { font-size: 14px; color: #9ca3af; margin-bottom: 16px; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-input {
    flex: 1; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1);
    color: #fff; padding: 10px 14px; border-radius: 8px; font-size: 14px; outline: none;
    transition: border-color 0.2s;
}
.newsletter-input:focus { border-color: var(--atlas-blue); }
.newsletter-btn {
    background: var(--atlas-blue); color: #000; border: none; padding: 0 14px;
    border-radius: 8px; cursor: pointer; font-weight: 700; transition: all 0.2s;
}
.newsletter-btn:hover { background: #fff; transform: translateY(-2px); }
.social-row { display: flex; gap: 16px; margin-top: 24px; }
.social-link {
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: rgba(255,255,255,0.05); color: #9ca3af;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid transparent;
}
.social-link:hover {
    background: var(--atlas-blue); color: #000; transform: translateY(-4px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 195, 255, 0.3);
}
.footer-bottom {
    max-width: 1200px; margin: 60px auto 0; padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13px; color: #6b7280;
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a:hover { color: #fff; }
@media (max-width: 900px) {
    .footer-content { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer-brand { align-items: center; }
    .footer-brand h3 { justify-content: center; }
    .social-row { justify-content: center; }
    .footer-bottom { flex-direction: column; gap: 16px; }
}

/* NOVO HEADER FLUTUANTE (Ilha) */
.floating-nav {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    /* Altura dinâmica controlada via max-height */
    height: auto;
    max-height: 70px;
    overflow: hidden;
    background: rgba(11, 11, 13, 0.6); /* Tech Black translúcido */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px; /* Pílula completa */
    display: flex;
    flex-direction: column; /* para mega menu expandir abaixo */
    padding: 0 32px;
    z-index: 1000; /* ensure header overlays section stacks on secondary pages */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-nav:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(11, 11, 13, 0.8);
}

/* Estado expandido do mega menu */
.floating-nav.nav-expanded {
    max-height: 460px; /* ensure enough space for ecosystem grid */
    border-radius: 32px;
    background: rgba(11, 11, 13, 0.95);
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 25px 80px rgba(0,0,0,0.6);
}

/* Hide floating header on the index page until the user has 'entered' (hash '#entered')
   - html.index-page: we're on the homepage (index)
   - body:not(.entered): user hasn't entered yet
   This prevents the header from flashing while the intro sphere is visible.
*/
html.index-page body:not(.entered) .floating-nav {
    display: none !important;
}

/* Linha principal do header */
.nav-main-row {
    height: 70px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

/* Container do mega menu */
.mega-menu-container {
    width: 100%;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    padding-bottom: 30px;
    padding-top: 10px;
    display: none; /* default hidden; only active shows when expanded */
}
.floating-nav.nav-expanded .mega-menu-container.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0.1s;
}

.mega-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.mega-agent-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    /* allow smooth border color / glow transitions */
    transition: background .25s ease, transform .25s ease, border-color .25s ease, box-shadow .25s ease, filter .25s ease;
}
.mega-agent-card:hover {
        background: rgba(255,255,255,0.06);
        transform: translateY(-2px);
        border-color: var(--accent, rgba(255,255,255,0.14));
        /* ultra subtle ambient glow */
        box-shadow:
            0 6px 20px rgba(0,0,0,0.32),
            0 0 12px var(--accent, rgba(0,195,255,0.20)),
            inset 0 0 8px rgba(255,255,255,0.05);
        filter: drop-shadow(0 0 4px var(--accent, rgba(0,195,255,0.25))); 
}
.mega-agent-card i { font-size: 36px; margin-bottom: 10px; transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.mega-agent-card:hover i { transform: scale(1.15) rotate(5deg); }
.mega-agent-title { font-size: 17px; font-weight: 700; color: var(--pure-white); margin-bottom: 4px; }
.mega-agent-desc { font-size: 12px; color: var(--medium-grey); line-height: 1.4; }

/* Horizontal layout for sectors menu cards */
#menu-sectors .mega-grid { grid-template-columns: repeat(3, 1fr); }
.mega-sector-card { flex-direction: row; align-items: center; text-align: left; gap: 12px; padding: 12px 14px; }
.mega-sector-card i { font-size: 24px; margin: 0; }
.mega-sector-content { display: flex; flex-direction: column; }
.mega-sector-title { font-size: 15px; font-weight: 700; color: var(--pure-white); }
.mega-sector-desc { font-size: 11px; color: var(--medium-grey); letter-spacing: .02em; }

/* Animated sweep over AIOT word */
.aiot-mark { position: relative; display: inline-block; padding: 0 2px; }
/* Inner sweep: duplicate text and animate gradient clipped to glyphs */
.aiot-mark::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    /* Animated gradient moves across the text */
    background: linear-gradient(90deg,
        rgba(0,195,255,0) 0%,
        rgba(0,195,255,0) 35%,
        rgba(0,195,255,0.85) 50%,
        rgba(0,195,255,0) 65%,
        rgba(0,195,255,0) 100%
    );
    background-size: 200% 100%;
    background-position: -50% 0;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    mix-blend-mode: screen; /* blend for glow over base color */
    filter: drop-shadow(0 0 6px rgba(0,195,255,0.45));
    animation: aiotInnerSweep 3.2s ease-in-out infinite;
    pointer-events: none;
}
@keyframes aiotInnerSweep {
    0%   { background-position: -60% 0; opacity: 0.0; }
    12%  { opacity: 1; }
    50%  { background-position: 60% 0; opacity: 1; }
    88%  { opacity: 1; }
    100% { background-position: 100% 0; opacity: 0.0; }
}

/* Nav Links */
.nav-link {
    position: relative;
    cursor: pointer;
    transition: color 0.3s;
    font-weight: 600;
    color: var(--medium-grey); /* Cinza padrão */
    font-size: 15px;
    letter-spacing: 0.6px;
}
.nav-link:hover { color: var(--pure-white); }
.nav-link.active { color: var(--pure-white); }

/* Dropdown de Agentes */
.nav-dropdown { position:relative; }
.nav-dropdown > .nav-link { display:inline-flex; align-items:center; gap:4px; }
.dropdown-panel { position:absolute; top:110%; left:0; min-width:220px; background:rgba(11,11,13,0.85); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px); border:1px solid rgba(255,255,255,0.12); border-radius:18px; padding:10px 12px; display:flex; flex-direction:column; gap:4px; opacity:0; transform:translateY(6px); transition:opacity .25s ease, transform .25s ease; pointer-events:none; z-index:60; }
.nav-dropdown:hover .dropdown-panel, .nav-dropdown:focus-within .dropdown-panel, .nav-dropdown.open .dropdown-panel { opacity:1; transform:translateY(0); pointer-events:auto; }
.dropdown-link { padding:10px 14px; border-radius:12px; font-size:13px; font-weight:600; letter-spacing:.05em; color:var(--medium-grey); text-decoration:none; display:flex; justify-content:space-between; align-items:center; transition:background .25s, color .25s; }
.dropdown-link:hover { background:rgba(255,255,255,0.08); color:var(--pure-white); }
.dropdown-link::after { content:'›'; opacity:.4; transition:opacity .25s, transform .25s; }
.dropdown-link:hover::after { opacity:1; transform:translateX(2px); }


/* Feature Cards */
.feature-card {
    background: var(--pro-grey);
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

/* Mapa de Calor Sutil */
.heatmap-bg {
    position: absolute;
    top: 50%; left: 50%;
    width: 150%; height: 150%;
    background: radial-gradient(circle, var(--neon-blue) 0%, transparent 60%);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
    transition: opacity 0.5s, transform 0.5s;
    z-index: 0;
    pointer-events: none;
    filter: blur(40px);
}
.feature-card:hover .heatmap-bg {
    opacity: 0.1;
    transform: translate(-50%, -50%) scale(1);
}

/* --- ROI ADVANCED --- */
.roi-wrapper { position:relative; }
.roi-head .ctrl { display:flex; flex-direction:column; gap:6px; font-size:12px; letter-spacing:.05em; color:var(--medium-grey); }
.roi-head input[type=range] { width:180px; accent-color: var(--atlas-blue); }
.mode-toggle {
    background:rgba(255,255,255,0.06);
    border:1px solid rgba(255,255,255,0.12);
    padding:10px 20px; border-radius:999px; font-size:12px; font-weight:600; letter-spacing:.08em;
    color:var(--pure-white); cursor:pointer; transition:background .25s,border-color .25s,transform .25s;
}
.mode-toggle:hover { background:rgba(0,195,255,0.12); border-color:rgba(0,195,255,0.45); }
.mode-toggle[aria-pressed=true] { background:linear-gradient(90deg, rgba(0,195,255,0.25), rgba(0,245,181,0.18)); border-color:rgba(0,245,181,0.55); }

.roi-stage { width:600px; height:600px; position:relative; cursor:grab; }
.roi-stage::before { content:""; position:absolute; inset:0; margin:auto; width:200px; height:200px; background:radial-gradient(circle at 30% 30%, rgba(0,195,255,.25), rgba(0,245,181,.18) 60%, transparent 70%); border:1px solid rgba(255,255,255,.14); backdrop-filter:blur(14px); border-radius:50%; animation:pulseCore 6s ease-in-out infinite; }
.roi-stage.dragging { cursor:grabbing; }
@keyframes pulseCore { 0%,100% { transform:scale(1); opacity:.85; } 50% { transform:scale(1.08); opacity:1; } }

.roi-ring { position:absolute; inset:0; margin:auto; border-radius:50%; pointer-events:none; border:1px dashed rgba(255,255,255,0.10); opacity:.5; transition:opacity .4s ease, transform .6s var(--transition-bezier); }
.roi-ring[data-layer="1"] { width:320px; height:320px; }
.roi-ring[data-layer="2"] { width:460px; height:460px; border-color:rgba(255,255,255,0.07); }
.roi-ring[data-layer="3"] { width:600px; height:600px; border-color:rgba(255,255,255,0.05); }
.roi-stage.active-metric-[data-layer] .roi-ring { opacity:.6; }

.metric-node.active { box-shadow:0 0 40px -4px rgba(0,195,255,.55), 0 0 0 1px rgba(0,195,255,.4); }
.metric-node:focus-visible { outline:2px solid var(--atlas-blue); outline-offset:4px; }
.metric-node.active-agent { box-shadow:0 0 50px -6px rgba(0,195,255,.7), 0 0 0 2px rgba(0,195,255,.5); transform:translate(-50%, -50%) rotate(var(--angle)) translateX(var(--radius)) scale(1.1); }
.metric-node.dim { opacity:.35; filter:blur(1px); transition:opacity .4s ease, filter .4s ease; }

.metric-node { position:absolute; top:50%; left:50%; transform:translate(-50%, -50%) rotate(var(--angle)) translateX(var(--radius)) translateY(var(--extra-y,0px)); width:150px; height:150px; background:rgba(255,255,255,0.06); backdrop-filter:blur(10px); border:1px solid rgba(255,255,255,0.14); border-radius:24px; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:8px; transition:transform .45s var(--transition-bezier), box-shadow .35s; cursor:pointer; }
.metric-node:hover { transform:translate(-50%, -50%) rotate(var(--angle)) translateX(var(--radius)) translateY(var(--extra-y,0px)) scale(1.07); box-shadow:0 0 40px -4px rgba(0,195,255,.45); }
/* Tooltip básico */
.metric-node .tooltip { position:absolute; bottom:100%; left:50%; transform:translateX(-50%) translateY(-8px); background:rgba(0,0,0,0.75); padding:8px 12px; border-radius:10px; font-size:11px; line-height:1.4; width:180px; text-align:center; opacity:0; pointer-events:none; transition:opacity .25s ease, transform .25s ease; border:1px solid rgba(255,255,255,0.12); backdrop-filter:blur(4px); }
.metric-node:hover .tooltip, .metric-node:focus .tooltip, .metric-node:focus-visible .tooltip { opacity:1; transform:translateX(-50%) translateY(-14px); }
.metric-node .inner { display:flex; flex-direction:column; align-items:center; gap:10px; transform:rotate(calc(var(--angle) * -1)); }
.metric-node .value { font-weight:800; font-size:28px; letter-spacing:.02em; }
.metric-node[data-type=negative] .value { color: var(--action-green); }
.metric-node[data-type=positive] .value { color: var(--atlas-blue); }
.metric-node .label { font-size:12px; letter-spacing:.12em; text-transform:uppercase; color:var(--medium-grey); font-weight:600; }

/* Painéis */
.metric-panel { background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.08); border-radius:16px; padding:22px 24px; position:relative; backdrop-filter:blur(10px); transition:border-color .3s, background .3s; }
.metric-panel:hover { border-color:rgba(0,195,255,0.45); background:rgba(255,255,255,0.07); }
.panel-title { font-size:16px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; margin:0 0 6px; }
.panel-value { font-size:28px; font-weight:800; margin-bottom:8px; }
.panel-desc { font-size:13px; line-height:1.5; color:var(--medium-grey); }
.details-btn { background:transparent; border:1px solid rgba(255,255,255,0.14); color:var(--pure-white); padding:6px 14px; font-size:11px; letter-spacing:.08em; border-radius:999px; cursor:pointer; transition:background .25s, border-color .25s; }
.details-btn:hover { background:rgba(0,195,255,0.12); border-color:rgba(0,195,255,0.55); }

/* Dialog */
.roi-dialog { border:none; padding:0; background:transparent; max-width:520px; width:100%; }
.roi-dialog::backdrop { background:rgba(0,0,0,0.65); backdrop-filter:blur(4px); }
.dialog-content { background:rgba(11,11,13,0.85); border:1px solid rgba(255,255,255,0.12); padding:32px 34px 28px; border-radius:22px; position:relative; box-shadow:0 20px 60px -10px rgba(0,0,0,.6); }
.dialog-title { margin:0 0 10px; font-size:20px; font-weight:700; letter-spacing:.04em; }
.close-dialog { position:absolute; top:10px; right:14px; background:transparent; border:none; color:var(--pure-white); font-size:26px; cursor:pointer; line-height:1; }
.close-dialog:hover { color:var(--atlas-blue); }

@media (max-width: 900px){ .roi-stage { width:460px; height:460px; } .roi-ring[data-layer="1"]{width:260px;height:260px;} .roi-ring[data-layer="2"]{width:360px;height:360px;} .roi-ring[data-layer="3"]{width:460px;height:460px;} .metric-node { width:130px; height:130px; } .metric-node .value{font-size:24px;} }
@media (max-width: 640px){ .roi-stage { width:360px; height:360px; } .roi-ring[data-layer="1"]{width:200px;height:200px;} .roi-ring[data-layer="2"]{width:280px;height:280px;} .roi-ring[data-layer="3"]{width:360px;height:360px;} .metric-node { width:110px; height:110px; } .metric-node .value { font-size:20px; } .panel-value { font-size:24px; } }


/* Dica de clique na esfera */
.click-hint {
    opacity: 0.7;
    animation: pulseHint 3s infinite;
}
@keyframes pulseHint {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

/* --- Agentic Cycle Hover Amplification --- */
.agentic-step { transition: transform .35s ease, filter .35s ease; }
.agentic-step .agentic-icon { transition: box-shadow .45s ease, background .45s ease, transform .45s ease, filter .45s ease; }
.agentic-step:hover .agentic-icon,
.agentic-step:focus-within .agentic-icon { transform: scale(1.12) translateY(-4px); }

.step-perceber:hover .agentic-icon,
.step-perceber:focus-within .agentic-icon { box-shadow:0 0 55px -4px rgba(0,195,255,.75), 0 0 0 2px rgba(0,195,255,.55); background:radial-gradient(circle at 35% 35%, rgba(0,195,255,.40), rgba(0,195,255,.08) 70%); }
.step-entender:hover .agentic-icon,
.step-entender:focus-within .agentic-icon { box-shadow:0 0 55px -4px rgba(255,201,60,.75), 0 0 0 2px rgba(255,201,60,.55); background:radial-gradient(circle at 35% 35%, rgba(255,201,60,.40), rgba(255,201,60,.08) 70%); }
.step-prever:hover .agentic-icon,
.step-prever:focus-within .agentic-icon { box-shadow:0 0 55px -4px rgba(76,58,255,.75), 0 0 0 2px rgba(76,58,255,.55); background:radial-gradient(circle at 35% 35%, rgba(76,58,255,.40), rgba(76,58,255,.08) 70%); }
.step-agir:hover .agentic-icon,
.step-agir:focus-within .agentic-icon { box-shadow:0 0 55px -4px rgba(0,245,181,.75), 0 0 0 2px rgba(0,245,181,.55); background:radial-gradient(circle at 35% 35%, rgba(0,245,181,.40), rgba(0,245,181,.08) 70%); }

.agentic-step:hover h3, .agentic-step:focus-within h3 { color: var(--pure-white); }
.agentic-step:hover p, .agentic-step:focus-within p { color: var(--medium-grey); }

/* Botão do Header */
.header-btn {
    background: transparent;
    border: 1px solid var(--atlas-blue);
    color: var(--atlas-blue);
    padding: 10px 26px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s;
}
.header-btn:hover {
    background: var(--atlas-blue);
    color: var(--tech-black);
    box-shadow: 0 0 20px rgba(0, 195, 255, 0.4);
}

/* Standard action buttons used on agent pages */
.agent-actions { display:flex; gap:16px; flex-wrap:wrap; align-items:center; }
.btn-secondary {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);
    color: #e5e7eb; /* text-gray-200 */
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex; align-items:center; gap:8px;
    transition: all 0.18s ease;
}
.btn-secondary:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); }

/* Ensure header-btn matches size/spacing when used alongside .btn-secondary */
.agent-actions .header-btn { padding: 10px 22px; border-radius: 12px; font-size: 14px; }

/* INTRO OVERLAY (somente planeta na tela) */
#intro {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    z-index: 40;
}

/* --- SECTORS PHOTO CARD (from teste.html) --- */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
    margin-bottom: 80px;
}

.photo-card {
    position: relative;
    height: 320px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.photo-card:hover {
    transform: translateY(-8px);
    border-color: var(--highlight-color, var(--atlas-blue));
    box-shadow: 0 15px 40px -10px rgba(0,0,0,0.7);
}

.card-bg-img {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    transition: transform 0.6s ease, filter 0.4s ease;
    filter: grayscale(100%) brightness(0.6) contrast(1.2) sepia(20%) hue-rotate(180deg);
    z-index: 0;
}
.photo-card:hover .card-bg-img { transform: scale(1.1); filter: grayscale(0%) brightness(0.8); }

.card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 60%, transparent 100%); z-index: 1; }

.card-content { position: absolute; bottom: 0; left: 0; width: 100%; padding: 28px; z-index: 2; transform: translateY(0); transition: transform 0.4s ease; }
.photo-card:hover .card-content { transform: translateY(-5px); }

.card-icon { font-size: 32px; color: var(--highlight-color, var(--atlas-blue)); margin-bottom: 12px; opacity: 0.9; transition: opacity 0.3s; display: block; }
.photo-card:hover .card-icon { opacity: 1; text-shadow: 0 0 15px var(--highlight-color, var(--atlas-blue)); }

.card-title { font-family: 'Rajdhani', sans-serif; font-size: 28px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }

.card-desc { font-size: 14px; color: rgba(255,255,255,0.7); max-width: 95%; line-height: 1.5; opacity: 0; transform: translateY(10px); transition: all 0.4s ease; height: 0; overflow: hidden; }
.photo-card:hover .card-desc { opacity: 1; transform: translateY(0); height: auto; margin-top: 8px; }

.sec-retail { --highlight-color: #00C3FF; }
.sec-industry { --highlight-color: #FFC93C; }
.sec-cities { --highlight-color: #4C3AFF; }
.sec-health { --highlight-color: #00F5B5; }
.sec-logistics { --highlight-color: #FF5D5D; }
.sec-facilities { --highlight-color: #E2E8F0; }

/* --- AGENT FLOW CARDS (from teste.html) --- */
.agent-hero { padding: 40px 0; text-align: center; }
.agent-icon-large { width: 80px; height: 80px; margin: 0 auto 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 40px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.05); box-shadow: 0 0 40px rgba(0,0,0,0.5); }
.agent-flow-container { display: flex; gap: 20px; width: 100%; height: 500px; margin-top: 40px; }
.agent-flow-card { flex: 1; position: relative; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.08); border-radius: 24px; overflow: hidden; transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1); cursor: pointer; display: flex; flex-direction: column; justify-content: flex-end; padding: 30px; }
.agent-flow-card:hover { flex: 2.5; background: rgba(255,255,255,0.06); border-color: var(--highlight-color); box-shadow: 0 0 40px -10px var(--highlight-glow); }
.af-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.2; transition: opacity 0.5s, transform 0.5s; filter: grayscale(100%); }
.agent-flow-card:hover .af-bg { opacity: 0.5; transform: scale(1.05); filter: grayscale(20%); }
.af-content { position: relative; z-index: 10; transform: translateY(20px); transition: transform 0.4s; }
.agent-flow-card:hover .af-content { transform: translateY(0); }
.af-step { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.2em; color: var(--highlight-color); margin-bottom: 8px; display: block; }
.af-title { font-family: 'Rajdhani', sans-serif; font-size: 42px; font-weight: 700; line-height: 1; color: #fff; margin-bottom: 12px; }
.af-desc { font-size: 13px; color: #ccc; max-width: 300px; opacity: 0; height: 0; overflow: hidden; transition: all 0.4s; }
.agent-flow-card:hover .af-desc { opacity: 1; height: auto; margin-top: 10px; }
.flow-arrow { position: absolute; top: 50%; right: -24px; transform: translateY(-50%); color: rgba(255,255,255,0.1); font-size: 24px; z-index: 5; }
.agent-atlas { --highlight-color: #00C3FF; --highlight-glow: rgba(0, 195, 255, 0.3); }
.agent-sentinel { --highlight-color: #FFC93C; --highlight-glow: rgba(255, 201, 60, 0.3); }
.agent-oracle { --highlight-color: #4C3AFF; --highlight-glow: rgba(76, 58, 255, 0.3); }
.agent-care { --highlight-color: #00F5B5; --highlight-glow: rgba(0, 245, 181, 0.3); }
.agent-caos { --highlight-color: #FF3366; --highlight-glow: rgba(255, 51, 102, 0.3); }

/* Variável de cor para Caos */
:root {
    --caos-red: #FF3366;
}
.text-caos-red { color: var(--caos-red); }
@media (max-width: 768px) { .agent-flow-container { flex-direction: column; height: auto; } .agent-flow-card { min-height: 150px; } }
#intro .hint {
    position: absolute;
    bottom: 8vh;
    left: 50%;
    transform: translateX(-50%);
    color: #B4E9FF;
    letter-spacing: .3em;
    text-transform: uppercase;
    font-size: 10px;
    font-weight: 800;
    opacity: .9;
    animation: pulseHint 3s infinite;
    text-align: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(0, 195, 255, .06);
    border: 1px solid rgba(0, 195, 255, .18);
    backdrop-filter: blur(4px);
}
body.chat-open #intro .hint { opacity: 0; }
/* Fade out da intro ao entrar */
body.entering #intro { opacity: 1; }
body.entered #intro {
    opacity: 0;
    pointer-events: none;
    transition: opacity .5s ease .2s;
}

/* Oculta nav enquanto não entrou */
/* Header sempre visível, independente do estado 'entered' */
.floating-nav { opacity: 1; }

/* Vignette de transição */
#vignette {
    position: fixed;
    inset: 0;
    z-index: 45;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0) 0%, rgba(0,0,0,.2) 55%, rgba(0,0,0,.55) 100%);
    transition: opacity .4s ease;
}

/* Sweep de cor (blend) para dar sensação de passagem) */
#spectral {
    position: fixed;
    inset: 0;
    z-index: 44;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(120deg, rgba(0,195,255,0.12), rgba(76,58,255,0.10) 30%, rgba(255,255,255,0.06) 60%, rgba(0,245,181,0.10));
    mix-blend-mode: screen;
    transition: opacity .3s ease;
}

/* Hover hint no site para clicar na esfera */
#hover-hint {
    position: fixed;
    left: 50%;
    bottom: calc(72px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    padding: 8px 12px;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 999px;
    color: var(--pure-white);
    font-size: 11px;
    letter-spacing: .02em;
    opacity: 0;
    pointer-events: none;
    z-index: 46;
    transition: opacity .2s ease;
}
body.chat-open #hover-hint, body:not(.entered) #hover-hint { display: none; }

/* Contextual floating text below sphere */
/* Agent intro block below sphere */
.agent-intro {
    position: fixed;
    top: 84vh; /* desce mais abaixo da esfera */
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #B4E9FF; /* mesma paleta da dica de intro */
    font-family: "Inter", -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    animation: fadeUp 1.2s ease forwards;
    opacity: 0;
    z-index: 46;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(0, 195, 255, .06);
    border: 1px solid rgba(0, 195, 255, .18);
    backdrop-filter: blur(4px);
}

@media (max-height: 800px) {
    .agent-intro { top: 88vh; }
}
@media (max-height: 640px) {
    .agent-intro { top: 92vh; }
}
.agent-intro h1,
.agent-intro h2,
.agent-intro p {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: .28em;
    font-size: 10px;
    font-weight: 800;
}
@keyframes fadeUp {
    0% { opacity: 0; transform: translate(-50%, 20px); }
    100% { opacity: 1; transform: translate(-50%, 0px); }
}

/* Visibilidade conforme estado */
body:not(.entered) .agent-intro { display: none; }
body.chat-open .agent-intro { opacity: 0; pointer-events: none; }

/* Ocultar textos do herói quando chat estiver ativo */
#home { transition: opacity .3s ease, transform .3s ease; }
body.chat-open #home { opacity: 0; pointer-events: none; transform: translateY(6px); }

/* Chat-first hero CTA */
.chat-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg, rgba(0,195,255,0.15), rgba(0,245,181,0.12));
    color: var(--pure-white);
    border: 1px solid rgba(0,195,255,0.35);
    padding: 14px 22px;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: .04em;
    backdrop-filter: blur(6px);
    transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.chat-cta:hover {
    transform: translateY(-1px);
    border-color: rgba(0,245,181,0.5);
    box-shadow: 0 8px 30px rgba(0, 195, 255, 0.18);
}
.chat-cta i { font-size: 18px; }

.chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.chip {
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--pure-white);
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: .02em;
    transition: background .2s ease, border-color .2s ease, transform .1s ease;
}
.chip:hover { 
    background: rgba(0, 195, 255, 0.10);
    border-color: rgba(0,195,255,0.35);
    transform: translateY(-1px);
}

/* (Removido estilo específico do título framework para padronização) */

.contact-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px -10px rgba(0,0,0,0.5);
}
.contact-input, .contact-select, .contact-textarea {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--pure-white);
    border-radius: 10px;
    padding: 12px 14px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-input:focus, .contact-select:focus, .contact-textarea:focus {
    border-color: rgba(0,195,255,0.45);
    box-shadow: 0 0 0 3px rgba(0,195,255,0.15);
}
.contact-submit {
    width: 100%;
    padding: 14px 18px;
    background: var(--pure-white);
    color: var(--tech-black);
    font-weight: 800;
    border-radius: 12px;
    transition: background .2s ease;
}
.contact-submit:hover { background: var(--atlas-blue); }

/* NEW: estilos para a seção de contato importada de teste.html (sincronizados com teste.html) */
#contato {
    padding: 100px 0;
    position: relative;
    background: linear-gradient(to bottom, transparent, rgba(10, 31, 68, 0.4));
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    align-items: start;
}

.contact-info h2 { font-size: 48px; line-height: 1.1; font-weight: 700; margin-bottom: 24px; color: #fff; font-family: 'Rajdhani', sans-serif; }
.contact-info p { font-size: 16px; color: #9ca3af; margin-bottom: 40px; max-width: 450px; line-height: 1.6; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; color: #fff; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
        
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}
        
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--atlas-blue);
    background: rgba(0, 195, 255, 0.05);
    box-shadow: 0 0 0 4px rgba(0, 195, 255, 0.1);
}

/* INTEREST TAGS (NEW) */
.interest-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
        
.interest-tag-input {
    display: none; /* Hide actual radio/checkbox */
}

.interest-tag-label {
    padding: 8px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

/* Selected State */
.interest-tag-input:checked + .interest-tag-label {
    background: rgba(0, 195, 255, 0.2);
    border-color: var(--atlas-blue);
    color: #fff;
    box-shadow: 0 0 10px rgba(0, 195, 255, 0.2);
}
        
.interest-tag-label:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-submit-btn {
    width: 100%;
    background: linear-gradient(90deg, var(--atlas-blue), var(--intel-purple));
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    display: flex; align-items: center; justify-content: center; gap: 10px;
}
        
.form-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 195, 255, 0.3);
}

.contact-methods { display: flex; flex-direction: column; gap: 20px; }
.method-item { display: flex; align-items: center; gap: 16px; }
.method-icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; color: var(--atlas-blue); font-size: 24px; }
.method-text h4 { font-size: 14px; font-weight: 700; color: #fff; margin: 0 0 4px; }
.method-text span { font-size: 14px; color: #9ca3af; }

@media (max-width: 1024px) {
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-content { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer-brand { align-items: center; }
    .footer-brand h3 { justify-content: center; }
    .social-row { justify-content: center; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .contact-info h2 { font-size: 36px; }
}

/* Minimal hero floating controls */
.chat-fab {
    position: fixed;
    left: 50%;
    bottom: calc(24px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    z-index: 48;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(0,195,255,0.2), rgba(0,245,181,0.16));
    color: var(--pure-white);
    border: 1px solid rgba(0,195,255,0.35);
    font-weight: 800;
    letter-spacing: .03em;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.chat-fab:hover { 
    transform: translateX(-50%) translateY(-2px);
    border-color: rgba(0,245,181,0.45);
    box-shadow: 0 14px 36px rgba(0, 195, 255, 0.22);
}
.chat-fab i { font-size: 18px; }

.learn-link {
    position: fixed;
    right: 24px;
    bottom: calc(24px + env(safe-area-inset-bottom));
    z-index: 47;
    color: var(--medium-grey);
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color .2s ease, border-color .2s ease, background .2s ease, transform .15s ease;
}
.learn-link:hover { 
    color: var(--pure-white);
    border-color: rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.06);
    transform: translateY(-1px);
}

/* Hide minimal controls when chat is open */
body.chat-open .chat-fab, body.chat-open .learn-link { display: none; }

/* About pill (contexto sutil) */
.about-pill {
    position: fixed;
    left: 24px;
    bottom: calc(24px + env(safe-area-inset-bottom));
    z-index: 47;
    color: var(--pure-white);
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, transform .15s ease, opacity .3s ease;
}
.about-pill:hover { 
    background: rgba(0,0,0,0.35);
    border-color: rgba(255,255,255,0.18);
    transform: translateY(-1px);
}
body.chat-open .about-pill { opacity: 0; pointer-events: none; }
/* --- AGENT CUBE (Nossos Agentes) --- */
.agent-tabs button.agent-tab {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--pure-white);
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    transition: background .25s, border-color .25s, color .25s, transform .15s;
}
.agent-tab.current, .agent-tab:hover { 
    background: linear-gradient(90deg, rgba(0,195,255,0.15), rgba(0,245,181,0.14));
    border-color: rgba(0,195,255,0.35);
    color: var(--pure-white);
    transform: translateY(-2px);
}
.agent-cube-container { width: 100%; max-width: 340px; aspect-ratio: 1/1; position: relative; margin: 0 auto; }
.agent-perspective { width: 100%; height: 100%; perspective: 1400px; }
.agent-cube { width:100%; height:100%; position:relative; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.65,.05,.36,1); }
.agent-face { position:absolute; top:0; left:0; width:100%; height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; border:1px solid rgba(255,255,255,0.08); border-radius:24px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding:24px; box-shadow:0 12px 40px -8px rgba(0,0,0,0.5); }
.agent-face .face-top { font-size:42px; line-height:1; }
.agent-face .face-label { font-size:12px; letter-spacing:.12em; text-transform:uppercase; font-weight:700; opacity:.85; }
.agent-face .face-detail { font-size:18px; font-weight:800; }
.face-sentinel { background: linear-gradient(140deg, rgba(255,201,60,0.22), rgba(255,201,60,0.05)); }
.face-oracle { background: linear-gradient(140deg, rgba(76,58,255,0.25), rgba(76,58,255,0.06)); }
.face-care { background: linear-gradient(140deg, rgba(0,245,181,0.25), rgba(0,245,181,0.07)); }
.face-atlas { background: linear-gradient(140deg, rgba(0,195,255,0.28), rgba(0,195,255,0.08)); }
/* Cube faces arranged around Y axis */
.face-sentinel { transform: rotateY(0deg) translateZ(170px); }
.face-oracle { transform: rotateY(90deg) translateZ(170px); }
.face-care { transform: rotateY(180deg) translateZ(170px); }
.face-atlas { transform: rotateY(270deg) translateZ(170px); }
@media (max-width: 640px){
    .agent-cube-container { max-width: 260px; }
    .face-sentinel,.face-oracle,.face-care,.face-atlas { transform: translateZ(130px) rotateY(var(--rot,0)); }
}
.agent-content { position:relative; }
.agent-slide { transition: opacity .35s ease, transform .35s ease; }
.agent-slide[hidden] { display:block; opacity:0; height:0; overflow:hidden; transform:translateY(12px); pointer-events:none; }
.agent-slide.current { opacity:1; transform:translateY(0); }
.agent-cube-wrapper { position:relative; }
.agent-cube-wrapper::after { content:""; position:absolute; inset:0; pointer-events:none; background: radial-gradient(circle at 65% 50%, rgba(0,195,255,0.12), transparent 70%); opacity:.35; mix-blend-mode:screen; }
.agent-cube-container::before { content:""; position:absolute; inset:-8%; background:radial-gradient(circle,rgba(0,195,255,0.12),transparent 70%); filter:blur(40px); opacity:.6; }
/* --- STACKED CUBE (layers empilhadas) --- */
.agent-stack-wrapper { position:relative; }
.stack-perspective { width:100%; max-width:360px; aspect-ratio:1/1; perspective:1600px; margin:0 auto; }
.stack-cube { width:100%; height:100%; position:relative; transform-style:preserve-3d; transform:rotateX(58deg) rotateZ(0deg) translateY(-20px); }
.agent-layer { position:absolute; left:50%; transform:translateX(-50%) translateY(0) translateZ(0); width:72%; height:70px; border-radius:16px; border:1px solid rgba(255,255,255,0.10); background:rgba(255,255,255,0.05); backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px); cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .7s cubic-bezier(.65,.05,.36,1), box-shadow .4s ease, border-color .4s ease, background .4s ease; box-shadow:0 14px 40px -10px rgba(0,0,0,0.5); }
.agent-layer .layer-inner { text-align:center; display:flex; flex-direction:column; gap:4px; }
.agent-layer .layer-icon { font-size:26px; }
.agent-layer .layer-title { font-size:13px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; }
.agent-layer .layer-sub { font-size:11px; font-weight:500; opacity:.8; }
.layer-atlas { bottom:0; transform:translateX(-50%) translateY(0) translateZ(0); background:linear-gradient(140deg, rgba(0,195,255,0.35), rgba(0,195,255,0.08)); }
.layer-sentinel { bottom:70px; transform:translateX(-50%) translateZ(40px); background:linear-gradient(140deg, rgba(255,201,60,0.30), rgba(255,201,60,0.06)); }
.layer-oracle { bottom:140px; transform:translateX(-50%) translateZ(80px); background:linear-gradient(140deg, rgba(76,58,255,0.35), rgba(76,58,255,0.10)); }
.layer-care { bottom:210px; transform:translateX(-50%) translateZ(120px); background:linear-gradient(140deg, rgba(0,245,181,0.35), rgba(0,245,181,0.10)); }
.agent-layer:not(.expanded):hover { border-color:rgba(255,255,255,0.25); box-shadow:0 18px 50px -8px rgba(0,0,0,0.55); }
.agent-layer.expanded { box-shadow:0 24px 70px -10px rgba(0,195,255,0.55); border-color:rgba(0,195,255,0.55); }
.agent-layer.expanded { transform:translateX(-50%) translateZ(var(--z,0)) translateY(0) translateX(140px); }
.layer-atlas.expanded { --z:0; }
.layer-sentinel.expanded { --z:40px; }
.layer-oracle.expanded { --z:80px; }
.layer-care.expanded { --z:120px; }
@media (max-width: 900px){
    .stack-perspective { max-width:300px; }
    .agent-layer { height:62px; }
    .layer-sentinel { bottom:62px; }
    .layer-oracle { bottom:124px; }
    .layer-care { bottom:186px; }
}
@media (max-width: 640px){
    .md\:grid.md\:grid-cols-2.agent-stack-wrapper { display:block; }
    .stack-perspective { margin-bottom:40px; }
    .agent-layer.expanded { transform:translateX(-50%) translateZ(var(--z,0)) translateY(0) translateX(0) translateY(-30px); }
}
.stack-content { position:relative; }
.stack-panel { transition:opacity .4s ease, transform .4s ease; }
.stack-panel[hidden] { display:block; opacity:0; height:0; overflow:hidden; transform:translateY(16px); pointer-events:none; }
.stack-panel.current { opacity:1; transform:translateY(0); }

/* --- CONTROLS (Navegação) --- */
.nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-right: 40px;
    border-left: 1px solid rgba(255,255,255,0.15);
}

.nav-btn {
    background: transparent;
    color: rgba(255,255,255,0.4);
    padding: 18px 30px;
    text-align: left;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    margin-left: -2px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-btn:hover { color: var(--white); }

.nav-btn.current {
    color: var(--white);
    border-left: 3px solid var(--active-color, var(--white));
    background: linear-gradient(90deg, rgba(255,255,255,0.05), transparent);
}

.nav-btn[data-id="atlas"].current { --active-color: #00C3FF; }
.nav-btn[data-id="sentinel"].current { --active-color: var(--alert-yellow); }
.nav-btn[data-id="oracle"].current { --active-color: var(--intel-purple); }
.nav-btn[data-id="care"].current { --active-color: var(--action-green); }

/* --- 3D ISOMETRIC STAGE --- */
.iso-scene-wrapper {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 2500px; 
}

.iso-cube {
    width: var(--cube-size);
    height: var(--cube-size);
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(55deg) rotateZ(45deg); 
    transition: transform 0.6s ease;
}

/* --- GHOST CUBE (Caixa de Vidro) --- */
.ghost-cube {
    position: absolute;
    width: 100%; height: 100%;
    transform-style: preserve-3d;
    pointer-events: none;
    transform: translateZ(calc(var(--slab-spacing) * 1.5)); 
}

.ghost-face {
    position: absolute;
    width: 100%; height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.04); /* vidro discreto */
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.05), rgba(255,255,255,0));
    /* removido blur para não embaçar o conteúdo interno */
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.10) inset; /* leve profundidade */
    backface-visibility: visible;
    transition: border-color .4s ease, background .4s ease;
}

/* Destaque nas arestas frontais */
.gf-front, .gf-right, .gf-top {
    border-color: rgba(255, 255, 255, 0.14); /* reduzido */
    background: rgba(255, 255, 255, 0.028);
}

.gf-front { transform: rotateY(0deg) translateZ(calc(var(--cube-size)/2)); }
.gf-back  { transform: rotateY(180deg) translateZ(calc(var(--cube-size)/2)); }
.gf-right { transform: rotateY(90deg) translateZ(calc(var(--cube-size)/2)); }
.gf-left  { transform: rotateY(-90deg) translateZ(calc(var(--cube-size)/2)); }
.gf-top   { transform: rotateX(90deg) translateZ(calc(var(--cube-size)/2)); }
.gf-bottom{ transform: rotateX(-90deg) translateZ(calc(var(--cube-size)/2)); }

/* --- SOLID SLABS (Gavetas) --- */
.cube-section {
    position: absolute;
    width: 100%; height: 100%;
    transform-style: preserve-3d;
    cursor: pointer;
    transition: transform 0.6s var(--transition-bezier), opacity 0.5s ease;
    will-change: transform, opacity;
    opacity: var(--inactive-opacity);
}

/* Faces do Bloco */
.face { position: absolute; backface-visibility: hidden; }

/* TOPO */
.face-top {
    width: 100%; height: 100%;
    background: linear-gradient(135deg,#ffffff 0%,#f1f5f9 55%,#e2e8f0 100%);
    transform: rotateY(0deg) translateZ(calc(var(--slab-height) / 2));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px #e5e7eb, 0 2px 6px rgba(0,0,0,0.04);
    transition: box-shadow .3s ease;
}

/* LATERAIS */
.face-left {
    width: var(--slab-height); height: 100%;
    background: #9ca3af;
    transform: rotateY(-90deg) translateZ(calc(var(--slab-height) / 2));
    left: 0;
    transform-origin: left center;
    border-right: 1px solid #9097a1; /* menos contraste */
}

.face-front {
    width: 100%; height: var(--slab-height);
    background: #d1d5db; 
    transform: rotateX(-90deg) translateZ(calc(var(--slab-height) / 2));
    bottom: 0;
    transform-origin: bottom center;
    border-top: 1px solid #9ca3af;
}

.slab-content {
    transform: none;
    text-align: center;
    color: #1f2937; /* maior contraste */
    text-shadow: 0 1px 2px rgba(255,255,255,0.4);
}

.slab-icon { font-size: 54px; color: #374151; margin-bottom: 10px; display: block; margin: 0 auto 10px auto; transition: color 0.3s;}
.slab-label { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
.slab-sub { font-size: 11px; font-weight: 500; color: #6b7280; display: block; margin-top: 2px;}

/* POSICIONAMENTO E ANIMAÇÃO - Gaveta Lateral */
.section-atlas    { --z-depth: 0px; transform: translate3d(0, 0, var(--z-depth)); z-index: 10; }
.section-sentinel { --z-depth: var(--slab-spacing); transform: translate3d(0, 0, var(--z-depth)); z-index: 20; }
.section-oracle   { --z-depth: calc(var(--slab-spacing) * 2); transform: translate3d(0, 0, var(--z-depth)); z-index: 30; }
.section-care     { --z-depth: calc(var(--slab-spacing) * 3); transform: translate3d(0, 0, var(--z-depth)); z-index: 40; }

/* Estado Ativo: Desliza lateralmente (Eixo X) sem mudar altura (Z) */
.section-atlas.current    { transform: translate3d(var(--slide-distance), 0, var(--z-depth)); z-index: 100; }
.section-sentinel.current { transform: translate3d(var(--slide-distance), 0, var(--z-depth)); z-index: 100; }
.section-oracle.current   { transform: translate3d(var(--slide-distance), 0, var(--z-depth)); z-index: 100; }
.section-care.current     { transform: translate3d(var(--slide-distance), 0, var(--z-depth)); z-index: 100; }

/* Estilização Ativa */
.cube-section.current .face-top { 
    background: linear-gradient(135deg,#ffffff 0%,#f8fafc 55%,#e2e8f0 100%);
    box-shadow: 0 0 0 2px var(--active-color), 0 0 var(--slab-glow-size) 6px var(--active-color), inset 0 0 0 1px #e2e8f0;
}
.cube-section.current .slab-icon { color: var(--active-color); }
.cube-section.current .slab-label { color: var(--active-color); }

/* Ghosting das inativas */
.cube-section:not(.current) { opacity: var(--inactive-opacity); filter: none; }
.cube-section:not(.current):hover { opacity:1; transform: translate3d(var(--hover-shift),0,var(--z-depth)) scale(1.02); }

.section-atlas { --active-color: var(--atlas-blue); }
.section-sentinel { --active-color: var(--alert-yellow); }
.section-oracle { --active-color: var(--intel-purple); }
.section-care { --active-color: var(--action-green); }

/* === UTILITÁRIOS DE COR PARA CONTEÚDO (agentes) === */
.text-atlas-blue { color: var(--atlas-blue) !important; }
.text-alert-yellow { color: var(--alert-yellow) !important; }
.text-intel-purple { color: var(--intel-purple) !important; }
.text-action-green { color: var(--action-green) !important; }

.bg-atlas-blue { background: var(--atlas-blue) !important; }
.bg-alert-yellow { background: var(--alert-yellow) !important; }
.bg-intel-purple { background: var(--intel-purple) !important; }
.bg-action-green { background: var(--action-green) !important; }

.link-atlas:hover { color: var(--pure-white) !important; }
.link-sentinel:hover { color: var(--pure-white) !important; }
.link-oracle:hover { color: var(--pure-white) !important; }
.link-care:hover { color: var(--pure-white) !important; }

/* --- CONTENT PANEL --- */
.content-slide {
    display: none;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes slabEnter {
    0% { opacity:0; transform: translate3d(0,0,0) scale(var(--slab-scale-in)); }
    70% { opacity:1; }
    100% { opacity:1; transform: translate3d(0,0,0) scale(1); }
}

@media (prefers-reduced-motion: reduce){
    .cube-section, .cube-section.current .face-top { transition:none !important; animation:none !important; }
}

/* Badge overlay */
.state-badge { position:absolute; top:6px; right:8px; font-size:10px; font-weight:700; letter-spacing:.05em; padding:4px 8px; background:rgba(0,0,0,0.55); color:#fff; border-radius:6px; box-shadow:0 0 0 1px rgba(255,255,255,0.08); backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px); opacity:.9; }
.cube-section.current .state-badge { background: var(--active-color); color:#0A1F44; box-shadow:0 0 0 1px var(--active-color), 0 0 14px var(--active-color); }

/* Accordion Mobile */
.agents-accordion { display:none; margin-top:12px; }
.agents-accordion .agent-item { background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.08); padding:14px 16px; border-radius:12px; margin-bottom:10px; cursor:pointer; display:flex; align-items:center; gap:12px; transition:background .25s, border-color .25s; }
.agents-accordion .agent-item:hover { background:rgba(255,255,255,0.08); border-color:rgba(255,255,255,0.18); }
.agents-accordion .agent-item.active { border-color: var(--active-color); box-shadow:0 0 0 1px var(--active-color), 0 0 14px -4px var(--active-color); }

@media (max-width: 768px) {
    .iso-scene-wrapper { display:none; }
    .agents-accordion { display:block; }
}

/* === SEPARAÇÃO DE SEÇÕES === */
.section-block { position: relative; padding: 0px 0; }
.section-block:first-of-type { padding-top: 40px; }
/* Removidos gradientes e linhas para transição totalmente limpa */
@media (max-width:768px){ .section-block { padding:70px 0; } }

/* Variante mais compacta */
.section-block.section-alt { padding: 60px 0; }
@media (max-width:768px){ .section-block.section-alt { padding:48px 0; } }
/* Footer include wrapper: remove bottom padding so footer sits flush */
.section-block.section-alt > footer.site-footer { margin-bottom: 0; }
.section-block.section-alt:last-child { padding-bottom: 0; }

/* Suave separação entre seções (substitui linhas explícitas) */
/* Removido separador suave para eliminar qualquer linha/halo entre seções */
.soft-sep { position: relative; }

/* Ajuste de largura do wrapper para encaixar novo espaçamento */
.framework-wrapper { padding-top: 40px; padding-bottom: 120px; }
.content-slide.current { 
    display: block; 
    opacity: 1; 
    transform: translateX(0); 
    
}

@media (max-width: 1024px) {
    .iso-scene-wrapper { transform: scale(0.75); height: 500px; }
}
@media (max-width: 768px) {
    .nav-buttons { 
        flex-direction: row; border-left: 0; border-bottom: 1px solid rgba(255,255,255,0.15); 
        margin-right: 0; margin-bottom: 2rem; overflow-x: auto; white-space: nowrap; padding-bottom: 10px;
    }
    .nav-btn { border-left: 0; border-bottom: 3px solid transparent; padding: 10px 20px; background: none !important; }
    .nav-btn.current { border-left: 0; border-bottom: 3px solid var(--active-color); }
    
    /* Mobile: Sobe (Z) em vez de lado (X) */
    .section-atlas.current, .section-sentinel.current, .section-oracle.current, .section-care.current {
        transform: translate3d(0, 0, calc(var(--initial-z) + 100px)) !important;
    }
    .ghost-cube { opacity: 0.2; }
}

#iva-sphere-container {
    width: 100%;
    height: 100vh; /* Fill the viewport */
    min-height: 800px; /* Ensure a minimum height */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative; /* Enable positioning of child elements */
}

#iva-sphere-container canvas {
    position: absolute;
    top: -15%; /* Slightly lower */
}

/* --- CHAT POPUP (TEXTO) --- */
#viva-chat-toggle {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9995;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.16);
    background: linear-gradient(135deg, var(--atlas-blue), var(--intel-purple));
    color: #0b0b0d;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.06) inset;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
#viva-chat-toggle:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 16px 38px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.12) inset; }
#viva-chat-toggle:active { transform: translateY(0) scale(0.99); }
#viva-chat-toggle i { font-size: 22px; }
#viva-chat-toggle span { display: none; }
#viva-chat-toggle.open { box-shadow: 0 0 0 1px rgba(255,255,255,0.2) inset, 0 10px 26px rgba(0,0,0,0.32); }
#viva-chat-toggle .viva-chat-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff5f6d, #ff3c3c);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 0 0 6px rgba(255,92,92,0.14), 0 6px 14px rgba(0,0,0,0.35);
    pointer-events: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#viva-chat-popup {
    position: fixed;
    right: 20px;
    bottom: 82px;
    width: 480px;
    max-width: calc(100vw - 48px);
    max-height: 900px;
    min-height: 520px;
    background: radial-gradient(circle at 20% 20%, rgba(0,195,255,0.15), rgba(76,58,255,0.08)), rgba(8,10,18,0.92);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 18px 48px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.04) inset, 0 0 24px rgba(0,195,255,0.08);
    border-radius: 18px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateY(10px) scale(0.98);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
    z-index: 9990;
}
#viva-chat-popup.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.viva-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02), rgba(0,195,255,0.08));
    background-size: 200% 200%;
    animation: viva-gradient 10s ease infinite;
}
.viva-chat-brand { display:flex; align-items:center; gap:10px; width: 100%; justify-content: flex-start; }
.viva-chat-brand-text { display:flex; flex-direction:column; gap:2px; align-items:flex-start; text-align:left; }
.viva-chat-avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: radial-gradient(circle at 25% 25%, #7c7bff, #00c3ff);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 10px 22px rgba(0,0,0,0.45);
    transition: box-shadow 0.25s ease;
    display: grid;
    place-items: center;
}
.viva-chat-avatar.typing { box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 0 0 8px rgba(0,195,255,0.12), 0 12px 26px rgba(0,0,0,0.5); animation: viva-glow 1.8s infinite ease-in-out; }
.viva-chat-avatar i {
    color: #0b0b0d;
    font-size: 18px;
}
.viva-robot {
    display: inline-block;
    animation: viva-wave 1.8s ease-in-out infinite;
    transform-origin: 50% 70%;
}
.viva-chat-status-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    box-shadow: 0 0 0 6px rgba(34,197,94,0.12), 0 0 12px rgba(34,197,94,0.4);
    margin-left: auto;
}
.viva-chat-status-dot.online { animation: viva-pulse 1.8s infinite; }
.viva-chat-status-dot.offline { background: linear-gradient(135deg, #f87171, #ef4444); box-shadow: 0 0 0 6px rgba(248,113,113,0.16), 0 0 12px rgba(239,68,68,0.4); animation: none; }
.viva-chat-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, #b8e8ff, #7c7bff, #00c3ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: viva-title 6s ease infinite;
}
.viva-chat-subtitle {
    font-size: 12px;
    color: #cbd5e1;
    opacity: 0.9;
    margin-top: 2px;
    letter-spacing: 0.01em;
    padding: 2px 8px;
    border-radius: 10px;
    background: radial-gradient(circle at 20% 20%, rgba(124,123,255,0.12), rgba(0,195,255,0.08));
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.viva-chat-subtitle::before {
    content: '•';
    color: #7dd3fc;
    font-size: 14px;
    opacity: 0.9;
}
.viva-chat-subtitle { font-size: 12px; color: #cbd5e1; opacity: 0.85; margin-top: 2px; }
.viva-chat-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    max-height: 700px;
    min-height: 360px;
    background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0));
}
.viva-chat-msg { display: flex; width: 100%; }
.viva-chat-msg.user { justify-content: flex-end; }
.viva-chat-msg.bot { justify-content: flex-start; }
.viva-chat-bubble {
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.5;
    max-width: 90%;
    word-break: break-word;
    border: 1px solid transparent;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.16s ease, transform 0.18s ease;
}
.viva-chat-msg.user .viva-chat-bubble {
    background: linear-gradient(135deg, #00c3ff, #7c7bff);
    color: #0b0b0d;
    box-shadow: 0 8px 22px rgba(0,0,0,0.35);
    border-color: rgba(255,255,255,0.06);
}
.viva-chat-msg.bot .viva-chat-bubble {
    background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.1);
    color: #e2e8f0;
    box-shadow: 0 8px 18px rgba(0,0,0,0.26);
}
.viva-chat-msg .viva-chat-bubble.enter,
.viva-chat-msg.enter .viva-chat-bubble {
    opacity: 1;
    transform: translateY(0);
}
.viva-chat-msg.user .viva-chat-bubble { transition: opacity 0.16s ease, transform 0.2s ease; transform: translateY(8px); }
.viva-chat-msg.bot .viva-chat-bubble { transition: opacity 0.2s ease, transform 0.26s ease; transform: translateY(10px); }

.viva-chat-status {
    padding: 0 14px 6px;
    font-size: 12px;
    color: #a5b4fc;
    min-height: 16px;
}
.viva-chat-status[data-variant="typing"] { color: #7dd3fc; }
.viva-chat-status[data-variant="error"] { color: #fda4af; }
.viva-chat-typing {
    display: none;
    padding: 0 14px 6px;
    gap: 4px;
    align-items: center;
}
.viva-chat-typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #7dd3fc;
    opacity: 0.8;
    animation: viva-bounce 1.1s infinite ease-in-out;
}
.viva-chat-typing span:nth-child(1) { animation-delay: 0s; }
.viva-chat-typing span:nth-child(2) { animation-delay: 0.12s; }
.viva-chat-typing span:nth-child(3) { animation-delay: 0.24s; }

.viva-chat-input {
    padding: 10px 12px 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.02);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}
.viva-chat-suggestions {
    display: flex;
    gap: 8px;
    padding: 0 14px 10px;
    flex-wrap: wrap;
}
.viva-chat-chip {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: #e2e8f0;
    padding: 8px 10px;
    border-radius: 14px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}
.viva-chat-chip:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.16); transform: translateY(-1px); }
.viva-chat-chip:active { transform: translateY(0); }
.viva-chat-textarea {
    width: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(0,195,255,0.05));
    background-size: 200% 200%;
    animation: viva-gradient 10s ease infinite;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: #f8fafc;
    padding: 10px 12px;
    resize: none;
    font-family: inherit;
    min-height: 44px;
}
.viva-chat-textarea:focus {
    outline: 1px solid #4ad2ff;
    border-color: #4ad2ff;
}
.viva-chat-send {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #00c3ff, #7c7bff, #00c3ff);
    background-size: 200% 200%;
    animation: viva-gradient 10s ease infinite;
    color: #0b0b0d;
    font-size: 17px;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.32);
}
.viva-chat-send:hover { transform: translateY(-1px); }
.viva-chat-send.disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.viva-chat-transcript {
    padding: 8px 14px;
    font-size: 12px;
    color: #cbd5e1;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.viva-chat-transcript.hidden { display: none; }

.viva-chat-scrolltop {
    position: absolute;
    right: 16px; /* encosta no canto direito */
    bottom: 120px; /* acima do botão de enviar */
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(0,0,0,0.35);
    color: #e2e8f0;
    display: grid;
    place-items: center;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    box-shadow: 0 8px 16px rgba(0,0,0,0.35);
}
.viva-chat-scrolltop.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.viva-chat-scrolltop i { font-size: 16px; }

@keyframes viva-pulse {
    0% { box-shadow: 0 0 0 6px rgba(34,197,94,0.16), 0 0 12px rgba(34,197,94,0.4); }
    50% { box-shadow: 0 0 0 10px rgba(34,197,94,0.06), 0 0 16px rgba(34,197,94,0.32); }
    100% { box-shadow: 0 0 0 6px rgba(34,197,94,0.16), 0 0 12px rgba(34,197,94,0.4); }
}
@keyframes viva-glow {
    0% { box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 0 0 6px rgba(0,195,255,0.08), 0 8px 20px rgba(0,0,0,0.45); }
    50% { box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 0 0 12px rgba(0,195,255,0.16), 0 12px 26px rgba(0,0,0,0.55); }
    100% { box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 0 0 6px rgba(0,195,255,0.08), 0 8px 20px rgba(0,0,0,0.45); }
}
@keyframes viva-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes viva-wave {
    0% { transform: rotate(0deg) translateY(0); }
    40% { transform: rotate(-8deg) translateY(-1px); }
    60% { transform: rotate(10deg) translateY(-1px); }
    100% { transform: rotate(0deg) translateY(0); }
}
@keyframes viva-title {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes viva-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.8; }
    30% { transform: translateY(-4px); opacity: 1; }
}

@media (max-width: 640px) {
    #viva-chat-popup {
        right: 12px;
        left: 12px;
        bottom: 80px;
        width: auto;
        max-height: 65vh;
        min-height: auto;
        box-shadow: 0 12px 30px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset;
    }
    #viva-chat-toggle { right: 12px; bottom: 12px; }
    .viva-chat-body { max-height: 40vh; min-height: auto; }
    .viva-chat-header { padding: 8px 12px; }
    .viva-chat-input { padding: 8px 10px 10px; }
    .viva-chat-transcript { padding: 6px 12px; }
}