/* --------------------------------------------------
   RESET BÁSICO
----------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #fff;
  background-color: #0a0118;
  overflow-x: hidden;
}

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

/* Scroll customizado */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(147, 51, 234, 0.3);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(147, 51, 234, 0.5);
}

/* --------------------------------------------------
   CLASSES GENÉRICAS
----------------------------------------------------- */
.glass {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
}

.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  color: #ffffff;
  border-radius: 0.5rem;
  background: linear-gradient(to right, #9333ea, #4f46e5);
  transition: transform 0.4s, box-shadow 0.4s;
  box-shadow: 0 0 20px rgba(147, 51, 234, 0);
}
.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(147, 51, 234, 0.5);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
}
.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #a855f7, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-header p {
  color: #ccc;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards;
}
/* Caso queira animar só quando aparecer na tela, use Intersection Observer no JS */

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------
   NAVBAR
----------------------------------------------------- */
.navbar-container {
  position: fixed;
  width: 100%;
  z-index: 999;
  transition: all 0.3s ease;
  background: transparent;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: bold;
  background: linear-gradient(to right, #a855f7, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.icon-bot {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: #9333ea;
  stroke-width: 1.5;
  transition: transform 0.2s;
}
.icon-bot:hover {
  transform: rotate(12deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links a {
  color: #ccc;
  position: relative;
  padding: 0.5rem 0.8rem;
  transition: color 0.3s;
}
.nav-links a.active,
.nav-links a:hover {
  color: #fff;
}
.btn-area-cliente {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: linear-gradient(to right, #9333ea, #4f46e5);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: transform 0.4s, box-shadow 0.4s;
  box-shadow: 0 0 20px rgba(147, 51, 234, 0);
  font-weight: 500;
}
.btn-area-cliente:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(147, 51, 234, 0.5);
}
.icon-user {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.5;
}

/* --------------------------------------------------
   STARFIELD
----------------------------------------------------- */
.starfield-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1; /* Fica atrás do conteúdo */
}

.star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  animation: twinkle var(--duration) ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}

/* --------------------------------------------------
   HERO SECTION
----------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  overflow: hidden;
}
.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #c084fc, #f472b6, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: 1.25rem;
  color: #ccc;
  max-width: 700px;
  margin: 0 auto 2rem auto;
}

/* Elementos de fundo animados */
.bg-pulse {
  position: absolute;
  border-radius: 9999px;
  filter: blur(60px);
  opacity: 0.3;
  animation: pulse 6s ease-in-out infinite;
}
.pulse-1 {
  width: 300px;
  height: 300px;
  background-color: #a855f7;
  top: 20%;
  left: 25%;
}
.pulse-2 {
  width: 400px;
  height: 400px;
  background-color: #4f46e5;
  bottom: 20%;
  right: 20%;
  animation-delay: -2s;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.6;
  }
}

/* --------------------------------------------------
   FEATURES SECTION
----------------------------------------------------- */
.features-section {
  padding: 4rem 2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: default;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(147, 51, 234, 0.1);
}
.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  stroke: #c084fc;
  stroke-width: 1.5;
}
.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.feature-desc {
  color: #bbb;
}

/* --------------------------------------------------
   BENEFITS SECTION
----------------------------------------------------- */
.benefits-section {
  padding: 4rem 2rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.benefit-card {
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: default;
}
.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(147, 51, 234, 0.1);
}
.benefit-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  stroke: #c084fc;
  stroke-width: 1.5;
}
.benefit-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.benefit-desc {
  color: #bbb;
}

/* --------------------------------------------------
   CTA SECTION
----------------------------------------------------- */
.cta-section {
  padding: 4rem 2rem;
  text-align: center;
}
.cta-container {
  max-width: 800px;
  margin: 0 auto;
}
.cta-container h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #a855f7, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cta-container p {
  margin-bottom: 2rem;
  color: #ccc;
  font-size: 1rem;
}

/* --------------------------------------------------
   RODAPÉ
----------------------------------------------------- */
.site-footer {
  text-align: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.3);
  margin-top: 2rem;
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-content p {
  margin-bottom: 0.5rem;
  color: #ccc;
}
.footer-links a {
  margin: 0 0.5rem;
  color: #ccc;
}
.footer-links a:hover {
  color: #fff;
}
.footer-links a.active {
  color: #fff;
  font-weight: bold;
}

/* --------------------------------------------------
   PÁGINA PRODUCTS
----------------------------------------------------- */
.page-content {
  padding: 6rem 2rem 2rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.page-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  font-weight: bold;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.product-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  transition: transform 0.3s;
}
.product-card:hover {
  transform: translateY(-5px);
}
.product-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  stroke: #c084fc;
  stroke-width: 1.5;
}
.product-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.product-desc {
  color: #bbb;
  margin-bottom: 1rem;
}
.product-sub-description {
  color: #bbb;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.product-features {
  list-style: none;
  margin-bottom: 1rem;
  padding-left: 0;
}
.product-features li {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: #ccc;
}
.feature-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #c084fc;
  border-radius: 9999px;
  margin-right: 0.5rem;
}
.product-price {
  font-size: 1.25rem;
  font-weight: bold;
  color: #c084fc;
  margin-bottom: 1rem;
}

/* --------------------------------------------------
   PÁGINA ÁREA DO CLIENTE (SIMULAÇÃO)
----------------------------------------------------- */
/* A lógica e HTML é gerado dinamicamente no script.js */
.client-login.glass {
  max-width: 500px;
  margin: 6rem auto 2rem;
  padding: 2rem;
  text-align: center;
}
.login-btn {
  margin-top: 1rem;
}
.client-logged {
  max-width: 1200px;
  margin: 6rem auto 2rem;
  padding: 2rem;
}
.client-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}
.client-header .user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.client-header .user-info img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.bots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.bot-card {
  padding: 1.5rem;
  transition: transform 0.3s;
  cursor: pointer;
}
.bot-card:hover {
  transform: translateY(-5px);
}
.bot-card .bot-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.bot-card .bot-info img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
}
.bot-status {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 0.5rem;
}
.bot-status .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.status-online {
  background: #22c55e; /* verde */
}
.status-offline {
  background: #aaa;
}

/* Detalhes do bot (aberto ao clicar) */
.bot-details.glass {
  margin: 6rem auto 2rem;
  padding: 2rem;
}
.bot-details-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 2rem;
}
.bot-details-header img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
}
.bot-details-header .bot-details-info {
  margin-left: 1rem;
}
.bot-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.stat-card {
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.stat-card .stat-icon {
  width: 20px;
  height: 20px;
  stroke: #c084fc;
  stroke-width: 1.5;
}

/* --------------------------------------------------
   PÁGINAS DE POLÍTICA / TERMOS
----------------------------------------------------- */
.doc-container {
  max-width: 800px;
  margin: 6rem auto 2rem;
  padding: 2rem;
}
.doc-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}
.doc-version {
  font-size: 0.9rem;
  color: #ccc;
  margin-bottom: 2rem;
}
.doc-text {
  color: #ccc;
  line-height: 1.6;
}

