/* Página "Nossa equipe trabalhando" — cores e tipografia da marca CodeWave (as mesmas variáveis de css/style.css). */
:root {
    --bg-primary: #0a0f1c;
    --bg-secondary: #0f1629;
    --bg-card: #141b2d;
    --bg-card-hover: #1a2340;
    --border-color: #1e293b;
    --border-hover: #2d3a54;
    --blue-primary: #3b82f6;
    --blue-secondary: #60a5fa;
    --blue-dark: #2563eb;
    --blue-light: #93c5fd;
    --blue-glow: rgba(59, 130, 246, 0.15);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --gradient-blue: linear-gradient(135deg, #2563eb, #3b82f6, #60a5fa);
    --gradient-blue-text: linear-gradient(135deg, #60a5fa, #3b82f6, #93c5fd);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --c-trabalhando: #3b82f6;
    --c-em_reuniao: #a78bfa;
    --c-descansando: #f59e0b;
    --c-pausado: #94a3b8;
    --c-desconhecido: #64748b;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pular { position: absolute; left: 16px; top: -60px; z-index: 2000; background: var(--blue-primary); color: #fff; padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.pular:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--blue-secondary); outline-offset: 2px; }

/* ── topo ── */
.topo { position: sticky; top: 0; z-index: 100; background: rgba(10, 15, 28, 0.88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--border-color); }
.topo-conteudo { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-img { width: 36px; height: 36px; object-fit: contain; }
.logo-texto { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; }
.logo-destaque { color: var(--blue-primary); font-weight: 600; }
.topo-nav { display: flex; align-items: center; gap: 20px; font-size: 0.9rem; }
.topo-link { color: var(--text-secondary); font-weight: 500; }
.topo-link:hover { color: var(--text-primary); }
.topo-cta { background: var(--gradient-blue); color: #fff; font-weight: 600; padding: 8px 16px; border-radius: 8px; }
.topo-cta:hover { opacity: 0.9; }

/* ── introdução ── */
.intro { padding-top: 48px; padding-bottom: 28px; text-align: center; }
.selo { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--blue-glow); border: 1px solid rgba(59, 130, 246, 0.25); color: var(--blue-light); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em; }
.ponto { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); animation: pulsa 2s infinite; }
@keyframes pulsa { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); } 70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.selo-demo { display: none; }
body.demo .selo-demo { display: inline; color: #fcd34d; }
body.demo .ponto { background: #f59e0b; }
.intro h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; margin: 18px 0 14px; }
.gradiente { background: var(--gradient-blue-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lead { max-width: 720px; margin: 0 auto; color: var(--text-secondary); font-size: 1.05rem; }
.lead strong { color: var(--text-primary); }
.numeros { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 820px; margin: 28px auto 0; }
.numeros li { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 14px 10px; display: flex; flex-direction: column; align-items: center; }
.numeros strong { font-size: 1.7rem; font-weight: 800; line-height: 1.1; background: var(--gradient-blue-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-variant-numeric: tabular-nums; }
.numeros span { font-size: 0.78rem; color: var(--text-secondary); text-align: center; line-height: 1.3; margin-top: 4px; }

/* ── palco 3D ── */
.palco-moldura { padding-top: 8px; }
.palco { position: relative; height: clamp(440px, 70vh, 720px); border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--border-color); background: radial-gradient(120% 90% at 50% 0%, #16213d 0%, var(--bg-primary) 70%); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 0 80px rgba(59, 130, 246, 0.08); isolation: isolate; }
#cena { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.rotulos { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.rotulo { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; transform: translate(-9999px, -9999px); will-change: transform; }
.rotulo .nome { position: absolute; left: 0; top: 0; translate: -50% -100%; pointer-events: auto; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font: 700 0.78rem/1 var(--font-family); color: #fff; background: rgba(10, 15, 28, 0.82); border: 1px solid rgba(255, 255, 255, 0.14); padding: 5px 10px 5px 8px; border-radius: 999px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: transform 0.15s, border-color 0.15s; }
.nome-ponto { width: 8px; height: 8px; border-radius: 50%; background: var(--c-descansando); }
.rotulo[data-estado="trabalhando"] .nome-ponto { background: var(--c-trabalhando); box-shadow: 0 0 8px var(--c-trabalhando); }
.rotulo[data-estado="em_reuniao"] .nome-ponto { background: var(--c-em_reuniao); }
.rotulo[data-estado="pausado"] .nome-ponto { background: var(--c-pausado); }
.rotulo.sobre .nome, .rotulo .nome:hover { border-color: var(--blue-secondary); transform: scale(1.06); }
.balao { display: none; position: absolute; left: 0; top: 0; translate: calc(-50% + var(--dx, 0px)) calc(-100% - 30px); width: max-content; max-width: 210px; background: #fbf8f2; color: #1f2430; border-radius: 12px; padding: 6px 10px 7px; font-size: 0.74rem; line-height: 1.3; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35); text-align: left; }
.balao::after { content: ''; position: absolute; left: calc(50% - var(--dx, 0px)); bottom: -5px; width: 10px; height: 10px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.balao-estado { display: block; font-size: 0.62rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--c-descansando); }
.rotulo[data-estado="trabalhando"] .balao-estado { color: var(--blue-dark); }
.rotulo[data-estado="em_reuniao"] .balao-estado { color: #7c3aed; }
.rotulo[data-estado="pausado"] .balao-estado { color: #64748b; }
.rotulo[data-estado="descansando"] .balao-estado { color: #b45309; }
.rotulo.falando .balao, .rotulo.sobre .balao { display: block; animation: surge 0.25s ease-out; }
@keyframes surge { from { opacity: 0; translate: calc(-50% + var(--dx, 0px)) calc(-100% - 22px); } }
.rotulo:not([data-estado]) .balao { display: none; }
.rotulo-ceo .balao { display: none; }
.rotulo-ceo .nome-ponto { background: #22c55e; }
.nome-cargo { font-size: 0.6rem; font-weight: 800; letter-spacing: 0.06em; color: #86efac; background: rgba(34, 197, 94, 0.15); border-radius: 4px; padding: 2px 4px; margin-left: 2px; }
.rotulo.em-foco .nome { border-color: var(--blue-secondary); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35); }
.rotulo.em-foco .balao { display: block; }
.palco-barra { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; font-size: 0.78rem; color: var(--text-secondary); background: linear-gradient(transparent, rgba(10, 15, 28, 0.85)); pointer-events: none; }
.aviso { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 32px); background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.4); color: #fcd34d; font-size: 0.8rem; padding: 6px 12px; border-radius: 999px; text-align: center; z-index: 5; }
.legenda { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 14px; font-size: 0.8rem; color: var(--text-secondary); }
.legenda li { display: inline-flex; align-items: center; gap: 6px; }
.legenda li::before { content: ''; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--cor); }
.legenda [data-estado="trabalhando"] { --cor: var(--c-trabalhando); }
.legenda [data-estado="em_reuniao"] { --cor: var(--c-em_reuniao); }
.legenda [data-estado="descansando"] { --cor: var(--c-descansando); }
.legenda [data-estado="pausado"] { --cor: var(--c-pausado); }

/* ── escritório 2D (sem WebGL) ── */
body.sem-3d #cena, body.sem-3d .rotulos { display: none; }
body.sem-3d .palco { height: auto; padding: 56px 16px 52px; }
.escritorio-2d { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.mesa-2d { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; background: rgba(236, 227, 212, 0.06); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 14px 10px 12px; color: var(--text-primary); font: inherit; cursor: pointer; }
.mesa-2d:hover { border-color: var(--border-hover); }
.boneco { width: 100%; max-width: 150px; overflow: visible; }
.mesa-2d-nome { font-weight: 700; font-size: 0.9rem; }
.mesa-2d-balao { font-size: 0.78rem; color: var(--text-secondary); text-align: center; line-height: 1.35; min-height: 2.7em; }
.b-celular, .b-caneca, .b-zz { opacity: 0; }
.mesa-2d[data-anim="digitando"] .b-bracos { animation: digita 0.28s infinite alternate; }
.mesa-2d[data-anim="celular"] .b-celular { opacity: 1; }
.mesa-2d[data-anim="celular"] .b-cabeca { transform: translateY(2px); }
.mesa-2d[data-anim="conversando"] .b-boca { animation: fala 0.25s infinite alternate; transform-origin: 60px 42px; }
.mesa-2d[data-anim="conversando"] .b-cabeca { animation: acena 1.6s ease-in-out infinite; transform-origin: 60px 46px; }
.mesa-2d[data-anim="cafe"] .b-caneca { opacity: 1; }
.mesa-2d[data-anim="cafe"] .b-vapor { animation: vapor 1.8s infinite; }
.mesa-2d[data-anim="descanso"] .b-zz { opacity: 1; animation: zz 2.4s infinite; }
.mesa-2d[data-anim="descanso"] .b-olho { transform: scaleY(0.3); transform-box: fill-box; transform-origin: center; }
@keyframes digita { from { transform: translateY(0); } to { transform: translateY(-2px); } }
@keyframes fala { from { transform: scaleY(1); } to { transform: scaleY(2.4); } }
@keyframes acena { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes vapor { from { transform: translateY(0); opacity: 0.8; } to { transform: translateY(-12px); opacity: 0; } }
@keyframes zz { from { transform: translate(0, 0); opacity: 0; } 40% { opacity: 1; } to { transform: translate(6px, -10px); opacity: 0; } }

/* ── lista em texto ── */
.lista-moldura { padding-top: 56px; outline: none; }
.lista-moldura h2, .como h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; letter-spacing: -0.01em; margin-bottom: 18px; }
.lista { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.item-botao { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 14px 16px; color: var(--text-primary); font: inherit; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.item-botao:hover { background: var(--bg-card-hover); border-color: var(--border-hover); }
.item-texto { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.item-topo { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.item-papel { font-size: 0.8rem; color: var(--text-secondary); }
.item-atividade { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.4; }
.item-tempo { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; align-self: flex-start; }
.chip { display: inline-block; font-size: 0.66rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 7px; border-radius: 6px; margin-right: 4px; vertical-align: 1px; color: var(--c, var(--c-desconhecido)); background: color-mix(in srgb, var(--c, var(--c-desconhecido)) 16%, transparent); border: 1px solid color-mix(in srgb, var(--c, var(--c-desconhecido)) 35%, transparent); }
.chip[data-estado="trabalhando"] { --c: var(--c-trabalhando); }
.chip[data-estado="em_reuniao"] { --c: var(--c-em_reuniao); }
.chip[data-estado="descansando"] { --c: var(--c-descansando); }
.chip[data-estado="pausado"] { --c: var(--c-pausado); }
.chip[data-estado="ceo"] { --c: #22c55e; }
.avatar { display: block; position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--cor); overflow: hidden; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.12); }
.avatar-cabeca { position: absolute; left: 50%; top: 9px; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: var(--pele); box-shadow: 0 -5px 0 -1px var(--cabelo); }
.avatar::after { content: ''; position: absolute; left: 50%; bottom: -14px; width: 34px; height: 26px; margin-left: -17px; border-radius: 50%; background: rgba(0, 0, 0, 0.18); }

/* ── como funciona ── */
.como { padding-top: 64px; padding-bottom: 72px; }
.cartoes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cartao { background: linear-gradient(145deg, var(--bg-card), var(--bg-secondary)); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 22px; }
.cartao h3 { font-size: 1.02rem; margin-bottom: 8px; }
.cartao p { color: var(--text-secondary); font-size: 0.92rem; }
.chamada { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; border-radius: var(--radius-lg); background: var(--blue-glow); border: 1px solid rgba(59, 130, 246, 0.25); }
.chamada p { font-weight: 600; font-size: 1.05rem; }
.botao { display: inline-flex; align-items: center; padding: 12px 22px; border-radius: var(--radius-md); background: var(--gradient-blue); color: #fff; font-weight: 700; box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3); }
.botao:hover { transform: translateY(-1px); }

/* ── painel do agente ── */
.painel { position: fixed; z-index: 500; right: 20px; top: 84px; width: min(380px, calc(100vw - 32px)); max-height: calc(100vh - 104px); overflow: auto; background: #111a2e; border: 1px solid var(--border-hover); border-radius: var(--radius-lg); padding: 22px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); opacity: 0; transform: translateY(8px); transition: opacity 0.2s, transform 0.2s; display: flex; flex-direction: column; gap: 16px; }
.painel.aberto { opacity: 1; transform: none; }
.painel[hidden] { display: none; }
.painel-fechar { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border-color); background: transparent; color: var(--text-secondary); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.painel-fechar:hover { color: var(--text-primary); border-color: var(--border-hover); }
.painel-cabeca { display: flex; align-items: center; gap: 14px; padding-right: 36px; }
.painel-avatar { flex: none; }
.painel-cabeca .avatar { width: 56px; height: 56px; }
.painel-cabeca .avatar-cabeca { width: 28px; height: 28px; margin-left: -14px; top: 11px; }
.painel h2 { font-size: 1.3rem; line-height: 1.2; }
.painel-papel { color: var(--blue-secondary); font-weight: 600; font-size: 0.88rem; }
.painel-descricao { color: var(--text-secondary); font-size: 0.92rem; }
.painel h3 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 6px; }
.painel-agora p { font-size: 0.92rem; }
.painel-hoje { display: flex; flex-direction: column; gap: 6px; }
.painel-hoje li { font-size: 0.9rem; padding-left: 18px; position: relative; }
.painel-hoje li::before { content: ''; position: absolute; left: 2px; top: 0.6em; width: 7px; height: 7px; border-radius: 2px; background: var(--blue-primary); }
.painel-hoje li.vazio { color: var(--text-muted); padding-left: 0; }
.painel-hoje li.vazio::before { display: none; }

.rodape { border-top: 1px solid var(--border-color); padding: 22px 0; color: var(--text-muted); font-size: 0.85rem; text-align: center; }
.rodape a { color: var(--text-secondary); }

/* ── celular ── */
@media (max-width: 760px) {
    .container { padding: 0 16px; }
    .topo-link { display: none; }
    .intro { padding-top: 32px; }
    .lead { font-size: 0.98rem; }
    .numeros { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .palco { height: min(132vw, 78vh); min-height: 460px; border-radius: var(--radius-lg); }
    .balao { max-width: 160px; font-size: 0.68rem; }
    .rotulo .nome { font-size: 0.64rem; padding: 3px 7px 3px 6px; gap: 4px; }
    .nome-ponto { width: 6px; height: 6px; }
    .nome-cargo { font-size: 0.52rem; padding: 1px 3px; }
    .palco-barra { flex-direction: column; gap: 2px; padding: 8px 12px; }
    .lista { grid-template-columns: 1fr; }
    .cartoes { grid-template-columns: 1fr; }
    .escritorio-2d { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .painel { left: 16px; right: 16px; top: auto; bottom: 16px; width: auto; max-height: 70vh; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
