/* 홈 페이지: main 컨테이너 효과 무력화 (히어로/CTA 풀와이드용) */
main.container:has(> .hero) { max-width: none !important; padding: 0 !important; }

/* ===== 메인 페이지 (라이트 정리) ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ===== 히어로 (네이비 포인트 1) ===== */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, #2563eb 100%);
    color: #fff;
    padding: 64px 20px;
    overflow: hidden;
    border-radius: 0;
    width: 100%;
    text-align: center;
}
.hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}
.hero h1 {
    font-size: 44px;
    line-height: 1.25;
    margin: 0 0 20px;
    font-weight: 800;
    color: #fff;
}
.hero h1 .hl { color: var(--color-accent); }
.hero-sub {
    font-size: 18px;
    line-height: 1.7;
    color: #D5D5D5;
    font-weight: 500;
    margin: 0 0 32px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 24px;
}
.btn-primary-lg {
    display: inline-block;
    padding: 14px 28px;
    background: var(--color-accent);
    color: #1f2937;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s;
}
.btn-primary-lg:hover { background: var(--color-accent-dark); transform: translateY(-1px); }
.btn-ghost-lg {
    display: inline-block;
    padding: 14px 28px;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s;
}
.btn-ghost-lg:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.hero-trust {
    font-size: 13px;
    color: rgba(0,255,255,0.85);
}
.hero-visual { text-align: center; }
.hero-visual img {
    max-width: 320px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3));
}

/* ===== 섹션 공통 ===== */
.section-title {
    text-align: center;
    font-size: 30px;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 12px;
    letter-spacing: -0.3px;
}
.section-sub {
    text-align: center;
    font-size: 15px;
    color: var(--color-text-sub);
    margin: 0 0 32px;
}

/* ===== 핵심 장점 (흰 배경) ===== */
.features {
    padding: 64px 0;
    background: #fff;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.feature {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.2s ease;
}
.feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(30,58,138,0.10);
    border-color: transparent;
}
.feature-icon {
    font-size: 36px;
    margin-bottom: 14px;
}
.feature h3 {
    margin: 0 0 8px;
    font-size: 17px;
    color: var(--color-primary);
    font-weight: 700;
}
.feature p {
    margin: 0;
    color: var(--color-text-sub);
    font-size: 14px;
    line-height: 1.65;
}

/* ===== 요금제 미리보기 (흰 배경 + 위쪽 얇은 구분선) ===== */
.plans-preview {
    padding: 64px 0;
    background: #fff;
    border-top: 1px solid #f1f3f6;
}
.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.plan-card {
    position: relative;
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 12px;
    padding: 36px 28px;
    transition: all 0.2s ease;
}
.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(30,58,138,0.12);
}
.plan-card-featured {
    border: 2px solid var(--color-accent);
    box-shadow: 0 10px 28px rgba(245,158,11,0.15);
}
.plan-tag {
    position: absolute;
    top: -10px;
    left: 28px;
    background: var(--color-primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.plan-card-featured .plan-tag {
    background: var(--color-accent);
    color: #1f2937;
}
.plan-card h3 {
    margin: 8px 0 8px;
    font-size: 22px;
    color: var(--color-primary);
    font-weight: 700;
}
.plan-card > p {
    color: var(--color-text-sub);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 18px;
    min-height: 44px;
}
.plan-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
}
.plan-card ul li {
    padding: 8px 0;
    color: var(--color-text);
    font-size: 14px;
    border-bottom: 1px dashed #eef0f4;
}
.plan-card ul li:last-child { border-bottom: none; }
.plan-link {
    display: inline-block;
    color: var(--color-blue);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}
.plan-link:hover { color: var(--color-primary); }

/* ===== 사용 방법 (흰 배경 + 위쪽 얇은 구분선) ===== */
.howto {
    padding: 64px 0;
    background: #fff;
    border-top: 1px solid #f1f3f6;
}
.howto-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.howto-step {
    flex: 1;
    min-width: 220px;
    max-width: 280px;
    text-align: center;
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 12px;
    padding: 32px 22px;
    transition: all 0.2s ease;
}
.howto-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(30,58,138,0.10);
    border-color: transparent;
}
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--color-primary);
    color: var(--color-accent);
    border-radius: 50%;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 14px;
}
.howto-step h3 {
    margin: 0 0 8px;
    color: var(--color-primary);
    font-size: 17px;
    font-weight: 700;
}
.howto-step p {
    margin: 0;
    color: var(--color-text-sub);
    font-size: 14px;
    line-height: 1.6;
}
.howto-arrow {
    font-size: 24px;
    color: #cbd5e1;
}

/* ===== CTA (네이비 포인트 2) ===== */
.cta {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1e293b 100%);
    color: #fff;
    text-align: center;
    padding: 60px 20px;
}
.cta h2 {
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
}
.cta p {
    margin: 0 0 28px;
    color: rgba(255,255,255,0.88);
    font-size: 16px;
}
/* CTA 버튼 그룹 */
.cta-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.cta-actions .btn-primary-lg,
.cta-actions .btn-ghost-lg {
    min-width: 200px;
}

/* ===== 반응형 ===== */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero h1 { font-size: 32px; }
    .hero-actions { justify-content: center; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .plans-grid { grid-template-columns: 1fr; }
    .howto-arrow { display: none; }
    .features, .plans-preview, .howto { padding: 60px 0; }
}
@media (max-width: 480px) {
    .hero { padding: 60px 16px; }
    .hero h1 { font-size: 26px; }
    .features-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 24px; }
    .section-sub { margin-bottom: 32px; }
    .cta { padding: 60px 16px; }
    .cta h2 { font-size: 22px; }
    .cta-actions { flex-direction: column; gap: 12px; padding: 0 24px; }
    .cta-actions .btn-primary-lg,
    .cta-actions .btn-ghost-lg { width: 100%; min-width: 0; }
}
/* 모바일 햄버거 메뉴: 닫힌 상태 흰 띠 완전 제거 */
@media (max-width: 768px) {
    nav.site-nav {
        border-top: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
    nav.site-nav.open {
        border-top: 1px solid #e5e7eb !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
        padding: 12px 0 !important;
    }
}
/* 모바일에서도 로고 텍스트 표시 */
@media (max-width: 480px) {
    .site-header .logo-text { display: inline !important; }
}
/* ===== 자료실 (공지 + KB) ===== */
.resources {
    padding: 64px 0;
    background: #fff;
    border-top: 1px solid #f1f3f6;
}
.resources-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.resource-card {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 10px;
    padding: 24px 28px;
    transition: box-shadow 0.2s;
}
.resource-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.resource-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f3f6;
}
.resource-head h3 {
    margin: 0;
    font-size: 17px;
    color: var(--color-primary);
}
.resource-more {
    font-size: 13px;
    color: #6b7280;
    text-decoration: none;
}
.resource-more:hover {
    color: var(--color-primary);
}
.resource-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.resource-list li {
    border-bottom: 1px solid #f5f6f8;
}
.resource-list li:last-child {
    border-bottom: none;
}
.resource-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
}
.resource-list li a:hover .resource-title {
    color: var(--color-primary);
}
.resource-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.resource-date,
.resource-meta {
    flex-shrink: 0;
    font-size: 12px;
    color: #9ca3af;
}
.resource-empty {
    padding: 24px 0;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

@media (max-width: 768px) {
    .resources-grid {
        grid-template-columns: 1fr;
    }
}
