@charset "utf-8";

/* =========================================================
   Layout - 공통 (상단 / 푸터)
   Figma: B안_php보안 랜딩 페이지_2 > 메인비주얼 > Header (1395:4)
   ========================================================= */

:root {
    --font-base: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;

    --color-primary: #282f8a;
    --color-ink: #0b1220;
    --color-black: #000;
    --color-white: #fff;
    --color-line: #e3e6eb;

    --header-h: 80px;
    --container-w: 1440px;
    --container-px: 100px;
}

html { scroll-padding-top: var(--header-h); }
body {
    margin: 0;
    font-family: var(--font-base);
    color: var(--color-ink);
    -webkit-font-smoothing: antialiased;
    word-break: keep-all;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 1000;
    padding: 8px 16px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 6px;
    text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-line);
    transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 16px rgba(11, 18, 32, .06); }

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-w);
    height: var(--header-h);
    margin: 0 auto;
    padding: 0 var(--container-px);
}

/* 로고 */
.site-logo { margin: 0; flex: none; }
.site-logo a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-ink);
    text-decoration: none;
}
.site-logo__text {
    font-size: 27px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}
.site-logo__badge {
    display: inline-flex;
    padding: 4px 7px;
    border-radius: 6px;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.28px;
}

/* GNB */
.gnb { display: flex; align-items: center; }
.gnb__list {
    display: flex;
    gap: 36px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.gnb__list a {
    position: relative;
    display: block;
    color: var(--color-black);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s ease;
}
.gnb__list a:hover,
.gnb__list a.is-active { color: var(--color-primary); }

/* CTA 버튼 */
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: none;
    padding: 12px 18px 12px 20px;
    border-radius: 10px;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .2s ease;
}
.btn-cta:hover { background: #1f2570; color: var(--color-white); }
.btn-cta__arrow { font-size: 14px; transition: transform .2s ease; }
.btn-cta:hover .btn-cta__arrow { transform: translateX(3px); }
.btn-cta--gnb { display: none; }

.site-header a:focus-visible,
.gnb-toggle:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }

/* 모바일 메뉴 토글 */
.gnb-toggle {
    display: none;
    position: relative;
    width: 40px;
    height: 40px;
    margin-right: -8px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}
.gnb-toggle__bar,
.gnb-toggle__bar::before,
.gnb-toggle__bar::after {
    position: absolute;
    left: 9px;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--color-ink);
    transition: transform .2s ease, background-color .2s ease;
}
.gnb-toggle__bar { top: 19px; }
.gnb-toggle__bar::before,
.gnb-toggle__bar::after { content: ""; left: 0; }
.gnb-toggle__bar::before { top: -7px; }
.gnb-toggle__bar::after { top: 7px; }
.gnb-toggle[aria-expanded="true"] .gnb-toggle__bar { background: transparent; }
.gnb-toggle[aria-expanded="true"] .gnb-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
.gnb-toggle[aria-expanded="true"] .gnb-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 1280px) {
    :root { --container-px: 40px; }
    .gnb__list { gap: 28px; }
    .site-logo__text { font-size: 24px; }
}

@media (max-width: 1024px) {
    :root { --header-h: 64px; --container-px: 20px; }
    .site-logo__text { font-size: 20px; }
    .site-logo__badge { font-size: 12px; padding: 3px 6px; }

    .btn-cta--header { display: none; }
    .gnb-toggle { display: block; }

    .gnb {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 8px var(--container-px) 24px;
        background: var(--color-white);
        border-bottom: 1px solid var(--color-line);
        box-shadow: 0 12px 24px rgba(11, 18, 32, .08);
        visibility: hidden;
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
    }
    .site-header.is-open .gnb { visibility: visible; opacity: 1; transform: none; }

    .gnb__list { flex-direction: column; gap: 0; }
    .gnb__list a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--color-line); }
    .btn-cta--gnb { display: inline-flex; justify-content: center; }
}

@media (max-width: 400px) {
    .site-logo a { gap: 4px; }
    .site-logo__text { font-size: 17px; }
}

/* ---------------------------------------------------------
   Footer  (Figma: 1566:392)
   --------------------------------------------------------- */
.site-footer { background: #e2eafb; }
.site-footer__inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 48px 20px 52px;
}
.site-footer__logo {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: var(--color-ink);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
}
.site-footer__badge {
    padding: 3px 7px;
    border-radius: 6px;
    background: var(--color-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}
.site-footer__company {
    margin: 19px 0 0;
    color: #8a93a8;
    font-size: 13px;
    font-style: normal;
    line-height: 1.6;
}
.site-footer__company span + span::before { content: "|"; margin: 0 8px; color: #b9c2d6; }
.site-footer__company br + span::before { content: none; }
.site-footer__company b { font-weight: 700; }
.site-footer__company a { color: inherit; text-decoration: none; }
.site-footer__company a:hover { text-decoration: underline; }
.site-footer__side {
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: flex-end;
    gap: 45px;
    padding-top: 2px;
}
.site-footer__link {
    padding: 0;
    border: 0;
    background: none;
    color: var(--color-ink);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}
.site-footer__link:hover { text-decoration: underline; }
.site-footer__copy { margin: 0; color: #a7afc2; font-size: 12px; line-height: 1.2; }

/* ---------------------------------------------------------
   Modal (레이어 팝업)
   --------------------------------------------------------- */
html.is-modal-open { overflow: hidden; }
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.modal[hidden] { display: none; }
.modal__dim {
    position: absolute;
    inset: 0;
    background: rgba(11, 18, 32, .55);
    animation: modalFade .25s ease;
}
.modal__panel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 760px;
    max-height: min(820px, calc(100vh - 48px));
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(11, 18, 32, .3);
    animation: modalUp .3s cubic-bezier(.2, .7, .2, 1);
}
.modal__panel:focus { outline: none; }
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.modal__head {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px 20px 32px;
    border-bottom: 1px solid var(--color-line);
}
.modal__title { margin: 0; color: var(--color-ink); font-size: 22px; font-weight: 800; letter-spacing: -0.4px; }
.modal__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: none;
    color: #4b5675;
    cursor: pointer;
}
.modal__close:hover { background: #f3f6fc; color: var(--color-ink); }
.modal__close:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.modal__body { flex: 1; overflow-y: auto; padding: 24px 32px 36px; overscroll-behavior: contain; }

.privacy { color: #4b5675; font-size: 15px; line-height: 1.75; }
.privacy p { margin: 0 0 12px; }
.privacy h3 { margin: 28px 0 10px; color: var(--color-ink); font-size: 16px; font-weight: 700; }
.privacy ul { margin: 0 0 12px; padding-left: 18px; }
.privacy li + li { margin-top: 4px; }

@media (max-width: 1024px) {
    .site-footer__inner { flex-direction: column; gap: 24px; padding: 40px 20px 96px; }
    .site-footer__side { align-items: flex-start; gap: 12px; }
}
@media (max-width: 640px) {
    .site-footer__company span { display: block; }
    .site-footer__company span + span::before,
    .site-footer__company br { display: none; content: none; }
    .modal { padding: 0; align-items: flex-end; }
    .modal__panel { max-height: 88vh; border-radius: 20px 20px 0 0; }
    .modal__head { padding: 18px 16px 16px 20px; }
    .modal__title { font-size: 19px; }
    .modal__body { padding: 20px 20px 32px; }
    .privacy { font-size: 14px; }
}
