:root {
  --bg-main: #080810;
  --bg-card: #12121E;
  --bg-card-hover: #1A1A2A;
  --neon-primary: #C840F0;
  --neon-medium: #8B2FC9;
  --text-primary: #FFFFFF;
  --text-secondary: #D4A8FF;
  --text-muted: #8888AA;
  --gray-medium: #2A2A3D;
  --gold: #FFD700;
  --whatsapp: #25D366;

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

/* Scrollbar Customizada */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--bg-card);
}

::-webkit-scrollbar-thumb {
  background: var(--neon-primary);
  border-radius: 4px;
}

/* Grid Background Lines */
.grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(200, 64, 240, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 64, 240, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  /* Promove à GPU para evitar repaint a cada scroll */
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Tipografia Comum */
h1,
h2,
h3,
.logo,
.card-num,
.neon-dot {
  font-family: var(--font-heading);
  font-weight: 700;
}

p,
a,
span,
button {
  font-family: var(--font-body);
}

.gradient-text {
  background: linear-gradient(135deg, var(--neon-medium), var(--neon-primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.neon-text {
  color: var(--neon-primary);
  text-shadow: 0 0 10px rgba(200, 64, 240, 0.5);
}

.neon-dot {
  color: var(--neon-primary);
}

.h2-title {
  font-size: 42px;
  margin-bottom: 24px;
  line-height: 1.2;
}

.text-huge {
  font-size: 56px;
}

@media (max-width: 768px) {
  .h2-title {
    font-size: 32px;
  }

  .text-huge {
    font-size: 40px;
  }
}

.subtitle {
  color: var(--text-secondary);
  font-size: 18px;
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.body-text {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 32px;
}

.text-center {
  text-align: center;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px;
  position: relative;
  z-index: 2;
}

/* Tags/Pills */
.tag-pill {
  display: inline-block;
  background: rgba(200, 64, 240, 0.15);
  border: 1px solid rgba(200, 64, 240, 0.3);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}

.neon-pill {
  box-shadow: 0 0 10px rgba(200, 64, 240, 0.2);
}

.center-pill {
  display: block;
  width: fit-content;
  margin: 0 auto 24px auto;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  /* Transições explícitas — apenas propriedades compositor (sem layout recalc) */
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--neon-medium), var(--neon-primary));
  color: #fff;
  border: none;
}

.btn-primary:hover {
  box-shadow: 0 0 20px rgba(200, 64, 240, 0.6);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid var(--neon-primary);
}

.btn-outline:hover {
  background: rgba(200, 64, 240, 0.1);
  box-shadow: 0 0 15px rgba(200, 64, 240, 0.3);
  transform: translateY(-2px);
}

/* SEÇÕES ESPECÍFICAS */
/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(8, 8, 16, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(200, 64, 240, 0.15);
  /* Transições explícitas na navbar — evita layout recalc no scroll */
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

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

.logo {
  color: #fff;
  text-decoration: none;
  font-size: 24px;
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-link:hover {
  color: #fff;
  text-shadow: 0 0 8px rgba(200, 64, 240, 0.8);
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.menu-btn span {
  width: 30px;
  height: 2px;
  background: #fff;
  transition: 0.3s;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #080810;
  padding: 24px;
  flex-direction: column;
  gap: 24px;
  text-align: center;
  border-bottom: 1px solid rgba(200, 64, 240, 0.15);
}

.mobile-menu.active {
  display: flex;
}

@media (max-width: 768px) {

  .nav-links,
  .nav-cta {
    display: none;
  }

  .menu-btn {
    display: flex;
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

#spline-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#spline-container spline-viewer::part(logo) {
  display: none !important;
}

/* Static Mobile Fallback — using CSS background with WebP */
.hero-mobile-static {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  overflow: hidden;
  /* Evita CLS ao reservar espaço antes de carregar */
  contain: layout style;
}

.hero-mobile-static img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  /* Garante que aspect-ratio está definido pelo width/height do HTML */
  aspect-ratio: 9 / 16;
}

@media (max-width: 768px) {

  #spline-container spline-viewer,
  #spline-container .spline-fallback {
    display: none !important;
  }

  .hero-mobile-static {
    display: block;
  }

  /* Adjusting bottom area for mobile static */
  .hero-bottom-area {
    padding-bottom: 20px;
    z-index: 3;
  }
}

.spline-fallback {
  display: none;
  position: absolute;
  inset: 0;
  background: var(--bg-main);
  z-index: 0;
}

.hero-bottom-area {
  position: absolute;
  bottom: 32px;
  left: 0;
  width: 100%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 0 24px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

@media (max-width: 480px) {
  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }
}

.social-proof-bar {
  background: rgba(8, 8, 16, 0.8);
  backdrop-filter: blur(10px);
  padding: 12px 24px;
  border-radius: 50px;
  border: 1px solid rgba(200, 64, 240, 0.2);
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 14px;
  color: var(--text-secondary);
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
}

.dot-separator {
  color: var(--neon-primary);
  font-weight: bold;
}

/* Marquee Section */
.marquee-section {
  background: #0E0E18;
  padding: 20px 0;
  border-top: 1px solid rgba(200, 64, 240, 0.12);
  border-bottom: 1px solid rgba(200, 64, 240, 0.12);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.marquee-title-wrapper {
  position: absolute;
  left: 0;
  z-index: 5;
  height: 100%;
  top: 0;
  display: flex;
  align-items: center;
  padding-left: 24px;
  padding-right: 32px;
  background: #0E0E18;
}

.marquee-title {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
}

.marquee-container {
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  display: flex;
  position: relative;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 32px;
  animation: marquee 30s linear infinite;
  font-size: 15px;
  font-weight: 500;
  width: max-content;
  padding-right: 32px;
}

.marquee-dot {
  color: var(--neon-primary);
  font-weight: bold;
}

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

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

/* Sobre */
.twocol-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 992px) {
  .twocol-layout {
    grid-template-columns: 1fr;
  }
}

.photo-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 16px;
  margin-bottom: 32px;
}

.photo-glow {
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  box-shadow: 0 0 60px rgba(200, 64, 240, 0.35);
  z-index: 0;
}

.photo-placeholder {
  position: absolute;
  inset: 0;
  background: #222;
  border-radius: 16px;
  border: 1px solid rgba(200, 64, 240, 0.2);
  z-index: 1;
}

.about-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(200, 64, 240, 0.2);
  z-index: 1;
}

.pain-copy {
  margin-top: 16px;
  margin-bottom: 24px;
  border-left: 3px solid var(--neon-primary);
  padding-left: 16px;
}

.pain-copy .body-text {
  font-style: italic;
  font-weight: 500;
  color: #fff;
  font-size: 16px;
  margin: 0;
}

.badges-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.badge {
  background: var(--bg-card);
  border: 1px solid rgba(200, 64, 240, 0.3);
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Metodologia */
.cards-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 60px;
}

@media (max-width: 992px) {
  .cards-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .cards-grid-4 {
    grid-template-columns: 1fr;
  }
}

.neo-card {
  background: var(--bg-card);
  border: 1px solid rgba(200, 64, 240, 0.25);
  border-radius: 16px;
  padding: 40px;
  text-align: left;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  position: relative;
  overflow: hidden;
}

.neo-card:hover {
  box-shadow: 0 0 24px rgba(200, 64, 240, 0.4);
  transform: translateY(-5px);
  border-color: rgba(200, 64, 240, 0.6);
}

.card-num {
  font-size: 64px;
  opacity: 0.8;
  margin-bottom: 16px;
}

.card-title {
  font-size: 24px;
  margin-bottom: 8px;
}

.card-subtitle {
  font-size: 14px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Projetos */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
  margin-bottom: 40px;
}

@media (max-width: 992px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

.project-card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/9;
  position: relative;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.project-card:hover {
  border-color: var(--neon-primary);
  box-shadow: 0 0 24px rgba(200, 64, 240, 0.4);
}

.video-placeholder {
  width: 100%;
  height: 100%;
  background: #0E0E18;
  transition: transform 0.4s ease;
  position: relative;
  overflow: hidden;
}

.project-card:hover .video-placeholder {
  transform: scale(1.03);
}

/* Facade Pattern: thumbnail estática com overlay de play */
.video-facade {
  cursor: pointer;
}

.video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 0.4s ease;
}

.project-card:hover .video-thumb {
  transform: scale(1.06);
}

.project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 32px 24px 24px;
  background: linear-gradient(transparent, rgba(8, 8, 16, 0.95));
  text-align: left;
}

.project-name {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  margin-bottom: 4px;
}

.project-spec {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 12px;
}

/* project-badge removido conforme pedido do usuario */

/* Depoimentos */
.testimonials-section {
  background: #0A0A14;
}

.testimonials-slider {
  width: 100%;
  position: relative;
  margin-top: 60px;
  padding-bottom: 24px;
}

.testimonials-track {
  display: flex;
  overflow-x: auto;
  gap: 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.testimonials-track::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid rgba(200, 64, 240, 0.15);
  border-radius: 16px;
  padding: 40px;
  text-align: left;
  position: relative;
  min-width: 350px;
  flex: 0 0 350px;
  scroll-snap-align: start;
}

@media (max-width: 768px) {
  .testimonial-card {
    min-width: 300px;
    flex: 0 0 300px;
    padding: 30px;
  }
}

.quote-mark {
  font-family: var(--font-heading);
  font-size: 80px;
  color: var(--neon-primary);
  opacity: 0.4;
  position: absolute;
  top: -10px;
  left: 24px;
  line-height: 1;
}

.testimonial-text {
  font-size: 17px;
  font-style: italic;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
  padding-top: 20px;
}

.sep-line {
  height: 1px;
  background: var(--neon-medium);
  margin-bottom: 24px;
  opacity: 0.5;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.client-photo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--neon-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #333;
  font-weight: bold;
}

.client-name {
  font-weight: 700;
  font-size: 16px;
}

.client-spec {
  color: var(--text-secondary);
  font-size: 14px;
}

.scroll-instruction {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 8px;
  opacity: 0.8;
  font-style: italic;
}

/* FAQ */
.faq-container {
  max-width: 760px;
}

.accordion {
  margin-top: 40px;
}

.accordion-item {
  border-bottom: 1px solid rgba(200, 64, 240, 0.15);
}

.accordion-header {
  width: 100%;
  background: none;
  border: none;
  padding: 24px 0;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-heading);
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: 0.3s;
}

.accordion-header:hover {
  color: var(--text-secondary);
}

.acc-icon {
  color: var(--neon-primary);
  font-size: 24px;
  transition: transform 0.3s ease;
}

.accordion-item.active .acc-icon {
  transform: rotate(45deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion-item.active .accordion-body {
  max-height: 500px;
}

.accordion-body p {
  padding-bottom: 24px;
  color: var(--text-secondary);
  font-size: 16px;
}

/* CTA Final */
.cta-section {
  background: radial-gradient(ellipse at center, #1A0A2E 0%, #080810 70%);
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.btn-large {
  padding: 18px 40px;
  font-size: 18px;
}

.btn-whatsapp {
  border-color: var(--whatsapp);
}

.btn-whatsapp:hover {
  background: rgba(37, 211, 102, 0.1);
  box-shadow: 0 0 15px rgba(37, 211, 102, 0.3);
}

.micro-copy {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Footer */
.footer {
  background: #050508;
  border-top: 1px solid var(--neon-medium);
  padding: 60px 24px 24px;
  position: relative;
  z-index: 2;
}

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

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-center.nav-links {
    justify-content: center;
  }

  .social-icons {
    justify-content: center;
  }
}

.footer-spec {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 8px;
}

.footer-center.nav-links {
  justify-content: center;
}

.social-icons {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}

.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gray-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}

.social-icons a:hover {
  background: var(--neon-primary);
  box-shadow: 0 0 15px var(--neon-primary);
}

.footer-bottom {
  text-align: center;
  color: #555;
  font-size: 13px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-line {
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 24px;
}

/* Botão Flutuante */
.fab-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.5);
  animation: pulse 2s infinite;
  transition: 0.3s;
}

.fab-whatsapp:hover {
  transform: scale(1.1);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Micro-animações (Intersection Observer) */
.anim-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.anim-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

/* Modal de Vídeo */
.video-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(8, 8, 16, 0.95);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-modal.active {
  display: flex;
  opacity: 1;
}

.video-modal-content {
  position: relative;
  width: 90%;
  max-width: 500px;
  /* Video portrait aspect ratio approx */
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid rgba(200, 64, 240, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  padding: 16px;
}

.modal-video-responsive {
  position: relative;
  padding-bottom: 177.77%;
  /* 16:9 inverted -> 9:16 portrait */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
}

.modal-video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
}

.close-modal {
  position: absolute;
  top: -40px;
  right: -20px;
  color: #fff;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}

.close-modal:hover {
  color: var(--neon-primary);
}

/* Video Overlay Hover Effect */
.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 16, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

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

.play-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--neon-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 8px;
  box-shadow: 0 4px 15px rgba(200, 64, 240, 0.4);
}

.overlay-text {
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}