/* ============================================================
   PATHVECTOR — Redesign
   Paleta Winbox MikroTik · Layout assimétrico · Humano
   ============================================================ */

:root {
  --bg: #12121f;
  --bg-alt: #1a1a2e;
  --bg-card: #222240;
  --bg-elevated: #2a2a4e;

  --text: #e8e8ec;
  --text-soft: #a8a8be;
  --text-muted: #6a6a82;

  --accent: #1e88e5;
  --accent-hover: #1976d2;
  --orange: #f5a623;
  --orange-dim: rgba(245, 166, 35, 0.12);
  --green: #4ade80;
  --green-dim: rgba(74, 222, 128, 0.15);

  --border: #2e2e4a;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-w: 1080px;
  --radius: 8px;
  --transition: 0.2s ease;
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(18, 18, 31, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--border);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-img { height: 34px; width: auto; }

.nav-links {
  display: flex; gap: 24px; align-items: center;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }

.mobile-toggle {
  display: none;
  background: none; border: none;
  color: var(--text); font-size: 1.5rem;
  cursor: pointer;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
  border: none; cursor: pointer;
  font-family: var(--font);
}
.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--text-soft);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  border-color: var(--text-soft);
  color: var(--text);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 140px 0 80px;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 480px;
}

.hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 14px;
}

.hero-note {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Terminal illustration */
.terminal-box {
  background: #0d0d1a;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 0.78rem;
  line-height: 1.8;
}

.terminal-header {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: #1a1a30;
  border-bottom: 1px solid var(--border);
}

.terminal-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
}
.terminal-dot:first-child { background: var(--accent); }
.terminal-dot:nth-child(2) { background: var(--orange); }
.terminal-dot:nth-child(3) { background: var(--green); }

.terminal-title {
  margin-left: 8px;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.terminal-body {
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 2px;
}
.terminal-body code {
  display: block;
  color: var(--text-soft);
  white-space: pre;
}
.t-prompt { color: var(--orange); }
.t-dim { color: var(--text-muted); }
.t-green { color: var(--green); }
.t-red { color: var(--accent); }
.t-cursor {
  display: inline-block;
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.trust-title {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 28px;
  text-align: center;
  font-weight: 600;
}

.trust-groups {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.trust-group {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.trust-group-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  min-width: 140px;
  flex-shrink: 0;
}

.trust-group-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trust-group-badges span {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  font-size: 0.84rem;
  color: var(--text);
  font-weight: 500;
}

@media (max-width: 768px) {
  .trust-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .trust-group-label {
    min-width: auto;
  }
}

/* ============================================================
   SERVICES — Layout lista (não grid simétrico)
   ============================================================ */
.services {
  padding: 100px 0;
}

.section-header {
  margin-bottom: 56px;
}
.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 10px;
}
.section-header p {
  font-size: 1rem;
  color: var(--text-soft);
  max-width: 520px;
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.service-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px 30px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}
.service-item:hover {
  border-color: var(--accent);
}

.service-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(30, 136, 229, 0.1);
  border: 1px solid rgba(30, 136, 229, 0.25);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-icon i {
  font-size: 1.3rem;
  color: var(--accent);
}

.service-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.service-body p {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 14px;
}

.service-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.service-tags span {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 3px 10px;
  background: var(--orange-dim);
  border: 1px solid rgba(245, 166, 35, 0.25);
  border-radius: 3px;
  color: var(--orange);
}

/* ============================================================
   DIFERENCIAL
   ============================================================ */
.diferencial {
  padding: 100px 0;
  background: var(--bg-alt);
}

.dif-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.dif-card {
  padding: 28px 26px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}
.dif-card:hover { border-color: var(--orange); }

.dif-card i {
  font-size: 1.4rem;
  color: var(--orange);
  margin-bottom: 14px;
  display: block;
}
.dif-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.dif-card p {
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.6;
}

/* ============================================================
   CERTIFICAÇÕES
   ============================================================ */
.certificacoes {
  padding: 100px 0;
  background: var(--bg-alt);
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cert-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}

.cert-item:hover {
  border-color: var(--accent);
}

.cert-item img {
  width: 100%;
  max-width: 180px;
  height: auto;
  border-radius: 4px;
  object-fit: contain;
}

.cert-item span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
  text-align: center;
}

@media (max-width: 768px) {
  .certs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .certs-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* ============================================================
   CONTATO
   ============================================================ */
.contato {
  padding: 100px 0 40px;
}

.contato-box {
  text-align: center;
  margin-bottom: 60px;
}
.contato-box h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 8px;
}
.contato-box > p {
  color: var(--text-soft);
  font-size: 1rem;
  margin-bottom: 32px;
}

.contato-channels {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}

.channel-card {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
  text-align: left;
}
.channel-card:hover { border-color: var(--accent); }
.channel-card--wa { border-color: rgba(74, 222, 128, 0.3); }
.channel-card--wa:hover { border-color: var(--green); }

.channel-card i {
  font-size: 1.5rem;
  color: var(--accent);
}
.channel-card--wa i { color: var(--green); }

.channel-card strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 2px;
}
.channel-card span {
  font-size: 0.82rem;
  color: var(--text-soft);
}

/* Footer */
.site-footer {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.site-footer p {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.footer-techs {
  margin-top: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.wpp-float-wrapper {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.wpp-tooltip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: var(--radius);
  max-width: 220px;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.wpp-float-wrapper:hover .wpp-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.wpp-float {
  display: flex; align-items: center; gap: 0;
  height: 56px;
  padding: 0 18px;
  background: #25d366;
  border-radius: 28px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease, background 0.2s ease, padding 0.3s ease, gap 0.3s ease;
  animation: wppPulse 1.2s ease-in-out infinite;
  overflow: hidden;
}

.wpp-float .wpp-icon {
  font-size: 1.6rem;
  color: #fff;
  flex-shrink: 0;
}

.wpp-float .wpp-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-width 0.3s ease, opacity 0.2s ease, margin-left 0.3s ease;
  margin-left: 0;
}

.wpp-float-wrapper:hover .wpp-float {
  transform: scale(1.05);
  background: #1fb855;
  gap: 10px;
}

.wpp-float-wrapper:hover .wpp-label {
  max-width: 140px;
  opacity: 1;
  margin-left: 2px;
}

.wpp-float:hover {
  background: #1fb855;
}

@keyframes wppPulse {
  0% {
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.4);
  }
  70% {
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4), 0 0 0 14px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@media (max-width: 480px) {
  .wpp-float-wrapper { bottom: 28px; right: 16px; }
  .wpp-float { width: 46px; height: 46px; padding: 0 13px; }
  .wpp-float .wpp-icon { font-size: 1.4rem; }
  .wpp-tooltip { display: none; }
  .wpp-float .wpp-label { display: none; }
}

@media (max-width: 768px) {
  .wpp-float-wrapper {
    bottom: 80px;
    right: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .wpp-float-wrapper.show {
    opacity: 1;
    pointer-events: all;
  }
}

/* ============================================================
   MOBILE MENU
   ============================================================ */
.mobile-menu {
  position: fixed; inset: 0;
  z-index: 200;
  background: rgba(18, 18, 31, 0.98);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }

.mobile-close {
  position: absolute; top: 20px; right: 20px;
  background: none; border: none;
  color: var(--text); font-size: 1.6rem; cursor: pointer;
}

.mobile-menu nav {
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}
.mobile-link {
  font-size: 1.2rem; font-weight: 600;
  color: var(--text-soft);
  transition: color var(--transition);
}
.mobile-link:hover { color: var(--text); }
.mobile-cta { margin-top: 8px; }

.wpp-menu-btn {
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: wppPulse 1.2s ease-in-out infinite;
  margin-top: 16px;
}
.wpp-menu-btn i {
  font-size: 1.6rem;
  color: #fff;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }

  .hero { padding: 120px 0 60px; }
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-aside { order: -1; }

  .dif-grid { grid-template-columns: 1fr; }

  .service-item { flex-direction: column; gap: 12px; }
  .service-number { font-size: 1.5rem; }

  .contato-channels { flex-direction: column; align-items: center; }
  .channel-card { width: 100%; max-width: 320px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }

  .hero-content h1 { font-size: 1.6rem; }

  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }

  .terminal-box { font-size: 0.7rem; }

  .wpp-float { bottom: 18px; right: 18px; width: 50px; height: 50px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* Selection */
::selection { background: rgba(233, 69, 96, 0.3); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
