/* 뷰티어게인 향상된 타이포그래피 스타일 */

:root {
    /* 메인 색상 */
    --primary: #FF6B95;
    --secondary: #7C5DF9;
    --light: #F9F9F9;
    --dark: #212529;
    --success: #36D7B7;
    
    /* 타이포그래피 스케일 - Apple 스타일 */
    --text-xs: 0.75rem;    /* 12px */
    --text-sm: 0.875rem;   /* 14px */
    --text-base: 1rem;     /* 16px */
    --text-md: 1.125rem;   /* 18px */
    --text-lg: 1.25rem;    /* 20px */
    --text-xl: 1.5rem;     /* 24px */
    --text-2xl: 1.875rem;  /* 30px */
    --text-3xl: 2.25rem;   /* 36px */
    --text-4xl: 3rem;      /* 48px */
    --text-5xl: 3.75rem;   /* 60px */
    
    /* 타이포그래피 글자 간격 - Apple 스타일 */
    --tracking-tighter: -0.05em;
    --tracking-tight: -0.025em;
    --tracking-normal: 0em;
    --tracking-wide: 0.025em;
    --tracking-wider: 0.05em;
    --tracking-widest: 0.1em;
    
    /* 타이포그래피 줄 간격 - Apple 스타일 */
    --leading-none: 1;
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;
    
    /* 폰트 두께 - Apple 스타일 */
    --font-thin: 100;
    --font-extralight: 200;
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    --font-black: 900;
}

/* 기본 타이포그래피 설정 */
body {
    font-family: 
        <?php 
        // 언어별 기본 폰트 설정
        switch ($language) {
            case 'ko':
                echo "'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif";
                break;
            case 'ja':
                echo "'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', sans-serif";
                break;
            case 'zh_CN':
                echo "'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif";
                break;
            case 'zh_TW':
                echo "'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'PingFang TC', sans-serif";
                break;
            default:
                echo "-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', sans-serif";
        }
        ?>;
    background-color: #fff;
    color: #333;
    overflow-x: hidden;
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    font-weight: var(--font-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}

/* 기본 헤더 스타일 */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
}

h1 {
    font-size: var(--text-4xl);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: var(--text-3xl);
    margin-bottom: 1.25rem;
}

h3 {
    font-size: var(--text-2xl);
    margin-bottom: 1rem;
}

h4 {
    font-size: var(--text-xl);
    margin-bottom: 0.75rem;
}

h5 {
    font-size: var(--text-lg);
    margin-bottom: 0.5rem;
}

h6 {
    font-size: var(--text-base);
    margin-bottom: 0.5rem;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: var(--leading-relaxed);
}

/* 그라데이션 및 버튼 스타일 유지 */
.bg-gradient-new {
    background: linear-gradient(135deg, #FF6B95 0%, #7C5DF9 100%);
}

.text-gradient {
    background: linear-gradient(135deg, #FF6B95 0%, #7C5DF9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #FF6B95 0%, #7C5DF9 100%);
    border: none;
    transition: all 0.3s ease;
    font-weight: var(--font-medium);
    letter-spacing: var(--tracking-wide);
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 네비게이션 및 섹션 스타일 개선 */
.navbar {
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: var(--font-bold);
    letter-spacing: var(--tracking-tight);
    font-size: var(--text-xl);
}

.nav-link {
    font-weight: var(--font-medium);
    letter-spacing: var(--tracking-wide);
    font-size: var(--text-sm);
}

.navbar-scrolled {
    background-color: #fff !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 히어로 섹션 타이포그래피 향상 */
.hero-section {
    min-height: 100vh;
    background: url('<?php echo $images['hero']; ?>') center center/cover no-repeat;
    position: relative;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 149, 0.8) 0%, rgba(124, 93, 249, 0.8) 100%);
}

.hero-section h1 {
    font-size: var(--text-5xl);
    font-weight: var(--font-bold);
    letter-spacing: var(--tracking-tight);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-section p.lead {
    font-size: var(--text-xl);
    font-weight: var(--font-light);
    line-height: var(--leading-relaxed);
    margin-bottom: 2rem;
    letter-spacing: var(--tracking-normal);
}

/* 서비스 카드 타이포그래피 */
.service-card {
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.service-card h4 {
    font-weight: var(--font-semibold);
    letter-spacing: var(--tracking-tight);
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    color: #6c757d;
}

.service-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
}

.ai-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #3A86FF 0%, #5E60CE 100%);
    color: white;
    padding: 5px 10px;
    border-radius: 10px;
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    letter-spacing: var(--tracking-wide);
    z-index: 1;
}

/* 언어 선택기 타이포그래피 개선 */
.language-selector {
    position: relative;
}

.language-selector .btn {
    font-weight: var(--font-medium);
    letter-spacing: var(--tracking-wide);
    font-size: var(--text-sm);
}

.language-selector .dropdown-menu {
    min-width: 10rem;
    padding: 0.5rem 0;
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.language-selector .dropdown-item {
    padding: 0.5rem 1.5rem;
    font-size: var(--text-sm);
    letter-spacing: var(--tracking-wide);
}

.language-selector .dropdown-item:hover {
    background-color: var(--light);
}

.language-selector .dropdown-item.active {
    background-color: var(--primary);
    color: white;
    font-weight: var(--font-medium);
}

.language-flag {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border-radius: 2px;
}

/* 쿠키 동의 팝업 타이포그래피 개선 */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 15px;
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-consent p {
    margin: 0;
    padding-right: 20px;
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
    letter-spacing: var(--tracking-wide);
}

.cookie-btns {
    display: flex;
    gap: 10px;
}

.cookie-btns .btn {
    font-weight: var(--font-medium);
    letter-spacing: var(--tracking-wide);
    font-size: var(--text-xs);
}

/* 통계 요소 타이포그래피 향상 */
.stats-box {
    padding: 40px 20px;
    text-align: center;
    border-radius: 20px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.stats-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.counter {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    line-height: 1;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #FF6B95 0%, #7C5DF9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: var(--tracking-tight);
}

.stats-box p {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    margin-bottom: 0;
    color: #6c757d;
    letter-spacing: var(--tracking-wide);
}

/* 기술 태그 타이포그래피 개선 */
.tech-tag {
    display: inline-block;
    padding: 5px 10px;
    background-color: rgba(58, 134, 255, 0.1);
    color: #fff;
    border-radius: 5px;
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    letter-spacing: var(--tracking-wider);
    margin-right: 5px;
    margin-bottom: 5px;
}

.ai-icon {
    font-size: var(--text-sm);
    margin-right: 5px;
    color: #3A86FF;
}

/* 섹션 제목 타이포그래피 향상 */
.section-heading {
    position: relative;
    margin-bottom: 50px;
    font-weight: var(--font-bold);
    font-size: var(--text-3xl);
    letter-spacing: var(--tracking-tight);
    line-height: var(--leading-tight);
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #FF6B95 0%, #7C5DF9 100%);
    border-radius: 2px;
}

/* 애니메이션 설정 유지 */
.animated-element {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 반응형 타이포그래피 - Apple 스타일 */
@media (max-width: 1199.98px) {
    .hero-section h1 {
        font-size: calc(var(--text-4xl) + 0.5rem);
    }
    
    .section-heading {
        font-size: var(--text-2xl);
    }
}

@media (max-width: 991.98px) {
    .hero-section h1 {
        font-size: var(--text-4xl);
    }
    
    .hero-section p.lead {
        font-size: var(--text-lg);
    }
    
    .section-heading {
        font-size: var(--text-2xl);
    }
    
    .counter {
        font-size: var(--text-3xl);
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: 80vh;
    }
    
    .hero-section h1 {
        font-size: var(--text-3xl);
        letter-spacing: -0.03em;
    }
    
    .hero-section p.lead {
        font-size: var(--text-md);
    }
    
    .section-heading {
        font-size: var(--text-xl);
    }
    
    .counter {
        font-size: var(--text-2xl);
    }
    
    .cookie-consent {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-consent p {
        margin-bottom: 15px;
        padding-right: 0;
    }
    
    .cookie-btns {
        width: 100%;
        justify-content: space-between;
    }
    
    h1 {
        font-size: var(--text-3xl);
    }
    
    h2 {
        font-size: var(--text-2xl);
    }
    
    h3 {
        font-size: var(--text-xl);
    }
}

@media (max-width: 575.98px) {
    .hero-section h1 {
        font-size: var(--text-2xl);
        letter-spacing: -0.01em;
    }
    
    .hero-section p.lead {
        font-size: var(--text-base);
    }
    
    .section-heading {
        font-size: var(--text-lg);
    }
    
    .counter {
        font-size: var(--text-xl);
    }
    
    h1 {
        font-size: var(--text-2xl);
    }
    
    h2 {
        font-size: var(--text-xl);
    }
    
    h3 {
        font-size: var(--text-lg);
    }
}


/* 이미 생성된 .bg-gradient-new 클래스 비활성화 */
.bg-gradient-new {
    background: linear-gradient(135deg, #FF6B95 0%, #7C5DF9 100%);
}




/* 개인정보 동의 체크박스 스타일 */
.privacy-check {
	background-color: #f8f9fa;
	border: 1px solid #e9ecef;
	padding: 10px;
	border-radius: 5px;
	margin-top: 15px;
	margin-bottom: 15px;
}

.privacy-check .form-check-label {
	font-weight: 500;
}

.privacy-check .form-check-input {
	width: 18px;
	height: 18px;
	margin-top: 2px;
}

.privacy-check-highlight {
	animation: highlight-pulse 2s ease-in-out;
}

@keyframes highlight-pulse {
	0% { background-color: #f8f9fa; }
	50% { background-color: #ffecb5; }
	100% { background-color: #f8f9fa; }
}


/* 모바일 환경에서 히어로 이미지 표시 개선 */
@media (max-width: 767.98px) {
    .hero-section {
        min-height: 80vh;
        background-position: center center;
        background-size: cover;
        background-repeat: no-repeat;
    }
    
    .col-lg-6.d-none.d-lg-block {
        display: block !important;
    }
    
    .col-lg-6.d-none.d-lg-block img {
        width: 100%;
        height: auto;
        margin-top: 2rem;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }
}


/* 임팩트 강화를 위한 스타일 */
.bg-gradient-new {
    background: linear-gradient(135deg, #FF457A 0%, #7046FF 100%); /* 더 강한 대비의 그라데이션 */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 69, 122, 0.9) 0%, rgba(112, 70, 255, 0.9) 100%);
}

.hero-section h1 {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 더 강한 텍스트 그림자 */
    font-weight: 800;
}

/* 버튼 임팩트 강화 */
.btn-primary {
    box-shadow: 0 5px 15px rgba(255, 107, 149, 0.4);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 107, 149, 0.6);
}

/* 통계 수치 임팩트 강화 */
.counter {
    font-size: 2.5rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 모바일에서 텍스트 정렬 및 여백 조정 */
@media (max-width: 767.98px) {
    .hero-section .container {
        text-align: center;
        padding-top: 2rem;
    }
    
    .tech-tag {
        margin: 0.25rem;
    }
    
    .d-flex.gap-3 {
        justify-content: center;
    }
}


/* 언어 선택기 스타일 개선 */
.language-selector .btn {
    display: flex;
    align-items: center;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.language-selector .dropdown-menu {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: none;
}

.language-selector .dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.7rem 1rem;
}

.language-selector .dropdown-item.active {
    background: linear-gradient(135deg, #FF6B95 0%, #7C5DF9 100%);
}

.language-flag {
    width: 20px;
    height: 15px;
    object-fit: cover;
    margin-right: 10px;
    border-radius: 2px;
}

@media (max-width: 575.98px) {
    .language-selector .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .language-selector {
        margin-right: 0.5rem;
    }
}

/* 데모 신청 버튼 및 폼 개선 */
.btn-primary.rounded-pill {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.card.border-0.rounded-4.shadow {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.form-control {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #7C5DF9;
    box-shadow: 0 0 0 0.2rem rgba(124, 93, 249, 0.25);
}

.form-select {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    background-position: right 1rem center;
}

/* 모바일 환경에서 데모 신청 섹션 개선 */
@media (max-width: 767.98px) {
    #demo .btn-primary {
        width: 100%;
        padding: 0.75rem;
        margin-top: 1rem;
    }
    
    .privacy-check {
        margin-bottom: 1.5rem;
    }
    
    #demo .lead {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    #demo h2 {
        font-size: 1.75rem;
    }
}
/* 반응형 디자인 개선 */
@media (max-width: 575.98px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar .btn-primary {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }
    
    .navbar-nav {
        margin-top: 1rem;
    }
    
    .service-card {
        margin-bottom: 1.5rem;
    }
    
    .hero-section {
        padding-top: 4rem;
    }
    
    .stats-box {
        padding: 1.5rem 1rem;
    }
    
    .section-heading {
        margin-bottom: 2rem;
    }
}

/* JavaScript를 사용하지 않는 애니메이션 자동 시작 (모바일에서) */
@media (max-width: 767.98px) {
    .animated-element {
        animation: fadeInUp 1s forwards;
        opacity: 1;
        transform: translateY(0);
    }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}


.social-icon{padding-right:10px}
.benefit-icon{padding:0.5rem;margin-bottom:0.5em;}