/* RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #02010a;
  color: #ffffff;
  -webkit-font-smoothing: antialiased;
}

/* TOKENS */
:root {
  --color-primary: #25C2F7;       /* azul da sua identidade */
  --color-primary-dark: #19A6D4;
  --color-bg: #02010a;
  --color-top-bar: #25C2F7;
  --color-text-muted: #cccccc;

  --radius-pill: 999px;
  --radius-card: 22px;
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.7);

  --container-max-width: 880px;
}

/* CONTAINER */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding-inline: 16px;
}

/* TOP BAR */
.top-bar {
  width: 100%;
  background-color: var(--color-top-bar);
  text-align: center;
  padding: 10px 10px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #000; /* texto preto */
}

/* MAIN / HERO */
.main {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-block: 40px 32px;
}

.main__content {
  text-align: center;
}

.hero__title {
  font-size: 1.8rem;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero__title span {
  color: var(--color-primary);
}

.hero__subtitle {
  font-size: 0.98rem;
  color: var(--color-text-muted);
  max-width: 620px;
  margin: 0 auto 20px;
}

.hero__arrow {
  font-size: 1.6rem;
  margin-bottom: 18px;
}

/* VÍDEO FAKE */
.hero__video-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.video-thumb {
  position: relative;
  width: 100%;
  max-width: 760px;
  border-radius: var(--radius-card);
  overflow: hidden;
  padding: 0;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #02101f, #02010a);
  box-shadow: var(--shadow-soft);
}

.video-thumb__image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* overlay escuro */
.video-thumb__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.55));
}

/* --- PLAY BUTTON TRANSPARENTE + ANIMAÇÃO --- */

.video-thumb__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* para manter clique no botão pai */
}

/* animação de glow respirando */
@keyframes glowBreath {
  0% {
    box-shadow: 0 0 10px rgba(37, 194, 247, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(37, 194, 247, 0.8);
  }
  100% {
    box-shadow: 0 0 10px rgba(37, 194, 247, 0.3);
  }
}

.video-thumb__play-circle {
  width: 95px;
  height: 95px;
  border-radius: 50%;
  border: 4px solid #25C2F7; /* azul da sua identidade */
  background: transparent;   /* totalmente transparente */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease-out;
  animation: glowBreath 2.2s ease-in-out infinite; /* animação aplicada aqui */
}

.video-thumb__play-circle:hover {
  transform: scale(1.06);
  box-shadow: 0 0 16px rgba(37, 194, 247, 0.65);
}

.video-thumb__play-icon {
  width: 0;
  height: 0;
  border-left: 26px solid #ffffff; /* triângulo branco */
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  margin-left: 6px;
}

/* BOTÕES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  font-weight: 700;
  padding: 16px 32px;
  font-size: 1rem;
  transition: all 0.18s ease-out;
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--color-primary);
  color: #000;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.65);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--full {
  width: 100%;
}

.hero__cta {
  margin-top: 10px;
}

/* MODAL */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-out;
}

.modal--visible {
  opacity: 1;
  pointer-events: auto;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

/* caixa do formulário */
.modal__content {
  position: relative;
  z-index: 50;
  width: 100%;
  max-width: 460px;
  margin-inline: 16px;
  padding: 24px 22px 20px;
  border-radius: 22px;
  background: radial-gradient(circle at top, rgba(37, 194, 247, 0.18), transparent 60%), #020617;
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
  color: #ffffff;
}

.modal__close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.4rem;
  cursor: pointer;
}

.modal__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 6px;
  margin-right: 32px;
}

.modal__subtitle {
  font-size: 0.9rem;
  color: #cbd5f5;
  margin-bottom: 18px;
}

/* FORM NO MODAL */
.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form__label {
  font-size: 0.85rem;
  color: #94a3b8;
}

.form__input {
  background: #020617;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 10px 14px;
  font-size: 0.95rem;
  color: #e5e7eb;
  outline: none;
  transition: border-color 0.18s ease-out, box-shadow 0.18s ease-out, background 0.18s ease-out;
}

.form__input::placeholder {
  color: #6b7280;
}

.form__input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(37, 194, 247, 0.7);
  background: #020617;
}

/* Estilos de erro do script da Cademi */
#FormCadastro input._error {
  border-color: #f97373;
}

#FormCadastro div._error {
  text-align: right;
  font-size: 0.7rem;
  text-transform: uppercase;
  margin-bottom: 5px;
  color: #f97373;
}

.form__privacy {
  margin-top: 6px;
  font-size: 0.75rem;
  color: #64748b;
}

.modal__submit {
  margin-top: 6px;
}

/* FOOTER */
.footer {
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  padding-block: 12px;
  font-size: 0.78rem;
}

.footer__content {
  text-align: center;
  color: var(--color-text-muted);
}

/* RESPONSIVO */
@media (min-width: 768px) {
  .hero__title {
    font-size: 2.4rem;
  }

  .main {
    padding-block: 56px 40px;
  }
}
