/* --- Global Settings & Variables --- */
:root {
    --primary-color: #0052cc; /* 신뢰감을 주는 블루 */
    --dark-color: #222831;    /* 깊이 있는 다크 그레이 */
    --light-color: #ffffff;   /* 깨끗한 화이트 */
    --gray-color: #eeeeee;    /* 부드러운 라이트 그레이 */
    --text-color: #333333;    /* 기본 텍스트 */
    --text-light: #f4f4f4;    /* 어두운 배경 위 텍스트 */
    --font-main: 'Noto Sans KR', sans-serif;
    --font-accent: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--light-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-accent);
    font-weight: 700;
    line-height: 1.3;
}

h2.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    font-family: var(--font-main);
    text-align: center;
    margin-bottom: 3rem;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-family: var(--font-main);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.btn-primary:hover {
    background-color: #0041a3;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 82, 204, 0.3);
}

/* --- Sections --- */
.section {
    padding: 6rem 0;
}

.section-dark {
    background-color: var(--dark-color);
    color: var(--text-light);
}

.section-dark .section-title {
    color: var(--light-color);
}

/* --- Logo --- */
.brand-logo {
    position: absolute;
    top: 30px;
    left: 40px;
    width: 120px;
    height: auto;
    z-index: 10;
}

/* --- [Section 1: Hero] --- */
#hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1557804506-669a67965ba0?q=80&w=2670&auto=format&fit=crop') no-repeat center center/cover;
    height: 100vh;
    color: var(--light-color);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
}

#hero .main-headline {
    font-size: 3.5rem;
    font-weight: 900;
    font-family: var(--font-main);
    margin-bottom: 1.5rem;
}

#hero .sub-headline {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* --- [Section 2: Problem] --- */
#problem .checklist {
    list-style: none;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
}

#problem .checklist li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #e0e0e0;
}

#problem .checklist li:last-child {
    border-bottom: none;
}

/* 체크리스트 항목 순차적 애니메이션을 위한 딜레이 추가 */
#problem .checklist li.animate-on-scroll:nth-child(1) { transition-delay: 0s; }
#problem .checklist li.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
#problem .checklist li.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
#problem .checklist li.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
#problem .checklist li.animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }

#problem .checklist i {
    color: var(--primary-color);
    margin-right: 1rem;
}

#problem .empathy-message {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 500;
    background-color: var(--gray-color);
    padding: 2rem;
    border-radius: 10px;
}

/* --- [Section 3: Solution] --- */
.solution-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.card {
    background-color: #2f3640;
    padding: 2.5rem;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* 솔루션 카드 순차적 애니메이션을 위한 딜레이 추가 */
.solution-cards .card.animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.solution-cards .card.animate-on-scroll:nth-child(2) { transition-delay: 0.15s; }
.solution-cards .card.animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }

.card h3 {
    color: var(--light-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* --- [Section 4: Services] --- */
.service-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.service-category h4 {
    font-size: 1.8rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.service-category ul {
    list-style: none;
}

.service-category li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.service-category li span {
    font-weight: 700;
}

/* --- [Section 5: Event & Lead] --- */
#event .event-title {
    color: var(--primary-color);
}

#event .event-description {
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.event-benefits {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.event-benefits ul {
    list-style: none;
}

.event-benefits li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.event-benefits i {
    color: var(--primary-color);
    margin-right: 0.8rem;
}

.consult-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 1px solid #555;
    border-radius: 5px;
    background-color: #3a414b;
    color: var(--text-light);
    font-size: 1rem;
}

.form-group-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 폼 제출 결과 메시지 */
#form-message {
    margin-top: 15px;
    font-weight: 500;
    min-height: 1.2em; /* 메시지 표시 시 레이아웃 밀림 방지 */
    transition: color 0.3s ease-in-out;
}
#form-message.success { color: #21bf73; }
#form-message.error { color: #fa5252; }

/* --- [Section 6: Final CTA] --- */
#cta {
    text-align: center;
}

#cta p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.btn-kakao {
    background-color: #FEE500;
    color: #191919;
    font-size: 1.2rem;
}

.btn-kakao:hover {
    background-color: #f0d900;
    transform: translateY(-3px);
}

.btn-kakao i {
    margin-right: 0.5rem;
}

/* --- [Section 7: Footer] --- */
footer {
    background-color: #1c2025;
    color: #a0a0a0;
    text-align: center;
    padding: 3rem 0;
    font-size: 0.9rem;
}

footer p {
    margin-bottom: 0.5rem;
}

footer .copyright {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: #777;
}

/* --- Animations --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px); /* 시작 위치를 조금 줄여 더 부드럽게 */
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1); /* 지속시간 및 이징 함수 변경 */
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Privacy Policy Link & Modal --- */
.privacy-policy-link {
    background: none;
    border: none;
    color: #bbb; /* 어두운 배경에 어울리는 밝은 색 */
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
    font-family: var(--font-main);
}

.privacy-policy-link:hover {
    color: var(--light-color);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none; /* 기본적으로 숨김 */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.modal-overlay.active {
    display: flex; /* JS로 활성화 */
    opacity: 1;
}

.modal-content {
    background-color: var(--light-color);
    color: var(--text-color);
    padding: 2rem 2.5rem;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    font-family: var(--font-main);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2.5rem;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--dark-color);
}

.modal-content pre {
    white-space: pre-wrap; /* 텍스트 자동 줄바꿈 */
    word-wrap: break-word;
    font-family: var(--font-main);
    font-size: 0.95rem;
    line-height: 1.8;
    background-color: var(--gray-color);
    padding: 1rem;
    border-radius: 5px;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    h2.section-title {
        font-size: 2rem;
    }

    #hero .main-headline {
        font-size: 2.5rem;
    }

    .solution-cards, .service-wrapper {
        grid-template-columns: 1fr;
    }

    .brand-logo {
        left: 20px;
        top: 20px;
        width: 100px;
    }

    /* 모바일용으로 더 작은 배경 이미지 로드 */
    /* 실제로는 mobile-hero-bg.jpg 와 같이 최적화된 이미지를 생성하여 사용해야 합니다. */
    #hero {
        background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1557804506-669a67965ba0?q=80&w=1200&auto=format&fit=crop') no-repeat center center/cover;
    }
}