@charset "UTF-8";
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

/* 1. 기본 설정 */
* { box-sizing: border-box; }

html, body {
    width: 100%; margin: 0; padding: 0; 
    overflow-x: hidden; 
}

/* 2. 디자인 변수 */
:root {
    --kw-red: #8a0025; 
    --text-highlight: #8a0025; 
    
    /* 라이트 모드 */
    --bg-color: #ffffff;
    --bg-pattern-color: #e5e5e5;
    --section-alt-bg: #fdfdfd; /* [NEW] 구분감을 위한 연한 배경색 */
    --text-main: #333;
    --text-sub: #555;
    --card-bg: #ffffff;
    --card-border: rgba(0,0,0,0.08);
    --shadow-color: rgba(0,0,0,0.05);
    
    /* [수정] 헤더 그라데이션: 색상을 더 진하게 변경 (0.15 -> 0.35) */
    --header-bg: radial-gradient(circle at 50% 30%, rgba(138, 0, 37, 0.15) 0%, rgba(255, 255, 255, 0) 40%);
    
    --footer-bg: #f9f9f9;
    --footer-text: #666;
    
    --highlight-bg: rgba(255, 200, 200, 0.5);
    --tech-badge-bg: #eee;
    --tech-badge-text: #555;
    --swiper-pagination-color: var(--kw-red);
    
    --tg-bg-header: #242f3d;   
    --tg-bg-chat: #17212b;     
    --tg-bg-footer: #1c242f;   
    --tg-msg-bot: #2b5278;     
    --tg-text-main: #ffffff;   
    --tg-text-sub: #8e9cb0;    
    --tg-link: #50b5ff;        
    --tg-border: #121820;      
}

/* 🌙 다크 모드 */
[data-theme="dark"] {
    --text-highlight: #ff6b6b;
    --bg-color: #121212;
    --bg-pattern-color: #222;
    --section-alt-bg: #181818; /* [NEW] 다크모드용 연한 배경 */
    --text-main: #e1e1e1;
    --text-sub: #aaa;
    --card-bg: #1e1e1e;
    --card-border: #333;
    --shadow-color: rgba(0,0,0,0.5);
    
    /* 다크모드 헤더 그라데이션 */
    --header-bg: radial-gradient(circle at 50% 30%, rgba(138, 0, 37, 0.4) 0%, rgba(18, 18, 18, 0) 60%);
    
    --footer-bg: #0a0a0a;
    --footer-text: #888;
    --highlight-bg: rgba(138, 0, 37, 0.8);
    --tech-badge-bg: #333;
    --tech-badge-text: #ccc;
    
    --swiper-pagination-color: var(--text-highlight);
}

body { 
    font-family: 'Pretendard', sans-serif; 
    line-height: 1.6; color: var(--text-main); word-break: keep-all; 
    background-color: var(--bg-color);
    
    transition: background 0.3s, color 0.3s;
    min-height: 100vh;
}

.container { width: 100%; max-width: 900px; margin: 0 auto; padding: 20px; position: relative; }

/* 테마 토글 버튼 */
.theme-toggle {
    position: fixed; bottom: 30px; right: 30px; width: 55px; height: 55px;
    border-radius: 50%; background: var(--card-bg); color: var(--text-main);
    border: 2px solid var(--card-border); box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    z-index: 999; transition: all 0.3s; font-size: 1.8rem;
}
.theme-toggle:hover { transform: translateY(-5px) rotate(15deg); }

/* 헤더 */
header { 
    background: var(--header-bg); 
    padding: 100px 20px 60px 20px;
    text-align: center; 
    margin-bottom: 20px; 
    border-bottom: 1px solid var(--card-border); /* [NEW] 헤더 하단 구분선 */
}

.header-intro {
    font-size: 1.1rem; color: var(--text-sub); margin-bottom: 10px; font-weight: 500;
    display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
}
.header-main-title {
    font-size: 2.5rem; font-weight: 800; letter-spacing: -1px; margin: 10px 0 30px 0;
    color: var(--text-main); line-height: 1.3;
}

.typing-text {
    color: var(--text-highlight);
    position: relative; display: inline-block;
}
.typing-text::after {
    content: ''; position: absolute; right: -4px; top: 50%; transform: translateY(-50%);
    width: 3px; height: 80%; background-color: var(--text-highlight);
    animation: blink 1s infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.btn-group { margin-top: 35px; display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.btn { 
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 30px; border-radius: 50px; font-size: 1.1rem;
    text-decoration: none; font-weight: bold; transition: all 0.3s;
}
.btn-primary { 
    background: var(--kw-red); color: white; 
    box-shadow: 0 8px 20px rgba(138, 0, 37, 0.25); border: none;
}
.btn-dark { 
    background: #333; color: white; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
[data-theme="dark"] .btn-dark { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); }
.btn:hover { transform: translateY(-3px); box-shadow: 0 12px 25px rgba(0,0,0,0.15); opacity: 0.95; }


/* [수정] 섹션 구분 스타일 */
section { 
    padding: 80px 0; /* 여백 넉넉하게 */
    border-bottom: 1px solid var(--card-border); /* 점선 구분선 */
}
/* 짝수 번째 섹션은 배경색을 살짝 다르게 하여 구분감 주기 */
section:nth-of-type(even) {
    background-color: var(--section-alt-bg);
    margin: 0 -50vw; /* 배경색을 화면 전체 너비로 확장 */
    padding-left: 50vw;
    padding-right: 50vw;
}

section h2 { text-align: center; font-size: 2.2rem; margin-bottom: 30px; color: var(--text-main); font-weight: 800; }
.highlight { color: var(--text-highlight); position: relative; display: inline-block; }
.highlight::after { content:''; position: absolute; bottom: 5px; left: 0; width: 100%; height: 8px; background: var(--highlight-bg); z-index: -1; }

/* [NEW] 스크롤 인디케이터 (가로 스크롤 안내) */
.scroll-indicator {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-sub);
    margin-bottom: 15px;
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.scroll-indicator::before, .scroll-indicator::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 1px;
    background-color: var(--card-border);
}

/* Swiper */
.swiper { width: 100%; padding-bottom: 50px; overflow: visible; padding-top: 10px; }
.swiper-slide { width: 100%; max-width: 320px; height: auto; }

.reason-card {
    background: var(--card-bg); border-radius: 25px; overflow: hidden;
    box-shadow: 0 15px 35px var(--shadow-color); border: 1px solid var(--card-border);
    height: 100%; display: flex; flex-direction: column; cursor: default; /* 클릭 커서 제거 */
    transition: transform 0.3s;
}
/* .reason-card:hover { transform: translateY(-5px); }  <- 클릭 기능 뺐으므로 호버 효과도 제거 */

.card-preview-area {
    width: 100%; background: var(--msg-bg); padding: 20px 15px;
    display: flex; flex-direction: column; gap: 10px;
    border-bottom: 1px solid var(--card-border); min-height: 220px; 
    justify-content: center;
}
.preview-bubble {
    background: var(--bubble-bg); color: var(--bubble-text); padding: 12px 15px;
    border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); border: 1px solid #e0e0e0; /* 두께 1px, 실선, 연한 회색 */
    font-size: 0.8rem; position: relative; line-height: 1.5; text-align: left;
}
.preview-bubble strong { font-weight: 900; color: var(--text-highlight); }
.preview-bubble .link {
    color: #50b5ff; text-decoration: none; font-weight: bold; display: inline-block; margin-top: 8px; font-size: 0.85rem;
}

.card-body { padding: 25px; text-align: center; flex-grow: 1; background: var(--card-bg); }
.card-body h3 { margin: 10px 0; font-size: 1.3rem; color: var(--text-main); }
.card-body p { color: var(--text-sub); font-size: 1rem; margin: 0; }
.feature-emoji { font-size: 3rem; margin-bottom: 15px; display: block; }

/* 가로 스크롤 섹션 */
.scroll-container {
    display: flex; gap: 20px; overflow-x: auto; padding-bottom: 20px; padding-left: 5px; padding-right: 5px;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.scroll-container::-webkit-scrollbar { display: none; }
.scroll-container { -ms-overflow-style: none; scrollbar-width: none; }

.feature-item, .flow-box { 
    flex: 0 0 280px; scroll-snap-align: center;
    background: var(--card-bg); padding: 40px 30px; border-radius: 25px; 
    box-shadow: 0 10px 30px var(--shadow-color); text-align: center; border: 1px solid var(--card-border);
}
.flow-box { flex: 0 0 200px; padding: 25px; }

.flow-arrow { font-size: 1.5rem; color: #ccc; font-weight: bold; flex-shrink: 0; }
.tech-badge { 
    font-size: 0.75rem; background: var(--tech-badge-bg); padding: 4px 10px; border-radius: 20px; 
    color: var(--tech-badge-text); display: inline-block; margin-bottom: 10px; font-weight: bold; text-transform: uppercase;
}

/* VS 섹션 */
.vs-container { display: flex; gap: 20px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.vs-card {
    flex: 1; min-width: 300px;
    background: var(--card-bg); border: 1px solid var(--card-border);
    border-radius: 20px; padding: 30px; text-align: center;
    box-shadow: 0 10px 20px var(--shadow-color); transition: transform 0.3s;
}
.vs-card:hover { transform: translateY(-5px); }
.vs-card.senior { border-top: 5px solid #2c3e50; }
.vs-card.junior { border-top: 5px solid var(--kw-red); }

.vs-icon { font-size: 3rem; margin-bottom: 15px; display: block; }
.vs-title { font-size: 1.5rem; font-weight: bold; margin-bottom: 10px; color: var(--text-main); }
.vs-badge { 
    display: inline-block; padding: 5px 12px; border-radius: 15px; 
    font-size: 0.8rem; font-weight: bold; margin-bottom: 20px;
}
.senior .vs-badge { background: #eee; color: #555; }
.junior .vs-badge { background: #fff0f0; color: var(--kw-red); }

.vs-list { list-style: none; padding: 0; text-align: left; }
.vs-list li { padding: 10px 0; border-bottom: 1px solid var(--card-border); color: var(--text-sub); font-size: 0.95rem; }
.vs-list li:last-child { border-bottom: none; }
.vs-list b { color: var(--text-main); margin-right: 5px; }

.disclaimer {
    text-align: center; margin-top: 40px; padding: 15px;
    background: rgba(0,0,0,0.03); border-radius: 10px;
    font-size: 0.85rem; color: var(--text-sub);
}

.bottom-cta-section { text-align: center; margin-bottom: 60px; }
.cta-text { margin-bottom: 15px; font-weight: bold; color: var(--text-highlight); font-size: 1.1rem; }

/* 푸터 */
footer { 
    background: var(--footer-bg); color: var(--footer-text); 
    padding: 80px 20px 60px 20px; text-align: center; margin-top: 0; 
    border-top: 1px solid var(--card-border);
}

.footer-profile { display: flex; flex-direction: column; align-items: center; margin-bottom: 40px; }
.profile-img {
    width: 80px; height: 80px; border-radius: 50%; object-fit: cover;
    margin-bottom: 15px; border: 3px solid white; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.profile-text {
    max-width: 500px; font-size: 0.9rem; line-height: 1.6; color: var(--text-sub);
    background: var(--card-bg); padding: 20px; border-radius: 15px;
    border: 1px solid var(--card-border); position: relative; word-break: keep-all;
}
.profile-text::after {
    content: ''; position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
    border-width: 0 8px 8px 8px; border-style: solid;
    border-color: transparent transparent var(--card-border) transparent;
}

.footer-links { margin-bottom: 40px; }
.footer-links a { 
    color: var(--text-sub); text-decoration: none; margin: 0 10px; 
    font-weight: 600; font-size: 0.9rem; transition: color 0.2s; display: inline-block;
}
.footer-links a:hover { color: var(--text-highlight); }

@media (min-width: 768px) {
    .scroll-container { justify-content: center; }
}
/* [수정] 피드백 버튼 기본 설정 (색상 분리) */
.feedback-btn { 
    color: white; 
    padding: 12px 35px; 
    border-radius: 50px; 
    text-decoration: none; 
    display: inline-block; 
    margin-top: 20px; 
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); 
    font-weight: bold;
    font-size: 1.05rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* [추가] 텔레그램 전용 스타일 */
.btn-telegram {
    background-color: #2AABEE; /* 텔레그램 공식 컬러 (더 밝은 파랑) */
}

/* 마우스 올렸을 때 효과 */
.btn-telegram:hover { 
    background-color: #229ED9; /* 호버 시 약간 진해짐 */
    transform: translateY(-3px) scale(1.02); /* 살짝 떠오르며 커짐 */
    box-shadow: 0 8px 25px rgba(42, 171, 238, 0.35); /* 파란색 그림자 퍼짐 */
}
/* [NEW] 피드백 섹션 스타일 추가 */
.feedback-section {
    text-align: center;     /* 중앙 정렬 핵심 */
    margin: 60px 0;         /* 위아래 여백 */
    padding: 0 20px;        /* 좌우 패딩 */
}

/* 내부 텍스트 스타일도 CSS로 이동 (권장) */
.feedback-section h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-main);
}

.feedback-section p {
    margin-top: 10px;
    color: var(--text-sub);
    margin-bottom: 25px; /* 버튼과의 간격 확보 */
}
/* [NEW] 다크 모드일 때 말풍선 스타일 (테두리 & 배경 최적화) */
[data-theme="dark"] .preview-bubble {
    /* 1. 테두리를 흰색의 15% 투명도로 변경 (검은 배경에서 잘 보임) */
    border: 1px solid rgba(255, 255, 255, 0.15);
    
    /* (선택 사항) 말풍선 배경색도 너무 밝지 않게 살짝 어둡게 조정하고 싶다면 주석 해제하세요 */
    /* background: #2c2c2c; */
    /* color: #e0e0e0; */
}
