/* Mineratório · base comum (brandbook Academine). Módulos linkam este arquivo e trazem só o próprio CSS. */
/* ---------- fontes do Academine (OFL) ---------- */
@font-face { font-family: "Poppins"; src: url("../brand/fontes/poppins-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../brand/fontes/poppins-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../brand/fontes/poppins-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../brand/fontes/poppins-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../brand/fontes/poppins-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../brand/fontes/poppins-latin-ext-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-02BA, U+1E00-1E9F; }
@font-face { font-family: "Poppins"; src: url("../brand/fontes/poppins-latin-ext-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0100-02BA, U+1E00-1E9F; }
@font-face { font-family: "Inter Tight"; src: url("../brand/fontes/inter-tight-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }

/* ---------- tokens (brandbook Academine; nomes --ct-* mantidos para o resto do CSS) ---------- */
:root {
  --am-fundo: #100E1B; --am-fundo-alt: #1A1726; --am-elevado: #211D30; --am-roxo: #451AFF; --am-roxo-claro: #5D33FB; --am-roxo-escuro: #330CC4;
  --am-lima: #D7F62D; --am-texto-2: #9498B7; --am-linha-topo: #2A233A;
  --am-grad-botao: linear-gradient(151deg, var(--am-roxo-claro) 0%, var(--am-roxo-escuro) 100%);
  --ct-lime-050: rgba(69,26,255,.16); --ct-lime-100: rgba(215,246,45,.16); --ct-lime-500: var(--am-lima); --ct-lime-600: #B2D10B;
  --ct-n-000: #ffffff; --ct-n-100: rgba(255,255,255,.07); --ct-n-400: #8A8EAD; --ct-n-900: #100E1B;
  --ct-bg: var(--am-fundo); --ct-surface: var(--am-fundo-alt); --ct-surface-alt: var(--am-elevado);
  --ct-text: #ffffff; --ct-text-soft: var(--am-texto-2); --ct-line: rgba(255,255,255,.08); --ct-line-strong: rgba(255,255,255,.15);
  --ct-sans: "Poppins", system-ui, sans-serif;
  --ct-mono: "Poppins", system-ui, sans-serif;
  --am-f-display: "Helvetica Now Text", "Inter Tight", "Poppins", sans-serif;
  --ct-r-md: 12px; --ct-r-lg: 16px; --ct-r-pill: 999px; --am-r: 16px;
  --ct-sh-card: 0 20px 31px rgba(0,0,0,.25);
  --ct-focus: var(--am-lima);
  --top-h: 76px;
  /* desenhos e 3D (paleta escura) */
  --surface: var(--ct-surface); --bg: var(--ct-bg); --stage-bg: #15121F; --stage-floor: #221E31;
  --ink: #d9dfd6; --metal: #3f74a8; --metal2: #5d7488; --orange: #d08436; --rock: #a85a38; --rock2: #5e2f1f;
  --sand: #a99470; --water: #3f7ea6; --mud: #8a5e40; --gold: #f2c94c; --wood: #8f6238; --fire: #f07048;
  --carpet: #5b7552; --paper: #2a2738; --tire: #0e0c16;
  color-scheme: dark;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 12px); }
body { margin: 0; background: var(--ct-bg); color: var(--ct-text); font: 400 15px/1.6 var(--ct-sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
p { margin: 0; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ct-focus); outline-offset: 2px; }
.wrap { max-width: 1320px; margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)); }
.label { font-family: var(--ct-sans); font-weight: 600; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ct-text-soft); }
.num { font-family: var(--ct-sans); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.card { background: var(--ct-surface); border: 1px solid var(--ct-line); border-radius: var(--ct-r-lg); box-shadow: var(--ct-sh-card); }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: var(--ct-r-pill); background: rgba(255,255,255,.05); border: 1px solid var(--ct-line); font: 500 12px var(--ct-sans); letter-spacing: .02em; color: var(--ct-text-soft); white-space: nowrap; }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ct-lime-500); }
.olho { font: 700 15px var(--ct-sans); letter-spacing: .02em; text-transform: uppercase; color: #DEFD32; }

/* ---------- topo comum: Academine | Mineratório + módulos ---------- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--ct-bg) 90%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--ct-line); }
.top .wrap { min-height: var(--top-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand a { display: flex; color: inherit; text-decoration: none; }
.brand img { height: 32px; width: auto; }
.brand .bar { width: 1px; height: 26px; background: var(--ct-line-strong); }
.brand b { font-weight: 600; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; }
.mods { display: flex; align-items: center; gap: 6px; }
.mods a, .mods .off { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 12px; font-size: 14.5px; font-weight: 600; color: var(--ct-text-soft); text-decoration: none; white-space: nowrap; transition: color .15s, background .15s; }
.mods a:hover { color: #fff; background: rgba(255,255,255,.05); }
.mods a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.07); box-shadow: inset 0 -2px 0 var(--am-roxo-claro); }
.mods .off { cursor: default; opacity: .55; }
.mods .off small { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; border: 1px solid var(--ct-line-strong); }

/* ---------- fundo de curvas de nível ---------- */
.topo-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.topo-bg::before { content: ""; position: absolute; opacity: .7; inset: -10% -20%; background: var(--am-linha-topo); -webkit-mask: url(../brand/linhas-soltas.svg) center/cover no-repeat; mask: url(../brand/linhas-soltas.svg) center/cover no-repeat; }
main { position: relative; isolation: isolate; }

/* ---------- rodapé ---------- */
.rodape { border-top: 1px solid var(--ct-line); background: var(--am-fundo-alt); }
.rodape .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 28px; color: var(--ct-text-soft); font-size: 13px; font-weight: 500; }
.rodape img { height: 28px; width: auto; }

/* ---------- camada visual (26/10/2026): coluna estreita, cards em degradê, luz roxa, títulos em dois tons, ícone de seção ---------- */
.wrap { max-width: 1200px; }
.card { background: linear-gradient(180deg, #221D33 0%, #100D19 100%); border-color: rgba(255,255,255,.08); }
.tom { color: var(--ct-text-soft); }
.sec-ico { display: block; width: 30px; height: 30px; margin-bottom: 12px; color: var(--am-lima); }
.sec-ico svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.topo-bg::before { opacity: .45; }
.topo-bg::after { content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 520px at 8% 0%, rgba(69,26,255,.20), transparent 70%),
    radial-gradient(800px 640px at 100% 38%, rgba(69,26,255,.12), transparent 70%),
    radial-gradient(820px 640px at 0% 80%, rgba(69,26,255,.10), transparent 70%); }

@media (max-width: 760px) {
  :root { --top-h: 108px; }
  .top .wrap { flex-direction: column; align-items: stretch; gap: 6px; padding-block: 10px; }
  .mods { margin-inline: -8px; overflow-x: auto; scrollbar-width: none; }
  .mods::-webkit-scrollbar { display: none; }
  .mods a, .mods .off { height: 38px; padding: 0 10px; font-size: 14px; flex: 0 0 auto; }
  @media (max-width: 360px) { .mods a, .mods .off { padding: 0 8px; font-size: 13.5px; } }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
