/* [SECTION MASTER] 모든 섹션의 기본 그릇 */
.main-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* [HEIGHT TYPES] 세로 크기 표준화 */
/* 1. 화면에 꽉 차는 섹션 (Home, Intro 등) */
.h-full {
  height: 100vh;
}

/* 2. 일반적인 고정 높이 섹션 (About, Biz 등) */
.h-fixed {
  height: 800px; /* 표준 높이 */
}

/* 3. 높이가 유동적인 섹션 (Contact 등) */
.h-auto {
  padding: 100px 0;
  min-height: 400px;
}

/* [CONTAINER] 가로 크기 표준화 */
.main-container {
  width: 100%;
  max-width: 1200px; /* 메인 페이지 표준 폭 */
  margin: 0 auto;
  padding: 0 20px;
  height: 100%; /* 부모 섹션 높이 상속 */
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
}

/* ==========================================
   1.HOME
   ========================================= */
.main-home-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 54px;
}

.main-home-title {
  color: #121212;
  text-align: center;
  font-size: 80px;
  font-weight: 600;
  line-height: 120%;
  letter-spacing: -2px;
}

.main-home-red-letter {
  color: #e60000;
}

.main-home-store-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 54px;
}

.main-home-store-btn a img {
  height: 55px;
}

.main-home-buyfuture-text {
  z-index: 2;
}

.main-home-buyfuture-text img {
  height: 132.29px;
}

/* ==========================================
   2.INTRO
   ========================================= */
#main-intro.fadeUp {
  background: url(../img/mainIntroBg.png) no-repeat center center;
  background-size: cover;
  animation: fadeUp 1s ease-in-out;
}

.main-intro-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 600px;
  text-align: center;
}

.main-intro-subtitle {
  color: #121212;
  text-align: center;
  font-size: 54px;
  font-weight: 400;
  line-height: 160%; /* 86.4px */
  letter-spacing: -1.35px;
  opacity: 0;
}

.main-intro-title {
  color: #121212;
  text-align: center;
  font-size: 72px;
  font-weight: 600;
  line-height: 160%; /* 115.2px */
  letter-spacing: -1.8px;
  opacity: 0;
}

/* ==========================================
   3.ABOUT
   ========================================= */
#main-about {
  width: 100%;
  position: relative;
  overflow: visible !important; /* sticky 작동을 위해 필수 */
  display: block; /* flex 대신 block으로 설정하여 높이 확보 */
}
.main-about-container {
  width: 100%;
  max-width: 1440px;
  height: 100vh; /* calc 대신 100vh로 깔끔하게 */
  margin: 0 auto;
  position: sticky;
  top: 0;
  overflow: hidden;
  z-index: 2;
}

/* 슬라이드들이 겹쳐 있어야 하므로 높이/너비 꽉 채움 */
.main-about-track {
  width: 100%;
  height: 100%;
  position: relative;
}

.main-about-slide {
  position: absolute;
  top: 100px;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 0 120px 0 220px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  pointer-events: none;
  z-index: 0;
}

.main-about-txt {
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.5s ease;
  padding-top: 80px;
}

.main-about-txt h2 {
  color: #f00;
  font-size: 32px;
  font-weight: 600;
  line-height: 140%; /* 56px */
  letter-spacing: -0.32px;
}

.main-about-txt h3 {
  color: #111;
  font-size: 40px;
  font-weight: 700;
  line-height: 140%; /* 56px */
  letter-spacing: -0.4px;
}

.main-about-txt p {
  margin-top: 12px;
  color: #555;
  font-size: 16px;
  font-weight: 450;
  line-height: 160%; /* 25.6px */
  letter-spacing: -0.16px;
}

.main-about-img {
  position: relative;
  transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  opacity: 0;
  margin-right: 100px;
  transform: scale(0.8) translateX(100px);
}

.main-about-img img {
  width: 360px;
}

.main-about-slide.active {
  z-index: 10;
  pointer-events: auto;
}

.main-about-slide.active .main-about-txt {
  opacity: 1;
  transform: translateY(0);
}

.main-about-slide.active .main-about-img {
  opacity: 1;
  transform: scale(1) translateX(0);
  filter: blur(0);
  z-index: 10;
}

.main-about-slide.prev .main-about-img {
  opacity: 0.4;
  transform: scale(0.85) translateX(-170px);
  filter: blur(2px);
  z-index: 5;
}

.main-about-slide.next .main-about-img {
  opacity: 0.4;
  transform: scale(0.85) translateX(170px);
  filter: blur(2px);
  z-index: 4;
}

.main-about-controls {
  position: absolute;
  left: 220px;
  bottom: 200px;
  display: flex;
  gap: 8px;
  z-index: 20;
}

.main-about-controls button {
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background: #dadada;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: #121212;
  font-size: 14px;
  font-weight: 600;
  line-height: 160%; /* 22.4px */
  letter-spacing: -0.35px;
}

.main-about-controls button:disabled {
  cursor: not-allowed;
  background: #f4f4f4;
  color: #b1b1b1;
}

.main-about-controls-mobile {
  display: none;
}

/* ==========================================
   4.BFF
   ========================================= */
#main-bffs {
  opacity: 0;
  transform: translateY(80px);
  transition:
    opacity 2s ease-out,
    transform 2s ease-out;
}

#main-bffs.fade-in-up {
  opacity: 1;
  transform: translateY(0);
}
.main-bffs-container {
  max-width: 1440px;
  padding: 100px 220px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.main-bffs-img img {
  width: 440px;
}

.main-bffs-text {
  padding: 20px 0;
}

.main-bffs-text h2 {
  color: #f00;
  font-size: 32px;
  font-weight: 600;
  line-height: 140%; /* 44.8px */
  letter-spacing: -0.32px;
}

.main-bffs-text h3 {
  color: #111;
  font-size: 40px;
  font-weight: 700;
  line-height: 140%; /* 56px */
  letter-spacing: -0.4px;
}

.main-bffs-text p {
  margin-top: 16px;
  color: #555;
  font-size: 16px;
  font-weight: 450;
  line-height: 160%; /* 25.6px */
  letter-spacing: -0.16px;
}

.main-bffs-img-mobile img {
  display: none;
}

.main-bffs-view-detail {
  width: fit-content;
  margin-top: 32px;
  padding: 6px 20px 6px 28px;
  border-radius: 9999px;
  background: #e60000;
  font-size: 16px;
  font-weight: 600;
  line-height: 160%; /* 25.6px */
  letter-spacing: -0.4px;
}

.main-bffs-view-detail a {
  color: #fff;
}

/* ==========================================
   5.BIZ
   ========================================= */
#main-biz {
  /* 섹션 자체는 투명도를 풀고, 내부 요소들의 등장만 관리합니다. */
  width: 100%;
  position: relative;
  overflow: hidden;
}
.main-biz-container {
  max-width: 1440px;
  padding: 100px 220px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
}

.main-biz-column {
  display: flex;
  flex-direction: column;
}

.main-biz-column img {
  width: 400px;
}

.main-biz-text {
  margin-bottom: 160px;
  padding: 40px 0;
}

.main-biz-text h2 {
  color: #f00;
  font-size: 32px;
  font-weight: 600;
  line-height: 140%; /* 44.8px */
  letter-spacing: -0.32px;
}

.main-biz-text h3,
.main-biz-text-second h3 {
  color: #111;
  font-size: 40px;
  font-weight: 700;
  line-height: 140%; /* 56px */
  letter-spacing: -0.4px;
}

.main-biz-text p,
.main-biz-text-second p {
  margin-top: 16px;
  color: #555;
  font-size: 16px;
  font-weight: 450;
  line-height: 160%; /* 25.6px */
  letter-spacing: -0.16px;
}

.main-biz-text-second {
  padding: 80px 0 100px 0;
}

.main-biz-view-detail {
  width: fit-content;
  margin-top: 32px;
  padding: 6px 20px 6px 28px;
  border-radius: 9999px;
  background: #e60000;
  font-size: 16px;
  font-weight: 600;
  line-height: 160%; /* 25.6px */
  letter-spacing: -0.4px;
}

.main-biz-view-detail a {
  color: #fff;
}

.main-biz-container-mobile {
  display: none;
}

/* ==========================================
   6.CONTACT
   ========================================= */

.main-contact-container {
  max-width: 1440px;
  padding: 100px 120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.main-contact-container img {
  width: 210px;
}

.main-contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.main-contact-title {
  color: #111;
  font-size: 32px;
  font-weight: 700;
  line-height: 140%; /* 44.8px */
  letter-spacing: -0.32px;
}

.main-contact-subtitle {
  color: #555;
  font-size: 16px;
  font-weight: 450;
  line-height: 160%; /* 25.6px */
  letter-spacing: -0.16px;
}

.main-contact-button {
  width: fit-content;
  padding: 8px 20px;
  border-radius: 9999px;
  background: #ffdada;
}

.main-contact-button p {
  color: #e60000;
  font-size: 16px;
  font-weight: 600;
  line-height: 160%; /* 25.6px */
  letter-spacing: -0.4px;
}
