/* =================================================================
   Page Specific Stylesheet for index.php
   - 메인 랜딩 페이지 전용 스타일 파일입니다.
   ================================================================= */

/* --- 1. Hero Section & Carousel --- */
.hero {
    background-image: var(--primary-gradient);
    padding: 120px 0;
    overflow: hidden;
    color: #fff;
}

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

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #fff;
}

.hero-title .highlight {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0 10px;
    border-radius: 4px;
}

.hero-subtitle {
    font-size: 1.125rem;
    max-width: 500px;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-cta {
    display: flex;
    gap: 1rem;
}
.hero-cta .btn {
    padding: 14px 32px;
    font-size: 1.1rem;
}

.hero-image-area {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1000px; /* 3D 효과를 위한 원근감 */
}

.phone-mockup {
    width: 350px;
    height: 700px;
    background: #111;
    border-radius: 40px;
    padding: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3), inset 0 4px 0 rgba(255,255,255,0.1);
    position: relative;
    transform: rotateY(-10deg); /* 약간의 3D 회전 효과 */
    transition: transform 0.5s ease;
}
.phone-mockup:hover {
    transform: rotateY(0deg);
}

.mockup-screen {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 20px;
    overflow: hidden; /* 중요: 화면 밖으로 나가는 슬라이드를 숨김 */
}

.carousel-wrapper {
    display: flex;
    width: 400%; /* 슬라이드 개수(4개) * 100% */
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1); /* 부드러운 전환 효과 */
}

.carousel-slide {
    width: 25%; /* 100% / 슬라이드 개수(4개) */
    flex-shrink: 0;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* --- 2. Trusted By Section --- */
.trusted-by {
    padding: 40px 0;
    background-color: var(--background-color);
    text-align: center;
}
.trusted-by p {
    margin-bottom: 2rem;
    font-weight: 500;
}
.logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4rem;
}
.logos img {
    height: 30px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}
.logos img:hover {
    opacity: 1;
}

/* --- 3. Detailed Features Section --- */
.feature-detailed {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 80px;
}
.feature-detailed.reverse {
    flex-direction: row-reverse;
}
.feature-image {
    flex: 1;
}
.feature-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}
.feature-text {
    flex: 1;
}
.feature-text h3 {
    margin-bottom: 1rem;
}

/* --- 4. How it Works Section --- */
.how-it-works {
    background-color: var(--surface-color);
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}
.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-image: var(--primary-gradient);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

/* --- 5. FAQ Section --- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid #e0e0e0;
}
.faq-question {
    padding: 1.5rem 1rem;
    cursor: pointer;
    position: relative;
    font-weight: 600;
}
.faq-question::after {
    content: '+';
    position: absolute;
    right: 1rem;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}
.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}
.faq-answer p {
    padding: 0 1rem 1.5rem;
    margin-bottom: 0;
}

/* --- 6. Final CTA Section --- */
.cta-section {
    background-color: var(--background-color);
    text-align: center;
}
.cta-section h2 {
    margin-bottom: 1rem;
}
.cta-section p {
    margin-bottom: 2rem;
}
.cta-section .hero-cta {
    justify-content: center;
}


/* --- 7. Responsive Design (for index.php) --- */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    .hero-content {
        margin-bottom: 3rem;
    }
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-cta {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .feature-detailed, .feature-detailed.reverse {
        flex-direction: column;
        gap: 2rem;
    }
    .steps-grid {
        grid-template-columns: 1fr;
    }
}