/* =====================================================================
   MDSAFETEC 랜딩 페이지 전용 스타일 (안전관리 파랑+녹색 색감 적용)
   - 팔레트: SAFETY BLUE(#0F4C81) 메인 / SAFETY GREEN(#2E9E5B) 보조강조 / BLACK(#333333)
   - 정적 파일로 분리하여 색감/간격 조정 시 재빌드 없이 교체 가능
   - 모든 커스텀 클래스는 .md- 접두사로 Vuexy 템플릿 클래스와 충돌 방지
   - NOTE: 기존 --md-ginger* 변수명은 참조 호환을 위해 유지하되, 값만 파랑으로 재정의함
   ===================================================================== */

/* 한글 가독성을 위한 Pretendard 웹폰트 (실패 시 시스템 폰트로 폴백) */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

:root {
    /* ── 핵심 색상 (변수명은 호환 유지, 값은 파랑으로) ── */
    --md-ginger: #0f4c81;      /* 메인 포인트 = 깊은 파랑 */
    --md-ginger-600: #0b3a64;  /* 진한 파랑 (호버 등) */
    --md-ginger-300: #3d6fa0;  /* 밝은 파랑 (그라데이션) */
    --md-green: #2e9e5b;       /* 보조 강조 = 안전 녹색 */
    --md-green-600: #24814a;   /* 진한 녹색 */
    --md-black: #333333;       /* 본문/딥 */
    --md-brown: #0e3a5c;       /* 딥 그라데이션 파트너 (깊은 파랑) */
    --md-ink: #0b2740;         /* 히어로 배경용 더 깊은 네이비 */

    /* ── 보조 토큰 ── */
    --md-bg-soft: #f2f7fb;     /* 파랑 5% 느낌의 아주 옅은 배경 */
    --md-line: #e3ebf2;        /* 옅은 경계선 */
    --md-text-muted: #5c6570;  /* 보조 텍스트 */
    --md-radius: 18px;         /* 카드 라운드 */
    --md-shadow: 0 18px 40px -18px rgba(15, 76, 129, .35); /* 파랑 톤 그림자 */
    --md-grad: linear-gradient(135deg, var(--md-ginger) 0%, var(--md-green) 100%); /* 파랑→녹색 */
}

/* nav 앵커 이동 시 고정 네비바에 섹션 상단이 가리지 않도록 여백 */
.md-landing section[id] { scroll-margin-top: 80px; }
html { scroll-behavior: smooth; }

/* 랜딩 전역 폰트 (Pretendard 우선) */
.md-landing {
    font-family: "Pretendard", "Pretendard Variable", -apple-system, "Apple SD Gothic Neo",
        "Malgun Gothic", "Public Sans", sans-serif;
    color: var(--md-black);
    overflow-x: hidden;
}

.md-landing .md-accent { color: var(--md-ginger); }

/* 공통 섹션 여백 */
.md-section { padding: clamp(64px, 9vw, 120px) 0; }

/* 섹션 상단 라벨(뱃지) */
.md-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--md-ginger);
    background: var(--md-bg-soft);
    border: 1px solid #cfe0f0;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}

/* 섹션 제목/설명 */
.md-section-title {
    font-size: clamp(24px, 3.4vw, 38px);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -.02em;
    margin: 0 0 12px;
}
.md-section-desc {
    color: var(--md-text-muted);
    font-size: clamp(15px, 1.4vw, 17px);
    line-height: 1.7;
}

/* =========================================================
   HERO
   ========================================================= */
.md-hero {
    position: relative;
    background: radial-gradient(1200px 600px at 80% -10%, rgba(15, 76, 129, .28), transparent 60%),
        linear-gradient(160deg, var(--md-ink) 0%, var(--md-brown) 100%);
    color: #fff;
    padding: clamp(120px, 16vw, 200px) 0 clamp(120px, 14vw, 180px);
    isolation: isolate;
}
/* 히어로 하단 곡선 (다음 섹션과 부드럽게 연결) */
.md-hero::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 90px;
    background: #fff;
    clip-path: ellipse(75% 100% at 50% 100%);
    z-index: 2;
}
/* 은은하게 떠다니는 배경 광원 */
.md-hero-glow {
    position: absolute;
    width: 420px; height: 420px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .5;
    z-index: -1;
}
.md-hero-glow.one { background: var(--md-ginger); top: 10%; right: 6%; }
.md-hero-glow.two { background: var(--md-brown); bottom: 0; left: -5%; opacity: .6; }

.md-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #cfe0f0;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    padding: 7px 16px;
    border-radius: 999px;
    margin-bottom: 24px;
    backdrop-filter: blur(6px);
}
.md-hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--md-ginger); }

.md-hero-title {
    font-size: clamp(34px, 5.4vw, 60px);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -.03em;
    margin: 0 0 18px;
}
.md-hero-title .hl {
    background: linear-gradient(120deg, var(--md-ginger), var(--md-ginger-300));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.md-hero-sub {
    font-size: clamp(15px, 1.6vw, 19px);
    line-height: 1.7;
    color: rgba(255, 255, 255, .82);
    margin: 0 0 32px;
    max-width: 540px;
}

/* 히어로 버튼 */
.md-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 16px;
    padding: 14px 28px;
    border-radius: 12px;
    border: 2px solid transparent;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
    cursor: pointer;
}
.md-btn-primary {
    background: var(--md-ginger);
    color: #fff;
    box-shadow: 0 12px 28px -10px rgba(15, 76, 129, .7);
}
.md-btn-primary:hover { background: var(--md-ginger-600); color: #fff; transform: translateY(-2px); }
.md-btn-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, .35);
}
.md-btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: #fff; }
.md-btn-lg { padding: 16px 34px; font-size: 17px; }

/* 히어로 우측 미리보기(글래스 카드 목업, 이미지 없이 CSS로 구성) */
.md-hero-preview {
    position: relative;
    border-radius: 22px;
    padding: 22px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .6);
    backdrop-filter: blur(10px);
}
.md-hero-preview .pv-head {
    display: flex; align-items: center; gap: 8px; margin-bottom: 16px;
}
.md-hero-preview .pv-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.4); }
.md-stat-card {
    background: #fff;
    color: var(--md-black);
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .4);
}
.md-stat-card .label { font-size: 12.5px; color: var(--md-text-muted); margin: 0 0 4px; }
.md-stat-card .value { font-size: 24px; font-weight: 800; margin: 0; color: var(--md-brown); }
.md-stat-card .value small { font-size: 13px; font-weight: 600; color: var(--md-ginger); }
.md-progress { height: 8px; border-radius: 999px; background: var(--md-line); overflow: hidden; margin-top: 10px; }
.md-progress > span { display: block; height: 100%; border-radius: 999px; background: var(--md-grad); }

/* 떠다니는 작은 뱃지 */
.md-float-chip {
    position: absolute;
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff; color: var(--md-black);
    font-weight: 700; font-size: 13px;
    padding: 10px 14px; border-radius: 12px;
    box-shadow: var(--md-shadow);
}
.md-float-chip i { color: var(--md-ginger); font-size: 18px; }
.md-float-chip.tl { top: -16px; left: -14px; }
.md-float-chip.br { bottom: -16px; right: -10px; }

/* =========================================================
   STATS BAR (신뢰 지표)
   ========================================================= */
.md-stats {
    background: #fff;
    margin-top: -1px;
    padding: clamp(28px, 4vw, 44px) 0;
    border-bottom: 1px solid var(--md-line);
}
.md-stat {
    text-align: center;
    padding: 12px 8px;
}
.md-stat .num {
    font-size: clamp(28px, 3.6vw, 42px);
    font-weight: 900;
    letter-spacing: -.02em;
    background: var(--md-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}
.md-stat .cap { margin-top: 8px; color: var(--md-text-muted); font-size: 14px; font-weight: 500; }

/* =========================================================
   FEATURES (기능)
   ========================================================= */
.md-features { background: var(--md-bg-soft); }
.md-feature-card {
    height: 100%;
    background: #fff;
    border: 1px solid var(--md-line);
    border-radius: var(--md-radius);
    padding: 30px 26px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.md-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--md-shadow);
    border-color: #cfe0f0;
}
.md-feature-ico {
    width: 60px; height: 60px;
    display: grid; place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #eef4fa, #dce9f5);
    color: var(--md-ginger);
    margin-bottom: 18px;
}
.md-feature-ico svg { width: 34px; height: 34px; }
.md-feature-card h5 { font-weight: 800; margin: 0 0 8px; font-size: 18px; }
.md-feature-card p { color: var(--md-text-muted); margin: 0; font-size: 14.5px; line-height: 1.65; }

/* =========================================================
   STEPS (이용 절차)
   ========================================================= */
.md-steps { background: #fff; }
.md-step {
    position: relative;
    text-align: center;
    padding: 0 16px;
}
.md-step .circle {
    width: 64px; height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 22px; font-weight: 900; color: #fff;
    background: var(--md-grad);
    box-shadow: 0 14px 28px -12px rgba(15, 76, 129, .6);
}
.md-step h5 { font-weight: 800; margin: 0 0 8px; }
.md-step p { color: var(--md-text-muted); font-size: 14.5px; margin: 0; }
/* 단계 사이 점선 연결 (데스크탑) */
.md-step::after {
    content: "";
    position: absolute;
    top: 32px; right: -50%;
    width: 100%; height: 2px;
    background-image: linear-gradient(90deg, #ffcdb8 50%, transparent 0);
    background-size: 14px 2px;
    z-index: 0;
}
.md-step:last-child::after { display: none; }
@media (max-width: 767.98px) { .md-step::after { display: none; } }

/* =========================================================
   FAQ (자주 묻는 질문)
   ========================================================= */
.md-faq { background: var(--md-bg-soft); }
.md-faq .accordion-item {
    border: 1px solid var(--md-line);
    border-radius: 14px !important;
    margin-bottom: 12px;
    overflow: hidden;
    background: #fff;
}
.md-faq .accordion-button {
    font-weight: 700;
    color: var(--md-black);
    background: #fff;
    padding: 20px 22px;
    box-shadow: none;
}
.md-faq .accordion-button:not(.collapsed) {
    color: var(--md-ginger);
    background: var(--md-bg-soft);
}
.md-faq .accordion-button:focus { box-shadow: none; border: none; }
.md-faq .accordion-button::after {
    /* 진저색 화살표 */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ff6633' stroke-width='3'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3e%3c/svg%3e");
}
.md-faq .accordion-body { color: var(--md-text-muted); padding: 0 22px 20px; line-height: 1.7; }

/* =========================================================
   CTA 밴드
   ========================================================= */
.md-cta-band {
    background: var(--md-grad);
    color: #fff;
    border-radius: 26px;
    padding: clamp(36px, 6vw, 64px);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px -28px rgba(102, 51, 51, .6);
}
.md-cta-band::before {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(600px 200px at 20% 0%, rgba(255,255,255,.25), transparent 70%);
}
.md-cta-band h3 { font-weight: 900; font-size: clamp(24px, 3.4vw, 36px); margin: 0 0 10px; position: relative; }
.md-cta-band p { color: rgba(255,255,255,.9); margin: 0 0 26px; position: relative; }
.md-cta-band .md-btn-primary { background: #fff; color: var(--md-brown); }
.md-cta-band .md-btn-primary:hover { background: #fff; color: var(--md-ginger-600); }

/* =========================================================
   CONTACT (문의)
   ========================================================= */
.md-contact { background: #fff; }
.md-contact-info {
    background: var(--md-grad);
    color: #fff;
    border-radius: var(--md-radius);
    padding: 34px 30px;
    height: 100%;
}
.md-contact-info h4 { font-weight: 800; margin: 0 0 10px; }
.md-contact-info p { color: rgba(255,255,255,.85); line-height: 1.7; }
.md-contact-item { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.md-contact-item .ico {
    width: 44px; height: 44px; border-radius: 12px;
    display: grid; place-items: center;
    background: rgba(255, 255, 255, .15);
    font-size: 20px;
}
.md-contact-item .t { font-size: 12.5px; color: rgba(255,255,255,.8); margin: 0; }
.md-contact-item .v { font-weight: 700; margin: 0; }
.md-contact-card {
    border: 1px solid var(--md-line);
    border-radius: var(--md-radius);
    padding: 32px;
    height: 100%;
    box-shadow: var(--md-shadow);
}
.md-contact-card h4 { font-weight: 800; }
.md-form-label { font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--md-black); }
.md-input {
    width: 100%;
    border: 1px solid var(--md-line);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 15px;
    background: #fafafa;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.md-input:focus {
    outline: none;
    border-color: var(--md-ginger);
    box-shadow: 0 0 0 3px rgba(15, 76, 129, .15);
    background: #fff;
}

/* =========================================================
   레이아웃(공용 _Layout) 버튼 색상 보정 - 랜딩 한정
   상단 네비 "로그인" / 푸터 "뉴스 받기" 버튼이 기존 테마 기본색이라
   CI 진저색과 어울리지 않음 -> 진저로 통일
   ========================================================= */
.layout-navbar .btn-primary,
.landing-footer .btn-primary {
    background-color: var(--md-ginger) !important;
    border-color: var(--md-ginger) !important;
    color: #fff !important;
    box-shadow: none !important;
}
.layout-navbar .btn-primary:hover,
.landing-footer .btn-primary:hover {
    background-color: var(--md-ginger-600) !important;
    border-color: var(--md-ginger-600) !important;
    color: #fff !important;
}
/* 네비 메뉴 링크 hover 시에도 진저 포인트 */
.layout-navbar .nav-link:hover { color: var(--md-ginger) !important; }
