/* --- Global Styles & Variables --- */
:root {
    --bg-color: #1a1a1a; /* 어두운 배경색 */
    --surface-color: #2c2c2c; /* 카드 등 표면 색상 */
    --primary-text-color: #f0f0f0; /* 기본 텍스트 색상 */
    --secondary-text-color: #a0a0a0; /* 보조 텍스트 색상 */
    --accent-color: #c5a47e; /* 포인트 골드 색상 */
    --accent-color-rgb: 197, 164, 126;
    --border-color: #444444; /* 테두리 색상 */
    --pro-color: #c5a47e; /* 프로 배지 색상 */

    --font-primary: 'Noto Sans KR', sans-serif;
    --font-secondary: 'Poppins', sans-serif;

    --container-width: 1140px;
    --border-radius: 12px;
    --transition-speed: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-color);
    color: var(--primary-text-color);
    line-height: 1.8;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    color: var(--primary-text-color);
    line-height: 1.3;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 2rem; }
h3 { font-size: 1.6rem; margin-bottom: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--secondary-text-color);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--primary-text-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section {
    padding: 100px 0;
}

.section-title {
    margin-bottom: 1.5rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--secondary-text-color);
    margin-bottom: 4.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Header & Navigation --- */
header {
    background-color: rgba(26, 26, 26, 0.8); /* 반투명 배경 */
    backdrop-filter: blur(10px); /* 블러 효과 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

nav.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-text-color);
    display: flex;
    align-items: center;
}

.logo i {
    margin-left: 8px;
    color: var(--accent-color);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
}

nav ul li a {
    font-weight: 500;
    color: var(--secondary-text-color);
    position: relative;
    padding: 5px 0;
    transition: color var(--transition-speed);
}

nav ul li a:hover {
    color: var(--primary-text-color);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-speed);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.cta-button {
    display: inline-block;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    transition: all var(--transition-speed);
    cursor: pointer;
    font-family: var(--font-secondary);
    border: 2px solid var(--accent-color);
    background-color: transparent;
    color: var(--accent-color);
}

.cta-button:hover, .primary-cta {
    background-color: var(--accent-color);
    color: var(--bg-color);
    box-shadow: 0 5px 15px rgba(var(--accent-color-rgb), 0.2);
}

.nav-cta {
    padding: 10px 25px;
    border-width: 1px;
}

.nav-cta:hover {
    color: #000;
}

/* --- Hero Section --- */
#hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    text-align: center;
    /* background: url('https://images.unsplash.com/photo-1511379938547-c1f69419868d?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3') no-repeat center center/cover; */
    z-index: 1;
    position: relative; /* 자식 요소(video)의 기준점이 되도록 position 속성 확인 */
    overflow: hidden; /* #hero 섹션 내부에서만 요소가 보이도록 하여, 넘치는 부분을 잘라냅니다. */
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2; /* hero-overlay(-1)보다 뒤에 위치 */
    object-fit: cover; /* background-size: cover와 동일한 역할 */
}


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(26, 26, 26, 1) 0%, rgba(26, 26, 26, 0.5) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
}

#hero h1 {
    color: var(--primary-text-color);
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

#hero .subtitle {
    font-size: 1.2rem;
    color: var(--secondary-text-color);
    margin: 2rem 0 3rem 0;
}

.hero-cta {
    padding: 15px 45px;
    font-size: 1.1rem;
}

.hero-cta i {
    margin-left: 10px;
    transition: transform var(--transition-speed);
}

.hero-cta:hover i {
    transform: translateX(5px);
}

/* --- Hero Section Footer (Powered by & Scroll Down) --- */
.hero-footer {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 2;
}

.powered-by {
    font-family: var(--font-secondary);
    color: var(--secondary-text-color);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 20px;
}

.powered-by strong {
    font-weight: 700;
    color: var(--primary-text-color);
}

.scroll-down-indicator {
    display: inline-block;
    color: var(--primary-text-color);
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

/* 스크롤 다운 아이콘을 위한 바운스 애니메이션 */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* --- How It Works Section --- */
.steps-container {
    display: flex;
    justify-content: space-around;
    gap: 40px;
    margin-top: 5rem;
}

.step {
    text-align: center;
    max-width: 320px;
}

.step-icon-wrapper {
    width: 80px;
    height: 80px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: all var(--transition-speed);
}

.step-icon-wrapper i {
    font-size: 2.5rem;
    color: var(--accent-color);
    transition: transform var(--transition-speed);
}

.step:hover .step-icon-wrapper {
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(var(--accent-color-rgb), 0.2);
}

.step:hover .step-icon-wrapper i {
    transform: scale(1.1);
}

.step h3 {
    color: var(--primary-text-color);
    margin-bottom: 1rem;
}

/* --- Pricing Section --- */
.pricing-section {
    background-color: #111; /* 살짝 다른 배경색 */
}

.pricing-table {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.pricing-plan {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-speed), border-color var(--transition-speed), box-shadow var(--transition-speed);
    display: flex;
    flex-direction: column;

}

.pricing-plan:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.pricing-plan h3 {
    font-size: 1.4rem;
    color: var(--primary-text-color);
    margin-bottom: 1.5rem;
}

.price {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 2rem;
}

.price .currency {
    font-size: 1rem;
    font-weight: 400;
    margin-left: 5px;
    color: var(--secondary-text-color);
}

.pricing-plan ul {
    list-style: none;
    margin-bottom: 2.5rem;
    text-align: left;
}

.pricing-plan ul li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    color: var(--secondary-text-color);
    font-size: 0.95rem;
}

.pricing-plan ul li i {
    color: var(--accent-color);
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.pricing-plan .recommended-for {
    font-size: 0.9rem;
    color: var(--secondary-text-color);
    margin-bottom: 2rem;
    min-height: 40px; /* 레이아웃 정렬을 위해 */
}

.pricing-plan .cta-button {
    margin-top: auto; /* 버튼을 항상 카드 맨 아래로 밀어냅니다. */
}

.popular-badge, .pro-badge {
    position: absolute;
    top: -1px;
    right: 20px;
    background-color: var(--accent-color);
    color: #000;
    padding: 25px 10px 5px;
    font-size: 0.8rem;
    font-weight: 700;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 85%, 0 100%);
}

.pro-badge {
    background-color: var(--pro-color);
}

.pricing-note {
    text-align: center;
    margin-top: 3rem;
    font-size: 0.9rem;
    color: var(--secondary-text-color);
}

/* --- Examples Section --- */
.examples-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.example-item {
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.example-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.example-image-wrapper {
    height: 220px;
    overflow: hidden;
}

.example-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.example-item:hover img {
    transform: scale(1.05);
}

.example-content {
    padding: 25px;
}

.example-item h3 {
    font-size: 1.3rem;
    color: var(--primary-text-color);
    display: flex;
    align-items: center;
}

.example-item h3 i {
    margin-right: 10px;
    color: var(--accent-color);
}

.example-item p {
    font-size: 0.95rem;
    padding-bottom: 1rem;
}

.audio-player {
    width: 100%;
    height: 45px;
    filter: invert(1) hue-rotate(180deg) saturate(0.5) brightness(1.2);
}

.examples-note {
    text-align: center;
    margin-top: 3rem;
    font-size: 0.9rem;
    color: var(--secondary-text-color);
}

/* --- Testimonials Section --- */
.testimonials-section {
    background-color: var(--bg-color);
}

.testimonial-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial {
    background-color: var(--surface-color);
    padding: 30px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-color);
}

.testimonial p {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    color: var(--primary-text-color);
}

.testimonial p::before {
    content: '\f10d'; /* Font Awesome quote-left */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: -15px;
    top: -10px;
    font-size: 1.5rem;
    color: var(--accent-color);
    opacity: 0.3;
}

.testimonial .author {
    font-weight: 600;
    text-align: right;
    color: var(--secondary-text-color);
}

/* --- Final CTA Section --- */
.cta-final-section {
    background-color: #111;
    text-align: center;
}

.cta-final-section h2 {
    font-size: 2.2rem;
}

.cta-final-section p {
    margin: 1.5rem 0 2.5rem;
}

/* --- Guidance Notes --- */
.guidance-notes {
    margin-top: 4rem;
    padding: 40px;
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.guidance-notes h3 {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guidance-notes h3 i {
    margin-right: 12px;
    color: var(--accent-color);
}

.guidance-notes ul {
    list-style: none;
}

.guidance-notes ul li {
    margin-bottom: 1rem;
    padding-left: 30px;
    position: relative;
    color: var(--secondary-text-color);
}

.guidance-notes ul li::before {
    content: '\f058'; /* Font Awesome check-circle solid */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 5px;
    color: var(--accent-color);
    font-size: 1rem;
}

.guidance-notes ul li strong {
     color: var(--primary-text-color);
     font-weight: 600;
}

/* --- Footer --- */
footer {
    background-color: #111;
    color: var(--secondary-text-color);
    padding: 80px 0 30px 0;
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-left { flex-basis: 30%; }
.footer-right { flex-basis: 65%; display: flex; justify-content: space-between; gap: 30px;}

.footer-left .logo {
    color: var(--primary-text-color);
    margin-bottom: 1.5rem;
}

.footer-links { margin: 1.5rem 0; }
.footer-links a { color: var(--secondary-text-color); margin: 0 10px; }
.footer-links a:first-child { margin-left: 0; }
.footer-links a:hover { color: var(--primary-text-color); }

.social-links a {
    color: var(--secondary-text-color);
    font-size: 1.5rem;
    margin-right: 20px;
}

.footer-section h4 {
    color: var(--primary-text-color);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.footer-right p {
    margin-bottom: 0.7rem;
    color: var(--secondary-text-color);
}

.footer-right a {
    color: var(--secondary-text-color);
    text-decoration: none;
}
.footer-right a:hover {
    color: var(--primary-text-color);
    text-decoration: underline;
}

.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    color: #777;
}

/* --- Responsive Design --- */
@media (max-width: 1200px) {
    .pricing-table, .examples-grid, .testimonial-slider {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 992px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }
    .section { padding: 80px 0; }

    nav ul { gap: 25px; }
    .nav-cta { display: none; }

    .footer-content, .footer-right { flex-direction: column; }
    .footer-left, .footer-right { flex-basis: 100%; text-align: center; }
    .social-links { justify-content: center; }
    .footer-links { display: flex; justify-content: center; flex-wrap: wrap; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    #hero h1 { font-size: 2.8rem; }
    h2 { font-size: 2rem; }

    nav ul { display: none; } /* 모바일 메뉴는 JS로 구현 필요 */

    #hero { min-height: 600px; }

    .steps-container { flex-direction: column; align-items: center; gap: 50px; }
    
    .pricing-table, .examples-grid, .testimonial-slider {
        grid-template-columns: 1fr;
    }
}

/* --- Scroll Animation --- */
.section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

#creation-process {
    background-color: #111;
}

.process-steps-wrapper {
    margin-top: 6rem;
    display: flex;
    flex-direction: column;
    gap: 8rem; /* 각 단계 사이의 큰 간격 */
}

.process-step-alt {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 5rem;
}

/* 짝수 번째 스텝에서 이미지와 텍스트 순서 변경 */
.process-step-alt.reverse .process-image {
    order: 2;
}

.process-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.process-image video { /* img를 video로 변경 */
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.process-image:hover video { /* img를 video로 변경 */
    transform: scale(1.05);
}


.process-text .step-number {
    font-size: 4rem;
    font-weight: 700;
    font-family: var(--font-secondary);
    color: rgba(var(--accent-color-rgb), 0.15); /* 투명한 악센트 컬러 */
    line-height: 1;
}

.process-text h3 {
    font-size: 2.2rem;
    color: var(--primary-text-color);
    margin-top: -1.5rem; /* 숫자 위로 살짝 겹치게 */
    margin-bottom: 1.5rem;
}

.process-text h3 span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--accent-color);
    display: block;
    margin-top: 0.5rem;
    font-family: var(--font-secondary);
    letter-spacing: 1px;
}

.process-text p {
    font-size: 1.1rem;
    color: var(--secondary-text-color);
    margin-bottom: 2.5rem;
}

.keywords {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px; /* 각 항목 사이의 간격 */
}

.keywords li {
    background-color: transparent; /* 배경색 제거 */
    border-radius: 8px;
    padding: 15px 0; /* 패딩 조정 */
    font-size: 1rem;
    color: var(--primary-text-color);
    border: none; /* 테두리 제거 */
    display: flex;
    align-items: flex-start; /* 아이콘을 상단에 정렬 */
    transition: none; /* 기존 호버 효과 제거 */
}

/* 기존 호버 효과 제거 */
.keywords li:hover {
    transform: none;
    border-color: transparent;
}

.keywords li i {
    color: var(--accent-color);
    margin-right: 12px;
    margin-top: 5px; /* 텍스트와의 세로 정렬을 위한 미세 조정 */
}

.keyword-item {
    display: flex;
    flex-direction: column; /* 텍스트를 세로로 쌓음 */
}

.keyword-item strong {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-text-color);
    margin-bottom: 4px; /* 영문과 한글 사이 간격 */
    line-height: 1.4;
}

.keyword-item .keyword-desc {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--secondary-text-color);
    line-height: 1.4;
}

/* --- 반응형: Creation Process Section --- */
@media (max-width: 992px) {
    .process-step-alt {
        grid-template-columns: 1fr; /* 한 줄로 쌓기 */
        gap: 3rem;
    }
    .process-step-alt.reverse .process-image {
        order: 0; /* 모바일에선 순서 고정 (이미지가 항상 위) */
    }
}
@media (max-width: 768px) {
    .keywords {
        grid-template-columns: 1fr; /* 모바일에서는 키워드를 한 줄로 */
    }
    .process-text h3 {
        font-size: 1.8rem;
    }
}


/* --- Lyrics Button & Modal --- */

/* 가사 보기 버튼 */
.lyrics-button {
    display: block;
    width: 100%;
    margin-top: 15px;
    padding: 10px 15px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--accent-color);
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.lyrics-button:hover {
    background-color: var(--accent-color);
    color: var(--bg-color);
    border-color: var(--accent-color);
}

.lyrics-button i {
    margin-right: 8px;
}

/* 팝업(모달) 컨테이너 */
#lyrics-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* 기본 상태: 숨김 */
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-speed);
}

/* 활성화 상태: 보임 */
#lyrics-modal-container.active {
    opacity: 1;
    pointer-events: auto;
}

/* 뒷 배경 오버레이 */
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

/* 팝업 콘텐츠 박스 */
.modal-content {
    position: relative;
    background-color: var(--surface-color);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    
    /* 나타나는 애니메이션 */
    transform: scale(0.95);
    transition: all var(--transition-speed);
}

#lyrics-modal-container.active .modal-content {
    transform: scale(1);
}

/* 닫기 버튼 */
.close-modal-button {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--secondary-text-color);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: color var(--transition-speed);
}

.close-modal-button:hover {
    color: var(--primary-text-color);
}

/* 팝업 제목 */
#modal-title {
    font-family: var(--font-secondary);
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

/* 가사 텍스트 */
#modal-lyrics {
    font-family: var(--font-primary);
    color: var(--primary-text-color);
    white-space: pre-wrap; /* 자동 줄바꿈 */
    line-height: 2;
    font-size: 1rem;
}

/* --- FAQ Section --- */
#faq {
    background-color: var(--bg-color);
}
.faq-accordion {
    max-width: 800px;
    margin: 4rem auto 0;
    border-top: 1px solid var(--border-color);
}
.faq-item {
    border-bottom: 1px solid var(--border-color);
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
}
.faq-question span {
    font-family: var(--font-secondary);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-text-color);
}
.faq-question i {
    color: var(--accent-color);
    transition: transform var(--transition-speed);
}
.faq-item.active .faq-question i {
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}
.faq-answer p {
    padding: 0 10px 25px 10px;
    color: var(--secondary-text-color);
    line-height: 1.8;
    margin-bottom: 0;
}

/* --- Contact Channels --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* 왼쪽 버튼 영역을 더 넓게 */
    align-items: center;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

.contact-channels {
    display: flex;
    flex-direction: column; /* 버튼들을 세로로 쌓음 */
    gap: 15px;
}

.contact-button {
    width: 100%; /* 부모 컨테이너에 꽉 차게 */
    min-width: unset; /* 기존의 최소 너비 제거 */
    font-size: 1.1rem;
    padding: 15px 20px;
    border: 1px solid var(--border-color);
    background-color: var(--surface-color);
    color: var(--primary-text-color);
    display: flex; /* 아이콘과 텍스트 정렬 */
    align-items: center;
    justify-content: center;
}

.contact-button:hover {
    border-color: var(--accent-color);
    background-color: var(--accent-color);
    color: var(--bg-color);
    transform: translateY(-3px);
}

.contact-button i {
    margin-right: 10px;
}

/* 카카오톡 버튼 특별 스타일 */
.contact-button.kakao {
    background-color: #FEE500;
    border-color: #FEE500;
    color: #191919;
    font-weight: 700;
}
.contact-button.kakao:hover {
    background-color: #FFDD00;
    border-color: #FFDD00;
    color: #000;
}

/* QR 코드 영역 스타일 */
.contact-qr {
    text-align: center;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--surface-color);
}

.contact-qr img {
    max-width: 300px;
    width: 100%;
    border-radius: 8px;
}

.contact-qr p {
    font-size: 0.9rem;
    color: var(--secondary-text-color);
    margin-top: 1rem;
    margin-bottom: 0;
}

/* 반응형: Contact Section */
@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr; /* 모바일에서는 한 줄로 쌓기 */
        gap: 2rem;
    }
}

/* --- Testimonials Section (New Carousel Design) --- */
#testimonials {
    background-color: #111;
}

.testimonial-carousel-wrapper {
    position: relative;
    margin-top: 4rem;
}

.testimonial-carousel {
    display: flex;
    gap: 20px;
    padding: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.testimonial-carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari, and Opera */
}

.testimonial-image-card {
    flex: 0 0 auto; /* 자식 요소의 크기를 고정 */
    width: 300px; /* 각 카드의 너비 */
    height: auto;
    scroll-snap-align: center; /* 스크롤 시 중앙에 정렬 */
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform var(--transition-speed);
}
.testimonial-image-card:hover {
    transform: translateY(-5px);
}
.testimonial-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 좌우 네비게이션 버튼 */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition-speed);
    z-index: 10;
}
.carousel-nav:hover {
    background-color: var(--accent-color);
    color: #000;
}
.carousel-nav.prev {
    left: -25px;
}
.carousel-nav.next {
    right: -25px;
}

/* --- Image Lightbox Modal --- */
#image-lightbox-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-speed);
}
#image-lightbox-container.active {
    opacity: 1;
    pointer-events: auto;
}
.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    transform: scale(0.95);
    transition: transform var(--transition-speed);
}
#image-lightbox-container.active .lightbox-content {
    transform: scale(1);
}
#lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.7);
}
.close-lightbox-button {
    position: absolute;
    top: -15px;
    right: -15px;
    background: var(--bg-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Pricing Section (Price Style Update) --- */

.price-wrapper {
    margin-bottom: 2rem;
    min-height: 80px; /* 모든 가격 표시 영역의 최소 높이를 확보하여 정렬 유지 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.original-price {
    font-size: 1.2rem;
    color: var(--secondary-text-color);
    text-decoration: line-through; /* 취소선 효과 */
    opacity: 0.7;
    font-weight: 400;
}

.price {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0; /* 기존 마진 제거 */
}

/* BEST, PRO 플랜의 가격을 더 돋보이게 */
.pricing-plan.popular .price,
.pricing-plan.pro .price {
    font-size: 3.2rem;
    color: var(--primary-text-color);
    text-shadow: 0 0 15px rgba(var(--accent-color-rgb), 0.5);
}

.pricing-plan.popular .original-price,
.pricing-plan.pro .original-price {
    font-size: 1.4rem;
}

/* --- New Service & Process Section --- */
#pricing { /* ID는 그대로 사용하여 네비게이션 링크 유지 */
    background-color: #111;
}

.service-process-cards {
    display: flex;
    flex-direction: column;
    gap: 4rem; /* 각 서비스 카드 사이의 간격 */
}

.service-card {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-speed);
}
.service-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.service-header {
    text-align: center;
    margin-bottom: 3rem;
}

.service-header h3 {
    font-size: 2rem;
    color: var(--primary-text-color);
    margin-bottom: 1rem;
}

.service-header .service-description {
    font-size: 1.1rem;
    color: var(--secondary-text-color);
    max-width: 600px;
    margin: 0 auto 1.5rem auto;
    line-height: 1.7;
}

.service-header .service-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.service-process-flow h4 {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--secondary-text-color);
    font-weight: 500;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.flow-icon {
    width: 70px;
    height: 70px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    font-size: 2rem;
    color: var(--accent-color);
}

.flow-item p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--secondary-text-color);
}

.flow-item p b {
    color: var(--primary-text-color);
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
    font-size: 1rem;
}

/* --- New Vertical Process Flow Style --- */
.service-process-flow h4 {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--secondary-text-color);
    font-weight: 500;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.service-step-list {
    display: flex;
    flex-direction: column;
    align-items: center; /* 모든 항목을 중앙 정렬 */
    gap: 0.5rem; /* 각 항목 사이의 최소 간격 */
}

.service-step-item {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 500px; /* 가독성을 위한 최대 너비 */
    padding: 15px;
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.service-step-item .step-icon { /* 아이콘 스타일 재사용 및 크기 조정 */
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
    border-width: 1px;
    margin: 0;
}

.step-text {
    text-align: left;
}
.step-text h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-text-color);
    margin: 0 0 4px 0;
}
.step-text p {
    font-size: 0.9rem;
    color: var(--secondary-text-color);
    margin: 0;
    line-height: 1.6;
}

.step-connector {
    font-size: 1.2rem;
    color: var(--accent-color);
    padding: 0.5rem 0;
}

.service-card .cta-button {
    display: block;
    width: fit-content;
    margin: 3.5rem auto 0 auto;
    padding: 12px 40px;
    font-size: 1.1rem;
}

/* BEST, PRO 뱃지 */
.popular-badge, .pro-badge {
    position: absolute;
    top: -1px;
    right: 20px;
    background-color: var(--accent-color);
    color: #000;
    padding: 25px 10px 5px;
    font-size: 0.8rem;
    font-weight: 700;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 85%, 0 100%);
}
.pro-badge { background-color: var(--pro-color); }


/* 반응형: 서비스 카드 */
@media (min-width: 992px) {
    .footer-left { flex-basis: 30%; text-align: left;}
    .footer-right { flex-basis: 65%; }
}
.footer-left .logo {
    margin-bottom: 1.5rem;
    justify-content: center;
}
@media (min-width: 992px) {
    .footer-left .logo { justify-content: flex-start; }
}
.footer-links { margin: 1.5rem 0; }
.footer-links a { margin: 0 10px; }
.social-links { 
    display: flex;
    justify-content: center;
    gap: 20px;
}
@media (min-width: 992px) {
    .social-links { justify-content: flex-start; }
}

/* --- PRO Plan Card Enhancement --- */
.pro-package-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.pro-package-item {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    background-color: var(--surface-color);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.pro-package-item.foundation {
    border-style: dashed;
    background-color: rgba(var(--accent-color-rgb), 0.05);
}

.pro-package-item .flow-icon {
    flex-shrink: 0;
    margin: 0;
}

.package-text h4 {
    text-align: left;
    margin: 0 0 5px 0;
    color: var(--primary-text-color);
    font-size: 1.1rem;
}

.package-text p {
    text-align: left;
    margin: 0;
    font-size: 0.9rem;
    color: var(--secondary-text-color);
}

.package-plus-icon {
    font-size: 1.2rem;
    color: var(--accent-color);
}


@keyframes scroll-logos {
    from {
        transform: translateX(0%);
    }
    to {
        transform: translateX(-100%);
    }
}

.distribution-logo-wrapper {
    margin-top: 3rem;
    text-align: center;
}

.distribution-logo-wrapper p {
    font-size: 0.9rem;
    color: var(--secondary-text-color);
    margin-bottom: 1.5rem;
}

.logo-grid ul {
    display: flex;
    flex-wrap: wrap; /* 로고가 많아지면 다음 줄로 자동 줄바꿈 */
    justify-content: center; /* 로고들을 중앙 정렬 */
    align-items: center;
    gap: 30px; /* 로고 사이의 간격 */
    list-style: none;
    padding: 0;
    margin: 0;
}

.logo-grid li {
    flex: 0 0 auto;
}

.logo-grid img {
    height: 25px; /* 로고 높이 통일 */
    width: auto;
    filter: grayscale(100%) opacity(0.6);
    transition: all var(--transition-speed);
}

/* 마우스를 올렸을 때 컬러로 변경 (기존 효과 유지) */
.logo-grid:hover img {
    filter: grayscale(0%) opacity(1);
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 2rem; }
    nav ul, .nav-cta { display: none; }
    #hero {
        min-height: auto;
        padding: 150px 0;
        height: auto;
    }
    .service-card {
        padding: 30px 20px;
    }
    .service-header h3 {
        font-size: 1.8rem;
    }
    .contact-wrapper,
    .process-step-alt,
    .examples-grid {
        grid-template-columns: 1fr;
    }
    .process-step-alt.reverse .process-image {
        order: 0;
    }
    .carousel-nav { display: none; }
}

/* CTA 버튼 강조 애니메이션 */
@keyframes cta-pulse {
    0% { box-shadow: 0 0 0 0 rgba(197,164,126, 0.7); }
    70% { box-shadow: 0 0 0 12px rgba(197,164,126, 0); }
    100% { box-shadow: 0 0 0 0 rgba(197,164,126, 0); }
  }
  
  .cta-button,
  .contact-button {
    position: relative;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(90deg, #c5a47e 0%, #ffe2b0 100%);
    color: #191919 !important;
    border: none;
    box-shadow: 0 4px 20px rgba(197,164,126,0.15);
    animation: cta-pulse 2.5s infinite;
    transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
  }
  
  .cta-button:hover,
  .contact-button:hover {
    transform: scale(1.07);
    background: linear-gradient(90deg, #ffe2b0 0%, #c5a47e 100%);
    box-shadow: 0 8px 32px rgba(197,164,126,0.25);
    color: #000 !important;
  }
  
  /* Hero CTA는 더 크게 */
  .hero-cta {
    font-size: 1.25rem;
    padding: 18px 55px;
  }