/* =========================================================
   CALLBOTO 랜딩페이지 (리디자인)
   - 디자인 토큰 → 공통 → 섹션별 스타일 → 반응형
   ========================================================= */

/* ---------- 디자인 토큰 ---------- */
:root {
    /* 브랜드 그라디언트 (어두운 배경 위 기준) */
    --grad-brand: linear-gradient(90deg, #7b88ff 0%, #af51f7 50%, #f05bdf 100%);

    /* 메인 브랜드 컬러 */
    --c-brand: #3347ff;

    /* 포인트 컬러 */
    --c-green: #05d988;
    --c-glow-pink: rgba(123, 136, 255, 0.6);

    /* 뉴트럴 */
    --c-black: #000000;
    --c-ink: #111111;
    --c-ink-strong: #171a24;
    --c-white: #ffffff;
    --c-text-2: #767676;
    --c-text-3: #999999;
    --c-line: rgba(0, 0, 0, 0.08);

    /* 섹션 배경 */
    --c-cream: #faf6f0;
    --c-cream-2: #f6f3ee;
    --c-line-warm: #ebe7e3;

    /* 다크 섹션 위 텍스트 */
    --c-on-dark-2: #b2b2b2;

    /* 글래스 */
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.9);

    /* 모바일 다이어그램 연결선(레일) */
    --rail-v: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.12));
    --rail-h: rgba(255, 255, 255, 0.4);

    /* 레이아웃 */
    --container: 1440px;
    --container-pad: 24px;
    --radius-lg: 24px;
    --radius-md: 20px;
    --radius-sm: 12px;

    /* 기본(ko) 폰트 스택. 일본어는 하단 "언어별 오버라이드" 블록에서 재정의한다. */
    --font-sans: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Apple SD Gothic Neo', sans-serif;
}

/* ---------- 리셋 ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--c-ink);
    line-height: 1.6;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    word-break: keep-all;
}

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

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

ul {
    list-style: none;
}

/* ---------- 공통 유틸 ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

/* 브랜드 그라디언트 텍스트 */
.text-gradient {
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* 브랜드 그라디언트 알약 버튼 */
.btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 48px;
    padding: 0 22px;
    border-radius: 9999px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    cursor: pointer;
    border: 0;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-pill svg,
.btn-pill img {
    flex-shrink: 0;
}

.btn-arrow {
    width: 24px;
    height: 24px;
}

.btn-pill--gradient {
    background: var(--grad-brand);
    color: #fff;
    box-shadow: 0 8px 24px rgba(51, 71, 255, 0.28);
}

.btn-pill--gradient:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(51, 71, 255, 0.38);
}

.btn-pill--solid {
    background: var(--c-brand);
    color: #fff;
    box-shadow: 0 8px 24px rgba(51, 71, 255, 0.28);
}

.btn-pill--solid:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(51, 71, 255, 0.38);
}

.btn-pill--glass {
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.85);
    color: #fff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-pill--glass:hover {
    background: rgba(255, 255, 255, 0.16);
}

/* =========================================================
   헤더 / GNB
   ========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.header-inner {
    position: relative;
    max-width: var(--container);
    margin: 0 auto;
    height: 80px;
    padding: 0 var(--container-pad);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.header-nav {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 36px;
}

.header-nav a {
    font-size: 18px;
    font-weight: 500;
    color: var(--c-text-2);
    transition: color 0.15s ease;
}

.header-nav a:hover,
.header-nav a.is-active {
    color: var(--c-black);
}

.header-cta {
    height: 40px;
    padding: 0 18px;
    font-size: 15px;
}

/* 모바일 메뉴 버튼 (≤767px 에서만 보임, shared/js/nav.js 가 열고 닫음) */
.header-nav-toggle {
    display: none;
    position: relative;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    margin-left: 8px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: rgba(23, 26, 36, 0.06);
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.header-nav-toggle:hover {
    background: rgba(23, 26, 36, 0.1);
}

.header-nav-toggle span {
    position: absolute;
    left: 11px;
    width: 18px;
    height: 2px;
    border-radius: 1px;
    background: var(--c-ink-strong);
    transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.header-nav-toggle span:nth-child(1) { top: 13px; }
.header-nav-toggle span:nth-child(2) { top: 19px; }
.header-nav-toggle span:nth-child(3) { top: 25px; }

/* 열렸을 때: ☰ → ✕ */
.site-header.is-nav-open .header-nav-toggle span:nth-child(1) {
    top: 19px;
    transform: rotate(45deg);
}

.site-header.is-nav-open .header-nav-toggle span:nth-child(2) {
    opacity: 0;
}

.site-header.is-nav-open .header-nav-toggle span:nth-child(3) {
    top: 19px;
    transform: rotate(-45deg);
}

.header-nav a {
    white-space: nowrap;
}

/* 작은 데스크톱: 메뉴 5개 간격 축소 */
@media (min-width: 1081px) and (max-width: 1280px) {
    .header-nav {
        gap: 28px;
    }

    .header-nav a {
        font-size: 17px;
    }
}

/* 태블릿: 메뉴가 로고·버튼과 겹치지 않도록 가운데 고정을 풀고 간격·크기 축소 */
@media (min-width: 768px) and (max-width: 1080px) {
    .header-nav {
        position: static;
        transform: none;
        margin: 0 auto;
        gap: 18px;
    }

    .header-nav a {
        font-size: 15px;
    }
}

@media (min-width: 768px) and (max-width: 860px) {
    .header-nav {
        gap: 14px;
    }

    .header-nav a {
        font-size: 14px;
    }
}

/* =========================================================
   히어로
   ========================================================= */
.hero {
    padding: 20px;
    background: #fff;
}

.hero-stage {
    position: relative;
    max-width: 1820px;
    margin: 0 auto;
    min-height: 984px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background:
        radial-gradient(1200px 600px at 46% 42%, rgba(240, 91, 223, 0.28), transparent 60%),
        radial-gradient(900px 500px at 62% 55%, rgba(175, 81, 247, 0.22), transparent 65%),
        radial-gradient(700px 500px at 20% 30%, rgba(123, 136, 255, 0.12), transparent 60%),
        #050505;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 80px 40px;
}

/* ----- 다이어그램 ----- */
.hero-diagram {
    position: relative;
    width: 1140px;
    height: 470px;
    margin-top: 20px;
    transform-origin: center top;
}

.hero-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-chip-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-chip-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    line-height: 1.4;
}

.hero-chip-label {
    color: var(--c-on-dark-2);
    font-size: 20px;
    font-weight: 500;
}

.hero-chip-value {
    color: #fff;
    font-size: 24px;
    font-weight: 500;
}

/* 수신전화 노드 */
.hero-node--call {
    position: absolute;
    left: 0;
    top: 199px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-md);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    white-space: nowrap;
}

/* 중앙 오브 */
.hero-orb {
    position: absolute;
    left: 430px;
    top: 113px;
    width: 244px;
    height: 244px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, rgba(123, 136, 255, 0.25), transparent 70%);
}

.hero-orb::before {
    content: "";
    position: absolute;
    inset: 22px;
    border-radius: 50%;
    border: 1px dashed rgba(123, 136, 255, 0.6);
}

.hero-orb-core {
    position: relative;
    width: 156px;
    height: 156px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: 0 0 60px var(--c-glow-pink);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-orb-title {
    color: #fff;
    font-size: 26px;
    font-weight: 500;
    line-height: 1.4;
}

.hero-orb-sub {
    color: var(--c-on-dark-2);
    font-size: 22px;
    font-weight: 500;
    line-height: 1.4;
}

/* 우측 카드 4개 (세로 중심: 48 / 172 / 296 / 420 → SVG 연결선과 일치.
   ja는 카드 높이가 커져 60 / 204 / 348 / 492 로 달라진다 — 각 index.html 의 SVG 좌표 참고) */
.hero-cards {
    position: absolute;
    right: 0;
    top: 0;
    width: 330px;
    height: 470px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-card {
    height: 96px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 24px;
    border-radius: var(--radius-md);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    white-space: nowrap;
}

/* 카드 텍스트 래퍼: 고정폭(330px) 카드 안에서 긴 설명이 줄바꿈되도록 */
.hero-card .hero-chip-text {
    min-width: 0;
}

.hero-card-title {
    color: #fff;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.4;
    /* 제목은 한 줄 유지 (카드 nowrap 상속) */
}

.hero-card-desc {
    color: var(--c-on-dark-2);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.4;
}

/* ----- 상단 카피 (헤드라인 + 첫 리드) ----- */
.hero-headline {
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.hero-lead-top {
    font-size: 26px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--c-on-dark-2);
}

.hero-lead-top strong {
    color: #fff;
    font-weight: 700;
}

/* ----- 하단 카피 (리드 + CTA) ----- */
.hero-copy {
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.hero-title {
    font-size: 74px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    /* 아웃라인 텍스트: 안쪽은 배경색으로 채워 자모 겹침선을 가리고,
       흰색 외곽선(약 0.8px)은 실루엣 바깥에만 text-shadow로 그린다. */
    color: #050505;
    -webkit-text-fill-color: #050505;
    text-shadow:
        0.8px 0 0 #ffffff, -0.8px 0 0 #ffffff, 0 0.8px 0 #ffffff, 0 -0.8px 0 #ffffff,
        0.57px 0.57px 0 #ffffff, -0.57px 0.57px 0 #ffffff, 0.57px -0.57px 0 #ffffff, -0.57px -0.57px 0 #ffffff;
}

.hero-title-accent {
    /* '콜보토'만 흰색으로 채운 볼드 (외곽선 없음) */
    font-weight: 800;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    text-shadow: none;
}

.hero-lead {
    font-size: 26px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--c-on-dark-2);
}

.hero-lead strong {
    color: #fff;
    font-weight: 700;
}

.hero-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

/* =========================================================
   공통 섹션 요소
   ========================================================= */
.eyebrow {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.36;
    text-align: center;
}

.section-heading {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.36;
    color: var(--c-ink-strong);
    text-align: center;
    overflow-wrap: anywhere; /* 긴 일본어 제목의 서브픽셀 넘침 방지 */
}

/* =========================================================
   문제제기 섹션 ("이런 적 없으세요?")
   ========================================================= */
.problem {
    background: var(--c-cream);
    padding: 120px 0;
}

.problem-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 56px;
}

.problem-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.quote-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.quote-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 0; /* 그리드 열 폭 안에서 축소되도록 (일본어 긴 문장 넘침 방지) */
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 14px rgba(0, 0, 0, 0.06);
}

.quote-card .q-mark {
    flex-shrink: 0;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    color: var(--c-brand);
}

.quote-card .q-text {
    font-size: 26px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--c-ink-strong);
    text-align: center;
    min-width: 0;
    overflow-wrap: anywhere;
}

.problem-transition {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.transition-lead {
    font-size: 38px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--c-ink-strong);
}

.transition-accent {
    font-size: 50px;
    font-weight: 600;
    line-height: 1.4;
}

/* 그라디언트 배지 (섹션 라벨). 정렬은 부모 헤더의 align-items를 따름
   (How it Works=좌측, AI Voice/CONTACT=가운데) */
.badge-gradient {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    background: var(--grad-brand);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.36;
    white-space: nowrap;
}

/* =========================================================
   "전화를 받는 순간" 섹션 (How it Works)
   ========================================================= */
.howto {
    position: relative;
    background:
        radial-gradient(120% 90% at 50% 78%, rgba(240, 91, 223, 0.38), transparent 60%),
        radial-gradient(90% 80% at 88% 30%, rgba(175, 81, 247, 0.30), transparent 62%),
        linear-gradient(120deg, #ece3fb 0%, #f6dde9 52%, #ecd9fb 100%);
}

/* 스크롤 트랙: 이 높이만큼 좌측 스테이지가 핀 고정되며 채팅 → 카드로 전환된다 */
.howto-track {
    position: relative;
    height: 200vh;
}

/* 핀 고정 뷰포트 (좌: 스테이지 / 우: 헤더) */
.howto-pin {
    position: sticky;
    top: 0;
    min-height: 100vh;
    display: grid;
    /* 좌측 스테이지가 min-content로 넓어져 우측 헤더를 짓눌러 제목이 넘치던 문제 방지 (minmax(0,1fr)) */
    grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
    gap: 80px;
    align-items: center;
    padding-top: 104px;
    padding-bottom: 48px;
}

/* 우측 헤더 */
.howto-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
}

.howto-title {
    font-size: 46px;
    font-weight: 700;
    line-height: 1.36;
    color: var(--c-ink-strong);
    overflow-wrap: anywhere; /* 긴 일본어 제목이 헤더 폭 안에서 줄바꿈되도록 */
}

.howto-desc {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.45;
    color: #111;
    overflow-wrap: anywhere;
}

/* 좌측 스테이지: 채팅과 카드가 같은 셀에 겹쳐 스크롤로 크로스페이드 */
.howto-stage {
    position: relative;
    display: grid;
    align-items: center;
    min-height: 520px;
}

.howto-stage > .howto-chat,
.howto-stage > .howto-cards {
    grid-area: 1 / 1;
}

/* 콜봇 채팅 목업 레이어 */
.howto-chat {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: opacity, transform;
}

/* 채팅 뒤 왼쪽 위에 걸치는 원형 그래픽 (피그마 Ellipse 943 · #fff + 오퍼시티) */
.howto-chat::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 50%;
    left: 50%;
    width: 480px;
    height: 480px;
    transform: translate(calc(-50% - 160px), calc(-50% - 130px));
    border-radius: 50%;
    background: #ffffff;
    opacity: 0.5;
    pointer-events: none;
}

.howto-chat .chat-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
}

/* 6개 기능 카드: 2열 × 3행 그리드 */
.howto-cards {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    align-content: center;
}

/* 챗 목업 카드 */
.chat-card {
    flex-shrink: 0;
    width: 500px;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 16px rgba(0, 0, 0, 0.07);
}

.chat-card-header {
    height: 68px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    border-bottom: 1px solid #999;
}

.chat-card-header img {
    height: 20px;
    width: auto;
}

.chat-card-body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 28px;
    padding: 36px 28px;
    /* 폭·높이 고정 → 타이핑 애니메이션 중에도 카드 영역이 커지거나 작아지지 않음 */
    height: 480px;
    overflow: hidden;
}

.chat-bubble {
    max-width: 88%;
    padding: 20px 18px;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.45;
    color: #000;
    overflow-wrap: anywhere; /* 긴 일본어 문장이 말풍선 안에서 줄바꿈되도록 (모바일 카드 넘침 방지) */
}

.chat-bubble--bot {
    align-self: flex-start;
    /* 브랜드 그라디언트 테두리 (흰 배경 유지) */
    border: 1px solid transparent;
    border-radius: 2px 16px 16px 16px;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, #7b88ff 0%, #af51f7 50%, #f05bdf 100%) border-box;
}

.chat-bubble--user {
    align-self: flex-end;
    background: #e9e9e9;
    border-radius: 16px;
    padding: 20px 24px;
}

.chat-bubble .hl-ink {
    color: var(--c-ink-strong);
    font-weight: 700;
}

.chat-bubble .hl-green {
    color: var(--c-green);
    font-weight: 700;
}

/* 피그마에서 가져온 아이콘 이미지 (컬러 컨테이너 위 흰색 글리프) */
.hero-chip-icon img {
    width: 24px;
    height: 24px;
    display: block;
}

/* 기능 카드 (흰 카드 + 컬러 아이콘 타일) */
.fcard {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 24px;
    border-radius: 12px;
    background: #fff;
    color: var(--c-ink-strong);
    box-shadow: 0 12px 30px rgba(80, 40, 120, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-width: 0; /* 그리드 열 폭 안에서 축소·줄바꿈되도록 */
}

/* 카드 본문 텍스트도 열 폭 안에서 줄바꿈 (일본어 넘침 방지) */
.fcard-body {
    min-width: 0;
}

.fcard-title,
.fcard-desc {
    overflow-wrap: anywhere;
}

.fcard:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(80, 40, 120, 0.16);
}

.fcard-icon {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ic, #000);
}

.fcard-icon img {
    width: 24px;
    height: 24px;
    display: block;
}

.fcard-title {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
    color: #000;
}

.fcard-desc {
    margin-top: 2px;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.45;
    color: #767676;
}

/* 카드 스크롤 등장: JS(데스크톱)에서 스크롤 진행도로 opacity/transform 제어 → 초기 숨김 */
.js .howto-cards .fcard {
    opacity: 0;
    will-change: opacity, transform;
}

/* 좁은 화면·모션 최소화: 스테이지 핀/크로스페이드 없이 정적 노출 */
@media (max-width: 1080px) {
    .js .howto-cards .fcard {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .js .howto-cards .fcard {
        opacity: 1;
        transform: none;
    }

    .howto-chat {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* =========================================================
   BEFORE → AFTER 섹션 (4열)
   ========================================================= */
.beforeafter {
    background: #fff;
    padding: 120px 0;
}

.ba-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
}

.ba-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.ba-desc {
    font-size: 26px;
    font-weight: 500;
    line-height: 1.4;
    color: #111;
    overflow-wrap: anywhere;
}

/* 4열 그리드 — 각 열이 subgrid로 3행(before/arrow/after)을 공유해 행별 정렬 */
.ba-grid {
    width: 100%;
    display: grid;
    /* minmax(0,1fr): 열이 내용 min-content보다 커지지 않게 해 긴 텍스트(일본어)로 인한 가로 넘침 방지 */
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: auto auto auto;
    column-gap: 12px;
}

.ba-col {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
    row-gap: 8px;
    min-width: 0; /* 자식이 열 폭 안에서 줄바꿈되도록 최소너비 해제 */
}

/* before/after 카드도 열 폭 안에서 줄바꿈되도록 (긴 일본어 텍스트 넘침 방지) */
.ba-before,
.ba-after {
    min-width: 0;
}

/* 일본어 금칙처리(kinsoku)로 문장이 열 폭을 살짝 넘기는 것 방지 — 어디서든 줄바꿈 허용 */
.ba-before-text,
.ba-after-title,
.ba-after-desc {
    overflow-wrap: anywhere;
}

/* before 카드 */
.ba-before {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--c-line-warm);
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.ba-cardhead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.ba-cardhead .ba-label {
    color: var(--c-ink-strong);
}

.ba-cardhead .ba-num {
    color: var(--c-text-2);
}

.ba-before-body {
    padding: 16px 20px 18px;
}

.ba-before-text {
    font-size: 15px;
    line-height: 1.55;
    color: #444;
    text-decoration: line-through;
}

/* 화살표 */
.ba-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
    color: var(--c-brand);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

/* after 카드 (브랜드 그라디언트 테두리) */
.ba-after {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 20px 22px;
    border: 1px solid transparent;
    border-radius: 16px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.07);
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, #7b88ff 0%, #af51f7 50%, #f05bdf 100%) border-box;
}

.ba-after-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--c-brand);
}

.ba-after-desc {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.55;
    color: var(--c-ink-strong);
}

/* =========================================================
   AI OPERATOR 교환수 섹션 (통화 시나리오)
   ========================================================= */
/* =========================================================
   AI 보이스 섹션 (다크)
   ========================================================= */
.aivoice {
    position: relative;
    padding: 120px 0;
    background:
        radial-gradient(72% 90% at 12% 6%, rgba(175, 81, 247, 0.5), transparent 55%),
        radial-gradient(72% 95% at 90% 96%, rgba(123, 136, 255, 0.5), transparent 55%),
        radial-gradient(60% 80% at 58% 55%, rgba(240, 91, 223, 0.28), transparent 62%),
        #241d33;
}

.aivoice-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
}

.aivoice-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.aivoice-title {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.36;
    color: #fff;
}

.aivoice-desc {
    font-size: 26px;
    font-weight: 500;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.8);
}

/* 음성 카드 그리드 */
.voice-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.voice-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e8ed;
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    text-align: center;
    font-family: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.voice-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.voice-card-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 20px;
}

.voice-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--voice);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.165px;
}

.voice-name {
    color: #18182a;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.165px;
    line-height: 1.32;
}

.voice-tag {
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--voice-soft);
    color: var(--voice);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.66px;
    line-height: 1.6;
}

.voice-wave {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 68px; /* 재생버튼/파형 높이 통일 → 토글 시 카드 흔들림 방지 */
    padding: 16px 20px 18px;
    background: #f5f6f9;
    color: var(--voice);
}

.voice-wave svg.wave {
    width: 100%;
    height: auto;
    max-height: 32px;
}

/* 재생 전: 파형 자리에 재생버튼(pill) 표시 (파형 숨김) */
.voice-play-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 999px;
    background: var(--voice);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.2px;
    line-height: 1;
    box-shadow: 0 6px 16px var(--voice-soft);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.voice-play-btn svg {
    width: 12px;
    height: 12px;
    display: block;
}

.voice-card:hover .voice-play-btn {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px var(--voice-soft);
}

.voice-wave svg.wave {
    display: none;
}

/* 재생 중: 재생버튼 숨기고 파형 표시 */
.voice-card.is-playing .voice-play-btn {
    display: none;
}

.voice-card.is-playing .voice-wave svg.wave {
    display: block;
}

.aivoice-note {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    overflow-wrap: anywhere; /* 긴 일본어 안내문이 좁은 화면에서 줄바꿈되도록 */
}

/* =========================================================
   클로징 CTA 밴드 (그라디언트)
   ========================================================= */
.closing {
    padding: 80px 0;
    background: linear-gradient(105deg, #ece3f4 0%, #f8dccb 30%, #ff9bb2 62%, #d488db 100%);
}

.closing-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.closing-title {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.36;
    color: var(--c-ink-strong);
}

.closing-desc {
    font-size: 26px;
    font-weight: 400;
    line-height: 1.4;
    color: #111;
}

.closing-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding: 20px 40px;
    border-radius: 999px;
    background: var(--c-ink-strong);
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.closing-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(23, 26, 36, 0.35);
}

.closing-btn img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* =========================================================
   CONTACT / 도입문의 폼 섹션 (다크)
   ========================================================= */
.contact {
    position: relative;
    padding: 80px 0;
    background:
        radial-gradient(60% 85% at 14% 18%, rgba(175, 81, 247, 0.28), transparent 60%),
        radial-gradient(60% 85% at 86% 88%, rgba(123, 136, 255, 0.28), transparent 60%),
        #0b0b0d;
}

.contact-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.contact-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.contact-title {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.36;
    color: #fff;
}

.contact-desc {
    font-size: 26px;
    font-weight: 500;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

/* 폼 카드 */
.contact-form {
    width: 560px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 36px 24px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.12);
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-field {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    color: #242424;
}

.form-label .req {
    color: #e6001f;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    border: 1px solid #c4cfda;
    border-radius: 4px;
    background: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    color: #242424;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input,
.form-select {
    height: 40px;
    padding: 0 12px;
}

.form-textarea {
    min-height: 120px;
    padding: 12px;
    resize: vertical;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #767676;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--c-brand);
    box-shadow: 0 0 0 3px rgba(51, 71, 255, 0.15);
}

/* 커스텀 셀렉트 (다운 셰브론) */
.form-select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23242424' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
}

/* 제출 */
.form-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.form-submit {
    width: 300px;
    max-width: 100%;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 0;
    border-radius: 6px;
    background: var(--c-brand);
    color: #fff;
    font-family: inherit;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 8px 24px rgba(51, 71, 255, 0.28);
}

.form-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(51, 71, 255, 0.38);
}

.form-submit img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.form-note {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: #767676;
    text-align: center;
}

/* =========================================================
   Real Cases 고객사 사례 섹션
   ========================================================= */
.cases {
    background: var(--c-cream-2);
    padding: 120px 0;
    overflow: hidden;
}

.cases-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    margin-bottom: 48px;
}

.cases-desc {
    max-width: 672px;
    font-size: 26px;
    font-weight: 500;
    line-height: 1.4;
    color: #111;
}

/* 마퀴 뷰포트 : 좌우 풀블리드 + 양끝 페이드 */
.cases-viewport {
    width: 100%;
    overflow-x: auto; /* no-JS 폴백: 수동 스크롤 */
    -webkit-overflow-scrolling: touch;
}

.js .cases-viewport {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}

.cases-track {
    display: flex;
    width: max-content;
}

/* JS가 카드를 복제해 무한 루프를 만든 뒤 활성화 (우 → 좌) */
.cases-track.is-marquee {
    animation: cases-scroll 45s linear infinite;
}

.cases-viewport:hover .cases-track.is-marquee {
    animation-play-state: paused;
}

@keyframes cases-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(var(--cases-shift, -50%)); }
}

.case-card {
    flex: 0 0 auto;
    width: 400px;
    margin-right: 20px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.case-quote {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 20px 18px;
}

.case-quote-head {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.case-mark {
    font-size: 38px;
    font-weight: 700;
    line-height: 1;
    color: #c8c8c8;
}

.case-quote-title {
    color: var(--c-brand);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere; /* 고정폭 카드(400px) 안에서 긴 제목이 줄바꿈되도록 (잘림 방지) */
}

.case-quote-text {
    color: #444;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.case-profile {
    border-top: 1px solid #e0e0e0;
    padding: 12px 20px 20px;
}

.case-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.case-name {
    color: var(--c-ink-strong);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.case-role {
    color: var(--c-ink-strong);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

/* 모션 최소화 : 자동 슬라이드 정지, 수동 스크롤 허용 */
@media (prefers-reduced-motion: reduce) {
    .cases-track.is-marquee {
        animation: none;
    }

    .js .cases-viewport {
        overflow-x: auto;
        -webkit-mask-image: none;
        mask-image: none;
    }
}

/* =========================================================
   AI OPERATOR 교환수 섹션 (다크, 통화 시나리오)
   ========================================================= */
.operator {
    background: #0b0b0d;
    padding: 120px 0;
}

.operator-inner {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.operator-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.operator-title {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.36;
    color: #fff;
}

.operator-desc {
    font-size: 26px;
    font-weight: 500;
    line-height: 1.4;
    color: #d8d8dc;
}

.op-cards {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

/* 카드 = 투명 컨테이너 (탭 pill + 대화 박스) */
.op-card {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* 탭 pill (카드별 컬러 틴트) */
.op-badge {
    align-self: center;
    padding: 6px 12px;
    border-radius: 100px;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
}

.op-card--connect .op-badge { background: rgba(15, 181, 140, 0.3); }
.op-card--callback .op-badge { background: rgba(51, 71, 255, 0.3); }

/* 대화 박스 (카드별 옅은 틴트) — 인터랙션 JS가 이 안의 말풍선을 순차 등장시킴 */
.op-scn {
    flex: 1 1 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px;
    border-radius: 22px;
}

.op-card--connect .op-scn { background: rgba(15, 181, 140, 0.1); }
.op-card--callback .op-scn { background: rgba(51, 71, 255, 0.1); }

/* 구분선 (통화 시작 / 통화 종료 등) */
.op-divider {
    display: flex;
    align-items: center;
    gap: 16px;
}

.op-divider::before,
.op-divider::after {
    content: "";
    flex: 1 1 0;
    min-width: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
}

.op-divider span {
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
}

/* 말풍선 */
.op-bubble {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 100%;
    padding: 17px 16px;
    line-height: 1.4;
    word-break: keep-all;
}

.op-who {
    font-size: 15px;
    font-weight: 600;
}

.op-msg {
    font-size: 18px;
    font-weight: 500;
}

/* 좌측 정렬 말풍선 (콜보토·담당자): 좌상단 뾰족 */
.op-bubble--bot,
.op-bubble--agent,
.op-bubble--agentglass {
    align-self: flex-start;
    border-radius: 2px 8px 8px 8px;
}

/* 우측 정렬 말풍선 (고객): 우상단 뾰족 */
.op-bubble--customer {
    align-self: flex-end;
    align-items: flex-end;
    text-align: right;
    padding: 17px 24px;
    border-radius: 8px 2px 8px 8px;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    color: #fff;
}

.op-bubble--customer .op-who,
.op-bubble--customer .op-msg {
    color: #fff;
}

/* 콜보토 / 담당자(응답) 흰색 말풍선 */
.op-bubble--bot,
.op-bubble--agent {
    background: #fff;
}

.op-bubble--bot .op-who,
.op-bubble--agent .op-who {
    color: #ff8dab;
}

.op-bubble--bot .op-msg,
.op-bubble--agent .op-msg {
    color: #000;
}

/* 담당자 글래스 말풍선 (테두리 있음) */
.op-bubble--agentglass {
    padding: 17px 24px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: #fff;
}

.op-bubble--agentglass .op-who,
.op-bubble--agentglass .op-msg {
    color: #fff;
}

/* =========================================================
   반응형
   ========================================================= */

/* 좁은 데스크톱/태블릿: 히어로 스테이지·다이어그램 축소 */
@media (max-width: 1240px) {
    .hero-stage {
        min-height: 0;
        padding: 72px 24px;
        gap: 36px;
    }
}

/* 다이어그램은 레이아웃 폭(1140)을 유지한 채 시각적으로만 축소.
   transform-origin: center top 이므로 아래 여백을 음수 margin으로 상쇄한다. */
@media (max-width: 1240px) and (min-width: 768px) {
    .hero-diagram {
        transform: scale(0.8);
        margin-bottom: -94px; /* 470 * 0.2 */
    }
}

@media (max-width: 1000px) and (min-width: 768px) {
    .hero-diagram {
        transform: scale(0.62);
        margin-bottom: -179px; /* 470 * 0.38 */
    }

    .hero-title {
        font-size: 50px;
    }

    .hero-lead {
        font-size: 20px;
    }
}

/* 모바일 */
@media (max-width: 767px) {
    :root {
        --container-pad: 16px;
    }

    /* 헤더: 로고 + CTA + 메뉴 버튼. 메뉴는 버튼을 누르면 아래로 펼쳐짐 */
    .header-inner {
        height: 64px;
    }

    .header-cta {
        margin-left: auto;
    }

    .header-nav-toggle {
        display: block;
    }

    .header-nav {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 6px 16px 14px;
        background: #fff;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        box-shadow: 0 18px 36px rgba(17, 24, 39, 0.1);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
    }

    .site-header.is-nav-open .header-nav {
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
    }

    .header-nav a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px 4px;
        border-bottom: 1px solid #f0f0f3;
        font-size: 17px;
        font-weight: 600;
        color: #333;
    }

    .header-nav a:last-child {
        border-bottom: 0;
    }

    .header-nav a::after {
        content: "";
        width: 7px;
        height: 7px;
        border-top: 1.5px solid #b0b4be;
        border-right: 1.5px solid #b0b4be;
        transform: rotate(45deg);
    }

    .header-nav a.is-active {
        color: var(--c-brand);
    }

    .header-nav a.is-active::after {
        border-color: var(--c-brand);
    }

    .header-logo img {
        height: 22px;
    }

    /* 히어로 다이어그램: 세로 스택 */
    .hero-stage {
        padding: 48px 16px;
        gap: 28px;
        border-radius: 16px;
    }

    /* 모바일: 상단 흐름(수신전화·콜보토) 생략, 4가지 기능만 2×2 그리드 */
    .hero-diagram {
        width: 100%;
        height: auto;
        margin-top: 0;
    }

    .hero-lines,
    .hero-node--call,
    .hero-orb {
        display: none;
    }

    .hero-cards {
        position: static;
        width: 100%;
        height: auto;
        max-width: none;
        padding: 0;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    /* 레일/커넥터 제거 */
    .hero-cards::before,
    .hero-cards::after,
    .hero-card::before,
    .hero-card::after {
        content: none;
    }

    /* 2×2 셀: 아이콘 위, 텍스트 아래 세로 카드 */
    .hero-card {
        height: auto;
        min-height: 128px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
        white-space: normal;
        min-width: 0; /* 그리드 열 폭 안에서 축소되도록 (일본어 텍스트로 카드가 넘쳐 잘리던 문제 방지) */
    }

    /* 카드 텍스트 래퍼도 열 폭 안에서 줄바꿈 */
    .hero-card .hero-chip-text {
        min-width: 0;
    }

    .hero-card-title {
        font-size: 18px;
        overflow-wrap: anywhere;
    }

    .hero-card-desc {
        font-size: 15px;
        line-height: 1.4;
        overflow-wrap: anywhere;
    }

    .hero-title {
        font-size: 34px;
    }

    .hero-lead,
    .hero-lead-top {
        font-size: 16px;
    }

    .hero-actions {
        width: 100%;
    }

    .hero-actions .btn-pill {
        width: 100%;
    }

    /* 문제제기 섹션 */
    .problem {
        padding: 72px 0;
    }

    .problem-inner {
        gap: 40px;
    }

    .eyebrow {
        font-size: 18px;
    }

    .section-heading {
        font-size: 26px;
    }

    .quote-grid {
        grid-template-columns: 1fr;
    }

    .quote-card {
        padding: 18px;
        gap: 8px;
    }

    .quote-card .q-mark {
        font-size: 24px;
    }

    .quote-card .q-text {
        font-size: 18px;
    }

    .transition-lead {
        font-size: 24px;
    }

    .transition-accent {
        font-size: 30px;
    }

    /* "전화를 받는 순간" 섹션 */
    .howto {
        padding: 72px 0;
    }

    .howto-title {
        font-size: 28px;
    }

    .howto-desc {
        font-size: 18px;
    }

    .chat-bubble {
        font-size: 16px;
        padding: 14px 14px;
    }

    .chat-bubble--user {
        padding: 14px 18px;
    }

    /* 카드 1열 */
    .howto-cards {
        grid-template-columns: 1fr;
    }

    .fcard {
        padding: 20px;
        gap: 10px;
    }

    .fcard-title {
        font-size: 22px;
    }

    .fcard-desc {
        font-size: 16px;
    }
}

/* 태블릿: 인용구 텍스트/제목 축소 */
@media (min-width: 768px) and (max-width: 1080px) {
    .problem {
        padding: 88px 0;
    }

    .section-heading {
        font-size: 30px;
    }

    .quote-card .q-text {
        font-size: 20px;
    }

    .transition-lead {
        font-size: 30px;
    }

    .transition-accent {
        font-size: 38px;
    }

    /* "전화를 받는 순간" 섹션 */
    .howto-title {
        font-size: 34px;
    }

    .howto-desc {
        font-size: 20px;
    }
}

/* 좁은 화면: 핀 고정·크로스페이드 해제 → 헤더 → 채팅 → 카드 세로 스택 */
@media (max-width: 1080px) {
    .howto-track {
        height: auto;
    }

    .howto-pin {
        position: static;
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 72px var(--container-pad);
    }

    /* 헤더를 맨 위로 + 가운데 정렬 */
    .howto-head {
        order: -1;
        align-items: center;
        text-align: center;
    }

    /* 스테이지: 겹침 해제 → 채팅 후 카드 자연 스택 */
    .howto-stage {
        display: flex;
        flex-direction: column;
        align-items: stretch; /* 데스크톱의 center 상속 해제 → 자식이 콘텐츠 폭으로 줄지 않음 */
        gap: 28px;
        min-height: 0;
    }

    .howto-stage > .howto-chat,
    .howto-stage > .howto-cards {
        grid-area: auto;
    }

    /* 채팅 영역: 말풍선 유무와 관계없이 항상 전체 폭 유지 */
    .howto-chat {
        width: 100%;
        opacity: 1 !important;
        transform: none !important;
    }

    /* 원형 글로우는 데스크톱 전용 (좁은 화면 가로 넘침 방지) */
    .howto-chat::before {
        display: none;
    }
}

/* 태블릿: 2열. subgrid 유지 → 같은 행 좌우 before끼리·after끼리 높이 정렬.
   subgrid 내부 간격(8px, .ba-col row-gap)과 행 밴드 간격(48px, .ba-grid row-gap)을 분리. */
@media (min-width: 768px) and (max-width: 1080px) {
    .beforeafter {
        padding: 88px 0;
    }

    .ba-desc {
        font-size: 20px;
    }

    .ba-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 12px;
        row-gap: 48px; /* 행 밴드(topic 줄) 사이 간격 */
    }
}

/* 모바일: 1열. subgrid 해제하고 각 topic을 독립 flex 블록으로 스택 */
@media (max-width: 767px) {
    .beforeafter {
        padding: 72px 0;
    }

    .ba-inner {
        gap: 32px;
    }

    .ba-desc {
        font-size: 18px;
    }

    .ba-grid {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 48px;
    }

    .ba-col {
        display: flex;
        flex-direction: column;
        grid-row: auto;
        gap: 8px;
    }
}

/* AI 보이스: 태블릿 3열 */
@media (min-width: 768px) and (max-width: 1080px) {
    .aivoice {
        padding: 88px 0;
    }

    .aivoice-title {
        font-size: 30px;
    }

    .aivoice-desc {
        font-size: 20px;
    }

    .voice-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

/* AI 보이스: 모바일 2열 */
@media (max-width: 767px) {
    .aivoice {
        padding: 72px 0;
    }

    .aivoice-inner {
        gap: 28px;
    }

    .aivoice-title {
        font-size: 24px;
    }

    .aivoice-desc {
        font-size: 16px;
    }

    .voice-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .aivoice-note {
        font-size: 14px;
    }
}

/* AI OPERATOR: 태블릿 */
@media (min-width: 768px) and (max-width: 1080px) {
    .operator {
        padding: 88px 0;
    }

    .operator-title {
        font-size: 30px;
    }

    .operator-desc {
        font-size: 20px;
    }

    .op-scn {
        padding: 22px;
    }
}

/* AI OPERATOR: 모바일 1열 */
@media (max-width: 767px) {
    .operator {
        padding: 72px 0;
    }

    .operator-inner {
        gap: 28px;
    }

    .operator-title {
        font-size: 24px;
    }

    .operator-desc {
        font-size: 16px;
    }

    .op-cards {
        grid-template-columns: 1fr;
    }

    .op-scn {
        padding: 20px;
    }

    .op-bubble {
        max-width: 92%;
    }
}

/* AI OPERATOR: 태블릿 이하 세로 스택 */
@media (max-width: 900px) {
    .op-cards {
        flex-direction: column;
    }
}

@media (min-width: 768px) and (max-width: 1080px) {
    .operator {
        padding: 88px 0;
    }

    .operator-title {
        font-size: 30px;
    }

    .operator-desc {
        font-size: 20px;
    }
}

@media (max-width: 767px) {
    .operator {
        padding: 72px 0;
    }

    .operator-inner {
        gap: 28px;
    }

    .operator-title {
        font-size: 24px;
    }

    .operator-desc {
        font-size: 16px;
    }

    .op-scn {
        padding: 20px;
    }

    .op-msg {
        font-size: 16px;
    }
}

/* Real Cases: 태블릿 */
@media (min-width: 768px) and (max-width: 1080px) {
    .cases {
        padding: 88px 0;
    }

    .cases-desc {
        font-size: 20px;
    }
}

/* Real Cases: 모바일 — 카드 폭 축소 */
@media (max-width: 767px) {
    .cases {
        padding: 72px 0;
    }

    .cases-head {
        margin-bottom: 32px;
    }

    .cases-desc {
        font-size: 18px;
    }

    .case-card {
        width: 300px;
        margin-right: 16px;
    }
}

/* CONTACT 폼: 태블릿 */
@media (min-width: 768px) and (max-width: 1080px) {
    .contact-title {
        font-size: 30px;
    }

    .contact-desc {
        font-size: 20px;
    }
}

/* CONTACT 폼: 모바일 */
@media (max-width: 767px) {
    .contact {
        padding: 64px 0;
    }

    .contact-title {
        font-size: 24px;
    }

    .contact-desc {
        font-size: 16px;
    }

    .contact-form {
        padding: 24px 16px;
        gap: 16px;
    }

    .form-row {
        flex-direction: column;
        gap: 16px;
    }
}

/* 클로징 밴드: 태블릿/모바일 */
@media (min-width: 768px) and (max-width: 1080px) {
    .closing-title { font-size: 30px; }
    .closing-desc { font-size: 20px; }
}

@media (max-width: 767px) {
    .closing { padding: 56px 0; }
    .closing-title { font-size: 24px; }
    .closing-desc { font-size: 16px; }
    .closing-btn { padding: 16px 28px; font-size: 18px; }
    .closing-btn img { width: 20px; height: 20px; }
}

/* =========================================================
   인터랙션 (스크롤 등장 / 앰비언트 / 재생)
   ========================================================= */

/* 스크롤 진입 페이드업 (JS 활성 시에만 숨김) */
.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* 히어로 앰비언트 */
.hero-orb-core {
    animation: orbBreath 3.6s ease-in-out infinite;
}

@keyframes orbBreath {
    0%, 100% { box-shadow: 0 0 60px var(--c-glow-pink); }
    50% { box-shadow: 0 0 96px var(--c-glow-pink); }
}

.hero-line {
    stroke-dasharray: 3 9;
    stroke-linecap: round;
    filter: drop-shadow(0 0 4px rgba(123, 136, 255, 0.6));
    animation: heroFlow 0.9s linear infinite;
}

@keyframes heroFlow {
    to { stroke-dashoffset: -12; }
}

.hero-lines circle {
    transform-box: fill-box;
    transform-origin: center;
    filter: drop-shadow(0 0 6px rgba(123, 136, 255, 0.75));
    animation: nodePulse 1.8s ease-in-out infinite;
}

@keyframes nodePulse {
    0%, 100% { opacity: 0.5; transform: scale(0.82); }
    50% { opacity: 1; transform: scale(1.15); }
}

/* AI 보이스 재생 상태 */
.voice-card.is-playing {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
}

.voice-card.is-playing .voice-wave svg rect {
    transform-box: fill-box;
    transform-origin: center;
    animation: vWave 0.85s ease-in-out infinite;
}

.voice-card.is-playing .voice-wave svg rect:nth-child(3n) { animation-delay: 0.1s; }
.voice-card.is-playing .voice-wave svg rect:nth-child(3n+1) { animation-delay: 0.22s; }
.voice-card.is-playing .voice-wave svg rect:nth-child(4n) { animation-delay: 0.32s; }

@keyframes vWave {
    0%, 100% { transform: scaleY(0.55); }
    50% { transform: scaleY(1.35); }
}

@media (prefers-reduced-motion: reduce) {
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .hero-orb-core,
    .hero-line,
    .hero-lines circle,
    .voice-card.is-playing .voice-wave svg rect { animation: none; }
}

/* 챗 목업 순차 등장 (campaign.cloud 스타일) */
.chat-bubble--in {
    animation: bubbleIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes bubbleIn {
    from { opacity: 0; transform: translateY(14px) scale(0.96); }
    to { opacity: 1; transform: none; }
}

/* 타이핑 인디케이터 (봇 말풍선 앞) */
.chat-typing {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 20px 18px;
    border: 1px solid transparent;
    border-radius: 2px 16px 16px 16px;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, #7b88ff 0%, #af51f7 50%, #f05bdf 100%) border-box;
    animation: bubbleIn 0.3s ease both;
}

.chat-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #c4c4c4;
    animation: typingDot 1s infinite ease-in-out;
}

.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingDot {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.35; }
    30% { transform: translateY(-5px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .chat-bubble--in,
    .chat-typing,
    .chat-typing span { animation: none; }
}

/* AI 교환수 순차 등장 (campaign.cloud 스타일) */
.op-in {
    animation: bubbleIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* 교환수 타이핑 인디케이터 (고객 말풍선 앞, 글래스) */
.op-typing {
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 20px 22px;
    border-radius: 8px 2px 8px 8px;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    animation: bubbleIn 0.3s ease both;
}

.op-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    animation: typingDot 1s infinite ease-in-out;
}

.op-typing span:nth-child(2) { animation-delay: 0.15s; }
.op-typing span:nth-child(3) { animation-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
    .op-in, .op-typing, .op-typing span { animation: none; }
}

/* =========================================================
   CONTACT 폼 에러 상태 / 완료 모달
   ========================================================= */
.form-input.is-error,
.form-select.is-error {
    border-color: #e6001f;
    box-shadow: 0 0 0 3px rgba(230, 0, 31, 0.12);
}

.form-error {
    display: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: #e6001f;
}

.form-field.has-error .form-error {
    display: block;
}

/* 완료 모달 */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 8, 20, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.modal-card {
    position: relative;
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 40px 28px 28px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    text-align: center;
    transform: translateY(12px) scale(0.98);
    transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal.is-open .modal-card {
    transform: none;
}

.modal-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--c-ink-strong);
}

.modal-desc {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.55;
    color: var(--c-text-2);
}

.modal-confirm {
    margin-top: 8px;
    min-width: 140px;
}

@media (prefers-reduced-motion: reduce) {
    .modal, .modal-card { transition: none; }
}

/* 앵커 이동 시 스티키 헤더(80px)에 가리지 않도록 */
main section[id] {
    scroll-margin-top: 88px;
}

/* ===================== 푸터 (campaign-cloud 기반) ===================== */
.footer {
    background-color: #323232;
    color: #fff;
    font-size: 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 25px 0;
}

.footer-content {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

.footer-top {
    border-bottom: 1px solid #767676;
    padding-bottom: 18px;
    margin-bottom: 18px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.footer-brand-logo {
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-info-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-links {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 6px;
    font-weight: 400;
}

.footer-policy-link {
    color: #fff;
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-policy-link:hover {
    text-decoration: underline;
    color: #d9d9d9;
}

.footer-row {
    display: flex;
    gap: 10px;
    align-items: center;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    flex-wrap: wrap;
}

.footer .separator {
    width: 1px;
    height: 12px;
    background-color: #767676;
    flex-shrink: 0;
}

.footer .separator--tall {
    height: 24px;
    margin: 0 10px;
}

.footer-bottom {
    display: flex;
    gap: 8px;
    align-items: center;
    padding-left: 98px;
    flex-wrap: wrap;
}

.cert-icons {
    display: flex;
    gap: 4px;
    align-items: center;
}

.cert-icon {
    width: 40px;
    height: 40px;
}

.cert-text {
    display: flex;
    gap: 14px;
    align-items: center;
    font-weight: 300;
    font-size: 10px;
    color: #fff;
    line-height: 1.4;
    flex-wrap: wrap;
}

@media (max-width: 960px) {
    .footer-top {
        flex-direction: column;
        gap: 12px;
    }

    .footer-info-container {
        width: 100%;
    }

    .footer-bottom {
        padding-left: 0;
    }
}

@media (max-width: 640px) {
    .footer-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-row .separator {
        display: none;
    }
}

/* =========================================================
   언어별 오버라이드 — 일본어 (html lang="ja")
   ---------------------------------------------------------
   위 공통 스타일은 한국어(ko) 기준값이다. 일본어는 아래에서만 재정의한다.
   ※ 히어로 다이어그램의 SVG 연결선 좌표(viewBox 0 0 1140 552)는 CSS가 아니라
     각 index.html 에 하드코딩되어 있으므로, 아래 높이값을 바꾸면 SVG도 함께 맞춰야 한다.
   ========================================================= */

html[lang="ja"] {
    --font-sans: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'YuGothic', 'Noto Sans JP', 'Meiryo', 'Segoe UI', 'Apple SD Gothic Neo', sans-serif;
}

/* 일본어는 띄어쓰기가 없어 keep-all(단어 단위 줄바꿈)이면 문장이 통째로 넘쳐 잘림.
   normal로 두어 문자 단위 자연 줄바꿈(금칙처리 반영)이 되도록 함. */
html[lang="ja"] body,
html[lang="ja"] .op-bubble {
    word-break: normal;
}

/* ----- 히어로 다이어그램: 일본어 카피가 길어 카드 설명이 2줄 → 카드 96→120px, 컨테이너 470→552px ----- */
html[lang="ja"] .hero-diagram,
html[lang="ja"] .hero-cards {
    height: 552px;
}

html[lang="ja"] .hero-card {
    height: 120px;
}

/* 컨테이너 세로 중심(276px)에 맞춤 — 노드 높이 92px / 오브 크기 244px 기준 */
html[lang="ja"] .hero-node--call {
    top: 230px;
}

html[lang="ja"] .hero-orb {
    top: 154px;
}

/* 설명만 줄바꿈 허용 — 긴 일본어("担当者に確認してから取り次ぎ" 등)가 카드 밖으로 삐져나가 잘리던 문제 방지 */
html[lang="ja"] .hero-card-desc {
    white-space: normal;
}

/* ----- 도입 방법: 일본어 말풍선(18px, 각 2줄) 4개가 480px에선 마지막이 잘려 높이 상향 ----- */
html[lang="ja"] .chat-card-body {
    height: 544px;
}

/* ----- 고객사 사례: 줄 수 차이(2~3줄)로 카드마다 본문·구분선 위치가 어긋나지 않도록 높이 고정 ----- */
html[lang="ja"] .case-quote-title {
    min-height: 92px; /* 3줄 기준 */
}

html[lang="ja"] .case-quote-text {
    min-height: 93px; /* 4줄 기준 */
}

/* ----- 반응형: 다이어그램 축소 시 음수 margin 상쇄값도 552 기준으로 ----- */
@media (max-width: 1240px) and (min-width: 768px) {
    html[lang="ja"] .hero-diagram {
        margin-bottom: -110px; /* 552 * 0.2 */
    }
}

@media (max-width: 1000px) and (min-width: 768px) {
    html[lang="ja"] .hero-diagram {
        margin-bottom: -210px; /* 552 * 0.38 */
    }
}

@media (max-width: 767px) {
    /* 화면폭에 따라 유동 축소 → 2번째 줄 "コルボトが整理します。"가 항상 한 줄에 들어가
       단어 중간(整理し/ます)에서 끊기지 않도록 함 */
    html[lang="ja"] .hero-title {
        font-size: clamp(24px, 7.2vw, 32px);
    }

    /* 모바일은 말풍선이 16px/여백 축소로 480px에 들어가므로 공통값(480px) 유지 */
    html[lang="ja"] .chat-card-body {
        height: 480px;
    }

    /* 모바일은 카드 폭이 좁아 줄 수가 늘어남 → 제목 4줄·본문 6줄 기준 */
    html[lang="ja"] .case-quote-title {
        min-height: 124px;
    }

    html[lang="ja"] .case-quote-text {
        min-height: 140px;
    }
}
