/* 1. 기본 설정 및 디자인 시스템 */
:root {
    --bg: #050505;
    --card: #0d0d0f;
    --border: #222226;
    --accent: #00f2ff;
    --text-h: #ffffff;
    --text-p: #a0a0a0;
}

* { box-sizing: border-box; }

body {
    background-color: var(--bg);
    color: var(--text-p);
    font-family: 'Pretendard', -apple-system, sans-serif;
    margin: 0;
    padding-top: 100px; /* 헤더 높이 확보 */
    line-height: 1.8;
}

/* 2. 고정 헤더 (깨짐 방지) */
#header-placeholder {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background: rgba(5, 5, 5, 0.85); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

/* 헤더 전체 배경 및 고정 */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.85); /* 약간 투명한 검정 */
    backdrop-filter: blur(15px);     /* 유리처럼 흐릿한 효과 */
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
}

/* 내부 컨테이너 */
.header-container {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 로고 스타일 */
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* 메뉴 리스트 */
.header-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
}

.header-nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 10px 0;
    position: relative;
}

/* 마우스 올렸을 때 애니메이션 */
.header-nav a:hover {
    color: var(--accent);
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: 0.3s;
}

.header-nav a:hover::after {
    width: 100%;
}

/* 3. 레이아웃: 사이드바와 콘텐츠 */
.brand-container {
    max-width: 1100px; margin: 0 auto; padding: 0 20px;
    display: grid; grid-template-columns: 240px 1fr; gap: 30px;
}

.sidebar {
    position: sticky; top: 120px; height: fit-content;
    background: var(--card); padding: 25px; border-radius: 20px;
    border: 1px solid var(--border);
}

.sidebar ul { list-style: none; padding: 0; }
.sidebar li { margin-bottom: 15px; }
.sidebar a { color: var(--text-p); text-decoration: none; transition: 0.3s; }
.sidebar a:hover { color: var(--accent); }

/* 4. 본문 카드 (고급스럽게) */
.detail-card {
    background: var(--card); padding: 40px; border-radius: 24px;
    border: 1px solid var(--border); margin-bottom: 30px;
}

h2 { 
    color: var(--text-h); border-left: 4px solid var(--accent); 
    padding-left: 15px; margin-bottom: 25px; font-size: 1.5rem; 
}

/* 5. 표 스타일 (깨짐 방지 및 현대적 디자인) */
.table-wrapper { width: 100%; overflow-x: auto; } /* 모바일 가로 스크롤 방지 */
table {
    width: 100%; border-collapse: collapse; margin: 20px 0;
    background: #151518; border-radius: 12px; border: 1px solid var(--border);
}
th, td { padding: 18px; border-bottom: 1px solid var(--border); text-align: left; }
th { color: var(--accent); font-weight: 700; background: rgba(0,242,255,0.05); }

/* 6. 푸터 (깔끔한 마무리) */
#footer-placeholder {
    padding: 60px 20px; border-top: 1px solid var(--border);
    background: #080808; text-align: center; color: var(--text-p);
}

#footer-placeholder {
    padding: 60px 20px 40px;
    border-top: 1px solid var(--border);
    background: #080808;
    color: var(--text-p);
    text-align: center;
}

.footer-title { color: #fff; font-size: 1.1rem; margin-bottom: 15px; }

.footer-desc { 
    max-width: 600px; margin: 0 auto 20px; 
    font-size: 0.9rem; line-height: 1.6; color: #888; 
}

.footer-nav { margin-bottom: 20px; }
.footer-nav a { 
    color: var(--text-p); text-decoration: none; 
    margin: 0 10px; font-size: 0.9rem; transition: 0.3s;
}
.footer-nav a:hover { color: var(--accent); }

.footer-extra { margin-top: 15px; font-size: 0.8rem; color: #555; }
.footer-extra a { color: #555; text-decoration: none; margin: 0 5px; }

.copyright { margin-top: 30px; font-size: 0.75rem; opacity: 0.6; }

/* 7. 반응형 */
@media (max-width: 768px) {
    .brand-container { grid-template-columns: 1fr; }
    .sidebar { position: relative; top: 0; }
}

/* 8. FAQ */
.faq-container {
    display: flex;
    flex-direction: column;
}

.faq-item {
    padding: 24px 0;
    border-bottom: 1px solid var(--border); /* 항목 사이 구분선 */
}

.faq-item:first-child {
    padding-top: 0; /* 첫 번째 항목 위 여백 제거 */
}

.faq-item:last-child {
    border-bottom: none; /* 마지막 항목 아래 구분선 제거 */
    padding-bottom: 0;
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-h);
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    letter-spacing: -0.01em;
}

/* 질문 앞의 세련된 강조 포인트 */
.faq-question::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 50%;
}

.faq-answer {
    color: var(--text-p);
    font-size: 0.95rem;
    line-height: 1.7;
    padding-left: 20px;
    font-weight: 400;
}

/* 각 페이지 공식 버튼 스타일 */
.btn-accent {
    display: inline-block;
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 50px; /* 아주 둥근 모서리 */
    text-decoration: none;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.2);
}

.btn-accent:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 25px rgba(0, 242, 255, 0.5);
    transform: translateY(-3px);
}

/* 펄스(Pulse) 애니메이션 효과 */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 242, 255, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(0, 242, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 242, 255, 0); }
}

.btn-accent {
    animation: pulse 2s infinite;
}

/* 브랜드 타이틀 스타일 */
.brand-title {
    font-size: 2rem;
    color: var(--text-h);
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    letter-spacing: -0.02em;
}

/* 첫 문장을 강조하는 스타일 */
.lead-text {
    font-size: 1.2rem;
    color: var(--text-h);
    font-weight: 500;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* 본문 문단 스타일 */
.intro-content p {
    margin-bottom: 20px;
    color: var(--text-p);
    line-height: 1.8;
}

/* 강조 텍스트(strong) 청록색 포인트 적용 */
.intro-content strong {
    color: var(--accent);
}

/* 사이드바가 없는 페이지를 위한 전체 너비 레이아웃 */
.full-width-container {
    max-width: 800px; /* 너무 넓어지지 않게 고정 */
    margin: 40px auto;
    padding: 0 20px;
}

/* 기술력 설명 박스 스타일 */
.product-content {
    line-height: 1.8;
    color: var(--text-p);
}

.product-content strong {
    color: var(--accent);
}

.product-content p {
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 2px solid var(--border);
}

/* 비전 콘텐츠 스타일 */
.future-content {
    line-height: 1.8;
    color: var(--text-p);
}

.future-content strong {
    color: var(--accent);
}

.future-content p {
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 2px solid var(--accent); /* 포인트 컬러로 차별화 */
}