/* hoya.team 소개 페이지 - 디자인 기준은 루트 DESIGN.md (Linear 기반 + 라이트 테마 확장)
   · 포인트 색은 #5e6ad2 하나, 카드 12px(스크린샷 패널만 16px), 버튼 8px, 그라데이션·글로우 없음
   · 라이트가 기본, 시스템이 다크면 다크 토큰으로 자동 전환(prefers-color-scheme) */
:root {
  color-scheme: light dark;
  --bg: #ffffff; --s1: #f5f6f6; --s2: #eef0f1; --s3: #e6e8ea;
  --line: #e3e5e8; --line-2: #cfd3d8;
  --ink: #0f1011; --ink-2: #3a3f47; --ink-3: #62666d;
  --accent: #5e6ad2; --on-accent: #ffffff; --accent-hover: #4f5bc4; --link: #4651b8;
  --ok: #1f7a37;
  --r-sm: 6px; --r-md: 8px; --r-lg: 12px; --r-xl: 16px;
  --gutter: 24px; --maxw: 1200px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #010102; --s1: #0f1011; --s2: #141516; --s3: #18191a;
    --line: #23252a; --line-2: #34343a;
    --ink: #f7f8f8; --ink-2: #d0d6e0; --ink-3: #8a8f98;
    --link: #828fff; --accent-hover: #6e7bdd; --ok: #4bc468;
  }
}
@media (max-width: 640px) { :root { --gutter: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink-2); font-family: var(--font); font-size: 16px; line-height: 1.6;
  letter-spacing: -0.01em; word-break: keep-all; overflow-wrap: break-word; overflow-x: clip; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-sm); }
.skip { position: absolute; left: 16px; top: -64px; z-index: 40; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: var(--r-md); text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* 아이콘과 로고: 파일은 그대로 두고 currentColor 로 칠한다(라이트/다크 모두 대응) */
.i { display: inline-block; width: 22px; height: 22px; flex: none; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: var(--r-md); border: 1px solid transparent; font: inherit; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .15s, border-color .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: var(--s1); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--s2); border-color: var(--line-2); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }

/* 상단 바(한 줄, 56px) */
.top { position: sticky; top: 0; z-index: 30; height: 56px; background: color-mix(in srgb, var(--bg) 92%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); }
.top .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: 0.04em; }
.mark { width: 28px; height: 28px; display: grid; place-items: center; border-radius: var(--r-md); background: var(--ink); color: var(--bg); font-weight: 800; font-size: 16px; line-height: 1; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: var(--r-md); color: var(--ink-3); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .15s, background-color .15s; }
.nav a:hover { color: var(--ink); background: var(--s1); }
@media (max-width: 860px) { .nav { display: none; } }

/* 제목 크기 */
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 650; text-wrap: balance; }
h1 { font-size: clamp(38px, 5.6vw, 68px); line-height: 1.12; letter-spacing: -0.045em; font-weight: 700; }
h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.2; letter-spacing: -0.035em; }
h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.02em; }
p { margin: 0; }
.lead { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.65; color: var(--ink-2); max-width: 54ch; }
section { padding: 96px 0; }
@media (max-width: 720px) { section { padding: 72px 0; } }
.sec-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: 56px; }

/* 히어로: 실제 화면 두 장을 겹쳐 크게. 배경은 포인트 색을 아주 옅게 깐 점 격자 */
.hero { position: relative; padding: 64px 0 96px; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55% 60% at 74% 42%, color-mix(in srgb, var(--accent) 17%, transparent), transparent 72%),
    radial-gradient(var(--line-2) 1px, transparent 1.2px) 0 0 / 26px 26px;
  -webkit-mask: radial-gradient(90% 85% at 60% 40%, #000 35%, transparent 100%); mask: radial-gradient(90% 85% at 60% 40%, #000 35%, transparent 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5.3fr) minmax(0, 6.7fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(36px, 4.5vw, 62px); margin-bottom: 28px; }
.hero .lead { margin-bottom: 36px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.shot { margin: 0; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 12px; }
.shot img { border-radius: 10px; border: 1px solid var(--line); background: var(--bg); width: 100%; }
.shot figcaption { padding: 12px 6px 2px; font-size: 13px; color: var(--ink-3); }
.stage { position: relative; padding-bottom: 88px; }
.shot-main { box-shadow: 0 40px 90px -36px color-mix(in srgb, var(--accent) 45%, transparent); }
@media (min-width: 961px) {
  .stage { margin-right: calc((min(100vw, var(--maxw) + 2 * var(--gutter)) - 100vw) / 2); }
  .shot-main { border-top-right-radius: 0; border-bottom-right-radius: 0; border-right: 0; }
}
.shot-float { position: absolute; left: -28px; bottom: 0; width: 40%; box-shadow: 0 28px 60px -22px color-mix(in srgb, var(--accent) 50%, transparent); }
.stage-cap { position: absolute; right: calc(var(--gutter) + 4px); bottom: 14px; font-size: 13px; color: var(--ink-3); }
@media (max-width: 960px) { .hero { padding-top: 40px; } .hero-grid { grid-template-columns: 1fr; gap: 40px; } .stage { padding-bottom: 0; } .shot-float { display: none; } .stage-cap { position: static; margin-top: 10px; } }

/* 연결해서 쓰는 서비스: 로고만 */
.logos { padding: 8px 0 24px; }
.logos p { font-size: 14px; color: var(--ink-3); margin-bottom: 20px; }
.logos ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 28px 44px; align-items: center; color: var(--ink-3); }
.logos .i { width: 26px; height: 26px; transition: color .2s; }
.logos li:hover .i { color: var(--ink); }

/* 지시, 작성, 감사, 결재 흐름: 티켓이 진행선을 따라 날아가며 단계를 차례로 켠다(한 번만) */
.flow { --t: 2.6s; --dist: 66%; list-style: none; margin: 0 0 72px; padding: 28px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.flow::before, .flow::after { content: ""; position: absolute; top: 52px; left: 26px; width: var(--dist); height: 3px; border-radius: 2px; }
.flow::before { background: var(--line-2); }
.flow::after { background: var(--accent); transform: scaleX(0); transform-origin: left; }
.flow li { position: relative; z-index: 1; display: grid; gap: 14px; align-content: start; }
.flow .node { width: 52px; height: 52px; display: grid; place-items: center; border-radius: var(--r-lg); background: var(--s2); border: 1px solid var(--line-2); color: var(--ink-2); }
.flow .node .i { width: 24px; height: 24px; }
.flow h3 { font-size: 24px; letter-spacing: -0.03em; }
.flow p { color: var(--ink-3); font-size: 15px; max-width: 26ch; }
.ticket { position: absolute; z-index: 3; left: 26px; top: 0; padding: 3px 12px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 700; letter-spacing: 0; opacity: 0; transform: translateX(-50%); white-space: nowrap; }
.ticket::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 14px; background: var(--accent); transform: translateX(-50%); }
.flow.run::after { transform: scaleX(1); }
.flow.run .node { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
@media (prefers-reduced-motion: no-preference) {
  .flow::after { transition: transform var(--t) cubic-bezier(.45, .05, .35, 1); }
  .flow .node { transition: background-color .4s, color .4s, border-color .4s; }
  .flow li:nth-child(1) .node { transition-delay: 0s; }
  .flow li:nth-child(2) .node { transition-delay: calc(var(--t) * 0.31); }
  .flow li:nth-child(3) .node { transition-delay: calc(var(--t) * 0.64); }
  .flow li:nth-child(4) .node { transition-delay: calc(var(--t) * 0.97); }
  .flow.run .ticket { animation: ticket-x var(--t) cubic-bezier(.45, .05, .35, 1) forwards; }
}
@keyframes ticket-x { 0% { opacity: 0; transform: translateX(-50%); } 8% { opacity: 1; } 92% { opacity: 1; } 100% { opacity: 0; transform: translateX(calc(var(--dist-px, 600px) - 50%)); } }
@media (prefers-reduced-motion: reduce) { .flow::after { transition: none; } .ticket { display: none; } }
@media (max-width: 820px) {
  .flow { grid-template-columns: 1fr; gap: 32px; padding-top: 0; }
  .flow::before, .flow::after { top: 26px; left: 25px; width: 3px; height: var(--dist); }
  .flow::after { transform: scaleY(0); transform-origin: top; }
  .flow.run::after { transform: scaleY(1); }
  .flow li { grid-template-columns: 52px 1fr; column-gap: 18px; row-gap: 4px; }
  .flow .node { grid-row: span 2; }
  .flow p { max-width: none; }
  .ticket { display: none; }
}
.orgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; margin: 0; padding-top: 40px; border-top: 1px solid var(--line); }
.orgs dt { color: var(--ink); font-weight: 650; font-size: 17px; letter-spacing: -0.02em; margin-bottom: 6px; }
.orgs dd { margin: 0; color: var(--ink-3); font-size: 15px; }
.fine { margin-top: 32px; color: var(--ink-3); font-size: 15px; max-width: 70ch; }
@media (max-width: 860px) { .orgs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .orgs { grid-template-columns: 1fr; gap: 28px; } }

/* 모듈 벤토: 칸 수 = 내용 수(8개). 큰 칸 1개(화면), 강조 칸 1개, 나머지 6개 */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(190px, auto); gap: 16px; }
.cell { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: background-color .2s, border-color .2s; }
.cell:hover { background: var(--s2); border-color: var(--line-2); }
.cell .i { color: var(--ink); }
.cell h3 { font-size: 19px; }
.cell p { font-size: 15px; color: var(--ink-3); }
.cell-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; background: var(--s3); color: var(--ink-2); font-size: 12px; font-weight: 600; line-height: 1.5; }
.badge.live { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.cell-feature { grid-column: span 2; grid-row: span 2; padding: 28px 28px 0; }
.cell-feature p { max-width: 38ch; }
.cell-feature img { margin: auto -28px 0; width: calc(100% + 56px); max-width: none; border-top: 1px solid var(--line); object-fit: cover; object-position: left top; align-self: flex-end; }
.cell-agent { grid-column: span 2; background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.cell-agent:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.cell-agent h3, .cell-agent .i { color: var(--on-accent); }
.cell-agent p { color: color-mix(in srgb, var(--on-accent) 88%, transparent); max-width: 44ch; }
.cell-agent .badge { background: rgba(255,255,255,.2); color: var(--on-accent); }
@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .cell-feature { grid-row: span 1; }
  .cell-feature, .cell-agent { grid-column: span 2; }
}
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .cell-feature, .cell-agent { grid-column: span 1; } }

/* 운영 원칙 */
.principles { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 72px; align-items: start; }
.rules { display: grid; gap: 40px; margin: 0; padding: 0; list-style: none; }
.rules h3 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.03em; margin-bottom: 8px; }
.rules p { color: var(--ink-3); font-size: 16px; max-width: 48ch; }
.principles .shot { position: sticky; top: 88px; }
@media (max-width: 960px) { .principles { grid-template-columns: 1fr; gap: 48px; } .principles .shot { position: static; } }

/* 작업 기록 */
.log { list-style: none; margin: 0; padding: 0; }
.log li { display: grid; grid-template-columns: 148px 1fr; gap: 32px; padding: 28px 0; border-top: 1px solid var(--line); }
.log li:last-child { border-bottom: 1px solid var(--line); }
.log time { color: var(--ink-3); font-size: 15px; font-variant-numeric: tabular-nums; padding-top: 2px; }
.log h3 { font-size: 20px; margin-bottom: 6px; }
.log p { color: var(--ink-3); font-size: 15.5px; max-width: 70ch; }
@media (max-width: 640px) { .log li { grid-template-columns: 1fr; gap: 6px; padding: 22px 0; } }

/* 마지막 안내 */
.cta { padding: 24px 0 96px; }
.cta-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 48px; }
.cta-box h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 10px; }
.cta-box p { color: var(--ink-3); max-width: 46ch; }
@media (max-width: 640px) { .cta-box { padding: 32px 24px; } }

footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--ink-3); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: center; }
footer strong { color: var(--ink); font-weight: 650; }
