:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --text-dark: #1f2937;
    --text-medium: #4d4d4d;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --success-color: #10b981;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-medium);
    line-height: 1.6;
    font-size: 16px;
}

.text-muted {
    font-size: 14px;
}

.small {
    font-size: 14px !important;
}

/* 네비게이션 스타일 */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

/* 히어로 섹션 */
.hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    word-break: keep-all;
}

.hero h1 .brand-name {
    white-space: nowrap;
}

#typed-text {
    color: #fbbf24;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 버튼 스타일 */
.btn-hero-primary {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    border-radius: 0.5rem;
    margin: 0.5rem 0.5rem 0.5rem 0;
    transition: all 0.3s ease;
    background-color: white;
    color: var(--primary-color);
    border: 2px solid white;
    font-weight: 600;
}

.btn-hero-primary:hover {
    background-color: transparent;
    color: white;
    border-color: white;
}

.btn-hero-secondary {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    border-radius: 0.5rem;
    margin: 0.5rem;
    transition: all 0.3s ease;
    background-color: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-hero-secondary:hover {
    border-color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

/* 기능 섹션 */
.features {
    padding: 5rem 0;
    background: var(--bg-light);
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    height: 100%;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.feature-card::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;
    pointer-events: none;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.feature-card:hover .bi {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.feature-card .bi {
    transition: transform 0.3s ease;
}

/* 사회적 증명 섹션 */
.social-proof {
    padding: 3rem 0;
    background: white;
}

.stats-counter {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    transition: all 0.3s ease;
    cursor: default;
}

.stats-counter:hover {
    transform: scale(1.1);
    text-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

/* 가격 섹션 */
.pricing {
    padding: 5rem 0;
}

.pricing-card {
    background: white;
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.pricing-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(59, 130, 246, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.pricing-card:hover::after {
    opacity: 1;
}

.pricing-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: translateY(-10px) scale(1.05) !important;
    box-shadow: 0 25px 50px rgba(37, 99, 235, 0.25) !important;
}

/* FAQ 섹션 */
.faq {
    padding: 5rem 0;
    background: var(--bg-light);
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
}

/* 푸터 */
footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 2rem;
}

/* 카카오 링크 */
.kakao-link {
    display: inline-flex;
    align-items: center;
    background: #FEE500;
    color: #3C1E1E;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.kakao-link:hover {
    background: #FDDC00;
    color: #3C1E1E;
    text-decoration: none;
}

/* 라이브 카운터 */
.live-counter {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success-color);
    color: var(--success-color);
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    display: inline-flex;
    align-items: center;
    margin-top: 1rem;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* 애니메이션 효과들 */
.blink {
    animation: blink 0.8s ease-in-out;
}

@keyframes blink {
    0% { 
        opacity: 1; 
        transform: scale(1);
        color: inherit;
    }
    25% { 
        opacity: 0.3; 
        transform: scale(1.1);
        color: #fbbf24;
    }
    50% { 
        opacity: 1; 
        transform: scale(1.15);
        color: #fbbf24;
        text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
    }
    75% { 
        opacity: 0.8; 
        transform: scale(1.05);
        color: #fbbf24;
    }
    100% { 
        opacity: 1; 
        transform: scale(1);
        color: inherit;
    }
}

/* 버튼 리플 효과 */
.btn-ripple {
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}

.btn-ripple:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-ripple:hover {
    transform: translateY(-1px);
}

/* 아이콘 애니메이션 */
.icon-bounce:hover {
    animation: bounce 0.6s ease-in-out;
}

@keyframes bounce {
    0%, 20%, 60%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    80% { transform: translateY(-5px); }
}

.icon-rotate:hover {
    animation: rotate 0.6s ease-in-out;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.icon-pulse:hover {
    animation: icon-pulse 1s ease-in-out;
}

@keyframes icon-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* 네비게이션 링크 애니메이션 */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

/* 체크 아이콘 애니메이션 */
.bi-check-circle {
    transition: all 0.3s ease;
}

.list-unstyled li:hover .bi-check-circle {
    transform: scale(1.2) rotate(5deg);
    color: var(--success-color) !important;
}

/* 브랜드 로고 호버 효과 */
.navbar-brand {
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
    color: var(--primary-color) !important;
}

.navbar-brand:hover .bi {
    animation: wiggle 0.5s ease-in-out;
}

@keyframes wiggle {
    0%, 7% { transform: rotateZ(0); }
    15% { transform: rotateZ(-15deg); }
    20% { transform: rotateZ(10deg); }
    25% { transform: rotateZ(-10deg); }
    30% { transform: rotateZ(6deg); }
    35% { transform: rotateZ(-4deg); }
    40%, 100% { transform: rotateZ(0); }
}

/* 인기 배지 애니메이션 */
.badge {
    transition: all 0.3s ease;
}

.pricing-card:hover .badge {
    animation: badge-glow 1.5s ease-in-out infinite;
}

@keyframes badge-glow {
    0%, 100% { 
        box-shadow: 0 0 5px rgba(37, 99, 235, 0.5);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 20px rgba(37, 99, 235, 0.8);
        transform: scale(1.05);
    }
}

/* 아코디언 버튼 개선 */
.accordion-button {
    transition: all 0.3s ease;
}

.accordion-button:hover {
    background-color: rgba(37, 99, 235, 0.05) !important;
    transform: translateX(5px);
}

/* 버튼 호버 시 그림자 효과 */
.btn {
    transition: all 0.3s ease;
    position: relative;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn-outline-primary:hover {
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.2);
}

/* 로딩 스켈레톤 효과 */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    /* 네비게이션 모바일 개선 */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
        background: rgba(255, 255, 255, 0.98);
        border-radius: 0.5rem;
        padding: 1rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav .nav-item {
        margin-bottom: 0.5rem;
        width: 100%;
    }
    
    .navbar-nav .nav-item .btn {
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 0.5rem;
        padding: 0.875rem 1rem;
        font-size: 1rem;
        font-weight: 600;
        min-height: 48px; /* 터치 친화적 크기 */
        border-radius: 0.5rem;
        text-align: center;
        transition: all 0.3s ease;
    }
    
    .navbar-nav .nav-item .btn:hover {
        transform: none; /* 모바일에서는 호버 변형 제거 */
    }
    
    .navbar-nav .nav-item .btn:active {
        transform: scale(0.98);
    }
    
    .navbar-nav .nav-link:not(.btn) {
        padding: 0.75rem 1rem;
        border-radius: 0.375rem;
        margin-bottom: 0.25rem;
        font-weight: 500;
        text-align: center;
        transition: all 0.3s ease;
    }
    
    .navbar-nav .nav-link:not(.btn):hover {
        background-color: rgba(37, 99, 235, 0.1);
        transform: none;
    }
    
    .navbar-nav .nav-link:not(.btn)::after {
        display: none; /* 모바일에서는 밑줄 제거 */
    }
    
    /* 히어로 섹션 모바일 최적화 */
    .hero {
        padding: 6rem 0 3rem;
        min-height: 500px;
    }
    
    .hero h1 {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
        margin-bottom: 1rem;
    }
    
    .hero .lead {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        margin: 0.5rem 0;
        padding: 1rem 2rem;
        font-size: 1.1rem;
        min-height: 48px;
    }
    
    /* 기능 카드 모바일 최적화 */
    .feature-card {
        margin-bottom: 1.5rem;
        padding: 1.5rem;
    }
    
    .feature-card:hover {
        transform: none; /* 모바일에서는 호버 변형 제거 */
    }
    
    /* 가격 카드 모바일 최적화 */
    .pricing-cards-container {
        overflow-x: auto;
        padding-bottom: 1rem;
    }
    
    .pricing-cards-row {
        display: flex;
        flex-wrap: nowrap;
        gap: 1rem;
        width: max-content;
    }
    
    .pricing-card-mobile {
        min-width: 280px;
        flex-shrink: 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .lead {
        font-size: 1rem;
    }
}

/* 채팅 위젯 위치 조정 */
#ch-plugin {
    bottom: 20px !important;
    right: 20px !important;
}

@media (max-width: 768px) {
    #ch-plugin {
        bottom: 10px !important;
        right: 10px !important;
        left: auto !important;
    }
} 