/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: -webkit-fill-available;
}

body {
  font-family: "Pretendard Variable", -apple-system, BlinkMacSystemFont,
    system-ui, sans-serif;
  line-height: 1.6;
  color: #333;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.container {
  display: flex;
  align-items: center;
  justify-content: start;
  position: relative;
  max-width: 1200px;
  width: 100%;
}

/* Header */
.header {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: inline-block;
  width: auto;
  height: 27px;
  padding-left: 40px;
}

/* Main Content */
.main-content {
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  display: flex;

  background: #ececec;
  color: #272728;
  overflow: hidden;
  /* 데스크톱 배경 이미지 */
  background-image: url("images/frame.png");
  background-repeat: no-repeat;
  background-position: bottom right;
  background-size: 100% 100%;
}

.main-content-container {
  z-index: 2;
}

.bus-box {
  position: absolute;
  right: -220px;
  bottom: 30px;
}

.bus-object {
  display: inline-block;
  width: 90%;
  height: auto;
}

.main-container {
  margin: 0 120px;
  position: relative;
  width: 100%;
  max-width: 1720px;
  min-height: calc(100vh - 340px);
  padding: 147px 0 80px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  z-index: 2;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.main-title {
  text-align: left;
  font-size: 52px;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 15px;
  line-height: 1.4;
  animation: fadeInUp 0.8s ease-out;
}

.sub-title {
  text-align: left;
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 40px;

  animation: fadeInUp 0.8s ease-out 0.2s; /* 0.2초 delay */
  animation-fill-mode: backwards;
}

.download-buttons {
  cursor: pointer;
  display: flex;
  gap: 20px;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;

  animation: fadeIn 1s ease-out 0.4s; /* 0.4초 delay */
  animation-fill-mode: backwards;
}

.store-button {
  display: inline-block;
  transition: transform 0.2s ease;
}

.store-button:hover {
  transform: translateY(-3px);
}

.store-button img {
  height: 60px;
  width: auto;
}

/* Footer */
.footer {
  background-color: #fff;
  color: #6e6e70;
  margin: 35px 120px;
  max-width: 1720px;
}

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

.certifications {
  font-size: 12px;
  margin-top: 42px;
  display: flex;
  gap: 45px;
  align-items: start;
  justify-content: start;
}

.cert-logo {
  display: inline-block;
  height: 63px;
  width: auto;
  background-color: white;
}

.flexbox {
  display: flex;
  gap: 15px;
  align-items: center;
}

.company-info {
  display: flex;
  gap: 30px;
  font-size: 12px;
  flex-wrap: wrap;
}

.privacy-link {
  width: fit-content !important;
  display: inline-block !important;
  color: #eb26c2 !important;
  text-decoration: none !important;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}

.privacy-link:hover {
  text-decoration: underline;
}

.copyright {
  font-size: 14px;
  margin-top: 10px;
}

/* Tablet (768px ~ 1023px) */
@media (max-width: 1023px) {
  .main-container {
    position: relative;
    width: 100%;
    margin: 0 50px;
    padding: 80px 0 80px;
  }

  .main-title {
    font-size: 40px;
    margin-bottom: 12px;
  }

  .bus-box {
    position: absolute;
    right: -400px;
    bottom: 30px;
  }

  .bus-object {
    display: inline-block;
    width: 80%;
    height: auto;
  }

  .main-content-container {
    z-index: 2;
  }
}

/* Mobile & Tablet (max-width: 768px) */
@media (max-width: 768px) {
  .header {
    padding: 15px 0;
  }

  .logo {
    padding-left: 20px;
    width: auto;
    height: 18px;
  }

  .main-container {
    margin: 0 40px;
  }

  .main-content-container {
    width: 100%;
    z-index: 2;
  }

  .main-title {
    font-size: 24px;
    margin-bottom: 12px;
  }

  .sub-title {
    font-size: 13px;
    margin-bottom: 30px;
  }

  .download-buttons {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .store-button img {
    height: 50px;
  }

  .main-content {
    /*margin: 0 40px;*/
  }

  /* Footer */
  .certifications {
    align-items: flex-start;
    margin-top: 30px;
    font-size: 10px;
    gap: 20px;
  }

  .flexbox {
    align-items: flex-start;
    gap: 10px;
  }

  .cert-logo {
    height: 40px;
  }

  .company-info {
    flex-direction: column;
    font-size: 12px;
    gap: 4px;
  }

  .divider {
    display: none;
  }

  .footer {
    width: 100%;
    padding: 20px 20px;
    margin: 0 auto;
  }
}

/* Mobile Only (max-width: 480px) */
@media (max-width: 480px) {
  .main-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    padding: 0;
  }

  .main-content-container {
    padding: 78px 34px 0;
    z-index: 2;
  }

  .main-title {
    font-size: 24px;
  }

  .sub-title {
    /*padding-left:30px;*/

    font-size: 14px;
  }

  .download-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .bus-box {
    width: 450px;
    right: -100px;
    bottom: 40px;
    z-index: 1;
  }

  .footer {
    width: 100%;
    padding: 20px 20px;
    margin: 0 auto;
  }

  .certifications {
    flex-direction: row;
  }

  .flexbox {
    flex-direction: row;
  }

  .main-content {
    background-image: url("images/frame_mobile.png");
    background-size: cover;
    background-position: bottom right;
  }

  .store-button img {
    cursor: pointer;
    height: 45px;
  }

  .privacy-link {
    font-size: 14px;
  }

  .company-info {
    font-size: 12px;
  }

  .certifications {
    font-size: 12px;
    gap: 15px;
  }

  .cert-logo {
    height: 35px;
  }

  .copyright {
    font-size: 10px;
    margin-top: 10px;
  }
}

/* 샌디 버스 안내 팝업 */
#sandiNoticePopupLayer {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 9999;
  display: none;
}
#sandiNoticePopupLayer .popup-dim {
  position: absolute;
  background-color: black;
  opacity: 0.7;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  cursor: pointer;
}
#sandiNoticePopupLayer .popup-container {
  position: absolute;
  width: 90%;
  max-width: 560px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #1C1C1C;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}
#sandiNoticePopupLayer .popup-content {
  position: relative;
  cursor: pointer;
}
#sandiNoticePopupLayer .popup-content img {
  display: block;
  width: 100%;
  height: auto;
}
#sandiNoticePopupLayer .popup-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background-color: #1C1C1C;
}
#sandiNoticePopupLayer .popup-footer label {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: #888888;
  cursor: pointer;
}
#sandiNoticePopupLayer .popup-footer input[type="checkbox"] {
  margin-right: 6px;
  width: 16px;
  height: 16px;
  accent-color: #E6007E;
}
#sandiNoticePopupLayer .popup-footer .btn-close {
  padding: 8px 16px;
  background-color: transparent;
  font-size: 14px;
  font-weight: 500;
  color: #888888;
  cursor: pointer;
  border: none;
}
