/* Pentations — 공용 스타일 */
:root {
  --ink: #1d1f3d;        /* 남색 잉크: 본문·제목 */
  --ink-soft: #4a4d6e;   /* 보조 글자 */
  --paper: #f5f6fa;      /* 차가운 흰 바탕 */
  --night: #20184a;      /* 밤하늘 남보라: 어두운 면 */
  --violet: #6a4fe0;     /* 링크·강조 */
  --sunset: #f3a24b;     /* 노을 주황: 탑의 꼭대기, 아주 작게만 */
  --line: #dcdfeb;
  --display: "Black Han Sans", "Gothic A1", sans-serif;
  --body: "Gothic A1", "Apple SD Gothic Neo", sans-serif;
  --w: 1120px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.75; word-break: keep-all;
}
img { max-width: 100%; display: block; }
a { color: var(--violet); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 24px; }

/* 머리 */
.site-head { position: sticky; top: 0; z-index: 10; background: rgba(245,246,250,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-family: var(--display); font-size: 24px; color: var(--ink); text-decoration: none; letter-spacing: .5px; }
.brand { display: flex; align-items: center; }
.brand { flex-shrink: 0; }
.brand img { height: 36px; width: auto; }
.site-nav { display: flex; gap: 28px; }
.site-nav a { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 15px; }
.site-nav a[aria-current="page"], .site-nav a:hover { color: var(--ink); }

/* 히어로: 거듭제곱 탑 */
.hero { background: var(--night); color: #fff; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; min-height: 560px; padding-top: 72px; padding-bottom: 72px; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 6vw, 72px); line-height: 1.15; margin: 0 0 24px; }
.hero p { color: #cfcde8; font-size: 18px; max-width: 34em; margin: 0 0 32px; }
.btn { display: inline-block; padding: 14px 24px; border-radius: 10px; font-weight: 700; text-decoration: none; font-size: 16px; }
.btn-light { background: #fff; color: var(--night); }
.btn-ghost { color: #fff; border: 1.5px solid rgba(255,255,255,.4); margin-left: 10px; }
.btn-ink { background: var(--ink); color: #fff; }

.tower { position: relative; height: 420px; font-family: var(--display); color: #fff; }
.tower span { position: absolute; line-height: 1; opacity: 0; animation: rise .55s cubic-bezier(.2,.8,.2,1) forwards; }
.tower .t1 { left: 0;    bottom: 0;     font-size: 220px; animation-delay: .1s; }
.tower .t2 { left: 150px; bottom: 175px; font-size: 120px; animation-delay: .35s; color: #d9d3ff; }
.tower .t3 { left: 232px; bottom: 270px; font-size: 66px;  animation-delay: .6s;  color: #b3a7ff; }
.tower .t4 { left: 278px; bottom: 322px; font-size: 38px;  animation-delay: .85s; color: #8f80f5; }
.tower .t5 { left: 304px; bottom: 352px; font-size: 22px;  animation-delay: 1.1s; color: var(--sunset); }
.tower figcaption { position: absolute; right: 0; bottom: 0; font-family: var(--body); font-size: 13px; color: #9d99c4; text-align: right; max-width: 15em; line-height: 1.5; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tower span { animation: none; opacity: 1; } }

/* 본문 구획 */
.section { padding: 96px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section h2 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 4vw, 44px); line-height: 1.25; margin: 0 0 20px; }
.lead { font-size: 19px; color: var(--ink-soft); max-width: 40em; margin: 0; }

/* 이름의 뜻: 실제 순서(1~5단계 연산) */
.ops { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin: 48px 0 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.ops li { padding: 16px 12px 0 0; }
.ops b { display: block; font-family: var(--display); font-weight: 400; font-size: 28px; }
.ops small { color: var(--ink-soft); font-size: 14px; }
.ops li:last-child b { color: var(--violet); }

/* 사업 분야 */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 48px; }
.biz h3 { font-size: 24px; margin: 0 0 8px; }
.biz .who { color: var(--ink-soft); font-size: 15px; margin: 0 0 16px; }
.biz ul { margin: 0 0 20px; padding-left: 1.1em; }
.biz li { margin: 4px 0; }

.also { margin: 48px 0 0; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-soft); }

/* 일하는 방식 */
.how { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 14px 28px; }
.facts dt { font-weight: 700; color: var(--ink-soft); font-size: 15px; }
.facts dd { margin: 0; }

/* 문의 */
.contact { background: var(--ink); color: #fff; }
.contact h2 { color: #fff; }
.contact .lead { color: #c9cbe0; }
.contact a.mail { font-family: var(--display); font-size: clamp(24px, 3.4vw, 36px); color: #fff; text-decoration: none; border-bottom: 3px solid var(--sunset); display: inline-block; margin-top: 28px; }

/* 꼬리 */
.site-foot { padding: 32px 0 48px; font-size: 14px; color: var(--ink-soft); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; }

/* 제품 페이지 */
.page-head { padding: 80px 0 32px; }
.page-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(36px, 5vw, 56px); margin: 0 0 16px; line-height: 1.2; }
.toc { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.toc a { display: inline-block; padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; background: #fff; }
.toc a:hover { border-color: var(--ink); }

.product { padding: 88px 0; border-top: 1px solid var(--line); scroll-margin-top: 64px; }
.product .grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.product.flip .grid > .copy { order: 2; }
.kind { font-size: 15px; font-weight: 700; color: var(--ink-soft); margin: 0 0 6px; }
.product h2 { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 4.2vw, 48px); margin: 0 0 6px; line-height: 1.2; }
.status { display: inline-block; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 6px; margin: 0 0 18px; }
.status.live { background: #e3f5ea; color: #1d6b3c; }
.status.dev { background: #fff1de; color: #8a4b08; }
.status.b2b { background: #ebe7ff; color: #4a32b8; }
.product p.desc { margin: 0 0 18px; }
.product ul { margin: 0 0 24px; padding-left: 1.1em; }
.product li { margin: 5px 0; }

.phones { display: flex; gap: 14px; justify-content: center; }
.phones img { width: 31%; border-radius: 18px; box-shadow: 0 18px 40px -18px rgba(29,31,61,.45); }
.phones img:nth-child(2) { transform: translateY(-22px); }
.panel-dark { background: var(--night); border-radius: 20px; padding: 56px 40px; display: grid; place-items: center; }
.panel-dark img { width: 80%; }
.screens { display: grid; gap: 16px; }
.screens img { border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 14px 34px -20px rgba(29,31,61,.4); }
.screens figcaption { font-size: 14px; color: var(--ink-soft); margin-top: 6px; }

/* 모바일 */
@media (max-width: 860px) {
  .hero .wrap, .split, .how, .product .grid { grid-template-columns: 1fr; }
  .product.flip .grid > .copy { order: 0; }
  .hero .wrap { min-height: 0; padding-top: 48px; padding-bottom: 56px; }
  .tower { height: 300px; transform: scale(.7); transform-origin: left bottom; margin-bottom: -60px; }
  .tower figcaption { display: none; }
  .ops { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .section, .product { padding: 64px 0; }
  .site-nav { gap: 18px; }
}
@media (max-width: 520px) {
  .site-head .wrap { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 10px; row-gap: 6px; }
  .brand img { height: 30px; }
  .site-nav { gap: 16px; }
  .site-nav a { font-size: 14px; }
  .btn-ghost { margin: 12px 0 0; }
}
figure { margin: 0; }
