/* AI ai.refit.kr — 강조색: 인디고 → 보라. 데이터 점은 주황 하나. 그 밖의 모든 것은 base.css 와 같음 */
:root { --accent: #6D67F5; --accent-2: #B1A6FF; --accent-ink: #0B0A26; --data: #F97316; }

/* ---------- 첫 화면: 그림 1 (관절 17점 + 파형 → 전사) ---------- */
.fig1 { margin: 0; position: relative; background: rgb(11 10 38 / .55); backdrop-filter: blur(10px); border: 1px solid var(--line-2); padding: 18px 18px 14px; animation: rise 1s .2s var(--ease) backwards;
  box-shadow: 0 40px 120px -40px rgb(0 0 0 / .9), 0 0 100px -30px var(--glow); clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 15.4px, 100% 100%, 0 100%); }
.fig1 canvas { display: block; width: 100%; aspect-ratio: 5 / 4; }
.fig1-asr { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 10px 12px; margin-top: 10px; border-top: 1px solid var(--line); background: rgb(0 0 0 / .25); font-family: var(--font-mono); font-size: 13px; }
.fig1-asr .t { color: var(--data); font-size: 12px; }
.fig1-asr .txt { color: var(--ink); letter-spacing: 0; font-family: var(--font-sans); font-size: 15px; font-weight: 500; }
.fig1-asr .caret { width: 2px; height: 18px; background: var(--accent-2); animation: caret 1s steps(2, start) infinite; }
@keyframes caret { to { visibility: hidden; } }
.fig1 figcaption { margin-top: 10px; font-family: var(--font-mono); font-size: 11px; color: var(--sub); line-height: 1.6; }
.fig1 figcaption b { color: var(--ink); font-weight: 500; }

/* ---------- 파이프라인 ---------- */
.pipe { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.pipe li { position: relative; padding: 22px 18px 4px 0; display: grid; gap: 8px; }
.pipe li + li { padding-left: 18px; border-left: 1px solid var(--line); }
.pipe li > span { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--accent); color: var(--accent-2); font-family: var(--font-mono); font-size: 12px; border-radius: 50%; box-shadow: 0 0 14px var(--glow); }
.pipe h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.pipe p { font-size: 14px; color: var(--sub); }
.pipe b { font-family: var(--font-mono); font-size: 14px; font-weight: 500; color: var(--data); }
.pipe li::after { content: ""; position: absolute; top: 36px; right: 10px; left: 56px; height: 1px; background: repeating-linear-gradient(90deg, var(--accent) 0 4px, transparent 4px 8px); opacity: .6; }
.pipe li:last-child::after { display: none; }

/* ---------- 세 갈래 ---------- */
.caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
.cap { display: flex; flex-direction: column; overflow: hidden; }
.cap-fig { aspect-ratio: 4 / 3; overflow: hidden; background: var(--panel); border-bottom: 1px solid var(--line); }
.cap-fig img, .cap-fig .pic-hold { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center); transition: transform .9s var(--ease); }
.cap:hover .cap-fig img { transform: scale(1.04); }
.cap-body { padding: 18px 20px 22px; display: grid; gap: 8px; }
.cap-body .mono { font-size: 11px; color: var(--accent-2); }
.cap h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.cap p { color: var(--sub); font-size: 14.5px; }

/* ---------- 실적 표 ---------- */
.paper-table { border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.pt-head, .pt-row { display: grid; grid-template-columns: 64px minmax(0, 2.4fr) minmax(0, 1fr) 96px; gap: 16px; align-items: center; padding: 13px 6px; }
.pt-head { font-family: var(--font-mono); font-size: 11px; color: var(--dim); border-bottom: 1px solid var(--line); letter-spacing: .06em; }
.pt-row { border-top: 1px solid var(--line); font-size: 14px; transition: background .2s; }
.pt-row:first-of-type { border-top: 0; }
.pt-row:hover { background: var(--glass-2); }
.pt-row b { font-weight: 700; display: block; }
.pt-row em { font-style: normal; color: var(--sub); font-size: 13px; }
.pt-row > span:last-child, .pt-head > span:last-child { text-align: right; }

/* ---------- 운영 중인 AI ---------- */
.aip { display: grid; overflow: hidden; }
.aip-media { aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--panel); }
.aip-media img, .aip-media .pic-hold { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, top); }
.aip-media img.is-mock { padding: 4%; }
.aip-body { padding: 22px 24px 26px; display: grid; gap: 8px; justify-items: start; }
.aip-body p { color: var(--sub); font-size: 15px; }

@media (max-width: 1080px) { .pipe { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pipe li:nth-child(4) { border-left: 0; padding-left: 0; } }
@media (max-width: 900px) { .caps { grid-template-columns: 1fr; } .pt-head { display: none; } .pt-row { grid-template-columns: 56px minmax(0, 1fr); } .pt-row > span:nth-child(n+3) { grid-column: 2; text-align: left; } }
@media (max-width: 640px) { .pipe { grid-template-columns: 1fr; } .pipe li + li { border-left: 0; padding-left: 0; } .pipe li::after { display: none; } }

/* 그림 1이 떠 있듯, 공정 점선이 흐름 */
.fig1 { animation: rise 1s .2s var(--ease) backwards, floaty 9s 1.4s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-10px); } }
.pipe li::after { animation: dash 1.4s linear infinite; }
@keyframes dash { to { background-position: 8px 0; } }
.pipe li > span { animation: ringPulse 2.6s ease-in-out infinite; }
.pipe li:nth-child(2) > span { animation-delay: .5s; } .pipe li:nth-child(3) > span { animation-delay: 1s; } .pipe li:nth-child(4) > span { animation-delay: 1.5s; } .pipe li:nth-child(5) > span { animation-delay: 2s; }
@keyframes ringPulse { 50% { box-shadow: 0 0 0 6px transparent, 0 0 18px var(--glow); } }
