/* =====================================================================
   IBMS-2 소개 사이트 — ibms2.com
   팔레트는 IBMS-2 발표 자료(1E2761 네이비 · 8098CC · C3D2EC 아이스블루)와 같다.
   ===================================================================== */
:root {
  --navy: #1E2761;
  --navy2: #2B3B6E;
  --blue: #8098CC;
  --ice: #C3D2EC;
  --ice3: #E8EEF8;
  --ink: #1F2933;
  --muted: #5F6B78;
  --line: #D5DDEA;
  --bg: #FFFFFF;
  --alt: #F5F7FB;
  --accent: #B0413E;
  --radius: 14px;
  --wrap: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  font-size: 16px; line-height: 1.65; word-break: keep-all; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--navy); line-height: 1.3; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: 18px; }
p { margin: 0; }
ul { margin: 0; padding-left: 1.1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }
.center { text-align: center; justify-content: center; }
.sec { padding: 96px 0; }
.sec.alt { background: var(--alt); }
.kicker { color: var(--blue); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; }
.sub { color: var(--muted); font-size: 17px; margin-top: 12px; }
.note { color: var(--muted); font-size: 14px; margin-top: 18px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 14px 26px; border-radius: 999px;
  background: var(--navy); color: #fff; font-weight: 700; text-decoration: none; border: 2px solid var(--navy);
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--navy2); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--ice3); }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--ice3); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--navy); text-decoration: none; }
.nav-menu { display: flex; align-items: center; gap: 22px; }
.nav-menu a { text-decoration: none; font-size: 15px; font-weight: 600; color: var(--ink); }
.nav-menu a:not(.btn):hover { color: var(--blue); }
.nav-menu .btn { color: #fff; }
/* 언어 전환 (한국어 / EN) */
.nav-menu a.lang { font-size: 13px; font-weight: 700; color: var(--navy); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.nav-menu a.lang:hover { border-color: var(--blue); }
/* 영어 페이지: 긴 단어가 좁은 카드에서 넘치지 않게 */
html[lang="en"] body { word-break: normal; overflow-wrap: break-word; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .2s, opacity .2s; }

/* ---------- hero ---------- */
.hero { background: linear-gradient(180deg, var(--ice3) 0%, #fff 100%); padding: 96px 0 80px; }
.eyebrow { color: var(--blue); font-weight: 600; margin-bottom: 14px; }
.hero h1 { font-size: clamp(32px, 5vw, 56px); }
.hero h1 em { font-style: normal; color: var(--navy2); background: linear-gradient(transparent 62%, var(--ice) 62%); }
.lead { font-size: clamp(17px, 1.7vw, 20px); color: var(--muted); margin-top: 22px; max-width: 760px; }
.center .lead { margin-left: auto; margin-right: auto; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.stats { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.stats li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 16px; text-align: center; }
.stats b { display: block; font-size: 28px; color: var(--navy); }
.stats span { font-size: 14px; color: var(--muted); }

/* ---------- problem ---------- */
.qgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 40px; }
.q { border: 1px solid var(--line); border-top: 5px solid var(--navy); border-radius: var(--radius); padding: 22px 20px; background: #fff; }
.qn { font-size: 26px; font-weight: 800; color: var(--blue); }
.q h3 { margin: 8px 0 12px; font-size: 18px; }
.q p { font-size: 15px; color: var(--muted); }

/* ---------- flow ---------- */
.flow { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; counter-reset: f; }
.flow li { position: relative; background: var(--navy); color: #fff; font-weight: 700; padding: 14px 18px; border-radius: 10px; font-size: 15px; text-align: center; }
.flow li:nth-child(n+6) { background: var(--navy2); }
.flow li small { display: block; font-weight: 500; font-size: 12px; color: var(--ice); }
.flow li:not(:last-child)::after { content: "→"; position: absolute; right: -12px; top: 50%; transform: translateY(-50%); color: var(--blue); font-weight: 800; z-index: 1; }
.flow + .sub { margin-top: 24px; }

/* ---------- features ---------- */
.fgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.f { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.f h3 { font-size: 17px; margin-bottom: 8px; }
.f p { font-size: 14.5px; color: var(--muted); }

/* ---------- AI (dark) ---------- */
.sec.dark { background: var(--navy); color: #DCE4F5; }
.sec.dark h2, .sec.dark h3 { color: #fff; }
.sec.dark .kicker { color: var(--ice); }
.agrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.a { border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: 24px; background: rgba(255,255,255,.04); }
.a span { font-weight: 800; color: var(--blue); }
.a h3 { margin: 8px 0 10px; }
.a p { font-size: 15px; }

.usecase-title { margin-top: 64px; font-size: clamp(22px, 2.6vw, 28px); }
.usecase-sub { margin-top: 10px; color: var(--ice); }
.ugrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; }
.u { border-radius: var(--radius); padding: 20px; background: #fff; color: var(--ink); display: flex; flex-direction: column; gap: 8px; }
.u b { font-size: 13px; color: var(--blue); letter-spacing: .04em; }
.u q { font-weight: 700; color: var(--navy); font-size: 15.5px; line-height: 1.5; quotes: "\201C" "\201D"; }
.u span { font-size: 13.5px; color: var(--muted); margin-top: auto; }

/* ---------- roadmap ---------- */
.rgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.r { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; }
.r.now { background: var(--ice3); border-color: var(--ice); }
.r.plan { border-style: dashed; }
.rt { font-size: 13px; font-weight: 700; color: var(--blue); margin-bottom: 6px; }
.r h3 { margin-bottom: 12px; }
.r li { font-size: 15px; margin: 4px 0; }

/* ---------- proof ---------- */
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.p { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.p h3 { margin-bottom: 10px; }
.p p { color: var(--muted); font-size: 15px; }

/* ---------- adoption ---------- */
.timeline { list-style: none; padding: 0; margin: 40px 0 0; display: flex; gap: 6px; }
.timeline li { flex: var(--w) 1 0; background: var(--navy); color: #fff; border-radius: 10px; padding: 16px; text-align: center; }
.timeline li:nth-child(even) { background: var(--navy2); }
.timeline b { display: block; }
.timeline span { font-size: 14px; color: var(--ice); }
.mgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.m { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.m.plan { border-style: dashed; }
.m h3 small { font-size: 13px; color: var(--blue); margin-left: 6px; }
.m p { color: var(--muted); font-size: 15px; margin-top: 8px; }

/* ---------- FAQ ---------- */
details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin-top: 12px; }
details:first-of-type { margin-top: 32px; }
summary { cursor: pointer; font-weight: 700; color: var(--navy); list-style: none; position: relative; padding-right: 28px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 22px; color: var(--blue); }
details[open] summary::after { content: "–"; }
details p { margin-top: 12px; color: var(--muted); font-size: 15px; }

/* ---------- contact / footer ---------- */
.final { background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%); color: #DCE4F5; }
.final h2 { color: #fff; }
.final .lead { color: #DCE4F5; }
.contact-line { margin-top: 28px; font-size: 14px; color: var(--ice); }
.foot { border-top: 1px solid var(--line); padding: 28px 0; }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot .brand { font-size: 16px; }
.foot p { font-size: 13px; color: var(--muted); }

/* ---------- 제품 화면 (브라우저 프레임) ---------- */
.shot { position: relative; margin: 0; background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(30,39,97,.10), 0 28px 60px -24px rgba(30,39,97,.38), 0 10px 22px -12px rgba(30,39,97,.18); }
.shot img { width: 100%; height: auto; }
.shot-bar { height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #EEF2F8; border-bottom: 1px solid var(--line); }
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: #CBD4E4; flex: none; }
.shot-bar span { margin-left: 10px; flex: 0 1 300px; background: #fff; border-radius: 6px; padding: 2px 10px; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot-note { position: absolute; right: 10px; bottom: 10px; font-size: 11.5px; font-weight: 700; color: #92400E; background: #FFFBEB; border: 1px solid #FDE68A; border-radius: 999px; padding: 2px 10px; }
.shot-tilt { transform: perspective(1600px) rotateY(-7deg) rotateX(2deg); transform-origin: left center; }
.shot-dark { box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 30px 70px -20px rgba(0,0,0,.6); }
.shot-pair { position: relative; padding-bottom: 18%; }
.shot-pair .shot-sub { position: absolute; right: -4%; bottom: 0; width: 58%; }

/* ---------- hero (split) ---------- */
.hero-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 56px; align-items: center; }
.hero-split h1 { font-size: clamp(30px, 4.2vw, 50px); }
.hero-split .lead { font-size: clamp(16px, 1.5vw, 18.5px); }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 8px; font-size: 15px; color: var(--muted); }
.checks li { padding-left: 26px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.checks b { color: var(--navy); }

/* ---------- 질문별 제품 화면 ---------- */
.anchor { position: relative; top: -72px; display: block; height: 0; }
.show { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr); gap: 52px; align-items: center; margin-top: 72px; }
.show.flip { grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.92fr); }
.show.flip .show-text { order: 2; }
.show.flip .shot, .show.flip .shot-pair { order: 1; }
.show-q { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--blue); font-size: 15px; margin-bottom: 10px; }
.show-q span { width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 13px; flex: none; }
.show-text h3 { font-size: clamp(22px, 2.3vw, 28px); margin-bottom: 14px; }
.show-text > p { color: var(--muted); font-size: 16px; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 22px; font-size: 15px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 8px; height: 8px; border-radius: 2px; background: var(--blue); transform: rotate(45deg); }
.show-was { margin-top: 18px; font-size: 14px; color: #8A939E; }
.show-was b { font-weight: 700; margin-right: 6px; }
.show-effect { display: inline-block; margin-top: 12px; padding: 8px 14px; border-radius: 10px; background: var(--ice3); color: var(--navy2); font-size: 15px; }
.show-effect strong { color: var(--navy); }

/* ---------- 기능 아이콘 ---------- */
.f-ic { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--ice3); margin-bottom: 14px; }
.f-ic svg, .opt-ic svg { width: 22px; height: 22px; fill: none; stroke: var(--navy); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- AI (화면 + 사례) ---------- */
.ai-split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; align-items: center; margin-top: 64px; }
.ai-split .usecase-title { margin-top: 0; }

/* ---------- 데모 안내 띠 ---------- */
.demo-band { background: linear-gradient(135deg, var(--ice3) 0%, #fff 70%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.demo-band-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.demo-mini { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.demo-mini li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: 12px; }
.demo-mini b { font-size: 12px; color: #fff; background: var(--navy); border-radius: 6px; padding: 3px 8px; }

/* ---------- 데모 페이지 ---------- */
.tour { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; margin-top: 40px; }
.tour-card { grid-column: span 2; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.tour-card:nth-child(4) { grid-column: 2 / span 2; }
.tour-card img { border-bottom: 1px solid var(--line); aspect-ratio: 16 / 10; object-fit: cover; }
.tour-body { padding: 18px 20px 22px; }
.tour-n { font-size: 12.5px; font-weight: 700; color: var(--blue); letter-spacing: .04em; }
.tour-body h3 { margin: 6px 0 8px; font-size: 18px; }
.tour-body p { font-size: 14.5px; color: var(--muted); }
.opt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.opt { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.opt-main { border: 2px solid var(--navy); box-shadow: 0 18px 40px -24px rgba(30,39,97,.45); }
.opt-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--ice3); display: grid; place-items: center; margin-bottom: 14px; }
.opt-meta { font-size: 13.5px; font-weight: 700; color: var(--blue); margin: 4px 0 10px; }
.opt p:not(.opt-meta) { font-size: 15px; color: var(--muted); }
.req { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; margin-top: 40px; align-items: start; }
.req-steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 14px; }
.req-steps li { counter-increment: s; position: relative; padding: 18px 20px 18px 66px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.req-steps li::before { content: counter(s); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; display: grid; place-items: center; }
.req-steps b { display: block; color: var(--navy); font-size: 17px; }
.req-steps span { color: var(--muted); font-size: 15px; }
.mailcard { border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 22px 24px; box-shadow: 0 24px 50px -30px rgba(30,39,97,.45); }
.mailcard small { display: block; font-size: 12px; font-weight: 700; color: var(--blue); letter-spacing: .04em; }
.mailcard b { color: var(--navy); font-size: 17px; }
.mailcard-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.mailcard-sub { padding: 14px 0; border-bottom: 1px solid var(--line); }
.mailcard-sub b { font-size: 15.5px; }
.mailcard-list { margin: 16px 0 20px; padding-left: 1.2em; display: grid; gap: 6px; font-size: 15px; }
.mailcard-note { margin-top: 12px; font-size: 13px; color: var(--muted); }
.copy-btn { border: 1px solid var(--line); background: var(--alt); color: var(--navy); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; flex: none; }
.copy-btn:hover { border-color: var(--blue); }
.btn-block { display: flex; justify-content: center; width: 100%; }
.nav-menu a[aria-current="page"] { color: var(--blue); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  /* 영어 메뉴가 길어 860~1024px 에서 넘치지 않게 간격을 줄인다 */
  .nav-menu { gap: 14px; }
  .nav-menu a { font-size: 14px; }
  .qgrid { grid-template-columns: repeat(3, 1fr); }
  .fgrid, .agrid, .rgrid, .ugrid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .show { gap: 32px; }
  .tour-card, .tour-card:nth-child(4) { grid-column: span 3; }
  .tour-card:nth-child(5) { grid-column: 2 / span 4; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-menu { 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: 8px 16px 16px; display: none; }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 12px 4px; border-bottom: 1px solid var(--alt); }
  .nav-menu .btn { margin-top: 10px; justify-content: center; }
  .nav-menu a.lang { align-self: flex-start; margin-top: 10px; padding: 4px 14px; }
  .pgrid, .mgrid { grid-template-columns: 1fr; }
  .timeline { flex-direction: column; }
  .hero-split, .show, .show.flip, .ai-split, .demo-band-in, .req { grid-template-columns: 1fr; gap: 32px; }
  .shot-tilt { transform: none; }
  .show { margin-top: 56px; }
  .show.flip .show-text, .show.flip .shot, .show.flip .shot-pair { order: 0; }
  .shot-pair { padding-bottom: 0; }
  .shot-pair .shot-sub { display: none; }
  .opt-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .sec { padding: 64px 0; }
  .hero { padding: 64px 0 56px; }
  .qgrid, .fgrid, .agrid, .rgrid, .ugrid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .flow li:not(:last-child)::after { display: none; }
  .tour-card, .tour-card:nth-child(4), .tour-card:nth-child(5) { grid-column: 1 / -1; }
  .mailcard { padding: 18px; }
  .mailcard-head { flex-wrap: wrap; }
  .req-steps li { padding-left: 60px; }
}
