/* ============================================================
   BASE — Design tokens, reset, utilitários, header, footer
   ============================================================ */

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --bg:         #050505;  /* preto absoluto */
  --surface:    #111111;  /* cards / painéis */
  --border:     #2A2A2A;  /* bordas super finas */
  --text:       #EAEAEA;  /* off-white fosco */
  --muted:      #5a5a5a;  /* texto secundário */
  --dim:        #333333;  /* texto fora de foco */
  --accent:     #059669;  /* verde esmeralda mutado */
  --accent-dim: #057857;

  --serif: "Cormorant Garamond", Georgia, serif;
  --mono:  "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================================
   RESET
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  overflow-x: hidden;
  line-height: 1.4;
}

/* Vignette sutil para "profundidade de terminal" */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9000;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.55) 100%);
  mix-blend-mode: multiply;
}

::selection { background: var(--accent); color: #000; }

a { color: inherit; text-decoration: none; }

/* ============================================================
   UTILITÁRIOS
   ============================================================ */
.mono { font-family: var(--mono); }

/* Label tag — [ CAPITAL PACIENTE ] */
.tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ============================================================
   HEADER — ultra limpo, transparente no topo / blur ao rolar
   ============================================================ */
header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.6rem clamp(1.5rem, 5vw, 4rem);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), padding 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
header.scrolled {
  background: rgba(5,5,5,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding-top: 1.1rem; padding-bottom: 1.1rem;
}

/* Logo: vetor 2D minimalista — "A" / eixo */
.logo { display: flex; align-items: center; gap: 0.7rem; }
.logo svg { width: 26px; height: 26px; display: block; }
.logo-text {
  font-family: var(--mono);
  font-size: 0.92rem;
  letter-spacing: 0.18em;
  font-weight: 500;
}
.logo-text b    { color: var(--text); font-weight: 500; }
.logo-text span { color: var(--muted); }

nav { display: flex; gap: 0.5rem; }
nav a {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  padding: 0.45rem 0.85rem;
  transition: color 0.3s var(--ease);
  position: relative;
}
nav a::before {
  content: "["; margin-right: 0.4em; color: var(--accent); opacity: 0;
  transition: opacity 0.3s var(--ease);
}
nav a::after {
  content: "]"; margin-left: 0.4em; color: var(--accent); opacity: 0;
  transition: opacity 0.3s var(--ease);
}
nav a:hover { color: var(--text); }
nav a:hover::before,
nav a:hover::after { opacity: 1; }

/* Lang toggle — [ PT / EN ] */
.lang-toggle {
  display: flex; align-items: center; gap: 0.1rem;
  margin-left: 0.5rem;
  border: 1px solid var(--border);
  padding: 0.28rem 0.5rem;
}
.lang-btn {
  background: none; border: none; cursor: pointer;
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.18em; font-weight: 400;
  color: var(--muted); padding: 0.2rem 0.4rem;
  transition: color 0.25s var(--ease);
  line-height: 1;
}
.lang-btn:hover  { color: var(--text); }
.lang-btn.active { color: var(--accent); font-weight: 500; }
.lang-sep {
  font-family: var(--mono); font-size: 0.72rem;
  color: var(--dim); user-select: none; line-height: 1;
}

/* ============================================================
   FOOTER — 4 colunas: brand · nav · setores · contato
   ============================================================ */
footer {
  background: #080808;
  border-top: 1px solid var(--border);
}

/* grade interna */
.footer__inner {
  max-width: 1300px; margin: 0 auto;
  padding: clamp(4rem, 10vh, 6.5rem) clamp(1.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 5rem);
  align-items: start;
}

/* coluna 1 — brand */
.footer__brand { display: flex; flex-direction: column; gap: 1.4rem; }
.footer__brand .logo { display: inline-flex; }
.footer__tagline {
  font-family: var(--serif);
  font-size: clamp(0.9rem, 1.3vw, 1.05rem);
  line-height: 1.6; color: #5a5a5a; max-width: 28ch;
}

/* colunas 2/3/4 — links */
.footer__col { display: flex; flex-direction: column; }
.footer__col-title {
  font-family: var(--mono); font-size: 0.62rem;
  letter-spacing: 0.32em; color: var(--muted);
  text-transform: uppercase; margin-bottom: 1.6rem;
}
.footer__col ul {
  list-style: none;
  display: flex; flex-direction: column; gap: 0.8rem;
}
.footer__col ul li a {
  font-family: var(--serif);
  font-size: clamp(0.92rem, 1.3vw, 1.05rem);
  color: #5e5e5e;
  transition: color 0.25s var(--ease);
}
.footer__col ul li a:hover { color: var(--accent); }

/* coluna contato */
.footer__contact { display: flex; flex-direction: column; gap: 0.7rem; }
.footer__contact-item {
  font-family: var(--mono); font-size: 0.8rem;
  color: var(--text); letter-spacing: 0.04em;
}
.footer__cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.75rem;
  color: var(--accent); letter-spacing: 0.1em;
  margin-top: 0.5rem;
  transition: color 0.25s var(--ease), gap 0.25s var(--ease);
}
.footer__cta:hover { color: var(--text); gap: 0.85rem; }

/* barra inferior */
.footer__bottom {
  max-width: 1300px; margin: 0 auto;
  padding: 1.4rem clamp(1.5rem, 5vw, 4rem);
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 0.8rem;
  align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 0.67rem;
  color: var(--muted); letter-spacing: 0.06em;
}
.footer__bottom-right {
  display: flex; gap: 1.2rem; flex-wrap: wrap; justify-content: flex-end;
  align-items: center;
}
.footer__bottom a { color: var(--muted); transition: color 0.25s var(--ease); }
.footer__bottom a:hover { color: var(--accent); }
.footer__bottom .sep { color: var(--dim); user-select: none; }

/* ============================================================
   RESPONSIVE — breakpoints globais
   ============================================================ */
@media (max-width: 820px) {
  nav                   { display: none; }
  .terminal__grid       { grid-template-columns: 1fr; }
  .tese__pin            { padding: 0 1.5rem; }
  .pilar                { grid-template-columns: 1fr; gap: 1.5rem; align-content: center; }
  .pilar__card          { min-height: 240px; }
  .pilar__text          { justify-content: flex-start; gap: 1.4rem; }
  .lideranca            { grid-template-columns: 1fr; }
  .footer__inner        { grid-template-columns: 1fr 1fr; gap: 3rem 2rem; }
}

@media (max-width: 560px) {
  .footer__inner        { grid-template-columns: 1fr; }
  .footer__bottom       { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .footer__bottom-right { justify-content: flex-start; }
}

/* ============================================================
   REDUCED MOTION — desliga todas as animações de movimento
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .hero__bg             { transform: scale(1) !important; }
  .reveal-mask > *      { transform: none !important; }
  .scroll-ind .line::after,
  .cta__circle::after,
  .ticker__track,
  .hud__dot,
  .tag--caret::after    { animation: none; }
  .hero__chart .hero__line  { stroke-dashoffset: 0; }
  .hero__chart .hero__area  { opacity: 1; }
  .hero__chart .hero__dot   { opacity: 1; }
}
