﻿/* NEXFIN — 메인(프론트) 페이지 전용 */
/* =========================================================
   Hero
   ========================================================= */
.nf-hero {
    position: relative;
    color: #fff;
    overflow: hidden;
    background: linear-gradient(120deg, #0c1b3a 0%, #16346f 55%, #2b5fc0 100%);
}

/* Slider */
.nf-hero-slider { position: relative; }
.nf-hero-track { position: relative; }
.nf-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .7s ease;
    background: linear-gradient(120deg, #0c1b3a 0%, #16346f 55%, #2b5fc0 100%);
}
.nf-hero-slide.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    z-index: 2;
    display: flex;
    align-items: center;
    /* PC: 커스터마이저 값(--nf-hero-height-pc) 우선, 없으면 헤더 제외 전체 화면 */
    min-height: var(--nf-hero-height-pc, calc(100vh - 74px));
}
.nf-hero-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: .4;
}
picture.nf-hero-bg {
    display: block;
    opacity: 1;
}
img.nf-hero-bg,
picture.nf-hero-bg .nf-hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.nf-hero-bg.is-cover { opacity: 1; }
.nf-hero-slide::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(105deg, rgba(10,22,48,.92) 0%, rgba(15,42,90,.65) 45%, rgba(20,60,140,.25) 100%);
}
.nf-hero-inner { position: relative; z-index: 2; width: 100%; padding: 96px 0 130px; }
.nf-hero-content { max-width: 560px; }
.nf-hero-slide.is-active .nf-hero-content {
    animation: nf-hero-in .8s ease both;
}
@keyframes nf-hero-in {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Arrows */
.nf-hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
    width: 52px; height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.35);
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(6px);
    color: #fff;
    display: grid; place-items: center;
    transition: background .2s ease, transform .2s ease;
}
.nf-hero-nav:hover { background: rgba(255,255,255,.28); }
.nf-hero-prev { left: 26px; }
.nf-hero-next { right: 26px; }

/* Dots — 48×48px 터치 영역 (시각 dot는 ::before) */
.nf-hero-dots {
    position: absolute;
    left: 0; right: 0; bottom: 78px;
    z-index: 6;
    display: flex; justify-content: center; align-items: center; gap: 4px;
}
.nf-hero-dot {
     height: 48px;
     margin:0 4px;
    border: none; padding: 0;
    background: transparent;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}
.nf-hero-dot::before {
    content: "";
    display: block;
    width: 13px; height: 13px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    transition: background .2s ease, width .2s ease, border-radius .2s ease;
}
.nf-hero-dot.is-active::before {
    width: 30px;
    border-radius: 6px;
    background: #fff;
}
.nf-hero h1,
.nf-hero h2.nf-hero-title {
    color: #fff;
    font-size: clamp(34px, 4.4vw, 54px);
    line-height: 1.22;
    letter-spacing: -1px;
    margin-bottom: 22px;
}
.nf-hero h1 .nf-accent,
.nf-hero h2.nf-hero-title .nf-accent { color: #6fa0ff; }
.nf-hero-sub { color: rgba(255,255,255,.85); font-size: 18px; margin-bottom: 34px; line-height: 1.7; }
.nf-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Quick links */
.nf-quicklinks {
    position: relative;
    z-index: 5;
    margin-top: -60px;
    margin-bottom: 60px;
}
.nf-quicklinks-grid {
    background: #fff;
    border-radius: var(--nf-radius-lg);
    box-shadow: var(--nf-shadow-lg);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 10px;
}
@media (min-width: 1025px) {
    .nf-quicklinks-grid.nf-cols-1 { grid-template-columns: 1fr; }
    .nf-quicklinks-grid.nf-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .nf-quicklinks-grid.nf-cols-3 { grid-template-columns: repeat(3, 1fr); }
}
.nf-quicklink {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 26px;
    border-radius: 12px;
    transition: background .2s ease;
    position: relative;
    min-height: 48px;
    min-width: 48px;
}
.nf-quicklink:not(:last-child)::after {
    content: ""; position: absolute; right: 0; top: 22px; bottom: 22px;
    width: 1px; background: var(--nf-line);
}
.nf-quicklink:hover { background: var(--nf-primary-light); }
.nf-quicklink-ico {
    flex: none;
    width: 46px; height: 46px; border-radius: 12px;
    background: var(--nf-primary-light);
    color: var(--nf-primary);
    display: grid; place-items: center;
}
.nf-quicklink-ico svg { width: 24px; height: 24px; }
.nf-quicklink-ico.has-img img { width: 28px; height: 28px; object-fit: contain; display: block; }
.nf-front .nf-quicklink-ico.is-plain { background: transparent; }
.nf-quicklink-ico.is-plain svg { width: 32px; height: 32px; }
.nf-quicklink-ico.is-plain.has-img img { width: 46px; height: 46px; border-radius: 12px; }
.nf-quicklink b { display: block; color: var(--nf-ink); font-size: 16px; }
.nf-quicklink span { font-size: 14px; color: var(--nf-text); }

/* =========================================================
   Sections
   ========================================================= */
.nf-section { padding: 20px 0; }
.nf-section-head { text-align: center; margin-bottom: 40px; }
.nf-section-head h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 10px; }
.nf-section-head p { color: var(--nf-muted); font-size: 16px; }

/* Feature duo */
.nf-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 20px;
}
.nf-feature-card {
    border-radius: var(--nf-radius-lg);
    padding: 40px;
    position: relative;
    overflow: hidden;
    min-height: 240px;
    box-shadow: var(--nf-shadow-sm);
}
.nf-feature-card .nf-eyebrow { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.nf-feature-card .nf-feature-title { font-size: 27px; line-height: 1.35; margin-bottom: 16px; }
.nf-feature-card p { font-size: 15px; max-width: 62%; }

/* 우하단 배경 이미지 (커버) */
.nf-feature-media {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 46%;
    height: 90%;
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: 100%;
    z-index: 1;
    pointer-events: none;
}
.nf-feature-card .nf-eyebrow,
.nf-feature-card .nf-feature-title,
.nf-feature-card p,
.nf-feature-card .nf-btn { position: relative; z-index: 2; }
.nf-feature-card .nf-rate-badge { z-index: 3; }
.nf-feature-card .nf-index { z-index: 3; }

/* .nf-feature-light background: Customizer → 피처 카드 → 좌측 카드 */
.nf-feature-light .nf-eyebrow { color: var(--nf-primary); }
.nf-feature-light .nf-rate-badge {
    position: absolute; top: 34px; right: 34px;
    width: 96px; height: 96px; border-radius: 50%;
    background: linear-gradient(135deg, var(--nf-primary), #4f7ef0);
    color: #fff; display: grid; place-content: center; text-align: center;
    box-shadow: 0 12px 26px rgba(26,79,214,.35);
}
.nf-feature-light .nf-rate-badge b { font-size: 22px; line-height: 1; color: #fff; }
.nf-feature-light .nf-rate-badge small { font-size: 10px; opacity: .85; }
.nf-feature-light .nf-rate-badge .nf-rate-cap { font-size: 10px; opacity: .8; display: block; margin-bottom: 4px; }

/* .nf-feature-dark background: Customizer → 피처 카드 → 우측 카드 */
.nf-feature-dark { color: #fff; }
.nf-feature-dark .nf-feature-title, .nf-feature-dark .nf-eyebrow { color: #fff; }
.nf-feature-dark .nf-eyebrow { color: #6fa0ff; }
.nf-feature-dark p { color: rgba(255,255,255,.78); }
.nf-feature-dark .nf-index {
    position: absolute; right: 34px; bottom: 34px; text-align: right;
}
.nf-feature-dark .nf-index small { display: block; color: rgba(255,255,255,.6); font-size: 12px; }
.nf-feature-dark .nf-index b { font-size: 22px; color: #fff; }
.nf-feature-dark .nf-index .nf-up,
.nf-feature-dark .nf-index .nf-down,
.nf-feature-dark .nf-index .nf-flat { font-size: 14px; font-weight: 700; }
.nf-feature-dark .nf-index .nf-up { color: #ff8a94; }
.nf-feature-dark .nf-index .nf-down { color: #7fb2ff; }
.nf-feature-dark .nf-index .nf-flat { color: rgba(255,255,255,.7); }
.nf-feature-card .nf-btn { margin-top: 22px; }

/* Solutions grid */
.nf-solutions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (min-width: 1025px) {
    .nf-solutions.nf-cols-1 { grid-template-columns: 1fr; max-width: 340px; margin: 0 auto; }
    .nf-solutions.nf-cols-2 { grid-template-columns: repeat(2, 1fr); max-width: 720px; margin: 0 auto; }
    .nf-solutions.nf-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .nf-solutions.nf-cols-4 { grid-template-columns: repeat(4, 1fr); }
    .nf-solutions.nf-cols-5 { grid-template-columns: repeat(5, 1fr); }
}
.nf-solution {
    background: #fff;
    border: 1px solid var(--nf-line);
    border-radius: var(--nf-radius);
    padding: 30px 24px;
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.nf-solution:hover { transform: translateY(-6px); box-shadow: var(--nf-shadow); border-color: transparent; }
.nf-solution-ico {
    width: 58px; height: 58px; margin: 0 auto 18px;
    border-radius: 16px;
    background: var(--nf-primary-light);
    color: var(--nf-primary);
    display: grid; place-items: center;
}
.nf-solution-ico svg { width: 28px; height: 28px; }
.nf-solution .nf-solution-title { font-size: 18px; margin-bottom: 10px; }
.nf-solution p { font-size: 14px; color: var(--nf-muted); margin-bottom: 16px; min-height: 60px; }
.nf-solution .nf-more {
    display: inline-grid; place-items: center;
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--nf-primary-light); color: var(--nf-primary);
    transition: .2s;
}
.nf-solution:hover .nf-more { background: var(--nf-primary); color: #fff; }

/* Info duo: notice + rates */
.nf-info {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 24px;
}
.nf-panel {
    background: #fff;
    border: 1px solid var(--nf-line);
    border-radius: var(--nf-radius);
    padding: 30px;
}
.nf-panel-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px;
}
.nf-panel-head h3 { font-size: 20px; margin: 0; }
.nf-panel-head .nf-plus { color: var(--nf-muted); font-size: 22px; line-height: 1; text-decoration: none; }
.nf-panel-head a.nf-plus:hover { color: var(--nf-primary); }
.nf-panel-head .nf-note { font-size: 12px; color: var(--nf-muted); }

.nf-notice-list li a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--nf-line);
    color: var(--nf-text);
    font-size: 15px;
}
.nf-notice-list li a > span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nf-notice-list li:last-child a { border-bottom: none; }
.nf-notice-list li a:hover { color: var(--nf-primary); }
.nf-notice-list .nf-date {
    min-width: 5.8em;
    text-align: right;
    color: var(--nf-muted);
    font-size: 14px;
    white-space: nowrap;
}

.nf-rates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.nf-rate {
    background: var(--nf-bg);
    border-radius: 12px;
    padding: 20px 18px;
    text-align: center;
}
.nf-rate .nf-rate-name { font-size: 14px; color: var(--nf-muted); margin-bottom: 8px; }
.nf-rate .nf-rate-val { font-size: 30px; font-weight: 900; color: var(--nf-primary); line-height: 1; }
.nf-rate .nf-rate-val sup { font-size: 15px; font-weight: 700; }
.nf-rate .nf-rate-range { font-size: 12.5px; color: var(--nf-muted); margin-top: 6px; }
.nf-rate { display: flex; flex-direction: column; align-items: center; overflow: hidden; color: inherit; text-decoration: none; }
a.nf-rate { transition: transform .2s ease, box-shadow .2s ease; }
a.nf-rate:hover { transform: translateY(-3px); box-shadow: var(--nf-shadow-sm); color: inherit; }
.nf-rate-img { line-height: 0; margin-bottom: 12px; }
.nf-rate-img img { display: block; max-width: 100%; height: auto; }
.nf-rate-img-icon .nf-rate-img img { width: 48px; height: 48px; object-fit: contain; }
.nf-rate-img-medium .nf-rate-img img { width: 80px; height: 80px; object-fit: contain; }
.nf-rate-img-full { padding-top: 0; }
.nf-rate-img-full .nf-rate-img { align-self: stretch; margin: 0 -18px 14px; }
.nf-rate-img-full .nf-rate-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.nf-rate.has-img .nf-rate-name { color: var(--nf-ink); font-size: 15px; font-weight: 700; }
.nf-rate-foot { text-align: right; margin-top: 18px; }
.nf-rate-foot a { font-size: 14px; font-weight: 700; }

/* CTA banner */
.nf-cta {
    background: linear-gradient(120deg, var(--nf-primary) 0%, #3a6ee0 100%);
    border-radius: var(--nf-radius-lg);
    color: #fff;
    padding: 40px 44px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 30px;
    box-shadow: 0 20px 50px rgba(26,79,214,.32);
}
.nf-cta h3 { color: #fff; font-size: 26px; margin-bottom: 6px; }
.nf-cta p { color: rgba(255,255,255,.85); margin: 0; }
.nf-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.nf-cta-item {
    display: flex; align-items: center; gap: 12px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 12px;
    padding: 14px 20px;
    color: #fff;
}
.nf-cta-item:hover { background: rgba(255,255,255,.2); color: #fff; }
.nf-cta-item svg { width: 24px; height: 24px; flex: none; }
.nf-cta-item b { display: block; font-size: 17px; color: #fff; }
.nf-cta-item span { font-size: 12px; color: rgba(255,255,255,.8); }
/* =========================================================
   Responsive — Main
   ========================================================= */
@media (max-width: 1024px) {
    .nf-quicklinks-grid { grid-template-columns: repeat(2, 1fr); }
    .nf-quicklink:nth-child(2)::after { display: none; }
    .nf-solutions { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
    .nf-duo { grid-template-columns: 1fr; }
    .nf-info { grid-template-columns: 1fr; }
    .nf-feature-card p { max-width: 100%; }
    .nf-cta { grid-template-columns: 1fr; text-align: center; }
    .nf-cta-actions { justify-content: center; }
    .nf-feature-card .nf-feature-title{font-size: 20px; line-height: 1.3; margin: 0 0 .5em;}
    .nf-notice-list li a {
        gap: 12px;
        padding: 12px 0;
        font-size: 14px;
    }
    .nf-notice-list .nf-date {
        min-width: 5.6em;
        font-size: 12px;
    }
}

@media (max-width: 620px) {
    .nf-quicklinks-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        position: relative;
        border-radius: var(--nf-radius-lg);
        padding: 8px;
        overflow: hidden;
    }
    .nf-quicklink {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 10px;
        padding: 16px 12px;
        border-radius: 0;
        width: 100%;
        min-height: 48px;
    }
    .nf-quicklink::after { display: none !important; }
    .nf-quicklink:not(:last-child) { border-bottom: none; }

    /* 2×2 십자 구분선 — 전체 박스 기준 60% */
    .nf-quicklinks-grid.nf-cols-4::before,
    .nf-quicklinks-grid.nf-cols-3::before {
        content: "";
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 80%;
        height: 0.3px;
        background: var(--nf-line);
        pointer-events: none;
        z-index: 1;
    }
    .nf-quicklinks-grid.nf-cols-4::after,
    .nf-quicklinks-grid.nf-cols-3::after,
    .nf-quicklinks-grid.nf-cols-2::after {
        content: "";
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 0.3px;
        height: 80%;
        background: var(--nf-line);
        pointer-events: none;
        z-index: 1;
    }
    .nf-solutions { gap:10px; }
    .nf-solution{
        padding: 25px 14px;
    }
    .nf-rates { grid-template-columns: 1fr; }
    .nf-feature-light .nf-rate-badge { width: 58px; height: 58px; top: 12px; right: 12px; }
    .nf-feature-light .nf-rate-badge b{
        font-size: 12px;
    }
    .nf-feature-light .nf-rate-badge small{
        font-size: 7px;
    }
    .nf-feature-light .nf-rate-badge .nf-rate-cap{
        font-size: 8px;
    }
    /* 모바일: 헤더(74px) + 슬라이더 = 100vh(주소창 대응 dvh) */
    .nf-hero-slide.is-active { min-height: calc(100dvh - 74px); }
    .nf-hero-inner { padding: 40px 15px 96px !important; }
    .nf-feature-card { padding: 28px;padding-right:30% }
    .nf-hero-nav { width: 48px; height: 48px; display:none;}
    .nf-hero-prev { left: 10px; }
    .nf-hero-next { right: 10px; }
    .nf-hero-dots { bottom: 76px; }
    .nf-feature-media { width: 38%; height: 48%; opacity: .5; }
    .nf-feature-dark .nf-index{
        position: relative; right: 0; bottom: 0;text-align: left;
        padding-top:15px;
    }
    .nf-quicklinks {
        margin-top: -30px;
        margin-bottom: 30px;
    }
}
@media (max-width: 480px) {
    .nf-hero-nav {
        display:none;
    }
    .nf-cta-item{
        width:100%;
    }
}
