/* ===== :root — Cores e Variáveis ===== */
:root {
  --primary: #8a2be2; /* Violeta mais vivo */
  --primary-dark: #6a1cb0;
  --primary-glow: rgba(138, 43, 226, 0.4);
  --text: #ffffff;
  --text-secondary: #b8a6d9;
  --bg: #0c0918;
  --card-bg: #151028;
  --border: rgba(138, 43, 226, 0.25);
  --hover: rgba(138, 43, 226, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --wave-color: #8a2be2;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== Fonte ===== */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ===== Fundo animado com ondas roxas ===== */
.wave-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: 
    radial-gradient(circle at 10% 20%, rgba(138, 43, 226, 0.15) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(106, 28, 176, 0.1) 0%, transparent 25%);
  animation: wavePulse 12s infinite alternate;
}

@keyframes wavePulse {
  0% { opacity: 0.3; }
  100% { opacity: 0.7; }
}

/* ===== Container principal ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

/* ===== Modal de Termos ===== */
#terms-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.3s ease;
}

#terms-modal:not(.active) {
  display: none;
}

.terms-modal {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 600px;
  width: 90%;
  box-shadow: var(--shadow);
}

.terms-modal h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  color: var(--primary);
}

.terms-content {
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.terms-content p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 20px 0;
}

.checkbox-container input {
  margin-top: 4px;
  accent-color: var(--primary);
}

.checkbox-container label {
  color: var(--text);
  cursor: pointer;
}

/* ===== Botões ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(100deg, var(--primary), #a35dff);
  color: white;
  border: none;
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(138, 43, 226, 0.6);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  background: var(--hover);
  border-color: var(--primary);
}

/* ===== Hero Section — Apresentação ===== */
.hero-section {
  text-align: center;
  padding: 5rem 0 4rem;
}

.hero-section .introducing {
  display: block;
  font-size: 1.2rem;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.hero-section h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #fff 0%, #b68cff 50%, #8a2be2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.hero-section .highlight {
  color: var(--primary);
}

.hero-section .description {
  color: var(--text-secondary);
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* ===== Seções gerais ===== */
section {
  margin: 5rem 0;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary);
  text-align: center;
}

/* ===== Tutorial Buttons ===== */
.tutorial-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.tutorial-btn {
  background: linear-gradient(100deg, #6a1cb0, #8a2be2);
  color: white;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  box-shadow: 0 6px 16px rgba(138, 43, 226, 0.4);
}

.tutorial-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(138, 43, 226, 0.6);
}

/* ===== Créditos & Colaboradores ===== */
.credit-grid,
.collaborator-list {
  display: grid;
  gap: 1.2rem;
}

@media (min-width: 768px) {
  .credit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.credit-item,
.collaborator-item {
  background: rgba(138, 43, 226, 0.08);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border-left: 3px solid var(--primary);
}

.credit-label,
.collaborator-label {
  color: var(--primary);
  font-weight: 600;
}

.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.team-member {
  background: var(--hover);
  padding: 0.8rem 1.4rem;
  border-radius: 50px;
  font-size: 0.95rem;
}

/* ===== Lista de Arquivos ===== */
.file-list {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  margin: 3rem 0;
}

.file-item {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.file-item:last-child {
  border-bottom: none;
}

/* ===== Rodapé ===== */
.footer {
  text-align: center;
  padding: 2.5rem 0;
  margin-top: 3rem;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
}

.footer-link {
  color: var(--primary);
  text-decoration: none;
  margin: 0 0.5rem;
  transition: var(--transition);
}

.footer-link:hover {
  text-decoration: underline;
}

/* ===== Pop-up Personalizado (Toast) ===== */
#custom-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--card-bg);
  color: var(--text);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border-left: 4px solid var(--primary);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}

#custom-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Scrollbar personalizada ===== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0f0a1d;
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a35dff;
}

/* ===== Responsividade ===== */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.4rem;
  }
  .hero-section .description {
    font-size: 1.1rem;
  }
  .hero-buttons,
  .tutorial-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  .btn {
    width: 100%;
    max-width: 300px;
  }
  .credit-grid {
    grid-template-columns: 1fr;
  }
  .file-item {
    flex-direction: column;
    gap: 0.3rem;
  }
}