:root {
  --ink: #0a0a0a; --sub: #5f6368; --mute: #8b9096;
  --line: #e8e8e8; --soft: #f5f5f4; --bg: #fff;
  --grad: linear-gradient(90deg, #0a9d6b 0%, #0e8fb8 55%, #3b5bdb 100%);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; color: var(--ink); background: var(--bg);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  line-height: 1.65; word-break: keep-all; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1480px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
[hidden] { display: none !important; }

/* 헤더와 메뉴 */
header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; height: 64px; gap: 28px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.logo i { width: 22px; height: 22px; border-radius: 6px; background: var(--ink); display: grid; place-items: center; }
.logo i::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.menu { display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 500; letter-spacing: -.02em; }
.menu > a, .dd > button { padding: 8px 14px; border-radius: 999px; background: none; border: 0; font: inherit; color: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.menu > a:hover, .dd > button:hover, .dd.open > button { background: var(--soft); }
.dd { position: relative; }
.dd > button::after { content: ""; width: 5px; height: 5px; border-right: 1.5px solid #666; border-bottom: 1.5px solid #666; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.dd.open > button::after { transform: translateY(1px) rotate(-135deg); }
.dd-panel {
  position: absolute; top: calc(100% + 10px); left: 0; width: 380px; padding: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.08);
  display: none;
}
.dd.open .dd-panel { display: block; }
.dd-panel a { display: block; padding: 14px 18px; border-radius: 10px; }
.dd-panel a:hover { background: var(--soft); }
.dd-panel strong { display: block; font-size: 15px; font-weight: 700; letter-spacing: -.02em; }
.dd-panel span { font-size: 13px; color: var(--sub); }
.pill { display: inline-block; border-radius: 999px; font-weight: 600; font-size: 14px; padding: 9px 18px; cursor: pointer; border: 0; font-family: inherit; transition: opacity .15s, background .15s; }
.pill.dark { background: var(--ink); color: #fff; }
.pill.dark:hover { opacity: .82; }
.pill.line { background: #fff; border: 1px solid #d4d4d4; color: var(--ink); }
.pill.line:hover { background: var(--soft); }
.pill.lg { font-size: 16px; padding: 14px 28px; }
.nav .cta { margin-left: auto; }
.burger { display: none; margin-left: auto; width: 40px; height: 40px; border: 0; background: none; border-radius: 10px; cursor: pointer; position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 10px; right: 10px; height: 1.8px; background: var(--ink); }
.burger::before { top: 15px; } .burger::after { top: 23px; }

/* 히어로 */
.hero {
  padding: 104px 0 88px; text-align: center; border-bottom: 1px solid var(--line); position: relative;
  background-image: linear-gradient(var(--soft) 1px, transparent 1px), linear-gradient(90deg, var(--soft) 1px, transparent 1px);
  background-size: 44px 44px; background-position: center top;
}
.hero.sm { padding: 76px 0 72px; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 30%, #fff 78%); pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
.eyebrow { display: inline-block; padding: 7px 16px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); font-size: 12px; font-weight: 600; letter-spacing: .12em; color: #444; }
h1 { font-weight: 800; font-size: clamp(38px, 7.4vw, 88px); line-height: 1.14; letter-spacing: -.045em; margin: 28px 0 26px; }
.hero.sm h1 { font-size: clamp(34px, 5.6vw, 64px); }
.g { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: clamp(16px, 1.7vw, 19px); color: var(--sub); margin: 0 auto 30px; max-width: 640px; }
.chips { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 38px; }
.chips span { padding: 7px 14px; border-radius: 999px; background: var(--soft); font-size: 13px; font-weight: 500; color: #444; }
.btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* 섹션 공통 */
section { padding: 84px 0; border-bottom: 1px solid var(--line); }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: .1em; color: var(--mute); margin-bottom: 14px; }
h2 { font-weight: 800; font-size: clamp(28px, 4.2vw, 48px); line-height: 1.22; letter-spacing: -.04em; margin: 0 0 18px; }
.lead { font-size: clamp(16px, 1.6vw, 18px); color: var(--sub); margin: 0 0 36px; max-width: 860px; }
.center .lead { margin-left: auto; margin-right: auto; max-width: 600px; }
mark { background: #ebebea; color: inherit; border-radius: 8px; padding: 0 8px; }
.ico { width: 64px; height: 64px; border-radius: 16px; background: var(--ink); display: grid; place-items: center; margin: 0 auto 32px; }
.ico svg, .mini svg { stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico svg { width: 28px; height: 28px; color: #fff; }

/* 카드 */
.three { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; text-align: left; }
.card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; padding: 26px; background: #fff; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--ink); transform: translateY(-2px); }
.mini { width: 36px; height: 36px; border-radius: 10px; background: var(--soft); border: 1px solid var(--line); display: grid; place-items: center; margin-bottom: 22px; }
.mini svg { width: 17px; height: 17px; }
.card small { font-size: 12px; font-weight: 600; color: var(--mute); letter-spacing: .02em; }
.card h3 { font-size: 19px; font-weight: 700; letter-spacing: -.03em; margin: 6px 0 8px; }
.card p { font-size: 15px; color: var(--sub); margin: 0; flex: 1; }
.card .meta { font-size: 13px; color: var(--mute); padding-top: 16px; margin-top: 20px; border-top: 1px solid var(--line); }
.card .meta b { color: var(--ink); font-weight: 600; margin-right: 6px; }
.card .go { margin-top: 22px; font-size: 14px; font-weight: 600; }
.empty { grid-column: 1 / -1; text-align: center; color: var(--mute); padding: 40px 0; }

/* 신뢰 요소 */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin-top: 40px; text-align: left; }
.facts div { padding: 26px 24px; border-right: 1px solid var(--line); font-size: 14px; color: var(--sub); }
.facts div:last-child { border-right: 0; }
.facts strong { display: block; color: var(--ink); font-size: 16px; font-weight: 700; margin-bottom: 4px; letter-spacing: -.02em; }

/* 단계 흐름 */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 14px; align-items: stretch; text-align: left; }
.flow .st { border: 1px solid var(--line); border-radius: 18px; padding: 24px; background: #fff; }
.flow .st.last { background: var(--ink); color: #fff; border-color: var(--ink); }
.flow .st small { font-size: 12px; font-weight: 600; color: var(--mute); letter-spacing: .06em; }
.flow .st strong { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.03em; margin: 8px 0 6px; }
.flow .st span { font-size: 14px; color: var(--sub); }
.flow .st.last span { color: #b8b8b8; }
.flow .ar { align-self: center; color: #bdbdbd; font-size: 18px; }

/* 대표 소개 */
.ceo { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.ceo .name { font-size: 28px; font-weight: 800; letter-spacing: -.03em; margin: 0 0 4px; }
.ceo .role { color: var(--sub); margin: 0 0 24px; }
table.info { width: 100%; border-collapse: collapse; font-size: 15px; }
table.info th, table.info td { text-align: left; padding: 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.info tr:first-child th, table.info tr:first-child td { border-top: 1px solid var(--ink); }
table.info th { width: 96px; color: var(--mute); font-weight: 500; }

/* 파트너 */
.partners { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.partner { display: flex; align-items: center; justify-content: center; min-width: 180px; height: 84px; padding: 0 28px; border: 1px solid var(--line); border-radius: 16px; font-weight: 700; font-size: 16px; letter-spacing: -.02em; background: #fff; }
.partner img { max-height: 40px; max-width: 150px; }

/* FAQ */
.faq { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; text-align: left; max-width: 1080px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; cursor: pointer; padding: 22px 26px; font-weight: 600; font-size: 16px; display: flex; align-items: center; gap: 14px; letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; flex: none; width: 24px; height: 24px; border-radius: 7px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.faq summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 1.8px solid #999; border-bottom: 1.8px solid #999; transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details[open] { background: #fafafa; }
.faq p { margin: 0; padding: 0 26px 24px 64px; color: var(--sub); font-size: 15px; }

/* 문의 */
form { border: 1px solid var(--line); border-radius: 22px; padding: 36px; text-align: left; max-width: 880px; margin: 0 auto; background: #fff; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: block; font-size: 13px; font-weight: 600; margin: 0 0 6px; }
.field { margin-bottom: 16px; }
input, select, textarea { width: 100%; padding: 13px 14px; font: inherit; font-size: 15px; border: 1px solid #d9d9d9; border-radius: 12px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
textarea { min-height: 130px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.agree { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; font-weight: 400; color: var(--sub); margin-bottom: 20px; }
.agree input { width: auto; margin-top: 5px; accent-color: var(--ink); }
form .pill { width: 100%; }
form .pill:disabled { opacity: .5; cursor: default; }
#formMsg { margin: 14px 0 0; font-size: 15px; min-height: 1.5em; text-align: center; }
#formMsg.ok { color: #0a7d55; } #formMsg.err { color: #c92a2a; }

/* 하단 안내 띠 */
.band { background: var(--ink); color: #fff; border-radius: 24px; padding: 56px 40px; text-align: center; }
.band h2 { margin-bottom: 12px; }
.band p { color: #b8b8b8; margin: 0 0 28px; }
.band .pill { background: #fff; color: var(--ink); }

footer { padding: 44px 0 60px; font-size: 13px; color: var(--mute); }
footer .f { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer strong { color: var(--ink); font-size: 15px; }

@media (max-width: 900px) {
  .burger { display: block; }
  .nav .cta { display: none; }
  .menu { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px 18px; }
  .menu.open { display: flex; }
  .menu > a, .dd > button { padding: 14px 10px; font-size: 16px; border-radius: 10px; width: 100%; justify-content: space-between; }
  .dd-panel { position: static; width: auto; box-shadow: none; border: 0; padding: 0 0 6px 8px; }
  .hero { padding: 64px 0 56px; } .hero.sm { padding: 52px 0 48px; }
  section { padding: 60px 0; }
  .ceo, .row { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(2) { border-right: 0; }
  .facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .flow { grid-template-columns: 1fr; }
  .flow .ar { transform: rotate(90deg); justify-self: center; }
  .ceo { gap: 32px; }
  form { padding: 24px; }
  .faq p { padding-left: 26px; }
  .band { padding: 40px 24px; }
}

/* 그림 */
.illust { max-width: 1180px; margin: 52px auto 0; padding: 14px; border: 1px solid var(--line); border-radius: 28px; background: #fafafa; box-shadow: 0 24px 60px rgba(0,0,0,.06); }
.art { display: block; width: 100%; height: auto; }
.art text { font-family: inherit; }
.card.pic { padding: 0; overflow: hidden; }
.card.pic .thumb { background: #fafafa; border-bottom: 1px solid var(--line); padding: 14px; }
.card.pic h3 { margin: 24px 26px 8px; }
.card.pic p { margin: 0 26px; }
.card.pic .go { margin: 22px 26px 26px; }

/* 회사 소개: 연구 기반 */
.dim2 { color: var(--sub); font-size: 14px; }
.sub-h { margin: 64px 0 24px; }
.sub-h h3 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; letter-spacing: -.03em; margin: 0 0 8px; }
.sub-h p { color: var(--sub); margin: 0; }
.pubs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.pubs li { display: flex; gap: 28px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.pubs .yr { flex: none; width: 48px; font-weight: 700; font-size: 14px; color: var(--mute); padding-top: 2px; }
.pubs strong { display: block; font-weight: 600; font-size: 16px; letter-spacing: -.01em; line-height: 1.5; word-break: normal; }
.pubs em { font-style: italic; font-size: 14px; color: var(--sub); }
@media (max-width: 900px) { .illust { margin-top: 44px; padding: 8px; border-radius: 18px; } .pubs li { gap: 14px; } .sub-h { margin-top: 64px; } }

/* 휴대폰: 그림은 글자가 읽히는 크기를 유지하고 옆으로 밀어 본다 */
@media (max-width: 700px) {
  .wrap { padding: 0 20px; }
  .illust { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 36px; }
  .illust .art { min-width: 640px; }
  .chips { margin-bottom: 28px; }
  .chips span { font-size: 12px; padding: 6px 12px; }
  .pill.lg { font-size: 15px; padding: 13px 24px; }
  .card { padding: 22px; }
  .faq summary { padding: 18px 20px; font-size: 15px; }
  .faq p { padding: 0 20px 20px; }
  table.info th { width: 76px; }
  .pubs strong { font-size: 15px; }
  input, select, textarea { font-size: 16px; } /* iOS 자동 확대 방지 */
}
@media (max-width: 700px) { h1, .hero.sm h1 { font-size: clamp(28px, 8.2vw, 40px); } h2 { font-size: clamp(24px, 6.6vw, 32px); } }

/* 넓은 화면: 좌우 여백을 화면 비율로 잡아 본문을 넓게 쓴다 */
@media (min-width: 901px) { .wrap { padding: 0 clamp(24px, 4vw, 64px); } }
