/* 2026-10-27 시안: 크림 종이 + 먹색 세리프 (rikyu.ai 스타일 참고, 문구·이미지는 cmore 것) */
@font-face {
  font-family: "Noto Serif KR Home";
  src: url("/media/fonts/noto-serif-kr-home.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f3f0e8;
  --paper-deep: #e9e5da;
  --surface: #fbfaf6;
  --line: #e0dbcd;
  --line-strong: #cdc6b4;
  --ink: #2b2a21;
  --ink-soft: #5d5a4c;
  --ink-faint: #8a8576;
  --pill: #3b3a2f;
  --pill-hover: #2b2a21;
  --chip: #ebe7dc;
  --live: #4f7a4a;
  --maxw: 1240px;
  --serif: "Noto Serif KR Home", "Noto Serif KR", "AppleMyungjo", "Nanum Myeongjo", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Segoe UI", Roboto, sans-serif;
  --mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-base: 16px;
  --fs-md: 18px;
  --fs-lg: 22px;
  --fs-xl: clamp(28px, 3.4vw, 40px);
  --fs-hero: clamp(38px, 6vw, 76px);
  --nav-h: 64px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 20; background: var(--ink); color: var(--paper); padding: 8px 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* 내비: 맨 위에선 투명, 스크롤하면 종이색 띠 + 알약 버튼 */
.nav { position: sticky; top: 0; z-index: 10; transition: background .25s, box-shadow .25s; }
.nav.is-scrolled { background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.nav-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; min-height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; justify-self: start; }
.mark { flex: none; display: block; }
.brand .mark { width: 26px; height: 26px; }
.brand-word { font-family: var(--serif); font-size: 21px; font-weight: 500; letter-spacing: -.01em; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: var(--fs-sm); color: var(--ink-soft); text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { justify-self: end; display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px; background: var(--pill); color: var(--paper); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; white-space: nowrap; transition: opacity .25s, transform .25s, background .15s; }
.nav-cta:hover { background: var(--pill-hover); }
.nav:not(.is-scrolled) .nav-cta { opacity: 0; transform: translateY(-4px); visibility: hidden; }

/* 버튼: 알약 하나 */
.actions { display: flex; justify-content: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 999px; font-size: var(--fs-base); font-weight: 600; text-decoration: none; transition: background .15s, border-color .15s, transform .15s; }
.btn-primary { background: var(--pill); color: var(--paper); box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, 0 8px 22px -14px rgba(43, 42, 33, .9); }
.btn-primary:hover { background: var(--pill-hover); transform: translateY(-1px); }
.btn-line { border: 1px solid var(--line-strong); color: var(--ink); }
.btn-line:hover { border-color: var(--ink-soft); }

/* 히어로 */
.home-hero { padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 7vw, 96px); }
.home-hero-copy { display: grid; justify-items: center; text-align: center; }
.home-hero h1 { font-family: var(--serif); font-size: var(--fs-hero); font-weight: 500; line-height: 1.22; letter-spacing: -.025em; color: var(--ink); margin-bottom: 22px; }
.home-lead { font-size: var(--fs-md); font-weight: 300; color: var(--ink-soft); margin-bottom: 36px; }
.home-lead u { text-decoration: underline; text-decoration-color: var(--line-strong); text-decoration-thickness: 2px; text-underline-offset: 7px; color: var(--ink); font-weight: 400; }

/* 데모 창: 채팅 패널 + 결과물 카드 */
.home-window { display: grid; grid-template-columns: 340px minmax(0, 1fr); margin-top: clamp(48px, 6vw, 72px); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 30px 80px -50px rgba(43, 42, 33, .55); overflow: hidden; }
.home-chat { display: flex; flex-direction: column; gap: 18px; padding: 18px 20px 20px; background: #f6f4ee; border-right: 1px solid var(--line); min-width: 0; }
.home-chat-head { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 600; }
.home-chat-head .mark { width: 18px; height: 18px; }
.home-chat-log { display: grid; gap: 14px; }
.msg { font-size: var(--fs-sm); line-height: 1.6; }
.msg-me { justify-self: end; max-width: 88%; padding: 9px 14px; border-radius: 16px; background: var(--chip); }
.msg-bot { color: var(--ink); }
.home-controls { display: flex; flex-direction: column; gap: 14px; margin-top: auto; }
.home-controls[hidden] { display: none; }
.home-themes { display: flex; flex-wrap: wrap; gap: 6px; }
.home-themes button { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; font: inherit; font-size: var(--fs-xs); font-weight: 500; color: var(--ink-soft); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; white-space: nowrap; }
.home-themes button:hover { border-color: var(--line-strong); color: var(--ink); }
.home-themes button[aria-pressed="true"] { color: var(--paper); background: var(--pill); border-color: var(--pill); }
.sw { flex: none; width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(43, 42, 33, .2); }
.sw-card { background: #214e3a; } .sw-paper { background: #f7f4ed; } .sw-midnight { background: #171b18; } .sw-sage { background: #dfe9d8; } .sw-gallery { background: #f1efe9; } .sw-plain { background: #fff; }
.home-name input { width: 100%; min-height: 48px; padding: 0 18px; font: inherit; font-size: var(--fs-sm); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 6px 18px -14px rgba(43, 42, 33, .6); }
.home-name input::placeholder { color: var(--ink-faint); }

.home-grid { display: grid; grid-template-columns: 300px repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, auto); gap: 12px; padding: 12px; min-width: 0; }
.home-stage { position: relative; grid-row: 1 / span 2; display: grid; justify-items: center; align-content: center; gap: 12px; padding: 14px 12px 18px; border-radius: 14px; background: var(--paper-deep); }
.home-sample, .home-pro { margin: 0; font-size: var(--fs-xs); font-weight: 500; color: var(--ink-soft); }
.home-sample { justify-self: start; }
.home-pro { position: absolute; top: 14px; right: 12px; display: inline-flex; align-items: center; gap: 6px; }
.home-pro strong { padding: 0 7px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 11px; font-weight: 700; }
.home-pro[hidden] { display: none; }
.home-card { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: 14px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); text-decoration: none; transition: transform .25s ease, border-color .15s; }
.home-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; border-bottom: 1px solid var(--line); background: #fff; }
.home-card-copy { display: grid; gap: 2px; padding: 12px 14px 14px; }
.home-card-copy strong { font-size: var(--fs-sm); font-weight: 600; }
.home-card-copy span { font-size: var(--fs-xs); color: var(--ink-soft); }
.home-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }

/* 폰 프레임: 실제 Links `.profile`(profile.css)을 390px 폭으로 그려 줌 배율로 맞춘다 */
.phone { --phone-zoom: .636; --phone-screen-h: 800px; --phone-bar: 30px; position: relative; width: 260px; height: 520px; background: #24231c; border: 6px solid #24231c; border-radius: 30px; overflow: hidden; box-shadow: 0 24px 50px -28px rgba(43, 42, 33, .8); }
.phone-url { position: absolute; top: 0; left: 50%; z-index: 2; display: flex; align-items: center; height: var(--phone-bar); margin: 0; padding: 0 10px; max-width: calc(100% - 24px); transform: translateX(-50%); font-family: var(--mono); font-size: 11px; line-height: 1.3; color: rgba(255, 255, 255, .8); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phone-screen { position: absolute; inset: var(--phone-bar) 0 0; overflow: hidden auto; scrollbar-width: none; border-radius: 0 0 24px 24px; background: #f7f4ed; }
.phone-screen::-webkit-scrollbar { display: none; }
.phone-screen > .profile { zoom: var(--phone-zoom); width: 390px; min-height: var(--phone-screen-h); }
@supports not (zoom: 1) {
  .phone-screen > .profile { transform: scale(var(--phone-zoom)); transform-origin: 0 0; }
}
.phone-fallback { width: 100%; height: auto; }
@keyframes home-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.phone-screen.swap { animation: home-in .32s ease both; }

/* 스크롤 구간: 문장이 타이핑되고, 큰 결과물 하나, 아래 종류 탭 */
.home-scroll { position: relative; height: 400svh; margin: 0 12px; border-radius: 28px; background: var(--paper-deep); }
.home-scroll-stage { position: sticky; top: var(--nav-h); display: flex; flex-direction: column; align-items: center; gap: clamp(16px, 3vh, 32px); height: calc(100svh - var(--nav-h)); padding: clamp(20px, 5vh, 56px) 20px clamp(16px, 3vh, 28px); }
.home-type { display: flex; align-items: center; justify-content: center; min-height: 2.6em; max-width: 30ch; font-size: clamp(22px, 3vw, 38px); font-weight: 400; line-height: 1.3; letter-spacing: -.02em; text-align: center; }
.home-caret { flex: none; align-self: center; width: 2px; height: 1.1em; margin-left: 4px; background: var(--ink); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.home-outputs { position: relative; flex: 1; width: 100%; max-width: 980px; min-height: 0; }
.home-output { position: absolute; inset: 0; opacity: 0; transform: translateY(16px) scale(.985); transition: opacity .45s ease, transform .6s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.home-output.is-on { opacity: 1; transform: none; }
.home-output img { position: absolute; inset: 0; margin: auto; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 14px; border: 1px solid var(--line-strong); box-shadow: 0 30px 60px -36px rgba(43, 42, 33, .7); background: var(--surface); }
.home-tabs { position: relative; z-index: 2; flex: none; margin-top: 4px; display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--line); }
.home-tabs button { display: inline-flex; align-items: center; gap: 6px; min-width: 44px; min-height: 40px; padding: 0 12px; font: inherit; font-size: var(--fs-sm); color: var(--ink-faint); background: none; border: 0; border-radius: 999px; cursor: pointer; }
.home-tabs svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.home-tabs button span { display: none; }
.home-tabs button[aria-selected="true"] { color: var(--ink); background: var(--surface); box-shadow: 0 2px 8px -4px rgba(43, 42, 33, .4); }
.home-tabs button[aria-selected="true"] span { display: inline; }
.home-tabs button:hover { color: var(--ink); }

/* 아래 섹션: 세리프 제목, 머리선, 장식 없음 */
.home-section { padding: clamp(72px, 9vw, 120px) 0; scroll-margin-top: var(--nav-h); }
.home-section + .home-section { border-top: 1px solid var(--line); }
.home-section h2 { font-family: var(--serif); font-size: var(--fs-xl); font-weight: 500; line-height: 1.25; letter-spacing: -.02em; margin-bottom: 36px; }
.home-feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; transition: border-color .15s, transform .25s ease; }
.home-feature:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.home-feature-shot { background: var(--paper-deep); }
.home-feature-shot img { width: 100%; height: 100%; object-fit: cover; }
.home-feature-copy { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 40px; }
.home-meta { display: flex; align-items: center; gap: 10px; font-size: var(--fs-sm); color: var(--ink-faint); }
.home-live { display: inline-flex; align-items: center; gap: 6px; color: var(--live); font-weight: 600; }
.home-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--live); }
.home-feature h3 { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 32px); font-weight: 500; line-height: 1.2; }
.home-feature p { color: var(--ink-soft); }
.home-go, .home-all { font-size: var(--fs-base); font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 5px; }
.home-go { margin-top: 8px; }
.home-go::after, .home-all::after, .home-rows a::after, .home-posts a::after { content: " →"; }
.home-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin-top: 12px; }
.home-rows a { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 2px 20px; align-items: center; min-height: 68px; padding: 16px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink-soft); }
.home-rows a strong:first-child { grid-column: 1; grid-row: 1; color: var(--ink); font-weight: 600; }
.home-rows a span { grid-column: 1; grid-row: 2; }
.home-rows a span strong { color: var(--ink); font-weight: 600; }
.home-rows a em { grid-column: 2; grid-row: 1 / span 2; font-style: normal; font-size: var(--fs-sm); color: var(--ink-faint); }
.home-rows a::after { grid-column: 3; grid-row: 1 / span 2; color: var(--ink-faint); }
.home-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 36px; }
.home-head h2 { margin: 0; }
.home-all { display: inline-flex; align-items: center; min-height: 44px; }
.home-posts { border-top: 1px solid var(--line); }
.home-posts a { display: grid; grid-template-columns: 112px 64px minmax(0, 1fr) auto; gap: 20px; align-items: baseline; padding: 20px 4px; border-bottom: 1px solid var(--line); text-decoration: none; }
.home-posts a::after { color: var(--ink-faint); }
.home-posts time { font-family: var(--mono); font-size: var(--fs-sm); color: var(--ink-faint); }
.home-kind { font-size: var(--fs-sm); color: var(--ink-faint); }
.home-title { font-size: var(--fs-md); line-height: 1.5; font-weight: 500; transition: color .15s; }
.home-posts a:hover .home-title, .home-rows a:hover strong:first-child { color: var(--ink-soft); }
.home-contact-row { display: flex; justify-content: space-between; align-items: center; gap: 20px 40px; flex-wrap: wrap; }
.home-contact-row p { color: var(--ink-soft); font-size: var(--fs-md); }
.contact-links { display: flex; flex-wrap: wrap; gap: 10px; }

.footer { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: var(--fs-sm); color: var(--ink-faint); }
.footer .wrap { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.footer nav { display: flex; flex-wrap: wrap; gap: 0 12px; }
.footer a { color: var(--ink-soft); text-underline-offset: 3px; }
.footer nav a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.biz-line { width: 100%; font-size: var(--fs-xs); }

@media (max-width: 1100px) {
  .home-window { grid-template-columns: 1fr; }
  .home-chat { border-right: 0; border-bottom: 1px solid var(--line); }
  .home-feature { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-inner { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .home-lead { font-size: var(--fs-base); }
  .home-window { margin-left: -8px; margin-right: -8px; border-radius: 18px; }
  .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; gap: 10px; padding: 10px; }
  .home-stage { grid-row: auto; grid-column: 1 / -1; }
  .home-card-copy { padding: 10px 12px 12px; }
  .home-scroll { margin: 0 8px; border-radius: 22px; }
  .home-tabs button { padding: 0 10px; }
  .home-rows { grid-template-columns: 1fr; }
  .home-feature-copy { padding: 26px 22px; }
  .home-posts a { grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; padding: 16px 4px; }
  .home-posts .home-title { grid-column: 1 / -1; font-size: var(--fs-base); }
  .home-posts a::after { display: none; }
  .contact-links { width: 100%; }
  .home-contact-row .btn { flex: 1; white-space: nowrap; padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
