/* ============================================================
   ajuda.vc — portal de acesso aos painéis Applied Intelligence
   Identidade Applied Intelligence v4.1 (docs/id_visual_appint)
   Tom sóbrio/utilitário: grafite + azul elétrico, sem peça de venda.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Paleta oficial (06_Paleta_Tokens/brand-tokens.css) */
  --preto-profundo: #0B0B0D;
  --grafite: #1A1D24;
  --azul-eletrico: #2563FF;
  --roxo-tecnologico: #6E3CFF;
  --dourado: #D4AF37;
  --dourado-claro: #F2C866;
  --branco-gelo: #F5F7FA;

  --grad-marca: linear-gradient(135deg, #2563FF 0%, #6E3CFF 100%);
  --grad-dourado: linear-gradient(135deg, #F2C866 0%, #D4AF37 100%);

  /* Neutros derivados */
  --superficie: #12141A;
  --superficie-2: #171A21;
  --linha: rgba(245, 247, 250, 0.10);
  --texto: var(--branco-gelo);
  --texto-suave: rgba(245, 247, 250, 0.70);
  --texto-fraco: rgba(245, 247, 250, 0.52);

  --container: 1040px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.30);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);

  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--texto);
  background: var(--preto-profundo);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(1.85rem, 4vw, 2.7rem); font-weight: 700; }
h2 { font-size: clamp(1.45rem, 2.8vw, 2rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }

p { margin: 0 0 1rem; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

section { padding-block: clamp(48px, 6.5vw, 84px); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dourado);
  margin-bottom: 0.9rem;
}

.section-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head p { color: var(--texto-suave); margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--grad-marca);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-ghost {
  background: transparent;
  color: var(--texto);
  border-color: var(--linha);
}
.btn-ghost:hover { border-color: rgba(122, 154, 255, 0.7); color: #A9C0FF; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 13, 0.85);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.scrolled { border-bottom-color: var(--linha); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

/* Lockup endossado (manual §8): símbolo oficial + nome, sem redesenho */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 6px 0;
}
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.26rem;
  letter-spacing: -0.02em;
  color: var(--texto);
}
.brand-by {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--texto-fraco);
}

.nav { display: flex; align-items: center; gap: 26px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--texto-suave);
}
.nav-links a:hover { color: #A9C0FF; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: none;
  border: 1px solid var(--linha);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--texto); border-radius: 2px; }

/* ---------- Hero (curto, utilitário) ---------- */
.hero {
  position: relative;
  padding-block: clamp(52px, 7vw, 88px) clamp(40px, 5vw, 64px);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -40% 30% 30% -10%;
  background: radial-gradient(closest-side, rgba(37, 99, 255, 0.20), transparent);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; max-width: 780px; }
.hero p { color: var(--texto-suave); font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4rem; }

/* ---------- Painéis ---------- */
.paineis { background: var(--grafite); }
.paineis-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.painel-card {
  display: flex;
  flex-direction: column;
  background: var(--superficie);
  border: 1px solid var(--linha);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.painel-card.disponivel:hover { border-color: rgba(122, 154, 255, 0.45); }
.painel-card.em-breve { opacity: 0.92; }

.painel-topo {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}
.painel-card h3 { margin: 0; }
.painel-card p { color: var(--texto-suave); font-size: 0.97rem; flex: 1; }

.badge {
  flex: none;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
.badge-breve {
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.32);
  color: var(--dourado-claro);
}
.badge-ativo {
  background: rgba(46, 204, 113, 0.12);
  border: 1px solid rgba(46, 204, 113, 0.32);
  color: #7ee2a8;
}

.painel-endereco {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
  color: var(--texto-fraco);
  background: var(--superficie-2);
  border: 1px solid var(--linha);
  border-radius: var(--radius-sm);
  padding: 9px 13px;
  margin: 0;
}

/* ---------- Acesso ---------- */
.acesso-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.acesso-card {
  background: var(--superficie);
  border: 1px solid var(--linha);
  border-radius: var(--radius-sm);
  padding: 24px 22px;
}
.acesso-card .num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--grad-marca);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.acesso-card h3 { font-size: 1.02rem; margin-bottom: 0.3rem; }
.acesso-card p { font-size: 0.94rem; color: var(--texto-suave); margin: 0; }

/* ---------- Suporte ---------- */
.suporte { background: var(--grafite); }
.suporte-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--superficie);
  border: 1px solid var(--linha);
  border-radius: var(--radius);
  padding: 30px 32px;
}
.suporte-box h2 { margin-bottom: 0.35rem; }
.suporte-box p { color: var(--texto-suave); margin: 0; max-width: 46ch; }
.suporte-box .btn { flex: none; }

/* ---------- Aviso de segurança ---------- */
.aviso {
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: rgba(212, 175, 55, 0.06);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  color: var(--texto-suave);
  font-size: 0.95rem;
}
.aviso strong { color: var(--texto); }
.aviso p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--preto-profundo);
  border-top: 1px solid var(--linha);
  padding-block: 44px 24px;
  font-size: 0.93rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  padding-bottom: 26px;
}
.footer-logo img { width: 190px; margin-bottom: 12px; }
.footer-assinatura { color: var(--texto-fraco); font-size: 0.9rem; margin: 0; }
.footer-col h4 {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dourado);
  margin: 0 0 0.8rem;
}
.footer-col p { color: var(--texto-suave); margin: 0; }
.footer-col a { color: var(--texto-suave); text-decoration: none; }
.footer-col a:hover { color: #A9C0FF; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--linha);
  color: var(--texto-fraco);
  font-size: 0.86rem;
}

/* ---------- Reveal on scroll (progressive enhancement) ---------- */
.js-enabled .reveal { opacity: 0; transform: translateY(14px); }
.js-enabled .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* ---------- Responsivo ---------- */
@media (max-width: 860px) {
  .acesso-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }

  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    background: var(--preto-profundo);
    border-bottom: 1px solid var(--linha);
    display: none;
  }
  .nav.open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a { display: block; padding: 12px 0; border-bottom: 1px solid var(--linha); }
  .nav .btn { margin-top: 14px; }

  .paineis-grid,
  .footer-top { grid-template-columns: 1fr; }

  .suporte-box { padding: 24px; }
  .suporte-box .btn,
  .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .js-enabled .reveal { opacity: 1; transform: none; }
}
