@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Playfair+Display:wght@600&display=swap');

:root {
  --background-color: #fdfdff;
  --text-color: #1c1b22;
  --primary-accent-color: #7c3aed;
  --primary-accent-hover: #6d28d9;
  --subtle-text-color: #6b7280;
  --card-border-color: #e5e7eb;
  --card-back-color: #1c1b22;
  --alert-bg-color: #f3e8ff;
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;
  --transition-speed: 0.5s;
  --transition-curve: cubic-bezier(0.25, 1, 0.5, 1);
}

body {
  font-family: var(--font-sans);
  margin: 0;
  padding: 24px;
  background-color: var(--background-color);
  background-image: url('../src/nuvem.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--text-color);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 520px;
  width: 100%;
  text-align: center;
  padding: 0;
  transition: max-width 0.4s ease;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 20px;
}

.header {
  margin-bottom: 40px;
}

.logo {
  max-width: 180px;
  height: auto;
  opacity: 0.9;
}

.title {
  font-family: var(--font-serif);
  color: var(--text-color);
  font-size: 2.25rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
}

.subtitle {
  font-size: 1rem;
  color: var(--subtle-text-color);
  margin: 12px 0 40px;
  font-weight: 400;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 30px;
  perspective: 1500px;
}

.card-container {
  width: 100%;
  aspect-ratio: 5 / 8;
  cursor: pointer;
  transition: transform 0.3s var(--transition-curve);
}

.card-container:hover {
  transform: translateY(-8px);
}

.card {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 1s var(--transition-curve);
  border-radius: 12px;
}

.card.flipped {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

.card-back {
  background-image: url('../src/carta-tras.webp');
}

.card-front {
  background-color: var(--background-color);
  transform: rotateY(180deg);
  border: 1px solid var(--card-border-color);
}

.selection-prompt {
  color: var(--subtle-text-color);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hidden {
  display: none;
}

.selected-cards-container {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 40px 0;
}

.selected-card-image {
  width: clamp(90px, 25vw, 120px);
  height: auto;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  border: 4px solid white;
}

.alert-box {
  background-color: var(--alert-bg-color);
  border: 1px solid var(--primary-accent-color-subtle, #ddd6fe);
  border-radius: 16px;
  padding: 24px;
  margin: 30px auto;
  max-width: 500px;
}

.alert-box h2 {
  color: var(--text-color);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 15px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.warning-icon {
  font-size: 1rem;
  color: var(--primary-accent-color);
  border: 2px solid var(--primary-accent-color);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  font-weight: bold;
}

.alert-box p {
  color: var(--subtle-text-color);
  line-height: 1.7;
  font-size: 0.95rem;
  margin: 10px 0;
}

.alert-box p strong {
  color: var(--text-color);
  font-weight: 500;
}

.reveal-button {
  background-color: var(--primary-accent-color);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 18px 30px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
  width: 100%;
  max-width: 500px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 8px 25px -5px var(--primary-accent-color);
}

.reveal-button:hover {
  background-color: var(--primary-accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px -8px var(--primary-accent-color);
}

#video-screen {
  width: 100%;
}

.container-video {
  width: 100%;
  height: auto;
}

body.video-active {
  background-image: none;
  background-color: #000000;
  padding: 0;
}

.mystical-notice-section {
  padding: 0 24px;
}

.mystical-notice {
  background: radial-gradient(ellipse at 70% 30%, rgba(124, 58, 237, 0.4) 0%, rgba(16, 13, 24, 0) 60%),
    #100d18;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 30px;
  max-width: 900px;
  margin: 80px auto 60px;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.mystical-notice::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"%3E%3Cg fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.04"%3E%3Cpath d="M0 38.59l2.83-2.83 1.41 1.41L1.41 40H0v-1.41zM0 1.4l2.83 2.83 1.41-1.41L1.41 0H0v1.41zM38.59 40l-2.83-2.83 1.41-1.41L40 38.59V40h-1.41zM40 1.41l-2.83 2.83-1.41-1.41L38.59 0H40v1.41zM20 18.6l2.83-2.83 1.41 1.41L21.41 20l2.83 2.83-1.41 1.41L20 21.41l-2.83 2.83-1.41-1.41L18.59 20l-2.83-2.83 1.41-1.41L20 18.59z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
}

.mystical-notice p {
  line-height: 1.7;
  font-size: 1rem;
  margin: 18px 0;
  color: rgba(255, 255, 255, 0.7);
}

.mystical-notice .quote {
  font-style: italic;
  color: #f0e9ff;
  margin: 30px 0 10px;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.mystical-notice .signature {
  text-align: right;
  font-style: normal;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0;
  margin-bottom: 30px;
  font-family: var(--font-serif);
}

.offerings-section {
  width: 100%;
  max-width: 500px;
  margin: 40px auto;
  text-align: center;
  box-sizing: border-box;
  padding: 0 24px;
}

.offerings-title {
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
  text-shadow: 0 0 20px rgba(192, 132, 252, 0.7);
  margin-bottom: 50px;
}

.offerings-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.offering-image {
  width: 100%;
  max-width: 330px;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
}

@media (min-width: 768px) {
  .offerings-section {
    max-width: 1300px;
  }

  .offerings-title {
    font-size: 2.3rem;
  }

  .offerings-grid {
    flex-direction: row;
    justify-content: center;
    gap: 30px;
  }

  .offering-image {
    max-width: 600px;
  }
}

@media (min-width: 1024px) {
  body {
    align-items: center;
    padding: 40px;
  }

  .container {
    max-width: 1024px;
    padding: 40px;
  }

  .header {
    margin-bottom: 50px;
  }

  .title {
    font-size: 3rem;
  }

  .subtitle {
    font-size: 1.1rem;
    margin-bottom: 50px;
  }

  .card-grid {
    grid-template-columns: repeat(9, 1fr);
    gap: 16px;
  }

  .selected-cards-container {
    gap: 24px;
    margin: 50px 0;
  }

  .selected-card-image {
    width: 140px;
  }
}

.benefits-section {
  width: 100%;
  max-width: 1200px;
  margin: 80px auto;
  box-sizing: border-box;
  padding: 0 24px;
}

.benefits-main-title {
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
  text-shadow: 0 0 20px rgba(192, 132, 252, 0.7);
  margin-bottom: 50px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.benefit-card {
  background: radial-gradient(circle at 50% 0%, rgba(124, 58, 237, 0.2), transparent 70%),
    linear-gradient(165deg, #16131c, #100d18);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at var(--x) var(--y), rgba(167, 139, 250, 0.2), transparent 30%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.benefit-card:hover::before {
  opacity: 1;
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
}

.card-icon {
  color: var(--primary-accent-color);
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-shadow: 0 0 15px var(--primary-accent-color);
}

.card-title {
  font-family: var(--font-serif);
  color: #f0e9ff;
  font-size: 1.4rem;
  margin-top: 0;
  margin-bottom: 15px;
  line-height: 1.4;
}

.card-description {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 25px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.card-tag {
  background-color: rgba(124, 58, 237, 0.2);
  color: rgba(192, 132, 252, 1);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(124, 58, 237, 0.4);
}



@media (min-width: 768px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefits-main-title {
    font-size: 2.3rem;
  }

  .testimonials-title {
    font-size: 2.3rem;
  }
}

@media (min-width: 1024px) {
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cta-section {
  width: 100%;
  max-width: 900px;
  margin: 80px auto 60px;
  box-sizing: border-box;
  padding: 0 24px;
}

.cta-card {
  background: radial-gradient(ellipse at 70% 30%, rgba(124, 58, 237, 0.4) 0%, rgba(16, 13, 24, 0) 60%),
    #100d18;
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
}

.cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"%3E%3Cg fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.04"%3E%3Cpath d="M0 38.59l2.83-2.83 1.41 1.41L1.41 40H0v-1.41zM0 1.4l2.83 2.83 1.41-1.41L1.41 0H0v1.41zM38.59 40l-2.83-2.83 1.41-1.41L40 38.59V40h-1.41zM40 1.41l-2.83 2.83-1.41-1.41L38.59 0H40v1.41zM20 18.6l2.83-2.83 1.41 1.41L21.41 20l2.83 2.83-1.41 1.41L20 21.41l-2.83 2.83-1.41-1.41L18.59 20l-2.83-2.83 1.41-1.41L20 18.59z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
  pointer-events: none;
}

.cta-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin: 0 0 20px;
  text-shadow: 0 0 25px rgba(192, 132, 252, 0.6);
  line-height: 1.3;
}

.cta-text {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  max-width: 650px;
  margin: 0 auto 35px;
}

.cta-button {
  background-color: #007d11;
  color: rgb(255, 255, 255);
  border: none;
  border-radius: 12px;
  padding: 18px 40px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  z-index: 999999999999999999;
}

.cta-button:hover {
  background-color: #045800;
  transform: translateY(-4px) scale(1.05);
}

@media (min-width: 768px) {
  .cta-card {
    padding: 50px;
  }

  .cta-title {
    font-size: 2.5rem;
  }
}

.testimonials-section {
  width: 100%;
  max-width: 1200px;
  margin: 60px auto;
  box-sizing: border-box;
  padding: 0 24px;
}

.testimonials-title {
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
  text-shadow: 0 0 20px rgba(192, 132, 252, 0.7);
  margin-bottom: 50px;
  padding: 0 20px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

.testimonial-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

@media (min-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.seed-button {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000000000000000;
  padding: 14px 30px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(145deg, #b14a00, #ce8200);
  border: 2px solid rgb(255, 255, 255);
  border-radius: 27px;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  white-space: nowrap;
  font-weight: bold;
}

#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffffa7;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
  backdrop-filter: blur(10px);
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(129, 129, 129, 0.2);
  border-top-color: var(--primary-accent-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.hidden-initial {
  display: none;
}

.testimonial-card {
  background: radial-gradient(circle at 50% 0%, rgba(124, 58, 237, 0.1), transparent 70%), linear-gradient(165deg, #16131c, #100d18);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 25px;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-text {
  font-style: italic;
  line-height: 1.7;
  font-size: 0.95rem;
  margin: 0 0 15px 0;
  color: rgba(255, 255, 255, 0.7);
}

.testimonial-author {
  font-family: var(--font-serif);
  font-weight: 600;
  text-align: right;
  color: #f0e9ff;
  font-size: 1rem;
}