/* Estilos customizados (efeitos visuais, animações) além dos utilitários Tailwind. */

body {
  background-color: #08061a;
  color: #fff;
  font-family: 'Poppins', system-ui, sans-serif;
  font-feature-settings: "rlig" 1, "calt" 1;
}

html {
  scroll-behavior: smooth;
}

h1, h2, h3, h4 {
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.03em;
}

h1 { font-size: 2.5rem; line-height: 1.2; }
h2 { font-size: 2rem; line-height: 1.3; }
h3 { font-size: 1.5rem; line-height: 1.4; }
h4 { font-size: 1.25rem; line-height: 1.4; }

@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  h3 { font-size: 1.75rem; }
}

@media (min-width: 1024px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }
}

.section-title { position: relative; display: inline-block; }
.section-title-underline {
  height: 3px;
  border-radius: 9999px;
  background-image: linear-gradient(to right, #1A3386, #364A97);
}

.fade-up { transition: all 0.5s; }

.icon-hand {
  filter: drop-shadow(0 0.5px rgba(0,0,0,0.06));
  transform: rotate(-0.25deg);
  opacity: 0.95;
}
.icon-hand path, .icon-hand circle, .icon-hand line, .icon-hand rect, .icon-hand polygon {
  stroke-width: 2.4 !important;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.glow-effect { box-shadow: 0 0 20px rgba(59, 130, 246, 0.15); }

.subtle-animation { animation: subtle-float 6s ease-in-out infinite; }
@keyframes subtle-float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

.gradient-border {
  position: relative;
  background: linear-gradient(45deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  border-radius: 12px;
}
.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  background: linear-gradient(45deg, #3b82f6, #8b5cf6, #3b82f6);
  border-radius: inherit;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

.geometric-shape { position: absolute; pointer-events: none; opacity: 0.1; will-change: transform; }
.geometric-shape::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #3b82f6, #8b5cf6);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

.organic-blob {
  position: absolute;
  border-radius: 50% 40% 60% 30%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
  animation: morph 8s ease-in-out infinite;
  filter: blur(1px);
}
.organic-blob.blob-1 { animation-delay: 0s; }
.organic-blob.blob-2 { animation-delay: -2s; }
.organic-blob.blob-3 { animation-delay: -4s; }
@keyframes morph {
  0%, 100% { border-radius: 50% 40% 60% 30%; transform: rotate(0deg) scale(1); }
  25% { border-radius: 30% 60% 40% 70%; transform: rotate(90deg) scale(1.1); }
  50% { border-radius: 60% 30% 70% 40%; transform: rotate(180deg) scale(0.9); }
  75% { border-radius: 40% 70% 30% 60%; transform: rotate(270deg) scale(1.05); }
}

.depth-layer { position: relative; transform-style: preserve-3d; }

.parallax-element { transform: translateZ(0); will-change: transform; }

.micro-bounce { animation: microBounce 2s ease-in-out infinite; }
@keyframes microBounce {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-2px); }
}

.animated-gradient-text {
  background: linear-gradient(-45deg, #6f84e8, #8ea1f5, #b5c2ff, #6f84e8);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 3s ease-in-out infinite;
}

.dynamic-glow { position: relative; overflow: hidden; }
.dynamic-glow::after {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(99, 102, 241, 0.1), transparent);
  animation: rotate 4s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.dynamic-glow:hover::after { opacity: 1; }
@keyframes rotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Gradient orbs */
.gradient-orb {
  position: absolute;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #ffeaa7, #ff6b6b);
  filter: blur(2px);
  opacity: 0.15;
  z-index: 1;
  animation: orb-float 12s ease-in-out infinite;
  will-change: transform;
}
.gradient-orb.orb-1 { animation-delay: -2s; }
.gradient-orb.orb-2 { animation-delay: -6s; }
@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  25% { transform: translate(20px, -30px) rotate(90deg) scale(1.1); }
  50% { transform: translate(-15px, -20px) rotate(180deg) scale(0.9); }
  75% { transform: translate(-25px, 15px) rotate(270deg) scale(1.05); }
}

.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
.glass-card-dark {
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.neuro-card {
  background: linear-gradient(145deg, rgba(239, 246, 255, 0.3), rgba(219, 234, 254, 0.2));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(191, 219, 254, 0.2);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.1), 0 2px 8px rgba(59, 130, 246, 0.05);
  border-radius: 20px;
}
.neuro-card-inset {
  background: linear-gradient(145deg, rgba(219, 234, 254, 0.2), rgba(239, 246, 255, 0.3));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(191, 219, 254, 0.2);
  box-shadow: inset 0 4px 16px rgba(59, 130, 246, 0.08), inset 0 1px 4px rgba(59, 130, 246, 0.05);
  border-radius: 20px;
}

.animated-gradient {
  background: linear-gradient(-45deg, #1e3a8a, #1e40af, #EAA72D, #374151);
  background-size: 400% 400%;
  animation: gradient-shift 15s ease infinite;
}
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.morph-shape {
  position: absolute;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  opacity: 0.1;
  z-index: 1;
}
.morph-shape.shape-1 { clip-path: polygon(50% 0%, 0% 100%, 100% 100%); animation: morph-triangle 8s ease-in-out infinite; }
.morph-shape.shape-2 { clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%); animation: morph-hexagon 10s ease-in-out infinite; }
.morph-shape.shape-3 { clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%); animation: morph-pentagon 12s ease-in-out infinite; }

@keyframes morph-triangle {
  0%, 100% { clip-path: polygon(50% 0%, 0% 100%, 100% 100%); transform: rotate(0deg) scale(1); }
  33% { clip-path: polygon(0% 0%, 100% 0%, 50% 100%); transform: rotate(120deg) scale(1.1); }
  66% { clip-path: polygon(100% 50%, 0% 100%, 0% 0%); transform: rotate(240deg) scale(0.9); }
}
@keyframes morph-hexagon {
  0%, 100% { clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%); transform: rotate(0deg) scale(1); }
  50% { clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); transform: rotate(180deg) scale(1.15); }
}
@keyframes morph-pentagon {
  0%, 100% { clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%); transform: rotate(0deg) scale(1); }
  25% { clip-path: polygon(38% 0%, 100% 50%, 82% 100%, 18% 100%, 0% 50%); transform: rotate(72deg) scale(1.05); }
  50% { clip-path: polygon(50% 0%, 100% 62%, 68% 100%, 32% 100%, 0% 62%); transform: rotate(144deg) scale(0.95); }
  75% { clip-path: polygon(62% 0%, 100% 38%, 82% 88%, 18% 88%, 0% 38%); transform: rotate(216deg) scale(1.1); }
}

.btn-primary {
  background-image: linear-gradient(to right, #2563eb, #1d4ed8);
  color: #fff;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  transition: all 0.3s;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.1);
  font-size: 1rem;
  border: 1px solid rgba(37, 99, 235, 0.2);
  backdrop-filter: blur(8px);
}
.btn-primary:hover {
  transform: translateY(-1px) scale(1.02);
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.25), 0 2px 8px rgba(37, 99, 235, 0.15);
}
.btn-primary:focus { outline: none; box-shadow: 0 0 0 2px rgba(96,165,250,.5); }
.btn-primary:active { transform: translateY(0px) scale(0.98); }

.btn-secondary {
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s;
  backdrop-filter: blur(4px);
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.05);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.08), 0 2px 6px rgba(255, 255, 255, 0.05);
  transform: translateY(-1px) scale(1.02);
}
.btn-secondary:active { transform: translateY(0px) scale(0.98); }

.section-padding { padding-top: 3rem; padding-bottom: 3rem; }
@media (min-width: 768px) { .section-padding { padding-top: 4rem; padding-bottom: 4rem; } }
@media (min-width: 1024px) { .section-padding { padding-top: 5rem; padding-bottom: 5rem; } }

.container-custom { max-width: 72rem; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 640px) { .container-custom { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .container-custom { padding-left: 2rem; padding-right: 2rem; } }

.dark-glass-card { background: rgba(255,255,255,0.05); backdrop-filter: blur(24px); border: 1px solid rgba(255,255,255,0.1); }
.dark-neuro-card {
  background: linear-gradient(to bottom right, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,.3);
}

.bg-deep-ocean { background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #0f0d26 100%); }

.bg-aurora {
  background: linear-gradient(135deg, #0a0a1a 0%, #1e3a8a 25%, #4f46e5 50%, #1e3a8a 75%, #0a0a1a 100%);
  background-size: 400% 400%;
  animation: aurora-shift 15s ease infinite;
}
@keyframes aurora-shift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.glow-accent { box-shadow: 0 0 30px rgba(111, 132, 232, 0.3); }
.glow-primary { box-shadow: 0 0 30px rgba(30, 58, 138, 0.4); }

.bg-dark-gradient { background-image: linear-gradient(to bottom, #0f172a, #1e1a4f, #0f172a); }
.bg-dark-gradient-light { background-image: linear-gradient(to bottom right, #0f0d26, #1e1a4f, #0f0d26); }

.text-shadow { text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); }

.glass-card-dark-enhanced {
  background: linear-gradient(to bottom right, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
  backdrop-filter: blur(40px);
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.5);
}

.text-gradient-light {
  background-image: linear-gradient(to right, #fff, rgba(255,255,255,.9), rgba(255,255,255,.8));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.text-gradient-accent {
  background-image: linear-gradient(to right, #8ea1f5, #b5c2ff, #8ea1f5);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.section-divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(111, 132, 232, 0.3), transparent); }

.card-hover { transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.card-hover:hover { transform: translateY(-12px) rotateX(5deg); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2); }

.hover-lift { transition: all 0.3s ease; }
.hover-lift:hover { transform: translateY(-5px) scale(1.02); filter: brightness(1.1); }

.hover-glow { transition: all 0.3s ease; }
.hover-glow:hover { box-shadow: 0 0 30px rgba(59, 130, 246, 0.3); transform: scale(1.05); }

.parallax-slow { transform: translateY(var(--scroll-y, 0) * 0.5px); }
.parallax-fast { transform: translateY(var(--scroll-y, 0) * -0.3px); }

.galaxy-background {
  background: linear-gradient(45deg, #0a0a1a, #0f1629, #1e3a8a, #0d1b2a, #0a0a1a);
  background-size: 400% 400%;
  animation: galaxy-drift 20s ease-in-out infinite;
  position: relative;
}
.galaxy-background::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(30, 58, 138, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(234, 167, 45, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(30, 64, 175, 0.08) 0%, transparent 50%);
  animation: cosmic-glow 15s ease-in-out infinite alternate;
}
.galaxy-background::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(2px 2px at 20px 30px, rgba(147, 197, 253, 0.3), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(191, 219, 254, 0.25), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(147, 197, 253, 0.2), transparent),
    radial-gradient(2px 2px at 160px 30px, rgba(191, 219, 254, 0.3), transparent);
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: stars-twinkle 10s linear infinite;
}
@keyframes galaxy-drift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes cosmic-glow { 0% { opacity: 0.5; transform: scale(1); } 100% { opacity: 0.8; transform: scale(1.1); } }
@keyframes stars-twinkle { 0% { transform: translateX(0); } 100% { transform: translateX(-200px); } }

@keyframes float-up { 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } }
@keyframes pulse-glow { 0%, 100% { box-shadow: 0 0 20px rgba(30, 58, 138, 0.3); } 50% { box-shadow: 0 0 40px rgba(30, 58, 138, 0.6); } }
@keyframes rotate-3d { 0% { transform: rotateY(0deg) rotateX(0deg); } 100% { transform: rotateY(360deg) rotateX(360deg); } }
@keyframes border-dance {
  0% { border-image-source: linear-gradient(45deg, #1e3a8a, #1e40af, #EAA72D, #374151); border-image-slice: 1; }
  25% { border-image-source: linear-gradient(135deg, #1e40af, #EAA72D, #374151, #1e3a8a); border-image-slice: 1; }
  50% { border-image-source: linear-gradient(225deg, #EAA72D, #374151, #1e3a8a, #1e40af); border-image-slice: 1; }
  75% { border-image-source: linear-gradient(315deg, #374151, #1e3a8a, #1e40af, #EAA72D); border-image-slice: 1; }
  100% { border-image-source: linear-gradient(45deg, #1e3a8a, #1e40af, #EAA72D, #374151); border-image-slice: 1; }
}

.perspective-1000 { perspective: 1000px; }
.transform-gpu { transform: translateZ(0); backface-visibility: hidden; }
.border-gradient-animated { border: 2px solid; border-image: linear-gradient(45deg, #1e3a8a, #1e40af, #EAA72D, #374151) 1; animation: border-dance 3s ease-in-out infinite; }
.animate-float { animation: float-up 3s ease-in-out infinite; }
.animate-pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }
.animate-rotate-3d { animation: rotate-3d 20s linear infinite; }

.area-card:hover { animation: float-up 0.6s ease-out; }
.area-card:hover .geometric-shape { animation: rotate-3d 2s ease-in-out; }
.area-card:hover .gradient-bg { background-size: 200% 200%; animation: gradient-shift 3s ease infinite; }

@media (prefers-reduced-motion: reduce) {
  .border-gradient-animated, .animate-float, .animate-pulse-glow, .animate-rotate-3d { animation: none; }
  .area-card:hover { animation: none; }
}

.area-card { will-change: transform; contain: layout style paint; }

/* Stagger reveal (controlado via JS adicionando .is-visible) */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* FAQ accordion */
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease; overflow: hidden; }
.faq-answer.is-open { grid-template-rows: 1fr; }
.faq-answer > div { overflow: hidden; }
.faq-chevron { transition: transform 0.3s ease; }
.faq-chevron.is-open { transform: rotate(180deg); }

/* Mobile menu */
.mobile-menu { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.mobile-menu.is-open { max-height: 32rem; }

/* Companies carousel - marquee sem dependências */
.companies-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.companies-track:hover { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes bounce-subtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.animate-bounce-subtle { animation: bounce-subtle 2s infinite; }
