/* ==========================================================================
   DEXWEAVER — redesign3 : 실사 이미지 적용 레이어
   base(styles.redesign.css) 뒤에 로드. 적용 이미지용 신규 클래스만 추가.
   레이아웃/색은 redesign2와 동일 — 이미지 figure 스타일만 정의.
   ========================================================================== */

/* 섹션 폭 전체 figure (다크 섹션 기본) */
.applied-fig {
    margin: 44px 0 0;
}
.applied-fig img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--r-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.42);
}

/* 라이트 섹션(ABOUT) 위에 올라가는 figure */
.applied-fig.on-light img {
    border-color: var(--line);
    box-shadow: 0 22px 55px rgba(10, 14, 22, 0.14);
}

/* 캡션 — 다크 섹션 기본(밝은 흐린 글씨) */
.fig-cap {
    margin-top: 14px;
    font-size: 0.85rem;
    line-height: 1.65;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.5);
    word-break: keep-all;
}
.applied-fig.on-light .fig-cap {
    color: var(--muted);
}

/* PHM/BMS 카드 상단 이미지 */
.phm-card-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--r);
    margin-bottom: 26px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* SOLUTION 01·02·03 이미지 — 비율 유지(width/height 속성 때문에 세로로 늘어나는 것 방지) */
.sol-img { height: auto; }

/* SOLUTION 인지 영역(.sol-img) 아래 캡션 정렬 */
.sol-visual .fig-cap {
    text-align: left;
}

@media (max-width: 768px) {
    .applied-fig { margin-top: 32px; }
    .phm-card-img { margin-bottom: 20px; }
}

/* ==========================================================================
   HOME hero — full-bleed dark (redesign3 전용)
   다크 풀블리드: 좌측 텍스트(다크 위 화이트) + 우측 이미지가 엣지까지 꽉.
   .hero-layout / .hero-content 는 HOME 에만 존재 → 다른 페이지 영향 없음.
   ========================================================================== */
.hero-layout {
    background: #0f1726;
    padding: 0;
    gap: 0;
    align-items: stretch;
    overflow: hidden;
}
.hero-content {
    flex: 0 1 48%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(40px, 6vh, 84px) clamp(28px, 4.5vw, 72px);
    position: relative;
    z-index: 2;
}
.hero-layout .badge-tech {
    color: #7fe9ff;
    background: rgba(31, 227, 255, 0.1);
    border-color: rgba(31, 227, 255, 0.28);
}
.hero-content .main-title { color: #fff; }
.hero-content .description { color: rgba(255, 255, 255, 0.72); }

.hero-layout .btn-primary { background: #1f6bff; color: #fff; box-shadow: 0 14px 32px rgba(31, 107, 255, 0.3); }
.hero-layout .btn-primary:hover { background: #3b82ff; transform: translateY(-3px); }
.hero-layout .btn-secondary { color: #fff; border-color: rgba(255, 255, 255, 0.28); background: transparent; }
.hero-layout .btn-secondary:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

.hero-layout .hero-keywords .kw {
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.14);
}
.hero-layout .hero-keywords .kw.lead { color: #06121f; background: #1fe3ff; border-color: #1fe3ff; }
.hero-layout .hero-keywords .arrow { color: rgba(255, 255, 255, 0.4); }

.hero-image-box {
    flex: 1 1 52%;
    align-self: stretch;
    position: relative;
    justify-content: stretch;
    min-height: 0;
}
/* 히어로 슬라이드 — 두 장을 겹쳐두고 크로스페이드 */
.hero-slides { position: absolute; inset: 0; }
.hero-image-box .home-robot-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: 34% center;
    border-radius: 0;
    filter: none;
    opacity: 0;
    transition: opacity 1.4s ease-in-out;
}
.hero-image-box .home-robot-img.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
    .hero-image-box .home-robot-img { transition: none; }
}
/* 좌측 엣지를 다크로 블렌딩 — 텍스트 영역과의 솔기 제거 */
.hero-image-box::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, #0f1726 0%, rgba(7, 11, 18, 0.4) 15%, rgba(7, 11, 18, 0) 40%);
}

@media (max-width: 768px) {
    .hero-layout { flex-direction: column; padding: 0; gap: 0; }
    .hero-content { flex: none; max-width: none; padding: 40px 24px 26px; text-align: center; align-items: center; }
    .hero-image-box { flex: none; width: 100%; height: 44vh; }
    .hero-image-box .home-robot-img { height: 100%; }
    .hero-image-box::before { background: linear-gradient(0deg, #0f1726 0%, rgba(7, 11, 18, 0) 34%); }
}
