/* AI Agent 섹션(agent/) 전용. 상단 메뉴·푸터·기본 토큰은 ../insights/assets/site.css, 메뉴는 ../assets/nav.css를 쓴다. */
.a-wrap { width: min(var(--s-wrap), calc(100% - 40px)); margin: 0 auto; }
.a-sec { padding: 68px 0; }
.a-sec.alt { background: #fff; border-block: 1px solid var(--s-line); }
.a-sec.dark { background: #0b0c0e; color: #e8e9ec; }
.a-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--s-secondary); margin: 0 0 12px; }
.a-sec.dark .a-eyebrow { color: #6db2ff; }
.a-h2 { font-size: clamp(25px, 3.2vw, 36px); font-weight: 800; line-height: 1.3; letter-spacing: -.02em; margin: 0 0 12px; }
.a-sub { color: var(--s-body); max-width: 780px; line-height: 1.8; margin: 0 0 30px; font-size: 17px; }
.a-sec.dark .a-sub { color: #b5b8be; }
.a-sub b, .a-card b { color: var(--s-ink); }
.a-note { font-size: 14px; line-height: 1.7; color: var(--s-muted); margin: 14px 0 0; }
.a-sec.dark .a-note { color: #9a9da4; }

/* 히어로 */
.a-hero { position: relative; overflow: hidden; background: #fff; border-bottom: 1px solid var(--s-line); padding: 60px 0 52px; }
.a-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(900px 440px at 88% 0%, rgba(45, 140, 255, .14), transparent 60%); }
.a-hero .a-wrap { position: relative; }
.a-hero h1 { font-size: clamp(30px, 4.6vw, 52px); font-weight: 800; line-height: 1.25; letter-spacing: -.025em; margin: 0; max-width: 900px; }
.a-hero .lead { color: var(--s-body); font-size: clamp(17px, 1.8vw, 20px); line-height: 1.75; max-width: 800px; margin: 20px 0 0; }
.a-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.a-badge { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; padding: 4px 11px; border-radius: 999px; background: rgba(45, 140, 255, .10); color: var(--s-secondary); }
.a-badge.warn { background: #fff4e0; color: #8a5300; }
.a-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.a-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 700; font-size: 16px; line-height: 1.3; padding: 13px 22px; border-radius: 999px; border: 1px solid var(--s-line); background: #fff; color: var(--s-ink); transition: transform .15s, box-shadow .2s; }
.a-btn:hover { transform: translateY(-1px); box-shadow: var(--s-shadow); }
.a-btn.primary { color: #fff; border-color: transparent; background: var(--s-grad); }

/* 영상 */
.a-video { margin: 0; }
.a-video .stage { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 14px; overflow: hidden; border: 1px solid #23262b; box-shadow: 0 18px 50px rgba(0, 0, 0, .35); }
.a-video video { width: 100%; height: 100%; display: block; background: #000; }
.a-video figcaption { margin-top: 12px; font-size: 14px; line-height: 1.7; color: #9a9da4; }
.a-chapters { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.a-chapters button { width: 100%; text-align: left; font: inherit; cursor: pointer; display: flex; gap: 10px; align-items: baseline; padding: 11px 14px; border-radius: 10px; border: 1px solid #2a2d33; background: #14161a; color: #e8e9ec; line-height: 1.45; transition: border-color .15s, background .15s; }
.a-chapters button:hover { border-color: #2d8cff; background: #181b20; }
.a-chapters time { flex: none; font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 700; color: #6db2ff; }
.a-chapters span { font-size: 14.5px; }

/* 카드·그리드 */
.a-grid { display: grid; gap: 20px; }
.a-grid.c2 { grid-template-columns: repeat(2, 1fr); }
.a-grid.c3 { grid-template-columns: repeat(3, 1fr); }
.a-card { background: #fff; border: 1px solid var(--s-line); border-radius: 10px; padding: 24px 26px; box-shadow: var(--s-shadow); }
.a-sec.alt .a-card { background: var(--s-bg); box-shadow: none; }
.a-card .no { display: block; font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--s-secondary); margin-bottom: 8px; }
.a-card h3 { font-size: 20px; line-height: 1.4; letter-spacing: -.02em; margin: 0 0 10px; }
.a-card p { margin: 0; color: var(--s-body); font-size: 15.5px; line-height: 1.75; }
.a-card ul { margin: 10px 0 0; padding-left: 18px; color: var(--s-body); font-size: 15px; line-height: 1.75; }
a.a-card { display: block; text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
a.a-card:hover { box-shadow: var(--s-shadow-hover); transform: translateY(-2px); }
a.a-card .go { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--s-secondary); }
.a-orch { text-align: center; margin: 0 auto 22px; max-width: 560px; }
.a-orch .a-card { border-color: #2d8cff; background: #f2f8ff; }
.a-card .a-skills { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.a-skills li { font-size: 13.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: rgba(20, 86, 214, .08); color: var(--s-secondary); }

/* 단계 */
.a-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: st; }
.a-steps li { counter-increment: st; background: #fff; border: 1px solid var(--s-line); border-radius: 10px; padding: 18px 18px 20px; }
.a-steps li::before { content: counter(st); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--s-grad); color: #fff; font-weight: 800; font-size: 14px; margin-bottom: 12px; }
.a-steps b { display: block; font-size: 17px; margin-bottom: 6px; }
.a-steps span { font-size: 14.5px; line-height: 1.65; color: var(--s-body); }

/* 흐름도 (HTML) */
.a-flow { display: flex; align-items: stretch; gap: 0; margin: 0; padding: 0; list-style: none; }
.a-flow li { position: relative; flex: 1 1 0; min-width: 0; background: #fff; border: 1px solid var(--s-line); border-radius: 10px; padding: 16px 14px 18px; text-align: center; margin-right: 26px; }
.a-flow li:last-child { margin-right: 0; }
.a-flow li:not(:last-child)::after { content: ""; position: absolute; right: -21px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-top: 3px solid #2d8cff; border-right: 3px solid #2d8cff; transform: rotate(45deg); }
.a-flow b { display: block; font-size: 16px; margin-bottom: 6px; }
.a-flow span { display: block; font-size: 13.5px; line-height: 1.55; color: var(--s-body); }
.a-flow li.human { border-color: #2d8cff; background: #f2f8ff; }
.a-flow li.gate { border-color: #1456d6; background: #eaf2ff; }

/* 표 */
.a-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--s-line); border-radius: 10px; overflow: hidden; font-size: 15px; line-height: 1.65; }
.a-table th, .a-table td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--s-line); }
.a-table th { background: #f3f4f6; font-size: 14px; color: var(--s-ink); }
.a-table tr:last-child td { border-bottom: 0; }
.a-table td:first-child { font-weight: 700; white-space: nowrap; }
.a-scroll { overflow-x: auto; }

/* 이미지 */
.a-shot { margin: 0; }
.a-shot img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--s-line); box-shadow: var(--s-shadow); background: #0b0c0e; }
.a-shot figcaption { margin-top: 10px; font-size: 14px; color: var(--s-muted); line-height: 1.7; }
.a-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; }

/* 안내 상자 */
.a-callout { border: 1px solid #f0d9a8; background: #fffaf0; border-radius: 10px; padding: 18px 22px; font-size: 15px; line-height: 1.75; color: #5d4a1c; }
.a-callout b { color: #3d2e08; }
.a-callout.blue { border-color: #bcd7ff; background: #f2f8ff; color: #1d3f78; }
.a-callout.blue b { color: #0f2a57; }

/* 본문 목록 */
.a-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.a-list li { background: #fff; border: 1px solid var(--s-line); border-radius: 10px; padding: 16px 20px; font-size: 15.5px; line-height: 1.75; color: var(--s-body); }
.a-list li b { color: var(--s-ink); }
.a-sec.alt .a-list li { background: var(--s-bg); }

/* 이전·다음 */
.a-more { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 30px 0 70px; font-size: 15px; font-weight: 700; }
.a-more a { color: var(--s-secondary); text-decoration: none; }

@media (max-width: 980px) {
  .a-grid.c3 { grid-template-columns: repeat(2, 1fr); }
  .a-steps { grid-template-columns: repeat(2, 1fr); }
  .a-split { grid-template-columns: 1fr; gap: 24px; }
  .a-flow { flex-direction: column; }
  .a-flow li { margin: 0 0 26px; }
  .a-flow li:last-child { margin-bottom: 0; }
  .a-flow li:not(:last-child)::after { right: 50%; top: auto; bottom: -21px; margin: 0 -7px 0 0; transform: rotate(135deg); }
}
@media (max-width: 640px) {
  .a-sec { padding: 48px 0; }
  .a-hero { padding: 38px 0 34px; }
  .a-grid.c2, .a-grid.c3, .a-steps { grid-template-columns: 1fr; }
  .a-table td:first-child { white-space: normal; }
}
