body {
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #5e0449 0%, #3a022c 50%, #1a0114 100%);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  min-height: 100vh;
  height: 100vh;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  padding-top: 30px;
  box-sizing: border-box;
}

body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 360px;
  padding: 20px 15px;
  position: relative;
  z-index: 10;
  box-sizing: border-box;
}

.logo {
  max-width: 140px;
  height: auto;
  margin-bottom: 30px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.ar-button {
  background: linear-gradient(135deg, #8b1a7a 0%, #5e0449 50%, #3a022c 100%);
  color: #ffffff;
  border: none;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 40px;
  cursor: pointer;
  margin-top: 20px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 6px 20px rgba(94, 4, 73, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  max-width: 280px;
}

.ar-button::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: left 0.5s;
}

.ar-button:hover::before {
  left: 100%;
}

.ar-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(94, 4, 73, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, #5e0449 0%, #8b1a7a 50%, #3a022c 100%);
}

.ar-button:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: 0 4px 15px rgba(94, 4, 73, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

#scene-container {
  width: 100%;
  height: 280px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  position: relative;
}

/* Estilos para o model-viewer */
#scene-container model-viewer {
  width: 100%;
  height: 100%;
  background-color: transparent;
}

#scene-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 1;
}

.floating-tag {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: rgba(0, 0, 0, 0.85);
  color: #ffffff;
  padding: 14px 22px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  z-index: 1001;
  backdrop-filter: blur(10px);
  border: 2px solid transparent;
  background-image: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)),
    linear-gradient(135deg, #8b1a7a, #5e0449, #7877c6, #8b1a7a);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 8px 24px rgba(94, 4, 73, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
  animation: borderGlow 3s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.floating-tag:hover {
  transform: scale(1.05);
}

@keyframes borderGlow {
  0%,
  100% {
    filter: brightness(1) drop-shadow(0 0 8px rgba(139, 26, 122, 0.6));
  }
  50% {
    filter: brightness(1.2) drop-shadow(0 0 16px rgba(139, 26, 122, 0.9));
  }
}

@media (max-width: 480px) {
  body {
    padding-top: 20px;
  }

  .container {
    max-width: 100%;
    padding: 15px 10px;
    margin: 0;
  }

  .logo {
    max-width: 120px;
    margin-bottom: 25px;
  }

  #scene-container {
    height: 260px;
    border-radius: 12px;
  }

  .ar-button {
    padding: 12px 20px;
    font-size: 12px;
    margin-top: 15px;
    letter-spacing: 0.5px;
    white-space: nowrap;
  }

  model-viewer #ar-button {
    padding: 12px 20px;
    font-size: 12px;
    bottom: 12px;
    letter-spacing: 0.5px;
  }

  .floating-tag {
    bottom: 18px;
    right: 18px;
    font-size: 12px;
    padding: 10px 16px;
    border-radius: 24px;
  }
}

@media (max-width: 768px) and (min-width: 481px) {
  .container {
    max-width: 380px;
    padding: 20px 15px;
  }

  .logo {
    max-width: 150px;
  }

  #scene-container {
    height: 300px;
  }

  .ar-button {
    padding: 14px 28px;
    font-size: 14px;
  }

  model-viewer #ar-button {
    padding: 14px 28px;
    font-size: 14px;
  }

  .floating-tag {
    bottom: 15px;
    right: 15px;
    font-size: 11px;
    padding: 7px 11px;
  }
}

@media (min-width: 769px) {
  .container {
    max-width: 420px;
    padding: 25px 20px;
  }

  .logo {
    max-width: 160px;
  }

  #scene-container {
    height: 320px;
  }
}
