*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Hero Section */
.hero-landing {
  position: relative;
  width: 100%;
  height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: #000;
}

/* Fundo translúcido com blur */
.hero-background {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(15px);
  z-index: 0;
}

/* Cubo 3D animado */
.cubo-3d {
  --tamanho: min(80vw, 300px);
  width: var(--tamanho);
  height: var(--tamanho);
  position: relative;
  transform-style: preserve-3d;
  animation: girar-cubo 10s linear infinite;
  z-index: 1;
  will-change: transform; /* MELHORIA DE PERFORMANCE: Otimiza a renderização da animação */
}

.estrutura-cubo {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  position: relative;
}

.estrutura-cubo span {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #004d99, #f7a01d);
  opacity: 0.8;
  border: 1px solid rgba(255,255,255,0.1);
}

/* Faces do cubo */
.estrutura-cubo span:nth-child(1) {
  transform: rotateX(0deg) translateZ(calc(var(--tamanho) / 2));
}
.estrutura-cubo span:nth-child(2) {
  transform: rotateY(90deg) translateZ(calc(var(--tamanho) / 2));
}
.estrutura-cubo span:nth-child(3) {
  transform: rotateX(90deg) translateZ(calc(var(--tamanho) / 2));
}

/* Cubo girando */
@keyframes girar-cubo {
  0% { transform: rotateX(0deg) rotateY(0deg); }
  100% { transform: rotateX(360deg) rotateY(360deg); }
}

/* Conteúdo central */
.hero-content {
  position: absolute;
  text-align: center;
  color: #fff;
  z-index: 2;
}

.hero-content h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 800; /* Deixa o título robusto */
  color: #fff;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.btn-cta {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  background: #004d99;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-cta:hover {
  background: #f7a01d;
  color: #000;
}

/* Responsividade */
@media (max-width: 768px) {
  .hero-content h2 { font-size: 2rem; }
  .hero-content p { font-size: 1rem; }
  .cubo-3d { --tamanho: min(70vw, 250px); }
}

@media (max-width: 480px) {
  .hero-content h2 { font-size: 1.5rem; }
  .hero-content p { font-size: 0.9rem; }
  .cubo-3d { --tamanho: min(65vw, 200px); }
}

