/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', sans-serif;
  background: #000;
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

/* ==========================================================================
   VIDEO BACKGROUND
   ========================================================================== */
.video-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.video-container video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  
  /* Efeitos visuais */
  filter: blur(6px) brightness(0.75);
  -webkit-filter: blur(6px) brightness(0.75);
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.65) 50%,
    rgba(0, 0, 0, 0.85) 100%
  );
}

/* ==========================================================================
   MAIN CONTAINER
   ========================================================================== */
.container {
  position: relative;
  min-height: 100vh;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #fff 0%, #a8b1ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: clamp(1.1rem, 3vw, 1.25rem);
  font-weight: 400;
  color: #b0b7ff;
  margin-bottom: 2rem;
  max-width: 600px;
  line-height: 1.4;
}

/* ==========================================================================
   BADGE
   ========================================================================== */
.badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #8c9bff;
  border: 1px solid rgba(140, 155, 255, 0.3);
  border-radius: 50px;
  margin-bottom: 3rem;
  background: rgba(20, 20, 40, 0.3);
  backdrop-filter: blur(10px);
}

/* ==========================================================================
   LOGO
   ========================================================================== */
.logo {
  margin-bottom: 2.5rem;
  animation: float 6s ease-in-out infinite;
}

.logo img {
  width: 140px;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ==========================================================================
   DESCRIPTION
   ========================================================================== */
.description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #c2c8ff;
  max-width: 500px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

/* ==========================================================================
   FORM
   ========================================================================== */
.form {
  display: flex;
  gap: 1rem;
  max-width: 500px;
  width: 100%;
  margin-bottom: 1.5rem;
}

.form input {
  flex: 1;
  min-width: 200px;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: white;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
}

.form input:focus {
  outline: none;
  border-color: #8c9bff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(140, 155, 255, 0.1);
}

.form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form button {
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.form button:active {
  transform: translateY(0);
}

/* ==========================================================================
   FORM MESSAGE
   ========================================================================== */
.form-message {
  display: block;
  min-height: 1.5rem;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  color: #8c9bff;
}

/* ==========================================================================
   VIDEO TOGGLE BUTTON
   ========================================================================== */
#videoToggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

#videoToggle:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.1);
}

#videoToggle svg {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  position: fixed;
  bottom: 1rem;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  z-index: 1;
  padding: 0 1rem;
}

.footer-content {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 768px) {
  .container {
    padding: 1.5rem 1rem;
  }
  
  .badge {
    font-size: 0.75rem;
    padding: 0.4rem 1.2rem;
    margin-bottom: 2rem;
  }
  
  .logo img {
    width: 120px;
  }
  
  .form {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .form input,
  .form button {
    width: 100%;
  }
  
  .video-container video {
    filter: blur(4px) brightness(0.8);
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1rem;
  }
  
  .description {
    font-size: 1rem;
    padding: 0 0.5rem;
  }
  
  #videoToggle {
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }
}

/* ==========================================================================
   LOADING STATE
   ========================================================================== */
.loading {
  opacity: 0;
  visibility: hidden;
}

.loaded {
  animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   FOCUS STATES (Accessibility)
   ========================================================================== */
*:focus-visible {
  outline: 2px solid #8c9bff;
  outline-offset: 2px;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */
.hidden {
  display: none !important;
}

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}