/* =============================================
   FEMDURANCE – styles.css
   ============================================= */

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: #efede9;
  color: #5e4d4a;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* =============================================
   NAVIGATION
   ============================================= */

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 2rem;
  position: relative;
}

.lang-toggle {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid rgba(94,77,74,0.3);
  color: #5e4d4a;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.lang-toggle:hover {
  border-color: #6d123f;
  background: rgba(109,18,63,0.05);
}

.nav-logo {
  width: 240px;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.nav-logo-wrapper {
  position: relative;
  display: inline-block;
}

.hero-logo-glow {
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109,18,63,0.18) 0%, transparent 65%);
  animation: glow-pulse 4.5s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.12); }
}

/* =============================================
   HERO
   ============================================= */

.hero {
  padding: 5rem 1.5rem 6rem;
}

.hero-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

h1 {
  font-weight: 700;
  font-size: clamp(3.168rem, 7.92vw, 5.016rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #050a30;
  margin-bottom: 1.75rem;
  text-transform: uppercase;
}

.highlight-plum {
  color: #6d123f;
}

.hero-sub {
  font-size: 1.125rem;
  line-height: 1.75;
  color: #5e4d4a;
  max-width: 520px;
  margin: 0 auto 3rem;
  opacity: 0.9;
}

/* Brevo embedded form */
.brevo-form-wrapper {
  width: 100%;
  max-width: 480px;
  margin: 2rem auto 0;
}

.brevo-form-wrapper .input {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #5e4d4a;
  background: #efede9;
  border: 1px solid rgba(94,77,74,0.3);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.brevo-form-wrapper .input:focus {
  border-color: #6d123f;
}

.waitlist-label {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6d123f;
  text-align: center;
  margin-bottom: 1rem;
}

.brevo-form-wrapper .sib-form-block__button:hover {
  background-color: #5a0f34 !important;
}

/* =============================================
   FEATURES
   ============================================= */

.features {
  padding: 6rem 1.5rem 7rem;
  border-top: 1px solid rgba(94, 77, 74, 0.12);
}

.features-inner {
  max-width: 1080px;
  margin: 0 auto;
}

h2 {
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: #050a30;
  margin-bottom: 3.5rem;
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(94, 77, 74, 0.12);
}

.features-hd {
  max-width: 1080px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #6d123f;
  border: 1px solid rgba(109, 18, 63, 0.3);
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}

.features h2 em {
  font-style: italic;
  color: #6d123f;
}

.feat {
  background: #e8e4de;
  padding: 2.25rem 2rem;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}
.feat:hover { background: #dedad3; }

.feat-num {
  position: absolute;
  top: 1rem; right: 1.5rem;
  font-weight: 800;
  font-size: 4rem;
  line-height: 1;
  color: rgba(109,18,63,0.07);
  user-select: none;
  transition: color 0.3s;
}
.feat:hover .feat-num { color: rgba(109,18,63,0.12); }

.feat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(94,77,74,0.3);
  margin-bottom: 1.25rem;
  color: #6d123f;
  transition: border-color 0.3s, background 0.3s;
}
.feat:hover .feat-icon {
  border-color: rgba(109,18,63,0.4);
  background: rgba(109,18,63,0.06);
}

.feat h3 {
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6d123f;
  margin-bottom: 0.75rem;
}

.feat p {
  font-size: 0.875rem;
  color: #5e4d4a;
  line-height: 1.72;
}

.feat::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2px;
  height: 100%;
  background: #6d123f;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.35s ease;
}
.feat:hover::before { transform: scaleY(1); }

/* =============================================
   FOOTER
   ============================================= */

.footer {
  background-color: rgba(94, 77, 74, 0.05);
  border-top: 1px solid rgba(94, 77, 74, 0.12);
  padding: 5rem 1.5rem 3rem;
}

.footer-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

/* CTA Button */
.cta-button {
  display: inline-block;
  background-color: #6d123f;
  color: #efede9;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 0.875rem 2.25rem;
  border-radius: 50px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
  text-transform: uppercase;
}

.cta-button:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: #5e4d4a;
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.footer-links a:hover {
  opacity: 1;
}

.copyright {
  font-size: 0.85rem;
  color: #5e4d4a;
  opacity: 0.5;
}

/* =============================================
   MODALS
   ============================================= */

body.modal-open {
  overflow: hidden;
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 48, 0.4);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.is-open {
  display: flex;
}

.modal-box {
  background: #efede9;
  border-radius: 16px;
  padding: 3rem 2.5rem;
  max-width: 580px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 64px rgba(5, 10, 48, 0.18);
}

.modal-box h2 {
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: #050a30;
  margin-bottom: 1.5rem;
  text-align: left;
}

.modal-box h3 {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0;
  color: #050a30;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.modal-box p {
  font-size: 0.925rem;
  line-height: 1.72;
  color: #5e4d4a;
  margin-bottom: 0.75rem;
}

.modal-box a {
  color: #6d123f;
  text-decoration: underline;
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: #5e4d4a;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: opacity 0.2s ease;
}

.modal-close:hover {
  opacity: 0.6;
}

/* =============================================
   RESPONSIVE – 768px Breakpoint
   ============================================= */

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero {
    padding: 7rem 2rem 8rem;
  }

  .features {
    padding: 8rem 2rem 9rem;
  }
}
