/* FaceLock — facelock.snapworkslab.com */
:root {
  color-scheme: dark;
  --bg: #0a0b0d;
  --bg-2: #111317;
  --surface: #16181c;
  --ink: #f5f5f7;
  --muted: #a1a1a8;
  --faint: #6e6e76;
  --line: rgba(255, 255, 255, 0.09);
  --green: #30d158;
  --green-ink: #04210d;
  --radius: 14px;
  --wide: 1180px;
  --text: 720px;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Segoe UI", sans-serif;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }

/* 머리말 */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 28px;
  padding: 12px max(20px, calc((100vw - var(--wide)) / 2));
  background: rgba(10, 11, 13, 0.72);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.site-header nav { display: flex; gap: 24px; margin-left: auto; }
.site-header nav a { color: var(--muted); font-size: 15px; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--ink); text-decoration: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px; border-radius: 999px;
  font-weight: 650; font-size: 17px; letter-spacing: -0.01em;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--green); color: var(--green-ink); }
.btn-primary:hover { background: #45dc6b; }
.btn-ghost { color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); }
.btn-small { min-height: 34px; padding: 0 16px; font-size: 14px; }

/* 첫 화면 */
.hero {
  position: relative;
  display: grid; align-items: center;
  min-height: calc(100svh - 59px);
  padding: 48px max(20px, calc((100vw - 1280px) / 2)) 56px;
  background:
    radial-gradient(45% 60% at 72% 40%, rgba(48, 209, 88, 0.13), transparent 70%),
    var(--bg);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.hero-copy { text-align: left; }
.eyebrow { margin: 0 0 6px; color: var(--green); font-size: 15px; font-weight: 650; letter-spacing: 0.02em; }
.hero h1 { margin: 0; font-size: clamp(52px, 6.6vw, 92px); line-height: 1; letter-spacing: -0.045em; font-weight: 750; }
.hero .headline { margin: 18px 0 0; max-width: 13em; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.28; font-weight: 650; letter-spacing: -0.03em; }
.hero .lead { margin: 16px 0 0; max-width: 26em; color: var(--muted); font-size: 18px; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.hero .cta { justify-content: flex-start; }
.meta { margin: 14px 0 0; color: var(--faint); font-size: 14px; }

/* Mac 화면 재현 */
.mac { width: 100%; margin: 0 auto; }
.mac-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  container-type: inline-size;
  border-radius: 18px 18px 6px 6px;
  border: 10px solid #1b1c1f;
  border-bottom-width: 12px;
  background: #000;
  overflow: hidden;
  box-shadow: 0 0 0 1px #2c2d31, 0 40px 120px rgba(0, 0, 0, 0.6);
}
.mac-base {
  height: 16px; margin: 0 -4%;
  background: linear-gradient(#3a3b40, #1d1e21 60%, #121315);
  border-radius: 0 0 14px 14px;
  position: relative;
}
.mac-base::before { content: ""; position: absolute; left: 50%; top: 0; width: 15%; height: 6px; transform: translateX(-50%); background: #26272b; border-radius: 0 0 8px 8px; }
.wall {
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 80% at 18% 20%, #3f6fb0 0%, transparent 60%),
    radial-gradient(60% 70% at 85% 80%, #7a4fa6 0%, transparent 62%),
    radial-gradient(50% 60% at 70% 15%, #2f8c8a 0%, transparent 60%),
    linear-gradient(160deg, #142640, #24173c);
}
.menubar {
  position: absolute; left: 0; right: 0; top: 0; height: 3.6cqw;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.6cqw;
  font-size: 1.15cqw; color: #fff;
  background: rgba(10, 12, 20, 0.28);
  backdrop-filter: blur(10px);
}
.mb-left { position: relative; display: flex; gap: 1.6cqw; align-items: center; }
.mb-app { font-weight: 700; }
.mb-swap { position: relative; display: inline-block; min-width: 7cqw; }
.mb-swap span { position: absolute; left: 0; top: 50%; transform: translateY(-50%); white-space: nowrap; }
.mb-right { display: flex; gap: 1.5cqw; align-items: center; }
.mb-icon { position: relative; width: 1.6cqw; height: 1.6cqw; }
.mb-icon svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mb-wifi { width: 1.5cqw; height: 1.5cqw; }

.notch {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 13.2%; height: 3.6%;
  background: #000;
  border-radius: 0 0 1.1cqw 1.1cqw;
  display: grid; place-items: center;
  z-index: 3;
}
.hud-glyph { width: 46%; aspect-ratio: 1; opacity: 0; }

.doc {
  position: absolute; left: 17%; top: 15%; width: 66%; height: 72%;
  border-radius: 1.1cqw; overflow: hidden;
  box-shadow: 0 2cqw 5cqw rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
  background: #fbfbfa; color: #1d1d1f;
}
.doc-bar { height: 5.2cqw; display: flex; align-items: center; gap: 0.8cqw; padding: 0 1.6cqw; border-bottom: 1px solid #e6e5e1; background: #f1f0ec; font-size: 1.15cqw; color: #555; }
.doc-bar i { width: 1.15cqw; height: 1.15cqw; border-radius: 50%; background: #ff5f57; }
.doc-bar i:nth-child(2) { background: #febc2e; }
.doc-bar i:nth-child(3) { background: #28c840; margin-right: auto; }
.doc-bar b { position: absolute; left: 50%; transform: translateX(-50%); font-weight: 600; }
.doc-body { padding: 2.6cqw 4cqw; font-size: 1.45cqw; line-height: 1.75; text-align: left; }
.doc-body h3 { margin: 0 0 1cqw; font-size: 2.3cqw; letter-spacing: -0.03em; }
.doc-body p { margin: 0 0 0.6cqw; }
.doc-body ul { margin: 0 0 1.2cqw; padding-left: 2.2cqw; }

.shield {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.9cqw;
  background: #1e1e1e; color: #f5f5f7;
  border-radius: 1.1cqw;
}
.shield-icon { position: relative; width: 7.6cqw; height: 7.6cqw; margin-bottom: 1cqw; }
.shield-icon .app { width: 100%; height: 100%; border-radius: 1.8cqw; background: linear-gradient(#ffffff, #ececec); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); overflow: hidden; }
.shield-icon .app::before { content: ""; position: absolute; inset: 22% 0 auto 0; height: 58%; background: repeating-linear-gradient(#fff 0 23%, #bdbdbd 23% 27%); opacity: .9; border-radius: 0; }
.shield-icon .app::after { content: ""; position: absolute; left: 22%; top: 0; bottom: 0; width: 2px; background: #e7908e; }
.shield-icon .badge { position: absolute; right: -1.2cqw; bottom: -1.2cqw; width: 3cqw; height: 3cqw; border-radius: 50%; background: #8e8e93; border: 0.35cqw solid #1e1e1e; display: grid; place-items: center; }
.shield-icon .badge svg { width: 56%; height: 56%; }
.shield strong { font-size: 2.1cqw; letter-spacing: -0.02em; }
.shield span { font-size: 1.3cqw; color: #9a9aa0; }

.hero-steps { list-style: none; display: flex; justify-content: center; gap: clamp(14px, 3vw, 36px); flex-wrap: wrap; margin: 28px 0 0; padding: 0; color: var(--faint); font-size: 15px; }
.hero-steps li { display: flex; align-items: center; gap: 8px; }
.hero-steps b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 13px; background: rgba(255,255,255,.08); color: var(--muted); }

/* 애니메이션: 9초마다 잠긴 앱 → 노치에서 확인 → 체크 → 열림 → 다시 잠김 */
.anim .notch { animation: notch 9s infinite cubic-bezier(.3,.7,.2,1); }
.anim .hud-glyph { animation: hudGlyph 9s infinite; }
.anim .g-face { animation: face 9s infinite ease-in-out; }
.anim .g-corners { animation: corners 9s infinite cubic-bezier(.4,0,.2,1); transform-box: view-box; transform-origin: 50% 50%; }
.anim .g-ring { animation: ring 9s infinite cubic-bezier(.4,0,.2,1); }
.anim .g-check { animation: check 9s infinite ease-out; }
.anim .shield { animation: shield 9s infinite ease; }
.anim .mb-locked { animation: lockedOn 9s infinite; }
.anim .mb-open { animation: openOn 9s infinite; }
.anim .hero-steps li:nth-child(1) { animation: step1 9s infinite; }
.anim .hero-steps li:nth-child(2) { animation: step2 9s infinite; }
.anim .hero-steps li:nth-child(3) { animation: step3 9s infinite; }
.hero-steps li { transition: color .3s; }

@keyframes notch {
  0%, 8% { width: 13.2%; height: 3.6%; border-radius: 0 0 1.1cqw 1.1cqw; }
  13% { width: 15.6%; height: 23.5%; border-radius: 0 0 3cqw 3cqw; }
  15%, 50% { width: 15%; height: 22.5%; border-radius: 0 0 3cqw 3cqw; }
  56%, 100% { width: 13.2%; height: 3.6%; border-radius: 0 0 1.1cqw 1.1cqw; }
}
@keyframes hudGlyph { 0%, 12% { opacity: 0; transform: scale(.7); } 16%, 48% { opacity: 1; transform: none; } 52%, 100% { opacity: 0; transform: scale(.8); } }
@keyframes face {
  0%, 16% { transform: translate(0, 0); opacity: 1; }
  20% { transform: translate(-5px, 1px); }
  25% { transform: translate(5px, -1px); }
  30% { transform: translate(-2px, 1px); }
  33% { transform: translate(0, 0); opacity: 1; }
  36%, 100% { opacity: 0; transform: scale(.7); }
}
@keyframes corners { 0%, 33% { opacity: 1; transform: none; } 40%, 100% { opacity: 0; transform: rotate(90deg) scale(.8); } }
@keyframes ring { 0%, 34% { stroke-dashoffset: 100; opacity: 0; } 35% { opacity: 1; } 41%, 100% { stroke-dashoffset: 0; opacity: 1; } }
@keyframes check { 0%, 40% { stroke-dashoffset: 100; } 45%, 100% { stroke-dashoffset: 0; } }
@keyframes shield { 0%, 44% { opacity: 1; } 48%, 90% { opacity: 0; } 94%, 100% { opacity: 1; } }
@keyframes lockedOn { 0%, 45% { opacity: 1; } 47%, 91% { opacity: 0; } 93%, 100% { opacity: 1; } }
@keyframes openOn { 0%, 45% { opacity: 0; } 47%, 91% { opacity: 1; } 93%, 100% { opacity: 0; } }
@keyframes step1 { 0%, 11% { color: var(--ink); } 13%, 100% { color: var(--faint); } }
@keyframes step2 { 0%, 11% { color: var(--faint); } 13%, 44% { color: var(--ink); } 46%, 100% { color: var(--faint); } }
@keyframes step3 { 0%, 44% { color: var(--faint); } 46%, 90% { color: var(--green); } 92%, 100% { color: var(--faint); } }

@media (prefers-reduced-motion: reduce) {
  .anim * { animation: none !important; }
  .notch { width: 15%; height: 22.5%; border-radius: 0 0 3cqw 3cqw; }
  .hud-glyph { opacity: 1; }
  .g-ring, .g-check { opacity: 0; }
  .mb-open { opacity: 0; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* 본문 구역 */
.section { padding: 112px 20px; border-top: 1px solid var(--line); }
.section.tight { padding-top: 88px; padding-bottom: 88px; }
.wrap { max-width: var(--wide); margin: 0 auto; }
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split.flip { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.split.flip .copy { order: 2; }
.kicker { margin: 0 0 10px; color: var(--green); font-size: 15px; font-weight: 650; }
h2 { margin: 0; font-size: clamp(34px, 4.8vw, 56px); line-height: 1.12; letter-spacing: -0.04em; font-weight: 720; }
.copy p { color: var(--muted); font-size: 19px; margin: 18px 0 0; max-width: 30em; }
.points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.points li { position: relative; padding-left: 28px; color: var(--ink); }
.points li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 14px; height: 8px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.points span { color: var(--muted); }
.shot { border-radius: var(--radius); box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 80px rgba(0,0,0,.55); }
.shot-window { border-radius: 16px; }
.shot-narrow { max-width: 360px; margin: 0 auto; }

.notch-stage {
  position: relative; margin: 48px auto 0; max-width: 760px; height: 300px;
  border-radius: 18px; overflow: hidden;
  background:
    radial-gradient(70% 90% at 25% 0%, #3f6fb0 0%, transparent 60%),
    radial-gradient(60% 90% at 80% 10%, #6b4a9a 0%, transparent 60%),
    linear-gradient(170deg, #1a2c47, #1e1733);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08);
}
.notch-stage .bar { position: absolute; left: 0; right: 0; top: 0; height: 30px; background: rgba(10,12,20,.3); }
.notch-stage img { position: absolute; left: 50%; top: 0; width: 288px; transform: translateX(-50%); }
.center { text-align: center; }
.center .copy p, .center p.sub { margin-left: auto; margin-right: auto; }
p.sub { color: var(--muted); font-size: 19px; margin: 18px auto 0; max-width: 32em; }

.states { display: flex; justify-content: center; gap: clamp(20px, 6vw, 72px); margin: 48px 0 0; padding: 0; list-style: none; }
.states li { display: grid; justify-items: center; gap: 14px; color: var(--muted); font-size: 15px; }
.states .chip { width: 76px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(170deg, #2a3f63, #2a2142); box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.states svg { width: 26px; height: 26px; }
.styles-note { margin-top: 28px; color: var(--faint); font-size: 15px; }

.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 56px; border-top: 1px solid var(--line); }
.trio > div { padding: 28px 28px 0 0; }
.trio > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.trio h3 { margin: 0 0 8px; font-size: 21px; letter-spacing: -0.02em; }
.trio p { margin: 0; color: var(--muted); font-size: 16px; }
.trio svg { width: 30px; height: 30px; margin-bottom: 14px; color: var(--green); }

.faq { max-width: var(--text); margin: 48px auto 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; list-style: none; font-size: 19px; font-weight: 620; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--faint); font-weight: 400; font-size: 24px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 12px 0 0; }

.final { text-align: center; padding: 120px 20px; border-top: 1px solid var(--line); background: radial-gradient(50% 60% at 50% 100%, rgba(48,209,88,.12), transparent 70%); }
.final img { width: 88px; height: 88px; margin: 0 auto 20px; }
.final .links { margin-top: 18px; color: var(--faint); font-size: 15px; display: flex; gap: 18px; justify-content: center; }

/* 문서 페이지 */
.doc-page { max-width: var(--text); margin: 0 auto; padding: 72px 20px 96px; }
.doc-page h1 { margin: 0; font-size: clamp(36px, 6vw, 52px); letter-spacing: -0.04em; line-height: 1.15; }
.doc-page .intro { color: var(--muted); font-size: 19px; margin: 16px 0 0; }
.doc-page h2 { font-size: 26px; margin: 56px 0 0; letter-spacing: -0.03em; }
.doc-page h3 { font-size: 19px; margin: 28px 0 0; }
.doc-page p, .doc-page li { color: #d0d0d6; }
.doc-page ol, .doc-page ul { padding-left: 22px; }
.doc-page li { margin: 8px 0; }
.doc-page .updated { color: var(--faint); font-size: 14px; margin-top: 48px; }
.doc-page code, kbd { font: 14px ui-monospace, SFMono-Regular, Menlo, monospace; background: rgba(255,255,255,.07); padding: 1px 6px; border-radius: 6px; color: var(--ink); }
.doc-page .faq { margin-top: 20px; }
.release { padding: 32px 0; border-bottom: 1px solid var(--line); }
.release h2 { margin: 0; font-size: 28px; }
.release h2 span { color: var(--faint); font-size: 15px; font-weight: 500; margin-left: 10px; letter-spacing: 0; }
.notfound { text-align: center; padding: 140px 20px; }
.notfound img { width: 96px; height: 96px; margin: 0 auto 24px; }

/* 바닥글: SnapWorks Lab Brand Kit 2.0 표기(마크 + 글자) */
.site-footer { border-top: 1px solid var(--line); padding: 36px 20px 48px; }
.footer-inner { max-width: var(--wide); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.swl { display: inline-flex; align-items: center; gap: 9px; color: #fff; }
.swl:hover { text-decoration: none; }
.swl img { width: 26px; height: 26px; }
.swl-word { font-size: 18px; font-weight: 720; letter-spacing: -0.055em; }
.swl-by { font-size: 11px; font-weight: 500; letter-spacing: -0.015em; color: #cbd5e1; margin-left: 2px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; }
.site-footer nav a { color: var(--muted); font-size: 14px; }
.site-footer .copy { width: 100%; margin: 0; color: var(--faint); font-size: 13px; }

/* 나타나기 */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero { min-height: 0; padding-top: 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy { text-align: center; }
  .hero .headline, .hero .lead { margin-left: auto; margin-right: auto; }
  .hero .cta { justify-content: center; }
  .split, .split.flip { grid-template-columns: 1fr; }
  .split.flip .copy { order: 0; }
  .trio { grid-template-columns: 1fr; }
  .trio > div, .trio > div + div { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .section { padding: 80px 20px; }
}
@media (max-width: 720px) {
  .site-header nav { display: none; }
  .site-header .btn-small { margin-left: auto; }
  .hero { padding-top: 48px; }
  .mac-screen { border-width: 6px; border-bottom-width: 8px; border-radius: 12px 12px 4px 4px; }
  .notch-stage { height: 220px; }
  .notch-stage img { width: 220px; }
  .states { gap: 16px; }
  .states .chip { width: 64px; height: 40px; }
  .site-footer nav { margin-left: 0; }
}

/* 메뉴 막대 상태 예시 */
.states .chip { color: #fff; }
.states .pulse svg { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.notfound h1 { margin: 0; font-size: clamp(32px, 5vw, 48px); letter-spacing: -0.03em; }
@media (prefers-reduced-motion: reduce) { .states .pulse svg { animation: none; } }
