/* ═══════════════════════════════════════
   DESIGN SYSTEM — WebGyn
   Paleta: #071739 #4B6382 #A4B5C4 #CDD5DB #A68868 #E3C39D
═══════════════════════════════════════ */

:root {
  --navy-dark: #071739;
  --navy: #0c2350;
  --steel: #4B6382;
  --steel-light: #A4B5C4;
  --silver: #CDD5DB;
  --gold: #A68868;
  --gold-light: #E3C39D;
  --white: #ffffff;
  --bg-body: #f5f7fa;

  --gradient-brand: linear-gradient(135deg, #0ea5e9, #2563eb, #4B6382);
  --gradient-gold: linear-gradient(135deg, #A68868, #E3C39D);
  --gradient-hero-overlay: linear-gradient(135deg, rgba(255, 255, 255, 0.88) 0%, rgba(245, 247, 250, 0.82) 50%, rgba(205, 213, 219, 0.7) 100%);

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --shadow-sm: 0 2px 8px rgba(7, 23, 57, 0.06);
  --shadow-md: 0 8px 32px rgba(7, 23, 57, 0.10);
  --shadow-lg: 0 16px 48px rgba(7, 23, 57, 0.14);
  --shadow-glow: 0 0 40px rgba(14, 165, 233, 0.25);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══ RESET ═══ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--navy-dark);
  background: var(--bg-body);
  overflow-x: hidden;
  line-height: 1.6;
}

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

ul {
  list-style: none;
}

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

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ═══════════════════════════════════════
   NAVBAR
═══════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: var(--nav-bg, rgba(7, 23, 57, 0.4));
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  padding: 10px 0;
  border-bottom: 1px solid var(--nav-border, rgba(255, 255, 255, 0.08));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 42px;
  width: auto;
  transition: var(--transition);
  filter: var(--logo-filter, none);
}

.nav-logo:hover img {
  transform: scale(1.04);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--nav-text, var(--white));
  position: relative;
  padding: 4px 0;
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 2px;
  transition: width 0.35s ease;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a:hover::after {
  width: 100%;
}

.mobile-cta-item {
  display: none; /* Esconde no desktop */
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-instagram {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--nav-border, rgba(255, 255, 255, 0.25));
  color: var(--nav-text, var(--white));
  transition: var(--transition);
}

.nav-instagram:hover {
  background: var(--nav-border, rgba(255, 255, 255, 0.1));
  transform: scale(1.08);
}

.nav-instagram svg {
  width: 18px;
  height: 18px;
}

.nav-cta {
  padding: 10px 24px;
  background: var(--gradient-brand);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.nav-cta:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 25px rgba(14, 165, 233, 0.45);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 1001;
}

.nav-hamburger span {
  width: 26px;
  height: 2.5px;
  background: var(--nav-text, var(--white));
  border-radius: 4px;
  transition: var(--transition);
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ═══════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-dark);
}

/* ── Background esteira de imagens ── */
.hero-bg-track {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg-strip {
  display: flex;
  gap: 12px;
  height: 100%;
  animation: bgScroll 30s linear infinite;
  will-change: transform;
}

.hero-bg-strip img {
  height: 100%;
  width: auto;
  aspect-ratio: 9/16;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 4px;
}

@keyframes bgScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Overlay branco semi-transparente sobre background */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(7, 23, 57, 0.92) 0%,
      rgba(7, 23, 57, 0.85) 40%,
      rgba(12, 35, 80, 0.75) 100%);
  z-index: 1;
}

/* ── Container ── */
.hero-container {
  position: relative;
  z-index: 2;
  max-width: 1360px;
  margin: 0 auto;
  padding: 120px 32px 80px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}

/* ── Conteúdo à esquerda ── */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding-left: -20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--steel-light);
  width: fit-content;
  letter-spacing: 0.03em;
  animation: badgeDrop 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.badge-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  letter-spacing: -0.02em;
  perspective: 800px;
}

/* Palavras do título — efeito arco/curva 3D */
.word-anim {
  display: inline-block;
  animation: wordArc 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(0.4s + var(--w) * 0.12s);
}

.gradient-text {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--steel-light);
  line-height: 1.7;
  max-width: 500px;
  animation: subtitleReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 1.1s both;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  box-shadow: 0 6px 30px rgba(34, 197, 94, 0.35);
  transition: var(--transition);
  width: fit-content;
  animation: ctaExplode 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.4s both;
  position: relative;
  overflow: hidden;
}

.hero-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.6s ease;
}

.hero-cta:hover::before {
  left: 100%;
}

.hero-cta:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 40px rgba(34, 197, 94, 0.5);
}

.hero-cta .wpp-icon {
  margin-right: 4px;
}

.wpp-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.wpp-icon svg {
  margin: 0;
}

.wpp-bubble {
  position: absolute;
  width: 100% !important;
  height: 100% !important;
  stroke-width: 2px;
}

.wpp-phone {
  position: absolute;
  width: 50% !important;
  height: 50% !important;
  stroke-width: 2.5px;
  transform: translate(0.5px, -1px);
}

.wpp-icon--lg {
  width: 32px;
  height: 32px;
}


/* ── Showcase devices à direita ── */
.hero-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: showcaseFlip 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

.showcase-glow {
  position: absolute;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(40px);
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {

  0%,
  100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.15);
  }
}

.showcase-slider {
  position: relative;
  width: 100%;
  max-width: 620px;
  aspect-ratio: 3/2;
  perspective: 1200px;
}

.showcase-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3)) blur(8px);
  transform: scale(0.7) rotateY(25deg) translateZ(-100px);
  clip-path: inset(10% 10% 10% 10% round 20px);
  transition: opacity 0s, transform 0s, filter 0s, clip-path 0s;
  will-change: transform, opacity, filter, clip-path;
}

/* Slide ativo: reveal completo */
.showcase-img.active {
  opacity: 1;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3)) blur(0px);
  transform: scale(1) rotateY(0deg) translateZ(0);
  clip-path: inset(0% 0% 0% 0% round 0px);
  transition:
    opacity 0.4s ease,
    transform 1s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.8s ease,
    clip-path 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Slide saindo */
.showcase-img.exit {
  opacity: 0;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3)) blur(6px);
  transform: scale(0.85) rotateY(-20deg) translateZ(-80px);
  clip-path: inset(50% 50% 50% 50% round 50%);
  transition:
    opacity 0.6s ease 0.1s,
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.5s ease,
    clip-path 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}



/* ── Shape Divider ── */
.portfolio-divider {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  z-index: 3;
  line-height: 0;
  transform: rotate(180deg);
}

.portfolio-divider svg {
  width: 100%;
  height: 160px;
}

/* ═══════════════════════════════════════
   SEÇÕES GERAIS
═══════════════════════════════════════ */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(7, 23, 57, 0.05);
  color: var(--navy-dark);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-subtitle {
  color: var(--steel);
  font-size: 1.05rem;
}

/* ═══════════════════════════════════════
   PORTFOLIO 3D CAROUSEL
═══════════════════════════════════════ */
.portfolio {
  padding: 100px 32px;
  background: #f8f9fa;
  overflow: hidden;
  position: relative;
}

.portfolio-container {
  max-width: 1360px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Partículas e Orbs */
.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Rastro Dourado */
.portfolio-golden-trail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1; /* Fica acima do background mas abaixo do conteúdo (z-index 2) */
  opacity: 0.85;
}

#portfolioTrailPath {
  /* Aproximadamente o comprimento do caminho. O JS vai redefinir exatamente depois */
  stroke-dasharray: 6000;
  stroke-dashoffset: 6000;
  will-change: stroke-dashoffset;
}

.particle {
  position: absolute;
  background: var(--navy-dark);
  border-radius: 50%;
  opacity: 0.15;
  box-shadow: 0 0 15px rgba(7, 23, 57, 0.2);
}

.p-1 {
  width: 5px;
  height: 5px;
  left: 15%;
  top: 20%;
  animation: floatP 8s ease-in-out infinite alternate;
}

.p-2 {
  width: 3px;
  height: 3px;
  right: 22%;
  top: 18%;
  animation: floatP 11s ease-in-out infinite alternate-reverse;
}

.p-3 {
  width: 7px;
  height: 7px;
  left: 12%;
  bottom: 25%;
  animation: floatP 13s ease-in-out infinite alternate;
}

.p-4 {
  width: 4px;
  height: 4px;
  right: 18%;
  bottom: 22%;
  animation: floatP 9s ease-in-out infinite alternate-reverse;
}

.p-5 {
  width: 6px;
  height: 6px;
  left: 45%;
  top: 12%;
  animation: floatP 14s ease-in-out infinite alternate;
}

.p-6 {
  width: 8px;
  height: 8px;
  right: 40%;
  bottom: 15%;
  animation: floatP 16s ease-in-out infinite alternate-reverse;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: floatOrb 20s ease-in-out infinite alternate;
}

.o-1 {
  width: 350px;
  height: 350px;
  background: rgba(166, 136, 104, 0.15);
  top: -80px;
  left: -100px;
}

.o-2 {
  width: 450px;
  height: 450px;
  background: rgba(14, 165, 233, 0.08);
  bottom: -150px;
  right: -150px;
  animation-direction: alternate-reverse;
}

@keyframes floatP {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.1;
  }

  100% {
    transform: translateY(-50px) scale(1.5);
    opacity: 0.7;
  }
}

@keyframes floatOrb {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(60px, -60px) scale(1.15);
  }
}

.carousel-3d-wrapper {
  position: relative;
  width: 100%;
  height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
  margin-top: 20px;
}

.carousel-3d {
  position: relative;
  width: 320px;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mural-item {
  position: absolute;
  width: 320px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  will-change: transform;
  pointer-events: none; /* Bloqueia cliques fantasmas do 3D */

  /* Efeito para imagens que estão atrás */
  opacity: 0.3;
  filter: blur(4px) grayscale(30%);
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s ease, filter 0.8s ease, box-shadow 0.4s ease, z-index 0.1s ease;
}

.mural-item.active {
  opacity: 1;
  filter: blur(0px) grayscale(0%);
  box-shadow: var(--shadow-lg);
  z-index: 5;
  pointer-events: auto; /* Apenas o item frontal recebe cliques */
}

.mural-img-wrapper {
  width: 100%;
  overflow: hidden;
}

.mural-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}

/* 3D Ring Positions */
.ring-item {
  transform: rotateY(var(--angle, 0deg)) translateZ(450px);
}
/* Controls */
.carousel-controls {
  margin-top: 40px;
  display: flex;
  gap: 20px;
  z-index: 10;
}

.carousel-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--navy-dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

.carousel-btn:hover {
  background: var(--steel);
  transform: scale(1.1);
}

/* Overlay com Botão Detalhes */
.mural-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 23, 57, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.overlay-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--gradient-brand);
  color: var(--white);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  box-shadow: 0 10px 25px rgba(14, 165, 233, 0.4);
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.overlay-btn i {
  width: 18px;
  height: 18px;
}

.mural-item.active:hover .mural-overlay {
  opacity: 1;
  visibility: visible;
}

.mural-item.active:hover .overlay-btn {
  transform: translateY(0);
}

.overlay-btn:hover {
  transform: scale(1.05) translateY(0) !important;
  box-shadow: 0 12px 30px rgba(14, 165, 233, 0.6);
}

.mural-item.active:hover {
  box-shadow: 0 20px 50px rgba(7, 23, 57, 0.25);
}

.mural-item.active:hover .mural-img-wrapper img {
  transform: scale(1.04);
}

/* CTA Chamativo do Portfólio */
.portfolio-cta-banner {
  margin-top: 80px;
  background: var(--navy-dark);
  border-radius: var(--radius-lg);
  padding: 45px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  box-shadow: 0 20px 40px rgba(7, 23, 57, 0.15);
  position: relative;
  overflow: hidden;
}

/* Efeito de brilho interno no banner */
.portfolio-cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 70% 30%, rgba(14, 165, 233, 0.15), transparent 60%);
  pointer-events: none;
}

.portfolio-cta-content h3 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--white);
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.2;
}

.portfolio-cta-content p {
  color: var(--steel-light);
  font-size: 1.05rem;
  max-width: 500px;
}

.btn-glow-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  background: var(--gradient-brand);
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 25px rgba(14, 165, 233, 0.4);
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

.btn-glow-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  background: inherit;
  filter: blur(15px);
  opacity: 0.5;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.btn-glow-cta:hover {
  transform: translateY(-4px) scale(1.03);
  color: var(--white);
}

.btn-glow-cta:hover::before {
  opacity: 0.8;
  filter: blur(20px);
}

@media (max-width: 992px) {
  .portfolio-cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 40px 30px;
  }
}

/* Reveal Animation Scroll */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════
   SEÇÃO SERVIÇOS
═══════════════════════════════════════ */
.servicos {
  position: relative;
  padding: 120px 32px 100px;
  background: linear-gradient(170deg, #060e24 0%, #0a1a3a 40%, #0c2350 85%, #0c2350 100%);
  overflow: hidden;
}

/* Divider topo */
.servicos-divider {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  z-index: 3;
  line-height: 0;
  transform: rotate(180deg);
}

.servicos-divider svg {
  width: 100%;
  height: 160px;
}

/* Variantes claras para header */
.section-badge--dark {
  background: rgba(14, 165, 233, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.2);
}

.section-badge--gold {
  background: rgba(166, 136, 104, 0.15);
  color: #E3C39D;
  border: 1px solid rgba(227, 195, 157, 0.25);
}

.section-title--light {
  color: var(--white);
}

.section-subtitle--light {
  color: var(--steel-light);
}

.gradient-text--gold {
  background: linear-gradient(135deg, #E3C39D, #A68868);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Container */
.servicos-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Grid dos cards */
.servicos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 20px;
}

/* ── Partículas suspensas ── */
.servicos-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.sp {
  position: absolute;
  background: rgba(14, 165, 233, 0.5);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.4);
}

.sp-1 { width: 4px; height: 4px; left: 8%; top: 15%; animation: spFloat 9s ease-in-out infinite alternate; }
.sp-2 { width: 3px; height: 3px; right: 12%; top: 22%; animation: spFloat 12s ease-in-out infinite alternate-reverse; }
.sp-3 { width: 6px; height: 6px; left: 25%; bottom: 20%; animation: spFloat 15s ease-in-out infinite alternate; }
.sp-4 { width: 3px; height: 3px; right: 30%; bottom: 30%; animation: spFloat 10s ease-in-out infinite alternate-reverse; }
.sp-5 { width: 5px; height: 5px; left: 50%; top: 10%; animation: spFloat 13s ease-in-out infinite alternate; }
.sp-6 { width: 4px; height: 4px; right: 8%; bottom: 15%; animation: spFloat 11s ease-in-out infinite alternate-reverse; }
.sp-7 { width: 3px; height: 3px; left: 15%; top: 55%; animation: spFloat 14s ease-in-out infinite alternate; }
.sp-8 { width: 5px; height: 5px; right: 20%; top: 45%; animation: spFloat 8s ease-in-out infinite alternate-reverse; }
.sp-9 { width: 4px; height: 4px; left: 40%; bottom: 10%; animation: spFloat 16s ease-in-out infinite alternate; }
.sp-10 { width: 3px; height: 3px; right: 45%; top: 35%; animation: spFloat 10s ease-in-out infinite alternate-reverse; }
.sp-11 { width: 6px; height: 6px; left: 70%; top: 18%; animation: spFloat 12s ease-in-out infinite alternate; background: rgba(37, 99, 235, 0.4); box-shadow: 0 0 14px rgba(37, 99, 235, 0.3); }
.sp-12 { width: 4px; height: 4px; left: 85%; bottom: 40%; animation: spFloat 14s ease-in-out infinite alternate-reverse; background: rgba(56, 189, 248, 0.35); box-shadow: 0 0 10px rgba(56, 189, 248, 0.3); }

@keyframes spFloat {
  0% { transform: translateY(0) translateX(0) scale(1); opacity: 0.2; }
  50% { opacity: 0.8; }
  100% { transform: translateY(-60px) translateX(30px) scale(1.6); opacity: 0.15; }
}

/* ── Card Glassmorphism ── */
.servico-card {
  position: relative;
  background: linear-gradient(180deg,
    #0a1a3a 0%,
    #112d5e 40%,
    #1a56db 100%);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: var(--radius-lg);
  padding: 48px 32px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  perspective: 800px;
}

/* Brilho de topo sutil */
.servico-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.5), transparent);
  opacity: 0.6;
  transition: opacity 0.5s ease;
}

/* Shimmer animado no hover */
.servico-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(56, 189, 248, 0.06) 50%,
    transparent 70%
  );
  transform: rotate(0deg);
  transition: transform 0.8s ease;
  pointer-events: none;
}

.servico-card:hover::after {
  transform: rotate(180deg);
}

/* Glow behind card */
.servico-card-glow {
  position: absolute;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  filter: blur(50px);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

/* ── HOVER: card fica todo azul ── */
.servico-card:hover {
  transform: translateY(-14px) scale(1.03);
  border-color: rgba(56, 189, 248, 0.5);
  background: linear-gradient(180deg,
    #17469c 0%,
    #3662a8 50%,
    #294981 100%);
  box-shadow:
    0 25px 70px rgba(37, 99, 235, 0.35),
    0 0 50px rgba(56, 189, 248, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.servico-card:hover::before {
  opacity: 1;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.servico-card:hover .servico-card-glow {
  opacity: 1;
}

.servico-card:hover .servico-icon-wrapper {
  transform: scale(1.12) translateY(-6px);
}

.servico-card:hover .servico-nome {
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.servico-card:hover .servico-features li svg {
  color: #ffffff;
}

.servico-card:hover .servico-features li {
  color: rgba(255, 255, 255, 0.85);
}

.servico-card:hover .servico-desc {
  color: rgba(255, 255, 255, 0.8);
}

/* ── Ícone (sem container) ── */
.servico-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.servico-icon-wrapper::after {
  content: '';
  position: absolute;
  width: 160%;
  height: 160%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.servico-icon-wrapper img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(56, 189, 248, 0.35));
  transition: all 0.5s ease;
}

.servico-card:hover .servico-icon-wrapper img {
  filter: drop-shadow(0 6px 20px rgba(255, 255, 255, 0.4)) brightness(1.15);
  transform: scale(1.1);
}

/* ── Texto do card ── */
.servico-nome {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  transition: text-shadow 0.5s ease;
}

.servico-desc {
  color: var(--steel-light);
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 280px;
  transition: color 0.5s ease;
}

/* ── Features list ── */
.servico-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
  width: 100%;
  max-width: 240px;
}

.servico-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(164, 181, 196, 0.9);
  transition: color 0.5s ease;
}

.servico-features li svg {
  width: 16px;
  height: 16px;
  color: #38bdf8;
  flex-shrink: 0;
  transition: color 0.5s ease;
}

/* ── Animações de entrada AGRESSIVAS 3D ── */

/* Card 1: Flip Y + slide da esquerda */
.reveal-left {
  opacity: 0;
  transform: translateX(-120px) rotateY(90deg) scale(0.6);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0) rotateY(0deg) scale(1);
  transition-delay: var(--delay, 0s);
}

/* Card 2: Escala zero + rotação dupla */
.reveal-up {
  opacity: 0;
  transform: translateY(100px) scale(0) rotate(15deg);
  transition: all 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.active {
  opacity: 1;
  transform: translateY(0) scale(1) rotate(0deg);
  transition-delay: var(--delay, 0s);
}

/* Card 3: Flip X + slide da direita */
.reveal-right {
  opacity: 0;
  transform: translateX(120px) rotateY(-90deg) scale(0.6);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0) rotateY(0deg) scale(1);
  transition-delay: var(--delay, 0s);
}

/* ═══════════════════════════════════════
   SEÇÃO VANTAGENS
═══════════════════════════════════════ */
.vantagens {
  position: relative;
  padding: 100px 0 0;
  background: linear-gradient(180deg,
    #1a1206 0%,
    #2a1f10 20%,
    #3d2e18 45%,
    #4a3820 65%,
    #5a4528 80%,
    #6b5432 100%);
  overflow: hidden;
}

.vantagens-divider {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  z-index: 3;
  line-height: 0;
  transform: rotate(180deg);
}

.vantagens-divider svg {
  width: 100%;
  height: 160px;
}

.vantagens-container {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Microseção genérica ── */
.vant-micro {
  width: 100%;
  padding: 80px 32px;
  position: relative;
}

.vant-micro > * {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.vant-micro + .vant-micro {
  border-top: 1px solid rgba(227, 195, 157, 0.1);
}

/* ── Marquee Banners (Faixas Animadas) ── */
.marquee-banner {
  width: 100%;
  overflow: hidden;
  background: rgba(227, 195, 157, 0.04);
  border-top: 1px solid rgba(227, 195, 157, 0.1);
  border-bottom: 1px solid rgba(227, 195, 157, 0.1);
  padding: 20px 0;
  display: flex;
  position: relative;
  transform: rotate(-1deg) scale(1.02);
  margin: -10px 0;
  z-index: 2;
}

.marquee-banner--reverse {
  transform: rotate(1deg) scale(1.02);
  background: rgba(14, 165, 233, 0.04);
  border-color: rgba(14, 165, 233, 0.1);
}

.marquee-content {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  padding-right: 30px; /* balanceamento de gap para loop perfeito */
  white-space: nowrap;
  animation: scrollMarquee 25s linear infinite;
  will-change: transform;
}

.marquee-content--reverse {
  animation-direction: reverse;
}

.marquee-content span {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.marquee-content span.dot {
  color: #E3C39D;
  font-size: 1.5rem;
}

.marquee-banner--reverse .marquee-content span.dot {
  color: #0ea5e9;
}

@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── 1. Devices Row ── */
.devices-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 20px;
}

.device-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.device-item img {
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(7, 23, 57, 0.12));
  transition: transform 0.5s ease, filter 0.5s ease;
}

.device-item:hover img {
  transform: translateY(-8px) scale(1.05);
  filter: drop-shadow(0 16px 32px rgba(14, 165, 233, 0.3));
}

.device-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--steel-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Connector: linhas tracejadas + texto */
.device-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 24px;
  flex-shrink: 0;
}

.connector-line {
  width: 80px;
  height: 2px;
  border-top: 2.5px dashed var(--gold-light);
  opacity: 0.7;
}

.connector-text {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  white-space: nowrap;
  background: linear-gradient(135deg, #E3C39D, #A68868);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── 2. SEO Grid ── */
.vant-seo-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 60px;
  align-items: center;
}

.vant-seo-img img {
  width: 280px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(7, 23, 57, 0.1));
  transition: transform 0.5s ease;
}

.vant-seo-img:hover img {
  transform: scale(1.05) rotate(-2deg);
}

.vant-seo-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vant-seo-content .section-badge {
  width: fit-content;
}

.vant-seo-desc {
  color: var(--steel-light);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 480px;
}

.vant-seo-desc strong {
  color: var(--white);
}

.vant-seo-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.vant-seo-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--white);
}

.vant-seo-list li svg {
  width: 20px;
  height: 20px;
  color: #E3C39D;
  flex-shrink: 0;
}

/* ── 3. Speed Cards ── */
.speed-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 20px;
}

.speed-card {
  background: rgba(7, 23, 57, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(227, 195, 157, 0.15);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.speed-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(166, 136, 104, 0.25);
  border-color: rgba(227, 195, 157, 0.35);
  background: rgba(7, 23, 57, 0.6);
}

.speed-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #A68868, #E3C39D);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(166, 136, 104, 0.35);
  transition: transform 0.5s ease;
}

.speed-card:hover .speed-icon-wrap {
  transform: scale(1.1) rotate(5deg);
}

.speed-icon-wrap svg {
  width: 28px;
  height: 28px;
  color: var(--white);
}

.speed-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
}

.speed-card p {
  color: var(--steel-light);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 260px;
}

/* ═══════════════════════════════════════
   GOLDEN TRAIL
═══════════════════════════════════════ */
.golden-trail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.golden-path {
  stroke-linecap: round;
  stroke-linejoin: round;
  will-change: stroke-dashoffset;
}

/* ═══════════════════════════════════════
   WHATSAPP FLUTUANTE
═══════════════════════════════════════ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: var(--white);
  border-radius: 50%;
  box-shadow:
    0 6px 20px rgba(37, 211, 102, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.15),
    inset 0 2px 0 rgba(255, 255, 255, 0.25),
    inset 0 -2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: whatsapp3D 6s ease-in-out infinite;
  perspective: 800px;
  transform-style: preserve-3d;
}

@keyframes whatsapp3D {
  0% {
    transform: rotateY(0deg) rotateX(0deg);
  }

  25% {
    transform: rotateY(180deg) rotateX(10deg);
  }

  50% {
    transform: rotateY(360deg) rotateX(0deg);
  }

  75% {
    transform: rotateY(180deg) rotateX(-10deg);
  }

  100% {
    transform: rotateY(0deg) rotateX(0deg);
  }
}

.whatsapp-float:hover {
  animation-play-state: paused;
  transform: scale(1.15) rotateY(0deg);
  box-shadow:
    0 8px 30px rgba(37, 211, 102, 0.55),
    0 0 25px rgba(37, 211, 102, 0.3);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

/* ═══════════════════════════════════════
   ANIMAÇÕES DE ENTRADA
═══════════════════════════════════════ */
/* ── Logo: flip 3D com elastic ── */
.hero-anim-logo {
  animation: logoFlip 1s cubic-bezier(0.16, 1, 0.3, 1) 0s both;
}

@keyframes logoFlip {
  0% {
    opacity: 0;
    transform: rotateY(-180deg) scale(0.3);
    filter: blur(10px);
  }
  60% {
    transform: rotateY(15deg) scale(1.08);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: rotateY(0) scale(1);
    filter: blur(0);
  }
}

/* ── Navbar links: peças de quebra-cabeça ── */
.nav-piece {
  animation: puzzlePiece 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(0.15s + var(--i) * 0.1s);
}

@keyframes puzzlePiece {
  0% {
    opacity: 0;
    transform:
      translateY(calc(-40px + var(--i) * 15px))
      translateX(calc(60px - var(--i) * 30px))
      rotate(calc(20deg - var(--i) * 10deg))
      scale(0.4);
    filter: blur(6px);
  }
  70% {
    transform:
      translateY(2px)
      translateX(-2px)
      rotate(-1deg)
      scale(1.05);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) translateX(0) rotate(0) scale(1);
    filter: blur(0);
  }
}

/* ── Nav actions: slide lateral ── */
.hero-anim-actions {
  animation: actionsSlide 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both;
}

@keyframes actionsSlide {
  0% {
    opacity: 0;
    transform: translateX(80px) scale(0.5);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }
}

/* ── Badge: queda com bounce elástico ── */
@keyframes badgeDrop {
  0% {
    opacity: 0;
    transform: translateY(-80px) scale(0.5) rotateZ(-8deg);
    filter: blur(10px);
  }
  50% {
    transform: translateY(8px) scale(1.06) rotateZ(2deg);
    filter: blur(0);
  }
  70% {
    transform: translateY(-4px) scale(0.98) rotateZ(-1deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotateZ(0);
    filter: blur(0);
  }
}

/* ── Palavras do título: arco/curva 3D ── */
@keyframes wordArc {
  0% {
    opacity: 0;
    transform:
      translateY(100px)
      rotateX(-90deg)
      scale(0.3);
    filter: blur(12px);
    text-shadow: 0 0 0 transparent;
  }
  50% {
    transform:
      translateY(-15px)
      rotateX(12deg)
      scale(1.05);
    filter: blur(0);
  }
  70% {
    transform:
      translateY(5px)
      rotateX(-4deg)
      scale(0.98);
  }
  100% {
    opacity: 1;
    transform:
      translateY(0)
      rotateX(0)
      scale(1);
    filter: blur(0);
  }
}

/* ── Subtítulo: reveal com clip-path + fade ── */
@keyframes subtitleReveal {
  0% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    clip-path: inset(0 0% 0 0);
    transform: translateX(0);
  }
}

/* ── CTA: explosão com scale + glow ── */
@keyframes ctaExplode {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-10deg);
    box-shadow: 0 0 0 rgba(34, 197, 94, 0);
    filter: blur(15px);
  }
  50% {
    transform: scale(1.15) rotate(2deg);
    box-shadow: 0 0 60px rgba(34, 197, 94, 0.6);
    filter: blur(0);
  }
  70% {
    transform: scale(0.95) rotate(-1deg);
    box-shadow: 0 6px 30px rgba(34, 197, 94, 0.35);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0);
    box-shadow: 0 6px 30px rgba(34, 197, 94, 0.35);
    filter: blur(0);
  }
}

/* ── Showcase: flip 3D dramático ── */
@keyframes showcaseFlip {
  0% {
    opacity: 0;
    transform: perspective(1200px) rotateX(60deg) translateY(100px) scale(0.6);
    filter: blur(15px);
  }
  50% {
    transform: perspective(1200px) rotateX(-8deg) translateY(-10px) scale(1.03);
    filter: blur(0);
  }
  70% {
    transform: perspective(1200px) rotateX(3deg) translateY(5px) scale(0.99);
  }
  100% {
    opacity: 1;
    transform: perspective(1200px) rotateX(0) translateY(0) scale(1);
    filter: blur(0);
  }
}

/* ── Fallbacks genéricos (usados em mobile menu etc) ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══════════════════════════════════════
   CONTATO & CTA FINAL
═══════════════════════════════════════ */
.contact-cta {
  background: #040b1e;
  padding: 120px 32px;
  position: relative;
  text-align: center;
  overflow: hidden;
}

.contact-divider {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 10;
  transform: rotate(180deg);
}

.contact-divider svg {
  width: calc(100% + 1.3px);
  height: 80px;
}

.contact-cta-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.contact-cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.contact-icon-glow {
  width: 80px;
  height: 80px;
  background: rgba(37, 211, 102, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  position: relative;
}

.contact-icon-glow::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 211, 102, 0.2) 0%, transparent 70%);
  animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
  0% { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(1.2); opacity: 1; }
}

.wpp-icon-pulse {
  color: #25d366;
  width: 40px;
  height: 40px;
  z-index: 1;
}

.contact-cta-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  line-height: 1.1;
  font-weight: 800;
}

.contact-cta-content p {
  color: var(--steel-light);
  font-size: 1.1rem;
  max-width: 600px;
  line-height: 1.6;
}

.btn-whatsapp-large {
  background: linear-gradient(135deg, #128c7e, #25d366) !important;
  font-size: 1.15rem;
  padding: 18px 40px;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3) !important;
  margin-top: 20px;
}

.btn-whatsapp-large:hover {
  box-shadow: 0 15px 40px rgba(37, 211, 102, 0.5) !important;
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.footer {
  background: #020613;
  color: var(--steel-light);
  padding: 80px 32px 30px;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 40px;
}

.footer-brand {
  max-width: 350px;
}

.footer-logo {
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  color: var(--white);
  transition: var(--transition);
}

.social-link:hover {
  background: var(--gradient-brand);
  transform: translateY(-3px);
}

.social-link i {
  width: 20px;
  height: 20px;
}

.footer-nav h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 20px;
  font-family: var(--font-heading);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--steel-light);
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white);
  transform: translateX(5px);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 30px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ═══════════════════════════════════════
   RESPONSIVIDADE
═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
    padding: 110px 24px 60px;
  }

  .hero-content {
    align-items: center;
  }

  .hero-badge {
    margin: 0 auto;
  }

  .hero-subtitle {
    margin: 0 auto;
  }

  .hero-cta {
    margin: 0 auto;
  }

  .hero-stats {
    justify-content: center;
  }

  .showcase-slider {
    max-width: 500px;
  }

  /* Portfolio iPad */
  .carousel-3d-wrapper {
    height: 500px;
  }

  .carousel-3d {
    width: 280px;
  }

  .mural-item {
    width: 280px;
  }

  .ring-item {
    transform: rotateY(var(--angle, 0deg)) translateZ(350px);
  }

  /* Serviços Tablet */
  .servicos {
    padding: 100px 24px 80px;
  }

  .servicos-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .servico-card {
    padding: 36px 20px 32px;
  }

  .servico-icon-wrapper img {
    width: 85px;
    height: 85px;
  }

  /* Vantagens Tablet */
  .vantagens {
    padding: 80px 24px 60px;
  }

  .vantagens-container {
    gap: 80px;
  }

  .device-item img {
    max-width: 200px;
  }

  .connector-line {
    width: 50px;
  }

  .device-connector {
    padding: 0 12px;
  }

  .vant-seo-grid {
    gap: 40px;
  }

  .vant-seo-img img {
    width: 220px;
  }

  /* Shape dividers */
  .portfolio-divider svg,
  .servicos-divider svg,
  .vantagens-divider svg,
  .contact-divider svg {
    height: 100px;
  }
}

@media (max-width: 768px) {

  .nav-actions {
    display: none;
  }

  /* Shape dividers */
  .portfolio-divider svg,
  .servicos-divider svg,
  .vantagens-divider svg,
  .contact-divider svg {
    height: 60px;
  }

  .nav-hamburger {
    display: flex;
  }

  /* Menu lateral animado em formato de bola (clip-path) */
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: rgba(4, 11, 30, 0.96);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 40px;
    gap: 30px;
    z-index: 1000;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    
    /* Começa como um pequeno círculo escondido atrás do hamburger */
    clip-path: circle(0px at calc(100% - 40px) 40px);
    transition: clip-path 0.7s cubic-bezier(0.8, 0, 0.2, 1);
    pointer-events: none;
  }

  .nav-links.active {
    /* Expande para cobrir a lateral inteira */
    clip-path: circle(120vh at calc(100% - 40px) 40px);
    pointer-events: auto;
  }

  /* Animação dos itens em cascata */
  .nav-links li {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    width: 100%;
  }

  .nav-links.active li {
    opacity: 1;
    transform: translateX(0);
  }

  .nav-links.active li:nth-child(1) { transition-delay: 0.2s; }
  .nav-links.active li:nth-child(2) { transition-delay: 0.3s; }
  .nav-links.active li:nth-child(3) { transition-delay: 0.4s; }
  .nav-links.active li:nth-child(4) { transition-delay: 0.5s; }
  .nav-links.active li:nth-child(5) { transition-delay: 0.6s; }

  .nav-links a {
    font-size: 1.4rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--white) !important;
    display: block;
    width: 100%;
  }

  .mobile-cta-item {
    display: block;
    margin-top: auto; /* Empurra para o fundo do menu */
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }
  
  .nav-links.active .mobile-cta-item {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.7s; /* Anima depois dos links */
  }

  .mobile-cta-item .nav-cta {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
  }

  .hero-title {
    font-size: clamp(2rem, 6vw, 2.8rem);
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .hero-cta {
    padding: 14px 28px;
    font-size: 0.95rem;
  }

  .hero-stats {
    gap: 16px;
    flex-wrap: wrap;
  }

  .stat-number {
    font-size: 1.2rem;
  }

  .showcase-slider {
    max-width: 380px;
  }

  /* Portfolio Mobile */
  .portfolio {
    padding: 80px 16px;
  }

  .carousel-3d-wrapper {
    height: 400px;
  }

  .carousel-3d {
    width: 220px;
  }

  .mural-item {
    width: 220px;
  }

  .ring-item {
    transform: rotateY(var(--angle, 0deg)) translateZ(200px);
  }

  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }

  /* Serviços Mobile */
  .servicos {
    padding: 80px 16px 60px;
  }

  .servicos-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 400px;
    margin: 20px auto 0;
  }

  .servico-card {
    padding: 32px 24px 28px;
  }

  .servico-nome {
    font-size: 1.2rem;
  }

  .servico-desc {
    font-size: 0.88rem;
  }

  /* Reset animações direcionais no mobile */
  .reveal-left,
  .reveal-right {
    transform: translateY(60px) scale(0.8);
  }

  .reveal-left.active,
  .reveal-right.active {
    transform: translateY(0) scale(1);
  }

  .reveal-up {
    transform: translateY(80px) scale(0.85);
  }

  .reveal-up.active {
    transform: translateY(0) scale(1);
  }

  /* Vantagens Mobile */
  .vantagens {
    padding: 70px 16px 50px;
  }

  .vantagens-container {
    gap: 60px;
  }

  .devices-row {
    flex-direction: column;
    gap: 16px;
  }

  .device-connector {
    flex-direction: row;
    padding: 8px 0;
  }

  .connector-line {
    width: 40px;
  }

  .device-item img {
    max-width: 180px;
  }

  .vant-seo-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .vant-seo-img {
    display: flex;
    justify-content: center;
  }

  .vant-seo-img img {
    width: 200px;
  }

  .vant-seo-content {
    align-items: center;
  }

  .vant-seo-desc {
    text-align: center;
  }

  .vant-seo-list {
    align-items: flex-start;
  }

  .speed-cards {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin: 20px auto 0;
  }
}

@media (max-width: 480px) {
  .hero-container {
    padding: 100px 16px 50px;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .hero-badge {
    font-size: 0.72rem;
    padding: 6px 14px;
  }

  .showcase-slider {
    max-width: 320px;
  }

  .servicos-grid {
    max-width: 340px;
  }

  .servico-icon-wrapper img {
    width: 75px;
    height: 75px;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-brand {
    margin: 0 auto;
    align-items: center;
    display: flex;
    flex-direction: column;
  }

  .footer-nav {
    width: 100%;
  }
}

/* ═══════════════════════════════════════
   NAV ACTIVE STATE
═══════════════════════════════════════ */
.nav-active {
  color: var(--white) !important;
  position: relative;
}

.nav-active::after {
  width: 100% !important;
  background: var(--gradient-brand) !important;
}

/* ═══════════════════════════════════════
   PAGE HERO (Páginas internas)
═══════════════════════════════════════ */
.page-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-dark);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(14, 165, 233, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(37, 99, 235, 0.1) 0%, transparent 50%);
  z-index: 1;
}

.page-hero--results::before {
  background:
    radial-gradient(ellipse at 30% 60%, rgba(166, 136, 104, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 20%, rgba(14, 165, 233, 0.1) 0%, transparent 50%);
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(7, 23, 57, 0.95) 0%,
    rgba(7, 23, 57, 0.85) 50%,
    rgba(12, 35, 80, 0.9) 100%);
  z-index: 1;
}

.page-hero-container {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 140px 32px 80px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.page-hero .hero-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  animation: none;
}

.page-hero .hero-title .word-anim {
  animation: none;
}

.page-hero .hero-badge {
  animation: badgeDrop 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.page-hero .hero-subtitle {
  animation: subtitleReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
  text-align: center;
  margin: 0 auto;
}

/* ═══════════════════════════════════════
   SERVIÇOS DETALHADOS (Página de Serviços)
═══════════════════════════════════════ */
.srv-detail {
  padding: 100px 32px;
  position: relative;
  overflow: hidden;
}

.srv-detail--light {
  background: #f8f9fa;
}

.srv-detail--dark {
  background: linear-gradient(170deg, #060e24 0%, #0a1a3a 40%, #0c2350 100%);
}

.srv-detail--accent {
  background: linear-gradient(180deg, #1a1206 0%, #2a1f10 40%, #3d2e18 100%);
}

.srv-detail-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.srv-detail-container--reverse {
  direction: rtl;
}

.srv-detail-container--reverse > * {
  direction: ltr;
}

.srv-detail-img {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.srv-detail-img img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}

.srv-detail-img:hover img {
  transform: scale(1.04);
}

.srv-detail-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.srv-detail-content .section-badge {
  width: fit-content;
}

.srv-detail-desc {
  color: var(--steel);
  font-size: 1rem;
  line-height: 1.8;
}

.srv-detail-desc strong {
  color: var(--navy-dark);
}

.srv-detail-desc--light {
  color: var(--steel-light);
}

.srv-detail-desc--light strong {
  color: var(--white);
}

/* Benefícios */
.srv-benefits {
  background: rgba(7, 23, 57, 0.04);
  border: 1px solid rgba(7, 23, 57, 0.08);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 8px;
}

.srv-benefits--dark {
  background: rgba(14, 165, 233, 0.06);
  border-color: rgba(14, 165, 233, 0.15);
}

.srv-benefits--gold {
  background: rgba(166, 136, 104, 0.08);
  border-color: rgba(227, 195, 157, 0.2);
}

.srv-benefits h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.srv-benefits h3 svg {
  width: 20px;
  height: 20px;
  color: #0ea5e9;
}

.srv-benefits--dark h3,
.srv-benefits--gold h3 {
  color: var(--white);
}

.srv-benefits--gold h3 svg {
  color: #E3C39D;
}

.srv-benefits ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.srv-benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--steel);
}

.srv-benefits--dark li,
.srv-benefits--gold li {
  color: var(--steel-light);
}

.srv-benefits li svg {
  width: 18px;
  height: 18px;
  color: #0ea5e9;
  flex-shrink: 0;
}

.srv-benefits--gold li svg {
  color: #E3C39D;
}

.srv-detail .btn-glow-cta {
  margin-top: 16px;
  width: fit-content;
}

.srv-cta--gold {
  background: var(--gradient-gold) !important;
  box-shadow: 0 10px 25px rgba(166, 136, 104, 0.35) !important;
}

.srv-cta--gold:hover {
  box-shadow: 0 15px 35px rgba(166, 136, 104, 0.5) !important;
}

/* ═══════════════════════════════════════
   RESULTADOS — PROJETOS GRID
═══════════════════════════════════════ */
.results-projects {
  padding: 100px 32px;
  background: #f8f9fa;
}

.results-container {
  max-width: 1200px;
  margin: 0 auto;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.project-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.project-img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.project-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .project-img-wrapper img {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 23, 57, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--gradient-brand);
  color: var(--white);
  font-weight: 600;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.4);
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.project-card:hover .project-link {
  transform: translateY(0);
}

.project-link svg {
  width: 18px;
  height: 18px;
}

.project-info {
  padding: 28px;
}

.project-info h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 8px;
}

.project-info p {
  color: var(--steel);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.project-tags span {
  padding: 4px 14px;
  background: rgba(14, 165, 233, 0.08);
  color: #0ea5e9;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid rgba(14, 165, 233, 0.15);
}

/* ═══════════════════════════════════════
   RESULTADOS — PAGESPEED SECTION
═══════════════════════════════════════ */
.results-pagespeed {
  padding: 100px 32px;
  background: linear-gradient(170deg, #060e24 0%, #0a1a3a 40%, #0c2350 100%);
  overflow: hidden;
}

.pagespeed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}

.pagespeed-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.5s ease;
}

.pagespeed-card:hover {
  transform: translateY(-8px);
  border-color: rgba(14, 165, 233, 0.3);
  box-shadow: 0 20px 50px rgba(14, 165, 233, 0.15);
}

.pagespeed-img-wrapper {
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pagespeed-img-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.pagespeed-card:hover .pagespeed-img-wrapper img {
  transform: scale(1.02);
}

.pagespeed-info {
  padding: 28px;
}

.pagespeed-score {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.score-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.score-circle::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 3px solid currentColor;
  opacity: 0.3;
}

.score-circle--green {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
}

.score-circle span {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: inherit;
}

.pagespeed-score h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

.pagespeed-score p {
  font-size: 0.85rem;
  color: var(--steel-light);
  margin-top: 2px;
}

.pagespeed-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.metric-label {
  font-size: 0.78rem;
  color: var(--steel-light);
  font-weight: 500;
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
}

.metric--green {
  color: #22c55e;
}

.metric--orange {
  color: #f59e0b;
}

/* ═══════════════════════════════════════
   RESPONSIVIDADE PÁGINAS INTERNAS
═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .srv-detail-container {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .page-hero {
    min-height: 40vh;
  }

  .page-hero-container {
    padding: 120px 24px 60px;
  }

  .srv-detail {
    padding: 60px 20px;
  }

  .srv-detail-container,
  .srv-detail-container--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .pagespeed-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .results-projects,
  .results-pagespeed {
    padding: 60px 20px;
  }
}

@media (max-width: 480px) {
  .pagespeed-metrics {
    grid-template-columns: 1fr;
  }

  .srv-benefits {
    padding: 18px;
  }
}

/* ═══════════════════════════════════════
   ACESSIBILIDADE: reduced motion
═══════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}