/* jihyun.dev — onorca.dev의 차분한 검은 판(왼쪽 큰 제목·네모 버튼·칸 격자) + paperclip.ing의 알록달록한 그라데이션·질감 */
:root {
  --bg: #0a0a0a; --panel: #121212; --line: rgba(255, 255, 255, .09); --line2: rgba(255, 255, 255, .16);
  --text: #f5f5f5; --muted: #a3a3a3; --dim: #808080;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  letter-spacing: -0.01em; word-break: keep-all; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* 윗줄 */
.nav { display: flex; align-items: center; gap: 36px; padding: 22px clamp(20px, 4vw, 56px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10;
  background: rgba(10, 10, 10, .82); backdrop-filter: blur(12px); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.03em; }
.brand-mark { width: 24px; height: 24px; stroke-width: 2.2; }
.nav-links { display: flex; gap: 28px; color: var(--muted); font-size: 16px; }
.nav-links a:hover { color: var(--text); }
.pill { display: inline-flex; align-items: center; justify-content: center; background: #fff; color: #0a0a0a; font-weight: 600; padding: 11px 20px; border-radius: 10px; white-space: nowrap; transition: transform .15s, background .15s; }
.pill:hover { background: #e9e9e9; transform: translateY(-1px); }
.pill.big { padding: 15px 28px; font-size: 17px; }

/* 히어로: 왼쪽 큰 제목(onorca) + 오른쪽 색 기둥(paperclip) */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 40px;
  max-width: 1240px; margin: 0 auto; padding: 64px clamp(20px, 4vw, 56px) 24px; overflow: hidden; }
.hero-text { position: relative; z-index: 1; }
.hero h1 { margin: 0; font-size: clamp(44px, 6.6vw, 92px); line-height: 1.02; letter-spacing: -0.06em; font-weight: 800; }
.hero-sub { margin: 28px 0 36px; font-size: clamp(17px, 1.6vw, 22px); color: var(--muted); line-height: 1.6; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.art { position: relative; height: 460px; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: #0f0f10; }
/* 뒤쪽 보라·하늘 빛은 천천히 떠다닌다(아래 움직임 구역) */
.art::before { content: ""; position: absolute; inset: -15%; pointer-events: none;
  background: radial-gradient(600px 360px at 70% 25%, rgba(154, 77, 255, .2), transparent 70%), radial-gradient(500px 320px at 25% 85%, rgba(39, 195, 239, .14), transparent 70%); }
.art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.grain { position: absolute; inset: 0; pointer-events: none; opacity: .35; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.ghost { display: inline-flex; align-items: center; justify-content: center; padding: 11px 20px; border-radius: 10px; border: 1px solid var(--line2);
  color: var(--text); font-weight: 600; white-space: nowrap; transition: background .15s; }
.ghost:hover { background: rgba(255, 255, 255, .06); }
.ghost.big { padding: 15px 28px; font-size: 17px; }

/* 구역(onorca 'Desktop'): 큰 제목 + 설명 + 오른쪽 테두리 버튼, 캡처, 칸 격자 */
.block { max-width: 1240px; margin: 0 auto; padding: 56px clamp(20px, 4vw, 56px) 40px; scroll-margin-top: 90px; }
.block-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.block h2 { display: flex; align-items: center; gap: 16px; margin: 0 0 12px; font-size: clamp(38px, 4.4vw, 60px); letter-spacing: -0.05em; font-weight: 700; }
.block h2 small { font-size: .4em; color: var(--muted); font-weight: 600; letter-spacing: 0; align-self: flex-end; margin-bottom: .6em; }
.h-icon { width: .62em; height: .62em; color: var(--muted); stroke-width: 1.6; flex: none; }
.block-head p { margin: 0; max-width: 44em; color: var(--muted); font-size: 18px; line-height: 1.65; }
.outline { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 12px; border: 1px solid var(--line2); background: var(--panel);
  font-weight: 600; white-space: nowrap; transition: background .15s; }
.outline:hover { background: #1b1b1b; }
.outline svg { width: 18px; height: 18px; }
.shot { display: block; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #000; aspect-ratio: 16 / 9; margin-bottom: 16px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.cell { background: #0f0f10; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 28px; transition: background .15s; }
.cell:hover { background: #161617; }
.cell:focus-visible { outline-offset: -4px; } /* 칸 격자가 overflow:hidden이라 바깥 테두리는 잘린다 */
.cell b { display: block; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.cell span { display: block; margin-top: 4px; color: var(--muted); font-size: 15.5px; }
.cell svg { width: 22px; height: 22px; color: var(--muted); flex: none; transition: transform .2s, color .2s; }
.cell:hover svg { transform: translateX(3px); color: var(--text); }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }

.foot { display: flex; justify-content: center; gap: 16px; padding: 28px clamp(20px, 4vw, 56px); border-top: 1px solid var(--line); color: var(--dim); font-size: 14px; }
.foot nav { display: flex; gap: 20px; }
.foot a:hover { color: var(--text); }

@media (max-width: 820px) {
  .nav { gap: 18px; } .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .art { height: 260px; order: -1; }
  .block-head { flex-direction: column; align-items: flex-start; }
  .grid { grid-template-columns: 1fr; } /* 좁으면 기능 칸을 한 줄에 하나씩(세 칸이면 글자가 세로로 쪼개진다) */
}

.shot { position: relative; }
/* KLIN 칸은 게임 화면 비율(가로 14 : 세로 9) — 소개 영상도 이 비율로 만들었다 */
#klin .shot { aspect-ratio: 14 / 9; }

/* 두 버튼 모두 켜진 버튼: KLIN은 흰색, Istream은 방송실 하늘색 */
.pill.istream { background: #22c6ee; color: #04222c; }
.pill.istream:hover { background: #4fd6f3; }

.shot video.clip { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }

/* ── 다듬기(2026-10-01): 톤은 그대로(검은 판), 세부만 ─────────────────────────────
   구역 번호 라벨, 화면 카드의 제품 색 그림자·표시, 기능 칸 아이콘, 나타나기, 바닥글 */
:root { --klin: #4f8dff; --ist: #22c6ee; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.eyebrow span { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--line2);
  font: 600 12px/1 ui-monospace, "SF Mono", Menlo, monospace; color: var(--text); }
#klin .eyebrow span { border-color: rgba(79, 141, 255, .45); color: #9cc0ff; }
#istream .eyebrow span { border-color: rgba(34, 198, 238, .45); color: #8fe4f7; }

/* 카드 위 작은 표시: 빨간 점이 숨 쉬듯 */
.shot-cap { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.shot-cap i { width: 8px; height: 8px; border-radius: 50%; background: #ff4d5e; box-shadow: 0 0 0 0 rgba(255, 77, 94, .6); animation: live-dot 2s ease-out infinite; }
@keyframes live-dot { 0% { box-shadow: 0 0 0 0 rgba(255, 77, 94, .55); } 80%, 100% { box-shadow: 0 0 0 8px rgba(255, 77, 94, 0); } }

/* 화면 카드: 제품 색으로 아래쪽에 은은한 빛, 올리면 살짝 떠오름 */
.shot { transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s, border-color .35s; }
#klin .shot { box-shadow: 0 40px 90px -50px rgba(79, 141, 255, .55), inset 0 0 0 1px rgba(255, 255, 255, .03); }
#istream .shot { box-shadow: 0 40px 90px -50px rgba(34, 198, 238, .45), inset 0 0 0 1px rgba(255, 255, 255, .03); }
#klin .shot:hover { transform: translateY(-3px); border-color: rgba(79, 141, 255, .35); box-shadow: 0 50px 100px -48px rgba(79, 141, 255, .7); }
#istream .shot:hover { transform: translateY(-3px); border-color: rgba(34, 198, 238, .35); box-shadow: 0 50px 100px -48px rgba(34, 198, 238, .6); }

/* 기능 칸: 앞에 아이콘 칩 */
.cell { justify-content: flex-start; }
.cell > div { flex: 1 1 auto; min-width: 0; }
.cell-ico { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line2); background: #151516;
  transition: border-color .2s, background .2s; }
.cell-ico svg { width: 22px; height: 22px; stroke-width: 1.7; }
#klin .cell-ico { color: #9cc0ff; }
#istream .cell-ico { color: #8fe4f7; }
#klin .cell:hover .cell-ico { border-color: rgba(79, 141, 255, .5); background: rgba(79, 141, 255, .08); }
#istream .cell:hover .cell-ico { border-color: rgba(34, 198, 238, .5); background: rgba(34, 198, 238, .08); }
.cell > svg:last-child { margin-left: auto; }

/* 윗줄 메뉴: 올리면 밑줄이 스르륵 */
.nav-links a { position: relative; padding: 4px 0; transition: color .15s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav-links a:hover::after { transform: scaleX(1); }

/* 바닥글: 로고와 링크 한 줄, 아래 저작권 */
.foot { flex-direction: column; align-items: stretch; gap: 18px; margin-top: 40px; padding: 36px clamp(20px, 4vw, 56px) 40px; }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1128px; width: 100%; margin: 0 auto; }
.foot-brand { font-size: 17px; color: var(--text); }
.foot-brand .brand-mark { width: 20px; height: 20px; }
.foot nav { gap: 24px; font-size: 14.5px; }
.foot-copy { max-width: 1128px; width: 100%; margin: 0 auto; color: var(--dim); font-size: 13px; }

@media (max-width: 820px) {
  .cell-ico { width: 38px; height: 38px; border-radius: 10px; }
  .cell-ico svg { width: 19px; height: 19px; }
  .foot-in { flex-direction: column; align-items: flex-start; }
}

/* ── 움직임(2026-10-01 사장님: 모션이 살짝 부족) ─────────────────────────────────
   움직임 줄이기 설정과 상관없이 돈다(사장님이 멈춘 화면을 싫어함). 전부 transform·opacity만 써서 사파리도 가볍게.
   들어오기 애니메이션은 fill backwards: 끝나면 원래 스타일로 돌아가 올림·기울기 같은 다른 움직임을 막지 않는다 */
:root { --ease: cubic-bezier(.2, .7, .2, 1); --ease-out: cubic-bezier(.19, 1, .22, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes line-up { from { transform: translateY(125%); } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-12px); } }
@keyframes art-in { from { opacity: 0; transform: scale(.94) translateY(12px); } }
@keyframes shot-in { from { opacity: 0; transform: translateY(36px) scale(.975); } }
@keyframes cap-in { from { opacity: 0; transform: translateX(-10px); } }
@keyframes glow-drift { to { transform: translate3d(-7%, 6%, 0) rotate(10deg) scale(1.08); } }
@keyframes block-drop { from { opacity: 0; transform: translateY(-9px); } 70% { transform: translateY(1px); } }
@keyframes hop { 35% { transform: translateY(-3px); } 70% { transform: translateY(.5px); } }

/* 첫 화면: 윗줄 → 제목 두 줄이 아래에서 밀려 올라옴 → 설명 → 버튼 → 오른쪽 그림 */
.nav { animation: drop-in .6s var(--ease) backwards; }
.nav .brand-mark rect { transform-box: fill-box; transform-origin: center; animation: block-drop .55s var(--ease) backwards; }
.nav .brand-mark rect:nth-child(1) { animation-delay: .15s; }
.nav .brand-mark rect:nth-child(2) { animation-delay: .25s; }
.nav .brand-mark rect:nth-child(3) { animation-delay: .35s; }
.brand:hover .brand-mark rect { animation: hop .5s var(--ease); }
.brand:hover .brand-mark rect:nth-child(2) { animation-delay: .06s; }
.brand:hover .brand-mark rect:nth-child(3) { animation-delay: .12s; }
/* 줄마다 아래 경계에서 글자가 올라온다. 자르기는 clip-path(바깥으로 넓힌 테두리)라 줄 간격·높이가 원래와 같다 */
.hero h1 .ln { display: block; clip-path: inset(-30% -8% -14% -8%); }
.hero h1 .ln > span { display: block; animation: line-up 1s var(--ease-out) backwards; }
.hero h1 .ln:nth-child(1) > span { animation-delay: .1s; }
.hero h1 .ln:nth-child(2) > span { animation-delay: .2s; }
.hero-sub { animation: rise .8s var(--ease) .42s backwards; }
.hero-cta .pill { animation: rise .7s var(--ease) backwards; }
.hero-cta .pill:nth-child(1) { animation-delay: .54s; }
.hero-cta .pill:nth-child(2) { animation-delay: .62s; }
.art { animation: art-in 1.1s var(--ease) .16s backwards; will-change: transform; }
.art::before { animation: glow-drift 14s ease-in-out infinite alternate; }

/* 버튼: 올리면 빛줄기가 한 번 스치고, 누르면 살짝 눌림 */
.pill { position: relative; overflow: hidden; isolation: isolate; }
.pill::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 45%; pointer-events: none; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .75), transparent); transform: translateX(-130%) skewX(-18deg); }
.pill:hover::after { transform: translateX(330%) skewX(-18deg); transition: transform .75s var(--ease); }
.pill:active { transform: translateY(0) scale(.97); }
.outline svg { transition: transform .2s var(--ease); }
.outline:hover svg { transform: translateX(3px); }

/* 구역이 화면에 들어오면(main.js가 .in) 제목 줄 → 표시 → 화면 카드 → 기능 칸 순서로 올라온다.
   숨김은 CSS가 해서 스크립트가 늦게 떠도 번쩍이지 않는다. main.js가 아예 안 돌면(html에 .rv가 없음) 6초 뒤 그냥 보인다 */
@keyframes reveal-failsafe { to { opacity: 1; } }
@media (scripting: enabled) {
  .reveal:not(.in) { opacity: 0; }
  html:not(.rv) .reveal:not(.in) { animation: reveal-failsafe .01s 6s forwards; }
}
.block-head.in > div > *, .block-head.in > .outline { animation: rise .8s var(--ease) backwards; }
.block-head.in > div > :nth-child(2) { animation-delay: .07s; }
.block-head.in > div > :nth-child(3) { animation-delay: .14s; }
.block-head.in > .outline { animation-delay: .22s; }
.shot-cap.in { animation: cap-in .6s var(--ease) .12s backwards; }
.shot.in { animation: shot-in 1s var(--ease) .18s backwards; }
.grid.in { animation: fade .6s ease backwards; }
.grid.in .cell > * { animation: rise .7s var(--ease) backwards; }
/* KLIN에서 나가기로 왔을 때(main.js가 html에 no-intro): 첫 화면 등장 연출을 건너뛴다. 계속 도는 움직임(빛·블록)은 그대로 */
.no-intro .nav, .no-intro .brand:not(:hover) .brand-mark rect, .no-intro .hero h1 .ln > span, .no-intro .hero-sub, .no-intro .hero-cta .pill, .no-intro .art,
.no-intro .block-head.in > div > *, .no-intro .block-head.in > .outline, .no-intro .shot-cap.in, .no-intro .shot.in, .no-intro .grid.in, .no-intro .grid.in .cell > * { animation: none; }
.grid.in .cell:nth-child(1) > * { animation-delay: .1s; }
.grid.in .cell:nth-child(2) > * { animation-delay: .18s; }
.grid.in .cell:nth-child(3) > * { animation-delay: .26s; }

/* 화면 카드: 마우스 자리에 제품 색 빛(main.js가 --sx·--sy) */
.shot::after { content: ""; position: absolute; left: 0; top: 0; z-index: 2; width: 70%; aspect-ratio: 1; pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .13), rgba(255, 255, 255, 0));
  transform: translate(var(--sx, 50%), var(--sy, 50%)) translate(-50%, -50%); transition: opacity .4s; }
#klin .shot::after { background: radial-gradient(closest-side, rgba(156, 192, 255, .24), rgba(156, 192, 255, 0)); }
#istream .shot::after { background: radial-gradient(closest-side, rgba(143, 228, 247, .2), rgba(143, 228, 247, 0)); }
@media (hover: hover) and (pointer: fine) { .shot:hover::after { opacity: 1; } }

/* 기능 칸: 아이콘 칩이 살짝 들리며 기운다 */
.cell-ico { transition: border-color .2s, background .2s, transform .3s var(--ease); }
.cell:hover .cell-ico { transform: translateY(-2px) rotate(-6deg); }
