:root {
  --ink: #06080c;
  --blue-bar: #00afef;
  --white: #ffffff;
  --font-sans: "Montserrat", system-ui, sans-serif;
  --footer-lockup: 96px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--ink);
  color: var(--white);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

/* ——— Hero (layout do banner) ——— */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("assets/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 90% 70% at 50% 45%, transparent 30%, rgba(0, 0, 0, 0.35) 100%),
    linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, transparent 35%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding: clamp(2rem, 5.5vw, 3.75rem) clamp(1rem, 3vw, 2.5rem) clamp(0.75rem, 2vw, 1.25rem);
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.led-logo-img {
  display: block;
  width: clamp(112px, 22.5vw, 260px);
  height: auto;
  max-width: min(100%, 36vw);
}

.hero-dorms {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  flex: 0 1 auto;
  min-width: 0;
}

.dorms-graphic {
  display: block;
  width: clamp(144px, 28vw, 330px);
  height: auto;
  max-width: min(100%, 38vw);
}

.hero-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: left;
  gap: clamp(1.25rem, 4vw, 2.5rem);
  padding: clamp(1rem, 4vw, 3rem) clamp(0.5rem, 2vw, 1rem);
  width: 100%;
}

.ficha-cadastro {
  width: 100%;
  max-width: min(96vw, 920px);
  margin: 0 auto;
  padding: clamp(0.85rem, 2.5vw, 1.15rem) clamp(1rem, 3vw, 1.35rem);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.045) 0%,
    rgba(255, 255, 255, 0.018) 50%,
    rgba(0, 175, 239, 0.035) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ficha-heading {
  margin: 0;
  font-size: clamp(0.8rem, 1.8vw, 0.95rem);
  font-weight: 700;
  color: var(--white);
  text-align: center;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.95;
}

.ficha-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-end;
  justify-content: center;
  gap: 0.65rem;
  overflow-x: auto;
  overflow-y: visible;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.ficha-field {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  flex: 0 1 200px;
  min-width: min(200px, 42vw);
}

.ficha-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ficha-field input {
  width: 100%;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--white);
  background: rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  padding: 0.5rem 0.6rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.ficha-field input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.ficha-field input:focus {
  background: rgba(0, 0, 0, 0.22);
  border-color: rgba(0, 175, 239, 0.55);
  box-shadow: 0 0 0 1px rgba(0, 175, 239, 0.18);
}

.ficha-submit {
  flex: 0 0 auto;
  margin: 0;
  align-self: flex-end;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(0, 175, 239, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0.5rem 1.1rem;
  cursor: pointer;
  white-space: nowrap;
  transition: filter 0.15s ease, transform 0.1s ease, background 0.15s ease;
}

.ficha-submit:hover {
  filter: brightness(1.1);
  background: var(--blue-bar);
}

.ficha-submit:active {
  transform: scale(0.98);
}

.hero-headline-img {
  display: block;
  width: min(92vw, 920px);
  height: auto;
  max-width: 100%;
  flex-shrink: 0;
}

.hero-footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  margin-top: auto;
  width: 100%;
}

.footer-logos-wrap {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.footer-logos {
  display: flex;
  align-items: flex-end;
  gap: 0.65rem;
}

.mcmv-row {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  text-align: right;
}

.mcmv-ico {
  display: block;
  width: var(--footer-lockup);
  height: var(--footer-lockup);
  max-width: none;
  object-fit: contain;
  flex-shrink: 0;
}

.zimba-logo {
  display: block;
  height: var(--footer-lockup);
  width: auto;
  max-width: min(200px, 48vw);
  object-fit: contain;
  flex-shrink: 0;
}

.legal-tiny {
  margin: 0;
  font-size: clamp(0.5rem, 1.15vw, 0.65rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.58);
  text-align: right;
  max-width: 100%;
}

@media (max-width: 720px) {
  :root {
    --footer-lockup: 68px;
  }

  .hero-inner {
    padding-top: clamp(1rem, 3.5vw, 2rem);
    padding-left: max(0.5rem, env(safe-area-inset-left));
    padding-right: max(0.5rem, env(safe-area-inset-right));
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
  }

  .hero-top {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .hero-brand {
    align-items: center;
    align-self: center;
  }

  .led-logo-img {
    max-width: min(100%, 72vw);
    width: clamp(108px, 42vw, 200px);
  }

  .hero-dorms {
    align-self: flex-end;
    width: 100%;
    justify-content: flex-end;
  }

  .dorms-graphic {
    max-width: min(100%, 72vw);
    width: clamp(124px, 44vw, 248px);
  }

  .hero-center {
    gap: clamp(0.55rem, 2.5vw, 1rem);
    padding: clamp(0.35rem, 1.5vw, 0.85rem) max(0.3rem, env(safe-area-inset-left)) clamp(0.35rem, 1.5vw, 0.85rem)
      max(0.3rem, env(safe-area-inset-right));
    min-height: 0;
  }

  .ficha-cadastro {
    max-width: 100%;
    padding: 0.55rem 0.45rem;
    gap: 0.45rem;
  }

  .ficha-heading {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
  }

  .ficha-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 0.45rem;
    align-items: end;
    overflow-x: visible;
    padding-bottom: 0;
  }

  .ficha-field {
    min-width: 0;
    width: 100%;
  }

  .ficha-submit {
    width: 100%;
    justify-self: stretch;
    align-self: end;
    padding: 0.52rem 0.6rem;
    font-size: 0.76rem;
  }

  .ficha-field input {
    font-size: 16px;
    padding: 0.5rem 0.45rem;
  }

  .ficha-label {
    font-size: 0.6rem;
  }

  .hero-headline-img {
    width: 100%;
    max-width: min(100%, 100vw - 1rem);
  }

  .zimba-logo {
    max-width: min(148px, 38vw);
  }

  .hero-footer {
    gap: 0.5rem;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .footer-logos-wrap {
    justify-content: space-between;
  }

  .footer-logos {
    width: 100%;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0.55rem;
  }

  .mcmv-row {
    align-items: flex-start;
    text-align: left;
  }

  .legal-tiny {
    text-align: left;
    font-size: clamp(0.52rem, 2.85vw, 0.66rem);
    line-height: 1.48;
    padding: 0 0.05rem;
    color: rgba(255, 255, 255, 0.62);
  }
}
