/* ===== DataCore · Campus Consciente ===== */
:root {
  --bg: #04070d; --bg2: #080e1a; --panel: #0c1524; --panel2: #111c2e; --hair: #1c2838;
  --blue: #0171d4; --cyan: #00c0f0; --silver: #c7d3dc; --white: #f2f6fa; --muted: #8593a3; --dim: #4a5666;
  --verde: #22c55e; --amarelo: #eab308; --laranja: #f97316; --vermelho: #ef4444;
  --radius: 14px; --max: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; background: var(--bg); color: var(--white); line-height: 1.55; overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1;
  background: radial-gradient(1100px 650px at 90% 8%, rgba(1, 113, 212, .22), transparent 60%),
              radial-gradient(900px 600px at 5% 95%, rgba(0, 192, 240, .12), transparent 60%), var(--bg); }
main { flex: 1; }
a { color: var(--cyan); text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3 { font-weight: 800; letter-spacing: -.01em; margin: 0 0 .4em; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3.2rem); line-height: 1.12; }
h2 { font-size: clamp(1.45rem, 2.8vw, 2.1rem); line-height: 1.2; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; color: var(--silver); overflow-wrap: anywhere; }
.muted { color: var(--muted); } .cyan { color: var(--cyan); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
section { padding: 72px 0; }
section.apertada { padding-top: 0; }
.eyebrow { font-size: .72rem; font-weight: 800; letter-spacing: .28em; text-transform: uppercase; color: var(--cyan); margin-bottom: 12px; }
.lead { font-size: 1.12rem; color: var(--silver); max-width: 740px; }

/* ----- nav ----- */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); background: rgba(4, 7, 13, .8); border-bottom: 1px solid var(--hair); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: .16em; font-size: .92rem; color: var(--silver); white-space: nowrap; }
.brand img { height: 32px; width: auto; }
.brand b { color: var(--blue); }
.menu { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.menu a { color: var(--silver); font-weight: 600; font-size: .9rem; padding: 8px 11px; border-radius: 8px; white-space: nowrap; }
.menu a:hover, .menu a.ativo { background: rgba(0, 192, 240, .1); color: var(--white); }
.btn-login { border: 1px solid var(--hair); background: transparent; color: var(--silver); font: inherit; font-weight: 600; font-size: .9rem; padding: 7px 13px; border-radius: 10px; cursor: pointer; white-space: nowrap; }
.btn-login:hover { border-color: var(--cyan); color: var(--white); }
.hamb { display: none; background: none; border: 1px solid var(--hair); border-radius: 8px; color: var(--white); font-size: 1.3rem; cursor: pointer; padding: 4px 10px; }
@media (max-width: 860px) {
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--bg2); padding: 10px; border-bottom: 1px solid var(--hair); }
  .menu.aberto { display: flex; }
  .menu a { padding: 12px; }
  .hamb { display: block; }
}

/* ----- botões ----- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 20px; border-radius: 12px; font: inherit; font-weight: 700; border: 1px solid transparent; cursor: pointer; transition: transform .15s; text-align: center; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff; box-shadow: 0 10px 30px rgba(0, 192, 240, .22); }
.btn-ghost { border-color: var(--hair); color: var(--silver); background: rgba(255, 255, 255, .02); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--white); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* ----- hero ----- */
.hero { padding: 60px 0 36px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 36px; align-items: center; }
.hero img.logo { width: 100%; max-width: 500px; display: block; margin: 0 auto; filter: drop-shadow(0 0 40px rgba(0, 192, 240, .25)); animation: flutua 6s ease-in-out infinite; }
@keyframes flutua { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }
.hero h1 span { color: var(--cyan); }
.niveis { display: flex; gap: 10px; margin-top: 16px; }
.niveis i { width: 13px; height: 13px; border-radius: 50%; display: block; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero img.logo { max-width: 340px; } }

/* ----- 3D ----- */
.cena { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--hair); background: #060b14; height: clamp(320px, 55vw, 560px); }
.cena canvas { display: block; }
.cena .dica { position: absolute; left: 14px; bottom: 12px; font-size: .76rem; color: var(--muted); background: rgba(4, 7, 13, .65); padding: 6px 10px; border-radius: 8px; pointer-events: none; }
.cena .falha { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 30px; color: var(--muted); }
.legenda { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-top: 16px; }
.legenda > div { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--hair); border-radius: 12px; background: rgba(12, 21, 36, .6); }
.legenda b { display: block; color: var(--white); margin-bottom: 2px; }
.legenda small { color: var(--muted); line-height: 1.4; display: block; }
.legenda .n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .8rem; color: #04070d; background: var(--cyan); }
.legenda .n.l { background: var(--laranja); } .legenda .n.v { background: var(--verde); } .legenda .n.r { background: var(--vermelho); }
.label3d { background: rgba(4, 7, 13, .8); border: 1px solid rgba(0, 192, 240, .5); color: var(--white); font: 600 12px/1 Inter, system-ui, sans-serif; padding: 6px 9px; border-radius: 8px; white-space: nowrap; pointer-events: none; }
.label3d b { color: var(--cyan); margin-right: 6px; }

/* ----- grades e cartões ----- */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid.larga { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.pilar { padding: 26px; border-radius: var(--radius); border: 1px solid var(--hair); background: linear-gradient(180deg, rgba(17, 28, 46, .7), rgba(12, 21, 36, .4)); min-width: 0; }
.pilar .ico { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--cyan); display: grid; place-items: center; margin-bottom: 14px; }
.pilar .ico svg { width: 24px; height: 24px; stroke: var(--cyan); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pilar p { color: var(--muted); margin: 0; font-size: .95rem; }
.cardlink { display: flex; flex-direction: column; padding: 24px; border-radius: var(--radius); border: 1px solid var(--hair); background: rgba(12, 21, 36, .55); color: var(--white); transition: border-color .15s, transform .15s; min-width: 0; }
.cardlink:hover { border-color: var(--cyan); transform: translateY(-3px); }
.cardlink .eyebrow { margin-bottom: 6px; }
.cardlink p { color: var(--muted); margin: 0 0 14px; font-size: .94rem; flex: 1; }
.cardlink .seta { color: var(--cyan); font-weight: 700; }

/* ----- equipe ----- */
.time { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.membro { text-align: center; padding: 22px 14px; border: 1px solid var(--hair); border-radius: var(--radius); background: rgba(12, 21, 36, .55); display: flex; flex-direction: column; align-items: center; min-width: 0; }
.membro .foto { width: 104px; height: 104px; border-radius: 50%; margin-bottom: 14px; background: linear-gradient(135deg, #0e1a2e, #16263e); border: 2px solid var(--blue); display: grid; place-items: center; overflow: hidden; flex: none; }
.membro .foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.membro .foto span { font-weight: 900; font-size: 1.6rem; color: var(--cyan); }
.membro b { display: block; font-size: 1rem; }
.membro small { display: block; color: var(--muted); margin: 4px 0 12px; font-size: .8rem; line-height: 1.4; flex: 1; }
.membro a { display: inline-flex; gap: 6px; align-items: center; font-size: .84rem; font-weight: 600; }

/* ----- destaque / contato / rodapé ----- */
.destaque { border-radius: 18px; border: 1px solid var(--hair); padding: 34px; background: linear-gradient(135deg, rgba(1, 113, 212, .18), rgba(0, 192, 240, .08)); display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: space-between; }
.destaque > div { flex: 1 1 420px; min-width: 0; }
.destaque h2 { margin-bottom: 6px; }
footer { border-top: 1px solid var(--hair); padding: 26px 0; color: var(--muted); font-size: .84rem; margin-top: 40px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ----- modal login ----- */
.modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .65); display: none; place-items: center; z-index: 100; padding: 20px; }
.modal.aberto { display: grid; }
.modal .caixa { width: min(420px, 100%); background: var(--panel2); border: 1px solid var(--hair); border-radius: 18px; padding: 26px; }
.modal input { width: 100%; padding: 12px; border-radius: 10px; border: 1px solid var(--hair); background: var(--bg2); color: var(--white); font: inherit; margin: 8px 0 14px; }
.modal .acoes { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* ----- páginas de conteúdo ----- */
.pagina { padding: 52px 0 20px; }
.bloco { padding: 24px; border: 1px solid var(--hair); border-radius: var(--radius); background: rgba(12, 21, 36, .5); margin-bottom: 18px; min-width: 0; }
table.tab { width: 100%; border-collapse: collapse; margin: 10px 0 18px; font-size: .94rem; }
.tab th, .tab td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--hair); vertical-align: top; }
.tab th { color: var(--cyan); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.rolagem { overflow-x: auto; }
.chip { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; border: 1px solid var(--hair); color: var(--silver); margin: 2px 4px 2px 0; }
details { border: 1px solid var(--hair); border-radius: 12px; padding: 0 18px; margin-bottom: 10px; background: rgba(12, 21, 36, .5); }
summary { cursor: pointer; padding: 15px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--cyan); font-weight: 900; flex: none; }
details[open] summary::after { content: "–"; }
details p { padding-bottom: 14px; }
code { background: rgba(0, 192, 240, .1); color: var(--cyan); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.formula { font-family: ui-monospace, Consolas, Menlo, monospace; font-size: .88rem; line-height: 1.6; background: var(--bg2); border: 1px solid var(--hair); border-radius: 12px; padding: 16px; color: var(--silver); overflow-x: auto; white-space: pre; }

/* ----- animação de entrada: só quando o JS está ativo ----- */
body.js .revelar { opacity: 0; transform: translateY(16px); transition: opacity .6s, transform .6s; }
body.js .revelar.visto { opacity: 1; transform: none; }

/* ----- janela de login ----- */
.modal .caixa { position: relative; max-height: 92vh; overflow-y: auto; }
.modal label { display: block; font-size: .82rem; color: var(--muted); margin-top: 4px; }
.modal input { margin: 6px 0 10px; }
.modal .fechar { position: absolute; top: 10px; right: 12px; background: none; border: 0; color: var(--muted); font-size: 1.5rem; cursor: pointer; line-height: 1; }
.modal .fechar:hover { color: var(--white); }
.pequeno { font-size: .86rem; }
.btn-google { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 11px; border-radius: 10px; border: 1px solid var(--hair); background: #fff; color: #1f2937; font: inherit; font-weight: 700; cursor: pointer; margin: 6px 0 4px; }
.btn-google:hover { box-shadow: 0 0 0 2px rgba(0, 192, 240, .4); }
.ou { display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: .78rem; margin: 14px 0 10px; }
.ou::before, .ou::after { content: ""; flex: 1; height: 1px; background: var(--hair); }
.abas { display: flex; gap: 6px; margin-bottom: 8px; }
.aba { flex: 1; padding: 8px; border-radius: 8px; border: 1px solid var(--hair); background: transparent; color: var(--muted); font: inherit; font-weight: 700; font-size: .86rem; cursor: pointer; }
.aba.ativa { background: rgba(0, 192, 240, .12); border-color: var(--cyan); color: var(--white); }
.largo { width: 100%; margin-top: 6px; }
.link { background: none; border: 0; color: var(--cyan); font: inherit; font-size: .84rem; cursor: pointer; padding: 10px 0 0; }
button:disabled { opacity: .5; cursor: not-allowed; }
