@charset "utf-8";
/* ==================================================================
   디자인 고도화 — 헤더 / 히어로 / 역량 카드
   ------------------------------------------------------------------
   로드 순서: design-system → korean-ui → refine → mobile-tune
   (모바일 미세조정은 mobile-tune 이 최종 결정권을 갖는다)
================================================================== */

/* ==================================================================
   1. 헤더
   기존: 상시 불투명 검정(#000000b8), 스크롤 후에도 거의 같은 검정.
         테두리는 border-bottom:1px solid #000 이라 사실상 안 보였다.
   개선: 최상단에서는 그라디언트 스크림으로 영상을 살리고,
         스크롤하면 네이비 + 블러로 확실히 전환한다.
================================================================== */
#header_t_id.header_t {
    height: 96px !important;
    border-bottom: 1px solid transparent !important;
    background: linear-gradient(180deg, rgba(4,14,31,.82) 0%, rgba(4,14,31,.46) 58%, rgba(4,14,31,0) 100%) !important;
    transition:
        height     .32s var(--ease),
        background .32s var(--ease),
        border-color .32s var(--ease),
        box-shadow .32s var(--ease) !important;
}
#header_t_id.header_t.f-nav {
    height: 72px !important;
    border-bottom-color: rgba(255,255,255,.12) !important;
    background: rgba(7,26,56,.90) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,.28) !important;
    -webkit-backdrop-filter: saturate(150%) blur(14px);
    backdrop-filter: saturate(150%) blur(14px);
}
/* 로고 — 스크롤 시 살짝 축소 */
#header_t_id .header_logo img {
    height: 46px;
    width: auto;
    /* 로고가 가로형 워드마크로 바뀌었다. common.css 의 max-width:165px 가
       나중에 로드되며 폭을 잘라 글자가 뭉개지므로 여기서 풀어준다. */
    max-width: none !important;
    transition: height .32s var(--ease);
}
#header_t_id.f-nav .header_logo img { height: 38px; }

/* 메뉴 항목 밑줄 인디케이터 */
#header_t_id .menu .major ul li:not(.keyword-nav-item) > a {
    position: relative;
}
#header_t_id .menu .major ul li:not(.keyword-nav-item) > a::after {
    content: '';
    position: absolute;
    right: 4px;
    bottom: 2px;
    left: 4px;
    height: 2px;
    border-radius: 2px;
    background: var(--c-yellow);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .28s var(--ease);
}
#header_t_id .menu .major li:not(.keyword-nav-item):hover > a::after,
#header_t_id .menu .major li:not(.keyword-nav-item).active > a::after,
#header_t_id .menu .major li:not(.keyword-nav-item).pactive > a::after {
    transform: scaleX(1);
}

/* ==================================================================
   2. 히어로 — 배지 / CTA / 신뢰 요소
================================================================== */
/* .txt .inner 에는 정렬 지정이 없어 inline 요소가 왼쪽으로 붙는다 */
.main_visual .txt .inner { text-align: center; }

.hero_badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 auto 22px;
    padding: 8px 16px 8px 13px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: var(--r-pill);
    background: rgba(255,255,255,.10);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -.02em;
    white-space: nowrap;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.hero_live {
    position: relative;
    width: 7px;
    height: 7px;
    flex: none;
    border-radius: 50%;
    background: var(--c-green);
}
.hero_live::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 1px solid var(--c-green);
    border-radius: 50%;
    opacity: .7;
    animation: heroLive 1.9s ease-out infinite;
}
@keyframes heroLive {
    0%   { opacity: .7; transform: scale(.6); }
    100% { opacity: 0;  transform: scale(1.5); }
}

.hero_actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    justify-content: center;
    margin-top: 30px;
}
.hero_btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 54px;
    padding: 0 26px;
    border-radius: var(--r-pill);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -.025em;
    text-decoration: none;
    white-space: nowrap;
    transition:
        transform  .26s var(--ease),
        background .26s var(--ease),
        box-shadow .26s var(--ease),
        border-color .26s var(--ease);
}
.hero_btn svg { flex: none; }
.hero_btn--primary {
    color: var(--c-navy) !important;
    border: 1px solid transparent;
    background: var(--c-yellow);
    box-shadow: 0 14px 34px rgba(255,222,1,.26);
}
.hero_btn--primary:hover {
    transform: translateY(-2px);
    background: #ffe74d;
    box-shadow: 0 18px 40px rgba(255,222,1,.36);
}
.hero_btn--ghost {
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.34);
    background: rgba(255,255,255,.10);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.hero_btn--ghost:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,.6);
    background: rgba(255,255,255,.18);
}
.hero_btn:active { transform: translateY(0) scale(.985); }

.hero_trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    justify-content: center;
    margin: 34px auto 0;
    padding: 0;
    list-style: none;
}
.hero_trust li {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 0 clamp(16px, 2.2vw, 30px);
    text-align: center;
}
.hero_trust li + li { border-left: 1px solid rgba(255,255,255,.2); }
.hero_trust strong {
    color: var(--c-yellow);
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -.03em;
}
.hero_trust span {
    color: rgba(255,255,255,.72);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: -.02em;
    white-space: nowrap;
}

/* 히어로 문구는 배지·버튼과 균형을 맞춰 조금 정리 */
.swiper-slide {
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1.28;
    text-shadow: 0 2px 18px rgba(0,0,0,.42);
    word-break: keep-all;
}

/* ==================================================================
   3. 역량 카드 — 이미지 + 오버레이 캡션 + hover 설명
   기존: 이미지 아래 흰 캡션 바에 번호와 제목만.
================================================================== */
.main_visual_bottom .main_timg { align-items: stretch; }

.cap_card {
    position: relative;
    display: block;
    overflow: hidden;
    border: 1px solid rgba(17,102,218,.14) !important;
    border-radius: var(--r-lg) !important;
    background: var(--c-navy) !important;
    box-shadow: var(--sh-1);
}
.cap_frame {
    position: relative;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: var(--c-surface-2);
}
.main_visual_bottom .main_timg img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition: transform .6s var(--ease) !important;
}
.cap_card:hover img { transform: scale(1.06) !important; }

/* 이미지 위 어둡기 — 글자 가독성 확보 */
.cap_frame::after {
    content: '';
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(180deg, rgba(4,14,31,0) 34%, rgba(4,14,31,.62) 68%, rgba(4,14,31,.92) 100%);
    transition: opacity .4s var(--ease);
}

/* 캡션을 이미지 위로 올린다 */
.cap_caption {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    display: block !important;
    padding: 20px 22px 22px !important;
    color: #fff !important;
}
.cap_no {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--c-yellow) !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    letter-spacing: .14em !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.cap_tit {
    display: block;
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    line-height: 1.3;
    letter-spacing: -.035em !important;
    word-break: keep-all;
}
.cap_desc {
    max-height: 0;
    margin: 0;
    color: rgba(255,255,255,.78);
    font-size: 13.5px;
    line-height: 1.6;
    letter-spacing: -.02em;
    word-break: keep-all;
    opacity: 0;
    transform: translateY(6px);
    transition:
        max-height .42s var(--ease),
        opacity    .32s var(--ease),
        transform  .42s var(--ease),
        margin     .42s var(--ease);
}
.cap_card:hover .cap_desc,
.cap_card:focus-within .cap_desc {
    max-height: 90px;
    margin-top: 9px;
    opacity: 1;
    transform: none;
}

/* 상단 브랜드 라인 */
.cap_card::before {
    content: '';
    position: absolute;
    z-index: 3;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--c-blue) 0 62%, var(--c-yellow) 62% 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .45s var(--ease);
}
.cap_card:hover::before { transform: scaleX(1); }

.cap_card:hover {
    border-color: rgba(17,102,218,.34) !important;
    box-shadow: var(--sh-3) !important;
}

/* ── 태블릿 이하 ── */
@media (max-width: 1020px) {
    #header_t_id.header_t { height: 82px !important; }
    #header_t_id.header_t.f-nav { height: 64px !important; }
    /* common.css 가 이 구간에서 .header_logo 를 15% 로 묶는다.
       가로형 워드마크가 잘리므로 폭을 내용에 맞춘다. */
    #header_t_id .header_logo { width: auto !important; flex: 0 0 auto; }
    #header_t_id .header_logo img { height: 34px; }
    #header_t_id.f-nav .header_logo img { height: 30px; }
}

/* ── 모바일 ── */
@media (max-width: 768px) {
    #header_t_id.header_t,
    #header_t_id.header_t.f-nav { height: 60px !important; }
    #header_t_id .header_logo img,
    #header_t_id.f-nav .header_logo img { height: 24px; }

    .hero_badge {
        margin-bottom: 16px;
        padding: 6px 13px 6px 11px;
        font-size: 11.5px;
    }
    .hero_actions { gap: 9px; margin-top: 22px; }
    .hero_btn {
        min-height: 48px;
        padding: 0 20px;
        font-size: 14.5px;
    }
    .hero_trust { margin-top: 24px; }
    .hero_trust li { padding: 0 12px; }
    .hero_trust strong { font-size: 15px; }
    .hero_trust span { font-size: 11px; }

    /* 모바일은 hover 가 없으므로 설명을 항상 보여준다 */
    .cap_frame { aspect-ratio: 4 / 3; }
    .cap_caption { padding: 14px 14px 15px !important; }
    .cap_no { margin-bottom: 5px; font-size: 10px !important; }
    .cap_tit { font-size: 13.5px !important; }
    .cap_desc {
        max-height: none;
        margin-top: 6px;
        font-size: 11.5px;
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (max-width: 400px) {
    .hero_btn { width: 100%; justify-content: center; }
    .hero_trust li { padding: 0 9px; }
    .hero_trust strong { font-size: 14px; }
    .hero_trust span { font-size: 10px; }
    .cap_desc { display: none; }   /* 아주 좁은 화면은 제목만 */
}

@media (prefers-reduced-motion: reduce) {
    #header_t_id.header_t,
    #header_t_id .header_logo img,
    .hero_btn, .cap_card, .cap_desc,
    .main_visual_bottom .main_timg img,
    #header_t_id .menu .major ul li > a::after,
    .cap_card::before { transition: none !important; }
    .hero_live::after { animation: none; }
    .cap_card:hover img { transform: none !important; }
}
