* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
}

:root {
  --brancoTitle: rgba(255, 255, 255, 0.95);
  --brancoText: rgba(255, 255, 255, 0.82);
  --branco: #ffffff;
  --gelo: #f5f9ff;
  --azulNavy: #0A1B3D;
  --azulNavyText: rgba(10, 27, 61, 0.78);
  --azulRoyal: #2E6BE6;
  --azulCeleste: #8EBCFF;
  --azulCelesteClaro: #DCEAFF;
  --azulGlow: rgba(46, 107, 230, 0.4);
  --linhaAzul: rgba(46, 107, 230, 0.22);
}

@font-face {
  font-family: "Clash";
  src: url("assets/fonts/ClashDisplay-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Clash";
  src: url("assets/fonts/ClashDisplay-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Clash";
  src: url("assets/fonts/ClashDisplay-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Clash";
  src: url("assets/fonts/ClashDisplay-Light.ttf") format("truetype");
  font-weight: 300;
  font-display: swap;
}

html,
body {
  overflow-x: hidden;
  overscroll-behavior-y: none;
  touch-action: pan-y;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--azulNavy);
  background-color: var(--branco);
}

a {
  color: var(--azulNavy);
  text-decoration: none;
  border: none;
  outline: none;
  border-radius: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 8px 8px 20px;
  font-size: 16px;
  gap: 12px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

a:hover {
  transform: translateY(-2px);
}

section {
  padding: 4vw;
}

h2 {
  font-size: 3.8vw;
  font-family: "Clash", "Inter", sans-serif;
  line-height: 5vw;
  font-weight: 400;
}

header {
  width: calc(100% - 24px);
  position: fixed;
  top: 12px;
  left: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px 12px 20px;
  z-index: 9;
  color: var(--azulNavy);
  border: 1px solid var(--linhaAzul);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 60px -32px rgba(10, 27, 61, 0.42);
  backdrop-filter: blur(18px) saturate(1.15);
}

header h1 {
  font-size: 24px;
  font-weight: 400;
  font-family: "Clash", "Inter", sans-serif;
  letter-spacing: 0.5px;
  color: var(--azulRoyal);
}

header h1 b {
  color: var(--azulNavy);
}

header img {
  width: 40px;
}

p {
  color: var(--azulNavyText);
}

.botaoPrimario {
  min-height: 68px;
  color: var(--branco);
  border: 1px solid var(--azulRoyal);
  background-color: var(--azulRoyal);
  font-weight: 500;
}

.botaoPrimario:hover {
  box-shadow: 0 12px 34px rgba(46, 107, 230, 0.32);
}

.botaoSecundario {
  background-color: rgba(255, 255, 255, 0.94);
  color: var(--azulNavy);
  border: 2px solid rgba(46, 107, 230, 0.34);
  height: 68px;
  font-weight: 500;
}

.botaoSecundario:hover {
  border-color: rgba(46, 107, 230, 0.9);
  box-shadow: 0 0 25px rgba(46, 107, 230, 0.3);
}

a:focus-visible {
  outline: 3px solid var(--azulCeleste);
  outline-offset: 4px;
}

/* PRELOADER */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: all;
  touch-action: none;
  overscroll-behavior: contain;
}

.preloader-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(142, 188, 255, 0.28), transparent 34%),
    var(--branco);
  z-index: 1;
  will-change: transform;
}

.preloader-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  aspect-ratio: 46 / 33;
  transform: translate(-50%, -50%);
  z-index: 2;
  will-change: transform, opacity;
}

.preloader-logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.preloader-logo-empty {
  opacity: 0.18;
}

.preloader-logo-fill {
  clip-path: inset(100% 0 0 0);
  will-change: clip-path;
}

.preloader-percent {
  position: absolute;
  top: calc(50% + 56px);
  left: 50%;
  transform: translateX(-50%);
  color: var(--azulNavy);
  font-family: "Clash", "Inter", sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
  z-index: 2;
  will-change: opacity, transform;
}

.logoHeader {
  opacity: 0;
}

@media (max-width: 768px) {
  .preloader-logo {
    width: 88px;
  }
  .preloader-percent {
    top: calc(50% + 44px);
    font-size: 13px;
  }
}

main {
  width: 100%;
  height: 100svh;
  overflow: hidden;
}

.hero {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.hero .midiaBackground:before {
  content: "";
  width: 100%;
  height: 100%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.12) 38%, rgba(255, 255, 255, 0) 68%),
    linear-gradient(90deg, rgba(46, 107, 230, 0.08), transparent 34% 66%, rgba(142, 188, 255, 0.08));
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero .conteudo {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(1180px, 92vw);
  padding: clamp(26px, 3.4vw, 54px);
  color: var(--azulNavy);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.hero .conteudo .cardSubtitulo {
  width: 324px;
  height: 49px;
  position: relative;
  border-radius: 40px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  isolation: isolate;
  background: var(--azulNavy);
}

.hero .conteudo .cardSubtitulo:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 40px;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse at 50% 50%,
      rgba(46, 107, 230, 0.62) 0%,
      rgba(20, 72, 166, 0.46) 48%,
      rgba(10, 27, 61, 0.7) 100%
    ),
    linear-gradient(
      90deg,
      rgba(10, 27, 61, 0.5),
      rgba(46, 107, 230, 0.18) 50%,
      rgba(10, 27, 61, 0.5)
    );
  box-shadow:
    -1px -2px 0 0 rgba(46, 107, 230, 0.4) inset,
    1px 2px 0 0 rgba(46, 107, 230, 0.4) inset;
}

.hero .conteudo .cardSubtitulo video {
  width: 100%;
  object-fit: cover;
  object-position: 50% 78%;
  height: 100%;
  position: absolute;
  inset: 0;
  z-index: 0;
  filter: blur(6px) saturate(1.35) contrast(1.08) brightness(0.82);
  transform: scale(1.2);
  transform-origin: center;
}

.hero .conteudo .cardSubtitulo h3 {
  position: relative;
  z-index: 2;
  max-width: 100%;
  padding-inline: 0;
  font-size: 14px;
  line-height: normal;
  color: rgb(223, 223, 223);
  mix-blend-mode: color-dodge;
  font-weight: 500;
  letter-spacing: normal;
  text-align: center;
  white-space: nowrap;
}

.hero .conteudo h2 {
  margin: 3.5vw 0 2vw;
  width: 74vw;
  text-align: center;
  color: var(--azulNavy);
}

.hero .conteudo p {
  font-size: clamp(16px, 1.1vw, 24px);
  line-height: 160%;
  text-align: center;
  width: 53vw;
  margin-bottom: 40px;
  color: var(--azulNavyText);
}

.hero .transition {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 9;
  display: flex;
  pointer-events: none;
}

.hero .transition div {
  width: 100%;
  height: 100%;
  background-color: var(--branco);
}

.midiaBackground {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.midiaBackground img,
.midiaBackground video {
  width: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  bottom: 0;
  left: 0;
}

.botoes {
  display: flex;
  gap: 32px;
}

.textoTransicao {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4vw;
  pointer-events: none;
}

.textoTransicao p {
  font-size: 5vw;
  font-family: "Clash", "Inter", sans-serif;
  text-align: center;
  color: var(--azulNavy);
}

.projetos {
  width: 100%;
  padding: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(142, 188, 255, 0.2), transparent 24%),
    var(--branco);
  position: relative;
  z-index: 3;
  margin-top: -1px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 4vw;
}

.projetos a {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

.projetos .titulo {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 40px;
}

.projetos .titulo h2 {
  margin-bottom: 12px;
  color: var(--azulNavy);
}

.projetos .titulo p {
  color: var(--azulNavyText);
}

.projetos .projeto {
  width: 60%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 6vw;
  border: 1px solid rgba(46, 107, 230, 0.2);
  box-shadow: 0 32px 90px -62px rgba(10, 27, 61, 0.52);
  transition: border-color 0.4s ease;
}

.projetos .projeto:hover {
  border-color: rgba(46, 107, 230, 0.6);
}

.projetos img {
  width: 100vw;
  display: block;
  object-fit: cover;
  filter: saturate(0);
}

@media (max-width: 1100px) {
  .projetos {
    gap: clamp(24px, 4vw, 44px);
  }

  .projetos .projeto {
    width: calc(100% - 32px);
    border-radius: clamp(20px, 4vw, 36px);
  }

  .projetos img {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 600px) {
  .projetos .projeto {
    width: 60%;
  }

  .projetos img {
    width: 100vw;
  }
}

.div3d {
  margin-top: -1px;
  padding: 0;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  background:
    radial-gradient(circle at 50% 52%, rgba(142, 188, 255, 0.28), transparent 28%),
    linear-gradient(180deg, var(--branco), var(--gelo));
}

.div3d canvas {
  position: absolute;
  height: 100% !important;
}

.div3d h2 {
  position: absolute;
  font-size: 12vw;
  font-family: "Clash", "Inter", sans-serif;
  font-weight: 500;
  letter-spacing: -1px;
  color: var(--azulNavy);
  text-shadow: 0 12px 42px rgba(142, 188, 255, 0.32);
}

.animations {
  width: 100%;
  height: 100svh;
  position: relative;
}

footer {
  width: 100%;
  height: 100%;
  display: flex;
  padding: 4vw;
  position: absolute;
  align-items: end;
  gap: 32px;
  z-index: 9;
  top: 0;
  left: 0;
  color: var(--azulNavy);
  background-color: var(--branco);
}

footer::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.7) 56%, rgba(220, 234, 255, 0.58)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(46, 107, 230, 0.08));
}

footer .midiaBackground img,
footer .midiaBackground video {
  top: 0;
}

footer .webhubFooter,
footer .conteudo {
  position: relative;
  z-index: 2;
  width: 50%;
}

footer p {
  color: var(--azulNavyText);
}

footer .webhubFooter {
  display: flex;
  flex-direction: column;
}

footer .webhubFooter h2 {
  font-size: 9vw;
  line-height: 11vw;
  font-family: "Clash", "Inter", sans-serif;
  font-weight: 400;
  color: var(--azulRoyal);
}

footer .webhubFooter h2 b {
  color: var(--azulNavy);
}

footer .webhubFooter div {
  display: flex;
  gap: 20px;
}

footer .conteudo {
  display: flex;
  flex-direction: column;
  align-items: end;
}

footer .conteudo h2 {
  text-align: start;
  font-size: 3vw;
  line-height: 3.2vw;
  text-align: end;
  margin-bottom: clamp(32px, 2vw, 2vw);
  color: var(--azulNavy);
}

@media (max-width: 1385px) {
  .hero .conteudo p {
    width: 733px;
  }
}

@media (max-width: 1250px) {
  footer .webhubFooter div p {
    font-size: 14px;
  }
}

@media (max-width: 1200px) {
  .hero .conteudo h2 {
    width: 100%;
    font-size: 4.5vw;
  }

  footer .webhubFooter div {
    flex-direction: column;
  }
}

@media (max-width: 1140px) {
  footer .conteudo {
    width: 600px;
  }
}

@media (max-width: 1004px) {
  footer {
    flex-direction: column;
    justify-content: end;
    align-items: center;
    gap: 80px;
    padding: 80px 20px;
  }

  footer .conteudo {
    align-items: center;
    width: 100%;
  }

  footer .conteudo h2 {
    text-align: center;
  }

  footer .webhubFooter {
    order: 2;
  }

  footer .webhubFooter div {
    align-items: center;
  }

  footer .webhubFooter,
  footer .conteudo {
    justify-content: center;
    align-items: center;
  }
}

@media (max-width: 900px) {
  .hero .conteudo {
    width: 100%;
  }
  .hero .conteudo p {
    width: 100%;
  }
  h2,
  .hero .conteudo h2,
  footer .conteudo h2 {
    font-size: 6.4vw;
    line-height: 7vw;
  }
}

@media (max-width: 600px) {
  header {
    width: 100%;
    top: 0;
    left: 0;
    padding: 26px 20px;
    border: 0;
    border-radius: 0;
    background: linear-gradient(180deg, rgba(10, 27, 61, 0.38), transparent);
    box-shadow: none;
    backdrop-filter: none;
  }

  header h1 {
    color: var(--azulCeleste);
    text-shadow: 0 2px 14px rgba(10, 27, 61, 0.28);
  }

  header h1 b {
    color: var(--branco);
  }

  header img {
    filter: drop-shadow(0 2px 14px rgba(10, 27, 61, 0.3));
  }

  a {
    width: 238px;
  }
  h2,
  .hero .conteudo h2,
  footer .conteudo h2 {
    font-size: 6.2vw;
    line-height: 7.4vw;
  }
  .botoes {
    flex-direction: column;
    gap: 16px;
  }

  .hero {
    padding: 0 20px;
    align-items: flex-start;
  }

  .hero .midiaBackground:before {
    background:
      linear-gradient(180deg, rgba(10, 27, 61, 0.46), rgba(10, 27, 61, 0.12) 42%, transparent 74%),
      linear-gradient(90deg, rgba(46, 107, 230, 0.08), transparent 62%, rgba(142, 188, 255, 0.12));
  }

  .hero .conteudo {
    align-items: start;
    width: 100%;
    height: 100%;
    justify-content: flex-start;
    padding: clamp(132px, 18svh, 160px) 0 28px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .hero .conteudo .cardSubtitulo {
    width: min(324px, 100%);
    margin: 0 auto;
    border: 1px solid rgba(142, 188, 255, 0.38);
    box-shadow: 0 12px 34px -22px rgba(10, 27, 61, 0.72);
  }

  .hero .conteudo .cardSubtitulo h3 {
    font-size: 14px;
    line-height: normal;
    font-weight: 500;
    letter-spacing: normal;
    color: var(--branco);
    mix-blend-mode: normal;
    text-shadow: 0 1px 10px rgba(10, 27, 61, 0.5);
  }

  .hero .conteudo h2,
  .hero .conteudo p {
    text-align: start;
  }

  .hero .conteudo h2 {
    display: block;
    width: 100%;
    max-width: 440px;
    margin: 32px 0 20px;
    color: var(--brancoTitle);
    text-shadow: 0 2px 14px rgba(10, 27, 61, 0.62);
  }

  .hero .conteudo p {
    width: 100%;
    max-width: 340px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 15px;
    line-height: 1.55;
    text-shadow: 0 2px 14px rgba(10, 27, 61, 0.62);
  }

  .hero .botoes {
    width: 100%;
    align-items: flex-start;
  }

  .hero .botaoPrimario {
    color: var(--azulNavy);
    border-color: rgba(142, 188, 255, 0.68);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 34px -24px rgba(10, 27, 61, 0.7);
  }

  .hero .botaoSecundario {
    color: var(--branco);
    border-color: rgba(46, 107, 230, 0.66);
    background: rgba(10, 27, 61, 0.94);
    box-shadow: 0 14px 34px -24px rgba(10, 27, 61, 0.78);
  }

  .hero .midiaBackground {
    width: 220vw;
    right: 0;
    left: auto;
  }

  .hero .transition div:nth-child(6),
  .hero .transition div:nth-child(7),
  .hero .transition div:nth-child(8),
  .hero .transition div:nth-child(9),
  .hero .transition div:nth-child(10),
  .hero .transition div:nth-child(11) {
    display: none;
  }

  .textoTransicao p {
    font-size: 7vw;
    width: 100%;
  }

  .projetos .titulo {
    padding: 0 4vw;
  }

  .projetos h2 {
    font-size: 8vw;
  }

  .projetos p {
    text-align: center;
    margin-bottom: 20px;
  }

  footer {
    gap: 40px;
  }

  footer .conteudo {
    align-items: start;
  }

  footer .conteudo h2 {
    font-size: 9.2vw;
    line-height: 10vw;
    text-align: start;
  }

  footer .midiaBackground {
    width: 220vw;
    left: 0%;
  }

  footer .webhubFooter {
    width: 100%;
  }

  footer .webhubFooter h2 {
    font-size: 21vw;
    line-height: 22vw;
  }

  footer .webhubFooter div {
    margin-top: 8px;
    gap: 4px;
  }
}

@media (min-width: 601px) and (max-height: 670px) {
  .hero h2 {
    display: none;
  }
  .hero p {
    margin-top: 32px;
  }
}

@media (min-width: 601px) and (max-height: 600px) {
  .hero h2 {
    display: none;
  }
  .hero p {
    margin-top: 32px;
  }
  .hero .botaoSecundario {
    display: none;
  }
  footer .webhubFooter {
    display: none;
  }
}

@media (max-width: 350px) {
  .hero .conteudo .cardSubtitulo {
    width: 280px;
    max-width: calc(100vw - 40px);
    min-height: 49px;
    height: 49px;
    padding: 0;
  }

  .hero .conteudo .cardSubtitulo h3 {
    font-size: 14px;
    line-height: normal;
    font-weight: 500;
    letter-spacing: normal;
    text-align: center;
  }
}

@media (max-width: 600px) and (max-height: 600px) {
  .hero .conteudo {
    padding-top: 96px;
  }

  .hero .conteudo h2 {
    margin: 20px 0 12px;
  }

  .hero .conteudo p {
    margin: 0 0 12px;
    font-size: 13px;
  }

  .hero .botoes {
    gap: 10px;
  }

  .hero .botaoSecundario {
    display: flex;
  }
}
