/* ilsoft farm 소개 페이지. 메인 관제실 화면과 같은 어두운 색. 인라인 스타일·스크립트 없이(CSP) 클래스로만. */
:root {
  --bg: #060913; --bg2: #0b1022; --ink: #eef1ff; --sub: #9aa2c2; --dim: #616a8f; --line: rgba(255, 255, 255, .09);
  --image: #ff6fb5; --music: #8a7dff; --sfx: #2fe3c5; --llm: #ffc44d; --hub: #6ad7ff; --ok: #45e3a0;
  --r: 20px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  font: 16px/1.65 Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  background:
    radial-gradient(1200px 700px at 15% -10%, rgba(106, 215, 255, .14), transparent 60%),
    radial-gradient(900px 600px at 90% 5%, rgba(138, 125, 255, .14), transparent 60%),
    radial-gradient(900px 700px at 70% 100%, rgba(255, 111, 181, .08), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
a { color: var(--hub); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; }

/* 머리 */
.nav { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 20px; padding: 14px 20px; backdrop-filter: blur(14px); background: rgba(6, 9, 19, .72); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -.01em; font-size: 18px; }
.nav nav { display: flex; gap: 18px; margin-left: auto; }
.nav nav a { color: var(--sub); text-decoration: none; font-size: 14px; }
.nav nav a:hover { color: var(--ink); }
.pill { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(69, 227, 160, .14); color: var(--ok); white-space: nowrap; }

/* 첫 화면 */
.hero { padding: 84px 0 40px; text-align: center; }
.kicker { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--hub); }
.hero h1 { margin: 0; font-size: clamp(36px, 6.4vw, 68px); line-height: 1.12; letter-spacing: -.035em; font-weight: 800; }
.hero h1 em { font-style: normal; background: linear-gradient(92deg, #bfe9ff, #b9a8ff 50%, #ff9fd0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 640px; margin: 22px auto 0; font-size: 18px; color: var(--sub); }
.lead b { color: var(--ink); }
.chips { list-style: none; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; padding: 0; margin: 26px 0 0; }
.chips li { font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); }
.chips li::before { content: "●"; margin-right: 6px; color: var(--c); }
.c-image { --c: var(--image); } .c-music { --c: var(--music); } .c-sfx { --c: var(--sfx); } .c-llm { --c: var(--llm); }
.shot { margin: 46px auto 0; max-width: 1100px; }
.shot img { border-radius: var(--r); border: 1px solid var(--line); box-shadow: 0 40px 120px -20px rgba(106, 215, 255, .25), 0 20px 60px rgba(0, 0, 0, .5); }
.shot figcaption { margin-top: 12px; font-size: 13px; color: var(--dim); }
.shot.small { margin-top: 0; }

/* 칸 공통 */
.sec { padding: 92px 0; }
.sec.alt { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .025) 20%, rgba(255, 255, 255, .025) 80%, transparent); }
.sec-head { max-width: 720px; margin-bottom: 40px; }
.sec-head h2 { margin: 0; font-size: clamp(28px, 4vw, 42px); line-height: 1.2; letter-spacing: -.03em; }
.sub { color: var(--sub); margin: 14px 0 0; }

/* 하는 일 */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li, .cards article, .contact, .now, .up, .sound { background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); border: 1px solid var(--line); border-radius: var(--r); }
.steps li { padding: 26px; }
.steps .n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; font-weight: 800; background: linear-gradient(140deg, var(--hub), var(--music)); color: #060913; }
.steps h3 { margin: 16px 0 6px; font-size: 20px; }
.steps p { margin: 0; color: var(--sub); }
.steps b { color: var(--ink); }

/* 숫자 */
.bars { display: grid; gap: 22px; }
.bar-row { display: grid; grid-template-columns: 150px 1fr 70px; grid-template-rows: auto auto; column-gap: 18px; row-gap: 6px; align-items: center; }
.bar-row .what { grid-row: span 2; margin: 0; font-weight: 700; }
.bar-row .gain { grid-column: 3; grid-row: 1 / span 2; margin: 0; font-size: 22px; font-weight: 800; color: var(--ok); text-align: right; }
.track { position: relative; height: 30px; border-radius: 9px; background: rgba(255, 255, 255, .05); display: flex; align-items: center; }
.track b { position: relative; z-index: 1; padding-left: 12px; font-size: 13px; font-weight: 700; }
.fill { position: absolute; inset: 0 auto 0 0; border-radius: 9px; }
.fill.gpu { background: linear-gradient(90deg, var(--sfx), var(--hub)); box-shadow: 0 0 20px -4px var(--sfx); min-width: 8px; }
.fill.note { background: rgba(255, 255, 255, .14); }
.w-5 { width: 5%; } .w-7 { width: 7%; } .w-21 { width: 21%; } .w-100 { width: 100%; }
.legend { margin: 4px 0 0; color: var(--sub); font-size: 13px; }
.legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 6px 0 12px; vertical-align: -1px; }
.legend .dot:first-child { margin-left: 0; }
.dot.gpu { background: var(--sfx); } .dot.note { background: rgba(255, 255, 255, .3); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.stats div { padding: 22px; border-left: 2px solid var(--hub); }
.stats b { display: block; font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.stats span { display: block; margin-top: 8px; color: var(--sub); font-size: 14px; }

/* 작품 */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery figure { margin: 0; position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--bg2); }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .6s; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { position: absolute; inset: auto 0 0 0; padding: 30px 14px 12px; font-size: 12px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); }
.sounds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.sound { margin: 0; padding: 18px; display: flex; flex-direction: column; gap: 10px; border-top: 2px solid var(--c); }
.sound figcaption { font-size: 14px; color: var(--sub); min-height: 44px; }
.sound audio { width: 100%; }
.tag { align-self: flex-start; font-size: 11px; font-weight: 800; padding: 2px 9px; border-radius: 999px; background: var(--c); color: #060913; }

/* 기능 */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.cards article { padding: 24px; }
.cards h3 { margin: 0 0 8px; font-size: 18px; }
.cards p { margin: 0; color: var(--sub); font-size: 15px; }
.models { margin-top: 44px; }
.models h3 { font-size: 18px; margin: 0 0 12px; }
.models table { width: 100%; border-collapse: collapse; font-size: 15px; }
.models th { text-align: left; color: var(--dim); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.models td { padding: 12px; border-bottom: 1px solid var(--line); }
.note { color: var(--dim); font-size: 13px; margin: 12px 0 0; }

/* 개발 이력(build-updates.mjs가 만든 것) */
.now { padding: 18px 22px; margin-bottom: 28px; }
.now-h { margin: 0 0 8px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.beat { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 12px var(--ok); }
.now ul { margin: 0; padding-left: 20px; color: var(--sub); }
.tl { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; }
.tl-day { display: grid; grid-template-columns: 150px 1fr; gap: 20px; }
.day { display: flex; flex-direction: column; }
.day b { font-size: 42px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.day span { color: var(--sub); font-size: 14px; margin-top: 4px; }
.day small { color: var(--dim); font-size: 12px; }
.ups { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.up { padding: 18px 20px; }
.up h3 { margin: 6px 0 4px; font-size: 17px; }
.up p { margin: 0; color: var(--sub); font-size: 14px; }
.up-top { display: flex; gap: 8px; align-items: center; }
.up .badge { font-size: 11px; font-weight: 800; padding: 2px 9px; border-radius: 999px; background: rgba(255, 255, 255, .1); }
.t-new .badge { background: rgba(255, 111, 181, .18); color: var(--image); }
.t-better .badge { background: rgba(138, 125, 255, .2); color: #b9b0ff; }
.t-fix .badge { background: rgba(255, 196, 77, .18); color: var(--llm); }
.t-release .badge, .t-start .badge { background: rgba(69, 227, 160, .16); color: var(--ok); }
.ver { font-size: 12px; color: var(--dim); }
.tl-more { margin-top: 24px; }
.tl-more summary { cursor: pointer; color: var(--sub); }

/* 끝 */
.contact { text-align: center; padding: 48px 24px; }
.contact img { margin: 0 auto 14px; }
.contact h2 { margin: 0 0 8px; }
.contact p { color: var(--sub); max-width: 520px; margin: 0 auto 22px; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; color: #060913; background: linear-gradient(92deg, var(--hub), var(--music)); }
.foot { padding: 40px 0 60px; border-top: 1px solid var(--line); text-align: center; color: var(--dim); font-size: 13px; }
.foot .other { display: inline-block; margin-bottom: 10px; font-weight: 700; text-decoration: none; }

@media (max-width: 860px) {
  .nav nav { display: none; }
  .steps, .cards, .stats, .sounds { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .bar-row { grid-template-columns: 1fr 60px; }
  .bar-row .what { grid-row: auto; grid-column: 1 / -1; }
  .bar-row .gain { grid-column: 2; grid-row: 2 / span 2; }
  .tl-day { grid-template-columns: 1fr; gap: 10px; }
  .day { flex-direction: row; align-items: baseline; gap: 10px; }
  .day b { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } html { scroll-behavior: auto; } }
