/* =========================================================
   Wagner Neri — Recuperação de Contas de Redes Sociais
   Landing page — conceito "Diagnóstico Digital" (dark/terminal)
   Fontes do sistema (sem requisições externas) → leve e rápida.
   ========================================================= */

:root {
  --bg: #0b0d10;
  --bg-alt: #101317;
  --bg-panel: #14181d;
  --border: #232830;
  --text: #eef1f4;
  --text-muted: #8b95a1;

  --green: #00e08f;
  --cyan: #37e0ff;
  --danger: #ff5c5c;
  --whatsapp: #25d366;
  --whatsapp-dark: #128c7e;

  --gradient: linear-gradient(90deg, var(--green) 0%, var(--cyan) 100%);

  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;

  --radius: 14px;
  --max-width: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0 0 14px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

p { margin: 0 0 16px; color: var(--text-muted); }

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

img { max-width: 100%; display: block; }

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

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Badge ===== */
.badge {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(0, 224, 143, 0.1);
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-mono);
  margin-bottom: 18px;
  border: 1px solid rgba(0, 224, 143, 0.25);
}

/* ===== Botões ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn--whatsapp {
  background: linear-gradient(90deg, var(--whatsapp) 0%, var(--whatsapp-dark) 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

.btn--whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
}

.btn--lg { padding: 18px 36px; font-size: 1.1rem; }

.btn--ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 20px;
  font-size: 0.9rem;
}

.btn--ghost:hover { border-color: var(--green); color: var(--green); }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 16, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo { font-weight: 700; font-size: 1.05rem; }

.logo span {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.85rem;
  display: block;
}

/* =====================================================
   HERO — terminal de diagnóstico + proposta
   ===================================================== */
.hero {
  padding: 56px 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(0, 224, 143, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(55, 224, 255, 0.08) 0%, transparent 40%),
    var(--bg);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero__title {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 800;
}

.hero__tagline {
  margin: 0 0 18px;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

.hero__note {
  margin-top: 12px;
  font-size: 0.85rem;
}

/* ----- Terminal ----- */
.terminal {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.terminal__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.terminal__dot--red { background: #ff5f56; }
.terminal__dot--yellow { background: #ffbd2e; }
.terminal__dot--green { background: #27c93f; }

.terminal__title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.terminal__body {
  padding: 24px;
  min-height: 220px;
  font-family: var(--font-mono);
  font-size: 0.92rem;
}

.terminal__line {
  color: var(--text);
  margin-bottom: 8px;
  white-space: pre-wrap;
  word-break: break-word;
}

.terminal__hl--danger { color: var(--danger); font-weight: 700; }
.terminal__hl--success { color: var(--green); font-weight: 700; }

.terminal__cursor {
  display: inline-block;
  color: var(--green);
  animation: blink 1s step-start infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* =====================================================
   TRACKER — como funciona (compacto, uma linha)
   ===================================================== */
.tracker-section {
  padding: 56px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.tracker-section__title {
  text-align: center;
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  margin-bottom: 40px;
}

.tracker {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.tracker__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 220px;
}

.tracker__icon {
  font-size: 1.6rem;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  margin-bottom: 12px;
}

.tracker__label {
  font-weight: 700;
  margin-bottom: 6px;
}

.tracker__caption {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.tracker__line {
  flex: 1;
  height: 1px;
  background: var(--border);
  margin-top: 28px;
  min-width: 32px;
  max-width: 96px;
}

/* =====================================================
   ESPECIALISTA — barra compacta
   ===================================================== */
.specialist { padding: 64px 0; }

.specialist__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.specialist__photo-frame {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: var(--gradient);
  padding: 3px;
  flex-shrink: 0;
}

.specialist__photo-frame img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-alt);
}

.specialist__photo-frame--empty {
  display: flex;
  align-items: center;
  justify-content: center;
}

.specialist__photo-frame--empty::after {
  content: "WN";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--text-muted);
  font-weight: 700;
}

.specialist__info h2 { font-size: 1.2rem; margin-bottom: 4px; }

.specialist__role {
  color: var(--green);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.specialist__text {
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
  margin-bottom: 12px;
  font-size: 0.92rem;
}

.specialist__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.88rem;
}

.specialist__contact a:hover { color: var(--green); }

/* ===== Footer ===== */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 56px 0 24px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.footer__col h4 { font-size: 1rem; margin-bottom: 14px; }

.footer__col p { margin-bottom: 8px; font-size: 0.9rem; }

.footer__affiliation {
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 600;
}

.footer__col a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer__col a:hover { color: var(--green); }

.footer__bottom { padding-top: 20px; text-align: center; }

.footer__bottom p {
  font-size: 0.78rem;
  color: #6b7280;
  max-width: 680px;
  margin: 0 auto 8px;
}

/* ===== Modal Política de Privacidade ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.is-open { display: flex; }

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(2px);
}

.modal__content {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 560px;
  width: 100%;
  padding: 36px;
  max-height: 80vh;
  overflow-y: auto;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

.modal__close:hover { color: var(--text); }

/* ===== Botão Flutuante WhatsApp ===== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 60;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
  transition: box-shadow 0.2s ease;
  will-change: transform;
}

.whatsapp-float:hover { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.7); }

.whatsapp-float.bounce { animation: whatsapp-jump 0.6s ease; }

@keyframes whatsapp-jump {
  0%   { transform: translateY(0); }
  30%  { transform: translateY(-18px); }
  50%  { transform: translateY(0); }
  65%  { transform: translateY(-8px); }
  80%  { transform: translateY(0); }
  100% { transform: translateY(0); }
}

/* ===== Scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .terminal__cursor { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

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

  .tracker { flex-direction: column; align-items: center; gap: 24px; }
  .tracker__line { display: none; }

  .specialist__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .specialist__photo-frame { margin: 0 auto; }

  .specialist__contact { justify-content: center; }

  .footer__inner { grid-template-columns: 1fr; text-align: center; }
}

@media (max-width: 520px) {
  .header__cta { display: none; }
  .hero { padding: 40px 0; }
  .specialist { padding: 48px 0; }
  .specialist__inner { padding: 24px; }
  .whatsapp-float { width: 56px; height: 56px; bottom: 20px; right: 20px; }
}
