/* ===== Viewer Tech — estilo base ===== */
:root {
  --bg: #0a0e1a;
  --bg-alt: #10142280%;
  --surface: #131829;
  --surface-2: #1a2036;
  --border: #232a42;
  --text: #eef1fb;
  --text-dim: #a6adc6;
  --text-faint: #6b7290;
  --accent: #7c6cf6;
  --accent-2: #4f9dff;
  --accent-3: #22d3c8;
  --gradient: linear-gradient(135deg, #4f9dff 0%, #7c6cf6 55%, #b06cf6 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px -20px rgba(76, 60, 200, 0.35);
  --max-w: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(600px 400px at 85% -5%, rgba(124, 108, 246, 0.25), transparent 60%),
    radial-gradient(500px 400px at 5% 10%, rgba(79, 157, 255, 0.15), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { padding-left: 1.2em; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

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

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.logo .mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: block;
  overflow: visible;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--gradient);
  color: #050710;
  box-shadow: 0 8px 24px -8px rgba(124, 108, 246, 0.6);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
}

/* ===== Hero ===== */
.hero {
  padding: 100px 0 80px;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent-3);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 28px;
}

.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 0 4px rgba(34, 211, 200, 0.15);
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
  max-width: 820px;
  margin-inline: auto;
}

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

.hero p.lead {
  color: var(--text-dim);
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.hero-stats .stat b {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-stats .stat span {
  color: var(--text-faint);
  font-size: 0.85rem;
}

/* ===== Sections ===== */
section { padding: 90px 0; position: relative; z-index: 1; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.eyebrow {
  color: var(--accent-2);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.section-head p {
  color: var(--text-dim);
  font-size: 1.02rem;
}

/* ===== Cards / grid ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover {
  border-color: rgba(124, 108, 246, 0.45);
  transform: translateY(-3px);
}

.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(124, 108, 246, 0.12);
  border: 1px solid rgba(124, 108, 246, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
}

.card h3 {
  font-size: 1.08rem;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.card p {
  color: var(--text-dim);
  font-size: 0.94rem;
  margin: 0;
}

/* ===== Steps ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 30px 24px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step .num {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--gradient);
  color: #050710;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.step h3 { margin: 0 0 8px; font-size: 1.02rem; }
.step p { margin: 0; color: var(--text-dim); font-size: 0.92rem; }

/* ===== Highlight / automação personalizada ===== */
.highlight {
  background: linear-gradient(160deg, rgba(124,108,246,0.12), rgba(79,157,255,0.06));
  border: 1px solid rgba(124, 108, 246, 0.3);
  border-radius: 24px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.highlight h2 { font-size: 1.9rem; margin: 0 0 16px; letter-spacing: -0.02em; }
.highlight p { color: var(--text-dim); margin: 0 0 24px; }

.highlight ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.highlight ul li {
  display: flex;
  gap: 10px;
  color: var(--text-dim);
  font-size: 0.95rem;
}
.highlight ul li::before {
  content: "✓";
  color: var(--accent-3);
  font-weight: 800;
  flex-shrink: 0;
}

.highlight-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px;
}

.highlight-card h4 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--accent-3);
}
.highlight-card p { color: var(--text-dim); font-size: 0.88rem; margin: 0 0 18px; }

/* ===== CTA ===== */
.cta {
  text-align: center;
  background: var(--gradient);
  border-radius: 28px;
  padding: 70px 32px;
  color: #050710;
}
.cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 14px; letter-spacing: -0.02em; }
.cta p { opacity: 0.85; max-width: 520px; margin: 0 auto 30px; font-size: 1rem; }
.cta .btn-primary { background: #0a0e1a; color: #fff; box-shadow: none; }
.cta .btn-primary:hover { opacity: 0.9; }

/* ===== Footer ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 30px;
  color: var(--text-faint);
  font-size: 0.88rem;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-grid h4 {
  color: var(--text);
  font-size: 0.92rem;
  margin: 0 0 16px;
}

.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a { color: var(--text-faint); transition: color 0.15s; }
.footer-grid a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ===== Legal pages ===== */
.legal {
  padding: 60px 0 100px;
}
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 6px; letter-spacing: -0.02em; }
.legal .updated { color: var(--text-faint); font-size: 0.88rem; margin-bottom: 40px; }
.legal h2 {
  font-size: 1.25rem;
  margin: 42px 0 14px;
  letter-spacing: -0.01em;
  padding-top: 8px;
}
.legal h2 .idx { color: var(--accent-2); margin-right: 8px; }
.legal h3 { font-size: 1.02rem; margin: 24px 0 10px; color: var(--text); }
.legal p, .legal li { color: var(--text-dim); font-size: 0.96rem; }
.legal strong { color: var(--text); }
.legal .toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 40px;
}
.legal .toc h4 { margin: 0 0 12px; font-size: 0.95rem; }
.legal .toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.legal .toc a { color: var(--accent-2); font-size: 0.92rem; }
.legal .callout {
  background: rgba(124, 108, 246, 0.1);
  border: 1px solid rgba(124, 108, 246, 0.3);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 20px 0;
  font-size: 0.92rem;
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .highlight { grid-template-columns: 1fr; padding: 36px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 20px 24px;
    gap: 18px;
  }
  .hero { padding: 60px 0 50px; }
  section { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
}

/* ===== Robôs decorativos (automação) ===== */
.bots-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  display: none;
}

@media (min-width: 1300px) {
  .bots-layer { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .bots-layer { display: none !important; }
}

.bot {
  position: absolute;
  left: 0;
  width: 54px;
  height: 70px;
  will-change: transform, opacity;
}

.bot svg { width: 100%; height: 100%; display: block; overflow: visible; }

.bot-flame {
  transform-origin: 50% 0%;
  animation: flameFlicker 0.55s ease-in-out infinite alternate;
}

@keyframes flameFlicker {
  from { opacity: 0.55; transform: scaleY(0.85); }
  to   { opacity: 1;    transform: scaleY(1.15); }
}

/* Par 1 — engrenagem, faixa alta, esquerda → direita */
.bot-1a { top: 14vh; animation: relay1a 34s linear infinite; }
.bot-1b { top: 14vh; animation: relay1b 34s linear infinite; }
.bot-1a .cargo { animation: cargoDrop 34s linear infinite; }
.bot-1b .cargo { animation: cargoPickup 34s linear infinite; }

@keyframes relay1a {
  0%   { transform: translate(-15vw, 0); opacity: 1; }
  12%  { transform: translate(5vw, -14px); }
  24%  { transform: translate(20vw, 10px); }
  36%  { transform: translate(35vw, -8px); }
  47%  { transform: translate(47vw, 0); opacity: 1; }
  49%  { opacity: 0; }
  100% { transform: translate(50vw, 0); opacity: 0; }
}
@keyframes relay1b {
  0%, 49% { transform: translate(48vw, 0); opacity: 0; }
  51%  { opacity: 1; transform: translate(50vw, -10px); }
  63%  { transform: translate(65vw, 8px); }
  76%  { transform: translate(82vw, -10px); }
  90%  { transform: translate(100vw, 6px); }
  100% { transform: translate(115vw, 0); opacity: 1; }
}

/* Par 2 — coraçãozinho (social), faixa média, direita → esquerda */
.bot-2a { top: 48vh; animation: relay2a 42s linear infinite; animation-delay: -14s; }
.bot-2b { top: 48vh; animation: relay2b 42s linear infinite; animation-delay: -14s; }
.bot-2a .cargo { animation: cargoDrop 42s linear infinite; animation-delay: -14s; }
.bot-2b .cargo { animation: cargoPickup 42s linear infinite; animation-delay: -14s; }

@keyframes relay2a {
  0%   { transform: translate(115vw, 0); opacity: 1; }
  14%  { transform: translate(95vw, 12px); }
  28%  { transform: translate(80vw, -10px); }
  40%  { transform: translate(65vw, 8px); }
  47%  { transform: translate(56vw, 0); opacity: 1; }
  49%  { opacity: 0; }
  100% { transform: translate(53vw, 0); opacity: 0; }
}
@keyframes relay2b {
  0%, 49% { transform: translate(55vw, 0); opacity: 0; }
  51%  { opacity: 1; transform: translate(52vw, -12px); }
  64%  { transform: translate(38vw, 10px); }
  78%  { transform: translate(20vw, -8px); }
  90%  { transform: translate(3vw, 6px); }
  100% { transform: translate(-15vw, 0); opacity: 1; }
}

/* Par 3 — bolha de mensagem, faixa baixa, esquerda → direita */
.bot-3a { top: 80vh; animation: relay3a 50s linear infinite; animation-delay: -30s; }
.bot-3b { top: 80vh; animation: relay3b 50s linear infinite; animation-delay: -30s; }
.bot-3a .cargo { animation: cargoDrop 50s linear infinite; animation-delay: -30s; }
.bot-3b .cargo { animation: cargoPickup 50s linear infinite; animation-delay: -30s; }

@keyframes relay3a {
  0%   { transform: translate(-15vw, 0); opacity: 1; }
  10%  { transform: translate(0vw, -12px); }
  20%  { transform: translate(15vw, 10px); }
  30%  { transform: translate(28vw, -8px); }
  38%  { transform: translate(38vw, 0); opacity: 1; }
  40%  { opacity: 0; }
  100% { transform: translate(40vw, 0); opacity: 0; }
}
@keyframes relay3b {
  0%, 40% { transform: translate(38vw, 0); opacity: 0; }
  42%  { opacity: 1; transform: translate(40vw, -10px); }
  55%  { transform: translate(55vw, 8px); }
  68%  { transform: translate(70vw, -10px); }
  82%  { transform: translate(88vw, 6px); }
  100% { transform: translate(115vw, 0); opacity: 1; }
}

/* Animções de carga (compartilhadas, sincronizadas por par) */
@keyframes cargoDrop {
  0%, 44% { opacity: 1; transform: translate(0,0) rotate(0deg); }
  49%  { opacity: 0; transform: translate(0,10px) rotate(-25deg); }
  100% { opacity: 0; }
}
@keyframes cargoPickup {
  0%, 49% { opacity: 0; transform: translate(0,8px) scale(0.6) rotate(20deg); }
  53%  { opacity: 1; transform: translate(0,0) scale(1.2) rotate(0deg); }
  60%  { transform: translate(0,0) scale(1) rotate(0deg); }
  100% { opacity: 1; transform: translate(0,0) scale(1) rotate(0deg); }
}
