/* 오피스28 AX 소개 사이트
   흰 바탕, 로고의 남색·파랑, 얼음 톤. 움직임은 ice.js(첫 화면)와 .reveal(스크롤)만. */
:root {
  color-scheme: light;
  --ink: #0a1428;
  --navy: #1b3157;
  --blue: #2563eb;
  --blue-deep: #1d4fc4;
  --sky: #4aaef0;
  --ice-1: #f5f9ff;
  --ice-2: #e8f2fe;
  --ice-3: #cfe3fc;
  --line: #dde7f4;
  --muted: #52627c;
  --white: #fff;
  --font: Pretendard, "Pretendard Variable", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --wrap: 1160px;
  --radius: 16px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 16px/1.65 var(--font);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* 단추 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid var(--ice-3); border-radius: 12px;
  background: var(--white); color: var(--ink);
  font: 600 16px/1 var(--font); cursor: pointer; white-space: nowrap;
  transition: background-color .18s, border-color .18s, color .18s, transform .18s;
}
.btn:hover { border-color: var(--blue); color: var(--blue-deep); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: var(--white); }
.btn.primary:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: var(--white); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn.dark:hover { background: var(--navy); color: var(--white); }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 10px; }
.btn[aria-disabled="true"] { color: #98a6bd; border-color: var(--line); background: var(--white); cursor: not-allowed; }
.btn[aria-disabled="true"]:hover { color: #98a6bd; border-color: var(--line); }

/* 머리줄 */
.top {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  padding-top: env(safe-area-inset-top, 0px);
}
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; gap: 4px; margin-right: auto; }
.nav a { padding: 8px 12px; border-radius: 8px; font-size: 15px; font-weight: 500; color: var(--muted); }
.nav a:hover { color: var(--ink); background: var(--ice-1); }
.top .actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* 막힌 이유 안내 */
.tip {
  position: fixed; z-index: 60; pointer-events: none;
  padding: 8px 12px; border-radius: 8px;
  background: var(--ink); color: var(--white);
  font-size: 13px; line-height: 1.4; white-space: nowrap;
  opacity: 0; transform: translateY(-4px); transition: opacity .15s, transform .15s;
}
.tip.on { opacity: 1; transform: none; }

/* 첫 화면 */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; }
.ice-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 4; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6.4fr); gap: 48px; align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--blue); }
.hero h1 { margin-top: 14px; font-size: clamp(40px, 5.4vw, 66px); line-height: 1.14; font-weight: 800; letter-spacing: -.035em; }
.hero h1 .w { display: block; }
.hero h1 .em { color: var(--blue); }
.lead { margin-top: 18px; font-size: 19px; font-weight: 500; color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.tags li { padding: 5px 12px; border-radius: 999px; background: var(--ice-2); color: var(--navy); font-size: 14px; font-weight: 600; }

.window {
  position: relative; z-index: 1;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 30px 70px -36px rgba(27, 49, 87, .45), 0 2px 8px rgba(27, 49, 87, .06);
  overflow: hidden;
}
.window-bar { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--ice-1); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--ice-3); }
.window-bar span { margin-left: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.window video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--ice-1); }
.vtoggle {
  position: absolute; right: 12px; bottom: 12px; z-index: 5;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(10, 20, 40, .72); color: var(--white);
}
.vtoggle .ico { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.vtoggle .play { display: none; }
.vtoggle[aria-pressed="true"] .play { display: block; }
.vtoggle[aria-pressed="true"] .pause { display: none; }

/* 공통 섹션 */
.sec { padding: 96px 0; }
.sec.tint { background: var(--ice-1); }
.sec h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.25; font-weight: 800; letter-spacing: -.03em; text-wrap: balance; }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 40px; }
.note { font-size: 14px; color: var(--muted); }

/* 숫자 */
.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { position: relative; padding: 34px 20px 30px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-size: clamp(34px, 4.4vw, 52px); line-height: 1.1; font-weight: 800; letter-spacing: -.035em; color: var(--navy); font-variant-numeric: tabular-nums; }
.stat b small { margin-left: 2px; font-size: .46em; font-weight: 700; color: var(--blue); letter-spacing: 0; }
.stat span { display: block; margin-top: 6px; font-size: 15px; font-weight: 500; color: var(--muted); }
.proof .note { padding: 0 0 20px; }

/* 걸린 시간 */
.race { display: grid; gap: 18px; }
.race-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.race-card h3 { font-size: 18px; font-weight: 700; }
.bars { display: grid; gap: 14px; margin-top: 20px; }
.bar { display: grid; grid-template-columns: 132px minmax(0, 1fr) 112px; align-items: center; gap: 14px; }
.bar em { font-style: normal; font-size: 14px; font-weight: 600; color: var(--muted); }
.bar .track { height: 16px; border-radius: 999px; background: var(--ice-2); overflow: hidden; }
.bar .fill { display: block; height: 100%; width: var(--w); border-radius: 999px; background: #a9b8d2; transform-origin: left; }
.bar.ours .fill { background: var(--blue); }
.bar strong { font-size: 19px; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar.ours em, .bar.ours strong { color: var(--blue); }
.race-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.swap { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 14px; margin-top: 20px; }
.swap div span { display: block; font-size: 14px; font-weight: 600; color: var(--muted); }
.swap div b { display: block; margin-top: 4px; font-size: 24px; line-height: 1.3; font-weight: 800; letter-spacing: -.02em; }
.swap .after b { color: var(--blue); }
.swap .ico { margin-bottom: 4px; color: var(--ice-3); }

/* 하는 일 */
.jobs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.job { padding: 24px 22px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.job .ico { width: 30px; height: 30px; color: var(--blue); }
.job h3 { margin-top: 18px; font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.job p { margin-top: 6px; font-size: 15px; color: var(--muted); }
.shot { margin-top: 40px; }
.shot .window { max-width: 920px; margin: 0 auto; }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { margin-top: 12px; text-align: center; font-size: 14px; color: var(--muted); }

.change { margin-top: 56px; border-top: 1px solid var(--line); }
.change li { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); align-items: center; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.change .was { color: var(--muted); }
.change .ico { color: var(--sky); justify-self: center; }
.change .now { font-size: 18px; font-weight: 700; }

/* 구성 */
.map { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1.9fr) 56px minmax(0, 1fr); align-items: stretch; }
.node { padding: 24px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
.node > h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; }
.node > h3 .ico { color: var(--blue); }
.node ul { display: grid; gap: 8px; margin-top: 16px; }
.node li { padding: 10px 12px; border-radius: 10px; background: var(--ice-1); font-size: 15px; font-weight: 500; }
.node.office { border: 2px solid var(--navy); background: var(--ice-1); }
.node.office ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.node.office li { background: var(--white); border: 1px solid var(--line); }
.node.office li b { display: block; font-size: 16px; }
.node.office li span { display: block; font-size: 13px; color: var(--muted); }
.node.office li.premium { grid-column: 1 / -1; border: 1px dashed var(--blue); background: var(--ice-2); }
.link { display: grid; place-items: center; color: var(--blue); }
.link .ico { width: 30px; height: 30px; }
.approve { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; padding: 18px; border-radius: var(--radius); background: var(--navy); color: var(--white); font-size: 17px; font-weight: 700; text-align: center; }
.safe-note { margin-top: 18px; }
.safe { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 8px; }
.safe li { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600; }
.safe .ico { color: var(--blue); }

/* 도입 방식 */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 30px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.plan.main { border: 2px solid var(--blue); box-shadow: 0 24px 50px -36px rgba(37, 99, 235, .7); }
.plan h3 { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.badge { padding: 3px 10px; border-radius: 999px; background: var(--ice-2); color: var(--blue-deep); font-size: 12px; font-weight: 700; letter-spacing: 0; }
.price { margin-top: 14px; font-size: 34px; line-height: 1.2; font-weight: 800; letter-spacing: -.03em; color: var(--navy); }
.price small { display: block; font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan ul { display: grid; gap: 12px; margin: 24px 0 28px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 500; }
.plan li .ico { width: 20px; height: 20px; margin-top: 2px; color: var(--blue); }
.plan .btn { margin-top: auto; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 40px; counter-reset: s; }
.steps li { position: relative; padding: 22px 16px 0 0; border-top: 2px solid var(--ice-3); counter-increment: s; font-weight: 700; }
.steps li::before { content: counter(s); position: absolute; top: -14px; left: 0; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: var(--white); font-size: 13px; }
.steps li span { display: block; margin-top: 2px; font-size: 14px; font-weight: 500; color: var(--muted); }

/* 문의 */
.ask { padding: 96px 0; background: var(--ink); color: var(--white); text-align: center; }
.ask h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; letter-spacing: -.03em; }
.ask .mail { display: inline-block; margin-top: 18px; font-size: clamp(18px, 2.4vw, 24px); font-weight: 600; color: var(--sky); user-select: all; }
.ask .cta { justify-content: center; }
.ask .btn { border-color: rgba(255, 255, 255, .24); background: transparent; color: var(--white); }
.ask .btn:hover { border-color: var(--white); color: var(--white); }
.ask .btn.primary { background: var(--blue); border-color: var(--blue); }
.copied { min-height: 22px; margin-top: 10px; font-size: 14px; color: #b7c4dc; }

/* 바닥 */
.foot { padding: 36px 0 calc(36px + env(safe-area-inset-bottom, 0px)); font-size: 14px; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.foot img { height: 22px; width: auto; }

/* 체험 페이지 */
.trial-hero { padding: 72px 0 40px; text-align: center; }
.trial-hero h1 { margin-top: 10px; font-size: clamp(36px, 5vw, 56px); line-height: 1.18; font-weight: 800; letter-spacing: -.035em; }
.trial-hero .tags { justify-content: center; }
.flows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.flow { padding: 30px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.flow h2 { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.flow ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
.flow li { display: grid; justify-items: center; gap: 10px; padding: 18px 8px; border-radius: 12px; background: var(--ice-1); text-align: center; font-size: 15px; font-weight: 600; }
.flow li .ico { width: 30px; height: 30px; color: var(--blue); }
.flows.one { grid-template-columns: minmax(0, 1fr); }
.flow.five ol { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.trial-cta { padding: 56px 0 96px; text-align: center; }
.trial-cta .cta-d { margin-top: 10px; font-size: 16px; color: var(--muted); }
.trial-cta h2 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.trial-cta .cta { justify-content: center; margin-top: 18px; }
.trial-cta .mail { display: block; margin-top: 16px; font-size: 20px; font-weight: 700; color: var(--blue); user-select: all; }
.trial-cta .copied { color: var(--muted); }

/* 스크롤 등장: 화면 안쪽까지 들어온 뒤에 시작한다 */
.motion .reveal.pre { opacity: 0; transform: translateY(18px); }
.motion .reveal { transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.motion .reveal.pre .fill { transform: scaleX(0); }
.motion .reveal .fill { transition: transform 1.1s cubic-bezier(.2, .8, .2, 1) .25s; }

@media (max-width: 1020px) {
  .nav { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; }
  .map { grid-template-columns: minmax(0, 1fr); }
  .link { height: 52px; }
  .link .ico { transform: rotate(90deg); }
}
@media (max-width: 720px) {
  .sec, .ask { padding: 72px 0; }
  .hero { padding: 32px 0 56px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 24px 16px; border-left: 0; }
  .stat:first-child { padding-left: 16px; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .race-card { padding: 22px 18px; }
  .race-pair, .flows, .safe { grid-template-columns: minmax(0, 1fr); }
  .bar { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .bar em { grid-column: 1; grid-row: 1; }
  .bar strong { grid-column: 2; grid-row: 1; }
  .bar .track { grid-column: 1 / -1; grid-row: 2; }
  .change li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .change .ico { display: none; }
  .change .was { font-size: 14px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .node.office ul { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .top .wrap { gap: 10px; height: 64px; }
  .brand img { height: 24px; }
  .top .actions .btn { padding: 0 12px; font-size: 14px; }
  .jobs { grid-template-columns: minmax(0, 1fr); }
  .cta .btn { flex: 1 1 140px; }
  .flow ol, .flow.five ol { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .flow li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-align: left; }
  .flow li .ico { width: 24px; height: 24px; }
  .swap { grid-template-columns: minmax(0, 1fr); }
  .swap .ico { transform: rotate(90deg); margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
