/* ===== 마케터JD 모션 · 슬라이더 · 이미지 ===== */

/* --- 히어로: GIF처럼 움직이는 AI 검색 데모 --- */
.ai-demo { background: #fff; color: var(--ink); border-radius: 22px; padding: 18px 18px 14px; box-shadow: 0 30px 70px rgba(0,0,0,.4); position: relative; overflow: hidden; min-height: 430px; display: flex; flex-direction: column; }
.ai-demo::before { content: ""; position: absolute; inset: -40% -40% auto auto; width: 260px; height: 260px; background: radial-gradient(circle, rgba(124,58,237,.18), transparent 70%); pointer-events: none; }
.ai-top { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.ai-top i { width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; display: block; }
.ai-model { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 800; background: #f1f5f9; padding: 5px 11px 5px 6px; border-radius: 999px; transition: .3s; }
.ai-model img { width: 20px; height: 20px; border-radius: 6px; }
.ai-q { align-self: flex-end; background: #eef2ff; border-radius: 16px 16px 4px 16px; padding: 11px 14px; font-size: 15px; font-weight: 600; max-width: 88%; min-height: 44px; }
.caret { display: inline-block; width: 2px; height: 1.05em; background: var(--brand); vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ai-searching { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); margin: 14px 0 6px; opacity: 0; transition: opacity .3s; }
.ai-searching.on { opacity: 1; }
.spin { width: 14px; height: 14px; border: 2px solid #c7d2fe; border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ai-run-src { display: inline-flex; gap: 5px; }
.ai-run-src span { font-size: 11.5px; background: #f1f5f9; border-radius: 999px; padding: 2px 8px; animation: pop .35s ease both; }
.ai-a { font-size: 14.8px; line-height: 1.75; color: #1f2937; min-height: 150px; }
.ai-a mark { background: linear-gradient(90deg, #ede9fe, #cffafe); color: #4c1d95; font-weight: 800; padding: 1px 5px; border-radius: 6px; box-shadow: 0 0 0 0 rgba(124,58,237,.5); animation: glow 1.6s ease-out 2; }
@keyframes glow { 0% { box-shadow: 0 0 0 0 rgba(124,58,237,.55); } 100% { box-shadow: 0 0 0 12px rgba(124,58,237,0); } }
.ai-sources { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; min-height: 26px; }
.ai-sources span { font-size: 12px; background: #f1f5f9; border-radius: 999px; padding: 4px 10px; animation: pop .4s ease both; }
.ai-sources span.me { background: #dcfce7; color: #166534; font-weight: 800; }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.96); } to { opacity: 1; transform: none; } }
.ai-dots { display: flex; gap: 6px; justify-content: center; margin-top: auto; padding-top: 12px; }
.ai-dots b { width: 22px; height: 4px; border-radius: 4px; background: #e2e8f0; overflow: hidden; position: relative; }
.ai-dots b.on::after { content: ""; position: absolute; inset: 0; background: var(--brand); transform-origin: left; animation: fillbar var(--dur, 9s) linear forwards; }
@keyframes fillbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.ai-note { font-size: 11.5px; color: #94a3b8; text-align: center; margin-top: 8px; }

/* --- 플랫폼 로고 마퀴 --- */
.logo-marquee { background: #070d1f; border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06); padding: 18px 0; overflow: hidden; position: relative; }
.logo-marquee::before, .logo-marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none; }
.logo-marquee::before { left: 0; background: linear-gradient(90deg, #070d1f, transparent); }
.logo-marquee::after { right: 0; background: linear-gradient(-90deg, #070d1f, transparent); }
.marquee-label { text-align: center; color: #94a3b8; font-size: 13px; font-weight: 700; letter-spacing: .08em; margin-bottom: 12px; }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 28s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 10px; color: #e2e8f0; font-weight: 800; font-size: 17px; white-space: nowrap; }
.marquee-track img { width: 30px; height: 30px; border-radius: 8px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --- 스플릿 섹션 (제안서 장표 + 설명) --- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split .visual { position: relative; }
.split .visual img { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 30px 60px rgba(15,23,42,.25); }
.float { animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.split h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.3; letter-spacing: -.03em; margin-bottom: 16px; }
.split p { color: var(--muted); font-size: 16.5px; margin-bottom: 14px; }
.split .quote { font-size: 19px; font-weight: 800; color: var(--navy); border-left: 4px solid var(--brand); padding-left: 14px; margin: 18px 0; }
.pain-wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; align-items: center; }
.pain-wrap .pain-list { margin: 0; }
.pain-wrap img { width: 100%; height: auto; border-radius: 22px; box-shadow: 0 24px 50px rgba(30,27,75,.3); }

/* --- 공통 슬라이더 --- */
.slider { position: relative; border-radius: 20px; overflow: hidden; background: #111827; box-shadow: 0 30px 60px rgba(15,23,42,.28); }
.slider-track { display: flex; transition: transform .7s cubic-bezier(.65,.05,.25,1); will-change: transform; }
.slide { min-width: 100%; position: relative; margin: 0; }
.slide { overflow: hidden; }
.slide img { width: 100%; height: auto; display: block; cursor: zoom-in; }
.slide.active img { animation: kenburns 7s ease-out both; }
@keyframes kenburns { from { transform: scale(1.06); } to { transform: scale(1); } }
.slide figcaption { position: relative; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: #0b0f1f; border-top: 1px solid rgba(255,255,255,.08); color: #fff; padding: 14px 18px; font-size: 14.5px; transform: translateY(12px); opacity: 0; transition: .5s .25s; }
.slide.active figcaption { transform: none; opacity: 1; }
.slide figcaption .chip { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 2px 10px; font-size: 12.5px; font-weight: 800; }
.slide figcaption .chip.hl { background: #7c3aed; border-color: #7c3aed; }
.slide figcaption strong { color: #a5f3fc; }
.slider-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--navy); font-size: 22px; font-weight: 900; cursor: pointer; z-index: 3; box-shadow: 0 6px 18px rgba(0,0,0,.25); transition: .2s; }
.slider-nav:hover { transform: translateY(-50%) scale(1.08); }
.slider-nav.prev { left: 12px; } .slider-nav.next { right: 12px; }
.slider-progress { position: absolute; left: 0; right: 0; top: 0; height: 4px; background: rgba(255,255,255,.12); z-index: 3; }
.slider-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #7c3aed, #06b6d4); }
.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.slider-dots button { border: 1.5px solid var(--line); background: #fff; color: var(--muted); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: .2s; }
.slider-dots button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.dark .slider-dots button { background: transparent; border-color: rgba(255,255,255,.2); color: #cbd5f5; }
.dark .slider-dots button.on { background: #7c3aed; border-color: #7c3aed; color: #fff; }
.slider-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 34px 0 14px; flex-wrap: wrap; }
.slider-title h3 { font-size: 20px; letter-spacing: -.02em; }
.slider-title .badge { font-size: 12.5px; font-weight: 800; color: #7c3aed; background: #f3e8ff; border-radius: 999px; padding: 4px 10px; }

/* --- 전·후 비교 섹션 (다크) --- */
.ba { background: radial-gradient(900px 400px at 90% 0%, rgba(124,58,237,.35), transparent 60%), #0b0f1f; color: #fff; }
.ba .section-head h2 { color: #fff; }
.ba .section-head p { color: #a5b4cf; }
.ba .section-head .kicker { color: #c4b5fd; }
.ba-legend { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: -24px 0 26px; }
.ba-legend span { font-size: 13px; color: #cbd5f5; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; padding: 5px 12px; }
.ba-legend b { color: #fca5a5; } .ba-legend em { font-style: normal; color: #86efac; font-weight: 800; }
.ba .note-mask { text-align: center; color: #7c86a6; font-size: 12.5px; margin-top: 14px; }

/* --- 업종 이미지 스트립 --- */
.photo-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.photo-strip figure { position: relative; margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 3/2; }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.photo-strip figure:hover img { transform: scale(1.07); }
.photo-strip figcaption { position: absolute; left: 10px; bottom: 10px; background: rgba(7,13,31,.78); color: #fff; font-size: 13px; font-weight: 800; padding: 5px 11px; border-radius: 999px; }

/* --- 스크롤 등장 애니메이션 --- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-left { opacity: 0; transform: translateX(-36px); transition: .8s cubic-bezier(.2,.7,.2,1); }
.reveal-right { opacity: 0; transform: translateX(36px); transition: .8s cubic-bezier(.2,.7,.2,1); }
.reveal-left.in, .reveal-right.in { opacity: 1; transform: none; }
.bar-fill { transition: width 1.4s cubic-bezier(.2,.7,.2,1); }

/* --- 라이트박스 --- */
.lightbox { position: fixed; inset: 0; background: rgba(3,6,18,.92); z-index: 100; display: none; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.lightbox.on { display: flex; animation: pop .25s ease both; }
.lightbox img { max-width: min(1400px, 100%); max-height: 92vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }

/* --- 사례 페이지 갤러리 --- */
.proof-grid { display: grid; gap: 18px; margin: 18px 0 26px; }
.proof-grid figure { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #0b0f1f; }
.proof-grid img { width: 100%; display: block; cursor: zoom-in; }
.proof-grid figcaption { padding: 10px 14px; font-size: 14px; color: #cbd5f5; }

@media (max-width: 960px) {
  .split, .pain-wrap { grid-template-columns: 1fr; }
  .photo-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .ai-demo { display: flex; min-height: 400px; }
  .slider-nav { width: 36px; height: 36px; font-size: 18px; }
  .slide figcaption { transform: none; opacity: 1; font-size: 13px; padding: 12px 14px; }
  .marquee-track { gap: 34px; animation-duration: 20s; }
  .marquee-track span { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal, .reveal-left, .reveal-right { opacity: 1; transform: none; }
}


/* ===== 2026-11-18 v2: 업종 링크 · 세로 비교 그래픽 · 세로 리포트 · 전후 카드 ===== */
a.card-link { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
a.card-link:hover { text-decoration: none; transform: translateY(-4px); border-color: var(--brand); box-shadow: 0 18px 40px rgba(79,70,229,.16); }
.card-cta { margin-top: auto; padding-top: 14px; font-weight: 800; font-size: 14.5px; color: var(--brand); }
a.card-link:hover .card-cta { text-decoration: underline; }
.strip-link { display: block; color: inherit; }
.strip-link:hover { text-decoration: none; }

/* SEO → AI 세로 비교 그래픽 */
.search-compare { max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: 0; }
.sc-card { border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 20px 44px rgba(15,23,42,.14); border: 1px solid var(--line); }
.sc-head { padding: 14px 18px; font-size: 20px; font-weight: 900; color: #fff; background: #0f172a; text-align: center; letter-spacing: -.01em; }
.sc-head small { font-size: 14px; font-weight: 700; opacity: .8; margin-left: 4px; }
.sc-card.ai .sc-head { background: linear-gradient(90deg, #4f46e5, #7c3aed); }
.sc-search { margin: 14px 16px 6px; border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 16px; display: flex; justify-content: space-between; font-weight: 700; font-size: 16px; color: var(--ink); }
.sc-search i { font-style: normal; opacity: .6; }
.sc-label { margin: 12px 18px 6px; font-size: 13.5px; font-weight: 800; color: var(--brand); }
.sc-card.seo .sc-label { color: #334155; }
.sc-links { list-style: none; margin: 0 16px; counter-reset: l; }
.sc-links li { counter-increment: l; padding: 10px 0 10px 30px; border-bottom: 1px solid #eef2f7; position: relative; display: flex; flex-direction: column; }
.sc-links li::before { content: counter(l); position: absolute; left: 4px; top: 9px; font-weight: 900; color: #2563eb; font-size: 18px; }
.sc-links b { color: #2563eb; font-size: 15.5px; }
.sc-links span { color: var(--muted); font-size: 14.5px; }
.sc-answer { margin: 0 16px; border: 1.5px solid #c7d2fe; background: #f5f3ff; border-radius: 14px; padding: 14px 16px; font-size: 16.5px; line-height: 1.7; color: #1e1b4b; }
.sc-answer mark { background: linear-gradient(90deg,#ddd6fe,#a5f3fc); color: #3b0764; font-weight: 900; padding: 1px 6px; border-radius: 6px; }
.sc-src { margin: 0 16px 0 36px; font-size: 14.5px; color: #334155; }
.sc-src li { padding: 3px 0; }
.sc-cap { margin: 14px 0 0; padding: 12px 18px; background: #f8fafc; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); text-align: center; }
.sc-cap strong { display: block; color: var(--navy); font-size: 16px; }
.sc-arrow { text-align: center; padding: 14px 0; font-weight: 800; color: #7c3aed; font-size: 15px; }
.sc-arrow span { display: block; font-size: 30px; line-height: 1; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

/* 세로 리포트 목록 */
.report-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 36px 0 16px; }
.report-head h3 { font-size: 22px; letter-spacing: -.02em; }
.report-head .badge { font-size: 13px; font-weight: 800; color: #6d28d9; background: #f3e8ff; border-radius: 999px; padding: 5px 12px; }
.report-list { display: grid; gap: 22px; }
.report-fig { margin: 0; border-radius: 18px; overflow: hidden; background: #16151d; box-shadow: 0 20px 44px rgba(15,23,42,.2); }
.report-fig figcaption { display: flex; flex-direction: column; gap: 3px; padding: 14px 18px; background: #0b0f1f; color: #fff; }
.report-fig figcaption b { font-size: 17px; }
.report-fig figcaption span { font-size: 14.5px; color: #a5f3fc; }
.report-fig img { width: 100%; height: auto; display: block; cursor: zoom-in; }
.report-fig.narrow img { max-width: 720px; margin: 0 auto; }
.zoom-hint { text-align: center; font-size: 13px; color: var(--muted); margin-top: 10px; }

/* 전·후 비교 카드 (세로 나열, 큰 글씨) */
.ba-list { display: grid; gap: 28px; }
.ba-item { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 22px; padding: 22px; }
.ba-q { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.ba-q h3 { font-size: clamp(20px, 2.6vw, 26px); color: #fff; letter-spacing: -.02em; width: 100%; margin-top: 4px; }
.ba-q .chip { background: rgba(124,58,237,.25); border: 1px solid #7c3aed; color: #e9d5ff; border-radius: 999px; padding: 3px 12px; font-weight: 800; font-size: 14px; }
.ba-q .plat { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.1); border-radius: 999px; padding: 4px 12px 4px 5px; color: #fff; font-weight: 800; font-size: 14px; }
.ba-q .plat img { width: 22px; height: 22px; border-radius: 6px; }
.ba-pair { display: grid; grid-template-columns: 1fr 44px 1fr; gap: 12px; align-items: stretch; }
.ba-card { background: #fff; color: #1f2937; border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.ba-card.before { background: #f1f5f9; }
.ba-card.after { box-shadow: 0 0 0 3px #22c55e inset, 0 18px 40px rgba(34,197,94,.18); }
.ba-label { font-weight: 900; font-size: 15px; display: flex; align-items: center; gap: 8px; color: #475569; }
.ba-card.after .ba-label { color: #15803d; }
.ba-label .dot { width: 10px; height: 10px; border-radius: 50%; background: #94a3b8; }
.ba-card.after .ba-label .dot { background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.2); }
.ba-body { font-size: 16.5px; line-height: 1.7; flex: 1; }
.ba-body p { margin: 0 0 8px; }
.ba-body .dim { color: #64748b; font-size: 15px; }
.ba-body .hl { background: #f0fdf4; border-left: 4px solid #22c55e; padding: 8px 12px; border-radius: 8px; }
.ba-body mark { background: #dcfce7; color: #14532d; font-weight: 900; padding: 0 5px; border-radius: 5px; }
.ba-body .place { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; border: 2px solid #ef4444; border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; background: #fff; }
.ba-body .place b { font-size: 17px; }
.ba-body .place small { color: #64748b; font-size: 13.5px; width: 100%; padding-left: 26px; }
.ba-result { font-weight: 900; font-size: 16px; border-radius: 10px; padding: 10px 12px; text-align: center; }
.ba-result.no { background: #e2e8f0; color: #475569; }
.ba-result.yes { background: #22c55e; color: #fff; }
.ba-arrow { display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 900; color: #a78bfa; }
.ba-orig { margin-top: 14px; background: transparent; border: 1px solid rgba(255,255,255,.25); color: #cbd5f5; border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.ba-orig:hover { background: rgba(255,255,255,.08); }

@media (max-width: 760px) {
  .ba-item { padding: 16px; border-radius: 18px; }
  .ba-pair { grid-template-columns: 1fr; }
  .ba-arrow { transform: rotate(90deg); height: 36px; }
  .ba-body { font-size: 16px; }
  .report-head h3 { font-size: 20px; }
  .sc-answer { font-size: 16px; }
}

.pain-wrap figure { max-width: 400px; margin: 0 auto !important; }
@media (max-width: 960px) { .pain-wrap figure { max-width: 340px; } }

.ba-inline { border-radius: 20px; padding: 18px; margin: 14px 0 10px; }
.ba-inline .ba-q h3 { margin: 4px 0 0; }

a.card-link .tag { align-self: flex-start; }

/* mobile overflow fix: hero .visual.reveal-right starts at translateX(36px) and sticks out of the 1-column mobile layout */
@media (max-width: 960px) and (prefers-reduced-motion: no-preference) {
  .reveal-right, .reveal-left { transform: translateY(28px); }
  .reveal-right.in, .reveal-left.in { transform: none; }
}
