
/* =========================================
    CSS Design System (Variable Base)
    ========================================= */
:root {
    /* [기본 테마: Standard] */
    --primary: #375bd2;
    --bg-hero: #375bd2;
    
    /* 섹션 배경 */
    --bg-section-1: #ffffff;
    --bg-section-2: #f8fafc;
    --bg-section-dark: #0f172a;
    
    /* Footer */
    --bg-footer: #020617;
    --text-footer: #94a3b8;
    --border-footer: rgba(255,255,255,0.05);

    /* UI 요소 */
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    --card-shadow: 0 10px 30px rgba(0,0,0,0.08);
    
    /* 텍스트 */
    --text-main: #1e293b;
    --text-sub: #64748b;
    --text-inverse: #ffffff;
    
    /* 헤더 & 메뉴 */
    --header-bg: rgba(255, 255, 255, 0.95);
    --header-border: #e2e8f0;
    --menu-mobile-bg: #ffffff;
    
    --header-h: 80px;
    --top-h: 40px;
}

/* [Dark Navy 테마] */
body.theme-dark {
    --primary: #3b82f6;
    --bg-hero: radial-gradient(circle at 50% 40%, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    
    --bg-section-1: #020617;
    --bg-section-2: #0f172a;
    --bg-section-dark: #020617;
    
    --bg-footer: #020617;
    --text-footer: #94a3b8;
    --border-footer: rgba(255, 255, 255, 0.1);
    
    --card-bg: rgba(30, 41, 59, 0.5);
    --card-border: rgba(255, 255, 255, 0.1);
    --card-shadow: none;
    
    --text-main: #f8fafc;
    --text-sub: #94a3b8;
    --text-inverse: #f8fafc;
    
    --header-bg: rgba(2, 6, 23, 0.95);
    --header-border: rgba(255, 255, 255, 0.1);
    --menu-mobile-bg: #0f172a;
}

/* [Deep Blue 테마] */
body.theme-deepblue {
    --primary: #64ffda;
    --bg-hero: radial-gradient(circle at 50% 40%, rgba(100, 255, 218, 0.1) 0%, transparent 70%);
    
    --bg-section-1: #0a192f;
    --bg-section-2: #112240;
    --bg-section-dark: #0a192f;
    
    --bg-footer: #0a192f;
    --text-footer: #8892b0;
    --border-footer: rgba(255, 255, 255, 0.1);
    
    --card-bg: rgba(17, 34, 64, 0.7);
    --card-border: rgba(255, 255, 255, 0.1);
    --card-shadow: none;
    
    --text-main: #e6f1ff;
    --text-sub: #8892b0;
    --text-inverse: #e6f1ff;
    
    --header-bg: rgba(10, 25, 47, 0.95);
    --header-border: rgba(255, 255, 255, 0.1);
    --menu-mobile-bg: #112240;
}

/* 기본 레이아웃 */
* { margin: 0; padding: 0; box-sizing: border-box; outline: none; }
body { 
    font-family: 'Pretendard', sans-serif; 
    background-color: var(--bg-section-1); 
    color: var(--text-main); 
    line-height: 1.7; word-break: keep-all;
    transition: background-color 0.5s ease, color 0.5s ease;
    position: relative; top: 0 !important;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 30px; position: relative; z-index: 2; }
a { text-decoration: none; color: inherit; transition: 0.3s ease; }
ul { list-style: none; padding: 0; margin: 0; }
section { padding: 120px 0; position: relative; }

.accent { color: var(--primary); font-weight: 700; transition: color 0.5s ease; }
h2.section-title { font-size: 42px; font-weight: 800; text-align: center; margin-bottom: 60px; letter-spacing: -1.5px; color: var(--text-main); }

/* -------------------------------------------
    구글 번역 위젯
    ------------------------------------------- */
.goog-te-banner-frame.skiptranslate, .goog-te-gadget-icon, .goog-tooltip { display: none !important; } 
body { top: 0px !important; }
#google_translate_element { display: inline-block; margin-left: 5px; }
.goog-te-gadget { color: transparent !important; font-size: 0 !important; }
.goog-te-combo {
    color: var(--text-main) !important;
    background-color: var(--bg-section-1) !important;
    border: 1px solid var(--header-border) !important;
    padding: 2px 4px !important; margin: 0 !important; 
    border-radius: 4px; font-size: 12px !important;
    cursor: pointer; vertical-align: middle;
}

/* 상단바 */
.top-bar { 
    background: rgba(0, 0, 0, 0.3); height: var(--top-h); 
    position: fixed; top: 0; width: 100%; z-index: 2001; 
    display: flex; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
}
body:not(.theme-dark):not(.theme-deepblue) .top-bar { background: #f8fafc; border-bottom: 1px solid #e2e8f0; }

.top-bar .container { display: flex; justify-content: flex-end; align-items: center; gap: 15px; font-size: 13px; width: 100%; }
.ui-label { color: #888; font-size: 12px; font-weight: 600; margin-right: 5px; vertical-align: middle; transition: color 0.2s ease; }
#lang-label:hover { color: var(--primary); }

.select-ui { 
    background: var(--bg-section-1); color: var(--text-main); 
    border: 1px solid var(--header-border); border-radius: 4px; 
    padding: 2px 4px; cursor: pointer; font-size: 12px;
    font-family: 'Pretendard', sans-serif; height: 26px; vertical-align: middle;
}

/* 헤더 */
header { 
    position: fixed; top: var(--top-h); width: 100%; height: var(--header-h); 
    background: var(--header-bg); backdrop-filter: blur(15px); 
    z-index: 2000; border-bottom: 1px solid var(--header-border); display: flex; align-items: center; 
    transition: all 0.3s ease;
}
header .container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { font-size: 26px; font-weight: 800; letter-spacing: -1px; color: var(--text-main); }
.logo .accent { color: var(--primary); }

/* ----------------------------------------------------
    [핵심 수정] 네비게이션 메뉴 (PC vs Mobile 분리)
    ---------------------------------------------------- */

/* 공통 버튼 숨김 */
.mobile-menu-btn, .menu-close-btn { display: none; }

/* PC 버전 (993px 이상) - 확실한 가로 배치 */
@media (min-width: 993px) {
    .nav-menu {
        display: flex !important; /* flex 강제 */
        flex-direction: row !important; /* 가로 강제 */
        gap: 35px;
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        box-shadow: none;
        transform: none;
        visibility: visible;
        opacity: 1;
    }
    .nav-menu a { font-size: 15px; color: var(--text-sub); font-weight: 500; border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
    .nav-menu a:hover, .nav-menu a.active { color: var(--primary); font-weight: 700; }
}

/* Mobile 버전 (992px 이하) - 햄버거 메뉴 */
@media (max-width: 992px) {
    .mobile-menu-btn { 
        display: block; cursor: pointer; z-index: 2002; width: 30px; height: 20px; position: relative; 
    }
    .mobile-menu-btn span {
        display: block; position: absolute; height: 3px; width: 100%;
        background: var(--text-main); border-radius: 3px; left: 0;
    }
    .mobile-menu-btn span:nth-child(1) { top: 0px; }
    .mobile-menu-btn span:nth-child(2) { top: 9px; }
    .mobile-menu-btn span:nth-child(3) { top: 18px; }

    .nav-menu {
        display: flex;
        flex-direction: column; /* 세로 정렬 */
        position: fixed; top: 0; right: -100%; /* 화면 밖으로 숨김 */
        width: 260px; height: 100vh;
        background: var(--menu-mobile-bg);
        padding: 80px 30px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease-in-out;
        z-index: 2003;
    }
    .nav-menu.active { right: 0; } /* 열림 상태 */
    
    .nav-menu a { font-size: 18px; color: var(--text-main); display: block; margin-bottom: 20px; border-bottom: 1px solid rgba(150,150,150,0.2); padding-bottom: 10px; }
    
    .menu-close-btn { display: block; font-size: 30px; color: var(--text-main); position: absolute; top: 20px; right: 20px; cursor: pointer; }
}

/* ---------------------------------------------------- */

/* Hero */
#home { 
    padding: 260px 0 150px; text-align: center; 
    background: var(--bg-hero); position: relative; overflow: hidden; 
    transition: background 0.5s ease;
}
body:not(.theme-dark):not(.theme-deepblue) #home, 
body:not(.theme-dark):not(.theme-deepblue) #home * { color: #fff; }

#hero-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.5; pointer-events: none; }

.hero-text-slider { display: grid; grid-template-columns: 1fr; margin-bottom: 45px; min-height: 220px; align-items: center; }
.hero-slide { grid-area: 1 / 1; opacity: 0; transform: translateY(20px); transition: all 1s ease-in-out; pointer-events: none; }
.hero-slide.active { opacity: 1; transform: translateY(0); pointer-events: auto; }

.hero h1 { font-size: 62px; font-weight: 800; line-height: 1.1; margin-bottom: 25px; letter-spacing: -3px; }
.hero p { font-size: 24px; font-weight: 300; }

.hero-btns { display: flex; justify-content: center; gap: 20px; opacity: 0; animation: fadeInUp 0.8s ease-out 0.5s forwards; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.btn { padding: 16px 36px; border-radius: 12px; font-weight: 600; font-size: 16px; transition: 0.4s; }

body:not(.theme-dark):not(.theme-deepblue) .hero-btns .btn-blue { 
    background-color: #ffffff;      /* 버튼 배경: 흰색 */
    color: #375bd2 !important;      /* 폰트 색상: 진한 파랑 (잘 보이게 강제 적용) */
    border: 1px solid #ffffff;      /* 테두리 흰색 */
    box-shadow: 0 10px 20px rgba(0,0,0,0.2); 
    font-weight: 700;               /* 글씨 굵게 */
}

/* 마우스 올렸을 때 (Hover) */
body:not(.theme-dark):not(.theme-deepblue) .hero-btns .btn-blue:hover { 
    background-color: #f8fafc;      /* 배경 살짝 회색 */
    color: #2563eb !important;      /* 글씨 더 쨍한 파랑 */
    transform: translateY(-3px);    /* 위로 살짝 떠오름 */
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}
body:not(.theme-dark):not(.theme-deepblue) .hero-btns .btn-blue:hover { background: #f8fafc; transform: translateY(-3px); }
body:not(.theme-dark):not(.theme-deepblue) .hero-btns .btn-outline { border: 1px solid rgba(255,255,255,0.8); color: #fff; }
body:not(.theme-dark):not(.theme-deepblue) .hero-btns .btn-outline:hover { background: rgba(255,255,255,0.2); }

body.theme-dark .btn-blue, body.theme-deepblue .btn-blue { background: var(--primary); color: #fff; box-shadow: 0 10px 20px rgba(0,0,0,0.3); border:none; }
body.theme-dark .btn-outline, body.theme-deepblue .btn-outline { border: 1px solid var(--header-border); color: var(--text-main); }

/* 섹션들 */
#features { background-color: var(--bg-section-1); }
#solutions { background-color: var(--bg-section-2); border-top: 1px solid var(--header-border); border-bottom: 1px solid var(--header-border); }
#pricing { background-color: var(--bg-section-1); }
#company { background: var(--bg-section-dark); color: var(--text-inverse); }
#company h2.section-title { color: var(--text-inverse); }
#guide { background-color: var(--bg-section-2); }

.content-box { 
    background: var(--card-bg); padding: 50px; border-radius: 24px; 
    border: 1px solid var(--card-border); backdrop-filter: blur(10px);
    box-shadow: var(--card-shadow); transition: 0.5s;
}
#company .content-box { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: #fff; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.info-list li { margin-bottom: 15px; color: var(--text-sub); font-size: 15px; display: flex; align-items: flex-start; }
.info-list li::before { content: '✓'; color: var(--primary); margin-right: 12px; font-weight: bold; }
#company .info-list li { color: rgba(255,255,255,0.7); }

.solution-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin: 40px 0; }
.sol-card { 
    background: var(--card-bg); border: 1px solid var(--card-border); 
    border-radius: 30px; padding: 60px 40px; text-align: center; transition: 0.4s; box-shadow: var(--card-shadow);
}
.sol-card:hover { border-color: var(--primary); transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.sol-card h4 { font-size: 28px; margin-bottom: 20px; color: var(--text-main); }
body.theme-dark .sol-card, body.theme-deepblue .sol-card { background: linear-gradient(145deg, rgba(30, 41, 59, 0.4), rgba(15, 23, 42, 0.1)); }

.table-wrap { margin-top: 40px; border-radius: 20px; overflow: hidden; border: 1px solid var(--card-border); box-shadow: var(--card-shadow); }
table { width: 100%; border-collapse: collapse; background: var(--card-bg); }
th { background: var(--bg-section-2); padding: 25px; font-weight: 700; color: var(--primary); text-align: center; border-bottom: 1px solid var(--card-border); }
td { padding: 22px; text-align: center; border-bottom: 1px solid var(--card-border); color: var(--text-sub); }
tr:hover td { background: var(--bg-section-2); color: var(--text-main); }

.philosophy { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; margin-top: 20px; }
.p-item { 
    padding: 30px 15px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); 
    border-radius: 16px; transition: 0.3s;
}
.p-item strong { display: block; font-size: 18px; color: var(--primary); margin-bottom: 8px; }
.p-item span { font-size: 13px; color: rgba(255,255,255,0.6); }
.p-item:hover { background: var(--primary); border-color: var(--primary); }
.p-item:hover strong, .p-item:hover span { color: white; }

.company-desc { font-size: 17px; color: rgba(255,255,255,0.7); max-width: 800px; margin: 0 auto; line-height: 1.8; }
.five-s-title { 
    margin-top: 50px; margin-bottom: 20px; font-size: 20px; font-weight: 700; 
    color: #fff; display: inline-block; border-bottom: 2px solid var(--primary); padding-bottom: 5px;
}

.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.guide-box { 
    padding: 35px; background: var(--card-bg); border-radius: 20px; 
    border: 1px solid var(--card-border); box-shadow: var(--card-shadow); 
}
.guide-box h3 { font-size: 18px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; color: var(--text-main); }

.service-link {
    text-decoration: none; color: var(--text-main); display: block; width: 100%;
    padding: 10px 15px; border-radius: 8px; background: var(--bg-section-1); border: 1px solid var(--card-border);
    transition: all 0.3s ease; margin-bottom: 10px;
}
.service-link:hover { 
    background: var(--bg-section-2); border-color: var(--primary);
    transform: translateX(5px); color: var(--primary);
}
.service-icon { margin-right: 8px; font-size: 16px; }

.map-btns { display: flex; justify-content: center; gap: 15px; margin-top: 30px; }
.btn-map { 
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 24px; border-radius: 8px; font-size: 14px; font-weight: 600; 
    color: #333; transition: 0.3s; border: 1px solid #ddd; background: #fff;
}
.btn-kakao { background: #FEE500; border-color: #FEE500; color: #000; }
.btn-naver { background: #03C75A; border-color: #03C75A; color: #fff; }
.btn-map:hover { transform: translateY(-3px); filter: brightness(1.05); }

footer { 
    padding: 60px 0; text-align: center; 
    background: var(--bg-footer); color: var(--text-footer); 
    border-top: 1px solid var(--border-footer); 
}
footer a { color: inherit; text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }

@media (max-width: 992px) {
    .solution-cards, .guide-grid, .philosophy { grid-template-columns: 1fr; }
    .hero h1 { font-size: 52px; }
    .hero-text-slider { min-height: 280px; }
}
