:root {
  --black: #000000;
  --gold: #fcd12a;
  --white: #ffffff;
  --radius: 6px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Montserrat", system-ui, -apple-system, sans-serif;
  background: var(--black);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
}

.page__content {
  background: var(--black);
  padding-top: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: clamp(1.5rem, 4vw, 3rem);
  padding-right: clamp(1rem, 3vw, 2.75rem);
  padding-left: clamp(2.75rem, 8vw, 5.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.25rem, 3vw, 2rem);
  z-index: 1;
}

.brand {
  margin: 0;
}

.brand__title {
  margin: 0;
  line-height: 0.95;
}

.brand__ultra {
  font-size: clamp(1.85rem, 4.8vw, 3.35rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--white);
}

.brand__t {
  color: var(--gold);
}

.brand__subtitle {
  margin: 0.35rem 0 0;
  font-size: clamp(0.75rem, 1.5vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--white);
}

.copy {
  max-width: 38rem;
}

.copy__p {
  margin: 0 0 1rem;
  font-size: clamp(0.9rem, 1.35vw, 1.05rem);
  line-height: 1.55;
  font-weight: 400;
}

.copy__p:last-child {
  margin-bottom: 0;
}

.copy__gold {
  color: var(--gold);
  font-weight: 600;
}

.copy__strong {
  color: var(--white);
  font-weight: 700;
}

.lead-form {
  max-width: 26rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.lead-form__input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  color: #111;
  background: var(--white);
}

.lead-form__input::placeholder {
  color: #777;
}

.lead-form__input:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.lead-form__phone {
  display: flex;
  width: 100%;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 0 0 transparent;
}

.lead-form__prefix {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.65rem 0 0.75rem;
  background: var(--white);
  border-right: 1px solid #e0e0e0;
}

.lead-form__flag {
  font-size: 1.25rem;
  line-height: 1;
}

.lead-form__ddi {
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: #111;
  background: transparent;
  cursor: pointer;
  padding: 0.85rem 0.25rem 0.85rem 0;
  min-width: 3rem;
}

.lead-form__ddi:focus {
  outline: none;
}

.lead-form__input--tel {
  border-radius: 0;
  flex: 1;
}

.lead-form__phone:focus-within .lead-form__input--tel {
  outline: none;
}

.lead-form__phone:focus-within {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.lead-form__submit {
  margin-top: 0.35rem;
  width: 100%;
  padding: 1rem 1.25rem;
  border: none;
  border-radius: var(--radius);
  background: var(--gold);
  color: var(--black);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(252, 209, 42, 0.35),
    0 4px 24px rgba(252, 209, 42, 0.45),
    0 0 40px rgba(252, 209, 42, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.lead-form__submit:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(252, 209, 42, 0.5),
    0 6px 28px rgba(252, 209, 42, 0.55),
    0 0 48px rgba(252, 209, 42, 0.28);
}

.lead-form__submit:active {
  transform: translateY(0);
}

.lead-form__submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.lead-form--sending .lead-form__submit:hover {
  transform: none;
}

.lead-form__feedback {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  line-height: 1.4;
  min-height: 1.2em;
}

.lead-form__feedback--ok {
  color: #7bed9f;
}

.lead-form__feedback--err {
  color: #ff7675;
}

.page__visual {
  position: relative;
  min-height: 280px;
  background-color: var(--black);
  /* Degradê horizontal mais longo entre texto (esq.) e foto — evita corte seco */
  background-image:
    linear-gradient(
      to right,
      var(--black) 0%,
      rgba(0, 0, 0, 0.97) 8%,
      rgba(0, 0, 0, 0.88) 16%,
      rgba(0, 0, 0, 0.65) 28%,
      rgba(0, 0, 0, 0.38) 42%,
      rgba(0, 0, 0, 0.18) 55%,
      rgba(0, 0, 0, 0.06) 68%,
      transparent 82%
    ),
    url("gui.jpg");
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
}

@media (max-width: 900px) {
  .page {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
  }

  .page__visual {
    order: -1;
    width: 100%;
    max-width: 100%;
    margin: 0;
    align-self: stretch;
    /* Altura um pouco maior para o rosto não ficar espremido na borda */
    min-height: min(46vh, 440px);
    /*
      Degradê vertical longo: foto visível no topo, escurece aos poucos e funde com o preto do texto
      (evita linha seca entre banner e .page__content).
    */
    background-image:
      linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.02) 18%,
        rgba(0, 0, 0, 0.08) 32%,
        rgba(0, 0, 0, 0.22) 48%,
        rgba(0, 0, 0, 0.45) 62%,
        rgba(0, 0, 0, 0.68) 74%,
        rgba(0, 0, 0, 0.88) 86%,
        var(--black) 100%
      ),
      url("gui.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    /*
      Evite "center top": mostra só teto e corta o rosto. "center" enquadra o meio da foto.
      Se ainda precisar subir/descer o rosto, use ex.: 50% 38% ou 50% 52%.
    */
    background-position: center;
  }

  .page__content {
    position: relative;
    z-index: 1;
    margin-top: -120px; /* evita fio claro entre o banner e o bloco preto */
    padding-top: clamp(1.25rem, 4vw, 2rem);
    padding-bottom: 2.5rem;
    padding-left: clamp(1.35rem, 5vw, 2rem);
    padding-right: clamp(1.35rem, 5vw, 2rem);
    text-align: center;
    background: transparent;
  }

  .brand,
  .copy,
  .lead-form {
    margin-inline: auto;
    max-width: 26rem;
  }

  .copy {
    text-align: center;
  }
}
