/* ============================================================
   PRIVYON V2 — Vanilla CSS
   Mapeado do design original (React + Tailwind + Framer Motion)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ----- Reset & Base ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Color palette (converted from HSL tokens) */
  --bg:           hsl(220, 20%, 4%);
  --fg:           hsl(210, 40%, 95%);
  --card:         hsl(220, 18%, 7%);
  --border:       hsl(220, 14%, 14%);
  --muted:        hsl(215, 15%, 55%);
  --p-h: 170; --p-s: 90%; --p-l: 50%; /* Teal Base */
  --primary: hsl(var(--p-h), var(--p-s), var(--p-l));

  --primary-fg:   hsl(220, 20%, 4%);
  --secondary:    hsl(220, 16%, 12%);
  --cyber-blue:   hsl(210, 100%, 65%);

  --radius:       0.75rem;
  --nav-height:   72px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: none;
}

/* ---- Custom Cursor ---- */
#cursor {
  position: fixed;
  width: 10px; height: 10px;
  background: var(--primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  transition: width 0.2s, height 0.2s;
}
#cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1.5px solid hsla(var(--p-h), var(--p-s), var(--p-l), 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
}
/* Cursor maior ao passar em links e botões */
body:has(a:hover) #cursor,
body:has(button:hover) #cursor { width: 16px; height: 16px; }
body:has(a:hover) #cursor-ring,
body:has(button:hover) #cursor-ring { width: 52px; height: 52px; border-color: hsla(var(--p-h), var(--p-s), var(--p-l), 0.25); }
/* Esconde o cursor customizado em dispositivos touch */
@media (pointer: coarse) {
  body { cursor: auto; }
  #cursor, #cursor-ring { display: none; }
}

/* ----- Typography helpers ----- */
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--cyber-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-primary  { color: var(--primary); }
.text-muted    { color: var(--muted); }
.font-mono     { font-family: 'JetBrains Mono', monospace; }

/* ----- Glow helpers ----- */
.glow-text {
  text-shadow: 0 0 20px hsla(var(--p-h), var(--p-s), var(--p-l), 0.5), 0 0 40px hsla(var(--p-h), var(--p-s), var(--p-l), 0.2);
}

/* ----- Layout helpers ----- */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: hsl(220 20% 4% / 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background 0.3s;
}

#navbar .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1280px;
  margin-inline: auto;
}

/* Logo link */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: filter 0.2s;
}
.nav-logo:hover .logo-icon { filter: drop-shadow(0 0 8px hsla(var(--p-h), var(--p-s), var(--p-l), 0.6)); }
.nav-logo .logo-icon { width: 2rem; height: 2rem; color: var(--primary); fill: var(--primary); }
.nav-logo .logo-text { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; color: var(--fg); }
.nav-logo .logo-text span { color: var(--primary); }

/* Desktop links */
.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  transition: all 0.2s ease;
}
.nav-links a:hover { color: var(--primary); background: hsla(var(--p-h), var(--p-s), var(--p-l), 0.05); }
.nav-links a.active, 
#mobile-menu a.active {
  color: var(--primary) !important;
  position: relative;
  background: hsla(var(--p-h), var(--p-s), var(--p-l), 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.4rem 1.4rem;
  border-radius: 100px;
  text-shadow: 0 0 10px hsla(var(--p-h), var(--p-s), var(--p-l), 1),
               0 0 20px hsla(var(--p-h), var(--p-s), var(--p-l), 0.8),
               0 0 40px hsla(var(--p-h), var(--p-s), var(--p-l), 0.4);
  box-shadow: 0 0 30px hsla(var(--p-h), var(--p-s), var(--p-l), 0.4),
              inset 0 0 10px hsla(var(--p-h), var(--p-s), var(--p-l), 0.2);
  border: 1px solid hsla(var(--p-h), var(--p-s), var(--p-l), 0.3);
}

.nav-links a.active::after,
#mobile-menu a.active::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 160%; height: 200%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, hsla(var(--p-h), var(--p-s), var(--p-l), 0.5) 0%, transparent 80%);
  z-index: -1;
  pointer-events: none;
  filter: blur(15px);
  opacity: 0.8;
}

/* Garante que o btn-cta dentro do nav-links não herde a cor dos links */
.nav-links a.btn-cta,
.nav-links a.btn-cta:hover { color: var(--primary-fg) !important; }

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: var(--primary);
  color: var(--primary-fg);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.15s;
}
.btn-cta:hover {
  background: hsl(var(--p-h), var(--p-s), calc(var(--p-l) + 8%)) !important; /* Mais claro e ignorando transparência do nav */
  color: var(--primary-fg) !important;
  box-shadow: 0 0 25px hsla(var(--p-h), var(--p-s), var(--p-l), 0.5);
  transform: translateY(-2px);
  opacity: 1 !important;
}

/* Mobile hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
@media (min-width: 992px) { /* Aumentado para 992px para evitar aperto entre os links */
  .nav-links  { display: flex; }
  .hamburger  { display: none; }
}

#mobile-menu {
  position: fixed;
  inset: 0; /* Ocupa a tela toda */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 2rem;
  background: hsl(220 20% 4% / 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.1); /* Começa levemente maior */
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
}

#mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

#mobile-menu a {
  font-size: 1.5rem; /* Maior no mobile */
  font-weight: 600;
  color: var(--foreground);
  text-decoration: none;
  transition: color 0.2s;
}

#mobile-menu .btn-cta {
  width: 100%;
  max-width: 280px;
  font-size: 1.125rem;
  padding: 1rem;
}

/* Digital Footprint Scanner Section */
#data-scanner {
  padding: 6rem 0;
  background: linear-gradient(to bottom, transparent, hsl(0 60% 5%));
}

.scanner-wrap {
  max-width: 50rem;
  margin-inline: auto;
  padding: 3rem;
  background: hsl(0 60% 4% / 0.8);
  border: 1px solid hsl(0 60% 20%);
  border-radius: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.bad-tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: hsl(0 70% 20% / 0.5);
  color: #ff4d4d;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 100px;
  border: 1px solid hsl(0 70% 30%);
  margin-bottom: 2rem;
  letter-spacing: 0.1em;
}

.scanner-h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.text-danger {
  color: #ff4d4d;
  text-shadow: 0 0 20px hsla(0, 70%, 50%, 0.4);
}

.scanner-p {
  color: var(--muted);
  font-size: 1.125rem;
  margin-bottom: 3rem;
  max-width: 40rem;
  margin-inline: auto;
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: #ff4d4d;
  color: white;
  font-weight: 700;
  border: none;
  border-radius: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 0 30px hsla(0, 70%, 50%, 0.3);
}

.btn-danger:hover {
  transform: scale(1.05);
  background: #ff6666;
  box-shadow: 0 0 50px hsla(0, 70%, 50%, 0.5);
}

.btn-danger svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

.scanner-results {
  display: none;
  margin-top: 4rem;
  text-align: left;
  animation: fadeIn 0.5s ease-out;
}

.scanner-results.active {
  display: block;
}

/* Exposure Meter */
.exposure-meter-wrap {
  margin-bottom: 3rem;
  padding: 1.5rem;
  background: hsl(0 70% 10% / 0.3);
  border: 1px solid hsl(0 70% 30% / 0.5);
  border-radius: 1rem;
}

.exposure-label {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  color: #ff4d4d;
}

.exposure-bar {
  height: 8px;
  background: hsl(0 0% 10%);
  border-radius: 100px;
  overflow: hidden;
}

.exposure-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(to right, #ff9900, #ff4d4d);
  box-shadow: 0 0 10px #ff4d4d;
  transition: width 0.5s ease-out;
}

/* Scanner Groups */
.scanner-groups {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.group-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: hsl(0, 0%, 40%);
  letter-spacing: 0.2em;
  margin-bottom: 1.25rem;
  border-left: 3px solid #ff4d4d;
  padding-left: 0.75rem;
}

.scanner-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.data-card.wide {
  grid-column: span 2;
}

@media (max-width: 640px) {
  .scanner-grid { grid-template-columns: 1fr; }
  .data-card.wide { grid-column: span 1; }
  .scanner-h2 { font-size: 2rem; }
}

.data-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: hsl(0 0% 6% / 0.9);
  border: 1px solid hsl(0 0% 15%);
  border-radius: 1rem;
  transition: all 0.3s;
}

.data-card:hover { 
  border-color: hsl(0 60% 30%); 
  background: hsl(0 60% 6% / 0.9);
}

.data-icon {
  font-size: 1.25rem;
  width: 3rem;
  height: 3rem;
  min-width: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(0 0% 10%);
  border-radius: 0.75rem;
}

.data-content label {
  display: block;
  font-size: 0.65rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.15rem;
}

.data-val {
  font-family: var(--font-mono, 'Courier New', Courier, monospace);
  font-size: 0.9375rem;
  font-weight: 600;
  color: #ff4d4d;
  word-break: break-all;
}

.scanner-disclaimer {
  margin-top: 4rem;
  padding: 1.5rem;
  background: hsl(0 70% 5% / 0.5);
  border: 1px dashed hsl(0 70% 20%);
  border-radius: 1rem;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.6;
}

.scanner-disclaimer p { margin: 0; }
.scanner-disclaimer strong { color: #ff4d4d; font-weight: 700; }

@keyframes scanLine {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(1000%); }
}

.scanner-wrap.scanning::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, #ff4d4d, transparent);
  box-shadow: 0 0 15px #ff4d4d;
  animation: scanLine 2s linear infinite;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
#inicio {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 5rem;
}
@media (max-width: 768px) {
  #inicio { padding-top: 3rem; }
}


/* Background image */
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    hsl(220 20% 4% / 0.6),
    hsl(220 20% 4% / 0.8),
    hsl(220 20% 4%));
}

/* Grid pattern overlay */
.grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(hsla(var(--p-h), var(--p-s), var(--p-l), 0.03) 1px, transparent 1px),
    linear-gradient(90deg, hsla(var(--p-h), var(--p-s), var(--p-l), 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.5;
}

/* Scan line */
.scan-line {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.scan-line::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, hsla(var(--p-h), var(--p-s), var(--p-l), 0.4), transparent);
  animation: scan 4s linear infinite;
}
@keyframes scan {
  0%   { top: -2px; }
  100% { top: 100%; }
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1.5rem;
  text-align: center;
}

.hero-inner { max-width: 56rem; margin-inline: auto; }

@media (max-width: 992px) { /* Aumentado para 992px para cobrir tablets e telas mobile maiores */
  :root {
    --p-h: 192; --p-s: 100%; --p-l: 48%; /* Neon Blue para Mobile */
    --cyber-blue: hsl(192, 100%, 70%); /* Cyber blue mais claro no mobile */
  }

  #inicio { 
    padding-top: 6rem; 
    padding-bottom: 4rem; 
    min-height: auto; 
    display: block; 
  }
  .hero-h1 { font-size: 2.5rem; line-height: 1.1; margin-bottom: 1rem; }
  .hero-desc { font-size: 1rem; margin-bottom: 2rem; }
  .hero-btns { flex-direction: column; width: 100%; gap: 1rem; }
  .hero-btns .btn-primary, .hero-btns .btn-secondary { width: 100%; justify-content: center; }
}


/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 0.5rem 1.25rem;
  border: 1px solid hsla(var(--p-h), var(--p-s), var(--p-l), 0.3);
  background: hsla(var(--p-h), var(--p-s), var(--p-l), 0.1);
  border-radius: 9999px;
  font-size: 0.8125rem; /* Ajustado para 13px como pedido */
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--primary);
  opacity: 0;
  transform: scale(0.9);
  animation: fadeInScale 0.6s 0.2s ease-out forwards;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  position: relative;
}

.badge-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background-color: var(--primary);
  opacity: 0.4;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* Hero heading */
.hero-h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Hero description */
.hero-desc {
  max-width: 42rem;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s 0.2s ease-out forwards;
}

/* Hero CTA buttons */
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s 0.3s ease-out forwards;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--primary);
  color: var(--primary-fg);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.15s;
}
.btn-primary:hover {
  background: hsl(var(--p-h), var(--p-s), calc(var(--p-l) + 5%)); /* Mais claro no hover */
  box-shadow: 0 0 20px hsla(var(--p-h), var(--p-s), var(--p-l), 0.4);
  transform: translateY(-2px);
}
/* Força a cor escura mesmo quando herdando de âncoras */
.btn-primary, .btn-primary:hover, .btn-primary:visited { color: var(--primary-fg) !important; }
.btn-primary svg { width: 1rem; height: 1rem; stroke: var(--primary-fg); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s; }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border: 1px solid var(--border);
  color: var(--fg);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline:hover {
  border-color: hsla(var(--p-h), var(--p-s), var(--p-l), 0.5);
  background: var(--secondary);
}

/* Hero stats bar */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 48rem;
  margin: 5rem auto 0;
  padding: 2rem;
  border: 1px solid var(--border);
  background: hsl(220 18% 7% / 0.6);
  border-radius: 1rem;
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 0.8s 0.6s ease-out forwards;
}

@media (max-width: 768px) {
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    margin-top: 3rem;
  }
}
.stat-item { text-align: center; }
.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}
@media (max-width: 480px) {
  .stat-value { font-size: 1.75rem; }
  .stat-label { font-size: 0.75rem; }
}
@media (min-width: 768px) { .stat-value { font-size: 2.5rem; } }
.stat-label { margin-top: 0.25rem; font-size: 0.875rem; color: var(--muted); }

/* ============================================================
   MARQUEE (Versão v3 Fiel)
   ============================================================ */
.marquee-section {
  width: 100%;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: hsl(224 20% 5%); /* Cor sólida da v3 */
  overflow: hidden; 
  padding: 1.125rem 0;
  mask-image: linear-gradient(90deg, transparent 0%, black 12%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 12%, black 88%, transparent 100%);
  position: relative;
  z-index: 5;
}

.hero-footer-marquee {
  position: absolute;
  bottom: 0;
  left: 0;
  border-bottom: 1px solid var(--border); /* Linha de baixo restaurada */
  z-index: 20;
}

.marquee-track {
  display: flex; 
  gap: 0; 
  width: max-content;
  animation: marquee-v3 28s linear infinite;
}

.marquee-track .item {
  display: flex; 
  align-items: center; 
  gap: 2rem;
  padding-right: 2rem;
  white-space: nowrap; 
  font-size: .875rem; 
  font-weight: 500; 
  color: var(--muted);
  letter-spacing: .02em;
}

.marquee-track .sep { 
  color: var(--primary); 
  font-size: 1.25rem; 
  line-height: 1; 
  opacity: .6; 
}

@keyframes marquee-v3 { 
  from { transform: translateX(0); } 
  to { transform: translateX(-50%); } 
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
#solucoes {
  position: relative;
  padding: 8rem 0;
}

.section-tag {
  display: inline-block;
  margin-bottom: 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section-desc {
  margin-top: 1rem;
  max-width: 42rem;
  color: var(--muted);
  line-height: 1.7;
}

.section-header { text-align: center; margin-bottom: 4rem; }
.section-header .section-desc { margin-inline: auto; }

/* Services grid */
.services-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px)  { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

@media (max-width: 768px) {
  .service-card { padding: 1.5rem; }
}


.service-card {
  position: relative;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--card);
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.service-card:hover {
  border-color: hsla(var(--p-h), var(--p-s), var(--p-l), 0.3);
  box-shadow: 0 8px 32px hsla(var(--p-h), var(--p-s), var(--p-l), 0.05);
  transform: translateY(-4px);
}

.service-arrow {
  position: absolute;
  right: 1.5rem; bottom: 1.5rem;
  width: 1.125rem; height: 1.125rem;
  stroke: hsla(var(--p-h), var(--p-s), var(--p-l), 0.35);
  fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  transform: translateX(-4px);
  transition: stroke 0.2s, transform 0.2s;
}
.service-card:hover .service-arrow {
  stroke: var(--primary);
  transform: translateX(0);
}

.service-icon {
  display: inline-flex;
  padding: 0.75rem;
  border-radius: 0.75rem;
  background: hsla(var(--p-h), var(--p-s), var(--p-l), 0.1);
  color: var(--primary);
  margin-bottom: 1.25rem;
  transition: background 0.2s, box-shadow 0.2s;
}
.service-card:hover .service-icon {
  background: hsla(var(--p-h), var(--p-s), var(--p-l), 0.2);
  box-shadow: 0 4px 16px hsla(var(--p-h), var(--p-s), var(--p-l), 0.1);
}
.service-icon svg { width: 1.5rem; height: 1.5rem; stroke: var(--primary); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.75rem;
}
.service-desc { font-size: 0.875rem; line-height: 1.7; color: var(--muted); padding-bottom: 1.75rem; }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: hsl(220 20% 4% / 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  position: relative;
  background: var(--card);
  border: 1px solid hsla(var(--p-h), var(--p-s), var(--p-l), 0.2);
  border-radius: 1.25rem;
  padding: 2.5rem;
  max-width: 520px; width: 100%;
  transform: scale(0.93) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 32px 80px hsl(0 0% 0% / 0.5), 0 0 0 1px hsla(var(--p-h), var(--p-s), var(--p-l), 0.08);
}
.modal-overlay.open .modal-box { transform: scale(1) translateY(0); }

.modal-close {
  position: absolute; top: 1.25rem; right: 1.25rem;
  width: 2rem; height: 2rem;
  background: hsl(220 15% 13%); border: 1px solid var(--border);
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--muted);
}
.modal-close:hover { 
  background: hsl(220 15% 18%); 
  border-color: var(--primary); 
  color: var(--foreground);
  transform: rotate(90deg);
}
.modal-close svg { width: 0.875rem; height: 0.875rem; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; }


.modal-icon {
  display: inline-flex; padding: 1rem;
  border-radius: 1rem;
  background: hsla(var(--p-h), var(--p-s), var(--p-l), 0.1);
  margin-bottom: 1.25rem;
}
.modal-icon svg { width: 1.75rem; height: 1.75rem; stroke: var(--primary); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.modal-title { font-size: 1.375rem; font-weight: 700; color: var(--fg); letter-spacing: -0.02em; margin-bottom: 0.875rem; }
.modal-desc { font-size: 0.9375rem; line-height: 1.75; color: var(--muted); margin-bottom: 1.25rem; }

.modal-list { list-style: none; display: flex; flex-direction: column; gap: 0.625rem; margin-bottom: 2rem; }
.modal-list li { display: flex; align-items: flex-start; gap: 0.625rem; font-size: 0.875rem; color: var(--fg); }
.modal-list li::before {
  content: ''; flex-shrink: 0; margin-top: 6px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary); box-shadow: 0 0 8px var(--primary);
}

.modal-cta {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; padding: 0.875rem 1.5rem;
  background: var(--primary); color: var(--primary-fg);
  font-size: 0.9375rem; font-weight: 700;
  border-radius: var(--radius); text-decoration: none;
  transition: box-shadow 0.2s, transform 0.15s;
}
.modal-cta:hover { box-shadow: 0 8px 28px hsla(var(--p-h), var(--p-s), var(--p-l), 0.3); transform: translateY(-1px); }

/* ============================================================
   ABOUT SECTION
   ============================================================ */
#sobre {
  position: relative;
  padding: 8rem 0;
}
#sobre::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, hsla(var(--p-h), var(--p-s), var(--p-l), 0.06), hsl(200 90% 55% / 0.04), transparent);
  pointer-events: none;
}

.about-grid {
  display: grid;
  gap: 4rem;
  align-items: center;
}
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1fr; } }

@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
  .about-content { order: 2; display: flex; flex-direction: column; align-items: center; }
  .about-image { order: 1; max-width: 500px; }
  .about-features { justify-content: center; }
}

.about-features {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}
@media (min-width: 640px) { .about-features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .about-features { grid-template-columns: 1fr; width: 100%; }
}


.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.feature-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  width: 1.25rem;
  height: 1.25rem;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-item span { font-size: 0.875rem; color: var(--fg); }

/* About stats grid */
.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (max-width: 480px) {
  .about-stats {
    grid-template-columns: 1fr;
  }
}
.about-stat-card {
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--card);
  transition: border-color 0.3s;
}
.about-stat-card:hover { border-color: hsla(var(--p-h), var(--p-s), var(--p-l), 0.3); }
.about-stat-value { font-size: 1.875rem; font-weight: 700; color: var(--primary); }
.about-stat-label { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted); }

/* ============================================================
   CONTACT SECTION
   ============================================================ */
#contato {
  position: relative;
  padding: 8rem 0;
}
@media (max-width: 768px) {
  #contato { padding: 4rem 0; }
}


.contact-grid {
  display: grid;
  gap: 3rem;
  max-width: 64rem;
  margin-inline: auto;
}
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 2fr 3fr; }
}


/* Contact info */
.contact-info { display: flex; flex-direction: column; gap: 2rem; }
.contact-info-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-icon {
  padding: 0.75rem;
  border-radius: var(--radius);
  background: hsla(var(--p-h), var(--p-s), var(--p-l), 0.1);
  color: var(--primary);
  flex-shrink: 0;
}
.contact-icon svg { width: 1.25rem; height: 1.25rem; stroke: var(--primary); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-info-label { font-size: 0.875rem; font-weight: 500; color: var(--muted); margin-bottom: 0.25rem; }
.contact-info-value { color: var(--fg); }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: repeat(2, 1fr); } }

.form-input, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--fg);
  font-family: inherit;
  font-size: 0.875rem;
  outline: none;
  /* Remove aparência padrão do browser */
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--muted); }
.form-input:focus, .form-textarea:focus {
  border-color: hsla(var(--p-h), var(--p-s), var(--p-l), 0.5);
  box-shadow: 0 0 0 3px hsla(var(--p-h), var(--p-s), var(--p-l), 0.1);
}
.form-textarea { resize: none; }

.btn-submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--primary);
  color: var(--primary-fg);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: box-shadow 0.2s, transform 0.15s;
}
.btn-submit:hover {
  box-shadow: 0 8px 24px hsla(var(--p-h), var(--p-s), var(--p-l), 0.25);
  transform: translateY(-1px);
}
.btn-submit svg { width: 1rem; height: 1rem; stroke: var(--primary-fg); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s; }
.btn-submit:hover svg { transform: translateX(4px); }

.form-success {
  display: none;
  padding: 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--primary);
  border: 1px solid hsla(var(--p-h), var(--p-s), var(--p-l), 0.3);
  background: hsla(var(--p-h), var(--p-s), var(--p-l), 0.1);
  border-radius: var(--radius);
}
.form-success.visible { display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 1px solid var(--border);
  background: hsl(220 18% 7% / 0.5);
  padding: 3rem 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; justify-content: space-between; }
}
.footer-logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.footer-logo svg { width: 1.5rem; height: 1.5rem; fill: var(--primary); }
.footer-logo-text { font-size: 1.125rem; font-weight: 700; color: var(--fg); }
.footer-logo-text span { color: var(--primary); }
.footer-copy { font-size: 0.875rem; color: var(--muted); }

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.from-left  { transform: translateX(-30px); }
.reveal.from-right { transform: translateX(30px); }
.reveal.visible {
  opacity: 1;
  transform: translate(0);
}

/* Staggered delay helpers */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInScale {
  to { opacity: 1; transform: scale(1); }
}
/* Voltar ao topo */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3.5rem;
  height: 3.5rem;
  background: hsl(220 18% 7% / 0.8);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  text-decoration: none;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 24px hsl(0 0% 0% / 0.3);
  backdrop-filter: blur(8px);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--secondary);
  border-color: var(--primary);
  box-shadow: 0 0 20px hsla(var(--p-h), var(--p-s), var(--p-l), 0.2);
  transform: translateY(-4px);
}

.back-to-top svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 3rem;
    height: 3rem;
  }
}

/* ============================================================
   MANIFESTO MODAL (Imersivo)
   ============================================================ */
.manifesto-overlay {
  position: fixed;
  inset: 0;
  background: hsl(220 20% 2% / 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  padding: 1.5rem;
}

.manifesto-overlay.open {
  opacity: 1;
  visibility: visible;
}

.manifesto-container {
  width: 100%;
  max-width: 1100px; /* Reduzido levemente para centralizar melhor */
  height: 85vh; /* Pouco menor para dar mais respiro em volta */
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 2rem;
  position: relative;
  overflow-y: auto;
  transform: scale(0.95) translateY(20px);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 40px 120px hsl(0 0% 0% / 0.8);
  padding: 5rem 4rem; /* Mais padding interno */
}


.manifesto-overlay.open .manifesto-container {
  transform: scale(1) translateY(0);
}

.manifesto-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: hsl(220 15% 13%);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
}

.manifesto-close:hover {
  background: hsl(220 15% 18%);
  border-color: var(--primary);
  color: var(--foreground);
  transform: rotate(90deg);
}


.manifesto-close svg { 
  width: 1.25rem; 
  height: 1.25rem; 
  stroke: currentColor; 
  fill: none; 
  stroke-width: 2.5; 
}


.manifesto-header { margin-bottom: 5rem; }
.manifesto-title { 
  font-size: clamp(2rem, 5vw, 4rem); /* Reduzido */
  font-weight: 900; 
  line-height: 1.1; 
  letter-spacing: -0.04em; 
  margin-top: 1rem; 
}


.manifesto-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  margin-bottom: 5rem;
}

.manifesto-text-cols { font-size: 1.125rem; line-height: 1.8; color: var(--muted); }
.manifesto-text-cols .lead { 
  font-size: 1.5rem; /* Reduzido */
  color: var(--foreground); 
  line-height: 1.5; 
  margin-bottom: 2.5rem; 
  font-weight: 500; 
}
.manifesto-text-cols p { margin-bottom: 2rem; } /* Mais margem entre parágrafos */

.manifesto-text-cols span { color: var(--primary); font-weight: 600; }

.manifesto-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.m-card {
  padding: 2rem;
  background: hsl(220 20% 6%);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
}
.m-card h4 { font-size: 1.25rem; margin-bottom: 0.75rem; color: var(--primary); }
.m-card p { font-size: 0.9375rem; line-height: 1.6; color: var(--muted); }

.manifesto-footer {
  border-top: 1px solid var(--border);
  padding-top: 5rem;
  text-align: center;
}

.manifesto-footer blockquote {
  font-size: 1.5rem; /* Reduzido */
  font-weight: 500;
  font-style: italic;
  line-height: 1.4;
  color: var(--muted);
  margin-bottom: 4rem;
  max-width: 700px;
  margin-inline: auto;
}

/* Botão Premium Glow */
#manifesto-contato-btn {
  position: relative;
  padding: 1.25rem 3rem;
  background: var(--primary);
  color: var(--primary-fg);
  font-weight: 700;
  text-transform: none;
  font-size: 1.125rem;
  box-shadow: 0 0 20px hsla(var(--p-h), var(--p-s), var(--p-l), 0.3);
  transition: all 0.3s ease;
}

#manifesto-contato-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 0 40px hsla(var(--p-h), var(--p-s), var(--p-l), 0.5);
}


@media (max-width: 1024px) {
  .manifesto-grid { grid-template-columns: 1fr; gap: 3rem; }
  .manifesto-container { padding: 4rem 2rem; }
}

@media (max-width: 768px) {
  .manifesto-container { 
    padding: 3rem 1.5rem; 
    border-radius: 1.5rem; 
    height: 90vh; /* Ajustado */
    display: flex;
    flex-direction: column;
  }
  .manifesto-body { padding-top: 1rem; }
  .manifesto-header { margin-bottom: 2rem; }
  .manifesto-title { font-size: 2rem; }
  .manifesto-grid { gap: 2rem; display: block; } /* Empilha no mobile */
  .manifesto-sidebar { margin-top: 2rem; }
  .manifesto-text-cols .lead { font-size: 1.125rem; margin-bottom: 1.5rem; }
  .manifesto-text-cols { font-size: 0.9375rem; }
  .manifesto-footer { padding-top: 2.5rem; margin-top: auto; }
  .manifesto-footer blockquote { font-size: 1.125rem; margin-bottom: 2rem; }
  .manifesto-close { top: 0.75rem; right: 0.75rem; width: 2.5rem; height: 2.5rem; }
}

/* ============================================================
   CONTACT QUICK HUB
   ============================================================ */
.hub-overlay {
  position: fixed;
  inset: 0;
  background: hsl(220 20% 2% / 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.hub-overlay.open {
  opacity: 1;
  visibility: visible;
}

.hub-box {
  width: 90%;
  max-width: 480px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: 3.5rem 2rem;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
}

.hub-overlay.open .hub-box { transform: translateY(0); }

.hub-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: hsl(220 15% 13%);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hub-close:hover {
  background: hsl(220 15% 18%);
  border-color: var(--primary);
  color: var(--foreground);
  transform: rotate(90deg);
}

.hub-close svg {
  width: 1rem;
  height: 1rem;
}



.hub-header { margin-bottom: 2.5rem; }
.hub-title { font-size: 2.25rem; font-weight: 800; margin-bottom: 0.5rem; letter-spacing: -0.02em; }
.hub-desc { color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }

.hub-options { display: flex; flex-direction: column; gap: 1rem; }

.hub-btn {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  background: hsl(220 20% 5%);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  text-decoration: none;
  transition: all 0.2s;
}

.hub-btn:hover {
  background: var(--secondary);
  border-color: var(--primary);
  transform: translateX(6px);
}

.hub-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: hsl(220 20% 8%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.125rem;
  transition: all 0.3s ease;
  color: var(--primary); /* Define a cor do stroke via currentColor */
}

.hub-btn:hover .hub-icon {
  background: hsla(var(--p-h), var(--p-s), var(--p-l), 0.1);
  transform: scale(1.05);
}

.hub-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.hub-info { text-align: left; }
.hub-label { display: block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 0.15rem; }
.hub-val { display: block; font-size: 1.0625rem; font-weight: 500; color: var(--primary); }

.hub-footer { margin-top: 2.5rem; font-size: 0.8125rem; color: var(--muted); }
