/* ============================================================
   Homepage - 입체격자체계 연구개발 프로젝트
   Light theme for public-facing pages
   ============================================================ */

:root {
    --hp-blue: #2a5298;
    --hp-blue-dark: #1e3c72;
    --hp-blue-light: #3d6cb9;
    --hp-bg: #f8f9fa;
    --hp-card: #ffffff;
    --hp-text: #333333;
    --hp-text-secondary: #666666;
    --hp-border: #e9ecef;
}

/* === Base === */
body {
    font-family: 'Noto Sans KR', 'Segoe UI', Tahoma, sans-serif;
    line-height: 1.6;
    color: var(--hp-text);
    background: var(--hp-bg);
    margin: 0;
    padding: 0;
}

/* === Site Header === */
.site-header {
    background: linear-gradient(135deg, var(--hp-blue-dark) 0%, var(--hp-blue) 100%);
    padding: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.site-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}
.site-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 56px;
}
.site-logo {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.02em;
}
.site-logo:hover { color: #fff; }
.site-nav-links {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
    align-items: center;
    height: 56px;
}
.site-nav-links a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 16px 12px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 56px;
    border-bottom: 2px solid transparent;
}
.site-nav-links a:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
}
.site-nav-links a.active {
    color: #fff;
    border-bottom-color: #fff;
}
.nav-divider {
    width: 1px;
    height: 24px;
    background: rgba(255,255,255,0.25);
    margin: 0 8px;
}
.nav-build {
    background: rgba(255,255,255,0.12) !important;
    border-radius: 6px;
    padding: 8px 16px !important;
    height: auto !important;
    border-bottom: none !important;
    font-weight: 600 !important;
}
.nav-build:hover {
    background: rgba(255,255,255,0.2) !important;
}
.nav-build.active {
    background: rgba(255,255,255,0.25) !important;
    border-bottom: none !important;
}
.nav-user {
    font-size: 13px !important;
    opacity: 0.85;
}
.nav-user:hover {
    opacity: 1;
}

/* === Hero === */
.hero {
    background: linear-gradient(135deg, var(--hp-blue-dark) 0%, var(--hp-blue) 100%);
    text-align: center;
    padding: 5rem 0;
    color: #fff;
}
.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    line-height: 1.3;
}
.hero p {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

/* === Feature Grid === */
.features-section {
    padding: 4rem 0;
    background: #fff;
}
.features-section h2 {
    text-align: center;
    color: var(--hp-blue);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 3rem;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.feature-card {
    background: var(--hp-bg);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--hp-border);
    transition: all 0.3s;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: var(--hp-blue-light);
}
.feature-card h3 {
    color: var(--hp-blue);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}
.feature-card p {
    color: var(--hp-text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* === CTA Section === */
.cta-section {
    background: var(--hp-blue);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}
.cta-section h2 { font-size: 2rem; margin-bottom: 0.5rem; }
.cta-section p { opacity: 0.9; margin-bottom: 2rem; }
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.btn-hp {
    padding: 0.8rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
}
.btn-hp-primary {
    background: #fff;
    color: var(--hp-blue);
}
.btn-hp-primary:hover { background: #f0f0f0; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.btn-hp-secondary {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 2px solid #fff;
}
.btn-hp-secondary:hover { background: rgba(255,255,255,0.25); transform: translateY(-2px); color: #fff; }
.btn-hp-outline {
    background: transparent;
    color: var(--hp-blue);
    border: 2px solid var(--hp-blue);
}
.btn-hp-outline:hover { background: var(--hp-blue); color: #fff; }
.btn-hp-blue {
    background: linear-gradient(135deg, var(--hp-blue) 0%, var(--hp-blue-dark) 100%);
    color: #fff;
}
.btn-hp-blue:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(42,82,152,0.3); color: #fff; }

/* === Page Title Banner === */
.page-title-banner {
    background: #fff;
    padding: 3rem 0;
    text-align: center;
    border-bottom: 1px solid var(--hp-border);
}
.page-title-banner h1 {
    color: var(--hp-blue);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.page-title-banner p {
    color: var(--hp-text-secondary);
    font-size: 1.05rem;
}

/* === Content Sections === */
.content-main { padding: 2rem 0; min-height: calc(100vh - 200px); }
.content-section {
    background: #fff;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    border: 1px solid var(--hp-border);
}
.content-section h2 {
    color: var(--hp-blue);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--hp-border);
    padding-bottom: 0.5rem;
}
.content-section h3 {
    color: #495057;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, var(--hp-blue) 0%, var(--hp-blue-dark) 100%);
    color: #fff;
    padding: 2rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}
.highlight-box h3 { color: #fff; margin-bottom: 0.8rem; }

/* Research phases */
.research-phases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}
.phase-card {
    background: var(--hp-bg);
    padding: 1.5rem;
    border-radius: 8px;
}
.phase-card h4 { color: var(--hp-blue); font-size: 1.1rem; margin-bottom: 0.8rem; }

/* Objective list */
.objective-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}
.objective-list li {
    background: var(--hp-bg);
    margin: 0.5rem 0;
    padding: 1rem;
    border-radius: 6px;
    font-size: 14px;
}
.objective-list li strong { color: var(--hp-blue); }

/* Tech stack */
.tech-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}
.tech-item {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 2px solid var(--hp-border);
    transition: all 0.3s;
}
.tech-item:hover { border-color: var(--hp-blue); transform: translateY(-3px); }
.tech-item h4 { color: var(--hp-blue); font-size: 1rem; margin-bottom: 0.3rem; }
.tech-item p { color: var(--hp-text-secondary); font-size: 13px; margin: 0; }

/* === Downloads === */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}
.download-card {
    background: var(--hp-bg);
    border: 2px solid var(--hp-border);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s;
    position: relative;
}
.download-card:hover { border-color: var(--hp-blue); box-shadow: 0 5px 20px rgba(42,82,152,0.08); }
.download-card .icon { font-size: 2.5rem; margin-bottom: 0.8rem; }
.download-card h3 { color: var(--hp-blue); font-size: 1.2rem; margin-bottom: 0.8rem; }
.download-card p { color: var(--hp-text-secondary); font-size: 14px; margin-bottom: 1rem; }
.download-card .specs {
    background: #fff;
    padding: 0.8rem;
    border-radius: 6px;
    margin: 0.8rem 0;
    font-size: 13px;
    color: #495057;
}
.download-card .specs strong { color: var(--hp-blue); }
.version-badge {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    background: #28a745;
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}
.download-card-wide { grid-column: 1 / -1; }
.btn-group-dl { display: flex; gap: 0.8rem; margin-top: 1rem; flex-wrap: wrap; }

/* Requirements */
.requirements-section {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}
.requirements-section h3 { color: #856404; margin-bottom: 0.8rem; }
.requirements-list { list-style: none; padding: 0; }
.requirements-list li { padding: 0.4rem 0; border-bottom: 1px solid rgba(133,100,4,0.15); font-size: 14px; }
.requirements-list li:last-child { border-bottom: none; }

.requirements-section-db {
    background: #fff;
    border: 1px solid #d8e2f0;
    border-left: 4px solid #1f4f8f;
    border-radius: 8px;
    padding: 1rem 1.15rem;
    margin: 1.1rem 0 0;
}

.requirements-section-db h3 {
    color: #1f4f8f;
    margin-bottom: 0.55rem;
    font-size: 1rem;
}

.requirements-section-db .requirements-list li {
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(31, 79, 143, 0.12);
    font-size: 13px;
    color: #425466;
    line-height: 1.45;
}

/* Installation guide */
.installation-guide {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: #fff;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin: 1.5rem 0;
}
.installation-guide h3 { color: #fff; margin-bottom: 0.5rem; }
.installation-guide code { color: #fff; }
.installation-buttons { display: flex; justify-content: center; gap: 0.8rem; flex-wrap: wrap; margin-top: 1rem; }

/* Code block */
.code-block {
    display: none;
    background: #1e1e2e;
    color: #cdd6f4;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
    overflow-x: auto;
    max-height: 400px;
    font-family: 'Consolas', 'Fira Code', monospace;
    font-size: 13px;
    line-height: 1.6;
}
.code-block pre { margin: 0; white-space: pre; }
.code-block .yaml-key { color: #89b4fa; }
.code-block .yaml-string { color: #a6e3a1; }
.code-block .yaml-comment { color: #6c7086; }
.code-block .yaml-placeholder { color: #f38ba8; background: rgba(243,139,168,0.1); padding: 1px 4px; border-radius: 3px; font-weight: 600; }
.code-block .yaml-highlight { background: rgba(137,180,250,0.08); padding: 1px 4px; }

/* Customization notes */
.customization-notes {
    background: #e8f4fd;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 6px;
    font-size: 13px;
}
.customization-notes h4 { color: var(--hp-blue-dark); margin: 0 0 0.5rem; }
.customization-notes ul { padding-left: 20px; margin-bottom: 0; }

/* === FAQ === */
.faq-categories {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.category-btn {
    padding: 0.5rem 1.2rem;
    background: var(--hp-border);
    color: #495057;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}
.category-btn.active, .category-btn:hover {
    background: var(--hp-blue);
    color: #fff;
}
.faq-group h2 {
    color: var(--hp-blue);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    border-bottom: 3px solid var(--hp-border);
    padding-bottom: 0.5rem;
}
.faq-item {
    background: #fff;
    margin-bottom: 0.8rem;
    border-radius: 8px;
    border: 1px solid var(--hp-border);
    overflow: hidden;
    transition: box-shadow 0.3s;
}
.faq-item:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.faq-question {
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}
.faq-question:hover { background: var(--hp-bg); }
.faq-question h3 { color: var(--hp-blue); font-size: 1rem; margin: 0; flex: 1; }
.faq-icon { font-size: 1.3rem; color: var(--hp-blue); transition: transform 0.3s; }
.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
    background: var(--hp-bg);
}
.faq-answer.active { padding: 1.5rem; max-height: 500px; }
.faq-answer p { color: #495057; font-size: 14px; margin-bottom: 0.8rem; }
.faq-answer ul, .faq-answer ol { margin-left: 1.2rem; margin-bottom: 0.8rem; }
.faq-answer li { color: #495057; font-size: 14px; margin-bottom: 0.3rem; }
.code-snippet {
    background: #1e1e2e;
    color: #cdd6f4;
    padding: 1rem;
    border-radius: 6px;
    margin: 0.8rem 0;
    font-family: 'Consolas', monospace;
    font-size: 13px;
    overflow-x: auto;
}
.search-box {
    text-align: center;
    margin-bottom: 2rem;
}
.search-input {
    width: 100%;
    max-width: 500px;
    padding: 0.8rem 1.2rem;
    border: 2px solid var(--hp-border);
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
    font-family: 'Noto Sans KR', sans-serif;
}
.search-input:focus { border-color: var(--hp-blue); }

/* Contact section */
.contact-section {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: #fff;
    padding: 3rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 2rem;
}
.contact-section h3 { color: #fff; font-size: 1.5rem; margin-bottom: 0.5rem; }
.contact-buttons { display: flex; justify-content: center; gap: 0.8rem; flex-wrap: wrap; margin-top: 1rem; }

/* === Footer === */
.site-footer {
    background: var(--hp-blue-dark);
    color: #fff;
    padding: 1.5rem 0;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 13px;
    opacity: 0.9;
}

/* === Responsive === */
@media (max-width: 768px) {
    .site-nav-links { display: none; }
    .hero h1 { font-size: 2rem; }
    .feature-grid { grid-template-columns: 1fr; }
    .download-grid { grid-template-columns: 1fr; }
    .research-phases { grid-template-columns: 1fr; }
    .tech-stack { grid-template-columns: 1fr; }
}
