@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
    --primary-color: #0f62fe;
    --primary-dark: #0043ce;
    --secondary-color: #161616;
    --accent-color: #0f62fe;
    --gold-point: #ffc107;
    --gold-gradient: linear-gradient(135deg, #ffc107 0%, #ff8f00 100%);
    --text-main: #161616;
    --text-muted: #525252;
    --bg-light: #f4f4f4;
    --bg-white: #ffffff;
    --border-color: #c6c6c6;
    --header-height: 75px;
    --font-family: 'IBM Plex Sans', sans-serif;
    --heading-font-family: 'IBM Plex Sans', sans-serif;
    --button-radius: 0px;
    --card-radius: 8px;
    --input-radius: 4px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-main);
    line-height: 1.7;
    background-color: var(--bg-white);
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Fixed Navigation Bar (Glassmorphism)
   ========================================================================== */
header.main-header {
    background-color: var(--bg-white);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.header-inner {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

header.main-header .container {
    max-width: none;
    padding: 0 40px;
}

/* Luxurious Logo Design */
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-wrapper.home-logo {
    display: block;
    width: 120px;
    flex: 0 0 auto;
}

.logo-wrapper.home-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.logo-icon {
    width: 46px;
    height: 46px;
    background: linear-gradient(145deg, var(--primary-color), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 20px;
    position: relative;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1), 
                inset 2px 2px 5px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-icon::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--gold-gradient);
    border-radius: 50%;
    top: -4px;
    right: -4px;
    box-shadow: 0 0 10px var(--gold-point);
    border: 2px solid white;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text .brand {
    font-size: 22px;
    font-weight: 900;
    color: var(--primary-dark);
    letter-spacing: -1px;
    line-height: 1.1;
    background: linear-gradient(to right, var(--primary-dark), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--heading-font-family);
}

.logo-text .slogan {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 3px;
    opacity: 0.8;
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 34px;
    align-items: center;
    margin-left: auto;
    margin-right: 42px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 15px;
    transition: all 0.25s ease;
    position: relative;
    padding: 8px 0;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gold-gradient);
    border-radius: 2px;
}

.btn-sm {
    padding: 10px 22px !important;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white !important;
    border-radius: var(--button-radius);
    font-size: 14px !important;
    box-shadow: 0 4px 15px rgba(13, 71, 161, 0.2);
    font-weight: 700;
    text-decoration: none;
}

.btn-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 71, 161, 0.3);
}

/* ==========================================================================
   Hero Section (Optimized for No-Scroll)
   ========================================================================== */
.main-page {
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hero-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--header-height);
    padding-bottom: 40px;
    text-align: center;
    background: radial-gradient(circle at 50% 50%, #f8faff 0%, #ffffff 100%);
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.ai-badge-premium {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: rgba(15, 98, 254, 0.08);
    color: var(--primary-color);
    border-radius: 40px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border: 1px solid rgba(15, 98, 254, 0.15);
}

.hero-title {
    font-size: clamp(28px, 4.5vw, 48px);
    line-height: 1.2;
    font-weight: 900;
    margin-bottom: 48px;
    letter-spacing: -1.5px;
    color: var(--text-main);
}

.hero-title .highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(15px, 1.8vw, 18px);
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 70px;
}


.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.btn-primary-lg {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 22px 70px;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(15, 98, 254, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.btn-primary-lg:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(15, 98, 254, 0.4);
}

.btn-primary-lg .btn-text {
    font-size: 22px;
    font-weight: 800;
}

.btn-primary-lg .btn-subtext {
    font-size: 11px;
    opacity: 0.8;
    font-weight: 500;
}

.trust-info {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    opacity: 0.7;
}

.main-footer {
    padding: 20px 0;
    background: transparent;
    border-top: none;
    font-size: 12px;
}

/* ==========================================================================
   Consultation Overlay (Full-screen)
   ========================================================================== */
.consult-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    display: none;
    overflow: hidden;
}

.overlay-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.consult-overlay.active .overlay-background {
    opacity: 0.95;
}

/* Phase 1: Futuristic Loader */
.futuristic-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
}

.loader-content {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-core {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 30px var(--primary-color), 0 0 60px var(--primary-color);
    animation: corePulse 1.5s infinite ease-in-out;
}

.scanner-ring {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 2px solid rgba(15, 98, 254, 0.2);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: ringRotate 2s infinite linear;
}

.scanner-ring::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    border: 2px solid transparent;
    border-left: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: ringRotate 3s infinite linear reverse;
    opacity: 0.5;
}

@keyframes corePulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.5); opacity: 1; box-shadow: 0 0 50px var(--primary-color), 0 0 100px var(--primary-color); }
}

@keyframes ringRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loader-text-group h2 {
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 4px;
    margin-bottom: 12px;
    font-family: 'JetBrains Mono', monospace;
}

.loader-text-group p {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* Data Particles */
.data-particles {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: var(--primary-color);
    width: 2px; height: 2px;
    border-radius: 50%;
    opacity: 0;
}

.loader-tips {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 24px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    animation: tipFadeIn 0.5s ease-out;
}

.tip-icon {
    font-size: 18px;
}

.tip-text {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
    letter-spacing: -0.2px;
}

@keyframes tipFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tip-fade-out {
    animation: tipFadeOut 0.4s ease-in forwards;
}

@keyframes tipFadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-10px); }
}

/* Phase 2: Consultation Studio */
.studio-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f8faff;
    display: flex;
    z-index: 3;
    animation: studioFadeIn 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes studioFadeIn {
    from { opacity: 0; transform: scale(1.05); }
    to { opacity: 1; transform: scale(1); }
}

/* Sidebar */
.studio-sidebar {
    width: 350px;
    background: #ffffff;
    border-right: 1px solid #e1e5eb;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 32px 24px;
    border-bottom: 1px solid #f0f2f5;
}

.sidebar-header h3 { font-size: 18px; font-weight: 800; margin-bottom: 12px; }

.discount-badge {
    display: inline-block;
    padding: 6px 14px;
    background: #eef4ff;
    color: var(--primary-color);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(15, 98, 254, 0.1);
}

.sidebar-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.empty-summary {
    color: #9ca3af;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
    margin-top: 40px;
}

.sidebar-footer {
    padding: 24px;
    background: #f9fafb;
    border-top: 1px solid #f0f2f5;
}

.benefit-info strong { display: block; font-size: 14px; margin-bottom: 6px; color: var(--primary-color); }
.benefit-info p { font-size: 13px; color: #6b7280; line-height: 1.5; margin: 0; }

/* Main Chat Area */
.studio-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.studio-header {
    height: 80px;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f2f5;
}

.studio-info { display: flex; align-items: center; gap: 14px; }
.ai-avatar {
    width: 42px; height: 42px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 800; font-size: 14px;
}
.studio-info h4 { font-size: 16px; margin: 0; font-weight: 700; }
.studio-info p { font-size: 12px; color: #6b7280; margin: 0; }

.close-overlay {
    background: none; border: none; font-size: 32px; color: #9ca3af; cursor: pointer; transition: color 0.2s;
}
.close-overlay:hover { color: #111; }

.studio-messages {
    flex: 1;
    padding: 40px 10%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.studio-input-area {
    padding: 32px 10%;
    border-top: 1px solid #f0f2f5;
}

.input-wrapper {
    display: flex;
    background: #f3f4f6;
    border-radius: 16px;
    padding: 12px 16px;
    gap: 12px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.input-wrapper:focus-within {
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(15, 98, 254, 0.08);
}

#studio-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 8px 0;
    resize: none;
    max-height: 200px;
    font-family: inherit;
    line-height: 1.6;
}

#studio-send-btn {
    width: 44px; height: 44px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.2s;
}

#studio-send-btn:hover { transform: scale(1.05); }

.input-hint {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 10px;
    text-align: center;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
    .hero-title { font-size: 42px; letter-spacing: -2px; }
    .hero-subtitle { font-size: 18px; }
    .studio-sidebar { display: none; }
    .studio-messages, .studio-input-area { padding-left: 24px; padding-right: 24px; }
}

/* ==========================================================================
   Google Style Main (REMOVED)
   ========================================================================== */

/* Result Card */
.result-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.status-badge {
    background: var(--bg-light);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 800;
}

.result-content h4 {
    margin: 30px 0 15px;
    color: var(--primary-color);
    font-size: 20px;
}

.result-content ul {
    list-style: none;
    padding-left: 0;
}

.result-content li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    font-size: 17px;
}

.result-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 900;
}

.result-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px dashed var(--border-color);
    text-align: center;
}

/* ==========================================================================
   Philosophy Content Page (사업/대시보드 철학)
   ========================================================================== */
.content-page {
    padding-top: calc(var(--header-height) + 80px);
    padding-bottom: 120px;
    background-color: var(--bg-white);
}

.article-container {
    max-width: 840px;
    margin: 0 auto;
}

.article-header {
    text-align: center;
    margin-bottom: 80px;
}

.article-header h1 {
    font-size: 52px;
    margin-bottom: 25px;
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: -2.5px;
    line-height: 1.2;
    font-family: var(--heading-font-family);
}

.article-header .subtitle {
    font-size: 22px;
    color: var(--text-muted);
    font-weight: 500;
}

.article-body h2 {
    font-size: 34px;
    margin: 80px 0 35px;
    padding-bottom: 25px;
    border-bottom: 3px solid var(--bg-light);
    color: var(--primary-dark);
    font-weight: 800;
    letter-spacing: -1px;
}

.article-body h3 {
    font-size: 26px;
    margin: 50px 0 25px;
    font-weight: 700;
    color: var(--text-main);
}

.article-body p {
    margin-bottom: 25px;
    font-size: 19px;
    color: var(--text-main);
    line-height: 1.85;
}

.article-body ul, .article-body ol {
    margin-bottom: 45px;
    padding-left: 30px;
}

.article-body li {
    margin-bottom: 18px;
    font-size: 19px;
    color: var(--text-main);
}

.article-body blockquote {
    border-left: 8px solid var(--primary-color);
    padding: 35px 45px;
    background: var(--bg-light);
    margin: 55px 0;
    font-size: 21px;
    border-radius: 0 20px 20px 0;
    color: var(--primary-dark);
    font-weight: 500;
    font-style: italic;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.article-body hr {
    margin: 80px 0;
    border: 0;
    border-top: 1px solid var(--border-color);
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 45px 0;
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 25px rgba(0,0,0,0.06);
    border: 1px solid var(--border-color);
}

.article-body th, .article-body td {
    padding: 22px 28px;
    border: 1px solid var(--border-color);
}

.article-body th {
    background: var(--bg-light);
    font-weight: 700;
    color: var(--primary-dark);
    text-align: left;
    font-size: 17px;
}

.article-body td {
    font-size: 17px;
}

.article-body td.highlight {
    background-color: var(--bg-light);
    font-weight: 800;
    color: var(--primary-color);
}

.article-body strong {
    color: var(--primary-dark);
    font-weight: 700;
}

.highlight-box {
    background: var(--bg-light);
    padding: 45px;
    border-radius: 24px;
    margin: 60px 0;
    border: 1px solid var(--border-color);
}

.cta-footer {
    text-align: left;
    margin-top: 100px;
    padding: 64px 60px;
    background: #111111;
    border-radius: 24px;
    color: white;
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}

.cta-footer h2 {
    font-size: 36px;
    margin-bottom: 16px;
    font-weight: 800;
    color: white;
    letter-spacing: -1px;
    line-height: 1.2;
}

.cta-footer p {
    font-size: 17px;
    color: rgba(255,255,255,0.55);
    margin-bottom: 40px;
    line-height: 1.7;
    max-width: 500px;
}

.cta-footer .btn-primary {
    background: white;
    color: #111111;
    font-weight: 700;
    font-size: 15px;
    padding: 16px 32px;
    box-shadow: none;
}

.cta-footer .btn-primary:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}

.cta-steps {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 44px;
}

.cta-step {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.07);
    padding: 9px 16px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.1);
}

.step-num {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 11px;
    flex-shrink: 0;
}

.step-text {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
    white-space: nowrap;
}

.cta-arrow {
    color: rgba(255,255,255,0.2);
    font-size: 16px;
}

@media (max-width: 768px) {
    .cta-footer {
        padding: 44px 30px;
        border-radius: 16px;
        margin-top: 60px;
    }

    .cta-footer h2 {
        font-size: 26px;
    }

    .cta-footer p {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .cta-steps {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 32px;
    }

    .cta-arrow {
        font-size: 14px;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    padding: 80px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 15px;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-light);
}

/* ==========================================================================
   Animations
   ========================================================================== */
/* Philosophy Intro Section */
.philosophy-intro {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-top: 100px;
    text-align: left;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 60px;
    background: var(--bg-light);
    border-radius: var(--card-radius);
    border: 1px solid var(--border-color);
}

.philosophy-card {
    flex: 1;
    background: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    min-width: 450px;
}

.terminal-header {
    background: #333;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.terminal-title {
    color: #aaa;
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
    margin-left: 10px;
}

.terminal-body {
    padding: 25px;
    color: #d4d4d4;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    line-height: 1.8;
    min-height: 250px;
    white-space: pre-wrap;
    text-align: left;
}

.philosophy-text {
    flex: 1;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--primary-color);
    letter-spacing: -1.5px;
    line-height: 1.2;
}

.section-desc {
    font-size: 19px;
    line-height: 1.7;
    color: var(--text-main);
    margin-bottom: 35px;
}

.philosophy-badge-group {
    display: flex;
    gap: 12px;
}

.p-badge {
    padding: 6px 16px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-card, .article-container, .search-container, .philosophy-intro {
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
    .philosophy-intro {
        flex-direction: column;
        padding: 40px;
        gap: 40px;
    }
    .philosophy-card {
        min-width: 100%;
    }
}

/* ==========================================================================
   Hamburger Menu
   ========================================================================== */
.hamburger-btn {
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    width: 50px;
    height: 22px;
    padding: 0;
    background: none;
    border: none;
    flex: 0 0 auto;
}

.hamburger-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-main);
    transition: all 0.3s;
}

.hamburger-btn span:nth-child(1) {
    align-self: flex-end;
    width: calc(100% - 16px);
}

.hamburger-btn span:nth-child(3) {
    width: calc(100% - 16px);
}

.hamburger-btn.open span:nth-child(1) {
    width: 100%;
    transform: translateY(10px) rotate(45deg);
}

.hamburger-btn.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.open span:nth-child(3) {
    width: 100%;
    transform: translateY(-10px) rotate(-45deg);
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    left: auto;
    width: 360px;
    max-width: 86vw;
    height: 100%;
    background: var(--bg-white);
    border-left: 1px solid var(--border-color);
    padding: 88px 34px 42px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 22px;
    box-shadow: -20px 0 30px rgba(95, 112, 131, 0.1);
    transition: right 0.45s ease;
    text-align: right;
}

.mobile-nav.open {
    right: 0;
}

.mobile-nav-bg {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: transparent;
}

.mobile-nav-bg.open {
    display: block;
}

.mobile-nav-close {
    position: absolute;
    top: 34px;
    right: 28px;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.mobile-nav-close span {
    position: absolute;
    top: 50%;
    left: 0;
    display: block;
    width: 100%;
    height: 3px;
    background: var(--border-color);
}

.mobile-nav-close span:nth-child(1) {
    transform: rotate(45deg);
}

.mobile-nav-close span:nth-child(2) {
    transform: rotate(-45deg);
}

.mobile-nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 22px;
    padding: 0;
    border-bottom: 0;
    transition: color 0.2s;
}

.mobile-nav a:hover {
    color: var(--primary-color);
}

.mobile-nav a.active {
    color: var(--primary-color);
}

.mobile-nav a.btn-sm {
    border-bottom: none;
    margin-top: 10px;
    text-align: center;
    padding: 14px;
    border-radius: 4px;
}

/* AI 상담 버튼 (네비게이션) */
.nav-ai-chat {
    padding: 9px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f64f59 100%);
    background-size: 200% 200%;
    background-position: 0% 50%;
    color: #fff !important;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background-position 0.4s ease, opacity 0.2s ease;
    white-space: nowrap;
}

.nav-ai-chat:hover {
    background-position: 100% 50%;
    color: #fff !important;
    opacity: 0.9;
}

.nav-ai-chat.active {
    background-position: 100% 50%;
    color: #fff !important;
}

/* 모바일 AI 상담 */
.mobile-nav a.nav-ai-chat {
    border-bottom: none;
    margin-top: 6px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f64f59 100%);
    color: #fff !important;
    text-align: center;
    padding: 11px 12px;
    border-radius: 8px;
    font-weight: 700;
}

/* ==========================================================================
   Side Quotes (Desktop)
   ========================================================================== */
.side-quote {
    position: fixed;
    top: 50%;
    width: 180px;
    opacity: 0;
    transform: translateY(calc(-50% + 15px));
    transition: opacity 0.7s ease, transform 0.7s ease;
    pointer-events: none;
    z-index: 50;
}

.side-quote.left {
    left: calc(50vw - 450px - 180px);
}

.side-quote.right {
    right: calc(50vw - 450px - 180px);
}

.side-quote.visible {
    opacity: 1;
    transform: translateY(-50%);
}

.side-quote-bar {
    width: 2px;
    height: 28px;
    background: var(--primary-color);
    opacity: 0.35;
    margin-bottom: 12px;
}

.side-quote p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-muted);
    font-weight: 500;
    font-style: italic;
    margin: 0;
}

/* ==========================================================================
   Inline Quotes (Mobile fallback)
   ========================================================================== */
.inline-quote-block {
    display: none;
    padding: 24px;
    margin: 10px 0 40px;
    border-left: 3px solid var(--primary-color);
    background: var(--bg-light);
    border-radius: 0 8px 8px 0;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.inline-quote-block.visible {
    opacity: 1;
    transform: translateY(0);
}

.inline-quote-block p {
    font-size: 16px !important;
    color: var(--primary-dark) !important;
    font-style: italic;
    line-height: 1.75 !important;
    margin: 0 !important;
    font-weight: 500;
}

@media (max-width: 1300px) {
    .side-quote { display: none; }
    .inline-quote-block { display: block; }
}

/* ==========================================================================
   Responsive - Mobile
   ========================================================================== */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .info-grid { grid-template-columns: 1fr; }

    .content-page {
        padding-top: calc(var(--header-height) + 40px);
        padding-bottom: 80px;
    }

    .article-container {
        padding: 0 20px;
    }

    .article-header {
        margin-bottom: 50px;
    }

    .article-header h1 {
        font-size: 30px;
        letter-spacing: -1px;
    }

    .article-body h2 {
        font-size: 24px;
        margin: 50px 0 20px;
        padding-bottom: 15px;
    }

    .article-body h3 {
        font-size: 20px;
        margin: 35px 0 15px;
    }

    .article-body p,
    .article-body li {
        font-size: 16px;
    }

    .article-body table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }

    .article-body th,
    .article-body td {
        padding: 14px 16px;
    }

    .article-body blockquote {
        padding: 20px;
        font-size: 16px;
        margin: 35px 0;
    }

    .cta-footer {
        padding: 50px 25px;
        border-radius: 20px;
        margin-top: 60px;
    }

    .cta-footer h2 {
        font-size: 26px;
    }

    .cta-footer p {
        font-size: 16px;
        margin-bottom: 30px;
    }
}
