/* ============================================================
   Case Studio — 공용 아티클 스타일 (라이트모드)
   2026-07-10 리뉴얼: 각 아티클의 인라인 다크 스타일 블록을 대체한다.
   - 구형 글(bare <article>)과 신형 글(.article-content) 모두 커버
   - 페이지 고유 컴포넌트는 각 파일의 잔여 <style> 블록에 남는다
   ============================================================ */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

:root {
    --bg: #ffffff;
    --bg-alt: #f7f8fa;
    --bg-subtle: #f7f8fa;
    --bg-glass: rgba(255, 255, 255, 0.92);
    --surface: #f7f8fa;
    --ink: #0d1117;
    --text: #0d1117;
    --text-body: #333d4b;
    --muted: #5b6472;
    --accent: #2563eb;
    --accent-dark: #1d4ed8;
    --accent-tint: #eff4ff;
    --accent-purple: #2563eb; /* 구형 글 잔여 참조용 — 단일 액센트로 통일 */
    --primary: #2563eb;
    --primary-soft: rgba(37, 99, 235, 0.08);
    --border: #e6e9ee;
    --border-strong: #d7dbe2;
    --section-space-y: clamp(3.5rem, 5vw, 5.5rem);
    --header-height: clamp(5rem, 5vw, 5.6rem);
    --sans: "Pretendard Variable", Pretendard, "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

html { margin: 0 !important; padding: 0 !important; scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    margin: 0 !important;
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text-body);
    line-height: 1.8;
    word-break: keep-all;
    -webkit-font-smoothing: antialiased;
}
body.admin-bar { margin-top: 0 !important; padding-top: 0 !important; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
main { margin-top: 0; }
section { padding: var(--section-space-y) 0; }

/* ---------- Hero (비디오 제거 → 라이트 에디토리얼 헤더) ---------- */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 0;
    padding: calc(var(--header-height) + clamp(3.5rem, 7vw, 5.5rem)) 0 clamp(3rem, 5vw, 4.5rem);
    margin-top: calc(-1 * var(--header-height));
    background-image:
        linear-gradient(180deg, rgba(7, 14, 29, 0.72) 0%, rgba(7, 14, 29, 0.60) 56%, rgba(7, 14, 29, 0.78) 100%),
        var(--hero-image, linear-gradient(180deg, #f6f8fc 0%, #ffffff 100%));
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border-bottom: 1px solid var(--border);
}
.hero video, .hero-video { display: none; }
.hero::after { content: none; }
.hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 24px;
}
.hero .container .hero-content { padding: 0; }
.hero-badge, .hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    margin-bottom: 1.6rem;
    letter-spacing: 0.02em;
}
.hero-title {
    font-size: clamp(1.9rem, 4.4vw, 3.1rem);
    line-height: 1.25;
    margin-bottom: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: initial;
    letter-spacing: -0.02em;
    word-break: keep-all;
}
.hero-subtitle, .hero-description {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 1.6rem;
    line-height: 1.7;
    word-break: keep-all;
}
.hero-meta {
    display: flex;
    justify-content: center;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin-top: 1.6rem;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.92);
}
.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: rgba(7, 14, 29, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

/* ---------- Back Navigation ---------- */
.back-nav { padding: 1.8rem 0 0.5rem; }
.back-btn, .back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.4rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid var(--border);
    color: var(--muted);
    transition: all 0.25s ease;
    font-weight: 600;
    font-size: 0.92rem;
}
.back-btn:hover, .back-link:hover {
    border-color: rgba(37, 99, 235, 0.4);
    color: var(--accent);
    background: var(--accent-tint);
    transform: translateX(-3px);
}

/* ---------- Article 본문 (구형 bare article + 신형 .article-content) ---------- */
.article-section { background: var(--bg); position: relative; }
.article-wrapper { max-width: 780px; margin: 0 auto; }
article {
    display: block;
    max-width: 820px;
    margin: 0 auto;
    padding: 3.5rem 24px;
}
article, .article-content {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-body);
    word-break: keep-all;
}
article h2, .article-content h2 {
    font-size: clamp(1.55rem, 2.8vw, 2rem);
    margin: 3rem 0 1.3rem;
    font-weight: 800;
    color: var(--ink);
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: initial;
    line-height: 1.4;
    letter-spacing: -0.015em;
    word-break: keep-all;
    scroll-margin-top: 110px;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--border);
}
article h2:first-child, .article-content h2:first-child { margin-top: 0; }
article h3, .article-content h3 {
    font-size: clamp(1.22rem, 2.2vw, 1.5rem);
    margin: 2.2rem 0 1rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.5;
    word-break: keep-all;
    scroll-margin-top: 110px;
}
article h4, .article-content h4 {
    font-size: clamp(1.05rem, 1.8vw, 1.22rem);
    margin: 1.8rem 0 0.9rem;
    font-weight: 700;
    color: var(--accent-dark);
    word-break: keep-all;
}
article p, .article-content p { margin-bottom: 1.4rem; }
article strong, .article-content strong { color: var(--ink); font-weight: 700; }
article ul, article ol,
.article-content ul, .article-content ol { margin: 1.3rem 0; padding-left: 1.5rem; }
article li, .article-content li {
    margin-bottom: 0.7rem;
    padding-left: 0.4rem;
    line-height: 1.8;
    color: var(--text-body);
}
article ul li::marker, .article-content ul li::marker { color: var(--accent); }

/* 숫자 리스트 — 원형 넘버 뱃지 */
article ol, .article-content ol {
    counter-reset: item;
    list-style-type: none;
    padding-left: 0;
}
article ol li, .article-content ol li {
    counter-increment: item;
    position: relative;
    padding-left: 2.7rem;
    margin-bottom: 1rem;
}
article ol li::before, .article-content ol li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 0.15rem;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    background: var(--accent);
    color: #ffffff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
}

/* ---------- Insight Box ---------- */
.insight-box {
    background: var(--accent-tint);
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-left: 3px solid var(--accent);
    border-radius: 14px;
    padding: 1.7rem 1.9rem;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}
.insight-box::before {
    content: '💡';
    position: absolute;
    top: 1.2rem;
    right: 1.3rem;
    font-size: 1.8rem;
    opacity: 0.35;
}
.insight-box::after { content: none; }
.insight-box:hover { transform: none; box-shadow: none; }
.insight-box h4 {
    margin: 0 0 0.8rem !important;
    color: var(--ink) !important;
    font-size: 1.08rem !important;
    position: relative;
    z-index: 2;
}
.insight-box p {
    color: #3a4657;
    font-size: 0.96rem;
    line-height: 1.8;
    position: relative;
    z-index: 2;
}
.insight-box p:last-child { margin-bottom: 0; }

/* ---------- Phase Card ---------- */
.phase-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem 2.2rem;
    margin: 2.5rem 0;
    position: relative;
    box-shadow: 0 1px 3px rgba(13, 17, 23, 0.04);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.phase-card::before { content: none; }
.phase-card:hover {
    transform: none;
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: 0 8px 24px rgba(13, 17, 23, 0.06);
}
.phase-card > h2:first-of-type { margin-top: 0.4rem; }
.phase-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    background: var(--accent-tint);
    border: 1px solid rgba(37, 99, 235, 0.22);
    color: var(--accent-dark);
    margin-bottom: 1.1rem;
    letter-spacing: 0.03em;
}

/* ---------- Tables ---------- */
.comparison-table, .data-table, .checklist-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.8rem 0;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    font-size: 0.93rem;
}
.comparison-table th, .data-table th, .checklist-table th {
    background: #f2f6ff;
    padding: 0.9rem 1rem;
    text-align: left;
    font-weight: 700;
    color: var(--ink);
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
}
.comparison-table td, .data-table td, .checklist-table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #eef0f3;
    color: var(--text-body);
    line-height: 1.7;
}
.comparison-table td strong, .data-table td strong, .checklist-table td strong { color: var(--accent-dark); }
.comparison-table tr:last-child td, .data-table tr:last-child td, .checklist-table tr:last-child td { border-bottom: none; }
.comparison-table tbody tr:hover, .data-table tbody tr:hover, .checklist-table tbody tr:hover { background: #f7f9fc; }
.table-container { overflow-x: auto; margin: 1.8rem 0; }
.table-container .comparison-table, .table-container .data-table, .table-container .checklist-table { margin: 0; }

/* ---------- CTA ---------- */
.cta-section {
    background: linear-gradient(135deg, #f0f5ff 0%, #f6faff 100%);
    border-top: 1px solid rgba(37, 99, 235, 0.14);
    border-bottom: 1px solid rgba(37, 99, 235, 0.14);
    position: relative;
    overflow: hidden;
    text-align: center;
}
.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.cta-title, .cta-section h3 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 1rem;
    font-weight: 800;
    color: var(--ink);
}
.cta-text, .cta-section p {
    font-size: 1.05rem;
    color: var(--muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 2rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.25s ease;
    cursor: pointer;
    border: 1px solid transparent;
}
.btn-primary, .cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 2.2rem;
    border-radius: 999px;
    font-weight: 700;
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 10px 24px -8px rgba(37, 99, 235, 0.45);
    border: 1px solid transparent;
    transition: all 0.25s ease;
}
.btn-primary:hover, .cta-button:hover {
    background: var(--accent-dark);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -10px rgba(37, 99, 235, 0.5);
}
.btn-ghost {
    background: #ffffff;
    border-color: var(--border-strong);
    color: var(--ink);
}
.btn-ghost:hover {
    border-color: rgba(37, 99, 235, 0.4);
    color: var(--accent);
    background: var(--accent-tint);
}
/* 구형 글: article 본문 안에 div.cta-section 임베드형 — 카드로 표현 */
article .cta-section, .article-content .cta-section {
    max-width: 700px;
    margin: 3.5rem auto;
    padding: 2.6rem 2.2rem;
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 16px;
}

/* ---------- Floating Navigation ---------- */
.floating-nav {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.4rem 1rem;
    z-index: 1000;
    max-width: 280px;
    box-shadow: 0 12px 36px rgba(13, 17, 23, 0.09);
    transition: opacity 0.3s ease;
}
.floating-nav.hidden { opacity: 0; pointer-events: none; }
.floating-nav-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-dark);
    margin-bottom: 0.9rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}
.floating-nav-list { list-style: none; margin: 0; padding: 0; }
.floating-nav-item { margin-bottom: 0.35rem; }
.floating-nav-link {
    display: block;
    padding: 0.45rem 0.75rem;
    font-size: 0.85rem;
    color: var(--muted);
    text-decoration: none;
    border-radius: 7px;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
}
.floating-nav-link:hover {
    color: var(--accent);
    background: var(--accent-tint);
    border-left-color: rgba(37, 99, 235, 0.5);
}
.floating-nav-link.active {
    color: var(--accent-dark);
    background: var(--accent-tint);
    border-left-color: var(--accent);
    font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 1400px) {
    .floating-nav { max-width: 220px; right: 1rem; padding: 1rem 0.75rem; }
    .floating-nav-link { font-size: 0.78rem; padding: 0.4rem 0.6rem; }
}
@media (max-width: 1200px) {
    .floating-nav { display: none; }
}
@media (max-width: 768px) {
    .hero { padding-top: calc(var(--header-height) + 2.8rem); }
    .hero-meta { gap: 0.5rem; }
    .article-wrapper { max-width: 100%; }
    article { padding: 2.5rem 24px; }
    article, .article-content { font-size: 0.95rem; line-height: 1.85; }
    article h2, .article-content h2 { font-size: clamp(1.35rem, 5vw, 1.7rem); margin: 2.5rem 0 1.2rem; }
    article h3, .article-content h3 { font-size: clamp(1.12rem, 4vw, 1.35rem); margin: 2rem 0 0.9rem; }
    .phase-card { padding: 1.5rem; }
    .insight-box { padding: 1.4rem 1.5rem; }
    .comparison-table, .data-table, .checklist-table { font-size: 0.84rem; display: block; overflow-x: auto; }
    .comparison-table th, .comparison-table td,
    .data-table th, .data-table td,
    .checklist-table th, .checklist-table td { padding: 0.7rem 0.8rem; }
    .cta-buttons { flex-direction: column; align-items: center; }
}
