/* =========================================================
   AI BASE LAB — 공통 스타일
   구조: 1.토큰 2.리셋 3.레이아웃 4.헤더 5.버튼 6.메인 섹션
         7.서브페이지 8.사례 컴포넌트 9.폼 10.푸터 11.반응형
   ========================================================= */

/* 1. 디자인 토큰 */
:root {
  --navy-950: #070b15;
  --navy-900: #0b1121;
  --navy-800: #151e32;
  --navy-700: #1e293b;
  --cyan: #00e5ff;          /* 브랜드 포인트(어두운 배경용) */
  --cyan-ink: #0e7490;      /* 밝은 배경 위 텍스트용(대비 확보) */
  --red: #e63946;
  --green: #16a34a;
  --green-soft: #22c55e;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-muted: #f1f5f9;
  --line: #e2e8f0;
  --text: #1e293b;
  --text-2: #475569;
  --text-3: #64748b;
  --on-dark: #e2e8f0;
  --on-dark-2: #94a3b8;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(15, 23, 42, .05);
  --shadow-lg: 0 14px 36px rgba(15, 23, 42, .10);
  --header-h: 72px;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 24px);
  --section-y: clamp(64px, 9vw, 110px);
}

/* 2. 리셋 */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  color: var(--text); background: var(--bg); line-height: 1.7;
  -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
svg.icon { width: 1em; height: 1em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--cyan); color: #000; padding: 10px 16px; border-radius: 6px; font-weight: 700; }
.skip-link:focus { top: 12px; }

/* 3. 레이아웃 */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 920px; }
.section { padding: var(--section-y) 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--navy-900); color: #fff; }
.eyebrow { display: inline-block; padding: 6px 12px; font-size: 13px; font-weight: 700; letter-spacing: .08em; border-radius: 4px; margin-bottom: 14px; background: #e2e8f0; color: var(--text); }
.section-dark .eyebrow, .eyebrow-dark { background: rgba(0, 229, 255, .1); color: var(--cyan); }
.section-title { font-size: clamp(24px, 4.2vw, 38px); font-weight: 800; line-height: 1.35; letter-spacing: -.02em; margin-bottom: 14px; }
.section-lead { font-size: clamp(15px, 2vw, 18px); color: var(--text-2); max-width: 760px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-dark .section-lead { color: var(--on-dark-2); }
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* 4. 헤더 */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 200; height: var(--header-h); background: rgba(11, 17, 33, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.08); transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 16px; }
.logo { font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -.01em; white-space: nowrap; }
.logo span { color: var(--red); }
.nav-menu { display: flex; align-items: center; gap: clamp(20px, 3vw, 36px); }
.nav-menu a { color: var(--on-dark); font-weight: 500; font-size: 15px; padding: 6px 0; position: relative; transition: color .2s; }
.nav-menu a:hover, .nav-menu a[aria-current="page"] { color: var(--cyan); }
.nav-menu a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--cyan); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.18); background: transparent; border-radius: 8px; color: #fff; font-size: 22px; align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }
.nav-drawer-cta { display: none; }

/* 5. 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 12px 26px; font-weight: 700; font-size: 15px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s; text-align: center; }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 14px; }
.btn-primary { background: var(--cyan); color: #00131a; border-color: var(--cyan); }
.btn-primary:hover { background: transparent; color: var(--cyan); }
.btn-outline { background: transparent; color: var(--cyan); border-color: var(--cyan); }
.btn-outline:hover { background: var(--cyan); color: #00131a; }
.btn-dark { background: var(--navy-900); color: #fff; }
.btn-dark:hover { background: var(--navy-700); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 14px; color: var(--text); transition: color .2s, gap .2s; }

/* 6. 메인 섹션 */
.hero { background: radial-gradient(1200px 500px at 85% 20%, rgba(0,229,255,.08), transparent 60%), var(--navy-900); color: #fff; padding: calc(var(--header-h) + clamp(40px, 7vw, 90px)) 0 clamp(56px, 8vw, 110px); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1fr 1.25fr; align-items: center; gap: clamp(32px, 5vw, 56px); }
.hero h1 { font-size: clamp(28px, 5.2vw, 50px); font-weight: 800; line-height: 1.28; letter-spacing: -.025em; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--cyan); }
.hero-lead { font-size: clamp(15px, 2vw, 18px); color: var(--on-dark); margin-bottom: 32px; max-width: 560px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.1); }
.hero-stats dt { font-size: clamp(22px, 3.4vw, 30px); font-weight: 800; color: #fff; line-height: 1.2; }
.hero-stats dd { font-size: 13px; color: var(--on-dark-2); margin-top: 4px; }
.hero-visual { position: relative; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: var(--navy-800); box-shadow: 0 20px 50px rgba(0,229,255,.12); }
.hero-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease-in-out; }
.hero-visual img.active { opacity: 1; }
.hero-dots { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.hero-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.4); cursor: pointer; padding: 0; }
.hero-dots button[aria-current="true"] { background: var(--cyan); width: 26px; border-radius: 6px; }
.hero-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 36px; font-size: 13px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.55)); z-index: 1; }

.service-card { display: flex; flex-direction: column; background: #fff; padding: clamp(24px, 3vw, 36px) clamp(20px, 2.6vw, 30px); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid transparent; transition: transform .3s, border-color .3s, box-shadow .3s; height: 100%; }
.service-card:hover { transform: translateY(-4px); border-color: var(--green-soft); box-shadow: 0 12px 30px rgba(34,197,94,.14); }
.service-icon { width: 52px; height: 52px; border-radius: 12px; background: var(--bg-muted); display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 20px; color: var(--text); transition: color .3s, background .3s; }
.service-card:hover .service-icon { color: var(--green); background: #dcfce7; }
.service-card h3 { font-size: 19px; font-weight: 700; line-height: 1.4; margin-bottom: 10px; }
.service-card p { font-size: 15px; color: var(--text-3); line-height: 1.6; flex: 1; margin-bottom: 18px; }
.service-card:hover .link-arrow { color: var(--green); gap: 8px; }

.case-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .3s, border-color .3s, transform .3s; height: 100%; }
.case-card:hover { box-shadow: var(--shadow-lg); border-color: var(--green-soft); transform: translateY(-3px); }
.case-thumb { aspect-ratio: 16 / 9; background: var(--bg-muted); overflow: hidden; }
.case-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.case-card:hover .case-thumb img { transform: scale(1.03); }
.case-body { padding: clamp(20px, 3vw, 30px); display: flex; flex-direction: column; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tag { background: var(--bg-muted); color: var(--text-2); font-size: 12px; padding: 4px 10px; border-radius: 20px; font-weight: 600; }
.case-body h3 { font-size: clamp(18px, 2.2vw, 21px); font-weight: 700; line-height: 1.45; margin-bottom: 10px; }
.case-body p { font-size: 15px; color: var(--text-3); margin-bottom: 18px; flex: 1; }
.case-kpi { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 14px 0 18px; margin-bottom: 4px; border-top: 1px dashed var(--line); }
.case-kpi span { font-size: 13px; color: var(--text-2); }
.case-kpi strong { color: var(--cyan-ink); font-size: 16px; margin-right: 4px; }
.case-card:hover .link-arrow { color: var(--green); gap: 8px; }

.process { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 22px); }
.process li { position: relative; background: var(--navy-800); border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius); padding: 26px 22px; }
.process li::before { counter-increment: step; content: "0" counter(step); display: block; font-size: 14px; font-weight: 800; color: var(--cyan); margin-bottom: 10px; letter-spacing: .1em; }
.process h3 { font-size: 18px; margin-bottom: 6px; }
.process .dur { display: inline-block; font-size: 12px; color: var(--navy-900); background: var(--cyan); padding: 2px 8px; border-radius: 4px; font-weight: 700; margin-bottom: 10px; }
.process p { font-size: 14px; color: var(--on-dark-2); }

.why-card { padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.why-card h3 { font-size: 18px; margin: 12px 0 8px; }
.why-card p { font-size: 15px; color: var(--text-3); }
.why-num { font-size: 13px; font-weight: 800; color: var(--cyan-ink); letter-spacing: .1em; }

.stack-list { display: flex; flex-wrap: wrap; gap: 10px; }
.stack-list li { font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 6px; background: #fff; border: 1px solid var(--line); color: var(--text-2); }

/* 7. 서브페이지 공통 */
.page-hero { background: radial-gradient(900px 400px at 90% 0%, rgba(0,229,255,.08), transparent 60%), var(--navy-900); color: #fff; padding: calc(var(--header-h) + clamp(36px, 6vw, 70px)) 0 clamp(40px, 6vw, 70px); }
.page-hero.has-summary { padding-bottom: clamp(88px, 11vw, 130px); }
.case-cover { margin: 28px 0 0; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--on-dark-2); margin-bottom: 20px; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.breadcrumb a:hover { color: var(--cyan); }
.page-hero h1 { font-size: clamp(26px, 4.6vw, 44px); font-weight: 800; line-height: 1.3; letter-spacing: -.025em; margin-bottom: 16px; max-width: 900px; }
.page-hero .lead { font-size: clamp(15px, 2vw, 18px); color: var(--on-dark); max-width: 780px; }

.prose h2 { font-size: clamp(21px, 3vw, 28px); font-weight: 800; line-height: 1.4; letter-spacing: -.02em; margin: clamp(48px, 7vw, 72px) 0 18px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: clamp(17px, 2.2vw, 20px); font-weight: 700; margin: 32px 0 10px; }
.prose p { font-size: clamp(15px, 1.9vw, 17px); color: var(--text-2); margin-bottom: 16px; }
.prose strong { color: var(--text); }
.prose ul.bullets { margin: 0 0 18px; }
.prose ul.bullets li { position: relative; padding-left: 20px; margin-bottom: 8px; font-size: clamp(15px, 1.9vw, 16.5px); color: var(--text-2); }
.prose ul.bullets li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan-ink); }
.prose a:not(.btn):not(.link-arrow) { color: var(--cyan-ink); text-decoration: underline; text-underline-offset: 3px; }
.h-num { color: var(--cyan-ink); margin-right: 8px; }

/* 8. 사례 컴포넌트 */
.summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); overflow: hidden; margin-top: calc(clamp(40px, 6vw, 70px) * -1 - 1px); position: relative; z-index: 2; box-shadow: var(--shadow-lg); }
.summary div { padding: 18px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.summary dt { font-size: 12px; font-weight: 700; color: var(--text-3); letter-spacing: .04em; margin-bottom: 4px; }
.summary dd { font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.5; }

.pain-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 22px 0 8px; }
.pain-list li { background: #fff5f5; border: 1px solid #fee2e2; border-radius: var(--radius-sm); padding: 16px 18px; font-size: 15px; color: var(--text-2); }
.pain-list strong { display: block; color: #b91c1c; font-size: 15px; margin-bottom: 4px; }

.flow { display: flex; align-items: stretch; gap: 0; margin: 26px 0 30px; overflow: hidden; }
.flow li { flex: 1; position: relative; background: var(--navy-900); color: #fff; padding: 18px 14px 16px 26px; font-size: 14px; line-height: 1.45; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 14px 50%); margin-left: -6px; }
.flow li:first-child { clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); margin-left: 0; padding-left: 16px; border-radius: 8px 0 0 8px; }
.flow li:nth-child(even) { background: var(--navy-700); }
.flow li b { display: block; color: var(--cyan); font-size: 12px; letter-spacing: .06em; margin-bottom: 4px; }

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 22px 0 10px; }
.feature { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; }
.feature h3 { margin: 0 0 8px !important; font-size: 17px !important; display: flex; align-items: center; gap: 8px; }
.feature h3 .icon { color: var(--cyan-ink); font-size: 20px; }
.feature p { font-size: 15px !important; margin: 0 !important; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 20px 0 26px; border: 1px solid var(--line); border-radius: var(--radius); }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table thead th { background: var(--bg-muted); font-weight: 700; font-size: 13px; color: var(--text-2); white-space: nowrap; }
.spec-table tbody tr:last-child td { border-bottom: 0; }
.spec-table td:first-child { font-weight: 600; color: var(--text); }
.spec-table td { color: var(--text-2); }

.figure-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 28px 0; }
.figure { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.figure.wide { grid-column: 1 / -1; }
.figure .ph { aspect-ratio: 4 / 3; background: var(--bg-muted); }
.figure.wide .ph { aspect-ratio: 16 / 9; }
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure figcaption { padding: 12px 16px; font-size: 13.5px; color: var(--text-3); background: #fff; border-top: 1px solid var(--line); }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 24px 0 14px; }
.stat { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 16px; text-align: center; }
.stat .before { font-size: 13px; color: var(--text-3); text-decoration: line-through; text-decoration-color: rgba(100,116,139,.5); }
.stat .num { font-size: clamp(26px, 4vw, 34px); font-weight: 800; color: var(--cyan-ink); line-height: 1.2; margin: 4px 0 6px; letter-spacing: -.02em; }
.stat .num small { font-size: .55em; font-weight: 700; margin-left: 2px; }
.stat .label { font-size: 14px; font-weight: 600; color: var(--text-2); line-height: 1.45; }
.note { font-size: 13px !important; color: var(--text-3) !important; }

.timeline { position: relative; margin: 24px 0 10px; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding-bottom: 22px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -24px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--cyan-ink); }
.timeline .when { font-size: 13px; font-weight: 800; color: var(--cyan-ink); letter-spacing: .04em; }
.timeline .what { font-size: 16px; font-weight: 700; color: var(--text); margin: 2px 0 4px; }
.timeline p { font-size: 15px !important; margin: 0 !important; }

.faq { margin: 20px 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; font-weight: 700; font-size: 16px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--text-3); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 18px; margin: 0; font-size: 15px; color: var(--text-2); }

.callout { border-left: 4px solid var(--cyan-ink); background: #ecfeff; padding: 18px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 22px 0; }
.callout p { margin: 0 !important; font-size: 15px !important; color: var(--text) !important; }

.cta-band { background: var(--navy-900); color: #fff; border-radius: 16px; padding: clamp(28px, 5vw, 48px); display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: clamp(48px, 7vw, 80px); }
.cta-band h2 { font-size: clamp(20px, 3vw, 26px) !important; margin: 0 0 6px !important; color: #fff; }
.cta-band p { color: var(--on-dark-2) !important; margin: 0 !important; font-size: 15px !important; }

.related { margin-top: clamp(48px, 7vw, 72px); }
.related h2 { margin-bottom: 20px !important; }

/* 9. 문의 폼 */
.contact-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-text h2 { font-size: clamp(26px, 4.4vw, 40px); font-weight: 800; line-height: 1.3; margin-bottom: 20px; letter-spacing: -.02em; }
.contact-text > p { font-size: clamp(15px, 2vw, 18px); color: var(--on-dark); margin-bottom: 28px; }
.contact-points li { display: flex; gap: 10px; align-items: flex-start; color: var(--on-dark); font-size: 15px; margin-bottom: 12px; }
.contact-points .icon { color: var(--cyan); font-size: 20px; margin-top: 3px; }
.contact-direct { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: 15px; color: var(--on-dark-2); }
.contact-direct a { color: var(--cyan); font-weight: 700; }
.contact-form { background: var(--navy-800); padding: clamp(22px, 4vw, 44px); border-radius: var(--radius); border: 1px solid rgba(255,255,255,.06); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; color: var(--on-dark); margin-bottom: 7px; font-weight: 600; }
.form-group label .req { color: var(--red); margin-left: 2px; }
.form-control { width: 100%; min-height: 50px; padding: 13px 14px; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.12); border-radius: 6px; color: #fff; font-size: 16px; transition: border-color .2s; }
.form-control::placeholder { color: #64748b; }
.form-control:focus { outline: none; border-color: var(--cyan); }
select.form-control { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
select.form-control option { color: #000; }
textarea.form-control { min-height: 130px; resize: vertical; line-height: 1.6; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--on-dark-2); margin: 4px 0 18px; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--cyan); flex: none; }
.consent a { color: var(--cyan); text-decoration: underline; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.submit-btn { width: 100%; min-height: 54px; background: var(--cyan); color: #00131a; font-size: 16px; font-weight: 800; border: 0; border-radius: 6px; cursor: pointer; transition: opacity .2s; }
.submit-btn:disabled { opacity: .6; cursor: wait; }
.form-status { margin-top: 14px; font-size: 14.5px; min-height: 1.5em; }
.form-status.ok { color: #4ade80; }
.form-status.err { color: #fca5a5; }

/* 10. 푸터 */
.site-footer { background: var(--navy-950); color: var(--on-dark-2); padding: clamp(48px, 7vw, 72px) 0 32px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-grid h2 { font-size: 14px; color: #fff; font-weight: 700; margin-bottom: 14px; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a:hover { color: var(--cyan); }
.footer-about p { margin-top: 12px; line-height: 1.7; }
.biz-info { margin-top: 24px; font-size: 12.5px; line-height: 1.9; color: #64748b; }
.biz-info span { display: inline-block; margin-right: 14px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 22px; font-size: 13px; }
.footer-bottom a { color: var(--on-dark); font-weight: 600; }

/* 404 */
.notfound { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; background: var(--navy-900); color: #fff; padding: 120px 16px 60px; }
.notfound .code { font-size: clamp(72px, 18vw, 140px); font-weight: 900; color: var(--cyan); line-height: 1; }

/* 11. 반응형 */
@media (max-width: 1100px) {
  .grid-4, .process { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn { display: none; }
  .nav-menu { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--navy-900); padding: 12px var(--gutter) 32px; transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s; overflow-y: auto; }
  .nav-open .nav-menu { transform: none; visibility: visible; }
  .nav-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--navy-900); }
  .nav-menu a { display: block; padding: 18px 4px; font-size: 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-menu a[aria-current="page"]::after { display: none; }
  .nav-drawer-cta { display: block; margin-top: 24px; }
  .nav-drawer-cta .btn { width: 100%; border-bottom: 0; font-size: 16px; color: #00131a; font-weight: 800; padding: 14px; }
  body.nav-open { overflow: hidden; }
  .hero-inner, .contact-inner { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .summary { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .flow { flex-direction: column; gap: 6px; overflow: visible; }
  .flow li, .flow li:first-child { clip-path: none; margin-left: 0; border-radius: 8px; padding: 14px 16px 14px 16px; }
  .flow li:not(:last-child)::after { content: "↓"; position: absolute; left: 50%; bottom: -15px; transform: translateX(-50%); color: var(--cyan-ink); font-weight: 800; z-index: 1; font-size: 14px; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 680px) {
  :root { --header-h: 64px; }
  .grid-2, .grid-3, .grid-4, .process, .pain-list, .feature-grid, .figure-grid, .form-row { grid-template-columns: 1fr; }
  .summary { grid-template-columns: 1fr 1fr; }
  .summary div { padding: 14px; }
  .summary dd { font-size: 14px; }
  .hero-stats dd { font-size: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .btn-row .btn { flex: 1 1 100%; }
  .logo { font-size: 20px; }
}
@media (max-width: 360px) {
  .summary, .stat-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .hero-stats dt { font-size: 20px; }
  .tag { font-size: 11.5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print {
  .site-header, .nav-toggle, .cta-band, .site-footer { display: none; }
  .page-hero { padding-top: 20px; }
}

/* ===== 2026-10 수정: 히어로 이미지 확장 · PC 전용 줄바꿈 · 문의 폼 · 하단 정보 ===== */
.br-pc { display: inline; }
@media (min-width: 961px) {
  .hero-inner { align-items: stretch; grid-template-columns: 1.1fr 1.15fr; }
  .hero-text { align-self: center; padding: 12px 0; }
  .hero-visual { aspect-ratio: auto; min-height: 520px; height: 100%;
    margin-right: calc(-1 * max(0px, (100vw - var(--container)) / 2 - 8px));
    border-radius: 18px; }
}
@media (max-width: 960px) {
  .hero-visual { margin: 0 calc(-1 * var(--gutter)); border-radius: 0; aspect-ratio: 16 / 10; }
}
@media (max-width: 680px) {
  .br-pc { display: none; }
}
.process li p { line-height: 1.9; }
.form-hint { font-size: 12.5px; color: var(--on-dark-2); margin-top: 6px; }
#f-message { min-height: 320px; line-height: 1.7; }
.biz-info { text-align: center; }
.biz-info span { margin: 0 7px; }
.footer-bottom { justify-content: center; align-items: center; text-align: center; flex-direction: column; gap: 6px; }

/* ===== 2026-10 수정 2: 사례 요약표 · CTA 면책 문구 · 다른 사례 카드 · 문의 복사 안내 ===== */
.page-hero .summary { margin-top: 36px; grid-template-columns: repeat(4, 1fr); border-color: rgba(255,255,255,.12); }
.page-hero .summary div { border-right: 1px solid var(--line); border-bottom: 0; }
.page-hero .summary div:last-child { border-right: 0; }
@media (max-width: 960px) {
  .page-hero .summary { grid-template-columns: repeat(2, 1fr); }
  .page-hero .summary div { border-bottom: 1px solid var(--line); }
  .page-hero .summary div:nth-child(2n) { border-right: 0; }
  .page-hero .summary div:nth-last-child(-n+2) { border-bottom: 0; }
}
.cta-band.has-note { flex-wrap: wrap; }
.cta-band .cta-note { flex-basis: 100%; text-align: center; font-size: 12.5px !important; color: #94a3b8 !important; margin: 4px 0 0 !important; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); }
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.prose a.rel-card, .rel-card { text-decoration: none !important; position: relative; display: flex; flex-direction: column; gap: 8px; padding: 20px 52px 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: 14px; color: var(--text); text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.rel-card:hover { border-color: var(--cyan-ink); box-shadow: 0 10px 26px rgba(8,145,178,.12); transform: translateY(-2px); }
.rel-tag { font-size: 12px; font-weight: 700; color: var(--cyan-ink); letter-spacing: .02em; }
.rel-title { font-size: 15.5px; font-weight: 700; line-height: 1.5; color: var(--text); }
.rel-arrow { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--bg-muted); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--text-2); transition: background .2s, color .2s, transform .2s; }
.rel-card:hover .rel-arrow { background: var(--cyan-ink); color: #fff; transform: translate(3px, -50%); }
@media (max-width: 960px) { .rel-grid { grid-template-columns: 1fr; } }
.copy-panel { margin-top: 16px; padding: 18px; border: 1px dashed rgba(0,229,255,.4); border-radius: 12px; background: rgba(0,229,255,.05); }
.copy-title { font-size: 14px; color: #fff; margin-bottom: 12px; }
.copy-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.copy-btns .btn { flex: 1 1 200px; flex-direction: column; gap: 2px; }
.copy-btns .btn span { font-size: 12px; font-weight: 500; opacity: .8; }
.copy-btns .btn.copied::after { content: " ✓"; }
.copy-sub { font-size: 12.5px; color: var(--on-dark-2); margin-top: 12px; }
.copy-sub a { color: var(--cyan); text-decoration: underline; }

/* ===== 2026-10 수정 3: 사례 상단 다른 사례 카드 · 한 줄 요약 · 제품 버튼 ===== */
.case-meta { margin-top: 14px; font-size: 13.5px; color: var(--on-dark-2); }
.hero-btn { margin-top: 22px; }
.hero-rel { margin-top: 34px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.1); }
.hero-rel-label { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; color: var(--cyan); margin-bottom: 12px; }
.rel-card.rel-dark { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); color: #fff; }
.rel-card.rel-dark .rel-title { color: #fff; }
.rel-card.rel-dark .rel-tag { color: var(--cyan); }
.rel-card.rel-dark .rel-arrow { background: rgba(255,255,255,.08); color: #fff; }
.rel-card.rel-dark:hover { background: rgba(0,229,255,.06); border-color: var(--cyan); box-shadow: none; }
.rel-card.rel-dark:hover .rel-arrow { background: var(--cyan); color: #00131a; }

/* ===== 2026-10 수정 4: 본문 내 남색 버튼 · 확장 가능 안내 ===== */
.btn-navy { background: var(--navy-900); color: #fff !important; border: 1px solid var(--navy-900); text-decoration: none !important; }
.btn-navy:hover { background: var(--cyan); border-color: var(--cyan); color: #00131a !important; }
.prose .extend-note { font-size: 14.5px; font-weight: 500; color: var(--text-3); }

/* ===== 2026-10 모바일 최적화 (PC 화면은 변경 없음) ===== */
.swipe-hint, .m-tech, .m-only, .m-cta, .fold-btn { display: none; }
@media (max-width: 680px) {
  :root { --section-y: 56px; }
  .section-title { font-size: 25px; line-height: 1.32; }
  .section-lead { font-size: 15px; margin-bottom: 22px; }
  /* 가로로 넘기는 카드 묶음 */
  .m-swipe { display: flex !important; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--gutter); -webkit-overflow-scrolling: touch;
    margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 14px; scrollbar-width: none; }
  .m-swipe::-webkit-scrollbar { display: none; }
  .m-swipe > * { flex: 0 0 84%; scroll-snap-align: start; }
  .rel-grid.m-swipe > *, .process.m-swipe > li { flex-basis: 78%; }
  .process.m-swipe li:not(:last-child)::after { display: none; }
  .swipe-hint { display: block; font-size: 12.5px; font-weight: 700; color: var(--cyan-ink); margin: -6px 0 10px; text-align: right; }
  .section-dark .swipe-hint, .page-hero .swipe-hint { color: var(--cyan); }
  /* 메인: 기술 섹션 대신 사례 카드에 기술 표시 */
  .m-hide { display: none !important; }
  .m-only { display: block; }
  .m-tech { display: block; font-size: 12px; font-weight: 700; color: var(--cyan-ink); margin-bottom: 8px; letter-spacing: .01em; }
  .m-tech-link { margin-top: 6px; text-align: center; }
  .m-tech-link a { font-weight: 700; font-size: 14.5px; color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
  /* 첫 화면: 이미지를 위로, 수치는 한 줄로 */
  .hero { padding-top: calc(var(--header-h) + 20px); }
  .hero-visual { order: -1; margin-bottom: 26px; aspect-ratio: 16 / 9; }
  .hero h1 { font-size: 29px; }
  .hero-stats { margin-top: 26px; padding-top: 18px; gap: 8px; }
  .hero-stats dt { font-size: 19px; }
  .hero-stats dd { font-size: 11.5px; line-height: 1.45; }
  /* 기술 칩 접기 */
  .m-fold:not(.open) li:nth-child(n+11) { display: none; }
  .fold-btn { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 700; background: none; border: 0; color: var(--text); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; padding: 0; }
  /* 카드 여백 */
  .service-card, .why-card, .case-body { padding: 22px 20px; }
  .feature { padding: 18px; }
  /* 문의 폼 */
  #f-message { min-height: 240px; font-size: 14px; }
  /* 하단 고정 문의 버튼 */
  .m-cta { display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 90;
    height: 52px; align-items: center; justify-content: center; gap: 6px; border-radius: 12px; background: var(--cyan); color: #00131a;
    font-weight: 800; font-size: 15.5px; text-decoration: none; box-shadow: 0 10px 28px rgba(0,0,0,.35); transition: transform .25s, opacity .25s; }
  .m-cta.hide { transform: translateY(140%); opacity: 0; pointer-events: none; }
  body.has-m-cta .site-footer { padding-bottom: 84px; }
}

/* ===== 2026-10 수정 5: 소규모 개발 섹션 · 모바일 섹션 순서 ===== */
.small-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; list-style: none; }
.small-list li { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.small-list li .icon { flex: 0 0 22px; width: 22px; height: 22px; color: var(--cyan-ink); margin-top: 2px; }
.small-list strong { display: block; font-size: 16px; color: var(--text); margin-bottom: 4px; }
.small-list span { font-size: 14.5px; color: var(--text-3); line-height: 1.6; }
@media (max-width: 960px) { .small-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) {
  .small-list { grid-template-columns: 1fr; gap: 10px; }
  .small-list li { padding: 16px; }
  #main { display: flex; flex-direction: column; }
  .m-o2 { order: 2; } .m-o3 { order: 3; } .m-o4 { order: 4; } .m-o5 { order: 5; } .m-o6 { order: 6; }
  #main > .hero { order: 0; }
}
@media (max-width: 680px) { #portfolio { background: var(--bg-soft); } }

/* 문의 내용 입력 안내 */
.form-guide { font-size: 13.5px; color: var(--cyan); margin: -2px 0 8px; }

/* ===== 2026-10 수정 6: 로고(AUTOMATION ENGINEERING) · KO/EN 전환 · 영어 페이지 ===== */
.logo { display: inline-flex; flex-direction: column; align-items: stretch; line-height: 1; }
.logo .logo-word { color: #fff; }
.logo em { font-style: normal; color: var(--red); }
.logo .logo-sub { display: block; margin-top: 5px; font-size: 8.5px; font-weight: 600; letter-spacing: .16em; color: var(--on-dark-2); white-space: nowrap; }
.footer-about .logo { font-size: 26px; }
.footer-about .logo .logo-sub { font-size: 10px; margin-top: 6px; }
.lang-switch { display: flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 700; }
.lang-switch a { padding: 6px 7px; border-radius: 6px; color: var(--on-dark-2); line-height: 1; transition: color .2s; }
.lang-switch a:hover { color: #fff; }
.lang-switch a[aria-current] { color: var(--cyan); pointer-events: none; }
.lang-switch a + a::before { content: ""; display: inline-block; width: 1px; height: 11px; background: rgba(255,255,255,.2); margin: 0 9px 0 -2px; vertical-align: -1px; }
.hero-partner + .btn-row { margin-top: 24px; }
.hero-partner { margin-top: 16px; display: inline-block; font-size: 15px; font-weight: 700; color: var(--cyan); border: 1px solid rgba(0,229,255,.35); border-radius: 999px; padding: 7px 16px; }
@media (max-width: 680px) {
  .logo .logo-sub { font-size: 7.5px; margin-top: 4px; }
  .nav-cta { gap: 6px; }
  .hero-partner { font-size: 13.5px; padding: 6px 13px; }
}
/* 영어 페이지 */
.partner-who { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; list-style: none; margin-top: 8px; }
.partner-who li { display: flex; gap: 12px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); color: var(--on-dark); font-size: 15px; line-height: 1.6; }
.partner-who li .icon { flex: 0 0 22px; width: 22px; height: 22px; color: var(--cyan); margin-top: 1px; }
.sub-title { font-size: clamp(19px, 2.2vw, 22px); font-weight: 800; margin: 48px 0 18px; }
.section-dark .sub-title { color: #fff; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.how-grid div { padding: 22px; border-radius: var(--radius); border: 1px solid rgba(0,229,255,.25); background: rgba(0,229,255,.04); }
.how-grid h4 { color: var(--cyan); font-size: 16px; margin-bottom: 6px; }
.how-grid p { color: var(--on-dark-2); font-size: 14.5px; line-height: 1.6; }
.get-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 28px; list-style: none; }
.get-list li { position: relative; padding-left: 22px; color: var(--on-dark); font-size: 15px; line-height: 1.6; }
.get-list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
.partner-cards .why-card h3 { font-size: 17px; }
.faq-list { max-width: 860px; }
.faq-list details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-list summary { cursor: pointer; font-weight: 700; font-size: 16px; color: var(--text); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--cyan-ink); font-weight: 800; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { margin-top: 10px; color: var(--text-3); font-size: 15px; line-height: 1.7; }
.case-block { scroll-margin-top: calc(var(--header-h) + 20px); padding: 34px 0; border-top: 1px solid var(--line); }
.case-block:first-child { border-top: 0; padding-top: 0; }
.case-block .case-label { font-size: 13px; font-weight: 700; color: var(--cyan-ink); letter-spacing: .04em; }
.case-block h2 { margin: 6px 0 10px; }
.case-block .case-stack { font-size: 13.5px; color: var(--text-3); margin-bottom: 16px; }
.case-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.case-cols > div { background: var(--bg-muted); border-radius: var(--radius); padding: 18px; }
.case-cols h3 { font-size: 15px; margin-bottom: 8px; }
.case-cols ul { padding-left: 18px; }
.case-cols li { font-size: 14.5px; color: var(--text-2); line-height: 1.6; margin-bottom: 4px; }
@media (max-width: 960px) { .how-grid, .case-cols { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .partner-who, .get-list { grid-template-columns: 1fr; } .partner-who li { padding: 14px 16px; font-size: 14.5px; } }
.section-dark .partner-cards .why-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); box-shadow: none; }
.section-dark .partner-cards .why-card h3 { color: #fff; }
.section-dark .partner-cards .why-card p { color: var(--on-dark-2); }
.section-dark .partner-cards .service-icon { background: rgba(0,229,255,.1); color: var(--cyan); }
/* 문의 양식: 항목별 입력 */
.form-section { font-size: 12.5px; font-weight: 800; letter-spacing: .08em; color: var(--cyan); text-transform: uppercase; margin: 6px 0 14px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.08); }
.form-section:not(:first-child) { margin-top: 26px; }
.check-group { border: 0; padding: 0; min-width: 0; }
.check-group legend { font-size: 14px; color: var(--on-dark); font-weight: 600; margin-bottom: 9px; padding: 0; }
.check-group legend .req { color: var(--red); margin-left: 2px; }
.legend-hint { font-weight: 400; color: var(--on-dark-2); font-size: 12.5px; }
.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 6px; background: rgba(0,0,0,.25); color: var(--on-dark); font-size: 14.5px; cursor: pointer; transition: border-color .2s, background .2s; }
.check input { width: 18px; height: 18px; flex: 0 0 18px; accent-color: var(--cyan); }
.check:has(input:checked) { border-color: var(--cyan); background: rgba(0,229,255,.08); }
.form-short { min-height: 0; }
textarea.form-control { resize: vertical; line-height: 1.6; }
@media (max-width: 680px) { .check-grid { grid-template-columns: 1fr; } }
.form-group.check-group label.check { display: flex; margin-bottom: 0; font-weight: 500; font-size: 14.5px; }

/* 로고 가독성 · 아랫줄 가운데 정렬 */
.logo { align-items: center; font-size: 25px; }
.logo .logo-sub { font-size: 10px; margin-top: 6px; letter-spacing: .2em; text-align: center; }
.footer-about .logo { font-size: 28px; }
.footer-about .logo .logo-sub { font-size: 11px; margin-top: 7px; }
@media (max-width: 680px) {
  .logo { font-size: 22px; }
  .logo .logo-sub { font-size: 8.5px; margin-top: 5px; }
}

/* ===== 2026-10-10 개편: 개발 분야 · 서비스 단계 · 협업 방식 · 모바일 가독성 ===== */
/* 중국어 페이지 글꼴 */
html[lang="zh-CN"] body { font-family: 'Noto Sans SC', 'Pretendard Variable', Pretendard, sans-serif; word-break: normal; }

/* 한국어 메인: 개발 분야 6개 카드 + 소규모 개발 안내 */
.build-grid .service-card h3 { font-size: 18px; }
.small-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: clamp(24px, 3vw, 36px); padding: clamp(22px, 3vw, 30px) clamp(22px, 3vw, 34px); background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--cyan-ink); border-radius: var(--radius); }
.small-band h3 { font-size: 19px; margin-bottom: 6px; }
.small-band p { font-size: 15px; color: var(--text-3); }
.small-band .btn { flex: none; }

/* 영어·중국어: 서비스 단계 카드 */
.tier-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2.4vw, 24px); }
.tier-card { display: flex; flex-direction: column; padding: clamp(22px, 3vw, 32px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.tier-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.tier-head .service-icon { margin-bottom: 0; flex: none; color: var(--cyan-ink); }
.tier-head h3 { font-size: 19px; line-height: 1.35; margin-top: 2px; }
.tier-card > p { font-size: 15px; color: var(--text-2); margin-bottom: 12px; }
.tier-list { margin: 0; }
.tier-list li { position: relative; padding-left: 20px; font-size: 14.5px; color: var(--text-2); line-height: 1.6; margin-bottom: 6px; }
.tier-list li::before { content: ""; position: absolute; left: 3px; top: .65em; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan-ink); }
.tier-note { margin-top: auto; padding-top: 14px; font-size: 13.5px !important; color: var(--text-3) !important; border-top: 1px dashed var(--line); }

/* 협업 방식 · 알아두실 점 */
.model-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.model-grid > div { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--cyan-ink); border-radius: var(--radius); padding: 22px; }
.model-grid h3 { font-size: 17px; margin-bottom: 8px; }
.model-grid p { font-size: 14.5px; color: var(--text-2); line-height: 1.65; }
.model-grid strong { color: var(--text); }
.info-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; border-top: 1px solid var(--line); }
.info-list > div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-list dt { font-weight: 700; font-size: 14.5px; color: var(--text); }
.info-list dd { font-size: 14.5px; color: var(--text-2); line-height: 1.6; }
.more-link { margin-top: 18px; text-align: right; }
.more-link a { font-weight: 700; font-size: 15px; color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.more-link a:hover { color: var(--cyan-ink); }

/* 중국어 문의: 위챗 + 폼 */
.contact-side { width: 100%; }
.wechat-box { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px; background: var(--navy-800); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 18px; }
.wechat-box h3 { color: #fff; font-size: 18px; margin-bottom: 6px; }
.wechat-box p { color: var(--on-dark-2); font-size: 14.5px; line-height: 1.6; }
.wechat-box img { width: 120px; height: 120px; border-radius: 8px; background: #fff; padding: 6px; }

@media (max-width: 960px) {
  .tier-grid, .model-grid { grid-template-columns: 1fr; }
  .info-list { grid-template-columns: 1fr; }
  .small-band { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 680px) {
  /* 첫 화면: 문구 먼저, 이미지는 아래로 */
  .hero-visual { order: 0; margin-top: 28px; margin-bottom: 0; }
  .hero-lead { margin-bottom: 22px; }
  /* 개발 분야 카드: 아이콘 왼쪽 정렬로 짧게 */
  .build-grid .service-card { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; padding: 18px; }
  .build-grid .service-icon { grid-row: span 3; width: 44px; height: 44px; font-size: 22px; margin: 0; }
  .build-grid .service-card h3 { font-size: 16.5px; margin-bottom: 4px; }
  .build-grid .service-card p { font-size: 14px; margin-bottom: 8px; }
  .build-grid { gap: 10px; }
  .small-band { padding: 20px; }
  .small-band .btn { width: 100%; }
  /* 진행 단계: 2열로 한눈에 */
  .process.m-grid2 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .process.m-grid2 li { padding: 18px 14px; }
  .process.m-grid2 h3 { font-size: 15.5px; }
  .process.m-grid2 p { font-size: 13px; line-height: 1.7; }
  /* 서비스 단계 카드 */
  .tier-card { padding: 20px 18px; }
  .tier-head .service-icon { width: 44px; height: 44px; font-size: 22px; }
  .tier-head h3 { font-size: 17px; }
  .info-list > div { grid-template-columns: 1fr; gap: 2px; padding: 12px 0; }
  .model-grid > div { padding: 18px; }
  /* FAQ 여백 */
  .faq-list details { padding: 15px 0; }
  .faq-list summary { font-size: 15.5px; }
  .faq-list details p { font-size: 14.5px; }
  .wechat-box { grid-template-columns: 1fr 96px; padding: 18px; }
  .wechat-box img { width: 96px; height: 96px; }
  .more-link { text-align: center; }
  .m-swipe > .case-card { height: auto; }
  #portfolio { background: var(--bg); }
}

/* ===== 2026-10-10 수정 2: 상단 이미지 전체 보기 · 선택 목록 색상 · 실적 띠 ===== */
/* 이미지는 잘리지 않게 전체를 보여주고, 남는 여백은 같은 이미지를 흐리게 채움 */
.hero-visual { aspect-ratio: 4 / 3; }
.hero-visual .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease-in-out; overflow: hidden; }
.hero-visual .slide.active { opacity: 1; }
.hero-visual .slide img { position: absolute; opacity: 1; transition: none; }
.hero-visual .slide .bg { inset: -24px; width: calc(100% + 48px); height: calc(100% + 48px); max-width: none; object-fit: cover; filter: blur(22px) brightness(.5) saturate(1.1); }
.hero-visual .slide .fg { inset: 0; width: 100%; height: 100%; object-fit: contain; }
/* PC: 이전처럼 글 높이만큼 크게, 화면 오른쪽 끝까지 (이미지는 그 안에서 최대한 크게 전체 표시) */
@media (min-width: 961px) { .hero-inner { align-items: center; } .hero-visual { aspect-ratio: 4 / 3; height: auto; min-height: 0; align-self: center; } }
@media (max-width: 960px) { .hero-visual { aspect-ratio: 4 / 3; } }
@media (max-width: 680px) { .hero-visual { aspect-ratio: 4 / 3; } }

/* 선택 목록: 흰 배경 + 검은 글씨로 통일 */
select.form-control option, select.form-control optgroup { background: #fff; color: #111827; }
select.form-control optgroup { font-weight: 700; color: #475569; }

/* 영어·중국어 메인: 한국 비즈니스 지원 실적 띠 */
.track { background: var(--navy-800); border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06); padding: clamp(28px, 4vw, 40px) 0; color: #fff; }
.track-label { font-size: 13px; font-weight: 800; letter-spacing: .08em; color: var(--cyan); margin-bottom: 16px; }
.track-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.track-list li { padding: 16px 18px; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.track-list .yr { display: block; font-size: 13px; font-weight: 800; color: var(--cyan); margin-bottom: 4px; letter-spacing: .04em; }
.track-list .tx { font-size: 15px; line-height: 1.5; color: var(--on-dark); }
@media (max-width: 960px) { .track-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .track-list { gap: 10px; } .track-list li { padding: 14px; } .track-list .tx { font-size: 14px; } }

/* ===== 2026-10-10 수정 3: 줄바꿈 정리 ===== */
/* PC(1241px 이상): 자동 줄바꿈 보정 없이 의미 단위 수동 줄바꿈(.br-pc)만 사용
   노트북·태블릿·모바일(1240px 이하): 화면 폭이 제각각이라 브라우저 자동 보정 사용 */
@media (max-width: 1240px) {
  p, li, dd, figcaption, .rel-title { text-wrap: pretty; }
  h1, h2, h3, summary { text-wrap: balance; }
}

/* 노트북·태블릿 폭(1240px 이하)에서는 PC용 강제 줄바꿈을 빼고 자동 균형 줄바꿈 사용 */
@media (max-width: 1240px) { .br-pc { display: none; } }
/* 좁은 노트북 폭에서 문의 분야 체크박스가 두 줄로 꺾이지 않도록 한 줄씩 */
@media (min-width: 961px) and (max-width: 1240px) { .check-grid { grid-template-columns: 1fr; } }
/* 좁은 노트북 폭: 첫 화면 큰 제목이 한두 글자씩 꺾이지 않도록 크기 조정 */
@media (min-width: 961px) and (max-width: 1240px) { .hero h1 { font-size: clamp(34px, 3.9vw, 50px); } }
/* 소개 페이지 경력 목록: 제목과 설명을 각각 한 줄로 */
.prose ul.bullets li .li-head { display: block; }
