/* =========================================================
   ONPIA common.css
   - :root 디자인 토큰 (컬러, radius, gap, typography)
   - 공통 헤더 / 푸터 / 모바일 메뉴
   - 서브페이지(solution / reference / contact) 가 상속
   ========================================================= */

@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+KR:wght@400;500;700&display=swap");

:root {
    /* ===== Brand ===== */
    --color-blue:          #2563eb;   /* primary accent */
    --color-blue-2:        #3366f2;   /* secondary accent */
    --color-blue-3:        #60a5fa;   /* light accent */
    --color-red-accent:    #E20215;   /* nav active underline */

    /* ===== Neutrals — text ===== */
    --color-white:         #ffffff;
    --color-black:         #000000;
    --color-ink:           #0a1628;   /* primary text */
    --color-ink-2:         #111111;   /* near-black */
    --color-ink-3:         #0f172a;   /* alt dark text (solution) */

    /* ===== Grays — semantic scale ===== */
    --color-gray-500:      #94a3b8;   /* subtle text */
    --color-gray-550:      #99a1ab;   /* nav inactive */
    --color-gray-600:      #64748b;   /* body muted (contact) */
    --color-gray-650:      #667380;   /* body muted (reference) */
    --color-gray-700:      #526079;   /* body muted (solution) */
    --color-gray-750:      #6a7282;
    --color-gray-800:      #6b7280;   /* primary muted */
    --color-gray-850:      #475569;   /* dark muted (contact) */
    --color-gray-900:      #444444;   /* darker muted */

    /* ===== Surfaces (light) ===== */
    --color-surface-1:     #f9fafb;
    --color-surface-2:     #f2f5f7;
    --color-surface-3:     #f8fafc;
    --color-surface-4:     #f0f2f5;
    --color-surface-5:     #f1f5f9;
    --color-surface-blue:  #f5f8ff;
    --color-nav-active-bg: #edf2ff;
    --color-pill-bg:       #e0f2fe;

    /* ===== Borders ===== */
    --color-border-1:      #e2e8f0;

    /* ===== Dark theme (v1 pill header + v2 shared) ===== */
    --color-dark:          #0a0f10;   /* v1 pill / v2 shared */
    --color-dark-2:        #050708;
    --color-dark-3:        #12181c;   /* footer card */
    --color-dark-4:        #1e2028;   /* family badge bg */
    --color-dark-5:        #262a35;   /* family badge hover */
    --color-dark-6:        #2a2a2a;
    --color-dark-7:        #2d2d2d;   /* talk-btn bg */
    --color-dark-8:        #333333;
    --color-dark-9:        #555555;
    --color-dark-10:       #71717b;

    /* legacy alias — 기존 변수명 호환 */
    --color-muted:         var(--color-gray-800);
    --color-muted-2:       var(--color-gray-900);
    --color-nav-inactive:  var(--color-gray-550);

    /* ===== Typography ===== */
    --font-sans:  "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-inter: "Inter", var(--font-sans);

    /* ===== Text tokens (설명글 등 공용 사이즈) =====
       모든 페이지의 desc 텍스트가 이 값을 참조.
       사이즈 조정은 이 한 줄만 수정하면 v1/서브페이지 전체 반영 */
    --font-size-desc:  18px;
    --line-height-desc: 1.6;

    /* ===== Layout ===== */
    --page-w: 1520px;

    /* ===== Spacing (gap) ===== */
    --gap-xs:  4px;
    --gap-sm:  8px;
    --gap-md:  12px;
    --gap-lg:  16px;
    --gap-xl:  20px;
    --gap-2xl: 24px;
    --gap-3xl: 32px;

    /* ===== Radius ===== */
    --radius-xs:   2px;
    --radius-sm:   4px;
    --radius-md:   6px;
    --radius-base: 8px;
    --radius-lg:   12px;
    --radius-xl:   16px;
    --radius-2xl:  20px;
    --radius-3xl:  24px;
    --radius-4xl:  32px;
    --radius-pill: 100px;
    --radius-full: 999px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans), serif;
    color: var(--color-ink);
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    word-break: keep-all;
    overflow-wrap: break-word;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg {
    display: block;
    max-width: 100%;
}

button {
    font: inherit;
    border: 0;
    background: none;
    cursor: pointer;
    color: inherit;
    padding: 0;
}

.container {
    width: var(--page-w);
    max-width: calc(100% - 40px);
    margin: 0 auto;
}

/* =========================================================
   Header (floating dark rounded bar)
   ========================================================= */

.site-header {
    position: fixed;
    top: 40px;
    /* transform 을 쓰면 fixed 자식(예: 모바일 .talk-btn FAB)의 containing block 이
       viewport 가 아닌 헤더가 되어버려서 위치가 어긋남 → margin:auto 로 중앙정렬 */
    left: 0;
    right: 0;
    margin: 0 auto;
    width: var(--page-w);
    max-width: calc(100% - 40px);
    z-index: 100;
    background: var(--color-dark);
    border-radius: var(--radius-xl);
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-header .logo img {
    height: 26px;
    width: auto;
}

.site-header .nav {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 56px;
}

.site-header .nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 8px;
    font-weight: 600;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
}

.site-header .nav a:hover,
.site-header .nav a.active {
    color: var(--color-white);
}

.site-header .nav a.active {
    border-bottom: 2px solid var(--color-red-accent);
}

.talk-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--color-dark-7);
    padding: 5px 10px 5px 5px;
    border-radius: var(--radius-md);
    color: var(--color-white);
    font-weight: 600;
    font-size: 16px;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.talk-btn:hover {
    background: var(--color-dark-9);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.talk-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.talk-btn img {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

.talk-btn:hover img {
    transform: rotate(-8deg) scale(1.08);
}

/* =========================================================
   Mobile menu (햄버거 버튼 + 슬라이드 다운 네비)
   기본은 숨김 / @media (max-width: 640px) 에서만 노출
   ========================================================= */
.mobile-menu-btn {
    display: none;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 0;
    padding: 8px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
.mobile-menu-btn .hamburger-line {
    width: 20px;
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}
.mobile-menu-btn.is-open .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.mobile-menu-btn.is-open .hamburger-line:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.is-open .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
    display: none;
}

/* =========================================================
   Hero Banner
   ========================================================= */

.hero-pin {
    position: relative;
    width: 100%;
    height: 320vh;
    z-index: 0;
}

.hero {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    overflow: hidden;
    text-align: center;
}

/* =========================================================
   Hero Background — 히어로 중앙의 큰 블러 원 하나 (은은한 pulse)
   ========================================================= */
.hero .hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1080px;
    height: 1080px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    /* closest-side : 그라디언트 반경을 요소의 절반(540)까지로 제한 →
       요소 경계에서 알파가 정확히 0 이 되어 좌우/상하 컷오프 사라짐 */
    background: radial-gradient(
        circle closest-side at center,
        rgba(37, 99, 235, 0.25) 0%,
        rgba(37, 99, 235, 0.15) 45%,
        rgba(37, 99, 235, 0.05) 75%,
        rgba(37, 99, 235, 0) 100%
    );
    filter: blur(4px);
    animation: heroGlowPulse 6s ease-in-out infinite;
    z-index: 0;
}

@keyframes heroGlowPulse {
    0%, 100% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.04);
    }
}

/* 배경 sine 곡선 3개 — 좌→우 draw-on 반복 */
.hero .hero-curves {
    position: absolute;
    left: 0;
    top: 35vh;
    width: 100%;
    height: 60vh;
    pointer-events: none;
    overflow: visible;
    z-index: 0;
}

.hero .hero-curve {
    stroke-linecap: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: heroCurveDraw 6s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

/* 그룹별 시차 — 셋이 시간차로 이어져 흐름 */
.hero .hero-curve-group--1 .hero-curve { animation-delay: 0s; }
.hero .hero-curve-group--2 .hero-curve { animation-delay: 0.4s; }
.hero .hero-curve-group--3 .hero-curve { animation-delay: 0.8s; }

@keyframes heroCurveDraw {
    0%   { stroke-dashoffset: 1; }
    45%  { stroke-dashoffset: 0; }
    60%  { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 1; }
}

/* 마우스가 히어로 위에 있을 때 : JS 가 각 곡선을 마우스로 수렴시키는 trail 경로로 override.
   CSS draw-on 애니메이션은 정지 + 전체 선 상시 표시. */
.hero .hero-curves.is-follow .hero-curve {
    animation: none;
    stroke-dashoffset: 0;
}

@media (prefers-reduced-motion: reduce) {
    .hero .hero-glow { animation: none; }
    .hero .hero-curve {
        animation: none;
        stroke-dashoffset: 0;
    }
}

.hero .hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: var(--gap-3xl);
    align-items: center;
}

.hero h1 {
    margin: 0;
    font-family: var(--font-sans), serif;
    font-weight: 800;
    font-size: 72px;
    line-height: 1.1;
    color: var(--color-black);
    display: flex;
    flex-direction: column;
    gap: var(--gap-sm);
}

.hero .hero-sub {
    margin: 0;
    font-weight: 500;
    font-size: 32px;
    line-height: 1.5;
    color: var(--color-muted);
    font-family: var(--font-inter), serif;
}

/* Hero 진입 애니메이션은 AOS(data-aos) 로 위임 — h1 span, hero-sub 참조 */

.scroll-indicator {
    position: absolute;
    left: 50%;
    bottom: 100px;
    z-index: 2;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 1.6s ease-in-out infinite;
}

.scroll-indicator img {
    width: 24px;
    height: 24px;
}

@keyframes bounce {
    0%,
    100% {
        transform: translate(-50%, 0);
    }
    50% {
        transform: translate(-50%, 10px);
    }
}

/* =========================================================
   Video Section
   ========================================================= */

.video-section {
    position: relative;
    z-index: 1;
    background: transparent;
    margin-top: -220vh;
    width: 100%;
    height: 220vh;
    padding: 0;
    display: block;
}

.aicc,
.reference,
.cta,
.site-footer {
    position: relative;
    z-index: 1;
}

.video-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-card {
    --t: 0;
    --card-w: min(1520px, calc(100vw - 40px));
    --card-h: min(855px, 85vh);

    width: calc(var(--card-w) + (100vw - var(--card-w)) * var(--t));
    height: calc(var(--card-h) + (100vh - var(--card-h)) * var(--t));
    border-radius: calc(var(--radius-2xl) * (1 - var(--t)));
    background: var(--color-surface-2);
    box-shadow:
        0 2px 8px 0 rgba(0, 0, 0, calc(0.04 * (1 - var(--t)))),
        0 8px 32px 0 rgba(0, 0, 0, calc(0.08 * (1 - var(--t))));
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: width, height, border-radius;
}

.video-card {
    position: relative;
}

.video-card video,
.video-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 재생 버튼. 카드 중앙에 원형으로 떠 있고, 재생이 시작되면 fade out. */
.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: rgba(10, 22, 40, 0.55);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: opacity 0.35s ease, background 0.2s ease, transform 0.2s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.video-play-btn:hover {
    background: rgba(10, 22, 40, 0.75);
    transform: translate(-50%, -50%) scale(1.06);
}

.video-play-btn svg {
    margin-left: 4px;
}

/* 재생이 시작되면 버튼 숨김 */
.video-card.is-playing .video-play-btn {
    opacity: 0;
    pointer-events: none;
}

.video-mute-btn {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(10, 22, 40, 0.55);
    color: var(--color-white);
    display: none; /* 정지 상태에선 숨김 */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background 0.2s ease, transform 0.2s ease, opacity 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.video-card.is-playing .video-mute-btn {
    display: flex;
}

.video-mute-btn:hover {
    background: rgba(10, 22, 40, 0.8);
    transform: scale(1.08);
}

/* 두 아이콘 중 현재 상태에 맞는 것만 표시 */
.video-mute-btn .icon-volume-off { display: none; }
.video-mute-btn.is-muted .icon-volume-on { display: none; }
.video-mute-btn.is-muted .icon-volume-off { display: block; }

/* 움직임 감소 요청 사용자에게는 카드/hero 모두 정적으로 정돈된 상태로 표시 */
@media (prefers-reduced-motion: reduce) {
    .hero-pin {
        height: auto;
        min-height: 0;
    }
    .hero {
        position: relative;
    }
    .video-section {
        height: auto;
        margin-top: 0;
        padding: 80px 0;
    }
    .video-sticky {
        position: static;
        height: auto;
    }
    .video-card {
        --t: 0;
    }
}

/* =========================================================
   AICC Solutions Section
   ========================================================= */

.aicc {
    padding: 150px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

.section-heading {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: var(--gap-md);
}

.section-heading .title {
    margin: 0;
    font-weight: 800;
    font-size: 48px;
    color: var(--color-ink);
}

.section-heading .subtitle {
    margin: 0;
    font-weight: 500;
    font-size: 22px;
    color: var(--color-muted);
}

.aicc-inner {
    position: relative;
    width: var(--page-w);
    max-width: calc(100% - 40px);
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

/* top: 50% + translateY(-50%) 로 뷰포트 세로 중앙에 sticky. */
.side-nav {
    position: sticky;
    top: 200px;
    flex: 0 0 160px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 16px 0;
    filter: drop-shadow(0px 2px 6px rgba(0, 0, 0, 0.08));
    display: flex;
    flex-direction: column;
    align-items: stretch;
    z-index: 2;
}

/* 슬라이딩 인디케이터 — active nav-item 뒤에 깔리는 파란 배경 + 왼쪽 파란 막대.
   JS 가 active 항목의 offsetTop/offsetHeight 를 transform/height 에 그대로 반영. */
.side-nav .nav-indicator {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 40px; /* 초기값. JS 첫 프레임에 정확한 값으로 덮어씀 */
    background: var(--color-nav-active-bg);
    transform: translate3d(0, 16px, 0);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    pointer-events: none;
    will-change: transform, height;
}

.side-nav .nav-indicator::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 50%;
    width: 3px;
    height: 20px;
    border-radius: var(--radius-xs);
    background: var(--color-blue-2);
    transform: translateY(-50%);
}

.side-nav .nav-item {
    position: relative;
    z-index: 1; /* 인디케이터 위에 텍스트가 표시되도록 */
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px 10px 16px;
    font-family: var(--font-inter), sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: var(--color-nav-inactive);
    text-align: left;
    background: transparent;
    transition: color 0.25s ease, font-weight 0.25s ease;
}

.side-nav .nav-item::before {
    content: "";
    width: 3px;
    height: 20px;
    flex-shrink: 0;
}

.side-nav .nav-item.active {
    color: var(--color-blue-2);
    font-weight: 500;
}

/* Feature blocks */
.aicc-blocks {
    /* side-nav 가 flex 왼쪽에 자리 잡고 나머지 폭을 이 블록이 채운다. */
    flex: 1 1 0;
    min-width: 0; /* flex 자식이 콘텐츠 폭에 눌리지 않게 */
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.feature-row {
    display: flex;
    gap: 50px;
    align-items: center;
    justify-content: center;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    width: 510px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: var(--gap-2xl);
}

.pill-label {
    align-self: flex-start;
    background: var(--color-pill-bg);
    color: var(--color-blue);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
}

.feature-title {
    margin: 0;
    font-weight: 800;
    font-size: 32px;
    color: var(--color-ink);
}

.feature-subtitle {
    margin: 0;
    font-weight: 600;
    font-size: 18px;
    color: var(--color-blue);
}

.feature-desc {
    margin: 0;
    font-weight: 500;
    font-size: var(--font-size-desc);
    line-height: var(--line-height-desc);
    color: var(--color-black);
}

.cta-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-inter), sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: var(--color-blue-2);
    padding-top: 8px;
    transition: gap 0.2s ease;
}

.cta-link:hover {
    gap: 10px;
}

.feature-media {
    flex: 1 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-3xl);
    overflow: hidden;
    min-width: 0;
}

.feature-media.gray {
    background: var(--color-surface-3);
    height: 500px;
}

.feature-media img,
.feature-media video {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--radius-xl);
}

.feature-media .shadow {
    box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.25);
    border-radius: var(--radius-lg);
    width: 700px;
    max-width: 100%;
    height: 434px;
    object-fit: cover;
}

#aicc-assistant .feature-media img {
    object-position: -1px 0;
}

/* Trust stats */
.trust {
    margin-top: 100px;
    width: 100%;
    padding: 100px 0;
    background: var(--color-surface-1);
    display: flex;
    justify-content: center;
}

.trust-grid {
    width: 100%;
    display: flex;
    gap: 80px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--gap-md);
}

.stat .num {
    font-weight: 800;
    font-size: 48px;
    color: var(--color-ink);
    line-height: 1;
}

.stat .label {
    font-weight: 500;
    font-size: 16px;
    color: var(--color-muted);
}

/* =========================================================
   Reference section
   ========================================================= */

.reference {
    padding: 150px 0;
    background: var(--color-white);
    display: flex;
    flex-direction: column;
    gap: 50px;
    align-items: center;
    overflow: hidden;
}

.reference-heading {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: var(--page-w);
    max-width: calc(100% - 40px);
}

.reference-heading h2 {
    margin: 0;
    font-weight: 700;
    font-size: 48px;
    color: var(--color-ink-2);
    letter-spacing: -1px;
}

.reference-heading p {
    margin: 0;
    font-size: 16px;
    color: var(--color-muted-2);
    line-height: 1.5;
}

.reference-heading .more {
    border: 1px solid var(--color-ink-2);
    padding: 12px 32px;
    border-radius: var(--radius-pill);
    font-family: var(--font-inter), sans-serif;
    font-weight: 500;
    font-size: 15px;
    color: var(--color-ink-2);
    transition: background 0.2s ease, color 0.2s ease;
}

.reference-heading .more:hover {
    background: var(--color-ink-2);
    color: var(--color-white);
}

/* Fixed top row (3 hero logos) */
.reference-top {
    display: flex;
    gap: 50px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: var(--page-w);
    max-width: calc(100% - 40px);
}

.reference-top img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

/* Marquee rows */
.marquee-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
    overflow: hidden;
}

.marquee {
    display: flex;
    width: max-content;
    gap: 50px;
    align-items: center;
    will-change: transform;
}

.marquee.pause-on-hover:hover {
    animation-play-state: paused;
}

.marquee-track {
    display: flex;
    gap: 50px;
    align-items: center;
    flex-shrink: 0;
}

.marquee-track img {
    width: 100%;
    max-height: 40px;
    height: auto;
    object-fit: contain;
}

/* Two rows scroll in opposite directions.
   Actual animation is bound in JS so it stays in sync when tracks
   are duplicated at runtime. */

/* =========================================================
   CTA Section
   ========================================================= */

.cta {
    position: relative;
    width: 100%;
    height: 700px;
    background: var(--color-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cta .glow {
    position: absolute;
    top: 50%;
    pointer-events: none;
    border-radius: 50%;
}

.cta .glow-left {
    left: 0;
    width: 640px;
    height: 640px;
    transform: translateY(-40%);
    background: radial-gradient(
        circle at center,
        rgba(37, 99, 235, 0.25) 0%,
        rgba(37, 99, 235, 0) 100%
    );
    filter: blur(100px);
}

.cta .glow-right {
    right: 11%;
    width: 600px;
    height: 600px;
    transform: translateY(-65%);
    background: radial-gradient(
        circle at center,
        rgba(6, 182, 212, 0.19) 0%,
        rgba(6, 182, 212, 0) 100%
    );
    filter: blur(100px);
}

.cta .waveform {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 300px;
    pointer-events: none;
}

.cta .waveform img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: var(--gap-3xl);
    align-items: center;
    width: 1000px;
    max-width: calc(100% - 40px);
    text-align: center;
}

.cta-tag {
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.5);
    color: var(--color-blue-3);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
}

.cta h2 {
    margin: 0;
    font-weight: 800;
    font-size: 48px;
    line-height: 1.2;
    color: var(--color-white);
}

.cta-inner p {
    margin: 0;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-gray-500);
    max-width: 760px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    background: var(--color-dark);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 18px 32px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 18px;
    color: var(--color-white);
    filter: drop-shadow(0px 8px 8px rgba(17, 36, 71, 0.25));
    transition: transform 0.2s ease, background 0.2s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
    background: var(--color-dark-3);
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
    background: var(--color-dark-2);
    color: var(--color-white);
    padding: 32px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--gap-md);
}

.footer-nav {
    width: var(--page-w);
    max-width: 100%;
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 13px;
}

.footer-nav .sep {
    color: var(--color-dark-9);
    font-family: "Noto Sans KR", sans-serif;
}

.footer-divider {
    width: var(--page-w);
    max-width: 100%;
    height: 1px;
    background: var(--color-dark-6);
}

.footer-main {
    width: var(--page-w);
    max-width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    min-height: 155px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--gap-2xl);
    font-size: 13px;
    line-height: 1.7;
}

.footer-left .info {
    display: flex;
    flex-direction: column;
    gap: var(--gap-sm);
}

.footer-left .info-row {
    display: flex;
    gap: 10px;
}

.footer-left .copyright {
    font-family: var(--font-inter), sans-serif;
    color: var(--color-gray-750);
    font-size: 12px;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--gap-2xl);
}

.footer-right .logo img {
    height: 26px;
    width: auto;
}

.family-site {
    display: flex;
    align-items: center;
    gap: 10px;
}

.family-site .label {
    color: var(--color-dark-10);
    font-family: "Noto Sans KR", sans-serif;
    font-size: 12px;
}

.family-site .sep {
    color: var(--color-dark-9);
    font-family: var(--font-inter), sans-serif;
    font-size: 12px;
}

.family-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-dark-4);
    border: 1px solid var(--color-dark-8);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    height: 33px;
    min-width: 36px;
    transition: background 0.2s ease;
}

.family-badge:hover {
    background: var(--color-dark-5);
}

.family-badge img {
    height: 25px;
    width: auto;
}

/* =========================================================
   Responsive tweaks (best-effort — 시안 자체는 1920px 기준)
   ========================================================= */

@media (max-width: 1200px) {
    .hero h1 {
        font-size: 52px;
    }
    .hero .hero-sub {
        font-size: 22px;
    }
    .section-heading .title {
        font-size: 36px;
    }
    .aicc-inner {
        /* 좁은 화면에서는 세로로 쌓고 side-nav 는 자기 자리에 그대로 (스크롤 따라오지 않음) */
        flex-direction: column;
        gap: 20px;
    }
    .side-nav {
        position: static;     /* sticky 해제 → 스크롤 따라오지 않음 */
        top: auto;
        flex: 0 0 auto;
        margin: 0 auto 20px;
        flex-direction: row;
        justify-content: center;
        min-width: 0;
    }
    .side-nav .nav-item::before {
        display: none;
    }

    /* 슬라이딩 indicator 는 세로 레이아웃 전용이라 mobile 에선 숨김.
       대신 active item 에 직접 배경을 입혀 pill 형태로 표시 */
    .side-nav .nav-indicator {
        display: none;
    }

    .side-nav .nav-item {
        border-radius: var(--radius-md);
        padding: 8px 16px;
        transition: background 0.25s ease, color 0.25s ease;
    }

    .side-nav .nav-item.active {
        background: var(--color-nav-active-bg);
    }

    .feature-row,
    .feature-row.reverse {
        flex-direction: column;
    }
    .feature-text {
        width: 100%;
    }
    /* 세로 배치 전환 시 flex-basis: 0 로 인해 세로 붕괴 → width/height 명시 */
    .feature-media {
        width: 100%;
        flex: 0 0 auto;
        height: auto;
    }
    .feature-media.gray {
        height: auto;
        min-height: 320px;
    }
    .feature-media img,
    .feature-media video,
    .feature-media .shadow {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
    .cta {
        height: auto;
        min-height: 460px;
        padding: 60px 20px;
    }
    .cta h2 {
        font-size: 32px;
    }
    .footer-main {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-right {
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .site-header {
        top: 12px;
        padding: 10px 14px;
    }
    .site-header .nav {
        display: none;
    }
    .mobile-menu-btn {
        display: flex;
    }
    /* 톡상담 : 헤더 안에서 빠져나와 우하단 원형 FAB 로 노출 */
    .talk-btn {
        position: fixed;
        bottom: 20px;
        right: 20px;
        top: auto;
        left: auto;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        padding: 0;
        justify-content: center;
        z-index: 90;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
    }
    .talk-btn:hover {
        transform: translateY(-2px) scale(1.03);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
    }
    .talk-btn:active {
        transform: translateY(0) scale(0.98);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
    }
    .talk-btn span {
        display: none;
    }
    .talk-btn img {
        width: 26px;
        height: 26px;
    }
    .mobile-nav {
        display: flex;
        position: fixed;
        top: 74px;
        left: 12px;
        right: 12px;
        background: var(--color-dark);
        border-radius: var(--radius-xl);
        padding: 12px;
        z-index: 99;
        flex-direction: column;
        gap: 4px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
        pointer-events: none;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    }
    .mobile-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
    .mobile-nav a {
        padding: 12px 14px;
        color: rgba(255, 255, 255, 0.7);
        font-weight: 600;
        font-size: 15px;
        border-radius: var(--radius-md);
        transition: color 0.2s ease, background 0.2s ease;
    }
    .mobile-nav a:hover,
    .mobile-nav a.active {
        color: var(--color-white);
        background: rgba(255, 255, 255, 0.08);
    }
    .hero {
        min-height: 720px;
    }
    .hero h1 {
        font-size: 38px;
    }
    .hero .hero-sub {
        font-size: 16px;
    }
    .video-card {
        height: 260px;
    }
    .trust{
        padding: 60px 20px;
    }
    .trust-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 24px;
        justify-items: center;
    }
    .stat .num {
        font-size: 32px;
    }
    .reference-heading h2 {
        font-size: 32px;
    }
    /* 로고 3개 1열로 세로 정렬 + 크기 축소 */
    .reference-top {
        flex-direction: column;
        gap: 20px;
    }
    .reference-top img {
        height: 36px;
    }
    .cta {
        min-height: 340px;
        padding: 48px 20px;
    }
    .cta h2 {
        font-size: 24px;
    }
    .site-footer {
        padding: 24px 20px;
    }
}
