/* 기본 리셋 및 변수 */
:root {
    --primary-color: #4F46E5;
    --secondary-color: #10B981;
    --danger-color: #EF4444;
    --dark: #1F2937;
    --light: #F9FAFB;
    --border: #E5E7EB;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 헤더 스타일 */
.main-header {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.biz-display {
    background: var(--secondary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 1000;
    padding: 0.5rem 0;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    color: var(--dark);
    padding: 0.5rem 1rem;
    text-decoration: none;
    display: block;
}

.dropdown-menu a:hover {
    background: var(--light);
}

.dropdown-menu hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0.5rem 0;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
}

/* 히어로 섹션 */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.hero-subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* 기능 섹션 */
.features-section {
    padding: 80px 0;
    background: var(--light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark);
}

/* 기능 카드 그리드 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
    position: relative;
    box-sizing: border-box;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.feature-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.biz-cost {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    margin: 1rem 0;
    font-weight: 600;
}

/* 버튼 스타일 */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 0.875rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #4338CA;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* 푸터 */
.main-footer {
    background: var(--dark);
    color: white;
    padding: 3rem 0;
    margin-top: 5rem;
}

/* footer-links 스타일은 index-compact.css에서 관리 */

.company-info {
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.8;
}

.company-info p {
    margin-bottom: 0.5rem;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    /* footer-links 스타일은 index-compact.css에서 관리 */
    
    .main-header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .auth-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}

/* 메인 콘텐츠 */
.main-content {
    min-height: calc(100vh - 200px);
}

/* 기능 카드 타이틀과 설명 가운데 정렬 */
.feature-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.feature-title {
    text-align: center;
    width: 100%;
}

.feature-description {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 16px 0;
}

/* 기능 사용 버튼 가운데 정렬 */
.feature-button {
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 호버 시 상세 설명 박스 */
.feature-tooltip {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    box-sizing: border-box;
    display: none;
}

/* 추가 기능 섹션 전체 클릭 가능 */
.coming-soon-section {
    cursor: pointer;
    transition: background-color 0.3s;
}

.coming-soon-section:hover {
    background-color: rgba(124, 58, 237, 0.05);
}

/* 푸터 링크 텍스트 흰색으로 변경 */
.footer-links a {
    color: white !important;
    opacity: 1;
}

.footer-links .divider {
    color: white !important;
    opacity: 0.7;
}

/* 숨김 클래스 */
.hidden {
    display: none;
}

/* 기능 카드 호버 시 툴팁 표시 */
.feature-card:hover .feature-tooltip {
    display: block;
}

/* 헤더 스타일 조정 */
.header {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 브랜드 섹션 스타일 */
.brand-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-section .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #7c3aed;
    text-decoration: none;
    transition: opacity 0.3s;
}

.brand-section .logo:hover {
    opacity: 0.8;
}

.brand-section .divider {
    color: #d1d5db;
    font-weight: 300;
}

.brand-section .tagline {
    font-size: 0.95rem;
    color: #6b7280;
    font-style: normal !important;
}

.brand-section .subtitle {
    font-size: 0.9rem;
    color: #9ca3af;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .brand-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .brand-section .divider {
        display: none;
    }
    
    .brand-section .tagline,
    .brand-section .subtitle {
        font-size: 0.8rem;
    }
    
    /* 모바일에서 기능 번호 크기 조정 */
    .function-number {
        width: 28px;
        height: 28px;
        font-size: 14px;
        top: 8px;
        left: 12px;
    }
    
    /* 모바일에서 카드 텍스트 크기 조정 */
    .feature-title {
        font-size: 18px;
    }
    
    .feature-description {
        font-size: 14px;
    }
}

@media (max-width: 640px) {
    /* 모바일에서는 슬로건과 부제목 숨김 */
    .brand-section .tagline,
    .brand-section .subtitle,
    .brand-section .divider {
        display: none;
    }
    
    .brand-section .logo {
        font-size: 1.25rem;
    }
}

/* 히어로 섹션 삭제 후 메인 콘텐츠 여백 조정 */
.main-content,
main {
    padding-top: 2rem; /* 헤더 아래 적절한 여백 */
}

.features-section {
    padding-top: 3rem; /* 기능 섹션 상단 여백 */
}

/* 히어로 섹션 관련 CSS 모두 제거 */
.hero-section,
.hero,
.hero-content,
.main-title,
.hero-section .tagline,
.hero-section .subtitle {
    /* 삭제 또는 display: none; */
    display: none !important;
}

/* 헤더 스타일 */
.header {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-section .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
    text-decoration: none;
}

.brand-section .divider {
    color: #d1d5db;
}

.brand-section .tagline {
    color: #6b7280;
    font-style: italic;
}

.brand-section .subtitle {
    color: #9ca3af;
}

.brand-section .ai-icon {
    color: #667eea;
    margin-left: 8px;
    font-size: 22px;
    animation: sparkle 2s ease-in-out infinite;
    display: inline-block;
    vertical-align: middle;
    opacity: 0.9;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

/* 기능 카드 정렬 */
.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    box-sizing: border-box;
}

/* 기능 번호 스타일 */
.function-number {
    position: absolute;
    top: 8px;
    left: 12px;
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, #667eea, #667eea);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 10;
}

/* 기능 카드 링크 스타일 */
.feature-card-link {
    position: relative;
    text-decoration: none;
    color: inherit;
    display: block;
    overflow: visible;
}

/* 기능 카드 컴팩트 스타일 */
.feature-card-compact {
    position: relative;
    overflow: visible;
}

.feature-title {
    text-align: center !important;
    width: 100%;
    margin-bottom: 1rem;
    font-size: 20px; /* 기존 18px에서 증가 */
    font-weight: 600;
    line-height: 1.4;
}

.feature-description {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 60px;
    margin: 1rem 0;
    font-size: 15px; /* 기존 14px에서 증가 */
    line-height: 1.6;
    color: #666;
}

/* 카드 내용 중앙 정렬 */
.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 카드 헤더 내용 중앙 정렬 */
.card-header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* 타이틀과 아이콘 가로 배치 */
.title-with-icon {
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-icon {
    font-size: 1.2em;
    color: white;
}

/* 카드 버튼 중앙 정렬 */
.card-button {
    margin: 20px auto 0 auto;
    display: block;
}

/* 카드 액션 버튼 중앙 정렬 */
.btn-card-action {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 auto;
}

/* 더 많은 기능 섹션 전체 클릭 가능 */
.coming-soon-section {
    cursor: pointer;
    transition: background-color 0.3s;
}

.coming-soon-section:hover {
    background-color: rgba(0,0,0,0.02);
}

/* 기능 카드 호버 효과 */
.feature-card-link:hover .feature-tooltip {
    display: flex;
}

.feature-button {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    width: auto;
    margin: 0 auto;
}

/* 툴팁 스타일 */
.feature-tooltip {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.98);
    border-radius: inherit;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.feature-card:hover .feature-tooltip {
    display: block;
}

/* 추가 기능 섹션 클릭 가능 */
.coming-soon-section {
    cursor: pointer;
    padding: 3rem;
    background: #f9fafb;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-align: center;
}

.coming-soon-section:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 푸터 스타일은 index-compact.css에서 관리 */

/* 패키지 카드 스타일 */
.package-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.package-card.featured {
    border-color: #7c3aed;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

.package-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.package-tagline {
    color: #6b7280;
    font-style: italic;
    margin: 0.5rem 0;
}

.biz-amount {
    font-size: 2rem;
    font-weight: bold;
    color: #7c3aed;
    display: block;
}

.price {
    font-size: 1.5rem;
    font-weight: bold;
    display: block;
    margin: 0.5rem 0;
}

.unit-price {
    color: #9ca3af;
    font-size: 0.9rem;
}

.discount {
    color: #10b981;
    font-weight: bold;
}

.badge {
    background: #7c3aed;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: inline-block;
}
