/* ===================== RESET ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
 font-family: system-ui, -apple-system, Helvetica, Arial, sans-serif;
  color: #111;
  background-color: #fff;
}

.logoo {
  display: block;
  margin: 40px auto;
  width: 90px;
  margin-top: -30px;
}

/* ===================== HEADER ===================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #23232e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  z-index: 1000;
}

.logo {
  font-size: 22px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.auth a {
  color: #fff;
  text-decoration: none;
  margin-left: 20px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.auth .register {
  background: #2563eb;
  padding: 8px 14px;
  border-radius: 6px;
}
.auth .register:hover {
  color: #2563eb;
  background: #DBE4C9;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: bold;
}
.auth a:hover {
  color: #4f46e5;
}

/* ===================== HAMBURGUER ===================== */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Hamburger ativo -> X */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ===================== HERO ===================== */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 60px;
  gap: 40px;
}

.hero-text {
  max-width: 520px;
}

.hero-text h1 {
  font-size: 52px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero-text p {
  font-size: 18px;
  color: #444;
  margin-bottom: 30px;
}

.hero-text button {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #fff;
  border: none;
  padding: 16px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
}

.hero-image {
  flex: 1;
  display: flex;
  margin-left: 40%;
}

.phone {
  width: 300px;
  height: 560px;
  border-radius: 36px;
  border: 12px solid #111;
  position: relative;
  background: #f9fafb;
}

.phone::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 18px;
  background: #111;
  border-radius: 0 0 12px 12px;
}

.chat {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bubble {
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  max-width: 80%;
}

.bubble.blue {
  background: #2563eb;
  color: #fff;
  align-self: flex-end;
}

.bubble.gray {
  background: #e5e7eb;
  color: #111;
  align-self: flex-start;
}

/* ===================== FEATURES ===================== */
.features {
  padding: 80px 60px;
  text-align: center;
}

.features h2 {
  font-size: 36px;
  margin-bottom: 50px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

/* FEATURES */
.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 22px;
  border-radius: 18px;
  border: 1px solid #e5e7eb; /* contorno */
  background: #fff;
  cursor: pointer;
  transition: all 0.25s ease;
}

/* Hover */
.feature:hover {
  transform: translateY(-6px);
  border-color: #2563eb;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.18);
  border-width: 3px;
}

/* Ícone */
.feature span {
  font-size: 38px;
}

/* Texto */
.feature p {
  font-size: 15px;
  color: #444;
  text-align: center;
  max-width: 220px;
}
/* ===================== FOOTER ===================== */
footer {
  background: #23232e;
  color: #aaa;
  text-align: center;
  padding: 24px 16px;
  font-size: 14px;
}

footer a {
  color: #4f46e5;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ===================== MODAL BASE ===================== */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  z-index: 9999;
}

.modal-content {
  position: relative;
  background: #fff;
  border-radius: 18px;
  max-width: 420px;
  width: 90%;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  animation: modalIn 0.35s ease;
}

/* ===================== MODAL HEADER ===================== */
.modal-content::before {
  content: '';
  display: block;
  height: 6px;
  background: var(--accent-color, #2563eb);
}

/* ===================== MODAL BODY ===================== */
.modal-content h2 {
  margin: 24px 24px 12px;
  font-size: 22px;
  font-weight: 700;
}

.modal-content p {
  margin: 0 24px 28px;
  font-size: 15px;
  line-height: 1.6;
  color: #444;
}

/* ===================== CLOSE BUTTON ===================== */
.close {
  position: absolute;
  top: 14px;
  right: 10px;
  width: 15px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 25px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.close:hover {
  background: #fff;
  transform: rotate(90deg);
}

/* ===================== ANIMATION ===================== */
@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


/* Modal Colors */
#modal1 .modal-content { border-top: 6px solid #2563eb; }
#modal1 h2 { color: #2563eb; }

#modal2 .modal-content { border-top: 6px solid #2563eb; }
#modal2 h2 { color: #2563eb; }

#modal3 .modal-content { border-top: 6px solid #2563eb;; }
#modal3 h2 { color: #2563eb; }

#modal4 .modal-content { border-top: 6px solid #2563eb; }
#modal4 h2 { color: #2563eb; }

/* ===================== ANIMACIONS ===================== */
@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ===================== RESPONSIVITY ===================== */
@media (max-width: 768px) {
  /* HEADER */
  header { padding: 16px 20px; flex-wrap: wrap; gap: 12px; }

  .auth {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: rgba(31,31,31,0.95);
    backdrop-filter: blur(6px);
    flex-direction: column;
    gap: 40px;
    padding: 80px 30px;
    transition: right 0.4s ease;
    z-index: 1000;
    display: flex;
  }

  .auth a {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    padding: 12px 0;
    transition: color 0.2s;
  }

  .auth a:hover { color: #2563eb; }

  .auth .register { border-radius: 8px; }

  .auth.active { right: 0; }

  .hero { flex-direction: column; text-align: center; padding: 50px 20px; gap: 30px; }
  .hero-text h1 { font-size: 36px; line-height: 1.2; }
  .hero-text p { font-size: 16px; }
  .hero-text button { width: 100%; padding: 14px; }
  .hero-image { margin-left: 0; justify-content: center; }
  .phone { width: 240px; height: 460px; }

  .features { padding: 60px 20px; }
  .features h2 { font-size: 28px; margin-bottom: 30px; }
  .features-grid { gap: 24px; }
  .feature { padding: 16px; }
  .feature p { font-size: 14px; }

  footer { padding: 30px 20px; font-size: 13px; }

  /* HAMBURGUER */
  .menu-toggle { display: flex; }
}
