:root { color-scheme: dark; --navy: #0b0b38; --blue: #119af4; --white: #f4f5fb; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--navy); color: var(--white); font-family: Arial, Helvetica, sans-serif; }
.landing { position: relative; isolation: isolate; min-height: 100svh; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px 22px 30px; background: var(--navy); }
.content { position: relative; z-index: 2; width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; margin: auto 0; }
.brand { display: block; width: min(780px, 85vw); height: auto; margin: -120px 0 -115px; object-fit: contain; }
.light-bar { width: 260px; height: 3px; margin: 0 0 20px; background: linear-gradient(90deg, transparent, #00aaff 35%, #8ce5ff 50%, #00aaff 65%, transparent); box-shadow: 0 0 13px 3px rgba(0, 170, 255, .55); }
.headline-row { display: flex; align-items: center; justify-content: center; gap: 27px; width: 100%; }
h1 { margin: 0; font-size: clamp(26px, 4.25vw, 65px); font-weight: 900; letter-spacing: -.035em; line-height: 1.16; white-space: nowrap; color: #f4f4fa; text-shadow: 0 2px 1px #9295a7; }
.slashes { display: flex; gap: 5px; transform: skewX(-39deg); flex-shrink: 0; }
.slashes i { width: clamp(6px, 1.1vw, 14px); height: clamp(13px, 2vw, 27px); background: linear-gradient(#0094ef, #0762c2); }
.message { margin: 20px 0 0; font-size: clamp(17px, 2.2vw, 33px); line-height: 1.33; font-weight: 300; }
.progress { width: min(465px, 66vw); height: 44px; margin-top: 38px; padding: 7px; border: 2px solid #0875d4; border-radius: 24px; }
.progress-fill { width: 82%; height: 100%; border-radius: 14px; background: repeating-linear-gradient(130deg, #0987e6 0 17px, #0b0b38 17px 24px); }
.waves { pointer-events: none; position: absolute; z-index: 1; bottom: 108px; left: 0; right: 0; height: 105px; }
.waves svg { display: block; width: 100%; height: 100%; overflow: visible; }
.waves path { fill: none; stroke: #078ce4; stroke-width: 2; opacity: .75; }
.waves path:not(:first-child) { stroke-width: 1; opacity: .25; }
footer { position: relative; z-index: 3; flex-shrink: 0; margin-top: auto; padding: 22px 12px 0; text-align: center; font-size: clamp(11px, 1.45vw, 20px); line-height: 1.4; }
@media (max-width: 700px) {
 .landing { padding: 20px 15px 24px; }
 .brand { width: min(600px, 112vw); max-width: none; margin: -70px 0 -65px; }
 .light-bar { width: 130px; margin-bottom: 18px; }
 .headline-row { gap: 10px; }
 h1 { white-space: normal; font-size: clamp(24px, 6vw, 38px); }
 .slashes { gap: 3px; }
 .slashes i { width: 5px; height: 15px; }
 .message { margin-top: 20px; font-size: clamp(16px, 4vw, 21px); }
 .progress { height: 31px; margin-top: 32px; padding: 5px; width: min(300px, 76vw); }
 .waves { bottom: 105px; height: 70px; }
 footer { max-width: 340px; font-size: 11px; padding-top: 24px; }
}
@media (max-height: 730px) and (min-width: 701px) { .brand { width: min(620px, 65vw); margin: -95px 0 -90px; } .progress { margin-top: 22px; } .message { margin-top: 12px; } .waves { bottom: 95px; height: 65px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; } }

/* Faixa inferior reservada ao rodapé: impede sobreposição com as ondas. */
.landing { padding-bottom: 28px; }
.content { padding-bottom: 100px; }
footer { background: var(--navy); width: 100%; }
@media (max-width: 700px) { .content { padding-bottom: 90px; } .landing { padding-bottom: 25px; } }



/* Progresso avança UMA vez, até 90%; as nadadeiras continuam animadas no GIF. */
.loading-track { position: relative; overflow: visible; padding: 6px; background: var(--navy); }
.loading-track .progress-fill {
  width: 0; height: 100%; border-radius: 15px;
  background: repeating-linear-gradient(130deg, #0987e6 0 17px, #0b0b38 17px 24px);
  animation: progress-to-90 9s ease-out forwards;
}
.swimmer-original {
  position: absolute; z-index: 5; width: 90px; height: auto;
  top: 50%; left: 7%; transform: translate(-35%, -50%);
  filter: drop-shadow(0 0 2px #0b0b38) drop-shadow(0 0 2px #0b0b38);
  animation: swimmer-to-90 9s ease-out forwards;
  pointer-events: none;
}
@keyframes progress-to-90 { from { width: 0%; } to { width: 90%; } }
@keyframes swimmer-to-90 { from { left: 7%; } to { left: 90%; } }
@media (max-width: 700px) { .swimmer-original { width: 65px; } }
@media (prefers-reduced-motion: reduce) {
  .loading-track .progress-fill { animation: none; width: 90%; }
  .swimmer-original { animation: none; left: 90%; }
}

/* Correção mobile: elimina margens negativas que aproximavam a faixa luminosa da logo. */
@media (max-width: 700px) {
  .brand { width: min(390px, 88vw); max-width: 100%; margin: 0 0 14px; flex-shrink: 0; }
  .light-bar { flex-shrink: 0; margin: 0 0 22px; }
  .content { padding-bottom: 72px; }
  .landing { min-height: 100svh; height: auto; overflow: hidden; }
}
@media (max-width: 700px) and (max-height: 740px) {
  .landing { justify-content: flex-start; }
  .content { margin: 0; padding-bottom: 85px; }
  .brand { width: min(300px, 75vw); margin-bottom: 10px; }
  .light-bar { margin-bottom: 14px; }
  .message { margin-top: 12px; }
  .progress { margin-top: 22px; }
  footer { margin-top: auto; }
}

/* Ajuste solicitado: sem faixa luminosa e logomarca grande novamente no celular. */
.light-bar { display: none !important; }
@media (max-width: 700px) {
  .brand { width: min(600px, 112vw); max-width: none; margin: -70px 0 -65px; flex-shrink: 0; }
}
@media (max-width: 700px) and (max-height: 740px) {
  .brand { width: min(600px, 112vw); max-width: none; margin: -70px 0 -65px; }
}

/* Mais espaço entre a logomarca e o título somente no mobile. */
@media (max-width: 700px) {
  .brand { margin-bottom: -20px; }
}
