/* ===== Search Highlight ===== */
mark.search-highlight {
    background: #ffe066;
    color: inherit;
    padding: 1px 2px;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(255,180,0,0.3);
}

/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
    font-size: 17px;
    scroll-behavior: smooth;
    scroll-padding-top: 30px;
}
body {
    font-family: 'Noto Sans KR', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: #333;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}
[id] { scroll-margin-top: 60px; }
section.section[id] { scroll-margin-top: -10px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font: inherit; color: inherit; }

/* ===== Common Layout ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== Navigation ===== */
.top-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: box-shadow 0.3s ease;
}
.top-nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.nav-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; height: 64px;
}
.nav-logo { font-size: 1.57rem; font-weight: 700; color: #667eea; margin-right: 40px; white-space: nowrap; }
.nav-links { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.nav-links a {
    padding: 8px 14px; border-radius: 6px; font-size: 1.01rem; font-weight: 500;
    color: #555; transition: all 0.2s ease; white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: #667eea; background: rgba(102,126,234,0.06); }
.nav-cta {
    padding: 8px 20px; border-radius: 8px; font-size: 1.01rem; font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff;
    transition: all 0.25s ease; white-space: nowrap; margin-left: auto;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(102,126,234,0.3); }
.nav-search { margin-left: auto; flex-shrink: 0; }
.nav-search-input {
    width: 180px; padding: 7px 18px; border: 1.5px solid #c5caf0; border-radius: 50px;
    font-size: 0.85rem; font-family: inherit; outline: none;
    background: #eef0ff; color: #333;
    transition: border-color 0.3s ease, width 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.nav-search-input::placeholder { color: #8b92c5; }
.nav-search-input:focus {
    border-color: #667eea; background: #fff; width: 240px;
    box-shadow: 0 2px 12px rgba(102,126,234,0.18);
}
.mobile-menu-btn { display: none; flex-direction: column; gap: 5px; padding: 8px; margin-left: 12px; }
.mobile-menu-btn span { display: block; width: 22px; height: 2px; background: #333; border-radius: 2px; transition: all 0.3s ease; }

/* ===== Hero / Page Header ===== */
.page-hero {
    padding: 120px 0 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-align: center;
}
.page-hero h1 {
    font-size: 2.5rem; font-weight: 700; margin-bottom: 12px;
}
.page-hero .hero-desc {
    font-size: 1.1rem; opacity: 0.9; margin-bottom: 20px; line-height: 1.6;
}
.page-hero .version-badge {
    display: inline-block; padding: 8px 24px; border-radius: 24px;
    background: rgba(255,255,255,0.15); font-size: 1.01rem; font-weight: 500;
    backdrop-filter: blur(4px);
}


/* ===== Section ===== */
.section {
    padding: 60px 0;
}
.section:nth-child(odd) {
    background: #f8f9ff;
}
.section:nth-child(even) {
    background: #fff;
}
.section-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.section-header {
    text-align: center; margin-bottom: 48px;
}
.section-header h2 {
    font-size: 1.6rem; font-weight: 700; color: #1a1a2e; margin-bottom: 10px;
}
.section-header p {
    font-size: 1.05rem; color: #666;
}
.section h2 {
    font-size: 1.5rem; font-weight: 700; color: #1a1a2e;
    margin-bottom: 32px; padding-bottom: 16px;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%) 1;
}
.section h3 {
    font-size: 1.25rem; font-weight: 700; color: #667eea;
    margin: 32px 0 16px; padding-left: 14px;
    border-left: 4px solid #667eea; line-height: 1.4;
}
.section h4 {
    font-size: 1.05rem; font-weight: 600; color: #444;
    margin: 24px 0 12px;
}

/* 흰색 섹션 안 카드 → 연회색 배경 (회색 섹션과 톤 맞춤) */
.section:nth-child(even) .tool-card,
.section:nth-child(even) .scene-card,
.section:nth-child(even) .step-list li,
.section:nth-child(even) .faq-item,
.section:nth-child(even) .guide-acc-item {
    background: #f8f9ff;
}

/* ===== Feature List ===== */
.feature-list { list-style: none; padding-left: 0; }
.feature-list li {
    padding: 10px 0 10px 28px; position: relative;
    font-size: 0.95rem; color: #555; line-height: 1.7;
}
.feature-list li::before {
    content: "";
    position: absolute; left: 0; top: 14px;
    width: 18px; height: 18px; border-radius: 50%;
    background: linear-gradient(135deg, #667eea20, #764ba220);
    display: flex; align-items: center; justify-content: center;
}
.feature-list li::after {
    content: "✓"; position: absolute; left: 3px; top: 13px;
    font-size: 0.7rem; color: #667eea; font-weight: 700;
}

/* ===== Step List ===== */
.step-list { counter-reset: step-counter; list-style: none; padding-left: 0; }
.step-list li {
    counter-increment: step-counter;
    padding: 18px 18px 18px 56px; margin: 12px 0;
    background: #fff; border-radius: 12px;
    border: 1px solid #e8eaf4; position: relative;
    font-size: 0.95rem; color: #555; line-height: 1.7;
    transition: all 0.3s ease;
}
.step-list li:hover {
    box-shadow: 0 4px 16px rgba(102,126,234,0.1);
    border-color: #c5caf0;
}
.step-list li::before {
    content: counter(step-counter);
    position: absolute; left: 16px; top: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff; width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.85rem;
}

/* ===== Toolbar Grid (Tool Cards) ===== */
.toolbar-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px; margin: 24px 0;
}
.tool-card {
    position: relative;
    padding: 28px; border-radius: 16px; background: #fff;
    border: 1px solid #e8eaf4; transition: all 0.3s ease;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 16px;
    row-gap: 12px;
    align-items: start;
}
.tool-card .feature-new-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    z-index: 2;
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff5a5f 0%, #d7263d 100%);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    box-shadow: 0 6px 16px rgba(215, 38, 61, 0.28);
    pointer-events: none;
}
.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(102,126,234,0.14);
    border-color: #c5caf0;
}
.tool-card h4 {
    color: #1a1a2e; margin: 0; font-size: 1.05rem; font-weight: 600;
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    min-width: 0;
}
.tool-card p {
    font-size: 0.92rem; color: #666; line-height: 1.6;
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0;
}
.tool-card .icon-placeholder {
    width: 64px; height: 64px; border-radius: 14px;
    background: linear-gradient(135deg, #667eea20, #764ba220);
    margin: 0; display: flex;
    align-items: center; justify-content: center;
    grid-column: 1;
    grid-row: 1;
    flex-shrink: 0;
    align-self: center;
}
.tool-card .icon-placeholder img { width: 42px; height: 42px; object-fit: contain; }

/* ===== Scene Grid ===== */
.scene-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px; margin: 24px 0;
}
.scene-card {
    border-radius: 12px; overflow: hidden; background: #fff;
    border: 1px solid #e8eaf4; text-align: center;
    transition: all 0.3s ease;
}
.scene-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102,126,234,0.12);
    border-color: #c5caf0;
}
.scene-card .preview-placeholder {
    width: 100%; aspect-ratio: 3.5/3; background: #f0f2ff;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.scene-card .preview-placeholder img { width: 100%; height: 100%; object-fit: cover; }
.scene-card h5 {
    color: #667eea; padding: 10px 12px 4px; font-size: 0.9rem; font-weight: 600;
}
.scene-card p {
    font-size: 0.85rem; color: #666; padding: 0 12px 14px; line-height: 1.5;
}

/* ===== Info & Warning Boxes ===== */
.info {
    background: #f0f4ff; border: 1px solid #d5daf0; border-radius: 12px;
    padding: 20px 24px; margin: 8px 0 20px 0;
    border-left: 4px solid #667eea;
}
.info h4 { color: #4a5ab9; margin: 0 0 8px 0; font-size: 0.95rem; }
.info ul { padding-left: 20px; margin: 8px 0; list-style: disc; list-style-position: inside; }
.info p { font-size: 0.92rem; color: #555; line-height: 1.7; }

.warning {
    background: #fffbf0; border: 1px solid #ffe5a0; border-radius: 12px;
    padding: 20px 24px; margin: 8px 0 20px 0;
    border-left: 4px solid #f0a030;
}
.warning h4 { color: #8a6914; margin: 0 0 8px 0; font-size: 0.95rem; }
.warning ul { padding-left: 20px; margin: 8px 0; list-style: disc; list-style-position: inside; }
.warning p { font-size: 0.92rem; color: #555; line-height: 1.7; }

/* ===== Table ===== */
.table-responsive { overflow-x: auto; margin: 24px 0; border-radius: 12px; border: 1px solid #e8eaf4; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid #e8eaf4; font-size: 0.92rem; }
th { background: #f8f9ff; font-weight: 600; color: #667eea; }
tr:hover { background: #fafbff; }

/* ===== Code Block ===== */
.code-block {
    background: #f8f9ff; border: 1px solid #e8eaf4; border-radius: 12px;
    padding: 18px 24px; font-family: 'Courier New', Consolas, monospace;
    font-size: 0.88rem; margin: 16px 0; overflow-x: auto; color: #444;
    line-height: 1.8;
}

/* ===== FAQ Accordion ===== */
.faq-item {
    margin-bottom: 12px; border-radius: 12px; overflow: hidden;
    background: #fff; border: 1px solid #e8eaf4;
    transition: all 0.3s ease;
}
.faq-item:hover { box-shadow: 0 4px 16px rgba(102,126,234,0.08); }
.faq-question {
    width: 100%; display: flex; align-items: center; justify-content: flex-start;
    padding: 20px 24px; font-size: 0.95rem; font-weight: 500; color: #1a1a2e;
    cursor: pointer; transition: all 0.2s ease;
    text-align: left; position: relative; padding-right: 50px;
    background: transparent; border: none; font-family: inherit;
}
.faq-question:hover { background: rgba(102,126,234,0.03); }
.faq-question::before { content: "Q. "; font-weight: 700; color: #667eea; margin-right: 4px; }
.faq-question::after {
    content: "";
    position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
    width: 20px; height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7.5l5 5 5-5' stroke='%23667eea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-size: contain;
    transition: transform 0.3s ease;
}
.faq-question.active::after { transform: translateY(-50%) rotate(180deg); }
.faq-answer {
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 24px;
}
.faq-answer.show {
    max-height: 800px;
    padding: 0 24px 24px;
}
.faq-answer::before { content: "A. "; font-weight: 700; color: #667eea; }
.faq-answer p { font-size: 0.92rem; color: #555; line-height: 1.7; margin-bottom: 8px; }
.faq-answer ul { margin: 8px 0; padding-left: 20px; list-style: disc; }
.faq-answer li { margin: 6px 0; font-size: 0.92rem; color: #555; line-height: 1.6; }

/* ===== Guide Accordion (without Q./A. labels) ===== */
.guide-acc-item {
    margin-bottom: 12px; border-radius: 12px; overflow: hidden;
    background: #fff; border: 1px solid #e8eaf4;
    transition: all 0.3s ease;
}
.guide-acc-item:hover { box-shadow: 0 4px 16px rgba(102,126,234,0.08); }
.guide-acc-question {
    width: 100%; display: flex; align-items: center;
    padding: 20px 24px; font-size: 0.95rem; font-weight: 600; color: #1a1a2e;
    cursor: pointer; transition: all 0.2s ease;
    text-align: left; position: relative; padding-right: 50px;
    background: transparent; border: none; font-family: inherit;
}
.guide-acc-question:hover { background: rgba(102,126,234,0.03); }
.guide-acc-question::after {
    content: "";
    position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
    width: 20px; height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7.5l5 5 5-5' stroke='%23667eea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-size: contain;
    transition: transform 0.3s ease;
}
.guide-acc-question.active::after { transform: translateY(-50%) rotate(180deg); }
.guide-acc-answer {
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 24px;
    background: #fff;
}
.guide-acc-answer.show {
    max-height: 2000px;
    padding: 0 24px 24px;
}
.guide-acc-answer .step-list li {
    background: #f8f9ff;
}

/* ===== Manual Image ===== */
.manual-image {
    display: block; margin: 12px auto 16px; max-width: 100%;
    width: auto; height: auto;
    image-rendering: -webkit-optimize-contrast;
}

/* ===== Video Thumbnail ===== */
.manual-video-embed {
    position: relative; width: 100%; max-width: 800px; margin: 24px auto;
    aspect-ratio: 16 / 9; background: #000;
}
.manual-video-embed iframe {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none;
}

/* ===== Back Link ===== */
.back-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: #667eea; text-decoration: none; padding: 10px 24px;
    border: 2px solid #667eea; border-radius: 10px;
    font-size: 0.9rem; font-weight: 600;
    transition: all 0.25s ease;
}
.back-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff; border-color: transparent;
    transform: translateY(-2px); box-shadow: 0 4px 15px rgba(102,126,234,0.3);
}

/* ===== Footer ===== */
.site-footer {
    padding: 60px 0 40px; background: #1a1a2e; color: #ccc;
}
.footer-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.footer-brand { margin-bottom: 32px; }
.footer-brand h3 { font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.footer-brand p { font-size: 0.9rem; color: #888; }
.footer-links { display: flex; gap: 60px; margin-bottom: 32px; }
.footer-col h4 { font-size: 0.85rem; font-weight: 600; color: #fff; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; list-style: none; }
.footer-col a { font-size: 0.9rem; color: #888; transition: color 0.2s ease; }
.footer-col a:hover { color: #667eea; }
.footer-bottom {
    padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.08); text-align: center;
}
.footer-bottom p { font-size: 0.85rem; color: #666; }

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed; bottom: 30px; right: 30px;
    width: 48px; height: 48px; border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff; display: none; align-items: center; justify-content: center;
    box-shadow: 0 4px 15px rgba(102,126,234,0.3);
    transition: all 0.3s ease; z-index: 999;
    text-decoration: none; font-size: 1.2rem;
}
.back-to-top.visible { display: flex; }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(102,126,234,0.4); }

/* ===== Image Placeholder ===== */
.image-placeholder {
    background: #f0f2ff; border: 2px dashed #c5caf0; border-radius: 12px;
    padding: 40px 20px; text-align: center; margin: 20px 0;
    color: #888; font-style: italic; font-size: 0.9rem;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .toolbar-grid { grid-template-columns: repeat(2, 1fr); }
    .scene-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

@media (max-width: 1080px) {
    .nav-logo { margin-right: auto; }
    .nav-links { display: none; }
    .nav-cta { display: none; }
    .nav-search { margin-left: auto; }
    .nav-search-input { width: 160px; font-size: 0.8rem; padding: 6px 14px; }
    .nav-search-input:focus { width: 200px; }
    .mobile-menu-btn { display: flex; margin-left: 8px; }
    .nav-links.open {
        display: flex; flex-direction: column; position: absolute;
        top: 64px; left: 0; right: 0; background: rgba(255,255,255,0.98);
        backdrop-filter: blur(10px);
        padding: 16px 24px; box-shadow: 0 8px 30px rgba(0,0,0,0.1);
        border-bottom: 1px solid #eee; gap: 4px;
    }

    .page-hero { padding: 100px 0 40px; }
    .page-hero h1 { font-size: 1.9rem; }

    .section { padding: 40px 0; }
    .section h2 { font-size: 1.5rem; }
    .section-header h2 { font-size: 1.6rem; }

    .toolbar-grid { grid-template-columns: 1fr; }
    .scene-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

    .footer-links { flex-direction: column; gap: 24px; }
}

@media (max-width: 480px) {
    .page-hero h1 { font-size: 1.5rem; }
    .page-hero .hero-desc { font-size: 0.95rem; }
    .scene-grid { grid-template-columns: repeat(2, 1fr); }
    .step-list li { padding-left: 48px; }
}
