/* Import Satoshi font */
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@700,900,500&display=swap');

/* Reset and base styles */
html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #fff;
  overflow-x: hidden;
}

*, *:before, *:after {
  box-sizing: inherit;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-radius: 100px;
  width: calc(100% - 2rem);
  max-width: 1200px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateX(-50%) translateY(-100%);
}

.nav.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(1rem);
}

.top-header {
  position: static;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.top-header.hidden {
  display: none;
}

.top-header .logo {
  font-family: 'Satoshi', sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  text-decoration: none;
  color: #000;
}

.top-header .button {
  display: inline-block;
  background: #000;
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 100px;
  text-decoration: none;
  font-size: 0.95rem;
  white-space: nowrap;
}

.nav-logo {
  font-family: 'Satoshi', sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  text-decoration: none;
  color: #000;
  padding: 0 1rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding: 0 0.5rem;
}

.nav-link {
  text-decoration: none;
  color: #000;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: rgb(114, 87, 255);
}

.nav-link.social-link {
  color: rgb(114, 87, 255);
}

.nav-link.social-link:hover {
  color: #000;
}

.nav-button {
  display: inline-block;
  background: #000;
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 100px;
  text-decoration: none;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.nav-button:hover {
  transform: translateY(-1px);
  background-color: #222;
}

/* Parallax sections */
.scroll-container {
  height: 200vh;
  position: relative;
  margin-top: 0;
  padding-top: 0;
  overflow: hidden;
}

.content-wrapper {
  position: relative;
  z-index: 4;
  background: transparent;
}

.parallax {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 60px 60px 0 0;
  will-change: transform;
}

.parallax.first {
  background: #000;
}

.parallax.second {
  background: #fff;
}

.parallax.third {
  background: #000;
  border-radius: 60px;
}

.parallax .static-text {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  max-width: 800px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.parallax .static-text.appear {
  opacity: 1;
  transform: translateY(0);
}

.parallax .static-text h1 {
  font-size: 6rem;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #000;
}

.parallax.first .static-text h1 {
  color: #fff;
}

.parallax .static-text.purple h1 {
  color: rgb(114, 87, 255);
}

.parallax .static-text p {
  font-size: 1.5rem;
  margin: 0;
  opacity: 0.9;
}

/* Fade-in sections */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

.fade-in h2 {
  font-size: 2.5rem;
  margin: 0 0 1rem;
  color: #333;
}

.fade-in p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #666;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .parallax .static-text h1 {
    font-size: 4rem;
  }
  
  .parallax .static-text p {
    font-size: 1.25rem;
  }
  
  .fade-in h2 {
    font-size: 2rem;
  }
  
  .feature h2 {
    font-size: 2.5rem;
  }
  
  .feature p {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .nav {
    padding: 1rem;
  }
  
  .nav-links {
    gap: 1rem;
  }
  
  .parallax {
    height: 100vh;
    width: 100%;
  }
  
  .parallax .static-text {
    padding: 1rem;
  }
  
  .parallax .static-text h1 {
    font-size: 4rem;
  }
  
  .parallax .static-text p {
    font-size: 1.3rem;
  }
  
  .fade-in {
    padding: 1rem;
  }
  
  .fade-in h2 {
    font-size: 1.75rem;
  }
  
  .fade-in p {
    font-size: 1rem;
  }
  
  .features {
    padding: 2rem 1rem;
    border-radius: 30px;
  }
  
  .feature {
    flex-direction: column !important;
    gap: 1rem;
    margin: 2rem 0;
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }
  
  .feature-image {
    width: 100%;
    aspect-ratio: 16/9;
    margin-bottom: 1rem;
    border-radius: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  }
  
  .feature-image img {
    border-radius: 30px;
  }
  
  .feature h2 {
    font-size: 2.2rem;
    font-weight: 700;
  }
  
  .feature p {
    font-size: 1.15rem;
    margin-bottom: 1rem;
  }
  
  .nav-link {
    display: none;
  }
  
  .coming-soon .description {
    font-size: 1.3rem;
    margin: 2rem auto;
  }
  
  .signup {
    border-radius: 0 0 30px 30px;
  }
  
  .coming-soon .preview-image {
    width: 85%;
  }
}

@media (max-width: 480px) {
  .nav-links .nav-link:not(.social):not(.nav-button) {
    display: none;
  }
  
  .parallax .static-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
  }
  
  .parallax .static-text p {
    font-size: 1.2rem;
    line-height: 1.4;
  }
  
  .coming-soon .description {
    font-size: 1.1rem;
    max-width: 90%;
    margin: 1.5rem auto;
  }
  
  .feature h2 {
    font-size: 2rem;
  }
  
  .feature p {
    font-size: 1.1rem;
  }
  
  .coming-soon .preview-image {
    width: 100%;
  }
}

/* Features section */
.features {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  background: #f8f8f8;
  border-radius: 60px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin: 6rem 0;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.5s ease-out, transform 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature.appear {
  opacity: 1;
  transform: translateY(0);
}

.feature:nth-child(even) {
  flex-direction: row-reverse;
}

.features .feature .feature-content {
  flex: 1;
}

.features .feature .feature-image {
  flex: 1;
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.features .feature .feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
}

.feature h2 {
  font-size: 3.3rem;
  margin: 0 0 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.feature h2.purple {
  color: rgb(114, 87, 255);
}

.feature p {
  font-size: 1.6rem;
  line-height: 1.3;
  color: #666;
  margin: 0 0 1.5rem;
}

.feature .read-more {
  display: inline-block;
  background: #000;
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 100px;
  text-decoration: none;
  font-size: 0.95rem;
  transition: transform 0.2s ease;
}

.feature .read-more:hover {
  transform: translateY(-1px);
}

/* FAQ section */
.faq {
  padding: 4rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.faq h2 {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.faq-item {
  border-top: 1px solid #eee;
  padding: 1.5rem 0;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.faq-item.appear {
  opacity: 1;
  transform: translateY(0);
}

.faq-item:last-child {
  border-bottom: 1px solid #eee;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 500;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 1rem;
  margin: 0;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
  margin-top: 1rem;
}

.faq-answer p {
  margin: 0;
  padding-bottom: 0.5rem;
}

/* Sign up section */
.signup {
  text-align: center;
  padding: 6rem 2rem;
  background: #f8f8f8;
  margin-top: 4rem;
  border-radius: 0 0 60px 60px;
  position: relative;
  z-index: 2;
  margin-bottom: -55px;
}

.signup h2 {
  font-size: 3rem;
  margin: 0 0 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.signup .get-started {
  display: inline-block;
  background: #000;
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 100px;
  text-decoration: none;
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.signup .get-started:hover {
  transform: translateY(-2px);
}

/* Responsive styles for new sections */
@media (max-width: 768px) {
  .features {
    padding: 2rem 1rem;
  }
  
  .feature {
    flex-direction: column !important;
    gap: 2rem;
    margin: 4rem 0;
  }
  
  .feature h2 {
    font-size: 2rem;
  }
  
  .faq {
    padding: 2rem 1rem;
  }
  
  .faq h2 {
    font-size: 2.5rem;
  }
  
  .signup {
    padding: 4rem 1rem;
  }
  
  .signup h2 {
    font-size: 2.5rem;
  }
}

/* Coming Soon section */
.coming-soon {
  text-align: center;
  padding: 4rem 2rem; /* Reduced top padding */
  max-width: 1200px;
  margin: 0 auto;
}

.coming-soon h1 {
  font-size: 4rem;
  font-weight: 700;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.coming-soon .subtitle {
  font-size: 1.5rem;
  font-style: italic;
  color: #666;
  margin-bottom: 3rem;
}

.coming-soon .description {
  font-size: 1.6rem;
  color: #666;
  max-width: 600px;
  margin: 3rem auto;
  line-height: 1.3;
}

.coming-soon .get-started {
  display: inline-block;
  background: #000;
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 100px;
  text-decoration: none;
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.coming-soon .get-started:hover {
  transform: translateY(-2px);
}

.coming-soon .preview-image {
  max-width: 600px;
  margin: 2rem auto;
  background: #f8f8f8;
  border-radius: 60px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.coming-soon .preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Footer */
.footer {
  background: #000;
  color: #fff;
  padding: 3rem 2rem;
  position: relative;
  z-index: 1;
  padding-top: 5rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-logo {
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

.footer-section {
  flex: 1;
  min-width: 200px;
}

.footer-title {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: rgb(114, 87, 255);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 2rem;
  }
  
  .footer-section {
    width: 100%;
  }
}

/* Apply Satoshi to headings */
h1, h2 {
  font-family: 'Satoshi', sans-serif;
  font-weight: 700;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-social a {
  color: #fff;
  font-size: 1.5rem;
  transition: transform 0.2s ease;
}

.footer-social a:hover {
  transform: translateY(-2px);
}

.footer-social img {
  width: 24px;
  height: 24px;
  filter: invert(1);
}

.footer-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 1rem;
  padding-top: 1rem;
}

.footer-logos img {
  height: 40px;
  width: auto;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .footer-logos {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .footer-logos img {
    height: 30px;
  }
}

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.language-switcher button {
    background: none;
    border: none;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    transition: color 0.3s ease;
}

.language-switcher button:hover {
    color: #000;
}

.language-switcher button.active {
    color: #7C5CFF;
    font-weight: 600;
}

/* --- Styles pour la Popup (Modal) --- */
.modal-overlay {
  display: none; /* Caché par défaut */
  position: fixed;
  inset: 0; /* Raccourci pour top/left/right/bottom: 0 */
  background-color: rgba(0, 0, 0, 0.6); 
  z-index: 1000; 
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.modal {
  display: none; /* Caché par défaut */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95); /* État initial pour animation */
  background-color: #fff;
  padding: 30px 40px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 1001; /* Au-dessus de l'overlay */
  min-width: 300px;
  max-width: 500px;
  width: 90%;
  opacity: 0;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* États actifs pour afficher la modal */
.modal-overlay.active,
.modal.active {
  display: block;
  opacity: 1;
}
.modal.active {
    transform: translate(-50%, -50%) scale(1); /* État final pour animation */
}

/* Bouton Fermer */
.modal-close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #aaa;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
.modal-close-btn:hover {
    color: #333;
}

/* Titre de la modal */
.modal h2 {
  margin-top: 0;
  margin-bottom: 25px;
  text-align: center;
  color: #333;
  font-weight: 600;
}

/* Groupes de formulaire */
.modal .form-group {
  margin-bottom: 15px;
}

.modal label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #555;
  font-size: 0.9rem;
}

.modal input[type="email"],
.modal input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box; 
  font-size: 1rem;
}
.modal input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,123,255,.25);
}


/* Bouton de soumission */
.modal button#signup-submit-btn { /* ID plus spécifique */
  display: block;
  width: 100%;
  padding: 12px;
  background-color: #7C5CFF; /* Couleur violette Vestr */
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-top: 20px;
}

.modal button#signup-submit-btn:hover {
  background-color: #6a4bdb; /* Violet plus foncé */
}

.modal button#signup-submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}


/* Messages (Succès/Erreur) */
.form-message {
    margin-top: 15px;
    padding: 10px 15px;
    border-radius: 4px;
    text-align: center;
    font-size: 0.9rem;
    display: none; /* Caché par défaut */
}

.form-message.success {
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
    display: block;
}

/* Styles spécifiques pour le design "Waitlist" */
.modal.waitlist-style {
    background-color: #fff;
    padding: 40px 50px; /* Plus de padding */
    border-radius: 20px; /* Plus arrondi */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); /* Ombre plus douce */
    text-align: center; /* Centre le contenu par défaut */
}

.modal.waitlist-style h2 {
    font-family: 'Satoshi', sans-serif; /* Utilise la police des titres */
    font-weight: 700;
    font-size: 2.5rem; /* Taille de l'image */
    color: #000; /* Noir */
    margin-bottom: 0.5rem; /* Espace réduit sous le titre */
}

.modal.waitlist-style .modal-subtitle {
    font-size: 1rem; /* Taille de l'image */
    color: #666; /* Gris */
    margin-bottom: 3rem; /* Espace avant le formulaire */
    font-weight: 500;
}

.modal.waitlist-style #signup-form {
    text-align: left; /* Aligne le formulaire à gauche */
    max-width: 350px; /* Limite la largeur du formulaire */
    margin: 0 auto; /* Centre le formulaire dans la modal */
}

.modal.waitlist-style .form-group-inline {
    display: flex;
    justify-content: space-between; /* Pousse label et input aux extrémités */
    align-items: baseline; /* Aligne sur la ligne de base du texte */
    margin-bottom: 1.5rem; /* Espace entre les lignes */
    border-bottom: 1px dashed #ccc; /* Ligne pointillée simulée */
    padding-bottom: 0.5rem;
}

.modal.waitlist-style label {
    font-size: 1rem; /* Taille de l'image */
    color: #333; /* Noir plus doux */
    font-weight: 500;
    margin-bottom: 0; /* Pas de marge sous le label */
    flex-shrink: 0; /* Empêche le label de rétrécir */
    margin-right: 1rem;
}

.modal.waitlist-style input[type="email"],
.modal.waitlist-style input[type="text"] {
    border: none; /* Retire la bordure */
    background: none; /* Retire le fond */
    padding: 0; /* Retire le padding */
    text-align: right; /* Aligne le placeholder à droite */
    font-size: 1rem; /* Taille du texte/placeholder */
    color: #333;
    flex-grow: 1; /* Permet à l'input de prendre l'espace restant */
    min-width: 150px; /* Largeur minimale */
}

.modal.waitlist-style input::placeholder {
    color: #aaa; /* Couleur des points */
    font-weight: bold; /* Rend les points plus visibles */
    letter-spacing: 2px; /* Espace les points */
}

.modal.waitlist-style input:focus {
    outline: none; /* Retire l'outline au focus */
    box-shadow: none; /* Retire le box-shadow au focus */
}

/* Le bouton doit prendre toute la largeur */
.modal.waitlist-style button#signup-submit-btn {
    width: 100%;
    background-color: #000; /* Bouton noir */
    font-weight: 700; /* Plus gras */
    margin-top: 2.5rem; /* Espace avant le bouton */
}
.modal.waitlist-style button#signup-submit-btn:hover {
    background-color: #333;
}

/* Correction pour les ancres - ajoute un décalage pour éviter que le contenu ne soit caché par le header fixe */
[id] {
  scroll-margin-top: 500px;
}
