/* ============================================================
   PassMate 홈페이지 — 공통 스타일
   - Bootstrap 5 위에 PassMate 디자인 시스템 적용
   - 컬러: 그린 톤 (#157347 / #0E5232 / #28a86b)
   - 폰트: 시스템 폰트 (Malgun Gothic, Apple SD Gothic Neo 등)
   ============================================================ */

:root {
    --pm-green:        #157347;
    --pm-green-dk:     #0E5232;
    --pm-green-lt:     #28a86b;
    --pm-green-soft:   #b8e5cc;
    --pm-green-bg:     #e3f5e9;
    --pm-info-bg:      #ebf4ff;
    --pm-warn-bg:      #fff8dc;
    --pm-critical-bg:  #fff1e0;
    --pm-grey-dk:      #343A40;
    --pm-grey-md:      #6C757D;
    --pm-grey-lt:      #CED4DA;
    --pm-bg-soft:      #F8F9FA;
    --pm-radius:       12px;
    --pm-radius-lg:    20px;
    --pm-shadow:       0 4px 16px rgba(0,0,0,0.06);
    --pm-shadow-lg:    0 8px 32px rgba(0,0,0,0.1);
}

* { box-sizing: border-box; }

html, body {
    font-family: "Malgun Gothic", "Apple SD Gothic Neo", "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--pm-grey-dk);
    line-height: 1.6;
    scroll-behavior: smooth;
}

body { padding-top: 72px; }  /* fixed navbar 공간 */

/* ========== 네비게이션 ========== */
.pm-navbar {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--pm-green-soft);
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    transition: all 0.25s ease;
}
.pm-navbar .navbar-brand {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--pm-green-dk) !important;
    letter-spacing: -0.5px;
}
.pm-navbar .navbar-brand .pm-logo-icon {
    font-size: 1.5rem;
    margin-right: 0.4rem;
    color: var(--pm-green);
}
.pm-navbar .nav-link {
    font-weight: 600;
    color: var(--pm-grey-dk) !important;
    padding: 0.5rem 1rem !important;
    margin: 0 0.1rem;
    border-radius: 6px;
    transition: all 0.2s;
}
.pm-navbar .nav-link:hover {
    color: var(--pm-green) !important;
    background-color: var(--pm-green-bg);
}
.pm-navbar .nav-link.active {
    color: var(--pm-green) !important;
    background-color: var(--pm-green-bg);
}
.pm-navbar .btn-pm-cta {
    background: var(--pm-green);
    color: #fff !important;
    font-weight: 700;
    padding: 0.5rem 1.3rem;
    border-radius: 6px;
    border: none;
    transition: all 0.2s;
}
.pm-navbar .btn-pm-cta:hover {
    background: var(--pm-green-dk);
    transform: translateY(-1px);
}

/* ========== Hero 섹션 ========== */
.pm-hero {
    background: linear-gradient(135deg, var(--pm-green-dk) 0%, var(--pm-green) 100%);
    color: #fff;
    padding: 5rem 0 6rem;
    position: relative;
    overflow: hidden;
}
.pm-hero::before {
    content: '';
    position: absolute;
    top: -50%; right: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(184,229,204,0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.pm-hero .badge-pm {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(255,255,255,0.25);
}
.pm-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.2rem;
    letter-spacing: -1px;
}
.pm-hero .lead-text {
    font-size: 1.25rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2rem;
    max-width: 600px;
}
.pm-hero .btn-hero-primary {
    background: #fff;
    color: var(--pm-green-dk);
    font-weight: 700;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    border: none;
    margin-right: 0.5rem;
    transition: all 0.25s;
}
.pm-hero .btn-hero-primary:hover {
    background: var(--pm-green-bg);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.pm-hero .btn-hero-secondary {
    background: transparent;
    color: #fff;
    font-weight: 600;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    border: 2px solid rgba(255,255,255,0.5);
    transition: all 0.25s;
}
.pm-hero .btn-hero-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

/* ========== 페이지 상단 (서브 페이지용) ========== */
.pm-page-header {
    background: linear-gradient(135deg, var(--pm-green-dk) 0%, var(--pm-green) 100%);
    color: #fff;
    padding: 4rem 0 3.5rem;
}
.pm-page-header .breadcrumb {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 0.8rem;
}
.pm-page-header .breadcrumb a { color: rgba(255,255,255,0.85); text-decoration: none; }
.pm-page-header .breadcrumb a:hover { color: #fff; }
.pm-page-header h1 {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}
.pm-page-header p { color: rgba(255,255,255,0.85); font-size: 1.15rem; margin-bottom: 0; }

/* ========== 섹션 공통 ========== */
.pm-section { padding: 5rem 0; }
.pm-section.alt { background: var(--pm-bg-soft); }
.pm-section.dark { background: var(--pm-green-dk); color: #fff; }
.pm-section-eyebrow {
    color: var(--pm-green);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}
.pm-section-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--pm-green-dk);
    margin-bottom: 0.8rem;
    letter-spacing: -0.5px;
}
.pm-section.dark .pm-section-title { color: #fff; }
.pm-section-subtitle {
    color: var(--pm-grey-md);
    font-size: 1.1rem;
    max-width: 700px;
    margin-bottom: 3rem;
}
.pm-section.dark .pm-section-subtitle { color: rgba(255,255,255,0.8); }

/* ========== 카드 (공통) ========== */
.pm-card {
    background: #fff;
    border-radius: var(--pm-radius);
    padding: 2rem;
    box-shadow: var(--pm-shadow);
    border: 1px solid #f0f0f0;
    height: 100%;
    transition: all 0.25s;
}
.pm-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--pm-shadow-lg);
    border-color: var(--pm-green-soft);
}
.pm-card-icon {
    width: 56px; height: 56px;
    background: var(--pm-green-bg);
    color: var(--pm-green);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
}
.pm-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--pm-green-dk);
    margin-bottom: 0.7rem;
}
.pm-card p {
    color: var(--pm-grey-md);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 0;
}

/* ========== Stat 카드 (큰 숫자) ========== */
.pm-stat {
    background: #fff;
    border-radius: var(--pm-radius);
    padding: 1.8rem;
    box-shadow: var(--pm-shadow);
    border: 1px solid #f0f0f0;
    border-left: 4px solid var(--pm-green);
    height: 100%;
}
.pm-stat .stat-num {
    font-size: 3rem;
    font-weight: 800;
    color: var(--pm-green);
    line-height: 1;
    margin-bottom: 0.4rem;
    letter-spacing: -1px;
}
.pm-stat .stat-label {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--pm-green-dk);
    margin-bottom: 0.5rem;
}
.pm-stat .stat-desc {
    color: var(--pm-grey-md);
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 0;
}

/* ========== Feature 박스 (이미지 + 텍스트) ========== */
.pm-feature-row {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}
.pm-feature-row.reverse { flex-direction: row-reverse; }
.pm-feature-row .feature-img-wrap {
    flex: 1 1 50%;
    min-width: 300px;
}
.pm-feature-row .feature-img-wrap img {
    width: 100%;
    border-radius: var(--pm-radius);
    box-shadow: var(--pm-shadow-lg);
    border: 1px solid #eee;
}
.pm-feature-row .feature-text {
    flex: 1 1 40%;
    min-width: 280px;
}
.pm-feature-row .feature-text .feature-eyebrow {
    color: var(--pm-green);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.7rem;
}
.pm-feature-row .feature-text h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--pm-green-dk);
    margin-bottom: 1rem;
    line-height: 1.3;
}
.pm-feature-row .feature-text p {
    color: var(--pm-grey-md);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
}
.pm-feature-row .feature-text ul {
    list-style: none;
    padding-left: 0;
}
.pm-feature-row .feature-text ul li {
    padding: 0.5rem 0 0.5rem 1.6rem;
    position: relative;
    color: var(--pm-grey-dk);
    font-size: 0.95rem;
}
.pm-feature-row .feature-text ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.5rem;
    color: var(--pm-green);
    font-weight: 800;
    font-size: 1rem;
}

/* ========== 스크린샷 갤러리 ========== */
.pm-screen-card {
    background: #fff;
    border-radius: var(--pm-radius);
    overflow: hidden;
    box-shadow: var(--pm-shadow);
    border: 1px solid #f0f0f0;
    transition: all 0.25s;
    height: 100%;
}
.pm-screen-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--pm-shadow-lg);
}
.pm-screen-card .screen-img-wrap {
    background: var(--pm-bg-soft);
    overflow: hidden;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pm-screen-card .screen-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.4s;
}
.pm-screen-card:hover .screen-img-wrap img { transform: scale(1.03); }
.pm-screen-card .screen-body { padding: 1.4rem 1.6rem; }
.pm-screen-card .screen-eyebrow {
    color: var(--pm-green);
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}
.pm-screen-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--pm-green-dk);
    margin-bottom: 0.4rem;
}
.pm-screen-card p {
    color: var(--pm-grey-md);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ========== 단계 박스 (스텝박스) ========== */
.pm-step-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    background: #fff;
    border: 1px solid #eee;
    border-left: 4px solid var(--pm-green);
    border-radius: 8px;
    margin-bottom: 0.8rem;
}
.pm-step-row .step-num {
    flex: 0 0 40px;
    width: 40px; height: 40px;
    background: var(--pm-green);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
}
.pm-step-row .step-body h5 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--pm-green-dk);
    margin-bottom: 0.3rem;
}
.pm-step-row .step-body p {
    color: var(--pm-grey-md);
    font-size: 0.92rem;
    margin-bottom: 0;
}

/* ========== 비교 카드 (SaaS vs On-premise) ========== */
.pm-compare {
    background: #fff;
    border-radius: var(--pm-radius);
    padding: 2.5rem 2rem;
    box-shadow: var(--pm-shadow);
    border: 2px solid #f0f0f0;
    height: 100%;
    transition: all 0.25s;
}
.pm-compare.highlight {
    border-color: var(--pm-green);
    box-shadow: 0 12px 40px rgba(21,115,71,0.15);
}
.pm-compare .compare-tag {
    display: inline-block;
    background: var(--pm-green-bg);
    color: var(--pm-green);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}
.pm-compare h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--pm-green-dk);
    margin-bottom: 0.8rem;
}
.pm-compare .compare-sub {
    color: var(--pm-grey-md);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}
.pm-compare ul { list-style: none; padding-left: 0; }
.pm-compare ul li {
    padding: 0.6rem 0 0.6rem 1.8rem;
    position: relative;
    color: var(--pm-grey-dk);
    font-size: 0.95rem;
    border-bottom: 1px solid #f5f5f5;
}
.pm-compare ul li:last-child { border-bottom: none; }
.pm-compare ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 20px; height: 20px;
    background: var(--pm-green-bg);
    color: var(--pm-green);
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    font-size: 0.7rem;
    font-weight: 800;
}

/* ========== CTA 섹션 ========== */
.pm-cta-band {
    background: linear-gradient(135deg, var(--pm-green) 0%, var(--pm-green-dk) 100%);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}
.pm-cta-band h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}
.pm-cta-band p {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    margin-bottom: 1.8rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.pm-cta-band .btn-cta {
    background: #fff;
    color: var(--pm-green-dk);
    font-weight: 700;
    padding: 0.85rem 2.2rem;
    border-radius: 8px;
    border: none;
    transition: all 0.25s;
}
.pm-cta-band .btn-cta:hover {
    background: var(--pm-green-bg);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* ========== Footer ========== */
.pm-footer {
    background: #1a2a35;
    color: rgba(255,255,255,0.7);
    padding: 3.5rem 0 1.5rem;
}
.pm-footer h5 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    letter-spacing: 0.5px;
}
.pm-footer .footer-brand {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    display: block;
}
.pm-footer .footer-brand .pm-logo-icon { color: var(--pm-green-lt); margin-right: 0.4rem; }
.pm-footer p, .pm-footer li { font-size: 0.9rem; line-height: 1.8; }
.pm-footer ul { list-style: none; padding-left: 0; }
.pm-footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}
.pm-footer a:hover { color: var(--pm-green-lt); }
.pm-footer .footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    text-align: center;
}

/* ========== 폼 ========== */
.pm-form-card {
    background: #fff;
    border-radius: var(--pm-radius);
    padding: 2.5rem;
    box-shadow: var(--pm-shadow-lg);
    border: 1px solid #f0f0f0;
}
.pm-form-card .form-label {
    font-weight: 600;
    color: var(--pm-green-dk);
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}
.pm-form-card .form-control,
.pm-form-card .form-select {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s;
}
.pm-form-card .form-control:focus,
.pm-form-card .form-select:focus {
    border-color: var(--pm-green);
    box-shadow: 0 0 0 3px rgba(40,168,107,0.15);
}
.pm-form-card .btn-submit {
    background: var(--pm-green);
    color: #fff;
    font-weight: 700;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    border: none;
    width: 100%;
    transition: all 0.2s;
}
.pm-form-card .btn-submit:hover {
    background: var(--pm-green-dk);
    transform: translateY(-1px);
}

/* ========== 보안 카드 (KISA 대응) ========== */
.pm-sec-card {
    background: #fff;
    border-radius: var(--pm-radius);
    padding: 1.8rem;
    box-shadow: var(--pm-shadow);
    border: 1px solid #f0f0f0;
    border-top: 4px solid var(--pm-green);
    height: 100%;
    transition: all 0.25s;
}
.pm-sec-card:hover { transform: translateY(-3px); box-shadow: var(--pm-shadow-lg); }
.pm-sec-card .sec-icon {
    color: var(--pm-green);
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}
.pm-sec-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--pm-green-dk);
    margin-bottom: 0.6rem;
}
.pm-sec-card p {
    color: var(--pm-grey-md);
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 0;
}

/* ========== 반응형 ========== */
@media (max-width: 991px) {
    .pm-hero { padding: 4rem 0 5rem; }
    .pm-hero h1 { font-size: 2.5rem; }
    .pm-hero .lead-text { font-size: 1.1rem; }
    .pm-section { padding: 4rem 0; }
    .pm-section-title { font-size: 1.9rem; }
    .pm-feature-row { gap: 2rem; }
    .pm-feature-row .feature-text h3 { font-size: 1.5rem; }
    .pm-page-header { padding: 3rem 0 2.5rem; }
    .pm-page-header h1 { font-size: 2rem; }
}
@media (max-width: 575px) {
    body { padding-top: 64px; }
    .pm-hero h1 { font-size: 2rem; }
    .pm-hero .btn-hero-primary,
    .pm-hero .btn-hero-secondary { display: block; width: 100%; margin: 0.4rem 0; }
}

/* ========== 이미지 라이트박스 (간단) ========== */
.pm-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 2rem;
    cursor: zoom-out;
}
.pm-lightbox.show { display: flex; }
.pm-lightbox img {
    max-width: 95vw;
    max-height: 95vh;
    border-radius: 8px;
    box-shadow: 0 12px 60px rgba(0,0,0,0.5);
}
