/* --- 1. Variables & Reset --- */
:root {
    --bg-color: #0b1120;
    --bg-secondary: #151e32;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --accent-color: #38bdf8;
    --accent-glow: rgba(56, 189, 248, 0.4);
    --border-color: #1e293b;
    --font-main: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    
    /* Spacing System */
    --spacing-section: 140px;
    --spacing-card: 50px;
    --gap-grid: 40px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.8;
    overflow-x: hidden;
    word-break: keep-all; /* 단어 단위 줄바꿈 (한글 최적화) */
}

/* [추가] 이미지가 화면 밖으로 나가는 것 방지 */
img { max-width: 100%; height: auto; }

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 30px; }
.section-padding { padding: var(--spacing-section) 0; }
.text-center { text-align: center; }

/* Typography */
h1, h2, h3 { font-weight: 700; line-height: 1.3; margin-bottom: 20px; }
h2 { font-size: 2.8rem; text-align: center; margin-bottom: 1.5rem; }
p { margin-bottom: 1.5rem; font-size: 1.05rem; }

.section-desc { 
    text-align: center; color: var(--text-muted); 
    margin-bottom: 80px; max-width: 700px; 
    margin-left: auto; margin-right: auto; font-size: 1.1rem;
}
.highlight { color: var(--accent-color); }

/* --- 2. Header --- */
header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    padding: 20px 0; transition: all 0.4s ease;
}
header.scrolled {
    background: rgba(11, 17, 32, 0.95);
    backdrop-filter: blur(12px);
    padding: 15px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; position: relative; }
.logo { font-size: 1.6rem; font-weight: 800; display: flex; align-items: center; gap: 10px; z-index: 1001; } /* z-index 추가 */
.logo i { color: var(--accent-color); font-size: 1.8rem; }
.logo span.color-point { color: var(--accent-color); }
.logo img { height: 40px; vertical-align: middle;}

.gnb { display: flex; gap: 0 40px; }
.gnb a { font-size: 1.05rem; font-weight: 500; color: var(--text-muted); position: relative; padding: 5px 0; }
.gnb a:hover { color: var(--accent-color); }
.gnb a::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0%; height: 2px;
    background: var(--accent-color); transition: 0.3s;
}
.gnb a:hover::after { width: 100%; }

.btn-contact {
    padding: 12px 30px; border: 1px solid var(--accent-color); color: var(--accent-color);
    border-radius: 50px; font-weight: 600; transition: 0.3s; margin-left: 20px;
}
.btn-contact:hover { background: var(--accent-color); color: var(--bg-color); box-shadow: 0 0 20px var(--accent-glow); }

/* 모바일 전용 연락처 링크 (기본 숨김) */
.mobile-contact-link { display: none; }

/* 햄버거 버튼 (기본 숨김) */
.hamburger { display: none; cursor: pointer; z-index: 1001; }
.hamburger span {
    display: block; width: 25px; height: 3px; background: #fff; margin: 5px 0;
    transition: 0.3s; border-radius: 3px;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }


/* --- 3. Hero Section --- */
#hero {
    height: 100vh; min-height: 700px;
    display: flex; align-items: center; justify-content: center; text-align: center;
    background: linear-gradient(rgba(11, 17, 32, 0.8), rgba(11, 17, 32, 0.6)), url('../images/hero-bg.jpg');
    background-size: cover; background-position: center; background-attachment: fixed; 
    position: relative; overflow: hidden;
}
.bg-effect {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(56, 189, 248, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0; animation: floating 30s linear infinite;
}
@keyframes floating { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } }

.hero-content { position: relative; z-index: 1; opacity: 0; animation: fadeUp 1s forwards 0.5s; max-width: 900px; padding: 0 20px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }

.hero-content h1 { font-size: 4.5rem; margin-bottom: 30px; letter-spacing: -1px; line-height: 1.1; }
.hero-content p { font-size: 1.4rem; color: var(--text-muted); margin-bottom: 50px; }

.hero-btn-group { display: flex; gap: 20px; justify-content: center; margin-top: 20px; }
.btn-primary {
    padding: 18px 50px; background: var(--accent-color); color: var(--bg-color);
    font-weight: 700; border-radius: 50px; border: none; font-size: 1.1rem; cursor: pointer;
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.3); transition: 0.3s;
}
.btn-primary:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(56, 189, 248, 0.5); }

.btn-outline {
    padding: 18px 50px; border: 1px solid rgba(255,255,255,0.3); color: var(--text-main);
    font-weight: 700; border-radius: 50px; cursor: pointer; background: transparent; font-size: 1.1rem;
}
.btn-outline:hover { border-color: var(--accent-color); color: var(--accent-color); background: rgba(56,189,248,0.1); }

/* --- 4. Counter Section --- */
#stats { background: var(--bg-secondary); padding: 80px 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.stats-grid { display: flex; justify-content: space-around; text-align: center; }
.stat-item h3 { font-size: 4rem; color: var(--accent-color); margin-bottom: 10px; font-weight: 800; }
.stat-item p { font-size: 1.1rem; color: var(--text-muted); font-weight: 500; }

/* --- 5. About Section --- */
.about-wrapper { display: flex; align-items: center; justify-content: space-between; gap: 60px; }
.about-text { flex: 1; }
.about-image { flex: 1; position: relative; }

.sub-title {
    display: inline-block; font-size: 0.9rem; font-weight: 700; 
    color: var(--accent-color); margin-bottom: 15px; letter-spacing: 1px; text-transform: uppercase;
}

.about-features { margin-top: 30px; }
.about-features li { display: flex; align-items: flex-start; margin-bottom: 25px; }
.about-features li i {
    min-width: 30px; height: 30px; background: rgba(56, 189, 248, 0.1);
    color: var(--accent-color); border-radius: 50%; display: flex; align-items: center; 
    justify-content: center; font-size: 0.9rem; margin-right: 15px; margin-top: 5px;
}
.about-features li strong { display: block; font-size: 1.1rem; color: #fff; margin-bottom: 5px; }
.about-features li span { font-size: 0.95rem; color: var(--text-muted); }

/* Code Box */
.code-box {
    background: #1e293b; border-radius: 12px; border: 1px solid var(--border-color);
    overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    font-family: 'Consolas', monospace; position: relative;
    min-height: 500px; display: flex; flex-direction: column;
}
.code-header {
    background: #0f172a; padding: 15px; display: flex; gap: 8px; 
    border-bottom: 1px solid var(--border-color); flex-shrink: 0;
}
.code-body { 
    flex: 1; display: flex; flex-direction: column; justify-content: center;
    padding: 40px; font-size: 1rem; line-height: 1.8; color: #cbd5e1; 
}
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot.red { background: #ff5f56; } .dot.yellow { background: #ffbd2e; } .dot.green { background: #27c93f; }
.indent { margin-left: 20px; } .indent-2 { margin-left: 40px; }
.c-purple { color: #c792ea; } .c-yellow { color: #ffcb6b; } .c-blue { color: #82aaff; } .c-green { color: #c3e88d; } .c-orange { color: #f78c6c; }

.float-badge {
    position: absolute; background: var(--bg-secondary); border: 1px solid var(--accent-color);
    padding: 10px 20px; border-radius: 30px; font-weight: 600; font-size: 0.9rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3); display: flex; align-items: center; gap: 10px; z-index: 2;
}
.float-badge i { color: var(--accent-color); }
.badge-1 { bottom: -20px; right: -20px; animation: floatBadge 4s ease-in-out infinite; }
.badge-2 { top: -20px; left: -20px; animation: floatBadge 4s ease-in-out infinite 2s; }
@keyframes floatBadge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* --- 6. Services Tabs --- */
#services {
    /* 경로 수정: ../images/ */
    background: linear-gradient(rgba(11, 17, 32, 0.7), rgba(11, 17, 32, 0.5)), url('../images/main_bg.png');
    background-size: cover; background-position: center; background-repeat: no-repeat; position: relative;
}
.tab-menu { display: flex; justify-content: center; gap: 20px; margin-bottom: 60px; }
.tab-btn {
    background: var(--bg-secondary); border: 1px solid var(--border-color);
    padding: 18px 45px; color: var(--text-muted); cursor: pointer;
    border-radius: 50px; font-size: 1.1rem; transition: 0.3s; font-weight: 600;
}
.tab-btn.active, .tab-btn:hover { 
    border-color: var(--accent-color); color: var(--accent-color); 
    background: rgba(56, 189, 248, 0.05); box-shadow: 0 0 20px rgba(56, 189, 248, 0.1);
}
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.6s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.service-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: var(--gap-grid); }
.card {
    background: var(--bg-secondary); padding: var(--spacing-card); border-radius: 20px;
    border: 1px solid var(--border-color); transition: 0.4s; position: relative;
    display: flex; flex-direction: column; justify-content: space-between;
}
.card:hover { transform: translateY(-15px); border-color: var(--accent-color); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.card i { font-size: 3rem; color: var(--accent-color); margin-bottom: 30px; display: inline-block; }
.card h3 { font-size: 1.7rem; margin-bottom: 15px; }
.card p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 30px; flex-grow: 1; }
.card-tags { margin-top: auto; }
.card-tags span {
    font-size: 0.85rem; background: rgba(255,255,255,0.05); padding: 8px 16px;
    border-radius: 30px; margin-right: 8px; color: var(--accent-color); border: 1px solid rgba(56,189,248,0.2);
}

/* --- 7. Portfolio --- */
.filter-menu { text-align: center; margin-bottom: 60px; }
.filter-btn {
    background: none; border: none; color: var(--text-muted); font-size: 1.2rem;
    margin: 0 20px; cursor: pointer; font-weight: 600; padding-bottom: 8px; position: relative;
}
.filter-btn.active { color: var(--text-main); }
.filter-btn.active::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; background: var(--accent-color);
}

.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
.pf-item {
    position: relative; height: 340px; border-radius: 20px; overflow: hidden; cursor: pointer;
    background: #1e293b; border: 1px solid var(--border-color);
}
.pf-placeholder {
    width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #475569; background: #0f172a; transition: 0.5s;
}
.pf-placeholder i { font-size: 4rem; margin-bottom: 20px; opacity: 0.5; }
.pf-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(11, 17, 32, 0.9); display: flex; flex-direction: column;
    justify-content: center; align-items: center; opacity: 0; transition: 0.4s;
    padding: 40px; text-align: center; backdrop-filter: blur(5px);
}
.pf-item:hover .pf-overlay { opacity: 1; }
.pf-item:hover .pf-placeholder { transform: scale(1.1); }

/* --- 8. News Section --- */
#news { background: var(--bg-color); }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: var(--gap-grid); }
.news-item {
    display: flex; flex-direction: column; height: 100%; cursor: pointer;
    background: var(--bg-secondary); border: 1px solid var(--border-color);
    border-radius: 16px; padding: 35px; transition: 0.3s; 
}
.news-item:hover { transform: translateY(-10px); border-color: var(--accent-color); box-shadow: 0 15px 30px rgba(0,0,0,0.3); }
.news-date { font-size: 0.9rem; color: var(--accent-color); margin-bottom: 15px; font-weight: 500; }
.news-item h3 { font-size: 1.4rem; color: var(--text-main); margin-bottom: 10px; line-height: 1.4; }
.news-item p {
    font-size: 1rem; color: var(--text-muted); flex-grow: 1; margin-bottom: 0;
    display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis;
}

/* --- 9. Gallery Section --- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 25px; }
.gallery-item {
    position: relative; height: 280px; border-radius: 16px; overflow: hidden; cursor: pointer;
    background: #1e293b; border: 1px solid var(--border-color);
}
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; display: block; opacity: 0.5;
}
.gallery-item:hover img { transform: scale(1.1); }

.gallery-placeholder {
    width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #475569; background: #0f172a; transition: 0.5s;
}
.gallery-placeholder i { font-size: 3rem; margin-bottom: 15px; opacity: 0.2; }

.gallery-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(11, 17, 32, 0.8); display: flex; flex-direction: column;
    justify-content: center; align-items: center; opacity: 0; transition: 0.4s;
    padding: 30px; text-align: center; backdrop-filter: blur(5px);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay h3 { margin-bottom: 5px; color: #fff; }
.gallery-overlay span { color: var(--accent-color); font-size: 0.9rem; font-weight: 600; }

/* --- 10. Testimonials --- */
#testimonials { 
    /* 경로 수정: ../images/ */
    background: linear-gradient(rgba(11, 17, 32, 0.8), rgba(11, 17, 32, 0.7)), url('../images/client_bg.png');
    background-size: cover; background-position: center; background-repeat: no-repeat;
}
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-grid); }
.review-card {
    background: var(--bg-color); padding: 50px; border-radius: 20px;
    border: 1px solid var(--border-color); position: relative; height: 100%;
}
.review-card::after {
    content: '"'; position: absolute; top: 30px; right: 40px; font-size: 6rem;
    color: rgba(56, 189, 248, 0.05); font-family: serif; line-height: 0;
}
.review-text { font-style: normal; color: var(--text-muted); margin-bottom: 30px; font-size: 1.1rem; line-height: 1.7; }
.client-info h4 { margin-bottom: 5px; color: var(--text-main); font-size: 1.1rem; }
.client-info span { font-size: 0.95rem; color: var(--accent-color); }

/* --- 11. FAQ Section --- */
#faq {
    /* 경로 수정: ../images/ */
    background: linear-gradient(rgba(11, 17, 32, 0.9), rgba(11, 17, 32, 0.9)), url('../images/faq_bg.png');
    background-size: cover; background-position: center; background-repeat: no-repeat;
    color: var(--text-main);
}
.faq-item {
    background: rgba(21, 30, 50, 0.8); backdrop-filter: blur(5px); border: 1px solid rgba(56, 189, 248, 0.2);
}

/* --- 12. Contact Section --- */
.contact-wrapper { 
    display: flex; flex-wrap: wrap; border-radius: 30px; overflow: hidden; 
    border: 1px solid var(--border-color); box-shadow: 0 30px 60px rgba(0,0,0,0.3); 
}
.contact-info {
    flex: 1; padding: 40px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    display: flex; flex-direction: column; justify-content: center;
}
.contact-form { flex: 1.5; padding: 40px; background: #151e32; }

.info-item { display: flex; align-items: center; margin-bottom: 25px; }
.info-item i { 
    width: 50px; height: 50px; background: rgba(56, 189, 248, 0.1); 
    color: var(--accent-color); display: flex; align-items: center; justify-content: center; 
    border-radius: 12px; margin-right: 20px; font-size: 1.3rem; 
}
.info-item h4 { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 3px; }
.info-item p { font-size: 1.1rem; font-weight: 700; }

.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 8px; color: var(--text-muted); font-size: 0.95rem; }
.form-input, .form-textarea, .form-select {
    width: 100%; padding: 15px; background: var(--bg-color); border: 1px solid var(--border-color);
    color: #fff; border-radius: 10px; font-family: inherit; transition: 0.3s; font-size: 0.95rem;
}
.form-input:focus, .form-textarea:focus { border-color: var(--accent-color); outline: none; box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1); }

/* --- 13. Footer & Chatbot --- */
footer { 
    padding: 80px 0; border-top: 1px solid var(--border-color); 
    text-align: center; color: #64748b; font-size: 0.95rem; background: #0f172a;
}
footer .f-logo { font-size: 1.4rem; font-weight: bold; color: #fff; margin-bottom: 20px; display: inline-block; }
footer p { margin-bottom: 0.5rem; }

.chatbot-btn {
    position: fixed; bottom: 40px; right: 40px; width: 70px; height: 70px;
    background: var(--accent-color); color: var(--bg-color); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 2rem;
    cursor: pointer; box-shadow: 0 10px 30px rgba(56, 189, 248, 0.4); z-index: 999;
    transition: 0.3s;
}
.chatbot-btn:hover { transform: scale(1.1) rotate(10deg); }

.chat-window {
    position: fixed; bottom: 130px; right: 40px; width: 360px; height: 480px;
    background: var(--bg-secondary); border: 1px solid var(--border-color);
    border-radius: 20px; display: none; flex-direction: column; overflow: hidden; z-index: 999;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.chat-header { background: var(--accent-color); color: var(--bg-color); padding: 25px; font-weight: 700; font-size: 1.2rem; }
.chat-body { flex: 1; padding: 25px; color: var(--text-muted); font-size: 1rem; overflow-y: auto; }

/* --- 14. Modals & Popups --- */
/* AI Intro Popup */
#ai-popup-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(8px);
    z-index: 2000; display: none; align-items: center; justify-content: center;
}
.ai-popup-box {
    background: var(--bg-secondary); border: 1px solid var(--accent-color);
    box-shadow: 0 0 40px rgba(56, 189, 248, 0.25); border-radius: 20px;
    padding: 50px 40px; text-align: center; max-width: 420px; width: 90%;
    position: relative; animation: popupPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes popupPop { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.popup-icon { font-size: 3.5rem; color: var(--accent-color); margin-bottom: 25px; animation: floatBadge 3s ease-in-out infinite; }
.ai-popup-box h3 { font-size: 1.6rem; color: #fff; margin-bottom: 15px; line-height: 1.3; }
.ai-popup-box p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 35px; line-height: 1.7; word-break: keep-all; }
.popup-actions { display: flex; gap: 10px; justify-content: center; }
.btn-popup-close {
    padding: 14px 35px; background: var(--accent-color); color: var(--bg-color);
    border: none; border-radius: 50px; font-weight: 700; cursor: pointer; transition: 0.3s; font-size: 1rem;
}
.btn-popup-close:hover { transform: translateY(-3px); box-shadow: 0 5px 15px var(--accent-glow); }
.btn-popup-today {
    padding: 14px 25px; background: transparent; color: var(--text-muted);
    border: 1px solid var(--border-color); border-radius: 50px; cursor: pointer; transition: 0.3s; font-size: 0.95rem;
}
.btn-popup-today:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,0.05); }

/* News Detail Modal */
#news-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(5px);
    z-index: 3000; display: none; align-items: center; justify-content: center; padding: 20px;
}
.news-modal-box {
    background: #1e293b; border: 1px solid var(--border-color); border-radius: 16px;
    width: 100%; max-width: 600px; padding: 40px; position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5); max-height: 90vh; overflow-y: auto; text-align: left;
}
.btn-modal-close-x {
    position: absolute; top: 20px; right: 20px; background: none; border: none; 
    color: var(--text-muted); font-size: 1.5rem; cursor: pointer; transition: 0.3s;
}
.btn-modal-close-x:hover { color: #fff; transform: rotate(90deg); }
.modal-news-date { color: var(--accent-color); font-size: 0.95rem; margin-bottom: 10px; font-weight: 500; }
.modal-news-title { color: #fff; font-size: 1.8rem; margin-bottom: 20px; line-height: 1.3; font-weight: 700; }
.modal-news-desc { color: #cbd5e1; font-size: 1.1rem; line-height: 1.8; margin-bottom: 40px; white-space: pre-line; }
.modal-btn-group { display: flex; justify-content: flex-end; gap: 10px; }
.btn-link-external {
    padding: 12px 25px; background: var(--accent-color); color: var(--bg-color);
    border-radius: 8px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px;
}
.btn-link-external:hover { background: #fff; }
#modalImg {
    width: 100%; height: auto; max-height: 350px; object-fit: cover;
    border-radius: 12px; margin-bottom: 25px; border: 1px solid var(--border-color);
}

/* --- Mobile Responsive (Fixes) --- */
@media (max-width: 900px) {
    /* [모바일 메뉴 로직] */
    .hamburger { display: block; }

    .gnb {
        position: fixed; top: 0; right: -100%; width: 75%; height: 100vh;
        background: rgba(11, 17, 32, 0.98); 
        flex-direction: column; justify-content: center;
        padding: 40px; transition: 0.4s ease;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        border-left: 1px solid var(--border-color);
        z-index: 1000;
        align-items: center; /* 메뉴 중앙 정렬 */
    }
    .gnb.active { right: 0; }
    
    .gnb a { 
        font-size: 1.3rem; margin: 15px 0; display: block; width: 100%; text-align: center;
    }

    /* 데스크탑 버튼 숨기고, 모바일 전용 버튼 스타일링 */
    .btn-contact { display: none; }
    .mobile-contact-link { 
        display: inline-block; 
        padding: 14px 40px; 
        background: var(--accent-color); color: #0b1120 !important; /* 텍스트 잘 보이게 배경과 대비 */
        border-radius: 50px; 
        margin-top: 30px;
        text-align: center;
        font-weight: 700;
    }

    /* [레이아웃 및 폭 조정] */
    .container { padding: 0 20px; } /* 좌우 패딩 축소 */
    .section-padding { padding: 80px 0; } /* 상하 패딩 대폭 축소 */
    
    h1 { font-size: 2.5rem; } /* 제목 폰트 줄임 */
    h2 { font-size: 2rem; }
    
    .hero-content h1 { font-size: 2.8rem; margin-bottom: 20px; }
    .hero-content p { font-size: 1.1rem; margin-bottom: 30px; }
    
    /* 네비게이션 래퍼: 로고와 햄버거 양옆 배치 */
    .nav-wrapper { justify-content: space-between; } 
    
    /* 그리드 및 플렉스 모바일 대응 */
    .stats-grid { flex-direction: column; gap: 40px; }
    .contact-wrapper { flex-direction: column; }
    .review-grid, .faq-grid { grid-template-columns: 1fr !important; }
    .contact-info, .contact-form { padding: 30px 20px; } /* 폼 내부 패딩 축소 */
    
    .hero-btn-group { flex-direction: column; width: 100%; max-width: 320px; margin: 30px auto 0; gap: 15px; }
    .btn-primary, .btn-outline { width: 100%; } /* 버튼 꽉 차게 */
    
    .about-wrapper { flex-direction: column; gap: 40px; }
    .code-box { margin-top: 30px; min-height: auto; } /* 코드박스 높이 자동 */
    
    .badge-1 { right: 0; } .badge-2 { left: 0; }
    
    /* 탭 메뉴 줄바꿈 허용 */
    .tab-menu { flex-wrap: wrap; gap: 10px; }
    .tab-btn { padding: 12px 25px; font-size: 1rem; width: 100%; }
}