/* 첫 페이지(.v2)와 서비스 페이지(.v2-page)가 함께 쓰는 것 — 토큰 · 푸터 · 서비스 헤더
   .v2 의 토큰은 home.css 에도 있다 (첫 페이지 전용 값이 더 있음). 공통 값은 여기와 같게 */
.v2-page {
    --v2-point: #0048D0;
    --v2-point-soft: #DCE7FB;
    --v2-ink: #1E2330;
    --v2-muted: #5B6272;
    --v2-surface: #F4F6FA;
    --v2-gutter: 16px;
    --v2-max: var(--container-wide, 1640px);
    --v2-ease: cubic-bezier(.22, 1, .36, 1);
    --v2-logo-blue: #0219C8;
    --header-height: 76px;   /* 키트 화면(본문)이 머리 높이를 이 값으로 비운다 */
    position: relative;
    color: var(--v2-ink);
    background: #fff;
    overflow-x: clip;
}
@media (min-width: 1024px) { .v2-page { --v2-gutter: 32px; --header-height: 96px; } }

/* 푸터 — 큰 브랜드 글자 + 회사 정보. 바탕 그라데이션은 .v2-foot-bg (위 흰색 → 아래 하늘색 · 연보라 물결) */
.v2-foot { position: relative; isolation: isolate; overflow: hidden; }
.v2-foot-bg {
    position: absolute; inset: 0 calc(50% - 50vw); z-index: -1; pointer-events: none;
    background:
        radial-gradient(60% 55% at 22% 108%, rgba(214, 214, 252, .95), transparent 70%),
        radial-gradient(55% 60% at 80% 100%, rgba(205, 228, 253, .95), transparent 72%),
        radial-gradient(42% 46% at 50% 92%, rgba(226, 223, 252, .9), transparent 70%),
        radial-gradient(70% 70% at 4% 62%, rgba(214, 238, 253, .9), transparent 68%),
        radial-gradient(70% 70% at 98% 58%, rgba(214, 234, 253, .9), transparent 68%),
        linear-gradient(#fff 0%, #fff 18%, #EEF6FE 60%, #E9EAFC 100%);
    /* 위쪽 가운데를 흰색으로 둥글게 비워 물결처럼 */
    -webkit-mask-image: radial-gradient(120% 70% at 50% -18%, transparent 38%, #000 62%);
    mask-image: radial-gradient(120% 70% at 50% -18%, transparent 38%, #000 62%);
}
.v2-foot-inner { max-width: var(--v2-max); margin: 0 auto; padding: 120px var(--v2-gutter) 40px; }
.v2-foot-brand img { display: block; width: 50%; min-width: 240px; height: auto; }   /* 내용 폭의 절반쯤 */
.v2-foot-menu { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 48px; font-size: 16px; font-weight: 700; }
.v2-foot-menu a { color: var(--v2-ink); }
.v2-foot-menu a:hover { color: var(--v2-point); }
.v2-foot-row { display: grid; gap: 28px; margin-top: 28px; padding-top: 28px; border-top: 1px solid rgba(30, 35, 48, .1); font-size: 13px; color: var(--v2-muted); }
.v2-foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.v2-foot-links a { color: var(--v2-ink); }
.v2-foot-links a:hover { color: var(--v2-point); }
.v2-foot-copy { margin-top: 14px; letter-spacing: .02em; }
.v2-foot-info { display: grid; gap: 6px; font-style: normal; line-height: 1.6; word-break: keep-all; }
.v2-foot-info i { margin: 0 6px; font-style: normal; color: #C3C8D0; }
@media (min-width: 1024px) {
    .v2-foot-inner { padding: 180px var(--foot-pr, var(--v2-gutter)) 48px var(--v2-gutter); }
    .v2-foot-menu { margin-top: 64px; gap: 8px 40px; font-size: 17px; }
    .v2-foot-row { grid-template-columns: 1fr auto; align-items: end; margin-top: 32px; font-size: 14px; }
    .v2-foot-info { text-align: right; }
}

/* ───────── 서비스 페이지 공통 머리 (ServiceHeader) ───────── */
.v2-sh-skip { position: fixed; left: 16px; top: -60px; z-index: 120; padding: 10px 16px; border-radius: 8px; background: var(--v2-ink); color: #fff; }
.v2-sh-skip:focus { top: 12px; }
.v2-sh {
    position: fixed; inset: 0 0 auto; z-index: 90; display: flex; align-items: center; gap: 14px;
    height: var(--header-height); padding: 0 var(--v2-gutter);
    transition: background-color .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}
.v2-sh.is-scrolled:not(.is-open) { background: rgba(255, 255, 255, .82); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(30, 35, 48, .06); }
.v2-sh-logo { position: relative; display: block; width: 124px; }
.v2-sh-logo img { display: block; width: 100%; height: auto; transition: opacity .35s ease; }
.v2-sh-logo .is-light { position: absolute; inset: 0; opacity: 0; }
.v2-sh.is-open .v2-sh-logo .is-dark { opacity: 0; }
.v2-sh.is-open .v2-sh-logo .is-light { opacity: 1; }
.v2-sh-name { padding-left: 14px; border-left: 1px solid rgba(30, 35, 48, .18); font-size: 15px; font-weight: 700; letter-spacing: -.01em; color: var(--v2-ink); white-space: nowrap; transition: color .35s ease, border-color .35s ease; }
.v2-sh.is-open .v2-sh-name { color: #fff; border-color: rgba(255, 255, 255, .35); }
/* 큰 두 줄 햄버거 → ✕ */
.v2-sh-burger { position: relative; display: grid; place-content: center; gap: 9px; width: 56px; height: 56px; margin-left: auto; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.v2-sh-burger span { display: block; width: 36px; height: 3px; border-radius: 2px; background: var(--v2-ink); transition: transform .45s var(--v2-ease), background-color .35s ease, width .45s var(--v2-ease); }
.v2-sh-burger span:last-child { width: 24px; justify-self: end; }
.v2-sh-burger:hover span:last-child { width: 36px; }
.v2-sh.is-open .v2-sh-burger span { background: #fff; width: 36px; }
.v2-sh.is-open .v2-sh-burger span:first-child { transform: translateY(6px) rotate(45deg); }
.v2-sh.is-open .v2-sh-burger span:last-child { transform: translateY(-6px) rotate(-45deg); }
.v2-sh-burger:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
html.v2-sh-open, html.v2-sh-open body { overflow: hidden; }

/* 전체 화면 메뉴 */
.v2-sh-panel {
    position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
    padding: calc(var(--header-height) + 24px) var(--v2-gutter) 24px; background: var(--v2-logo-blue); color: #fff;
    clip-path: circle(0 at calc(100% - 44px) 44px); visibility: hidden;
    transition: clip-path .7s var(--v2-ease), visibility 0s linear .7s;
}
.v2-sh-panel.is-open { clip-path: circle(150% at calc(100% - 44px) 44px); visibility: visible; transition: clip-path .8s var(--v2-ease); }
.v2-sh-aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }   /* 메뉴가 길어 스크롤돼도 바탕이 끊기지 않게 */
.v2-sh-aurora i { position: absolute; border-radius: 50%; filter: blur(90px); }
.v2-sh-aurora i:nth-child(1) { width: 70vmax; height: 70vmax; left: -22vmax; top: -28vmax; background: radial-gradient(closest-side, rgba(70, 140, 255, .55), transparent); }
.v2-sh-aurora i:nth-child(2) { width: 60vmax; height: 60vmax; right: -20vmax; bottom: -30vmax; background: radial-gradient(closest-side, rgba(120, 90, 255, .45), transparent); }
.v2-sh-aurora i:nth-child(3) { width: 44vmax; height: 44vmax; left: 40%; top: 35%; background: radial-gradient(closest-side, rgba(80, 210, 255, .25), transparent); }
.v2-sh-panel-inner { position: relative; z-index: 0; display: grid; gap: 48px; flex: 1; width: 100%; max-width: var(--v2-max); margin: 0 auto; }
.v2-sh-label { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: rgba(255, 255, 255, .6); }
.v2-sh-list { margin-top: 18px; }
.v2-sh-link { display: flex; align-items: baseline; gap: 14px; padding: 6px 0; font-size: clamp(28px, min(5vw, 6.4vh), 64px);   /* 화면 높이에도 맞춰 — 한 화면에 들어오게 */ font-weight: 800; line-height: 1.12; letter-spacing: -.035em; color: rgba(255, 255, 255, .55); transition: color .25s ease; word-break: keep-all; }
.v2-sh-link:hover, .v2-sh-link:focus-visible, .v2-sh-link[aria-current] { color: #fff; }
.v2-sh-link[aria-current]::after { content: ''; align-self: center; width: 10px; height: 10px; border-radius: 50%; background: #8FD3FF; }
.v2-sh-no { min-width: 2.2em; font-size: 13px; font-weight: 700; letter-spacing: .06em; color: rgba(255, 255, 255, .5); }
.v2-sh-cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 32px; padding: 14px 24px; border-radius: 999px; background: #fff; color: var(--v2-logo-blue); font-size: 16px; font-weight: 800; transition: transform .3s var(--v2-ease); }
.v2-sh-cta:hover { transform: translateX(4px); }
.v2-sh-more ul { display: grid; gap: 10px; margin-top: 18px; }
.v2-sh-card { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 16px; padding: 10px 16px 10px 10px; border-radius: 16px; background: rgba(255, 255, 255, .1); color: #fff; transition: background-color .25s ease; }
a.v2-sh-card:hover { background: rgba(255, 255, 255, .18); }
.v2-sh-card.is-soon { opacity: .75; }
.v2-sh-card-img { overflow: hidden; width: 64px; height: 64px; border-radius: 12px; background: #fff; }
.v2-sh-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.v2-sh-card-text { display: grid; gap: 2px; min-width: 0; }
.v2-sh-card-kind { font-size: 12px; color: rgba(255, 255, 255, .65); }
.v2-sh-card-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.v2-sh-card-name em { padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .18); font-style: normal; font-size: 11px; font-weight: 700; }
.v2-sh-card i { font-size: 18px; }
.v2-sh-foot { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; width: 100%; max-width: var(--v2-max); margin: 40px auto 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .2); font-size: 14px; }
.v2-sh-foot a { color: rgba(255, 255, 255, .85); }
.v2-sh-foot a:hover { color: #fff; }
/* 열릴 때 한 줄씩 떠오른다 */
.v2-sh-list li, .v2-sh-more li, .v2-sh-cta { opacity: 0; transform: translateY(28px); transition: opacity .4s ease, transform .6s var(--v2-ease); }
.v2-sh-panel.is-open .v2-sh-list li, .v2-sh-panel.is-open .v2-sh-more li, .v2-sh-panel.is-open .v2-sh-cta { opacity: 1; transform: none; transition-delay: calc(.18s + var(--i, 6) * .05s); }
@media (min-width: 1024px) {
    .v2-sh-logo { width: 150px; }
    .v2-sh-name { font-size: 16px; }
    .v2-sh-burger { width: 64px; height: 64px; gap: 10px; }
    .v2-sh-burger span { width: 42px; }
    .v2-sh-burger span:last-child { width: 28px; }
    .v2-sh-burger:hover span:last-child, .v2-sh.is-open .v2-sh-burger span { width: 42px; }
    .v2-sh.is-open .v2-sh-burger span:first-child { transform: translateY(6.5px) rotate(45deg); }
    .v2-sh.is-open .v2-sh-burger span:last-child { transform: translateY(-6.5px) rotate(-45deg); }
    .v2-sh-panel { padding-top: calc(var(--header-height) + 40px); padding-bottom: 32px; clip-path: circle(0 at calc(100% - 64px) 48px); }
    .v2-sh-panel.is-open { clip-path: circle(150% at calc(100% - 64px) 48px); }
    .v2-sh-panel-inner { grid-template-columns: minmax(0, 7fr) minmax(320px, 4fr); align-items: start; gap: 80px; }
    .v2-sh-more { padding-top: 6px; }
}
@media (prefers-reduced-motion: reduce) {
    .v2-sh-panel, .v2-sh-panel.is-open { transition: none; }
    .v2-sh-list li, .v2-sh-more li, .v2-sh-cta { transition: none; }
}
/* 메뉴가 열려 있을 때 — 평소엔 머리 바탕 없이 오로라가 그대로 보이고,
   메뉴를 스크롤해 내용이 로고 밑으로 지나갈 때만(is-under) 파랑 바탕을 깐다 */
.v2-sh.is-open { background: transparent; }
.v2-sh.is-open.is-under { background: rgba(2, 25, 200, .9); backdrop-filter: blur(10px); }

/* 푸터 로고 오른쪽 — 파랑새가 앉는 자리 (발 = 로고 아래 끝) */
.v2-foot-brand { position: relative; }
.v2-foot-bird-spot { position: absolute; left: calc(max(50%, 240px) + clamp(10px, 2.4vw, 36px)); bottom: 0; width: 0; height: 0; }

/* ───────── 파랑새 (BirdFlight) — 첫 페이지 · 서비스 페이지 공통 ───────── */
/* ───────── 파랑새 — 히어로에서 Top 옆으로 (BirdFlight) ───────── */
.v2-flybird {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 59;            /* 레일(60) 바로 아래 */
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    visibility: hidden;
    pointer-events: none;
    will-change: transform;
}
.v2-flybird.is-on { visibility: visible; pointer-events: auto; }
.v2-flybird img { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.v2-flybird img.is-on { display: block; }
html.v2-nav-open .v2-flybird { visibility: hidden; }
.v2-hero.is-bird-away .v2-hero-shadow { visibility: hidden; }   /* 그림자는 GSAP 가 opacity 를 직접 움직이므로 visibility 로 감춘다 */
/* 파랑새 — Contact 제목 옆 자리 · 말풍선 */
.v2-ct-bird-spot { display: inline-block; width: 0; height: 1em; vertical-align: baseline; }
.v2-ct-nowrap { white-space: nowrap; }   /* 새 자리(.v2-ct-bird-spot)가 마지막 낱말과 같은 줄에 */
.v2-flybird-tip {
    position: fixed; z-index: 61; padding: 8px 14px; border-radius: 999px; background: var(--v2-ink); color: #fff;
    font-size: 13px; font-weight: 600; white-space: nowrap; pointer-events: none;
    translate: -50% calc(-100% - 8px); opacity: 0; transition: opacity .2s ease;
}
.v2-flybird-tip.is-on { opacity: 1; }
html.v2-nav-open .v2-flybird-tip { display: none; }
/* 푸터에서 떠 있는 파랑새의 바닥 그림자 — 위치 · 크기 · 진하기는 BirdFlight 가 매 프레임 */
.v2-flybird-shadow { position: fixed; left: 0; top: 0; z-index: 58; height: 0; aspect-ratio: 1 / .18; height: auto; border-radius: 50%; background: radial-gradient(closest-side, rgba(20, 30, 70, .32), rgba(20, 30, 70, 0)); opacity: 0; pointer-events: none; transform-origin: 50% 50%; will-change: transform, opacity; }
html.v2-nav-open .v2-flybird-shadow { visibility: hidden; }
html.v2-sh-open .v2-flybird, html.v2-sh-open .v2-flybird-tip, html.v2-sh-open .v2-flybird-shadow { visibility: hidden; }
/* 서비스 페이지 오른쪽 아래 「Top」 — 파랑새가 이 왼쪽에 앉는다 */
.v2-sh-top { position: fixed; right: 12px; bottom: 14px; z-index: 70; display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .86); backdrop-filter: blur(8px); box-shadow: 0 2px 12px rgba(20, 30, 60, .1); font: inherit; font-size: 14px; font-weight: 700; color: var(--v2-ink); cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .3s ease, transform .3s ease; }
.v2-sh-top.is-on { opacity: 1; pointer-events: auto; transform: none; }
html.v2-sh-open .v2-sh-top { opacity: 0; pointer-events: none; }
@media (min-width: 1024px) { .v2-sh-top { right: 24px; bottom: 24px; padding: 11px 20px; font-size: 15px; } }
/* PC 에서만 줄바꿈 — 첫 페이지(home.css)와 같은 규칙 */
.v2-page .v2-br-pc { display: none; }
@media (min-width: 1024px) { .v2-page .v2-br-pc { display: inline; } }
