/* 프로젝트 Nexus — 마케팅 랜딩.
   읽는 사람이 40~60대다. 글씨를 키우고, 섹션을 확실히 끊고,
   개념은 글 대신 움직이는 그림으로 설명한다. 다크 전용. */

/* ── 폰트 — 한글 페이퍼로지, 영문 프리텐다드 ───────────────
   프리텐다드는 한글 글리프도 갖고 있어 그냥 앞에 두면 한글까지 가져간다.
   그래서 라틴 영역만 잘라낸 별도 패밀리로 선언하고 뒤에 페이퍼로지를 둔다. */
@font-face {
  font-family: "PretendardLatin";
  font-style: normal; font-weight: 45 920; font-display: swap;
  src: url("/fonts/PretendardVariable.subset.91.woff2") format("woff2-variations");
  unicode-range: U+0020-007E, U+00A0-00FF, U+2013-2014, U+201C-201D, U+2018-2019, U+2022, U+2122, U+20A0-20BF;
}
@font-face { font-family:"Paperlogy"; font-weight:400; font-display:swap;
  src:url("/fonts/Paperlogy-4Regular.woff2") format("woff2"); }
@font-face { font-family:"Paperlogy"; font-weight:500; font-display:swap;
  src:url("/fonts/Paperlogy-5Medium.woff2") format("woff2"); }
@font-face { font-family:"Paperlogy"; font-weight:700; font-display:swap;
  src:url("/fonts/Paperlogy-7Bold.woff2") format("woff2"); }

:root {
  --bg: #050507;
  --panel: rgba(18,19,23,.82);
  --line: rgba(255,255,255,.10);
  --glass-line: rgba(255,255,255,.16);
  --ink: #F5F6F8;
  --ink-soft: #B6BCC6;
  --ink-faint: #7C838E;
  --hot: #E8622A;
  --cool: #7FB4DE;
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "PretendardLatin", "Paperlogy", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 19px;              /* 40~60대 기준. 예전 16px 은 작았다 */
  line-height: 1.9;
  word-break: keep-all;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 2; }
.narrow { max-width: 820px; }

/* ── 섹션 — 배경 이미지 + 패럴랙스 ──────────────────────
   background-attachment: fixed 는 모바일에서 깨진다. 배경을 별도 레이어로
   깔고 스크롤에 따라 transform 으로 천천히 밀어 준다. */
.sec { position: relative; padding: 130px 0; overflow: hidden; isolation: isolate; }
.sec > .bg {
  position: absolute; inset: -18% 0 -18% 0; z-index: 0;
  background-size: cover; background-position: center;
  will-change: transform;
  /* 이미지 경계가 칼로 자른 듯 보이지 않게 위아래를 흐린다 */
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
}
.sec > .bg::after {           /* 덮개를 절반으로 — 배경이 보이면서 글씨도 읽히게 */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,5,7,.55), rgba(5,5,7,.35) 35%, rgba(5,5,7,.35) 65%, rgba(5,5,7,.60));
}
.sec.tight { padding: 96px 0; }

/* ── 스크롤 리빌 ───────────────────────────────── */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.3,1); }
.rv.on { opacity: 1; transform: none; }

/* ── 글자 ─────────────────────────────────────── */
.eyebrow {
  display: inline-block; margin: 0 0 20px;
  background: rgba(255,255,255,.07); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: rgba(255,255,255,.86);
  font-size: 15px; font-weight: 500; padding: 7px 18px; border-radius: 999px;
}
h1 {
  margin: 0; font-weight: 700; letter-spacing: -.03em;
  font-size: clamp(40px, 6.6vw, 84px); line-height: 1.18; text-wrap: balance;
}
h2 {
  margin: 0 0 22px; font-weight: 700; letter-spacing: -.025em;
  font-size: clamp(31px, 4.6vw, 54px); line-height: 1.3; text-wrap: balance;
}
h3 { font-size: clamp(21px, 2.4vw, 26px); font-weight: 700; margin: 0 0 12px; letter-spacing: -.01em; }
p { margin: 0 0 22px; color: var(--ink-soft); max-width: 34em; font-size: clamp(17px, 1.5vw, 20px); }
p:last-child { margin-bottom: 0; }
strong { color: #fff; font-weight: 700; }
em { font-style: normal; color: var(--cool); font-weight: 500; }
.lead { font-size: clamp(19px, 2vw, 24px); color: rgba(255,255,255,.88); line-height: 1.85; }
.center { text-align: center; }
.center p, .center .lead { margin-left: auto; margin-right: auto; }

/* ── 버튼 ─────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 14px;
  background: #fff; color: #16171A; text-decoration: none;
  font-weight: 700; font-size: 19px; font-family: inherit;
  padding: 16px 18px 16px 32px; border-radius: 999px; border: 0; cursor: pointer;
}
.pill:hover { filter: brightness(.93); }
.pill i {
  width: 32px; height: 32px; border-radius: 50%; background: var(--hot);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-style: normal; font-size: 16px; line-height: 1;
}
.pill.ghost {
  background: rgba(255,255,255,.08); color: var(--ink);
  border: 1px solid var(--glass-line); padding: 16px 30px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.pill.ghost:hover { background: rgba(255,255,255,.14); filter: none; }
.ctarow { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 40px; }
.center .ctarow { justify-content: center; }

/* ── 히어로 ───────────────────────────────────── */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 130px 0 100px; text-align: center; }
.hero .wrap { z-index: 3; }
.hero h1 { text-shadow: 0 4px 40px rgba(0,0,0,.7); }
/* 히어로 배경 영상 — 화면을 꽉 채우고 계속 흐른다.
   되감기를 이어 붙여 만든 20초 왕복이라 루프가 튀지 않는다. */
.herobg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  pointer-events: none;
}
.herobg-live {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0; transition: opacity 1.2s ease;      /* 준비되면 영상 위로 부드럽게 올라온다 */
}
.herobg-live.on { opacity: 1; }
/* 셰이더가 살아나면 영상은 물러난다 */
.hero.live .herobg { opacity: 0; transition: opacity 1.2s ease; }
canvas.herobg-live { width: 100%; height: 100%; display: block; }

.wordmark {
  font-size: clamp(26px, 5.2vw, 62px); letter-spacing: .3em; font-weight: 700;
  color: #fff; margin: 0 0 26px; padding-left: .3em; max-width: none;
  text-shadow: 0 4px 40px rgba(0,0,0,.65);
}
.wordmark b { font-weight: 700; color: #fff; }
.hero .lead { max-width: 27em; margin: 26px auto 0;
  text-shadow: 0 2px 10px rgba(0,0,0,.85), 0 6px 30px rgba(0,0,0,.75); }
.hero .pill.ghost {
  background: rgba(10,13,18,.58); border-color: rgba(255,255,255,.3);
  text-shadow: 0 2px 10px rgba(0,0,0,.8);
}
.hero .pill.ghost:hover { background: rgba(10,13,18,.72); }
.scrollhint {
  margin-top: 60px; font-size: 15px; color: var(--ink-soft);
  text-shadow: 0 2px 10px rgba(0,0,0,.85);
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.scrollhint b { display: block; width: 1px; height: 26px; background: linear-gradient(var(--ink-faint), transparent); }

/* ── 카드 ─────────────────────────────────────── */
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 36px;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.card .num {
  display: block; font-size: 15px; letter-spacing: .12em; color: var(--hot);
  font-weight: 500; margin-bottom: 14px;
}
.card p { font-size: 17.5px; }

/* ── 문서 아이콘 줄 ───────────────────────────── */
.docrow { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin: 44px 0 0; }
.doc { width: 104px; text-align: center; }
.doc svg { width: 76px; height: 94px; margin: 0 auto; filter: drop-shadow(0 10px 24px rgba(0,0,0,.5)); }
.doc span { display: block; margin-top: 10px; font-size: 15px; color: var(--ink-faint); }
.doc.f { animation: float 6s ease-in-out infinite; }
.doc.f:nth-child(2){ animation-delay:-1s } .doc.f:nth-child(3){ animation-delay:-2s }
.doc.f:nth-child(4){ animation-delay:-3s } .doc.f:nth-child(5){ animation-delay:-4s }
.doc.f:nth-child(6){ animation-delay:-5s }
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-12px) } }

/* ── 변환 파이프라인 도표 ─────────────────────── */
.pipe { margin-top: 44px; }
.pipe svg { width: 100%; height: auto; }
/* 좁은 화면에서 도표를 그대로 줄이면 글씨가 안 읽힌다 — 옆으로 밀어 보게 한다 */
@media (max-width: 760px) {
  .pipe { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 10px; }
  .pipe svg { width: 720px; max-width: none; }
  .pipe::after { content: "← 옆으로 밀어 보세요"; display: block; font-size: 14px; color: var(--ink-faint); }
}
.pipe .lbl { font-size: 15px; fill: var(--ink-soft); }
.pipe .lbl.on { fill: #fff; }
.pipe .track { stroke: rgba(127,180,222,.16); stroke-width: 3; stroke-linecap: round; }
.pipe .beam {
  stroke: #9FC7E8; stroke-width: 3; stroke-linecap: round;
  filter: drop-shadow(0 0 7px rgba(159,199,232,.95));
  stroke-dasharray: 46 1000; stroke-dashoffset: 46; opacity: 0;
}
.pipe.play .beam { animation: beam 4.4s linear infinite; animation-delay: var(--d, 0s); }
/* 움직임은 앞 25% 안에 끝난다. 나머지는 다음 상자 차례를 기다리는 쉼이다. */
@keyframes beam {
  0%   { stroke-dashoffset: 46;   opacity: 0 }
  3%   { opacity: 1 }
  22%  { opacity: 1 }
  25%  { stroke-dashoffset: -196; opacity: 0 }
  100% { stroke-dashoffset: -196; opacity: 0 }
}
.pipe.play .flowdot { animation: flow 5.4s linear infinite; }
.pipe.play .flowdot:nth-child(2) { animation-delay: 1.8s }
.pipe.play .flowdot:nth-child(3) { animation-delay: 3.6s }
@keyframes flow {
  0%   { opacity: 0; offset-distance: 0% }
  6%   { opacity: 1 }
  94%  { opacity: 1 }
  100% { opacity: 0; offset-distance: 100% }
}
.stagebox { transition: opacity .5s ease; }

/* ── 책장 (초창기 애플 도서앱 느낌) ───────────── */
.shelf {
  border-radius: 16px; overflow: hidden; padding: 0 0 6px;
  background: linear-gradient(180deg,#3A281B,#241810 55%,#171009);
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.07), 0 24px 60px rgba(0,0,0,.55);
}
.shelf .row {
  display: flex; align-items: flex-end; gap: 5px;
  padding: 26px 22px 0; min-height: 150px;
  position: relative;
}
.shelf .row::after {         /* 선반 안쪽 그늘 — 책이 안에 꽂힌 느낌 */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.5), transparent 40%);
}
.shelf .plank {
  height: 18px; margin: 0 8px 20px; position: relative;
  background: linear-gradient(180deg,#D2A26B 0 3px,#A9784A 3px 8px,#6B4A2B 8px,#3A2817);
  border-radius: 3px;
  box-shadow: 0 10px 20px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,255,255,.3);
}
.shelf .plank::after {          /* 선반 앞면 — 두께가 보여야 책이 얹힌 느낌이 난다 */
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 5px;
  background: linear-gradient(180deg,#2A1D11,#160E07); border-radius: 0 0 3px 3px;
}
.book {
  width: 26px; border-radius: 3px 3px 2px 2px;
  box-shadow: inset -3px 0 6px rgba(0,0,0,.45), inset 2px 0 0 rgba(255,255,255,.14);
  position: relative;
}
.book::after {                 /* 책등 장식 — 제목은 쓰지 않는다 */
  content: ""; position: absolute; left: 4px; right: 4px; top: 18%; height: 12%;
  background: rgba(255,255,255,.32); border-radius: 1px;
  box-shadow: 0 22px 0 rgba(255,255,255,.18);
}
.book.tilt { transform: rotate(-8deg) translateY(2px); transform-origin: bottom left; }

/* ── 그래프 뷰 ─────────────────────────────────── */
.graphbox {
  border-radius: 16px; overflow: hidden; position: relative;
  background: radial-gradient(120% 90% at 50% 20%, #10141C, #06070A 70%);
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 24px 60px rgba(0,0,0,.55);
}
.graphbox canvas { display: block; width: 100%; height: 100%; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 44px; }
.duo .shelf, .duo .graphbox { height: 340px; }
.duo .shelf { display: flex; flex-direction: column; justify-content: flex-end; }
.duo figcaption { margin-top: 12px; font-size: 17px; color: var(--ink-soft); }
/* 실제로 손에 들어오는 파일 — 말보다 이름이 빠르다 */
.outs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.outs i {
  font-style: normal; font-size: 15px; font-weight: 500;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(127,180,222,.12); border: 1px solid rgba(127,180,222,.3); color: #CFE3F4;
}
.duo figure { margin: 0; }
.duo h3 { margin-bottom: 16px; }

/* ── 마지막 CTA ───────────────────────────────── */
.finale { text-align: center; }
.finale .bg::after { background: linear-gradient(180deg, rgba(5,5,7,.50), rgba(5,5,7,.30) 45%, rgba(5,5,7,.58)); }

footer {
  padding: 56px 0 72px; text-align: center;
  color: var(--ink-faint); font-size: 16px; border-top: 1px solid var(--line);
}
footer .fmark { display: block; letter-spacing: .3em; font-size: 14px; color: rgba(255,255,255,.7); margin-bottom: 12px; }

/* ── 반응형 ───────────────────────────────────── */
@media (max-width: 900px) {
  .grid3, .grid2, .duo { grid-template-columns: 1fr; }
  .duo .shelf, .duo .graphbox { height: 280px; }
}
@media (max-width: 620px) {
  body { font-size: 18px; }
  .sec { padding: 88px 0; }
  .wrap { padding: 0 20px; }
  .card { padding: 26px 22px; }
  .hero { min-height: 0; padding: 100px 0 70px; }
  .doc { width: 88px; }
  .doc svg { width: 62px; height: 78px; }

}

/* 애니메이션을 원치 않는 사람에게는 전부 끈다 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1 !important; transform: none !important; transition: none !important; }
  .doc.f,   .sec > .bg { transform: none !important; }
}

/* backdrop-filter 를 못 쓰는 브라우저 — 불투명 판으로 떨어진다 */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card { background: #121317; }
  .eyebrow, .pill.ghost { background: #1B1C21; }
}


/* ── 넥서스 서버 ↔ 참여 컴퓨터 흐름도 ─────────── */
.hub { margin-top: 44px; }
.hub svg { width: 100%; height: auto; }
.hub .nlabel { font-size: 14px; fill: var(--ink-soft); }
.hub .hublabel { font-size: 17px; fill: #fff; font-weight: 700; }
.hub .client { fill: #141821; stroke: rgba(255,255,255,.16); }
.hub .spoke { stroke: rgba(127,180,222,.28); stroke-width: 2; fill: none; }
.hub .pulse { transform-origin: 300px 165px; }
.hub.play .pulse { animation: hubPulse 4.5s ease-out infinite; }
@keyframes hubPulse {
  0%   { opacity: .8; transform: scale(.35) }
  70%  { opacity: 0;  transform: scale(1.9) }
  100% { opacity: 0;  transform: scale(1.9) }
}
.hub .pkt { opacity: 0; }
.hub.play .pkt { opacity: 1; }
.hubsteps { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-top: 34px; }
.hubsteps div {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px 22px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.hubsteps b { display: block; font-size: 14px; letter-spacing: .1em; color: var(--hot); margin-bottom: 10px; font-weight: 500; }
.hubsteps p { font-size: 16.5px; margin: 0; }
.hubsteps strong { display: block; font-size: 18px; margin-bottom: 6px; }
@media (max-width: 900px) { .hubsteps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .hubsteps { grid-template-columns: 1fr; } }


/* 원문 언어 칩 — 신학 자료 한 쪽에 함께 놓이는 글자들 */
.scripts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.scripts i {
  font-style: normal; font-size: 16px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line); color: #D7DDE6;
}


/* ── 실제 변환 결과 뷰어 ───────────────────────── */
.viewer {
  margin-top: 38px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #0A0B0E; overflow: hidden;
}
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); background: #0E1014; }
.tab {
  font: inherit; font-size: 16.5px; font-weight: 500; cursor: pointer;
  background: none; border: 0; color: var(--ink-faint);
  padding: 16px 24px; border-bottom: 2px solid transparent;
}
.tab.on { color: #fff; border-bottom-color: var(--cool); background: rgba(127,180,222,.07); }
.tab:hover { color: var(--ink); }
.pane { display: none; padding: 26px 28px 22px; }
.pane.on { display: block; }
.pane pre {
  margin: 0; overflow-x: auto; padding: 4px 2px;
  font-family: ui-monospace, SFMono-Regular, Menlo, "SF Mono", monospace;
  font-size: 15px; line-height: 1.85; color: #C9D3DE;
}
.pane code b { color: #9FD0F5; font-weight: 500; }
.pane .mask {                    /* 저작권 있는 본문은 가린다 */
  background: rgba(255,255,255,.09); color: transparent;
  border-radius: 4px; padding: 0 6px; user-select: none;
}
.pane .mask::selection { background: transparent; }
.pane .note {
  margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 16px; color: var(--ink-soft); max-width: none;
}
.pane .note b { color: #fff; font-weight: 600; }
@media (max-width: 620px) {
  .tab { padding: 14px 14px; font-size: 15px; }
  .pane { padding: 20px 16px 18px; }
  .pane pre { font-size: 13px; }
}


/* ── 참여 가능한 컴퓨터 ───────────────────────── */
.specs { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 22px; }
.specs > div {
  border: 1px solid var(--line); border-radius: 16px; padding: 24px 26px;
  background: linear-gradient(180deg, rgba(127,180,222,.07), rgba(255,255,255,.02));
}
.specs .k {
  display: inline-block; font-size: 14px; letter-spacing: .08em; color: var(--cool);
  border: 1px solid rgba(127,180,222,.35); border-radius: 999px; padding: 3px 12px; margin-bottom: 14px;
}
.specs b { display: block; font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.specs p { font-size: 16.5px; margin: 0; }
@media (max-width: 900px) { .specs { grid-template-columns: 1fr; } }
