/* --- Global Settings & Variables --- */
:root {
    --primary-color: #007bff;
    --primary-hover-color: #0056b3;
    --dark-color: #333;
    --light-color: #fff;
    --grey-color: #f9f9f9;
    --text-color: #555;
    --border-color: #e0e0e0;
    --header-height: 80px;
}

/* --- 기본 스타일 초기화 --- */
body, h1, h2, h3, p, ul, li, a, table, th, td, form, input, textarea, button {
    margin: 0;
    padding: 0;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    padding-top: var(--header-height); /* Sticky header를 위한 공간 확보 */
}

/* --- 전체 레이아웃 --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- 공통 컴포넌트 --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    text-decoration: none;
    color: var(--primary-color);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 35px;
}

nav a {
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-color);
    position: relative;
    padding: 5px 0;
}
nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}
nav a:hover::after, nav a.active::after {
    width: 100%;
    left: 0;
}

.page { padding: 100px 0; }
.page-title {
    font-size: 42px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 20px;
    color: var(--dark-color);
}
.page-subtitle {
    font-size: 18px;
    text-align: center;
    color: var(--text-color);
    margin-bottom: 80px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--dark-color);
}

footer {
    padding: 60px 0;
    background-color: var(--dark-color);
    color: var(--light-color);
}
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    text-align: left;
}
.footer-about h3 {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.footer-about p, .footer-links p {
    color: #ccc;
    font-size: 15px;
}
.footer-links h4 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 20px;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    text-decoration: none;
    color: #ccc;
    transition: color 0.3s;
}
.footer-links a:hover { color: var(--primary-color); }
.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #555;
    font-size: 14px;
    color: #aaa;
}

/* --- index.html --- */
.hero {
    height: 600px;
    background-image: url('bg.jpg'); /* 고해상도 이미지 bg.jpg로 변경 */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-banner {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--dark-color);
    padding: 60px 80px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    max-width: 850px;
    animation: fadeInScale 1s ease-out forwards;
}
@keyframes fadeInScale {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.hero-banner h1 {
    font-size: 52px;
    line-height: 1.3;
    color: var(--primary-color);
}
.hero-banner p { font-size: 20px; }
.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 16px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s;
}
.cta-button:hover {
    background-color: var(--primary-hover-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.6);
}

.reason-section, .product-visualization, .key-features-section { padding: 100px 0; }
.reason-section { background-color: var(--grey-color); }
.reason-content, .product-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.reason-text-area p, .product-text p { font-size: 17px; line-height: 1.8; margin-bottom: 20px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.stat-item { text-align: center; padding: 20px 10px; border-radius: 8px; background-color: #e6f2ff; font-size: 28px; font-weight: bold; color: var(--primary-color); }
.stat-item span { display: block; font-size: 16px; font-weight: normal; color: var(--text-color); margin-top: 5px; }
.stat-item.accuracy { background-color: var(--primary-color); color: white; }
.stat-item.accuracy span { color: #e0f2ff; }
.reason-image-area img, .product-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}
.key-feature-item {
    display: flex;
    align-items: center;
    background-color: var(--grey-color);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}
.key-feature-item:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.key-feature-item .icon-wrapper { min-width: 80px; background-color: #e0f0ff; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-right: 30px; }
.key-feature-item .icon { width: 45px; height: 45px; fill: var(--primary-color); }
.key-feature-item h3 { font-size: 24px; color: var(--dark-color); margin-bottom: 10px; }
.key-feature-item p { font-size: 16px; }

/* --- product.html --- */
.product-hero {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}
.product-hero-image img { width: 100%; border-radius: 12px; background-color: var(--grey-color); }
.product-hero-text h1 { font-size: 40px; color: var(--primary-color); }
.product-hero-text p { font-size: 18px; }

.product-section { margin-bottom: 60px; }
.product-section ul { list-style: none; }
.product-section li { 
    background: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23007bff" class="bi bi-check-circle-fill" viewBox="0 0 16 16"><path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z"/></svg>') no-repeat left center;
    padding-left: 30px; 
    margin-bottom: 15px;
    font-size: 18px;
}
.spec-table { width: 100%; border-collapse: collapse; margin-top: 30px; font-size: 16px; }
.spec-table th, .spec-table td { border: 1px solid var(--border-color); padding: 15px; }
.spec-table th { background-color: var(--grey-color); width: 25%; font-weight: 600; }

/* --- about.html --- */
.about-section { margin-bottom: 60px; }
.vision-text { font-size: 18px; background-color: #f0f8ff; padding: 40px; border-left: 5px solid var(--primary-color); border-radius: 8px; }
.history-timeline { border-left: 3px solid var(--primary-color); padding-left: 40px; position: relative; }
.history-item { margin-bottom: 40px; position: relative; }
.history-item::before { content: ''; position: absolute; left: -49px; top: 5px; width: 15px; height: 15px; background-color: var(--primary-color); border-radius: 50%; border: 3px solid var(--light-color); }
.history-year { font-weight: bold; font-size: 24px; color: var(--primary-color); }
.history-desc { color: var(--text-color); font-size: 17px; }

/* --- contact.html --- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: flex-start;
}
.contact-info p { margin-bottom: 20px; font-size: 17px; }
.contact-info strong { display: inline-block; width: 90px; color: var(--dark-color); }
.contact-form .form-group { margin-bottom: 25px; }
.contact-form label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 16px; }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}
.contact-form textarea { resize: vertical; min-height: 150px; }
.submit-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 16px 35px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 18px;
    border: none;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
}
.submit-btn:hover {
    background-color: var(--primary-hover-color);
    transform: translateY(-3px);
}

/* --- 반응형 디자인 --- */
@media (max-width: 992px) {
    .reason-content, .product-content, .contact-container, .footer-content, .product-hero {
        grid-template-columns: 1fr;
    }
    .reason-image-area { order: -1; margin-bottom: 40px; }
}

@media (max-width: 768px) {
    body { padding-top: 60px; }
    header { height: 60px; }
    .header-content { padding: 0 15px; }
    nav ul {
        display: none; /* 모바일에서는 햄버거 메뉴로 대체 (추가 구현 필요) */
    }
    .hero { height: 500px; }
    .hero-banner { padding: 40px; }
    .hero-banner h1 { font-size: 36px; }
    .hero-banner p { font-size: 16px; }
    .page { padding: 60px 0; }
    .page-title { font-size: 32px; }
    .page-subtitle { margin-bottom: 50px; }
}