@font-face { font-family: 'Pretendard'; src: url('fonts/Pretendard-Light.woff') format('woff'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Pretendard'; src: url('fonts/Pretendard-Regular.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Pretendard'; src: url('fonts/Pretendard-Medium.woff') format('woff'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Pretendard'; src: url('fonts/Pretendard-SemiBold.woff') format('woff'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Pretendard'; src: url('fonts/Pretendard-Bold.woff') format('woff'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Quantify'; src: url('fonts/Quantify%20Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

:root {
  --bg: #0a0b0e;
  --s1: #0e1013;
  --s2: #14161a;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #e6e8eb;
  --muted: #8a9099;
  --faint: #5b616a;
  --accent: #4f8cff;
  --mono: 'JetBrains Mono', 'Cascadia Mono', Consolas, ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Pretendard', system-ui, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-x: hidden;
}
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

#scene { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; z-index: 0; }
.veil {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 11, 14, 0.92) 0%, rgba(10, 11, 14, 0.7) 26%, rgba(10, 11, 14, 0) 52%),
    linear-gradient(0deg, rgba(10, 11, 14, 0.6) 0%, rgba(10, 11, 14, 0) 18%);
}
#tags { position: fixed; inset: 0; z-index: 2; pointer-events: none; }
.tag {
  position: absolute; left: 0; top: 0;
  transform: translate(-50%, -100%);
  padding: 3px 7px 4px;
  font-size: 11px; font-weight: 500; white-space: nowrap;
  color: var(--text);
  background: var(--s2);
  border: 1px solid var(--line-2);
  border-radius: 2px;
  opacity: 0;
}
.tag .n { color: var(--accent); margin-right: 6px; font-size: 11px; font-weight: 600; }

/* 상단 바 */
.bar { gap: 20px;
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  height: 56px; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(10, 11, 14, 0.82);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand img { width: 24px; height: 24px; object-fit: contain; }
.wordmark { font-family: 'Quantify', sans-serif; font-weight: 700; font-size: 19px; letter-spacing: 0.01em; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 2px;
  color: var(--muted); text-decoration: none; font-size: 13px;
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--text); background: var(--s2); }
.nav a.on { color: var(--text); background: var(--s2); box-shadow: inset 0 -1px 0 var(--accent); }
.lang { padding: 6px 9px; border: 1px solid var(--line-2); border-radius: 2px; color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.lang:hover { color: var(--text); border-color: rgba(255, 255, 255, .28); }

.rail { position: fixed; z-index: 10; right: 24px; top: 50%; width: 1px; height: 38vh; transform: translateY(-50%); background: var(--line-2); }
.rail-fill { position: absolute; left: -0.5px; top: 0; width: 2px; height: 0; background: var(--accent); }

/* 섹션 */
main { position: relative; z-index: 3; }
.sec { min-height: 100vh; display: flex; align-items: center; padding: 96px 32px 64px 7vw; position: relative; }
.col { max-width: 460px; }
.hero .col { max-width: 620px; }
.col.wide { max-width: 760px; }
.col > * { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.sec.in .col > * { opacity: 1; transform: none; }
.sec.in .col > *:nth-child(2) { transition-delay: .06s; }
.sec.in .col > *:nth-child(3) { transition-delay: .12s; }
.sec.in .col > *:nth-child(4) { transition-delay: .18s; }
.sec.in .col > *:nth-child(5) { transition-delay: .24s; }
.sec.in .col > *:nth-child(6) { transition-delay: .3s; }

.hero-logo { display: flex; align-items: center; gap: 16px; margin: 0 0 30px; color: var(--text); }
.hero-logo svg { width: 58px; height: 58px; flex: none; }
.hero-logo .wordmark { font-size: 46px; line-height: 1; }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--accent); margin: 0 0 18px; }
h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.12; font-weight: 700; letter-spacing: -0.025em; margin: 0 0 40px; }
h1 .dim { color: var(--muted); font-weight: 600; }
h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 700; letter-spacing: -0.02em; margin: 0 0 18px; }
.idx { font-size: 15px; font-weight: 600; color: var(--accent); margin: 0 0 12px; }
.lead { font-size: 16px; line-height: 1.65; color: #b9bec6; margin: 0 0 28px; }


.scroll-cue { position: absolute; left: 7vw; bottom: 40px; display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--faint); }
.scroll-cue span { width: 40px; height: 1px; background: var(--line-2); position: relative; overflow: hidden; }
.scroll-cue span::after { content: ''; position: absolute; inset: 0; width: 12px; background: var(--text); animation: cue 2.2s cubic-bezier(.6, 0, .2, 1) infinite; }
@keyframes cue { from { transform: translateX(-12px); } to { transform: translateX(40px); } }


.flow { list-style: none; padding: 0; margin: 0 0 28px; border-top: 1px solid var(--line); }
.flow li { display: grid; grid-template-columns: 30px 120px 1fr; align-items: baseline; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.flow .n { font-size: 12px; font-weight: 600; color: var(--faint); }
.flow b { font-weight: 600; }
.flow em { font-style: normal; color: var(--muted); font-size: 13px; }


.readout { background: var(--s1); border: 1px solid var(--line); border-radius: 3px; padding: 4px 0 8px; width: 340px; }
.ro-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px 6px; font-size: 12px; color: var(--muted); }
.ro-head .live { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.ro-head .live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.ro-row { display: grid; grid-template-columns: 44px 1fr 72px; align-items: center; gap: 10px; padding: 4px 14px; font-size: 12px; }
.ro-row .n { color: var(--faint); font-size: 12px; font-weight: 600; }
.ro-row .val { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.ro-bar { height: 3px; background: #0a0b0e; position: relative; border-radius: 1px; }
.ro-bar::before { content: ''; position: absolute; left: 50%; top: -2px; width: 1px; height: 7px; background: var(--line-2); }
.ro-bar i { position: absolute; top: 0; height: 100%; background: #c4c9d0; }

.legend { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; font-size: 13px; color: var(--muted); }
.legend > div { display: flex; align-items: center; gap: 12px; }
.lg-solid { stroke: #e6e8eb; stroke-width: 2; }
.lg-dash { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 5 4; }


.end { flex-direction: column; justify-content: center; align-items: flex-start; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.grid > div { display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(14, 16, 19, .72); }
.grid .mono { font-size: 10px; color: var(--faint); }
.grid b { font-weight: 600; font-size: 15px; }
.grid em { font-style: normal; color: var(--muted); font-size: 12.5px; }
.foot { position: relative; z-index: 2; padding: 56px 32px 32px 7vw; background: var(--bg); border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.foot-main { display: flex; justify-content: space-between; gap: 48px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.foot-brand .wordmark { font-size: 22px; color: var(--text); }
.foot-brand p { margin: 12px 0 0; font-size: 13px; line-height: 1.7; color: var(--faint); }
.foot-cols { display: flex; gap: 72px; }
.foot-cols h4 { margin: 0 0 14px; font-size: 12px; font-weight: 600; color: var(--text); }
.foot-cols ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot-legal { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-top: 24px; font-size: 12px; color: var(--faint); }
.foot-legal address { font-style: normal; line-height: 1.8; }
.foot-legal p { margin: 0; }
.foot-legal p span + span::before { content: ''; display: inline-block; width: 1px; height: 9px; margin: 0 10px; background: var(--line-2); }
.foot-copy { white-space: nowrap; }

@media (max-width: 900px) {
  .nav { display: none; }
  .bar { padding: 0 18px; background: var(--bg); }  /* 긴 섹션 본문이 밑으로 지나갈 때 비쳐 보이지 않게 */
  .sec { padding: 88px 20px 56px; align-items: flex-end; }
  .veil { background: linear-gradient(0deg, rgba(10, 11, 14, .94) 0%, rgba(10, 11, 14, .6) 45%, rgba(10, 11, 14, 0) 70%); }
  .grid { grid-template-columns: 1fr 1fr; }
  .rail { display: none; }
  .readout { width: 100%; }
  .hero-logo { gap: 12px; margin-bottom: 22px; }
  .hero-logo svg { width: 42px; height: 42px; }
  .hero-logo .wordmark { font-size: 34px; }
  .foot { padding: 40px 20px calc(28px + env(safe-area-inset-bottom)); }
  .foot-main { flex-direction: column; gap: 32px; padding-bottom: 28px; }
  .foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .foot-cols > div:last-child { grid-column: 1 / -1; }
  .foot-legal { flex-direction: column; align-items: flex-start; gap: 14px; }
  .foot-legal p span { display: block; }
  .foot-legal p span + span::before { display: none; }
  .foot-copy { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .col > * { transition: none; }
  .scroll-cue span::after, .ro-head .live::before { animation: none; }
}

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 22px; border-radius: 3px; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .2s, border-color .2s, color .2s; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #6a9dff; }
.btn-ghost { color: var(--text); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: var(--s2); border-color: rgba(255, 255, 255, .28); }

.sub { font-size: 17px; line-height: 1.7; color: #b9bec6; margin: 0 0 32px; max-width: 460px; }
.ctas { display: flex; gap: 10px; margin-bottom: 48px; }
.pillars { list-style: none; padding: 0; margin: 0; display: flex; border-top: 1px solid var(--line); }
.pillars li { display: flex; flex-direction: column; gap: 4px; padding: 16px 28px 0 0; margin-right: 28px; border-right: 1px solid var(--line); }
.pillars li:last-child { border-right: 0; margin-right: 0; }
.pillars b { font-size: 14px; font-weight: 600; }
.pillars em { font-style: normal; font-size: 12px; color: var(--muted); }

.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.checks li { position: relative; padding-left: 26px; font-size: 14.5px; }
.checks li::before { content: ''; position: absolute; left: 2px; top: 5px; width: 10px; height: 5px; border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(-45deg); }

.modules { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-bottom: 26px; }
.modules > div { display: flex; flex-direction: column; gap: 3px; padding: 13px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(14, 16, 19, .72); }
.modules b { font-size: 14px; font-weight: 600; }
.modules em { font-style: normal; font-size: 12px; color: var(--muted); }
.counter { display: flex; flex-direction: column; gap: 4px; }
.counter .k { font-size: 12px; color: var(--muted); }
.counter .k .note { font-size: 11px; color: var(--faint); margin-left: 6px; }
.counter .v { font-size: 40px; font-weight: 400; letter-spacing: -0.02em; }
.counter .v small { font-size: 13px; color: var(--muted); margin-left: 6px; }

.cta-block { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 28px; padding: 24px 26px; background: var(--s1); border: 1px solid var(--line); border-radius: 3px; }
.cta-block h3 { margin: 0 0 6px; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.cta-block p { margin: 0; font-size: 13.5px; color: var(--muted); }
@media (max-width: 900px) {
  .bar .lang { margin-left: auto; }
  .cta-block { flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 20px; padding: 20px; }
  /* 마지막 섹션은 푸터까지 한 화면에 들어오게 — 넘치면 제목이 상단바 밑으로 들어간다 */
  .grid > div { padding: 13px 14px 14px; gap: 4px; }
  .pillars { flex-wrap: wrap; }
}

.cta-block .mail { display: inline-block; margin-top: 6px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.cta-block .mail:hover { border-color: var(--accent); }
.tag .n:empty { display: none; }
.media-note { margin: 22px 0 0; font-size: 12px; color: var(--faint); }


/* 도입 문의 폼 */
.inq { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line-2); border-radius: 4px; background: var(--s1); color: var(--text); overflow: auto; }
.inq::backdrop { background: rgba(5, 6, 8, 0.72); }
.inq-form { display: flex; flex-direction: column; gap: 14px; padding: 24px; }
.inq-head { display: flex; align-items: center; justify-content: space-between; }
.inq-head h3 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.inq-x { width: 32px; height: 32px; border: 0; border-radius: 3px; background: none; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.inq-x:hover { background: var(--s2); color: var(--text); }
.inq-lead { margin: -6px 0 2px; font-size: 13.5px; color: var(--muted); }
.inq-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.inq label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--muted); }
.inq .req { color: var(--accent); }
.inq input:not([type="checkbox"]), .inq textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 3px; background: var(--bg); color: var(--text); font: inherit; font-size: 14px; }
.inq textarea { resize: vertical; min-height: 110px; }
.inq input:focus, .inq textarea:focus { outline: none; border-color: var(--accent); }
.inq input::placeholder, .inq textarea::placeholder { color: var(--faint); }
.inq .inq-consent { flex-direction: row; align-items: flex-start; gap: 10px; font-size: 12px; line-height: 1.6; }
.inq-consent input { margin: 3px 0 0; accent-color: var(--accent); flex: none; }
.inq-consent a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.inq-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.inq-msg { min-height: 1.6em; margin: 0; font-size: 13px; color: var(--muted); }
.inq-msg[data-kind="ok"] { color: var(--text); }
.inq-msg[data-kind="ok"]::before { content: '✓ '; color: var(--accent); }
.inq-msg[data-kind="err"]::before { content: '! '; font-weight: 700; }
.inq-foot { display: flex; justify-content: flex-end; gap: 10px; }
.inq-foot .btn { cursor: pointer; border: 0; font-family: inherit; }
.inq-foot .btn-ghost { border: 1px solid var(--line-2); background: none; color: var(--text); }
.inq-foot .btn:disabled { opacity: .5; cursor: default; }
@media (max-width: 900px) {
  .inq { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .inq-form { padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); }
  .inq-row { grid-template-columns: 1fr; }
  .inq-foot .btn { flex: 1; }
}
