/* Estilos Base */
:root {
  --primary: #7c3aed;
  --primary-dark: #6d28d9;
  --secondary: #f43f5e;
  --dark: #1e293b;
  --light: #f8fafc;
  --gray: #64748b;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --transition: all 0.3s ease;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Reset e Estilos Globais */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  line-height: 1.6;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: var(--dark);
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1.5rem;
  color: var(--gray);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Botões */
.btn {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 2px solid transparent;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.5rem;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
}

/* Cards */
.card {
  background: white;
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* Formulários */
.form-control {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--dark);
  background-color: white;
  background-clip: padding-box;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

/* Seções */
.section {
  padding: 6rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
}

/* Responsividade */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
}

/* Animações */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Acessibilidade */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Estilos para o modo escuro */
@media (prefers-color-scheme: dark) {
  :root {
    --dark: #f8fafc;
    --light: #1e293b;
    --gray: #94a3b8;
  }
  
  body {
    background-color: #0f172a;
    color: var(--dark);
  }
  
  .card {
    background-color: #1e293b;
    color: var(--dark);
  }
  
  .form-control {
    background-color: #1e293b;
    border-color: #334155;
    color: var(--dark);
  }
}

/* Estilos movidos do HTML inline */
@keyframes pulse-slow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.1; }
}

.animate-pulse-slow {
  animation: pulse-slow 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.gradient-text {
  background: linear-gradient(to right, #8257e5, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-bg {
  background: linear-gradient(90deg, #8257e5, #ec4899);
}

.gradient-btn {
  background: linear-gradient(45deg, #7c3aed, #db2777);
}

.gradient-btn:hover {
  background: linear-gradient(45deg, #6d28d9, #be185d);
}

.glass-card {
  background: rgba(18, 18, 20, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.accordion-content.active {
  max-height: 500px;
}

@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-16px); }
}

.hero-float {
  animation: hero-float 4s ease-in-out infinite;
  will-change: transform;
}

/* === Futuristic hero scene === */
.hero-scene {
  position: relative;
  margin-top: 3rem;
  padding: 3rem 1.5rem;
  isolation: isolate;
  overflow: visible;
  border-radius: 24px;
}

.hero-scene-bg {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(168,85,247,0.28), transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(236,72,153,0.22), transparent 55%),
    radial-gradient(ellipse at 50% 50%, rgba(20,10,40,0.92), rgba(5,5,15,1) 85%);
  z-index: -3;
  filter: blur(0.5px);
}

.hero-grid {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background-image:
    linear-gradient(rgba(168,85,247,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168,85,247,0.12) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  z-index: -2;
  opacity: 0.7;
}

.hero-flare {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
  animation: hero-flare-pulse 6s ease-in-out infinite;
}
.hero-flare-1 {
  top: -8%; left: -8%;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(168,85,247,0.55), transparent 70%);
}
.hero-flare-2 {
  bottom: -10%; right: -8%;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(236,72,153,0.5), transparent 70%);
  animation-delay: -3s;
}

@keyframes hero-flare-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.15); }
}

.hero-scan {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg,
    transparent 0%,
    transparent 48%,
    rgba(168,85,247,0.18) 50%,
    transparent 52%,
    transparent 100%);
  z-index: -1;
  animation: hero-scan 4.5s linear infinite;
  pointer-events: none;
}

@keyframes hero-scan {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}
.hero-particles span {
  position: absolute;
  left: var(--x);
  top:  var(--y);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, rgba(168,85,247,0.9) 40%, transparent 70%);
  box-shadow: 0 0 12px rgba(168,85,247,0.9);
  animation: hero-particle 3s ease-in-out infinite;
  animation-delay: var(--d);
}
.hero-particles span:nth-child(even) {
  background: radial-gradient(circle, #fff 0%, rgba(236,72,153,0.9) 40%, transparent 70%);
  box-shadow: 0 0 12px rgba(236,72,153,0.9);
}

@keyframes hero-particle {
  0%, 100% { opacity: 0;   transform: translateY(0)    scale(0.7); }
  50%      { opacity: 0.9; transform: translateY(-12px) scale(1); }
}

.hero-hud {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(18, 18, 24, 0.7);
  border: 1px solid rgba(168,85,247,0.45);
  border-radius: 8px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: 'Inter', sans-serif;
  z-index: 6;
  box-shadow: 0 0 20px rgba(168,85,247,0.25);
  animation: hero-hud-pulse 4s ease-in-out infinite;
}
.hero-hud strong {
  display: block;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
}
.hero-hud span:not(.hud-dot) {
  display: block;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: #c4b5fd;
  font-weight: 500;
  line-height: 1.3;
  margin-top: 2px;
}
.hud-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #a855f7;
  box-shadow: 0 0 10px #a855f7;
  animation: hud-blink 1.5s ease-in-out infinite;
  flex-shrink: 0;
}
.hud-dot-pink {
  background: #ec4899;
  box-shadow: 0 0 10px #ec4899;
}

@keyframes hud-blink {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.8); }
}
@keyframes hero-hud-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(168,85,247,0.25); }
  50%      { box-shadow: 0 0 30px rgba(168,85,247,0.5); }
}

.hud-tl { top: -10px; left:  -10px; animation-delay: 0s;    }
.hud-tr { top: -10px; right: -10px; animation-delay: -1.5s; border-color: rgba(236,72,153,0.45); box-shadow: 0 0 20px rgba(236,72,153,0.25); }
.hud-tr strong { background: linear-gradient(90deg, #a855f7, #ec4899); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hud-br { bottom: -10px; right: -10px; animation-delay: -2.5s; }

@media (max-width: 640px) {
  .hero-scene { padding: 1rem 0.5rem; }
  .hero-flare-1 { width: 180px; height: 180px; }
  .hero-flare-2 { width: 200px; height: 200px; }
  .hero-hud { padding: 6px 8px; gap: 6px; }
  .hero-hud strong { font-size: 9px; }
  .hero-hud span:not(.hud-dot) { font-size: 8px; }
  .hud-tl { top: -8px; left: -4px; }
  .hud-tr { top: -8px; right: -4px; }
  .hud-br { bottom: -8px; right: -4px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-float,
  .hero-flare,
  .hero-scan,
  .hero-particles span,
  .hud-dot,
  .hero-hud { animation: none; }
}
