/* Vibeow 스타일 - 완전히 새로운 디자인 */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700;800;900&display=swap');

/* PWA 및 모바일 최적화 */
/* Safe Area 대응 (노치가 있는 기기) */
:root {
    --safe-area-inset-top: env(safe-area-inset-top, 0px);
    --safe-area-inset-right: env(safe-area-inset-right, 0px);
    --safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);
    --safe-area-inset-left: env(safe-area-inset-left, 0px);
}

/* 리셋 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 색상 변수 - Vibeow 스타일 */
:root {
    /* 메인 컬러 - 보라색 */
    --primary: #6B5EFF;
    --primary-dark: #5648CC;
    --primary-light: #8B7EFF;
    --primary-lighter: #A99EFF;
    --primary-pale: #E5E0FF;

    /* 배경 컬러 */
    --bg-main: #FFFFFF;
    --bg-light: #F8F9FA;
    --bg-card: #FFFFFF;

    /* 텍스트 컬러 */
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --text-tertiary: #999999;

    /* 그레이 스케일 */
    --gray-50: #F8F9FA;
    --gray-100: #F1F3F5;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-400: #CED4DA;
    --gray-500: #ADB5BD;
    --gray-600: #868E96;
    --gray-700: #495057;
    --gray-800: #343A40;
    --gray-900: #212529;

    /* 액센트 컬러 */
    --accent-blue: #8B7EFF;
    --accent-mint: #85D9D0;
    --accent-pink: #FF85D4;
    --accent-orange: #FFB870;

    /* 그림자 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);

    /* 보더 라운드 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Apple SD Gothic Neo', sans-serif;
    color: var(--text-primary);
    background: var(--bg-light);
    line-height: 1.52;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* iOS 모바일 최적화 */
    -webkit-text-size-adjust: 100%; /* 폰트 크기 자동 조정 방지 */
    -webkit-tap-highlight-color: transparent; /* 터치 하이라이트 제거 */
    /* 스크롤 최적화 */
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* 프로모션 사이드바가 있는 페이지에만 padding 적용 */
body.has-promo-sidebar {
    padding-right: 232px;
}

.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 22px;
}

.hero .container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 22px;
}

/* 스크롤바 스타일 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ==========================================
   헤더
   ========================================== */
.header {
    background: var(--bg-main);
    border-bottom: 1px solid var(--gray-200);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    padding: 12px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header .container {
    max-width: 1400px;
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 18px;
}

.logo-text {
    font-weight: 800;
    white-space: nowrap;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: auto;
    margin-right: 32px;
}

/* 모바일 네비게이션 메뉴 활성화 시 */
.nav.active {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    padding: 28px 24px;
    background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
    box-shadow: -6px 0 32px rgba(107, 94, 255, 0.12);
    z-index: 10001;
    transform: translateX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(107, 94, 255, 0.3) transparent;
}

.nav.active::-webkit-scrollbar {
    width: 6px;
}

.nav.active::-webkit-scrollbar-track {
    background: transparent;
}

.nav.active::-webkit-scrollbar-thumb {
    background: rgba(107, 94, 255, 0.2);
    border-radius: 3px;
}

.nav.active::-webkit-scrollbar-thumb:hover {
    background: rgba(107, 94, 255, 0.4);
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary);
}

/* 모바일 메뉴 내 링크 스타일 */
.nav.active .nav-link {
    width: 100%;
    padding: 16px 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    opacity: 0;
    transform: translateX(20px);
    animation: slideInMenuItem 0.4s ease forwards;
}

/* 메뉴 아이템 스태거 애니메이션 */
.nav.active .nav-link:nth-child(1) { animation-delay: 0.1s; }
.nav.active .nav-link:nth-child(2) { animation-delay: 0.15s; }
.nav.active .nav-link:nth-child(3) { animation-delay: 0.2s; }
.nav.active .nav-link:nth-child(4) { animation-delay: 0.25s; }
.nav.active .nav-link:nth-child(5) { animation-delay: 0.3s; }
.nav.active .nav-link:nth-child(6) { animation-delay: 0.35s; }

@keyframes slideInMenuItem {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.nav.active .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 0 3px 3px 0;
    transition: height 0.3s ease;
}

.nav.active .nav-link:hover {
    background: rgba(107, 94, 255, 0.05);
    color: var(--primary);
    padding-left: 20px;
}

.nav.active .nav-link:hover::before {
    height: 70%;
}

/* 모바일 메뉴 액션 버튼 */
.mobile-menu-actions {
    display: none;
}

.nav.active .mobile-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 28px;
    padding-top: 28px;
    border-top: 2px solid rgba(107, 94, 255, 0.1);
    opacity: 0;
    transform: translateY(20px);
    animation: slideInActions 0.4s ease forwards;
    animation-delay: 0.4s;
}

@keyframes slideInActions {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-secondary-mobile,
.btn-primary-mobile {
    width: 100%;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn-secondary-mobile {
    background: white;
    color: var(--primary);
    border: 2px solid rgba(107, 94, 255, 0.2);
    box-shadow: 0 2px 8px rgba(107, 94, 255, 0.08);
}

.btn-secondary-mobile:hover {
    background: rgba(107, 94, 255, 0.05);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 94, 255, 0.15);
}

.btn-primary-mobile {
    background: linear-gradient(135deg, #6B5EFF 0%, #8B7EFF 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(107, 94, 255, 0.25);
}

.btn-primary-mobile::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary-mobile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 94, 255, 0.4);
}

.btn-primary-mobile:hover::before {
    left: 100%;
}

.nav-dropdown {
    position: relative;
}

.dropdown-trigger {
    padding: 0;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    min-width: 180px;
    display: none;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
    font-size: 14px;
}

.dropdown-menu a:hover {
    background: var(--gray-100);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 48px;
}

.btn {
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--gray-300);
}

.btn-secondary:hover {
    background: var(--gray-100);
}

/* 헤더 버튼 스타일 (페이지별 CSS에 의한 오버라이드 방지) */
.header-actions .btn {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.header-actions .btn-primary {
    background: var(--primary);
    color: white;
}

.header-actions .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.header-actions .btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--gray-300);
}

.header-actions .btn-secondary:hover {
    background: var(--gray-100);
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.btn-text:hover {
    background: var(--gray-100);
}

.btn-icon {
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-icon:hover {
    background: var(--gray-100);
}

.btn-mypage {
    padding: 8px 16px;
    border-radius: var(--radius-md);
    width: auto;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

/* 사용자 메뉴 드롭다운 스타일 */
.user-menu-wrapper {
    position: relative;
}

.user-menu-btn {
    background: transparent;
    border: 1px solid var(--gray-300);
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    white-space: nowrap;
}

.user-menu-btn:hover {
    background: var(--gray-100);
    transform: translateY(-1px);
}

.user-menu-btn .arrow {
    font-size: 12px;
    transition: transform 0.2s;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 1000;
    margin-top: 8px;
    overflow: hidden;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: var(--text-primary);
    text-decoration: none;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid var(--gray-100);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: var(--gray-50);
}

.dropdown-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 4px 0;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

/* 햄버거 메뉴 활성화 시 X자 애니메이션 */
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* 모바일 메뉴 오버레이 */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(107, 94, 255, 0.15), rgba(0, 0, 0, 0.5));
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* 모바일 네비게이션 헤더 - 데스크탑에서는 숨김 */
.mobile-nav-header {
    display: none;
}

.nav.active .mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 0;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(107, 94, 255, 0.1);
    background: linear-gradient(135deg, rgba(107, 94, 255, 0.02) 0%, rgba(139, 126, 255, 0.02) 100%);
    opacity: 0;
    transform: translateY(-10px);
    animation: slideInHeader 0.3s ease forwards;
    animation-delay: 0.05s;
}

@keyframes slideInHeader {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.2s ease;
}

.mobile-nav-logo:hover {
    transform: translateX(2px);
}

.mobile-logo-text {
    font-weight: 800;
    font-size: 18px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

/* 모바일 닫기 버튼 - X 스타일 */
.mobile-close-btn {
    background: rgba(107, 94, 255, 0.05);
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.mobile-close-btn::before,
.mobile-close-btn::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-close-btn::before {
    transform: rotate(45deg);
}

.mobile-close-btn::after {
    transform: rotate(-45deg);
}

.mobile-close-btn:hover {
    background: rgba(107, 94, 255, 0.1);
    transform: rotate(90deg);
}

.mobile-close-btn:hover::before,
.mobile-close-btn:hover::after {
    background: var(--primary-light);
}

/* ==========================================
   히어로 섹션
   ========================================== */
.hero {
    padding: 48px 0 0;
    background: linear-gradient(180deg, #F0EDFF 0%, #F8F7FF 40%, #FAFBFC 100%);
    min-height: 750px;
    overflow: visible;
    position: relative;
    z-index: 1;
}

.hero-content {
    display: flex;
    gap: 48px;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    padding: 0 40px;
}

.hero-left {
    flex: 0 0 550px;
    max-width: 550px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding-left: 120px;
}

.hero-badges {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(107, 94, 255, 0.08) 0%, rgba(107, 94, 255, 0.03) 100%);
    border: 1.5px solid rgba(107, 94, 255, 0.2);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #6B5EFF;
}

.hero-badge svg {
    flex-shrink: 0;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 18px;
    color: var(--text-primary);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 26px;
    word-break: keep-all;
}

.hero-description strong {
    color: var(--primary);
    font-weight: 700;
}

.hero-description .text-primary {
    color: var(--primary);
    font-weight: 700;
}

.btn-hero {
    background: var(--primary);
    color: white;
    padding: 16px 32px;
    font-size: 16px;
    border-radius: var(--radius-md);
}

.btn-hero:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(107, 94, 255, 0.3);
}

/* 히어로 카드 슬라이더 컨테이너 */
.hero-cards-slider-container {
    position: relative;
    overflow: visible;
    width: 100%;
    min-height: 585px;
    padding: 0 76px;
}

.hero-cards-slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.hero-cards-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    visibility: hidden;
}

.hero-cards-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    visibility: visible;
    position: relative;
}

.hero-cards-slide.sliding-out {
    transform: translateX(-100%);
    opacity: 0;
}

/* 히어로 슬라이더 네비게이션 버튼 */
.hero-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    z-index: 10;
    color: var(--text-primary);
}

.hero-slider-btn:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 8px 24px rgba(107, 94, 255, 0.3);
    transform: translateY(-50%) scale(1.05);
}

.hero-slider-btn.prev {
    left: 0;
}

.hero-slider-btn.next {
    right: 0;
}

/* 히어로 슬라이더 인디케이터 도트 */
.hero-slider-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 32px;
    position: absolute;
    bottom: -48px;
    left: 50%;
    transform: translateX(-50%);
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(107, 94, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.hero-dot:hover {
    background: rgba(107, 94, 255, 0.6);
}

.hero-dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--primary);
}

/* 히어로 카드 그리드 */
.hero-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    perspective: 1000px;
}

.hero-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s;
}

.hero-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* 카드 1: 도전권 */
.card-challenge {
    grid-column: span 2;
    background: linear-gradient(135deg, #F8F6FF 0%, #FFFFFF 100%);
}

.card-header {
    margin-bottom: 14px;
}

.card-label {
    font-size: 15px;
    color: var(--text-tertiary);
    font-weight: 500;
}

.card-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.card-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 26px;
}

.card-chart {
    margin: 26px 0;
}

.chart-bar {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    height: 190px;
}

.bar-segment {
    flex: 1;
    background: var(--color);
    height: var(--height);
    border-radius: 8px 8px 0 0;
    font-size: 14px;
    color: white;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10px;
    font-weight: 600;
}

.card-labels {
    text-align: center;
    font-size: 16px;
    color: var(--text-tertiary);
    margin-top: 10px;
}

/* 카드 2: 진로탐색 */
.card-analysis {
    background: linear-gradient(135deg, #FFF8F0 0%, #FFFFFF 100%);
}

.card-badge {
    display: inline-block;
    background: var(--primary-pale);
    color: var(--primary);
    padding: 9px 18px;
    border-radius: 18px;
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 16px;
}

.card-title-sm {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.card-subtitle-sm {
    font-size: 19px;
    color: var(--text-tertiary);
    margin-bottom: 22px;
}

.interest-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.interest-item {
    background: white;
    padding: 20px 16px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 17px;
}

.interest-item.center {
    grid-column: span 2;
    background: var(--primary-pale);
    color: var(--primary);
    font-weight: 700;
}

.interest-icon {
    font-size: 34px;
    margin-bottom: 9px;
}

.score {
    font-size: 19px;
    font-weight: 700;
}

/* 카드 3: 출석률 */
.card-stats {
    background: linear-gradient(135deg, #F0FAFF 0%, #FFFFFF 100%);
}

.card-header-flex {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.card-label-sm {
    font-size: 10px;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.card-note {
    font-size: 11px;
    color: var(--text-tertiary);
    margin: 12px 0;
}

.stats-visual {
    margin-top: 16px;
}

.stats-chart {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-tertiary);
}

/* 카드 4: 급여조건 */
.card-salary {
    background: linear-gradient(135deg, #FFF5F8 0%, #FFFFFF 100%);
}

.salary-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.emoji-badge {
    font-size: 32px;
}

.emoji-badge.large {
    font-size: 48px;
}

.emoji-badge.medium {
    font-size: 40px;
}

.card-label-xs {
    font-size: 10px;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

/* 카드 5: 원형 차트 */
.card-progress {
    background: linear-gradient(135deg, #F8F6FF 0%, #FFFFFF 100%);
    text-align: center;
}

.progress-circle {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 22px;
}

.progress-circle svg {
    transform: rotate(-90deg);
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.progress-label {
    font-size: 15px;
    color: var(--text-tertiary);
}

.card-footer-text {
    font-size: 17px;
    color: var(--text-secondary);
}

/* 카드 6: 연락 */
.card-contact {
    text-align: center;
}

.contact-info {
    font-size: 11px;
    color: var(--text-secondary);
}

/* 카드 7: 기준 */
.card-criteria {
    background: linear-gradient(135deg, #FFFBF0 0%, #FFFFFF 100%);
}

/* ==========================================
   섹션 구분선
   ========================================== */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--gray-200) 50%, transparent 100%);
    margin: 12px 0 0;
    position: relative;
    z-index: 10;
}

.section-divider.thick {
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--gray-300) 50%, transparent 100%);
}

/* ==========================================
   히어로 오른쪽 프로모션 배너
   ========================================== */
.hero-promo {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow: hidden;
}

.promo-sidebar-fixed {
    position: fixed;
    top: 90px;
    right: 16px;
    width: 200px;
    height: calc(100vh - 110px);
    z-index: 5;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
    margin: 0;
}

.promo-sidebar-fixed::-webkit-scrollbar {
    width: 4px;
}

.promo-sidebar-fixed::-webkit-scrollbar-track {
    background: transparent;
}

.promo-sidebar-fixed::-webkit-scrollbar-thumb {
    background: rgba(107, 94, 255, 0.3);
    border-radius: 2px;
}

.promo-sidebar-fixed::-webkit-scrollbar-thumb:hover {
    background: rgba(107, 94, 255, 0.5);
}

/* 사이드바 공지사항 */
.sidebar-announcement {
    background: linear-gradient(180deg, #1E3A5F 0%, #2C4F7C 100%);
    padding: 14px 12px;
    text-align: center;
    width: 100%;
    margin: 0;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(30, 58, 95, 0.3);
}

.sidebar-announcement-text {
    color: white;
    font-size: 13px;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
    letter-spacing: -0.01em;
    font-family: 'Pretendard', -apple-system, sans-serif;
}

.promo-banner {
    background: transparent;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

/* Promo Swiper 구조 */
.promo-swiper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 0;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(107, 94, 255, 0.15);
}

.promo-swiper .swiper-wrapper {
    align-items: center;
}

.promo-swiper .swiper-slide {
    height: auto;
    width: 100% !important;
    display: flex;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.promo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 18px 14px;
    background: white;
    backdrop-filter: blur(8px);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
    margin: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.promo-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* 색상별 스타일 */
.promo-purple {
    background: linear-gradient(135deg, rgba(107, 94, 255, 0.03) 0%, white 100%);
}

.promo-purple:hover {
    box-shadow: 0 6px 20px rgba(107, 94, 255, 0.25);
    border-color: rgba(107, 94, 255, 0.3);
}

.promo-blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0%, white 100%);
}

.promo-blue:hover {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.3);
}

.promo-pink {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.03) 0%, white 100%);
}

.promo-pink:hover {
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.25);
    border-color: rgba(236, 72, 153, 0.3);
}

.promo-green {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.03) 0%, white 100%);
}

.promo-green:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.25);
    border-color: rgba(16, 185, 129, 0.3);
}

.promo-orange {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.03) 0%, white 100%);
}

.promo-orange:hover {
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.25);
    border-color: rgba(245, 158, 11, 0.3);
}

.promo-info {
    width: 100%;
}

.promo-title {
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 3px;
    line-height: 1.4;
    color: var(--text-primary);
}

.promo-description {
    font-size: 10px;
    color: var(--text-secondary);
    line-height: 1.35;
    margin: 0;
}

.promo-button {
    width: 100%;
    padding: 8px 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    display: inline-block;
    text-align: center;
}

.promo-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* 색상별 버튼 스타일 */
.promo-purple .promo-button {
    background: #6B5EFF;
}

.promo-purple .promo-button:hover {
    background: #5647CC;
}

.promo-blue .promo-button {
    background: #3B82F6;
}

.promo-blue .promo-button:hover {
    background: #2563EB;
}

.promo-pink .promo-button {
    background: #EC4899;
}

.promo-pink .promo-button:hover {
    background: #DB2777;
}

.promo-green .promo-button {
    background: #10B981;
}

.promo-green .promo-button:hover {
    background: #059669;
}

.promo-orange .promo-button {
    background: #F59E0B;
}

.promo-orange .promo-button:hover {
    background: #D97706;
}

/* 슬라이더 버튼 - 히어로 프로모션용 */
.hero-promo .promo-slider-btn {
    display: none;
}

.promo-sidebar-fixed .promo-slider-btn {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
    z-index: 10;
    opacity: 0.7;
}

.promo-sidebar-fixed .promo-slider-btn:hover {
    background: var(--primary);
    color: white;
    opacity: 1;
    box-shadow: 0 4px 16px rgba(107, 94, 255, 0.4);
}

.promo-sidebar-fixed .promo-slider-btn.prev {
    top: 8px;
}

.promo-sidebar-fixed .promo-slider-btn.next {
    bottom: 8px;
}

.promo-slider-btn svg {
    width: 20px;
    height: 20px;
}

/* 슬라이더 인디케이터 (페이지네이션) */
.promo-swiper .swiper-pagination {
    position: relative;
    margin-top: 12px;
    bottom: auto;
}

.promo-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(107, 94, 255, 0.3);
    opacity: 1;
    transition: all 0.3s;
}

.promo-swiper .swiper-pagination-bullet-active {
    width: 28px;
    border-radius: 5px;
    background: var(--primary);
}

.promo-swiper .swiper-pagination-bullet:hover {
    background: rgba(107, 94, 255, 0.6);
}

/* ==========================================
   사이트 소개 섹션
   ========================================== */
.intro-section {
    padding: 68px 0 72px;
    background: white;
    position: relative;
    z-index: 10;
}

.intro-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 52px;
    color: var(--text-primary);
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
    margin-bottom: 43px;
    position: relative;
}

.intro-grid::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: linear-gradient(90deg,
        var(--primary-pale) 0%,
        var(--primary-light) 25%,
        var(--primary-light) 50%,
        var(--primary-light) 75%,
        var(--primary-pale) 100%);
    z-index: 0;
}

.intro-card {
    text-align: center;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.intro-card:hover {
    transform: translateY(-8px);
}

.intro-icon {
    margin: 0 auto 19px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    background: white;
    border-radius: 50%;
}

.intro-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.intro-card-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.58;
}

.intro-cta {
    text-align: center;
    margin-top: 43px;
}

.btn-intro {
    background: var(--primary);
    color: white;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-intro:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(107, 94, 255, 0.3);
}

/* ==========================================
   AI 테스트 카드 섹션 - 4열 그리드
   ========================================== */
.features-section {
    padding: 0;
    background: linear-gradient(180deg, #1E3A5F 0%, #2C4F7C 100%);
    position: relative;
    z-index: 10;
}

.features-section .container {
    max-width: 100%;
    padding: 0;
    margin: 0;
}

.features-intro {
    text-align: center;
    padding: 48px 20px 4px;
}

.features-intro-text {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
    line-height: 1.4;
}

.features-intro-sub {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    letter-spacing: -0.01em;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.feature-card {
    text-align: center;
    transition: transform 0.3s;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-4px);
}

.feature-card.clickable,
.feature-card.coming-soon {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 24px 18px;
    border-radius: var(--radius-md);
    background: white;
    border: 1.5px solid var(--gray-200);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s;
    overflow: visible;
}

.feature-card.clickable:hover {
    transform: translateY(-4px);
    border-color: var(--primary-light);
    box-shadow: 0 8px 24px rgba(107, 94, 255, 0.2);
}

.feature-card.clickable:active {
    transform: translateY(-2px);
}

.feature-card.coming-soon {
    opacity: 0.6;
    cursor: not-allowed;
    background: #F9FAFB;
}

.feature-card.coming-soon:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.feature-card.coming-soon .feature-title {
    color: var(--gray-500);
}

.feature-card.coming-soon .feature-description {
    color: var(--gray-400);
}

.feature-icon {
    margin: 0 auto 13px;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    transform: scale(1);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-card.clickable:hover .feature-icon {
    transform: scale(1.05);
}

.feature-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
    line-height: 1.38;
    word-break: keep-all;
}

.feature-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.55;
    word-break: keep-all;
}

.feature-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    transform: rotate(8deg);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(107, 94, 255, 0.3);
    z-index: 10;
    transition: all 0.3s ease;
}

.feature-card.clickable:hover .feature-badge {
    transform: rotate(8deg) scale(1.05);
    box-shadow: 0 4px 12px rgba(107, 94, 255, 0.4);
}

/* ==========================================
   통계 배너
   ========================================== */
.stats-banner {
    padding: 67px 0 71px;
    background: var(--bg-light);
    position: relative;
    z-index: 10;
}

.stats-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 27px;
}

.stats-title {
    font-size: 28px;
    font-weight: 700;
}

.stats-arrows {
    display: flex;
    gap: 7px;
}

.arrow-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--gray-300);
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.arrow-btn:hover {
    background: var(--gray-100);
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 21px;
}

.stats-card {
    background: white;
    padding: 28px 26px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.stats-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 7px;
}

.stats-date {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 14px;
}

.stats-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-primary);
}

.stats-unit {
    font-size: 20px;
    font-weight: 600;
    margin-left: 4px;
}

/* ==========================================
   CTA 배너
   ========================================== */
.cta-banner {
    background: linear-gradient(135deg, #FFE5F1 0%, #FFD4E8 100%);
    padding: 54px 0 57px;
    position: relative;
    z-index: 10;
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 21px;
    text-align: center;
}

.cta-emoji {
    font-size: 64px;
}

.cta-text h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 7px;
}

.cta-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

/* ==========================================
   컨텐츠 탭 섹션
   ========================================== */
.content-tabs {
    padding: 68px 0 72px;
    background: white;
    position: relative;
    z-index: 10;
}

.tabs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 21px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--gray-200);
}

.tab-btn {
    background: none;
    border: none;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0;
}

.tab-btn.active {
    color: var(--primary);
}

.tab-link {
    font-size: 14px;
    color: var(--text-tertiary);
    cursor: pointer;
}

.content-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 42px;
}

.content-item {
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 14px;
}

.content-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
}

.content-link h4 {
    font-size: 16px;
    font-weight: 500;
}

.content-date {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-left: auto;
    margin-right: 11px;
}

.content-badge {
    background: var(--primary-pale);
    color: var(--primary);
    padding: 4px 11px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.help-links {
    margin-top: 21px;
}

.help-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    padding: 11px 18px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.help-link:hover {
    background: var(--gray-100);
}

/* ==========================================
   카테고리 섹션
   ========================================== */
.category-section {
    padding: 60px 0 80px;
    background: white;
    position: relative;
    z-index: 10;
}

.category-hook-message {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.category-hook-message p {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.4;
    margin: 0;
}

.category-hook-message p .text-primary {
    color: var(--primary);
    background: linear-gradient(135deg, #8B7EFF 0%, #6B5EFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.category-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.category-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #F8F9FF 0%, #F0F2FF 100%);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(107, 94, 255, 0.08);
}

.category-tab {
    padding: 12px 24px;
    background: white;
    border: 2px solid rgba(107, 94, 255, 0.15);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.category-tab:hover {
    background: linear-gradient(135deg, #F8F9FF 0%, #F0F2FF 100%);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 94, 255, 0.15);
}

.category-tab.active {
    background: linear-gradient(135deg, #6B5EFF 0%, #8B7EFF 100%);
    border-color: #6B5EFF;
    color: white;
    box-shadow: 0 4px 16px rgba(107, 94, 255, 0.3);
}

.category-content {
    min-height: 400px;
    position: relative;
}

.category-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.category-placeholder {
    text-align: center;
    padding: 120px 20px;
    grid-column: 1 / -1;
}

.coming-soon-message {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.coming-soon-sub {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* ==========================================
   푸터
   ========================================== */
.footer {
    background: var(--gray-900);
    color: white;
    padding: 52px 0 28px;
    position: relative;
    z-index: 10;
    margin-right: -232px;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    text-align: left;
    padding-left: 0;
    margin-left: -10px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 21px;
    font-size: 20px;
    font-weight: 700;
}

.footer-info {
    margin-bottom: 21px;
}

.footer-info p {
    font-size: 14px;
    color: var(--gray-400);
    margin-bottom: 7px;
}

.footer-links {
    display: flex;
    gap: 21px;
    margin-bottom: 21px;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    color: white;
}

.footer-copyright {
    font-size: 13px;
    color: var(--gray-500);
    padding-top: 21px;
    border-top: 1px solid var(--gray-700);
}

/* ==========================================
   상담신청 모달
   ========================================== */
.modal-overlay {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.75);
    z-index: 99999 !important;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease-out;
    overflow-y: auto;
}

.modal-overlay.active,
.modal-overlay[style*="display: flex"] {
    display: flex !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-container {
    background: white;
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--gray-100);
    color: var(--text-primary);
}

.modal-header {
    margin-bottom: 28px;
    text-align: center;
}

.modal-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 7px;
    color: var(--text-primary);
}

.modal-header p {
    font-size: 15px;
    color: var(--text-secondary);
}

/* 로그인 필요 모달 */
.login-required-modal {
    max-width: 480px;
    width: 90%;
    padding: 42px 36px;
    margin: auto;
    position: relative;
}

.modal-actions {
    display: flex;
    gap: 14px;
    margin-top: 28px;
}

.modal-actions .btn {
    flex: 1;
    padding: 16px 24px;
    font-size: 1.0625rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.modal-actions .btn-secondary {
    background: white;
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
}

.modal-actions .btn-secondary:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

.modal-actions .btn-primary {
    background: linear-gradient(135deg, #6B5EFF 0%, #8B7EFF 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 16px rgba(107, 94, 255, 0.3);
}

.modal-actions .btn-primary:hover {
    background: linear-gradient(135deg, #5B4EEF 0%, #7B6EEF 100%);
    box-shadow: 0 6px 20px rgba(107, 94, 255, 0.4);
    transform: translateY(-2px);
}

.consult-form {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.required {
    color: #EF4444;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 11px 15px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(107, 94, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-weight: 400;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.privacy-text {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 8px;
    line-height: 1.6;
}

.btn-submit {
    background: var(--primary);
    color: white;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(107, 94, 255, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

/* 성공 메시지 */
.modal-success {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    margin: 0 auto 24px;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.modal-success h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.modal-success p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.modal-success .btn {
    min-width: 120px;
}

/* ==========================================
   반응형
   ========================================== */
@media (max-width: 1024px) {
    /* 태블릿 이하에서는 프로모션 사이드바 숨김 */
    body.has-promo-sidebar {
        padding-right: 0;
    }

    .promo-sidebar-fixed {
        display: none;
    }

    .hero-content {
        flex-direction: column;
        gap: 40px;
        padding: 0 20px;
    }

    .hero-left {
        flex: 1 1 auto;
        max-width: 100%;
        text-align: center;
        align-items: center;
    }

    .hero-promo {
        position: relative;
        top: 0;
        max-height: none;
    }

    .hero-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .intro-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .intro-grid::before {
        display: none;
    }

    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* 모바일에서 프로모션 사이드바 패딩 제거 */
    body.has-promo-sidebar {
        padding-right: 0 !important;
    }

    /* 프로모션 사이드바 완전히 숨김 */
    .promo-sidebar-fixed {
        display: none !important;
    }

    /* Container 모바일 최적화 */
    .container {
        padding: 0 20px;
    }

    /* 헤더 모바일 최적화 */
    .header {
        padding: 12px 0;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
    }

    .header-wrapper {
        gap: 16px;
    }

    .logo {
        font-size: 16px;
    }

    .logo svg {
        width: 28px;
        height: 28px;
    }

    .nav {
        display: none;
    }

    /* 모바일 메뉴가 열렸을 때 전체 화면 표시 */
    .nav.active {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: auto !important;
        width: 300px !important;
        max-width: 85vw !important;
        height: 100vh !important;
        max-height: 100vh !important;
        flex-direction: column !important;
        z-index: 10001 !important;
        background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%) !important;
        box-shadow: -6px 0 32px rgba(107, 94, 255, 0.12) !important;
        overflow-y: auto !important;
        padding: 28px 24px !important;
    }

    .mobile-menu-btn {
        display: flex;
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
    }

    /* 헤더 액션 버튼 모바일에서 숨김 (햄버거 메뉴 안으로 이동) */
    .header-actions {
        display: none;
    }

    /* Hero 섹션 모바일 최적화 */
    .hero {
        padding: 40px 0;
    }

    .hero-content {
        flex-direction: column;
        gap: 40px;
        padding: 0 16px;
    }

    .hero-left {
        flex: 1 1 auto;
        max-width: 100%;
        align-items: center;
        text-align: center;
        padding-left: 0;
    }

    .hero-badges {
        justify-content: center;
        gap: 8px;
    }

    .hero-badge {
        padding: 6px 10px;
        font-size: 11px;
        gap: 4px;
    }

    .hero-badge svg {
        width: 14px;
        height: 14px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-description {
        margin: 0 auto 24px;
    }

    .btn-hero {
        margin: 0 auto;
    }

    .hero-cards {
        grid-template-columns: 1fr;
    }

    .hero-cards-slider-container {
        min-height: 1200px;
        padding: 0 20px;
    }

    .hero-slider-btn {
        width: 36px;
        height: 36px;
    }

    .hero-slider-btn.prev {
        left: -10px;
    }

    .hero-slider-btn.next {
        right: -10px;
    }

    .hero-slider-btn svg {
        width: 18px;
        height: 18px;
    }

    .card-challenge {
        grid-column: span 1;
    }

    /* 사이트 소개 섹션 모바일 최적화 */
    .intro-section {
        padding: 60px 0;
    }

    .intro-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 40px;
    }

    .intro-grid::before {
        display: none;
    }

    .intro-card-title {
        font-size: 18px;
    }

    .intro-card-desc {
        font-size: 14px;
    }

    /* Features 카드 섹션 모바일 최적화 */
    .features-section {
        padding: 40px 0;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .feature-card.clickable {
        padding: 16px 12px;
    }

    .feature-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 10px;
    }

    .feature-title {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .feature-description {
        font-size: 11px;
    }

    .stats-cards {
        grid-template-columns: 1fr;
    }

    .promo-swiper {
        padding: 0 50px;
    }

    .promo-content {
        flex-direction: column;
        text-align: center;
        padding: 16px 20px;
        gap: 12px;
    }

    .promo-icon {
        font-size: 32px;
    }

    .promo-title {
        font-size: 16px;
    }

    .promo-description {
        font-size: 12px;
    }

    .promo-button {
        width: 100%;
        padding: 10px 20px;
    }

    /* 프로모션 슬라이더 모바일 스타일 */
    .promo-slider-btn {
        width: 36px;
        height: 36px;
    }

    .promo-slider-btn.prev {
        left: 5px;
    }

    .promo-slider-btn.next {
        right: 5px;
    }

    .promo-slider-btn svg {
        width: 20px;
        height: 20px;
    }

    .header-actions .btn-text,
    .header-actions .btn-icon:not(.btn-mypage) {
        display: none;
    }
}

/* 초소형 화면 최적화 (480px 이하) */
@media (max-width: 480px) {
    .header {
        padding: 10px 0;
    }

    .header-wrapper {
        gap: 12px;
    }

    .logo {
        font-size: 14px;
    }

    .logo svg {
        width: 24px;
        height: 24px;
    }

    .logo-text {
        font-size: 14px;
    }

    .header-actions .btn-primary {
        padding: 8px 12px;
        font-size: 12px;
    }

    .header-actions .btn-secondary {
        display: none;
    }

    .mobile-menu-btn {
        min-width: 40px;
        min-height: 40px;
        padding: 6px;
    }

    .nav.active {
        display: flex !important;
        width: 100%;
        max-width: 100%;
    }
}

/* ========================================
   Hero Cards 무한 스크롤 애니메이션
   ======================================== */

.hero-right {
    position: relative;
    flex: 1 1 auto;
    min-height: 620px;
    max-height: 720px;
    max-width: 650px;
    overflow: hidden;
    display: flex;
    gap: 16px;
    align-items: center;
    background: linear-gradient(180deg, rgba(250, 251, 255, 0.5) 0%, rgba(248, 249, 250, 0.5) 100%);
    border-radius: var(--radius-xl);
}

/* 무한 스크롤 컨테이너 */
.hero-scroll-container {
    width: calc(50% - 8px);
    height: 620px;
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    padding: 20px 15px;
    background: linear-gradient(180deg, rgba(250, 251, 255, 0.8) 0%, rgba(248, 249, 250, 0.8) 100%);
    cursor: grab;
    user-select: none;
}

.hero-scroll-container:active {
    cursor: grabbing;
}

/* 스크롤 트랙 */
.hero-scroll-track {
    display: flex;
    flex-direction: column;
    gap: 20px;
    will-change: transform;
    padding: 20px 0;
}

/* 카드 스타일 */
.hero-scroll-container .hero-card {
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow: visible;
    flex-shrink: 0;
    min-height: 150px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.hero-scroll-container .hero-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(107, 94, 255, 0.15);
}

/* 이미지 카드 스타일 */
.hero-card-image {
    padding: 20px !important;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    min-height: 200px;
    height: auto;
    width: 100%;
}

.hero-card-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 350px;
    object-fit: contain;
    display: block;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* 모바일 반응형 */
@media (max-width: 1024px) {
    .hero {
        min-height: 700px;
    }

    .hero-scroll-container {
        height: 500px;
    }

    .hero-right {
        min-height: 500px;
        max-height: 550px;
        max-width: 100%;
        width: 100%;
    }

    .hero-scroll-container .hero-card {
        max-height: 450px;
    }

    .hero-card-image {
        height: auto;
        padding: 16px !important;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 600px;
        padding: 60px 0 80px;
    }

    .hero-scroll-container {
        height: 450px;
    }

    .hero-right {
        display: none;
    }

    .hero-scroll-container .hero-card {
        width: 95%;
        max-height: 400px;
    }

    .hero-card-image {
        height: auto;
        padding: 12px !important;
    }
}

/* ==========================================
   추가 모바일 최적화 (터치 인터랙션 개선)
   ========================================== */
@media (max-width: 768px) {
    /* 모든 클릭 가능한 요소의 최소 터치 영역 확보 (44x44px) */
    button,
    a.btn,
    .clickable,
    input[type="submit"],
    input[type="button"] {
        min-height: 44px;
        min-width: 44px;
    }

    /* 모바일 전용 간격 개선 */
    .section-header h2 {
        font-size: 28px;
        line-height: 1.3;
    }

    .section-header p {
        font-size: 14px;
        line-height: 1.6;
    }

    /* 카드 간격 최적화 */
    .feature-card {
        padding: 24px 20px;
    }

    .feature-title {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .feature-description {
        font-size: 14px;
        line-height: 1.6;
    }

    /* 버튼 크기 최적화 */
    .btn {
        padding: 14px 24px;
        font-size: 15px;
    }

    .btn-hero {
        padding: 16px 32px;
        font-size: 16px;
    }

    /* 입력 필드 최적화 */
    input,
    select,
    textarea {
        font-size: 16px !important; /* iOS zoom 방지 */
        padding: 14px 16px;
    }

    /* 모달 최적화 */
    .modal-container,
    .modal-content {
        max-width: 95%;
        max-height: 90vh;
        margin: 20px;
    }

    /* 테이블 모바일 최적화 */
    table {
        font-size: 14px;
    }

    th, td {
        padding: 12px 8px;
    }

    /* 네비게이션 모바일 개선 */
    .nav.active {
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .nav-link {
        padding: 14px 20px;
        font-size: 16px;
    }

    /* 스와이퍼 버튼 터치 영역 확대 */
    .swiper-button-prev,
    .swiper-button-next {
        width: 44px;
        height: 44px;
    }

    /* 이미지 최적화 */
    img {
        max-width: 100%;
        height: auto;
    }

    /* 스크롤 성능 개선 */
    * {
        -webkit-overflow-scrolling: touch;
    }

    /* 폰트 크기 조정 */
    h1 { font-size: 32px; }
    h2 { font-size: 28px; }
    h3 { font-size: 24px; }
    h4 { font-size: 20px; }
    h5 { font-size: 18px; }
    h6 { font-size: 16px; }

    /* 간격 조정 */
    section {
        padding: 60px 0;
    }

    /* Footer 모바일 최적화 */
    .footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 32px;
    }

    .footer-section {
        width: 100%;
        text-align: center;
    }

    /* 햄버거 메뉴 애니메이션 개선 */
    .mobile-menu-btn span {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-20px);
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

/* 작은 모바일 기기 추가 최적화 (iPhone SE 등) */
@media (max-width: 375px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 28px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .feature-card {
        padding: 20px 16px;
    }

    h1 { font-size: 28px; }
    h2 { font-size: 24px; }
    h3 { font-size: 20px; }
}

/* ==========================================
   PWA 및 추가 모바일 최적화
   ========================================== */

/* Safe Area 대응 - 헤더 */
@supports (padding: max(0px)) {
    .header {
        padding-left: max(0px, var(--safe-area-inset-left));
        padding-right: max(0px, var(--safe-area-inset-right));
    }
}

/* Input Zoom 방지 (iOS 16px 미만 폰트에서 자동 줌 발생) */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="url"],
textarea,
select {
    font-size: 16px !important;
}

@media (min-width: 769px) {
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    input[type="number"],
    input[type="search"],
    input[type="url"],
    textarea,
    select {
        font-size: 14px !important;
    }
}

/* 가로 모드 최적화 */
@media (max-width: 896px) and (orientation: landscape) {
    .header {
        padding: 8px 0;
    }

    .hero {
        min-height: auto;
        padding: 60px 0 40px;
    }

    .section {
        padding: 40px 0;
    }

    .modal-overlay {
        overflow-y: auto;
        align-items: flex-start;
        padding: 20px;
    }
}

/* 터치 제스처 개선 */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }

    .btn:active {
        transform: scale(0.98);
        opacity: 0.9;
    }

    button:active,
    a:active {
        opacity: 0.7;
        transition: opacity 0.1s;
    }
}

/* Reduced Motion 대응 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* PWA Standalone 모드 */
@media (display-mode: standalone) {
    .header {
        top: var(--safe-area-inset-top);
    }
}
