/* Definições de Variáveis e Estilos Base */
:root {
  --background: #29353d;
  --foreground: #fafafa;
  --card: #212b31;
  --card-foreground: #fafafa;
  --primary: #f6c90e;
  --primary-foreground: #192024;
  --secondary: #3a4a54;
  --muted-foreground: #b8b8b8;
  --accent: #f7d114;
  --border: #46555e;
  --radius: 0.875rem;
  --light-background: #f0f2f5;
  --dark-foreground: #1c252b;
  --light-text: #555;
  --light-card: #ffffff;
  --light-border: #e2e8f0;

  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  box-sizing: border-box;
}

/* ========================================
   PROFILE SELECTION SCREEN
   ======================================== */
.profile-selection {
  display: none;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
  position: relative;
  overflow: hidden;
}

.profile-selection.active {
  display: flex;
}

.profile-selection::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to bottom right,
      var(--background),
      var(--card),
      var(--background));
  z-index: -1;
}

.profile-selection-content {
  text-align: center;
  max-width: 1200px;
  width: 100%;
}

.section-welcome {
  justify-content: center;
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  height: 6rem;
}

.section-welcome .title {
  color: var(--muted-foreground);
  margin: 0;
  font-size: 3.5rem;
}

.logo-center {
  height: 5rem;
}

.profile-selection h1 {
  font-size: 3.5rem;
  font-weight: bold;
  margin: 0 0 1rem;
  line-height: 1.2;
}

.profile-selection .subtitle {
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 3rem;
}

.profile-selection .subtitle span {
  color: var(--primary);
}

.selection-question {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2.5rem;
  color: var(--muted-foreground);
}

.profile-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.profile-card {
  background: linear-gradient(to bottom right,
      rgba(33, 43, 49, 0.8),
      rgba(33, 43, 49, 0.6));
  backdrop-filter: blur(12px);
  border: 2px solid rgba(70, 85, 94, 0.5);
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.profile-card:hover {
  border-color: rgba(246, 201, 14, 0.8);
  box-shadow: 0 0 40px rgba(246, 201, 14, 0.3);
  transform: translateY(-8px);
}

.profile-card .icon-wrapper {
  width: 5rem;
  height: 5rem;
  border-radius: 1rem;
  background-color: rgba(246, 201, 14, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: all 0.3s ease;
}

.profile-card:hover .icon-wrapper {
  background-color: rgba(246, 201, 14, 0.2);
  transform: scale(1.1);
}

.profile-card .icon-wrapper svg {
  color: var(--primary);
}

.profile-card h3 {
  font-size: 1.75rem;
  font-weight: bold;
  margin: 0 0 1rem;
  color: var(--foreground);
}

.profile-card p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin: 0 0 2rem;
  line-height: 1.6;
}

.profile-card .btn {
  width: 100%;
}

/* Main Content - Hidden by default */
.main-content {
  display: none;
}

.main-content.active {
  display: block;
}

/* Change Profile Button */
.btn-change-profile {
  background: transparent;
  border: 1px solid rgba(246, 201, 14, 0.3);
  color: var(--muted-foreground);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-change-profile:hover {
  border-color: rgba(246, 201, 14, 0.6);
  color: var(--foreground);
  background-color: rgba(246, 201, 14, 0.1);
}

/* ========================================
   HEADER
   ======================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(41, 53, 61, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: 1.75rem;
  font-weight: bold;
  color: var(--primary);
  text-decoration: none;
}

.logo img {
  margin-top: 8px;
  height: 40px;
}

nav.desktop-nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: var(--muted-foreground);
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
  position: relative;
}

nav a:hover {
  color: var(--foreground);
}

nav a.active {
  color: var(--primary);
  font-weight: 700;
}

.btn-login {
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
}

/* Menu Mobile */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 9999;
}

.hamburger {
  display: block;
  position: relative;
  width: 24px;
  height: 2px;
  background: var(--foreground);
  transition: all 0.2s ease-in-out;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--foreground);
  transition: all 0.2s ease-in-out;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  height: calc(100vh - 80px);
  background: var(--background);
  flex-direction: column;
  align-items: center;
  padding-top: 2rem;
}

.mobile-nav[data-visible="true"] {
  display: flex;
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.mobile-nav a {
  font-size: 1.5rem;
  color: var(--foreground);
}

/* Header de Seção */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: bold;
  margin: 0 0 1rem;
}

.section-header p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-light .section-header p {
  color: var(--light-text);
}

/* Componentes Genéricos */
.highlight {
  background: linear-gradient(to right, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.highlight-bold {
  color: var(--primary);
  font-weight: 600;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  background-color: rgba(246, 201, 14, 0.1);
  border: 1px solid rgba(246, 201, 14, 0.2);
  color: var(--foreground);
}

.badge svg {
  color: var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 1rem;
  font-weight: bold;
  font-size: 1.125rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
  border: none;
}

.btn-primary {
  background: linear-gradient(to right, var(--primary), var(--accent));
  color: var(--primary-foreground);
  border: 2px solid rgba(246, 201, 14, 0.4);
  box-shadow: 0 0 50px rgba(246, 201, 14, 0.4);
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 80px rgba(246, 201, 14, 0.6);
}

.btn-outline {
  background-color: rgba(33, 43, 49, 0.3);
  border: 2px solid rgba(246, 201, 14, 0.4);
  color: var(--foreground);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background-color: rgba(246, 201, 14, 0.15);
  border-color: rgba(246, 201, 14, 0.6);
}

.icon-wrapper {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background-color: rgba(246, 201, 14, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: background-color 0.3s ease;
}

/* Seção Hero */
.hero {
  padding-top: 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;

  background-image:
    linear-gradient(rgba(41, 53, 61, 0.95),
      rgba(41, 53, 61, 0.95)),
    url("hero.png");

  background-size: cover;
  background-position: left 40px;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to bottom right,
      var(--background),
      var(--card),
      var(--background));
  z-index: -1;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: bold;
  line-height: 1.2;
  margin: 0 0 1.5rem;
}

.hero-content .subtitle {
  font-size: 1.5rem;
  color: var(--muted-foreground);
  max-width: 42rem;
  margin: 0 auto 2rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.social-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 42rem;
  margin: 2rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(70, 85, 94, 0.3);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Seção de Benefícios */
.benefits {
  padding: 6rem 0;
  position: relative;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.benefit-card {
  background-color: rgba(33, 43, 49, 0.5);
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(70, 85, 94, 0.5);
  transition: all 0.3s ease;
}

.benefit-card:hover {
  border-color: rgba(246, 201, 14, 0.5);
  box-shadow: 0 0 30px rgba(246, 201, 14, 0.1);
}

.benefit-card .icon-wrapper svg {
  color: var(--primary);
}

.benefit-card:hover .icon-wrapper {
  background-color: rgba(246, 201, 14, 0.2);
}

.benefit-card h3 {
  font-size: 1.25rem;
  font-weight: bold;
  margin: 0 0 0.5rem;
  color: var(--foreground);
}

.benefit-card p {
  color: var(--muted-foreground);
  margin: 0;
}

/* Seção Quem Somos */
.about-us {
  position: relative;
  height: 100%;
}

.about-us::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: url("./hero.jpeg");
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-position: right;
  opacity: 0.1;
}

.about-us-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-us-content p {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* Seção Como Funciona */
.how-it-works .steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.step-card {
  position: relative;
  background-color: rgba(254, 254, 254, 0.5);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid rgba(70, 85, 94, 0.5);
  transition: all 0.3s ease;
  box-shadow: 0 0 30px rgba(8, 7, 5, 0.1);
}

.step-card:hover {
  border-color: rgba(246, 201, 14, 0.5);
  box-shadow: 0 0 30px rgba(246, 201, 14, 0.1);
}

.step-number {
  position: absolute;
  top: -1rem;
  right: -1rem;
  width: 4rem;
  height: 4rem;
  background: linear-gradient(to bottom right, var(--primary), var(--accent));
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-foreground);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.step-card .icon-wrapper svg {
  color: var(--primary);
}

.step-card h3 {
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
  font-weight: bold;
}

.step-card p {
  color: var(--muted-foreground);
  line-height: 1.6;
  margin: 0;
}

/* Seção FAQ */
.faq-section {
  padding: 6rem 0;
}

.faq-section .faq-item {
  background-color: rgba(33, 43, 49, 0.3);
  border: 1px solid rgba(70, 85, 94, 0.5);
}

.faq-section .faq-item[open] {
  border-color: rgba(246, 201, 14, 0.5);
}

.faq-section .faq-item summary {
  color: var(--foreground);
}

.faq-section .faq-item p {
  color: var(--muted-foreground);
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border-radius: 0.75rem;
  padding: 0.5rem 1.5rem;
  transition: all 0.3s ease;
}

.faq-item summary {
  font-size: 1.125rem;
  font-weight: 600;
  padding: 1rem 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  transition: transform 0.2s ease;
  color: var(--primary);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding-bottom: 1rem;
  line-height: 1.6;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease-in-out;
}

.faq-item[open] p {
  opacity: 1;
  max-height: 200px;
}

/* Seção Signup */
.signup-section {
  padding: 6rem 0;
  position: relative;
  text-align: center;
}

.signup-card {
  background: linear-gradient(to bottom right,
      rgba(33, 43, 49, 0.8),
      rgba(33, 43, 49, 0.6));
  backdrop-filter: blur(12px);
  border: 2px solid rgba(246, 201, 14, 0.3);
  border-radius: 1.5rem;
  padding: 4rem 2rem;
  box-shadow: 0 0 80px rgba(246, 201, 14, 0.2);
  max-width: 800px;
  margin: 0 auto;
}

.signup-card h2 {
  font-size: 3rem;
  font-weight: bold;
  margin: 0 0 1.5rem;
  line-height: 1.2;
}

.signup-card h2 .highlight {
  display: block;
  margin-top: 0.5rem;
}

.signup-card p {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.btn-large {
  padding: 1.25rem 2rem;
  font-size: 1.125rem;
  border-radius: 1rem;
}

.trust-badges {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(70, 85, 94, 0.3);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  color: var(--muted-foreground);
}

.section-light {
  background-color: var(--light-background);
  color: var(--dark-foreground);
  padding: 6rem 0;
}

.section-light .section-header p {
  color: var(--light-text);
}

/* Rodapé */
footer {
  border-top: 1px solid rgba(70, 85, 94, 0.3);
  padding: 1rem 0;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.footer-logo h3 {
  font-size: 1.5rem;
  font-weight: bold;
  background: linear-gradient(to right, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  margin: 0;
}

.footer-logo p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: rgba(33, 43, 49, 0.5);
  border: 1px solid rgba(70, 85, 94, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--foreground);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: rgba(246, 201, 14, 0.1);
  border-color: rgba(246, 201, 14, 0.5);
}

.footer-legal {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-align: right;
}

.legal-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  justify-content: flex-end;
}

.legal-links a {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.3s ease;
}

.legal-links a:hover {
  color: var(--primary);
}

.progress-container {
  text-align: center;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.progress-label {
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.progress-bar {
  background-color: var(--border);
  border-radius: 999px;
  height: 14px;
  max-width: 480px;
  margin: 0 auto;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, var(--primary), var(--accent));
  transition: width 1s ease-in-out;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--card);
  color: var(--foreground);
  padding: 1rem 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  display: none;
  border-top: 1px solid var(--border);
}

.cookie-banner .cookie-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.cookie-banner p {
  margin: 0;
  flex: 1;
  min-width: 250px;
  line-height: 1.5;
  color: var(--muted-foreground);
}

.cookie-banner p a {
  text-decoration: underline;
  color: var(--primary);
  font-weight: 500;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-small {
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  border-radius: 0.75rem;
}

/* Fade transitions */
.fade-out {
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

.fade-in {
  opacity: 1;
  transition: opacity 0.3s ease-in;
}

/* Media Queries para Responsividade */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .section-welcome {
    height: 8rem;
    gap: 0;
  }

  .profile-selection h1,
  .section-welcome .title {
    font-size: 2.5rem;
  }

  .profile-selection .subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
  }

  .selection-question {
    font-size: 1.25rem;
  }

  .profile-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .logo-center img {
    height: 50px;
  }

  .hero {
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content .subtitle {
    font-size: 1.125rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .btn {
    width: 100%;
    box-sizing: border-box;
  }

  a.btn {
    display: inline-block;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .social-proof {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  .section-header h2,
  .signup-card h2 {
    font-size: 2rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal {
    text-align: center;
  }

  .legal-links {
    justify-content: center;
  }

  .cookie-banner .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .cookie-buttons {
    width: 100%;
    flex-direction: column;
  }

  .cookie-buttons .btn {
    width: 100%;
  }

  .about-us::before,
  .hero {
    background-attachment: scroll;
  }
}