/* ==================================================
   RESET
================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ==================================================
   BODY
================================================== */

body {
  font-family:
    Inter,
    system-ui,
    -apple-system,
    sans-serif;

  color: #15213b;

  background: linear-gradient(145deg, #f8fbff 0%, #eef5ff 55%, #ffffff 100%);

  min-height: 100vh;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  padding: 40px 20px;

  /* Safe Area iPhone */
  padding-bottom: calc(80px + env(safe-area-inset-bottom));

  position: relative;

  overflow-x: hidden;
}

/* ==================================================
   FUNDO DECORATIVO
================================================== */

body::before {
  content: '';

  position: absolute;

  top: -100px;
  right: -100px;

  width: 350px;
  height: 350px;

  border-radius: 50%;

  background: rgba(13, 110, 253, 0.08);

  pointer-events: none;
}

/* ==================================================
   HERO
================================================== */

.hero-header {
  max-width: 700px;

  text-align: center;

  margin-bottom: 40px;

  z-index: 1;
}

.logo-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  font-size: 1.8rem;
  font-weight: 800;

  color: #0d6efd;

  margin-bottom: 24px;
}

.logo-brand svg {
  width: 28px;
  height: 28px;
  fill: #0d6efd;
}

.badge-preparing {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 6px 16px;

  border-radius: 20px;

  background: rgba(13, 110, 253, 0.06);

  border: 1px solid rgba(13, 110, 253, 0.15);

  color: #0d6efd;

  font-size: 0.85rem;
  font-weight: 600;

  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;

  border-radius: 50%;

  background: #0d6efd;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);

  line-height: 1.15;

  font-weight: 900;

  letter-spacing: -0.03em;

  color: #0b132a;

  margin-bottom: 20px;
}

.hero-title span {
  color: #0d6efd;
}

.hero-subtitle {
  max-width: 600px;

  margin: 0 auto;

  color: #5c6a85;

  line-height: 1.6;

  font-size: clamp(0.95rem, 2vw, 1.1rem);
}

/* ==================================================
   CARD
================================================== */

.launch-card {
  width: 100%;
  max-width: 520px;

  padding: clamp(30px, 5vw, 45px);

  border-radius: 28px;

  background: #ffffff;

  border: 1px solid rgba(13, 110, 253, 0.08);

  box-shadow: 0 20px 50px rgba(13, 110, 253, 0.08);

  text-align: center;

  z-index: 1;
}

.launch-card h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);

  font-weight: 800;

  letter-spacing: -0.03em;

  color: #15213b;

  margin-bottom: 12px;
}

.launch-card p {
  color: #5c6a85;

  line-height: 1.6;

  margin-bottom: 30px;
}

/* ==================================================
   FORMULÁRIO
================================================== */

.join-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-input,
.form-textarea {
  width: 100%;

  padding: 14px 18px;

  border-radius: 12px;

  border: 1px solid #dce4ef;

  background: #fbfdff;

  color: #15213b;

  font-family: inherit;
  font-size: 16px;

  transition: all 0.25s ease;

  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #8895ab;
}

.form-input:focus,
.form-textarea:focus {
  border-color: #0d6efd;

  background: #ffffff;

  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.12);
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
}

/* ==================================================
   BOTÃO
================================================== */

.submit-button {
  width: 100%;

  padding: 15px;

  border: none;

  border-radius: 12px;

  background: #0d6efd;

  color: white;

  font-size: 1rem;
  font-weight: 700;

  cursor: pointer;

  margin-top: 6px;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;

  box-shadow: 0 8px 20px rgba(13, 110, 253, 0.25);
}

.submit-button:hover:not(:disabled) {
  background: #0b5ed7;

  transform: translateY(-2px);

  box-shadow: 0 10px 24px rgba(13, 110, 253, 0.35);
}

.submit-button:active {
  transform: translateY(1px);
}

.submit-button:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

/* ==================================================
   MENSAGENS
================================================== */

.success-message,
.error-message {
  display: none;

  margin-top: 15px;

  padding: 14px 18px;

  border-radius: 12px;

  font-size: 0.95rem;
  font-weight: 600;

  animation: fadeIn 0.3s ease;
}

.success-message.show {
  display: block;

  color: #198754;

  background: rgba(25, 135, 84, 0.08);

  border: 1px solid rgba(25, 135, 84, 0.25);
}

.error-message.show {
  display: block;

  color: #dc3545;

  background: rgba(220, 53, 69, 0.08);

  border: 1px solid rgba(220, 53, 69, 0.25);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================================================
   FOOTER
================================================== */

footer {
  margin-top: 40px;

  text-align: center;

  color: #8895ab;

  font-size: 0.85rem;

  z-index: 1;
}

footer strong {
  color: #5c6a85;
}

/* ==================================================
   MOBILE
================================================== */

@media (max-width: 600px) {
  body {
    padding: 28px 18px;

    padding-bottom: calc(100px + env(safe-area-inset-bottom));
  }

  .hero-header {
    margin-bottom: 24px;
  }

  .logo-brand {
    font-size: 1.6rem;
    margin-bottom: 14px;
  }

  .badge-preparing {
    font-size: 0.8rem;
    padding: 5px 14px;
    margin-bottom: 14px;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 12px;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .launch-card {
    padding: 24px 18px;
    border-radius: 22px;
    margin-bottom: 20px;
  }

  .launch-card h2 {
    font-size: 1.45rem;
  }

  .launch-card p {
    font-size: 0.9rem;
    line-height: 1.45;
    margin-bottom: 20px;
  }

  .join-form {
    gap: 12px;
  }

  .form-input,
  .form-textarea {
    font-size: 16px; /* evita zoom do Safari */
  }

  .form-textarea {
    min-height: 90px;
  }

  .submit-button {
    padding: 14px;
  }

  footer {
    margin-top: 24px;
  }
}

/* ==================================================
   SMALL DEVICES
================================================== */

@media (max-width: 360px) {
  body {
    padding: 16px 12px;
  }

  .hero-header {
    margin-bottom: 10px;
  }

  .logo-brand {
    font-size: 1.4rem;
    margin-bottom: 10px;
  }

  .badge-preparing {
    margin-bottom: 10px;
  }

  .hero-title {
    font-size: 1.55rem;
    line-height: 1.15;
    margin-bottom: 10px;
  }

  .hero-subtitle {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .launch-card {
    padding: 18px 14px;
    border-radius: 18px;
  }

  .launch-card h2 {
    font-size: 1.35rem;
    margin-bottom: 6px;
  }

  .launch-card p {
    margin-bottom: 16px;
  }

  .form-input,
  .form-textarea {
    padding: 10px 12px;
  }

  footer {
    margin-top: 16px;
  }
}

/* ==================================================
   MOBILE LANDSCAPE
================================================== */

@media (max-height: 700px) and (orientation: landscape) {
  body {
    justify-content: flex-start;
    padding-top: 32px;
  }

  .hero-header {
    margin-bottom: 20px;
  }
}

/* ==================================================
   TABLETS
================================================== */

@media (min-width: 768px) {
  .launch-card {
    max-width: 560px;
  }
}

/* ==================================================
   DESKTOPS GRANDES
================================================== */

@media (min-width: 1400px) {
  body::before {
    width: 550px;
    height: 550px;

    top: -150px;
    right: -150px;
  }

  .hero-header {
    max-width: 780px;
  }

  .launch-card {
    max-width: 560px;
  }
}

/* ==================================================
   ULTRAWIDE / 4K
================================================== */

@media (min-width: 2000px) {
  body::before {
    width: 700px;
    height: 700px;
  }

  .hero-header {
    max-width: 900px;
  }
}
