* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #171f38;
  color: #e0e0e0;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.6;
  scroll-behavior: smooth;
}

.decoration {
  position: absolute;
  border-radius: 701px 600px 500px;
  background-image: linear-gradient(
    120deg,
    rgba(198, 163, 224, 1),
    rgba(157, 157, 212, 0.6)
  );
  transform: translate(-50%, -50%) rotate(20deg);
  overflow: hidden;
  z-index: 1;
}

.xlarge {
  height: 350px;
  width: 350px;
  top: -5%;
  left: 130px;
}

.header-brand {
  font-family: "Raleway", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  position: absolute;
  top: 3%;
  left: 130px;
  transform: translateX(-50%);
  text-align: center;
  z-index: 2;
}

.logo {
  width: 50px;
  height: auto;
}

.site-name {
  font-size: 2.2rem;
  color: white;
  margin: auto;
}

.content-wrapper {
  margin-top: 200px;
}

.hero {
  font-family: "Raleway", sans-serif;
  color: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  padding: 20px;
  z-index: 2;
}

.hero-content {
  max-width: 600px;
  border-radius: 8px;
}

.hero h1 {
  font-size: 1.8rem;
  line-height: 1.3;
  color: #fc6c9f;
  max-width: 410px;
  margin-bottom: 15px;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(252, 108, 159, 0.4),
    0 0 12px rgba(252, 108, 159, 0.2);
  letter-spacing: 0.4px;
}

.hero p {
  font-size: 1rem;
  color: #e0e0e0;
  max-width: 90%;
  margin-bottom: 20px;
}

.hero-content strong,
.referral-details strong {
  color: #9d9dd4;
  font-weight: bold;
}

.button-container {
  display: flex;
  justify-content: center;
  margin: 30px auto 10px;
}

.cta-button {
  background: linear-gradient(135deg, #d65a86, #fc6c9f);
  color: #ffffff;
  max-width: 200px;
  text-align: center;
  padding: 10px 20px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: pulsate 1.8s ease-in-out infinite;
}

.cta-button:active {
  transform: scale(1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

@keyframes pulsate {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 8px 18px rgba(230, 57, 120, 0.5);
  }
}

.grid-container {
  position: relative;
  font-family: "Poppins", sans-serif;
  display: grid;
  justify-content: center;
  margin: 0 auto 30px;
  grid-template-columns: repeat(2, 120px);
  grid-template-rows: repeat(2, 120px);
  gap: 25px;
  padding: 45px;
  max-width: 600px;
  overflow: hidden;
}

.grid-item {
  background-color: rgba(43, 54, 93, 0.8);
  border-radius: 20px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 2;
}

.step-number {
  position: absolute;
  top: 10px;
  left: 10px;
  color: #d0c0ed;
  font-weight: 600;
  font-size: 0.75rem;
  font-style: italic;
}

.step-frame {
  width: 55px;
  height: 55px;
  background-color: #d65a86;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.step-image {
  width: 30px;
  height: 30px;
  filter: brightness(0) invert(1);
}

.step-text {
  color: #e0e0e0;
  font-size: 0.6875rem;
  line-height: 1.4;
}

.arrow {
  position: absolute;
  width: 80px;
  height: auto;
}

.arrow1 {
  top: -55px;
  right: -53px;
  transform: rotate(50deg);
}

.arrow2 {
  bottom: -53px;
  right: -55px;
  transform: rotate(140deg);
}

.arrow3 {
  bottom: -55px;
  left: -53px;
  transform: rotate(-130deg);
}

.features {
  display: flex;
  gap: 24px;
  padding: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  max-width: 100vw;
  box-sizing: border-box;
}

.feature {
  width: 200px;
  flex: 0 0 auto;
  padding: 20px;
  border-radius: 6px;
  background-color: #2b365d;
  color: #e0e0e0;
  text-align: center;
  scroll-snap-align: center;
  box-shadow: 4px 4px 0px #13193c, 7px 7px 5px rgba(12, 11, 25, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 2;
}

.feature:hover {
  background-color: #2b365d;
  transform: translateZ(10px) rotateX(5deg) translateY(-5px);
}

.feature h3 {
  font-size: 1.2rem;
  color: #b89bcf;
  margin-bottom: 10px;
  font-weight: 600;
}

.feature p {
  font-size: 0.95rem;
  color: #e0e0e0;
  line-height: 1.5;
}

.sections-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding: 20px;
}

.example,
.referral {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

/* Seção Exemplo */
.example {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  padding: 20px;
  color: #e0e0e0;
  background-color: #2b365d;
  border-radius: 8px;
  box-shadow: 4px 4px 0px #13193c, 7px 7px 5px rgba(12, 11, 25, 0.5);
}

.example-content {
  padding: 20px;
  border-radius: 8px;
  background-color: #242e4c;
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 2;
}

.example-content:hover {
  transform: translateZ(10px) rotateX(5deg) translateY(-5px);
}

.example-content .button-container {
  margin: 0 auto;
}

.example h2,
.referral-container h2 {
  text-align: center;
  font-size: 1.8rem;
  color: #fc6c9f;
  margin-bottom: 10px;
  font-weight: 600;
}

.example p {
  font-size: 1rem;
  margin-bottom: 20px;
  line-height: 1.5;
  color: #e0e0e0;
}

.example-button {
  background-color: #d65a86;
  color: #e0e0e0;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 550;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.example-button:hover {
  background-color: #e63978;
  box-shadow: 0 5px 15px rgba(230, 57, 120, 0.5);
  cursor: pointer;
}

/* Seção de Indicações (Referral) */
.referral {
  background-color: #2b365d;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 4px 4px 0px #13193c, 7px 7px 5px rgba(12, 11, 25, 0.5);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.referral-container {
  width: 100%;
}

.referral-description-wrapper {
  margin-bottom: 20px;
}

.referral-description-text {
  font-size: 1rem;
  margin-bottom: 20px;
  line-height: 1.5;
  color: #e0e0e0;
  cursor: pointer;
}

.referral-description-text strong {
  text-decoration: underline;
}

.referral-details {
  margin-top: 10px;
  padding: 15px;
  background-color: #242e4c;
  border-left: 4px solid #fc6c9f;
  border-radius: 5px;
  color: #e0e0e0;
  font-size: 0.9rem;
  text-align: left;
}

/* Classe para esconder elementos */
.hidden {
  display: none;
}

/* Grupo de verificação */
.referral-input-group {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}

.referral-actions {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  align-items: center;
  gap: 10px;
}

.button-group {
  display: flex;
  gap: 10px;
}

.referral-input {
  width: 230px;
  padding: 10px;
  border: none;
  border-radius: 6px;
  background-color: #242e4c;
  color: #e0e0e0;
  font-family: monospace;
  text-align: center;
}

.referral-input::placeholder {
  color: #9d9dd4;
  opacity: 0.6;
}

.referral-input:focus {
  outline: 2px solid #fc6c9f;
  outline-offset: -2px;
}

.referral-counter {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.referral-label {
  font-size: 1rem;
  color: #b89bcf;
  margin-bottom: 10px;
  font-weight: 600;
}

.counter {
  font-size: 32px;
  font-weight: bold;
  color: #9d9dd4;
}

.counter .total {
  color: #e0e0e0;
  opacity: 0.5;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background-color: #242e4c;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 16px;
}

.progress {
  height: 100%;
  background-color: #fc6c9f;
  transition: width 0.3s ease;
}

.verify-button,
.redeem-button {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.verify-button {
  background-color: #242e4c;
  color: #e0e0e0;
}

.verify-button:hover {
  background-color: #2f3b5c;
}

.loading-indicator {
  margin-left: 10px;
  font-size: 0.9em;
  color: #555;
}

.redeem-button {
  background-color: #fc6c9f;
  color: white;
}

.redeem-button:disabled {
  background-color: #242e4c;
  color: #9d9dd4;
  cursor: not-allowed;
  opacity: 0.7;
}

.redeem-button:not(:disabled):hover {
  background-color: #ff7eb3;
}

/* Seção TikTok Inspiration */
.tiktok-inspiration {
  padding: 40px 24px;
  margin: 0 auto;
  max-width: 100%;
  overflow: hidden;
}

.tiktok-inspiration h2 {
  font-size: 1.8rem;
  color: #fc6c9f;
  text-align: center;
  max-width: 500px;
  margin: 0 auto 15px;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(252, 108, 159, 0.4),
    0 0 12px rgba(252, 108, 159, 0.2);
  letter-spacing: 0.4px;
}

/* Grid de cards com scroll horizontal */
.tiktok-grid {
  display: flex;
  gap: 24px;
  padding: 20px 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tiktok-grid::-webkit-scrollbar {
  display: none;
}

.tiktok-card {
  background-color: #2b365d;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 4px 4px 0px #13193c;
  transition: transform 0.3s ease;
  text-decoration: none;
}

.tiktok-grid .tiktok-card {
  flex: 0 0 calc(100% - 48px);
  scroll-snap-align: start;
}

.tiktok-card:hover {
  transform: translateY(-4px);
}

.tiktok-thumbnail {
  position: relative;
  aspect-ratio: 9/16;
  overflow: hidden;
}

.tiktok-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tiktok-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.tiktok-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
}

.tiktok-info h3 {
  color: white;
  font-weight: 500;
  margin-bottom: 4px;
}

.tiktok-info p {
  color: #e0e0e0;
  font-size: 14px;
}

/* FAQ Section */
.faq {
  max-width: 500px;
  margin: 30px auto;
  padding: 30px 25px 0;
}

.faq-title {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  color: #fc6c9f;
  gap: 5px;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 30px;
  max-width: 350px;
}

.faq-title img {
  width: 40px;
  height: 40px;
  margin-bottom: -5px;
}

.faq-item {
  margin-bottom: 20px;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 10px 0;
  color: #e0e0e0;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.faq-question h3 {
  font-weight: 500;
  margin: 0;
  flex: 1;
  padding-right: 10px;
}

.faq-question.active-question {
  color: #d0c0ed;
}

.faq-toggle {
  background-color: #2b365d;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.faq-toggle .icon {
  width: 15px;
  height: 15px;
  filter: brightness(0) invert(1);
}

.faq-link {
  color: #d0c0ed;
  text-decoration: none;
}

.faq-link:hover {
  text-decoration: underline;
}

.faq-answer {
  margin-top: 10px;
  max-width: 90%;
  font-size: 0.95rem;
  color: #b0b0b0;
  line-height: 1.6;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.3s ease;
}

.faq-answer.show {
  opacity: 1;
  max-height: 500px;
}

.faq-item hr {
  border: 0;
  border-top: 1px solid #242e4c;
  margin: 15px 0;
}

/* CTA extra */
.cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 85%;
  border-radius: 0.5rem;
  border: 1px solid #fc6c9f;
  padding: 1.5rem;
  gap: 1rem;
  margin-bottom: 70px;
  box-shadow: 0 0 5px #fc6c9f;
}

.cta-container.right-align {
  align-items: center;
}

.cta-container.right-align .cta-text {
  text-align: left;
  margin-left: 25px;
}

.cta-container.left-align {
  align-items: center;
}

.cta-container.left-align .cta-text {
  text-align: right;
  margin-right: 20px;
}

.cta-image {
  width: 164px;
  height: auto;
}

.cta-image img {
  width: 164px;
  height: auto;
}

.cta-text {
  display: flex;
  flex-direction: column;
  gap: 15px;
  color: #d0c0ed;
  max-width: 220px;
  font-size: 1rem;
  line-height: 1.3;
}

.cta-text {
  font-size: 1.2rem;
}

.cta-title {
  font-size: 1.5rem;
  font-weight: bolder;
  color: #ffffff;
}

.cta-subtext {
  font-size: 1rem;
  opacity: 0.8;
}

/* Footer */
.wavy-line {
  width: 95%;
  height: 30px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 30'%3E%3Cpath d='M0 15 Q 25 -10 50 15 T 100 15' fill='none' stroke='%239f86ff' stroke-width='6'/%3E%3C/svg%3E")
    repeat-x;
  background-size: 20px 30px;
}

.footer {
  position: relative;
  color: #e0e0e0;
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px;
  text-align: left;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.footer-content {
  flex: 1;
}

.footer-logo {
  width: 50px;
  height: auto;
}

.footer-description {
  text-align: justify;
  font-size: 13px;
  margin-top: 24px;
  font-weight: 400;
  line-height: 1.4;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
}

.social-links h4,
.credits h4,
.terms h4 {
  font-size: 13px;
  margin-bottom: 16px;
}

ul {
  list-style: none;
  padding: 0;
}

ul li {
  margin-bottom: 16px;
}

ul li a {
  color: #9f86ff;
  text-decoration: underline;
  transition: color 0.3s ease;
}

ul li a:hover {
  color: #fc6c9f;
}

.footer hr {
  border: 0;
  border-top: 2px solid #242e4c;
  margin: 15px 0;
}

.footer-made-with {
  text-align: left;
  font-size: 12px;
  color: #e0e0e0;
  margin-top: 15px;
}

.footer-made-with .icon {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin: 0 4px 5px;
}

/* Responsive Styles */
@media (max-width: 480px) {
  .referral-input-group {
    flex-direction: column;
    align-items: stretch;
  }

  referral-actions {
    align-items: center;
  }

  .referral-input {
    width: 100%;
  }

  .referral-description {
    font-size: 0.9rem;
  }

  .referral-input::placeholder {
    text-align: center;
  }
}

@media (min-width: 512px) {
  .hero h1 {
    max-width: 640px;
  }

  .hero p {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .content-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 160px 30px 0;
  }

  .hero {
    max-width: 55%;
  }

  .grid-container {
    grid-template-columns: repeat(2, 100px);
    grid-template-rows: repeat(2, 100px);
    margin: 0;
    padding: 40px;
  }

  .grid-item {
    padding: 10px;
  }

  .step-number {
    font-size: 0.6875rem;
  }

  .step-frame {
    width: 45px;
    height: 45px;
  }

  .step-image {
    width: 25px;
    height: 25px;
  }

  .step-text {
    font-size: 0.6125rem;
  }

  .features {
    gap: 30px;
    padding: 40px;
  }

  .feature {
    width: 220px;
  }

  .referral-actions {
    align-items: start;
    margin-bottom: 0px;
  }

  .tiktok-grid {
    max-width: 800px;
    margin: 0 auto;
    overflow-x: visible;
    flex-wrap: wrap;
    justify-content: center;
  }

  .tiktok-grid .tiktok-card {
    flex: 1 1 200px;
    scroll-snap-align: none;
  }

  .faq {
    max-width: 80%;
  }

  .faq-title {
    font-size: 2.5rem;
  }

  .cta-container {
    flex-direction: row;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto 100px;
  }

  .cta-container.right-align .cta-text {
    margin-right: 0;
  }

  .cta-container.left-align .cta-text {
    margin-left: 0;
    align-items: flex-start;
  }

  .cta-image {
    flex-shrink: 0;
  }

  .cta-text {
    max-width: 270px;
  }

  .cta-title {
    font-size: 1.7rem;
    max-width: 400px;
  }

  .cta-subtext {
    font-size: 1.2rem;
  }

  .footer-container {
    flex-direction: row;
    align-items: flex-start;
    gap: 48px;
    justify-content: space-evenly;
  }

  .footer-content {
    max-width: 60%;
  }

  .footer-description {
    font-size: 14px;
    line-height: 1.5;
  }

  .footer-links {
    flex-direction: row;
    justify-content: space-between;
    grid-template-columns: 80px 80px 80px;
    max-width: 40%;
    margin-top: 50px;
  }

  .footer-links h4,
  ul li a {
    font-size: 14px;
  }

  .footer-made-with {
    font-size: 13px;
    margin-top: 10px;
  }
}

@media (min-width: 1024px) {
  .content-wrapper {
    margin-top: 115px;
  }

  .hero {
    max-width: 55%;
    padding: 80px 0;
  }

  .hero h1 {
    font-size: 2.6rem;
    max-width: 600px;
  }

  .hero p {
    max-width: 600px;
  }

  .grid-container {
    grid-template-columns: repeat(2, 140px);
    grid-template-rows: repeat(2, 140px);
    margin: 0;
    padding: 40px;
  }

  .grid-item {
    padding: 15px;
  }

  .step-number {
    font-size: 0.8125rem;
  }

  .step-frame {
    width: 60px;
    height: 60px;
  }

  .step-image {
    width: 35px;
    height: 35px;
  }

  .step-text {
    font-size: 0.8125rem;
  }

  .feature {
    width: 250px;
    padding: 30px;
  }

  .faq {
    padding: 50px;
  }

  .cta-text {
    max-width: 400px;
  }

  .cta-title {
    font-size: 2rem;
    max-width: 400px;
  }

  .cta-subtext {
    font-size: 1.2rem;
    text-align: right;
  }

  #left {
    text-align: left !important;
  }

  .footer {
    padding: 80px 40px;
  }
}

@media (min-width: 1280px) {
  .content-wrapper {
    display: flex;
    gap: 48px;
    align-items: center;
    justify-content: center;
    margin-top: 135px;
  }

  .hero {
    max-width: 55%;
    padding: 80px 0;
  }

  .hero h1 {
    font-size: 3rem;
    max-width: 600px;
  }

  .hero p {
    max-width: 600px;
  }

  .feature {
    width: 250px;
    padding: 30px;
  }

  .footer {
    padding: 80px 40px;
  }
}
