@font-face {
  font-family: "Montserrat Local";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/montserrat-variable-latin.woff2") format("woff2");
}

:root {
  --page-bg: #05070a;
  --navy-950: #020713;
  --navy-900: #030c1d;
  --navy-800: #071c40;
  --blue-600: #0f5fe8;
  --blue-500: #1773ff;
  --blue-300: #6fbeff;
  --white: #f7faff;
  --white-soft: #dbe9ff;
  --page-gutter: clamp(20px, 4vw, 64px);
}

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

html {
  min-width: 320px;
  background: var(--page-bg);
}

html.is-logo-pending .construction-page {
  visibility: hidden;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--white);
  background: var(--page-bg);
  font-family: "Montserrat Local", Montserrat, Arial, sans-serif;
  font-weight: 300;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 20;
  padding: 11px 15px;
  color: var(--navy-950);
  background: var(--white);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-170%);
  transition: transform 180ms ease-out;
}

.skip-link:focus {
  transform: translateY(0);
}

.construction-page {
  isolation: isolate;
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(24px, 4vh, 48px) var(--page-gutter) clamp(18px, 3vh, 30px);
  overflow: hidden;
  background: var(--page-bg);
}

.ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 0.4;
  animation: ambient-breathe 8s ease-in-out infinite alternate;
  will-change: opacity;
}

.ambient::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      ellipse 45% 110% at 103% 67%,
      rgb(0 114 250 / 0.98) 0%,
      rgb(0 114 250 / 0.98) 28%,
      rgb(0 114 250 / 0.78) 46%,
      rgb(0 114 250 / 0.48) 62%,
      rgb(0 114 250 / 0.2) 78%,
      rgb(0 114 250 / 0.06) 91%,
      rgb(0 114 250 / 0) 100%
    ),
    radial-gradient(
      ellipse 34% 60% at 55% 32%,
      rgb(0 114 250 / 0.52) 0%,
      rgb(0 114 250 / 0.34) 28%,
      rgb(0 114 250 / 0.16) 50%,
      rgb(0 114 250 / 0.05) 70%,
      rgb(0 114 250 / 0) 88%
    ),
    radial-gradient(
      ellipse 35% 40% at 41% 108%,
      rgb(0 114 250 / 0.56) 0%,
      rgb(0 114 250 / 0.31) 36%,
      rgb(0 114 250 / 0.13) 60%,
      rgb(0 114 250 / 0.04) 78%,
      rgb(0 114 250 / 0) 92%
    ),
    radial-gradient(
      ellipse 48% 42% at -4% 76%,
      rgb(0 114 250 / 0.48) 0%,
      rgb(0 114 250 / 0.28) 34%,
      rgb(0 114 250 / 0.12) 58%,
      rgb(0 114 250 / 0.03) 76%,
      rgb(0 114 250 / 0) 90%
    ),
    radial-gradient(
      ellipse 30% 45% at -3% -4%,
      rgb(0 114 250 / 0.76) 0%,
      rgb(0 114 250 / 0.38) 30%,
      rgb(0 114 250 / 0.14) 52%,
      rgb(0 114 250 / 0.04) 70%,
      rgb(0 114 250 / 0) 86%
    );
  background-position: center;
  background-repeat: no-repeat;
  background-size: max(100%, 177.778vh) max(100%, 56.25vw);
  transform-origin: center;
  animation: ambient-drift 36s ease-in-out infinite alternate;
  will-change: transform;
}

.construction-page.is-page-hidden .ambient,
.construction-page.is-page-hidden .ambient::before,
.construction-page.is-page-hidden .status__signal {
  animation-play-state: paused;
}

.graphic-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("../assets/overlay-construcao.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.stage,
.footer {
  position: relative;
  z-index: 10;
}

.stage {
  display: grid;
  align-content: center;
  align-content: safe center;
  justify-items: center;
  gap: clamp(72px, 11.3vh, 122px);
  width: 100%;
  margin: 0 auto;
  padding: clamp(24px, 4vh, 48px) 0;
  outline: none;
}

.identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: center;
  width: 100%;
}

.brand-logo {
  position: relative;
  width: clamp(165px, 11.5vw, 225px);
  aspect-ratio: 1656 / 1219;
  margin: 0 auto;
  overflow: hidden;
  line-height: 0;
}

.brand-logo img {
  position: absolute;
  top: -29.615%;
  left: -11.836%;
  width: 123.672%;
  height: auto;
  max-width: none;
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 0.65vw, 12px);
  width: clamp(280px, 17.2vw, 330px);
  min-height: clamp(48px, 5.2vh, 56px);
  margin: clamp(74px, 10.65vh, 115px) auto 0;
  padding: 0 clamp(18px, 1.25vw, 24px);
  color: var(--white);
  background: rgba(2, 12, 31, 0.38);
  border: 1px solid rgba(235, 244, 255, 0.86);
  border-radius: 999px;
  backdrop-filter: blur(14px) saturate(1.12);
  font-size: clamp(16px, 1vw, 20px);
  font-weight: 300;
  line-height: 1;
}

.status__signal {
  position: relative;
  width: clamp(18px, 1.15vw, 22px);
  height: clamp(18px, 1.15vw, 22px);
  flex: 0 0 auto;
  background: transparent;
  border: 2px solid rgba(197, 209, 224, 0.28);
  border-top-color: rgba(197, 209, 224, 0.92);
  border-radius: 50%;
  animation: status-spin 1.6s linear infinite;
  will-change: transform;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(30px, 2.9vw, 56px);
  justify-self: center;
  width: min(100%, clamp(720px, 44.3vw, 850px));
  min-height: clamp(120px, 13vh, 140px);
  margin-inline: auto;
  padding:
    clamp(24px, 3vh, 32px)
    clamp(32px, 2.5vw, 48px);
  background: rgba(2, 15, 35, 0.78);
  border: 1px solid rgba(235, 244, 255, 0.86);
  border-radius: 999px;
  backdrop-filter: blur(18px) saturate(1.16);
}

.contact-panel p {
  max-width: 31ch;
  margin: 0;
  color: var(--white);
  font-size: clamp(16px, 1.05vw, 20px);
  line-height: 1.25;
}

.contact-panel__button {
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 0.65vw, 12px);
  width: clamp(260px, 16vw, 310px);
  min-height: clamp(50px, 5vh, 54px);
  padding: 0 clamp(20px, 1.25vw, 24px);
  color: #071326;
  background: var(--white);
  border-radius: 999px;
  font-size: clamp(15px, 0.9vw, 17px);
  font-weight: 300;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(0, 7, 26, 0.2);
  transition:
    color 220ms ease-out,
    background-color 220ms ease-out,
    box-shadow 220ms ease-out,
    transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-panel__button svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-panel__button:hover {
  color: var(--white);
  background: var(--blue-600);
  box-shadow: 0 14px 30px rgba(0, 39, 120, 0.34);
  transform: translateY(-2px);
}

.contact-panel__button:hover svg {
  transform: translateX(3px);
}

.contact-panel__button:focus-visible {
  outline: 3px solid var(--blue-300);
  outline-offset: 5px;
}

.contact-panel__button:active {
  transform: translateY(0);
}

.footer {
  display: grid;
  grid-template-columns: minmax(40px, 1fr) auto minmax(40px, 1fr);
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  width: min(100%, 980px);
  margin: 0 auto;
  color: rgba(229, 241, 255, 0.82);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
}

.footer p {
  margin: 0;
  white-space: nowrap;
}

.footer__line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(222, 239, 255, 0.36));
}

.footer__line:last-child {
  background: linear-gradient(90deg, rgba(222, 239, 255, 0.36), transparent);
}

.construction-page.is-entering .brand-logo {
  animation: intro-logo-glide 1160ms cubic-bezier(0.22, 1, 0.36, 1) 60ms backwards;
}

.construction-page.is-entering .status {
  animation: intro-status-glide 1050ms cubic-bezier(0.22, 1, 0.36, 1) 260ms backwards;
}

.construction-page.is-entering .contact-panel {
  animation: intro-panel-glide 1130ms cubic-bezier(0.22, 1, 0.36, 1) 430ms backwards;
}

.construction-page.is-entering .footer {
  animation: intro-footer-glide 930ms cubic-bezier(0.22, 1, 0.36, 1) 720ms backwards;
}

.construction-page.is-entering .graphic-overlay {
  animation: intro-overlay-fade 1600ms ease-out backwards;
}

.construction-page.is-page-hidden.is-entering .brand-logo,
.construction-page.is-page-hidden.is-entering .status,
.construction-page.is-page-hidden.is-entering .contact-panel,
.construction-page.is-page-hidden.is-entering .footer,
.construction-page.is-page-hidden.is-entering .graphic-overlay {
  animation-play-state: paused;
}

@keyframes intro-logo-glide {
  from {
    opacity: 0;
    filter: blur(8px);
    transform: translate3d(0, 28px, 0) scale(0.97);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes intro-status-glide {
  from {
    opacity: 0;
    transform: translate3d(0, 22px, 0) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes intro-panel-glide {
  from {
    opacity: 0;
    transform: translate3d(0, 30px, 0) scale(0.99);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes intro-footer-glide {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes intro-overlay-fade {
  from {
    opacity: 0.25;
  }

  to {
    opacity: 1;
  }
}

@keyframes status-spin {
  to {
    transform: rotate(1turn);
  }
}

@keyframes ambient-breathe {
  from {
    opacity: 0.4;
  }

  to {
    opacity: 0.7;
  }
}

@keyframes ambient-drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1.05);
  }

  35% {
    transform: translate3d(1.1%, -0.85%, 0) scale(1.055);
  }

  70% {
    transform: translate3d(-0.9%, 0.75%, 0) scale(1.05);
  }

  100% {
    transform: translate3d(0.65%, 1%, 0) scale(1.055);
  }
}

@media (max-width: 960px) {
  .construction-page {
    overflow-y: auto;
  }

  .contact-panel {
    grid-template-columns: 1fr;
    gap: 20px;
    width: min(100%, 480px);
    padding: 28px;
    border-radius: 36px;
    text-align: center;
  }

  .contact-panel p {
    max-width: none;
  }

  .contact-panel__button {
    width: min(100%, 320px);
    margin: 0 auto;
  }
}

@media (max-width: 720px) {
  :root {
    --page-gutter: 18px;
  }

  .construction-page {
    overflow-y: auto;
    padding-top: 20px;
    padding-bottom: 18px;
  }

  .stage {
    gap: 40px;
    padding-block: 32px;
  }

  .brand-logo {
    width: clamp(116px, 35.2vw, 136px);
  }

  .status {
    gap: 10px;
    width: min(100%, 260px);
    min-height: 50px;
    margin-top: 44px;
    padding-inline: 16px;
    font-size: 17px;
  }

  .status__signal {
    width: 20px;
    height: 20px;
  }

  .contact-panel {
    gap: 18px;
    width: min(100%, 400px);
    min-height: 0;
    padding: 22px 18px;
    border-radius: 30px;
    text-align: center;
  }

  .contact-panel p {
    max-width: none;
    font-size: 17px;
    line-height: 1.28;
  }

  .contact-panel__button {
    width: 100%;
    min-height: 50px;
    font-size: 16px;
    white-space: normal;
  }

  .footer {
    grid-template-columns: minmax(18px, 1fr) auto minmax(18px, 1fr);
    gap: 12px;
    font-size: 10px;
  }

}

@media (max-width: 430px) {
  .footer {
    grid-template-columns: minmax(12px, 1fr) auto minmax(12px, 1fr);
    gap: 8px;
    font-size: 9px;
  }
}

@media (max-height: 640px) and (min-width: 721px) {
  .construction-page {
    overflow-y: auto;
    padding-top: 20px;
    padding-bottom: 16px;
  }

  .stage {
    gap: 44px;
    padding-block: 36px;
  }

  .brand-logo {
    width: clamp(150px, 11.5vw, 165px);
  }

  .status {
    margin-top: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .construction-page.is-entering .brand-logo,
  .construction-page.is-entering .status,
  .construction-page.is-entering .contact-panel,
  .construction-page.is-entering .footer,
  .construction-page.is-entering .graphic-overlay {
    animation: none !important;
  }

  .ambient {
    opacity: 0.55;
    animation: none !important;
    will-change: auto;
  }

  .ambient::before {
    transform: none;
    animation: none !important;
    will-change: auto;
  }

  .status__signal {
    animation: none !important;
    will-change: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@supports not (backdrop-filter: blur(1px)) {
  .status,
  .contact-panel {
    background: rgba(3, 19, 48, 0.94);
  }
}
