@keyframes fade-in {
    0% {
        background-color: rgba(0, 0, 0, 0.5);
    }

    100% {
        background-color: rgba(0, 0, 0, 0.0);
    }
}

@keyframes fade-out {
    0% {
        background-color: rgba(0, 0, 0, 0.0);
    }

    100% {
        background-color: rgba(0, 0, 0, 0.5);
    }
}

/* Image reveal animation */
@keyframes imageReveal {
    0% {
        clip-path: inset(0 100% 0 0);
    }

    100% {
        clip-path: inset(0 0% 0 0);
    }
}

@keyframes imageRevealReverse {
    0% {
        clip-path: inset(0 0% 0 0);
    }

    100% {
        clip-path: inset(0 100% 0 0);
    }
}

@keyframes imageRevealTopToBottom {
    0% {
        clip-path: inset(90% 0 50% 0);
    }

    100% {
        clip-path: inset(0% 0 0 0);
    }
}

@keyframes imageRevealBottomToTop {
    0% {
        clip-path: inset(90% 0 50% 0);
    }

    100% {
        clip-path: inset(0 0 0% 0);
    }
}

/* Hand waving animation */
@keyframes handWave {
    0% {
        transform: rotate(-20deg);
    }

    50% {
        transform: rotate(20deg);
    }

    100% {
        transform: rotate(-20deg);
    }
}




.hero-detail-image {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.section-hero.active .hero-detail-image {
    opacity: 1;
    animation: imageReveal 1.5s ease-in-out forwards;
}

.section-hero.closing .hero-detail-image {
    animation: imageRevealReverse 1.5s ease-in-out forwards;
}



.section-3.active .hero-detail-image,
.section-4.active .hero-detail-image {
    opacity: 1;
    animation: imageRevealBottomToTop 1.5s ease-in-out forwards;
}

.section-3.closing .hero-detail-image,
.section-4.closing .hero-detail-image {
    animation: imageRevealTopToBottom 1.5s ease-in-out forwards;
}

.hero-detail {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    pointer-events: none;
}

.overlay {
    transition: background-color 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}


.section-hero.active .overlay {
    animation: fade-in 1s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.section-hero.closing .overlay {
    animation: fade-out 1s cubic-bezier(0.4, 0, 0.2, 1) both;
}



.section-hero.active .hero-desc,
.section-hero.active .hero-title {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    pointer-events: none;
}

.section-hero.closing .hero-desc,
.section-hero.closing .hero-title {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease 0.5s, visibility 0.5s ease 0.5s;
    pointer-events: auto;
}



.section-hero.active .hero-detail {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.section-hero.closing .hero-detail {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease 1.2s, visibility 0.3s ease 1.2s;
    pointer-events: none;
}


/* Hero 버튼 */
.hero-btn .arrow-text {
    padding: 0.1em 0.3em;
    border-radius: 0.5rem;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.hero-btn .arrow-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--primary);
    z-index: -1;
    transition: height 0.5s ease;
}

.hero-btn:hover .arrow {
    border: none;
    background: var(--primary);
}

.hero-btn:hover .arrow-text::after {
    height: 100%;
}

.hover-icon {
    animation: handWave 2s linear infinite;
    transform-origin: bottom center;
}

.hero-btn:hover .hover-icon {
    animation-play-state: paused;
}

.section {
    width: 100%;
}



.side-scroll {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    -ms-overflow-style: none;
}


.side-scroll-list {
    position: absolute;
    top: 0px;
    left: 0;
    display: flex;
    margin-block-start: 0;
    margin-block-end: 0;
    padding-inline-start: 0;
}

.side-scroll-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    position: relative;
}

.hero-details {
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: opacity 0.5s ease, height 0.5s ease;
    pointer-events: none;
}

.side-scroll-item.more-active .hero-details {
    opacity: 1;
    height: auto;
    pointer-events: auto;
}

.side-scroll-item.more-active .hero-more,
.side-scroll-item.more-active .hero-btn {
    opacity: 0;
    visibility: hidden;
    pointer-events: auto;
}

.side-scroll-item.more-active .list {
    gap: 0;
}

.side-scroll-item.more-active .hero-title {
    padding-bottom: 2rem;
}

/* Market Overview Section */
.market-overview-section {
    position: relative;
    overflow: hidden;
}

/* Market Tab Buttons - Default state (inactive) */
.market-tabs .market-tab-btn {
    cursor: pointer;
    border: none;
    outline: none;
    opacity: 0.4;
}

.market-tab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Active tab button styles */
.market-tabs.tab-active-1 .market-tab-btn[data-tab="tab1"],
.market-tabs.tab-active-2 .market-tab-btn[data-tab="tab2"],
.market-tabs.tab-active-3 .market-tab-btn[data-tab="tab3"] {
    opacity: 1;
    background-color: #28292d !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transform: scale(1.02);
}

.market-chart-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.market-chart-item.active {
    opacity: 1;
    visibility: visible;
}

/* Chart Animation */
.chart-progress {
    transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Bar Chart Arrow Shape */
.arrow-bar {
    background: linear-gradient(to top, #25325e, #4d68c4);
    position: relative;
    clip-path: polygon(0% 0%, 50% 12%, 100% 0%, 100% 100%, 0% 100%);
}

/* Responsive adjustments */
@media (max-width: 767px) {


    .market-tabs {
        margin-bottom: 2rem;
    }

    .market-chart-area {
        min-height: 300px;
    }
}

/* FAQ Section */
.faq-item {
    background-color: #42475d;
    border-radius: 32px;
    transition: all 0.3s ease;
}

.faq-item.active {
    background-color: #28292d;
}


/* FAQ 답변 컨테이너 */
.faq-answer {
    /* 핵심: transition 대상을 명확히 지정하세요 */
    transition: all 0.5s ease-in;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* 활성화 상태 (JS가 클래스를 붙였을 때) */
.faq-item.active .faq-answer {
    min-height: 150px;
    max-height: 500px; /* 내용물이 충분히 들어갈 정도의 높이 */
    opacity: 1;
}

/* FAQ 답변 내부 p 태그 스타일 */
.faq-answer p {
    line-height: 36px;
    margin: 0;
}

/* 아이콘 제어 */
.faq-icon i {
    transition: all 0.3s ease-in-out;
}

.faq-icon .ri-subtract-line {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-90deg); /* 겹쳐있을 때 효과 */
}

.faq-icon .ri-add-line {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg);
}

/* 활성화 시 아이콘 교체 */
.faq-item.active .faq-icon .ri-subtract-line {
    opacity: 0.63;
    transform: translate(-50%, -50%) rotate(0deg);
}

.faq-item.active .faq-icon .ri-add-line {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(90deg);
}



/* CTA Character Animation */
@keyframes float-up-down {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.cta-character {
    animation: float-up-down 2s ease-in-out infinite;
}

.section-hero .overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);

}

.section-1 {
    width: 100%;
    height: 100%;
    position: relative;
    /* position: fixed;
    left: 0;
    top: 0;

    z-index: 5;
    will-change: clip-path;
    clip-path: circle(120% at 50% 50%); */
}

.section-2 {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    top: 50%;
    width: 100%;
    height: 100%;
    z-index: 5;
    will-change: clip-path;
    clip-path: circle(240px at 50% 50%);
}

@media (max-width: 1024px) {
    .section-2 {
        clip-path: circle(180px at 50% 50%);
    }
}

@media (max-width: 767px) {
    .section-2 {
        clip-path: circle(150px at 50% 50%);
    }
}

/* ad-bg scale 애니메이션 */
@keyframes scale-pulse {

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

    50% {
        transform: scale(1.1);
    }
}

.ad-bg {
    animation: scale-pulse 10s ease-in-out infinite;
}

/* 업종 선택 라디오 버튼 스타일 */
.industry-radio {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

.industry-radio:checked {
    background-color: #25325e;
    border-color: #25325e;
}

.industry-radio:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background-color: white;
    border-radius: 50%;
}

/* 개인정보 약관 팝업 */
#privacy-modal {
    backdrop-filter: blur(4px);
}

#privacy-modal .prose {
    font-family: 'Archivo', sans-serif;
    line-height: 1.8;
}

#privacy-modal .prose p {
    margin-bottom: 1rem;
}

#privacy-modal .prose h1,
#privacy-modal .prose h2,
#privacy-modal .prose h3 {
    font-family: 'Archivo Black', sans-serif;
    font-weight: 900;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

#captcha #captcha_info{
    width: 100%;
}
#captcha{
        display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    position: relative;
}