@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");
:root { --bg: #f4f5f6; --soft: #e3e5e8; --tile: #c9cdd2; --line: #d9dce0; --ink: #121417; --mute: #5c626a; --eye: #b4b9bf; --dark: #000; --org: #ff6a3d; --ok: #1f7a4a; --bad: #c8321f; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); word-break: keep-all; overflow-wrap: anywhere;
  font: 17px/1.6 "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* 머리 */
header { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
header .wrap { display: flex; align-items: center; height: 56px; gap: 6px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18px; letter-spacing: -.02em; text-decoration: none; margin-right: auto; }
.logo { width: 26px; height: 18px; display: inline-flex; gap: 4px; align-items: center; justify-content: center; background: var(--dark); border-radius: 6px; padding: 0 4px; }
.logo i { width: 6px; height: 9px; border-radius: 2.5px; background: var(--eye); }
nav a { text-decoration: none; color: var(--mute); font-size: 15px; padding: 6px 10px; border-radius: 9px; }
nav a[aria-current] { background: var(--soft); }
body.dark nav a[aria-current] { background: #1c1d20; }
nav a:hover, nav a[aria-current] { color: var(--ink); }
header { transition: background .3s, border-color .3s; }
body.dark header { background: var(--dark); border-bottom-color: #1d1d21; }
body.dark .brand, body.dark nav a:hover { color: #f2f2f4; } body.dark .logo { background: #26262b; }

/* 글 */
h1 { font-size: clamp(38px, 7vw, 68px); line-height: 1.12; letter-spacing: -.04em; margin: 0 0 18px; font-weight: 800; }
h2 { font-size: clamp(28px, 4.4vw, 42px); line-height: 1.2; letter-spacing: -.03em; margin: 0 0 14px; font-weight: 750; }
h3 { font-size: 19px; letter-spacing: -.02em; margin: 0 0 6px; }
p { margin: 0 0 14px; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--mute); max-width: 34em; }
.mute { color: var(--mute); } .small { font-size: 14px; } .center { text-align: center; } .center .lead { margin-left: auto; margin-right: auto; }
.eyebrow { font-size: 14px; font-weight: 700; color: #c4471c; letter-spacing: .02em; margin-bottom: 10px; }

/* 단추 */
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.center .btns { justify-content: center; }
.btn { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 14px; padding: 13px 24px; text-decoration: none; font: 600 16px/1 inherit; font-family: inherit; cursor: pointer; background: var(--soft); color: var(--ink); }
.btn.primary { background: var(--org); color: var(--ink); }
.btn:hover { filter: brightness(.94); }
.btn[disabled] { opacity: .45; cursor: default; }

/* 첫 화면: 깜빡이고 두리번거리는 눈 */
.face { width: 132px; height: 84px; margin: 0 auto 34px; background: var(--dark); border-radius: 26px; display: flex; gap: 14px; align-items: center; justify-content: center; }
.face i { width: 34px; height: 44px; border-radius: 13px; background: var(--eye); animation: blink 5s infinite, look 9s infinite ease-in-out; transform-origin: 50% 50%; }
@keyframes blink { 0%, 46%, 50%, 100% { transform: scaleY(1); } 48% { transform: scaleY(.08); } }
@keyframes look { 0%, 20%, 100% { translate: 0 0; } 30%, 45% { translate: -9px 2px; } 58%, 72% { translate: 9px -3px; } }
@media (prefers-reduced-motion: reduce) { .face i { animation: none; } }
/* 첫 화면 */
.hero { padding: 88px 0 56px; }
section { padding: 96px 0; }
section.tight { padding-top: 40px; }

/* 시연: 화면은 붙어 있고, 내리는 만큼 영상이 흐른다 */
.demo { background: var(--dark); color: #f2f2f4; padding: 0; height: 520vh; position: relative; }
.demo .stick { position: sticky; top: 56px; height: calc(100vh - 56px); display: flex; align-items: center; }
.demo .wrap { max-width: 1200px; display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: center; width: 100%; }
.steps { position: relative; min-height: 220px; }
.step { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(14px); transition: opacity .45s, transform .45s; }
.step.on { opacity: 1; transform: none; }
.step .eyebrow { color: var(--org); }
.step h2 { color: #fff; }
.step p { color: #a6a6ae; font-size: 18px; }
.step q { quotes: "“" "”"; color: #fff; }
.device { background: #000; border-radius: 24px; padding: 14px; border: 1px solid #1c1d20; }
.device video { width: 100%; aspect-ratio: 1280 / 726; border-radius: 16px; background: #000; }
.dots { display: flex; gap: 6px; margin-top: 26px; }
.dots i { height: 4px; flex: 1; border-radius: 2px; background: #26282c; overflow: hidden; position: relative; }
.dots i b { position: absolute; inset: 0; background: var(--org); transform-origin: left; transform: scaleX(0); }
.scrollhint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); font-size: 13px; color: #6e6e76; transition: opacity .3s; }
@media (max-width: 820px) {
  .demo .stick { align-items: flex-start; padding-top: 20px; }
  .demo .wrap { grid-template-columns: 1fr; gap: 22px; }
  .demo .device { order: -1; padding: 8px; border-radius: 20px; } .device video { border-radius: 12px; }
  .steps { min-height: 190px; }
}

/* 칸 */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--soft); border-radius: 20px; padding: 28px; }
.card p { color: var(--mute); margin: 0; font-size: 16px; }
.card .tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 7px; background: var(--tile); color: var(--ink); margin-bottom: 14px; }
.card .tag.ok { background: var(--org); color: var(--ink); }
.card .btns { margin-top: 20px; }
.card .btn { padding: 10px 18px; font-size: 15px; background: var(--tile); border-radius: 12px; }
.card .btn.primary { background: var(--org); color: var(--ink); }
.ico { width: 42px; height: 42px; border-radius: 13px; background: var(--dark); display: grid; place-items: center; margin-bottom: 18px; color: var(--eye); }
.ico svg { width: 22px; height: 22px; }

/* 다운로드 */
.files { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); margin-top: 30px; }
.file h3 { font-size: 21px; } .file .meta { font-size: 14px; color: var(--mute); margin: 4px 0 0; }
.file code { display: block; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--mute); word-break: break-all; margin-top: 14px; }
ol.how { padding-left: 22px; margin: 0; color: var(--mute); } ol.how li { margin: 8px 0; } ol.how b { color: var(--ink); }

/* 내 AI */
.meter { height: 12px; border-radius: 5px; background: var(--tile); overflow: hidden; margin: 18px 0 10px; }
.meter i { display: block; height: 100%; background: var(--org); width: 0; transition: width .5s; }
.meter.warn i { background: var(--bad); }
.big { font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }

footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--mute); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
footer a { text-decoration: none; } footer a:hover { color: var(--ink); }
footer span { margin-right: auto; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 13px 22px; border-radius: 14px; font-weight: 600; font-size: 15px; display: none; max-width: 90vw; text-align: center; z-index: 20; }
@media (prefers-reduced-motion: reduce) { .step { transition: none; } html { scroll-behavior: auto; } }

/* 3D 설계도 */
.vwrap { position: relative; margin-top: 28px; }
#viewer { height: min(68vh, 640px); min-height: 360px; border-radius: 24px; background: var(--soft); overflow: hidden; touch-action: none; position: relative; }
#viewer canvas { display: block; width: 100%; height: 100%; cursor: grab; }
#vmsg { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; }
.vbtns { position: absolute; left: 16px; bottom: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.vbtns button { border: 0; border-radius: 12px; padding: 10px 16px; font: 600 15px/1 inherit; font-family: inherit; background: #fff; color: var(--ink); cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.vbtns button.on { background: var(--org); }
#vmsg[hidden] { display: none; }

/* hardware: scroll-driven assembly */
.bscroll { position: relative; height: calc(var(--n) * 62vh + 100vh); }
.bstick { position: sticky; top: 56px; height: calc(100vh - 56px); display: flex; align-items: center; }
.bgrid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: center; width: 100%; }
#bview { height: min(72vh, 620px); border-radius: 24px; background: var(--soft); overflow: hidden; }
#bview canvas { display: block; width: 100%; height: 100%; }
#bsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
#bsteps li { padding: 6px 12px; border-radius: 14px; opacity: .38; transition: opacity .25s, background .25s; }
#bsteps li::before { content: attr(data-n); display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; background: var(--tile); font: 700 12px/1 inherit; }
#bsteps li b { font-size: 15px; } #bsteps li span { display: none; color: var(--mute); font-size: 14px; margin-top: 4px; }
#bsteps li.on { opacity: 1; background: #fff; } #bsteps li.on::before { background: var(--org); color: #fff; } #bsteps li.on span { display: block; }
@media (max-width: 820px) {
  .bgrid { grid-template-columns: 1fr; gap: 12px; }
  #bview { height: 52vh; }
  #bsteps li { display: none; } #bsteps li.on { display: block; }
}
.vinfo { position: absolute; left: 16px; top: 16px; max-width: min(340px, calc(100% - 32px)); background: rgba(255,255,255,.94); border-radius: 16px; padding: 14px 16px; box-shadow: 0 2px 10px rgba(0,0,0,.1); pointer-events: none; }
.vinfo b { font-size: 16px; } .vinfo p { margin: 6px 0 8px; font-size: 14px; line-height: 1.5; color: var(--ink); } .vinfo small { color: var(--org); font-weight: 600; }
.vhint { align-self: center; font-size: 13px; color: var(--mute); background: rgba(255,255,255,.7); padding: 6px 10px; border-radius: 10px; }
@media (max-width: 820px) { .vinfo { left: 10px; top: 10px; padding: 10px 12px; } .vinfo b { font-size: 14px; } .vinfo p { font-size: 13px; margin: 4px 0 6px; } .vhint { display: none; } }
