/* ONICSOFT homepage - 외부 의존 없는 단일 스타일시트
   브랜드: 웜 오프화이트 종이 · 잉크 블랙 · 오렌지 한 색 (2026-09-07 시안 기준)
   규칙: 액센트는 오렌지 하나, 모서리는 6px 하나(원형 요소 제외), 눈에 띄는 모션은 심볼 회로 하나와 데모뿐.
   심볼은 잉크색으로 쉬고, 호버 시 회로 발광만 오렌지를 물려받는다. */

:root {
  --paper: #f7f5f0;
  --paper-2: #efebe3;
  --card: #fffdf9;
  --ink: #1a1916;
  --body: #3f3c36;
  --muted: #6f6a61;
  --line: rgba(26, 25, 22, 0.12);
  --line-strong: rgba(26, 25, 22, 0.32);
  --accent: #dd4718;
  --accent-ink: #c23c12;
  --accent-soft: #fbe6da;
  --band: #171613;
  --band-2: #211f1b;
  --logo-base: var(--ink);
  --logo-active: var(--accent);
  --logo-glow: 0.92;
  --logo-speed: 1;
  --radius: 6px;
  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
          "Segoe UI", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font: 16px/1.7 var(--font);
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-x: clip;
}

/* 종이 질감을 주는 아주 옅은 그레인. 고정 오버레이라 스크롤 시 재도장 비용이 없다. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; }

.skip {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip:focus { transform: none; }

/* ---------- 버튼 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: 700 15px/1.2 var(--font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.12s;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--accent);
  color: #fffaf6;
}

.btn--primary:hover { background: var(--accent-ink); }

.btn--ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--ink);
}

.btn--lg { padding: 16px 26px; font-size: 16px; }

.btn:disabled {
  opacity: 0.4;
  cursor: default;
  transform: none;
}

/* 시안의 대각선 화살표. 글자가 아니라 선으로 그려 폰트에 좌우되지 않는다. */
.btn-arrow {
  position: relative;
  width: 12px;
  height: 12px;
}

.btn-arrow::before,
.btn-arrow::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.btn-arrow::before {
  top: 5.5px;
  left: -1px;
  width: 14px;
  height: 1.6px;
  transform: rotate(-45deg);
}

.btn-arrow::after {
  top: 1px;
  right: 0;
  width: 7px;
  height: 7px;
  background: none;
  border-top: 1.6px solid currentColor;
  border-right: 1.6px solid currentColor;
}

.text-link {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1.5px;
  text-decoration-color: var(--accent);
  transition: color 0.2s;
}

.text-link:hover { color: var(--accent-ink); }

/* ---------- 상단 바 ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 66px;
  padding: 0 var(--gutter);
  background: rgba(247, 245, 240, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark { display: block; width: 26px; height: 26px; }

.brand-word {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.brand-word b { font-weight: 800; }

.nav { display: flex; gap: clamp(14px, 3vw, 36px); margin-right: auto; margin-left: clamp(16px, 6vw, 96px); }

/* 터치 영역 확보: 글자는 작아도 누를 수 있는 높이는 40px 이상 */
.nav a {
  display: inline-block;
  padding: 10px 2px;
  color: var(--body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.nav a:hover { color: var(--accent-ink); }

.btn--nav { padding: 10px 16px; font-size: 14px; }

/* ---------- 히어로 ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  max-width: var(--wrap);
  min-height: min(680px, calc(100svh - 66px));
  margin: 0 auto;
  padding: clamp(36px, 6vh, 64px) var(--gutter) clamp(56px, 8vh, 88px);
}

.hero-eyebrow {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 24px;
  font-size: clamp(34px, 4.3vw, 56px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--ink);
  word-break: keep-all;
}

/* 마커로 그은 듯한 밑줄. 페이지에서 손맛이 있는 유일한 장식이다. */
.mark {
  position: relative;
  display: inline-block;
}

.mark::after {
  content: "";
  position: absolute;
  left: -0.04em;
  right: -0.06em;
  bottom: -0.08em;
  height: 0.16em;
  background: var(--accent);
  border-radius: 999px 999px 999px 999px / 60% 80% 40% 70%;
  transform: rotate(-1.4deg);
  opacity: 0.9;
}

.hero-sub {
  margin: 0 0 32px;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.65;
  color: var(--body);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}

.hero-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13.5px;
}

/* 페이지 로드 시 딱 한 번의 등장. */
.hero-copy > * {
  animation: hero-rise 0.9s var(--ease) both;
}

.hero-copy > :nth-child(2) { animation-delay: 0.06s; }
.hero-copy > :nth-child(3) { animation-delay: 0.12s; }
.hero-copy > :nth-child(4) { animation-delay: 0.18s; }
.hero-copy > :nth-child(5) { animation-delay: 0.24s; }

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 히어로 그림: 흩어진 반복 작업 → 하나의 자동화 ---------- */

.flow {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 480 / 400;
  margin-left: auto;
  font-size: 12px;
  animation: hero-rise 1.1s var(--ease) 0.2s both;
}

.flow-src,
.flow-dst {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 18px 40px -24px rgba(58, 45, 30, 0.35), 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.flow-src--sheet {
  top: 0;
  left: 0;
  width: 58%;
  padding: 12px 14px 14px;
  transform: rotate(-1.5deg);
}

.flow-src--mail {
  top: 7%;
  right: 0;
  width: 42%;
  padding: 12px 14px 14px;
  transform: rotate(1.5deg);
}

.flow-dst {
  bottom: 0;
  left: 8%;
  width: 84%;
  padding: 14px 18px 18px;
}

.flow-src-title,
.flow-dst-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.flow-sheet {
  width: 100%;
  border-collapse: collapse;
  color: var(--body);
  font-size: 10.5px;
  line-height: 1.3;
  table-layout: fixed;
}

.flow-sheet th,
.flow-sheet td {
  padding: 4px 5px;
  border: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flow-sheet th {
  width: 14px;
  background: var(--paper-2);
  color: var(--muted);
  font-weight: 600;
  text-align: center;
}

.flow-sheet thead th:first-child { width: 18px; }

.flow-sheet tbody tr:first-child td { font-weight: 700; color: var(--ink); }

.flow-files {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-files li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0 8px;
  align-items: center;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
}

.flow-files li small {
  grid-column: 2;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.flow-file-type {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  background: var(--paper-2);
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.flow-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: var(--accent);
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-dasharray: 4 4;
  pointer-events: none;
}

.flow-lines path { fill: none; }

.flow-dst-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.flow-dst-head p { margin: 0; }

.flow-dst-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

/* 완료 체크: 실제 상태를 뜻하는 유일한 색 신호라 초록을 쓴다 */
.flow-dst-status i {
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #2f9b5a;
}

.flow-dst-status i::before {
  content: "";
  width: 6px;
  height: 3px;
  margin-top: -2px;
  border-left: 1.6px solid #fff;
  border-bottom: 1.6px solid #fff;
  transform: rotate(-45deg);
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.flow-steps li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 10px 6px 8px;
  text-align: center;
}

/* 단계 사이 화살표 */
.flow-steps li + li::before {
  content: "";
  position: absolute;
  top: 26px;
  left: -10px;
  width: 12px;
  height: 1.5px;
  background: var(--line-strong);
}

.flow-steps li + li::after {
  content: "";
  position: absolute;
  top: 23.5px;
  left: -3px;
  width: 5px;
  height: 5px;
  border-top: 1.5px solid var(--line-strong);
  border-right: 1.5px solid var(--line-strong);
  transform: rotate(45deg);
}

.flow-steps strong { color: var(--ink); font-size: 12.5px; }
.flow-steps span { color: var(--muted); font-size: 10.5px; line-height: 1.35; }

/* 작은 선 아이콘: 한 가족(1.6px 선), 페이지 어디서나 같은 굵기 */
.flow-ic,
.svc-ic {
  position: relative;
  display: inline-block;
  flex: none;
  color: var(--ink);
}

.flow-ic { width: 18px; height: 18px; }

.flow-steps .flow-ic {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 6px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
}

.flow-ic--sheet {
  display: grid;
  place-items: center;
  border-radius: 3px;
  background: #1f7a44;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  font-style: normal;
}

.flow-ic--gear {
  width: 16px;
  height: 16px;
  border: 2.5px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--card), 0 0 0 3.5px var(--accent);
  background: var(--card);
}

.flow-ic--gear::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--accent);
}

/* 문서·연결·종·메일: 테두리와 짧은 선으로 그린 글리프 */
.flow-ic--mail { width: 18px; height: 14px; border: 1.6px solid currentColor; border-radius: 2px; }
.flow-ic--mail::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 2px;
  width: 8px;
  height: 8px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) scaleX(1.1);
  transform-origin: center;
}

.flow-ic--doc::before,
.svc-ic--doc::before {
  content: "";
  position: absolute;
  inset: 0 3px;
  border: 1.6px solid currentColor;
  border-radius: 2px;
}

.flow-ic--doc::after,
.svc-ic--doc::after {
  content: "";
  position: absolute;
  left: 30%;
  right: 30%;
  top: 38%;
  height: 1.6px;
  background: currentColor;
  box-shadow: 0 4px 0 currentColor;
}

.flow-ic--link::before,
.flow-ic--link::after,
.svc-ic--link::before,
.svc-ic--link::after {
  content: "";
  position: absolute;
  width: 55%;
  height: 34%;
  border: 1.6px solid currentColor;
  border-radius: 999px;
}

.flow-ic--link::before, .svc-ic--link::before { left: 2%; top: 44%; transform: rotate(-35deg); }
.flow-ic--link::after,  .svc-ic--link::after  { right: 2%; top: 22%; transform: rotate(-35deg); }

.flow-ic--bell::before {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 1px;
  bottom: 4px;
  border: 1.6px solid currentColor;
  border-radius: 7px 7px 2px 2px;
}

.flow-ic--bell::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 6px;
  height: 3px;
  margin-left: -3px;
  border-radius: 0 0 3px 3px;
  background: currentColor;
}

/* ---------- 공통 섹션 ---------- */

.section {
  padding: clamp(72px, 11vh, 120px) var(--gutter);
}

.section-title {
  margin: 0 0 20px;
  font-size: clamp(30px, 3.8vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: var(--ink);
}

.section-lead {
  margin: 0 0 44px;
  max-width: 56ch;
  color: var(--body);
  text-wrap: pretty;
}

/* ---------- 자동화 서비스: 4열, 왼쪽 선으로 나눈다 ---------- */

.services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.service {
  padding: 8px 24px 8px 20px;
  border-left: 1px solid var(--line);
}

.service:first-child { padding-left: 0; border-left: 0; }

.svc-ic {
  width: 34px;
  height: 34px;
  margin-bottom: 20px;
}

.svc-ic--ai::before {
  content: "AI";
  position: absolute;
  inset: 5px;
  display: grid;
  place-items: center;
  border: 1.6px solid currentColor;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
  font-style: normal;
  letter-spacing: 0.02em;
}

.svc-ic--ai::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(currentColor, currentColor) 50% 0 / 1.6px 4px no-repeat,
    linear-gradient(currentColor, currentColor) 50% 100% / 1.6px 4px no-repeat,
    linear-gradient(currentColor, currentColor) 0 50% / 4px 1.6px no-repeat,
    linear-gradient(currentColor, currentColor) 100% 50% / 4px 1.6px no-repeat;
}

.svc-ic--code::before,
.svc-ic--code::after {
  content: "";
  position: absolute;
  top: 9px;
  width: 9px;
  height: 9px;
  border-left: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
}

.svc-ic--code::before { left: 4px; transform: rotate(45deg); }
.svc-ic--code::after { right: 4px; transform: rotate(-135deg); }

.service h3 {
  margin: 0 0 6px;
  font-size: clamp(19px, 2vw, 22px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ink);
}

.service > p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14.5px;
}

.service-eg {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px dashed var(--line-strong);
  list-style: none;
  font-size: 14px;
  color: var(--body);
}

.service-eg li {
  position: relative;
  padding-left: 14px;
}

.service-eg li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 6px;
  height: 1.5px;
  background: var(--accent);
}

/* ---------- 다크 밴드: 회사 한 줄 + 심볼, 이어서 AutoLed 데모 ----------
   여기서부터 데모 섹션까지가 한 덩어리다. 데모 CSS가 참조하는 토큰을 이 범위에서 다시 정의한다. */

.band,
.section--tint {
  --ink: #f3f0e9;
  --body: #c8c3b8;
  --muted: #8f897d;
  --line: rgba(243, 240, 233, 0.12);
  --line-strong: rgba(243, 240, 233, 0.32);
  --panel: var(--band-2);
  --panel-2: #2c2a25;
  --silver: #f3f0e9;
  --steel: #b8b2a6;
  --ground: var(--band);
  --logo-base: #9a948a;
  --logo-active: #ff7a45;
  background: var(--band);
  color: var(--body);
}

.band--top {
  padding: clamp(72px, 11vh, 120px) var(--gutter) 0;
}

.band-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 32px clamp(32px, 6vw, 96px);
  padding-bottom: clamp(56px, 8vh, 88px);
  border-bottom: 1px solid var(--line);
}

.band-copy { display: contents; }
.band-copy .section-title { grid-column: 1; grid-row: 1; margin: 0; }
.band-copy .band-lead { grid-column: 1; grid-row: 2; margin: 0; }
.band-copy .autoled-mark { grid-column: 2; grid-row: 1; margin: 0; align-self: end; }
.band-copy .autoled-tag { grid-column: 2; grid-row: 2; margin: 0; }
.band-copy .text-link--light { grid-column: 2; grid-row: 3; justify-self: start; }

.band-lead {
  margin: 0 0 40px;
  max-width: 44ch;
  text-wrap: pretty;
}

.autoled-mark {
  margin: 0 0 6px;
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
}

.autoled-mark b { color: var(--accent); }

.autoled-tag {
  margin: 0 0 22px;
  color: var(--body);
}

.text-link--light { color: var(--ink); }
.text-link--light:hover { color: var(--logo-active); }

.section--tint { border-top: 0; border-bottom: 0; }

/* ---------- ONICSOFT 심볼 인터랙션 (js/onicsoft-logo.js) ---------- */

.onicsoft-logo svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.onicsoft-logo .circuit-path,
.onicsoft-logo .circuit-node {
  transition: opacity 180ms linear;
}

.onicsoft-logo .energy-halo,
.onicsoft-logo .energy-trace {
  fill: none;
  stroke: var(--logo-active);
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  opacity: 0;
}

.onicsoft-logo .energy-halo {
  stroke-width: 24;
  mix-blend-mode: screen;
}

.onicsoft-logo .energy-trace {
  stroke-width: 6;
  mix-blend-mode: screen;
}

.onicsoft-logo #brain-center.is-pulsing .circuit-path,
.onicsoft-logo #brain-center.is-pulsing + #brain-right,
.onicsoft-logo #nodes.is-pulsing #node-center {
  animation: onicsoft-center-pulse 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes onicsoft-center-pulse {
  0%   { opacity: 0.62; }
  35%  { opacity: 1; filter: drop-shadow(0 0 8px rgba(255, 122, 69, 0.8)); }
  100% { opacity: 0.62; filter: none; }
}

/* ---------- 진행 방식: 왼쪽 문구, 오른쪽 순서 있는 4단계 ---------- */

.process {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px clamp(40px, 6vw, 96px);
  align-items: start;
}

.process .section-lead { margin-bottom: 0; }

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  border-top: 1px solid var(--line);
}

.steps li {
  display: grid;
  grid-template-columns: 40px minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 6px 20px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.steps li::before {
  counter-increment: step;
  content: "0" counter(step);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.steps strong {
  color: var(--ink);
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.steps span { color: var(--body); font-size: 15px; }

/* ---------- 문의 밴드 ---------- */

.cta {
  padding: clamp(64px, 10vh, 104px) var(--gutter);
  background: var(--accent-soft);
}

.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px clamp(40px, 6vw, 96px);
  align-items: center;
}

.cta-title {
  margin: 0;
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.16;
  color: var(--ink);
}

.cta-body > p:first-child {
  margin: 0 0 24px;
  font-size: clamp(16px, 1.8vw, 18px);
  color: var(--ink);
}

.cta-hint {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13.5px;
}

/* ---------- 푸터 ---------- */

.footer {
  padding: 32px var(--gutter);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 32px;
  align-items: center;
}

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  color: var(--ink);
}

.footer-brand img { display: block; width: 22px; height: 22px; }

.footer-brand span {
  font-weight: 800;
  letter-spacing: 0.06em;
}

.footer-brand small { color: var(--muted); font-size: 13px; }

.footer-nav { display: flex; gap: 20px; }

.footer-nav a {
  padding: 8px 0;
  color: var(--body);
  font-weight: 600;
  text-decoration: none;
}

.footer-nav a:hover { color: var(--accent-ink); }

/* 사업자 정보: 데스크톱은 구분자로 이어 붙인 한 줄 흐름, 560px 이하는 카드형 2열(아래 미디어 쿼리) */
.footer-biz {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  margin: 4px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.9;
}

.footer-biz > div {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.footer-biz > div:not(:last-child)::after {
  content: "|";
  margin: 0 10px;
  color: var(--line-strong);
}

.footer-biz dt {
  color: var(--muted);
  font-weight: 600;
}

.footer-biz dd {
  margin: 0;
  color: var(--body);
}

.footer-biz a {
  color: var(--body);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-strong);
}

.footer-biz a:hover { color: var(--accent-ink); }

.footer-copy { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }

/* ---------- AutoLed 데모 ---------- */

.demo-stage {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 18px;
  /* "아래에서 직접 눌러보기" 링크가 상단바 아래에 스테이지를 딱 맞춰 세운다 */
  scroll-margin-top: 76px;
}

.demo-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.demo-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

/* LIVE 표시: 실제 방송 상태를 뜻하는 유일한 색 신호 */
.demo-live {
  padding: 2px 8px;
  border-radius: 3px;
  background: #b8303f;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  animation: demo-live-pulse 2s ease-in-out infinite;
}

@keyframes demo-live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.demo-screen {
  position: relative;
  display: none;
  flex: 1 1 auto;
  min-height: 152px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.demo-screen.is-sel { display: block; }

.demo-screen video,
.demo-screen img {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.demo-screen.has-video video { display: block; }
.demo-screen.has-image img { display: block; }
.demo-screen.has-video .demo-bj,
.demo-screen.has-image .demo-bj { visibility: hidden; }

/* 영상·이미지가 없을 때의 대체 화면 */
.demo-bj {
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 26px 16px 18px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(60, 90, 130, 0.35), transparent 70%),
    #0c1828;
}

.demo-bj-avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--steel);
  background: #16283f;
  color: var(--ink);
  font-weight: 800;
  font-size: 18px;
}

.demo-bj p { margin: 0; color: var(--muted); font-size: 12.5px; }

.demo-broadcast {
  display: flex;
  flex-direction: column;
}

.demo-chat {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  justify-content: flex-end;
  gap: 7px;
  margin: 0;
  padding: 12px 16px;
  list-style: none;
  overflow: hidden;
  font-size: 13px;
}

.demo-chat li { color: var(--muted); }
.demo-chat li strong { color: var(--silver); font-weight: 700; }

.demo-chat li.demo-donation {
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: rgba(243, 240, 233, 0.1);
  color: var(--ink);
  font-weight: 700;
}

.demo-chat li.demo-donation--big {
  border-color: rgba(240, 190, 80, 0.45);
  background: rgba(216, 164, 60, 0.12);
  color: #ffe9b8;
}

/* AutoLed 실행 로그: 실제 순서가 있는 흐름이라 번호를 붙인다. */

.demo-control {
  display: flex;
  flex-direction: column;
}

.demo-log {
  margin: 0;
  padding: 6px 0;
  list-style: none;
  counter-reset: step;
}

.demo-log li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 9px 14px;
  color: var(--muted);
  font-size: 13px;
  transition: color 0.2s, background-color 0.2s;
}

.demo-log li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--panel-2);
  color: var(--steel);
  font-size: 11px;
  font-weight: 700;
}

.demo-log-name { font-weight: 700; }

.demo-log-detail {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
  white-space: nowrap;
}

.demo-log li.is-on { color: var(--body); }
.demo-log li.is-on::before { background: var(--silver); color: var(--ground); }
.demo-log li.is-on .demo-log-name { color: var(--ink); }
.demo-log li.is-on .demo-log-detail { color: var(--silver); }
.demo-log li.is-now { background: rgba(243, 240, 233, 0.1); }

/* 출력 상태: OBS 현재 장면 + Timeline 스트립 */

.demo-output {
  flex: 1;
  border-top: 1px solid var(--line);
}

.demo-obs {
  display: grid;
  align-content: center;
  gap: 12px;
  min-height: 140px;
  padding: 18px 16px;
}

.demo-obs-caption {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.demo-obs-scenes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.demo-obs-scenes span {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}

.demo-obs-scenes span.is-on {
  border-color: var(--silver);
  background: rgba(243, 240, 233, 0.14);
  color: var(--ink);
}

/* Timeline 스트립: 편집기 UI가 아니라 "미리 짜둔 연출이 시간축 위에 있다"는 것만 보여준다 */

.demo-tl {
  display: grid;
  gap: 6px;
  margin-top: 4px;
}

.demo-tl-head {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.demo-tl-head span:last-child { color: var(--silver); }

.demo-tl-body {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 0 8px;
}

.demo-tl-labels {
  display: grid;
  grid-template-rows: 30px 16px 16px 16px;
  gap: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
}

.demo-tl-wave-label { line-height: 30px; }

.demo-tl-canvas {
  position: relative;
  display: grid;
  grid-template-rows: 30px 16px 16px 16px;
  gap: 3px;
}

.demo-tl-wave {
  display: block;
  width: 100%;
  height: 30px;
  border-radius: 3px;
  background: rgba(5, 11, 20, 0.6);
}

.demo-tl-wave path { fill: rgba(243, 240, 233, 0.45); }

.demo-tl-lane {
  position: relative;
  border-radius: 3px;
  background: rgba(5, 11, 20, 0.6);
  overflow: hidden;
}

.demo-tl-block {
  position: absolute;
  top: 2px;
  bottom: 2px;
  min-width: 3px;
  border-radius: 2px;
  background: rgba(243, 240, 233, 0.35);
  overflow: hidden;
  color: var(--ground);
  font-size: 9px;
  font-weight: 700;
  line-height: 12px;
  white-space: nowrap;
  text-indent: 3px;
  transition: background-color 0.15s;
}

.demo-tl-block.is-on { background: var(--silver); }

.demo-tl-block.is-now { background: var(--ink); }

.demo-tl-drop {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 90, 90, 0.7);
  pointer-events: none;
}

.demo-tl-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  margin-left: -1px;
  background: var(--ink);
  box-shadow: 0 0 6px rgba(242, 245, 249, 0.6);
  pointer-events: none;
}

/* Timeline 연출: 영상이 없을 때는 CSS로 확대·미러·잔상을 흉내 낸다 */

.demo-screen.is-macro .demo-bj { animation: demo-macro 3.6s ease-in-out both; }

@keyframes demo-macro {
  0%   { transform: none; filter: none; }
  20%  { transform: scale(1.2); }
  45%  { transform: scale(1.1) scaleX(-1); }
  70%  { transform: scale(1.05); filter: blur(2px) brightness(1.4); }
  100% { transform: none; filter: none; }
}

.demo-screen.is-macro::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #fff;
  pointer-events: none;
  animation: demo-flash 0.5s ease-out both;
}

@keyframes demo-flash {
  from { opacity: 0.7; }
  to   { opacity: 0; }
}

/* 후원알림 위젯 시뮬레이션. 이 안의 색·글꼴은 UI가 아니라 알림 위젯의 생김새다.
   숫자 글꼴은 배달의민족 주아체(무료 배포). 이 CDN 참조 하나만 외부 의존이다. */

@font-face {
  font-family: "BMJUA";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_one@1.0/BMJUA.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.demo-alert {
  position: absolute;
  top: 8px;
  left: 10px;
  z-index: 3;
  display: grid;
  gap: 0;
  width: min(54%, 190px);
  text-align: center;
  animation: demo-alert-in 0.45s var(--ease) both;
}

@keyframes demo-alert-in {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: none; }
}

/* 빨간 개수: 주아체, 안쪽 흰색 1px + 바깥 검정 1px 외곽선 */
.demo-alert-count {
  margin: 0;
  color: #ff3b3b;
  font-family: "BMJUA", var(--font);
  font-size: clamp(24px, 3.4vw, 30px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-shadow:
    -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff,
    0 -1px 0 #fff, 0 1px 0 #fff, -1px 0 0 #fff, 1px 0 0 #fff,
    -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000,
    0 -2px 0 #000, 0 2px 0 #000, -2px 0 0 #000, 2px 0 0 #000;
}

.demo-alert-text {
  margin: 0;
  color: #ffd54a;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.3;
  text-shadow: 0 1px 0 #7a4a00, 0 0 6px rgba(0, 0, 0, 0.7);
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 20px;
}

.demo-actions-hint {
  color: var(--muted);
  font-size: 13px;
}

.demo-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}


/* ---------- 반응형 ---------- */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 44px;
  }

  .flow { margin-left: 0; }

  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 0; }
  .service:nth-child(3) { padding-left: 0; border-left: 0; }

  .band-intro { grid-template-columns: 1fr; }
  .band-copy > * { grid-column: 1 !important; grid-row: auto !important; }

  .process { grid-template-columns: 1fr; }
  .cta-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  /* 데모는 모바일 한 화면(약 560px)에 들어가게 압축한다: 채팅과 패널 머리글을 숨기고 여백을 줄인다 */
  .demo-stage { grid-template-columns: 1fr; gap: 10px; }
  .demo-panel-head { display: none; }
  .demo-screen { flex: 0 0 auto; min-height: 0; aspect-ratio: 16 / 9; border-bottom: 0; }
  .demo-bj { height: 100%; }
  .demo-stage { scroll-margin-top: 68px; }
  .demo-chat { display: none; }
  .demo-log { padding: 2px 0; }
  .demo-log li { padding: 5px 12px 5px 10px; font-size: 12.5px; }
  .demo-obs { gap: 8px; min-height: 0; padding: 10px 12px 12px; }
  .demo-obs-caption { display: none; }
  .demo-obs-scenes span { padding: 5px 10px; font-size: 12px; }
  .demo-actions { margin-top: 12px; }
  .demo-actions .btn { width: 100%; }
  .demo-actions-hint { width: 100%; text-align: center; font-size: 12px; }
  .demo-note { margin-top: 12px; font-size: 12px; }
  #demo.section { padding-top: 48px; padding-bottom: 56px; }
  #demo .section-lead { margin-bottom: 20px; font-size: 14.5px; }

  .steps li { grid-template-columns: 40px minmax(0, 1fr); }
  .steps li span { grid-column: 2; }

  /* minmax(0,1fr): 1fr의 자동 최소 크기 때문에 긴 주소가 컨테이너를 밀어내는 것을 막는다 */
  .footer-row { grid-template-columns: minmax(0, 1fr); }

  /* 사업자 정보: 좁은 화면에서는 한 줄 흐름 대신 라벨·값이 세로로 맞는 카드 */
  .footer-biz {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: baseline;
    min-width: 0;
    max-width: 100%;
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    line-height: 1.55;
  }

  .footer-biz > div { display: contents; }
  .footer-biz > div:not(:last-child)::after { content: none; }
  .footer-biz dt { padding: 4px 14px 4px 0; white-space: nowrap; }
  .footer-biz dd { min-width: 0; padding: 4px 0; overflow-wrap: anywhere; }

}

@media (max-width: 560px) {
  .topbar { height: 60px; gap: 12px; }
  .brand-word { display: none; }
  .nav { gap: 0; margin-left: 0; }
  .nav a { padding: 10px 5px; font-size: 13px; white-space: nowrap; }
  .btn--nav { padding: 9px 12px; font-size: 13px; }
  .btn-nav-full { display: none; }
  .hero-eyebrow { letter-spacing: 0.16em; }
  .hero h1 { font-size: 34px; }
  .btn { padding: 12px 18px; font-size: 14px; }
  .btn--lg { padding: 14px 20px; font-size: 15px; }

  /* 그림은 세로로 쌓고, 연결선은 숨긴다 */
  .flow { aspect-ratio: auto; max-width: none; }
  .flow-src,
  .flow-dst { position: static; width: auto; transform: none; }
  .flow-src--mail { margin-top: 12px; }
  .flow-dst { margin-top: 12px; }
  .flow-lines { display: none; }

  .services { grid-template-columns: 1fr; gap: 32px; }
  .service { padding-left: 0; border-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .hero-copy > *,
  .flow,
  .demo-live,
  .demo-alert,
  .demo-screen.is-macro .demo-bj,
  .demo-screen.is-macro::after,
  .onicsoft-logo #brain-center.is-pulsing .circuit-path,
  .onicsoft-logo #brain-center.is-pulsing + #brain-right,
  .onicsoft-logo #nodes.is-pulsing #node-center { animation: none; }

  .onicsoft-logo .circuit-path,
  .onicsoft-logo .circuit-node,
  .btn { transition: none; }
}
