body {
  height: 100dvh;
  padding: 0 min(208px, max(48px, (100vw - 1024px) / 2));
  transition: background-color 0.3s ease;
}

/* 두번째 섹션 - 다크모드 */
body#dark-mode {
  background-color: var(--mono-900);
}

body#dark-mode h2,
body#dark-mode p,
body#dark-mode #header .desktop-nav a.active,
body#dark-mode #header .mobile-nav a {
  color: var(--mono-100);
}

body#dark-mode .logo {
  filter: invert(1) hue-rotate(180deg);
}

body#dark-mode #header .mobile-menu span {
  background-color: var(--mono-100);
}

body#dark-mode #header .mobile-nav {
  background-color: var(--mono-900);
}

body#dark-mode #header .mobile-nav a.active {
  color: var(--main-300);
}

/* 헤더 */
#header {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  height: 120px;
  padding: 2rem 0;
  z-index: 10;
}

.logo {
  width: 128px;
  height: 40px;
}

.app-download {
  display: none;
  min-width: 7rem;
  height: 4rem;
  padding: 6px 12px;
  border-radius: 3rem;
  margin-left: auto;
  color: var(--mono-100);
  background-color: var(--main-300);
  font-size: 14px;
  font-weight: 500;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 3rem;
  height: 3rem;
  margin-right: 1rem;
  color: var(--main-300);
}

.mobile-menu span {
  display: block;
  width: 16px;
  height: 1.5px;
  border-radius: 0.9px;
  background-color: var(--mono-900);
}

.mobile-menu span:nth-of-type(1) {
  animation: menu-bar1 0.75s forwards;
}

.mobile-menu span:nth-of-type(2) {
  opacity: 1;
}

.mobile-menu span:nth-of-type(3) {
  animation: menu-bar2 0.75s forwards;
}

.mobile-menu.active span:nth-of-type(1) {
  animation: active-menu-bar1 0.75s forwards;
}

.mobile-menu.active span:nth-of-type(2) {
  opacity: 0;
}

.mobile-menu.active span:nth-of-type(3) {
  animation: active-menu-bar2 0.75s forwards;
}

.mobile-nav {
  position: absolute;
  z-index: 10;
  top: 72px;
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  gap: 1rem;
  height: calc(100dvh - 72px);
  padding: 5rem 3rem;
  background-color: var(--mono-200);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav a {
  height: 7rem;
  padding: 2rem;
  font-family: var(--font-nanum);
  font-size: 20px;
  text-align: center;
}

.mobile-nav a.active {
  color: var(--main-300);
  text-decoration: underline;
  text-decoration-thickness: 2.5px;
  text-underline-offset: 6px;
  text-decoration-color: var(--main-300);
}

.desktop-nav {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}

.desktop-nav a {
  color: var(--mono-600);
  font-size: 20px;
  font-weight: 700;
}

.desktop-nav a.active {
  color: var(--mono-900);
}

/* 메인, 공통 */
#main {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 120px;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

#main > section,
#main > footer {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  height: calc(100dvh - 120px);
  padding: 80px 0 120px;
}

#main > section .image {
  position: absolute;
  bottom: 120px;
  right: 0;
  max-width: 400px;
  max-height: 480px;
  width: 48.6vw;
  height: 58.6vw;
}

#main > section .image img {
  position: absolute;
  left: 50%;
  height: auto;
  transform: translateX(-50%);
}

#main > section h2 {
  margin-bottom: 4rem;
  font-size: 64px;
  line-height: 140%;
  font-family: var(--font-nanum);
}

#main > section p {
  font-size: 24px;
  font-weight: 600;
  line-height: 140%;
  letter-spacing: -0.48px;
  white-space: normal;
}

#main > section > span {
  margin-top: 1rem;
  font-size: 16px;
  font-weight: 500;
  line-height: 150%;
  letter-spacing: -0.32px;
}

/* 첫 번째 섹션 */
.download {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 6rem;
}

.download p {
  font-size: 16px;
  font-weight: 600;
}

.download div {
  /*  */
  display: flex;
  justify-content: center;
  align-items: center;
  /*  */
  width: 120px;
  height: 120px;
  border-radius: 2rem;
  background-color: var(--mono-100);
}

.section1-image {
  background: url("../assets/images/blur1.png") no-repeat center center;
  background-size: 100% auto;
  animation: fadeIn 0.3s ease-in-out 0s forwards;
}

.section1-image img:first-of-type {
  width: 60%;
  bottom: 75%;
  opacity: 0;
  transform: translateX(-50%) translateY(50px);
  animation: slideUpFadeIn 0.5s ease-out 0.5s forwards;
}

.section1-image img:last-of-type {
  width: 70%;
  bottom: 0;
  opacity: 0;
  animation: fadeIn 0.5s ease-in-out 0.3s forwards;
}

/* 두 번째 섹션 */
.section2-image-slide {
  position: absolute;
  right: 0;
  bottom: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 400px;
  max-height: 480px;
  width: 48.6vw;
  height: 58.6vw;
  overflow: hidden;
}

.slide-group {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  height: 100%;
  background: url("../assets/images/blur2.png") no-repeat center center;
  background-size: 100% auto;
  transform: translateX(50px);
  transition: all 0.8s ease-in-out;
}

.slide-group.active {
  opacity: 1;
  transform: translateX(0);
}

.slide-group img {
  position: static;
  display: block;
  object-fit: contain;
}

/* 세 번쩨 섹션 */
.section3-image img:first-of-type {
  left: 60%;
  width: 60%;
  bottom: 55%;
  opacity: 0;
}

.section3-image img:last-of-type {
  width: 80%;
  bottom: 0;
  opacity: 0;
}

.section3-image[data-animated="true"] img:first-of-type {
  animation: slideUpFadeIn 0.5s ease-out 0.5s forwards;
}

.section3-image[data-animated="true"] img:last-of-type {
  animation: fadeIn 0.5s ease-in-out 0.3s forwards;
}

/* 네 번째 섹션 */
.section4-image img:first-of-type {
  width: 95%;
  bottom: 6rem;
  opacity: 0;
}

.section4-image img:last-of-type {
  width: 95%;
  bottom: 6rem;
  opacity: 0;
}

.section4-image[data-animated="true"] img:first-of-type {
  animation: moveFirstImg 0.6s ease-out 0s forwards;
}

.section4-image[data-animated="true"] img:last-of-type {
  animation: moveLastImg 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.8s forwards;
}

/* 다섯 번째 섹션 */
.section5-image {
  background: url("../assets/images/shadow.png") no-repeat center bottom;
  background-size: 60% auto;
}

.section5-image img:first-of-type {
  width: 70%;
  bottom: 50%;
  opacity: 0;
}

.section5-image img:last-of-type {
  width: 70%;
  bottom: 0;
}

.section5-image[data-animated="true"] img:first-of-type {
  animation: slideUpFadeIn 1s ease-out 0.3s forwards;
}

.section5-image[data-animated="true"] img:last-of-type {
  animation: slowFloat 3s cubic-bezier(0.4, 0, 0.6, 1) 0s infinite;
}

/* 여섯 번째 섹션 */
.section6-image img:first-of-type {
  width: 80%;
  bottom: 0;
  filter: drop-shadow(0px 0px 0px #937bff);
  transition: filter 1s ease-in-out 0.2s;
}

.section6-image img:last-of-type {
  width: 15%;
  bottom: 35%;
  transform: translateX(-50%) scale(0);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s;
}

.section6-image[data-animated="true"] img:first-of-type {
  filter: drop-shadow(0px 0px 10px #937bff);
}

.section6-image[data-animated="true"] img:last-of-type {
  transform: translateX(-50%) scale(1);
}

/* 푸터 */
#footer {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.threads {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.threads p {
  font-size: 24px;
  font-family: var(--font-nanum);
}

.company {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.company > address {
  display: flex;
  align-items: center;
  gap: 4px;
  font-style: normal;
}

.company > address p {
  color: var(--mono-800);
  font-size: 12px;
  font-weight: 500;
}

.company > address hr {
  width: 1px;
  height: 12px;
  border: 0;
  background-color: var(--mono-700);
}

.company > div {
  display: flex;
  align-items: center;
  gap: 4px;
}

.company > div small {
  margin-bottom: 0;
  color: var(--mono-600);
  font-size: 10px;
  font-weight: 500;
}

/* 섹션 인디케이터 */
.section-indicators {
  position: fixed;
  top: 50dvh;
  right: 8%;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 1rem;
  border-radius: 2rem;
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%);
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.section-indicators.hidden {
  opacity: 0;
  visibility: hidden;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--mono-400);
  transition: all 0.2s ease;
  cursor: pointer;
}

.indicator.active {
  background: var(--main-300);
  filter: blur(3px);
  transform: translateZ(0);
}
