/* 메인 (Figma 메인 프레임 17:590) */
.home-sections { display: block; }
/* 연속된 절반 너비 위젯은 서버에서 .half-row 로 묶는다 */
.half-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.half-row > .board-latest { margin-top: 0; }

/* Hero — 두 테마 모두 어두운 영역 */
.hero { position: relative; min-height: var(--pb-hero-h, 520px); display: flex; align-items: center; overflow: hidden; background: var(--c-bg); color: var(--c-text); }
.hero:not(:has(.hero__art)) { background: radial-gradient(120% 120% at 80% 20%, var(--c-surface-2) 0%, var(--c-bg) 60%); }
.hero__art { position: absolute; inset: 0; }
.hero__art img { width: 100%; height: 100%; object-fit: cover; }
.hero__art::after { content: ""; position: absolute; inset: 0; background: var(--c-inverse-scrim); }
.hero__inner { position: relative; padding-top: 72px; padding-bottom: 120px; }
.hero__copy { max-width: 560px; }
.hero__eyebrow, .hero__headline { font-size: 40px; font-weight: 800; line-height: 1.25; letter-spacing: -.02em; }
.hero__eyebrow { font-family: var(--font-display); }
.hero__brand { display: block; margin-top: 4px; font-size: 64px; font-weight: 900; letter-spacing: -.03em; }
.hero__brand em { font-style: normal; color: var(--c-accent-text); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
/* 에디터로 쓴 문구 — 제목1 = 큰 제목, 제목2 = 윗줄, 본문 = 설명. 기울임(I)은 강조색, 글자 크기 "아주 크게" = 브랜드 크기 */
.hero__rich { font-size: 18px; line-height: 1.6; }
.hero__rich h1, .hero__rich h2 { font-size: 40px; font-weight: 800; line-height: 1.25; letter-spacing: -.02em; }
.hero__rich h2 { font-family: var(--font-display); }
.hero__rich h3 { font-size: 26px; font-weight: 800; line-height: 1.3; }
.hero__rich p { color: var(--c-text-muted); }
.hero__rich p:empty, .hero__rich p:has(> br:only-child) { height: .6em; }
.hero__rich > * + p, .hero__rich > p + *, .hero__rich > * + ul, .hero__rich > * + ol { margin-top: 12px; }
.hero__rich h1 + h1 { margin-top: 4px; }
.hero__rich em { font-style: normal; color: var(--c-accent-text); }
.hero__rich .ql-size-small { font-size: .75em; }
.hero__rich .ql-size-large { font-size: 1.25em; }
.hero__rich .ql-size-huge { font-size: 1.6em; font-weight: 900; letter-spacing: -.03em; }
.hero__rich .ql-align-center { text-align: center; } .hero__rich .ql-align-right { text-align: right; } .hero__rich .ql-align-justify { text-align: justify; }
.hero__rich a { text-decoration: underline; text-underline-offset: 3px; }
.hero__rich img { display: inline-block; max-width: 100%; height: auto; vertical-align: middle; }
/* 에디터에서 크기·정렬을 바꾼 이미지 (quill-blot-formatter2 — 게시판 본문과 같은 규칙) */
.hero__rich [class^="ql-image-align-"] { display: flex; flex-wrap: wrap; width: var(--resize-width, auto); max-width: 100%; }
.hero__rich [class^="ql-image-align-"] > img { flex: 1 1 auto; }
.hero__rich .ql-image-align-left { float: left; margin: 8px 16px 8px 0; }
.hero__rich .ql-image-align-center { margin: 8px auto; }
.hero__rich .ql-image-align-right { float: right; margin: 8px 0 8px 16px; }
.hero__rich::after { content: ""; display: block; clear: both; }
.hero__rich ul, .hero__rich ol { padding-left: 1.4em; } .hero__rich ul { list-style: disc; } .hero__rich ol { list-style: decimal; }
.hero__copy--center { margin-inline: auto; text-align: center; } .hero__copy--center .hero__ctas { justify-content: center; }
.hero__copy--right { margin-left: auto; text-align: right; } .hero__copy--right .hero__ctas { justify-content: flex-end; }
.hero__copy--wide { max-width: 860px; }

/* 특징 띠 — hero 하단에 겹침 */
.feature-strip { position: relative; z-index: 2; margin-top: -64px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 22px 24px; border-radius: var(--radius-lg); background: var(--c-surface); border: 1px solid var(--c-border); box-shadow: var(--shadow-pop); }
.feature-strip li { display: flex; align-items: center; gap: 14px; padding: 4px 8px; }
.feature-strip__icon { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: var(--radius-md); background: var(--c-surface-2); color: var(--c-accent-text); }
.feature-strip__icon svg { width: 26px; height: 26px; }
.feature-strip__icon--img { background: transparent; overflow: hidden; }
.feature-strip__icon--img img { width: 100%; height: 100%; object-fit: contain; }
.feature-strip strong { display: block; font-size: 17px; }
.feature-strip small { display: block; color: var(--c-text-muted); font-size: 13px; }

/* 개발자 모집 배너 */
.promo { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 28px; padding: 28px 36px; border-radius: var(--radius-lg); background: radial-gradient(140% 160% at 0% 50%, var(--c-surface-2) 0%, var(--c-bg) 70%); border: 1px solid var(--c-border); color: var(--c-text); }
.promo__art { display: grid; place-items: center; width: 96px; height: 96px; border-radius: var(--radius-lg); background: var(--c-surface); color: var(--c-accent-text); }
.promo__art svg { width: 48px; height: 48px; }
.promo h2 { font-size: 24px; font-weight: 800; }
.promo h2 em { font-style: normal; color: var(--c-accent-text); }
.promo p { margin-top: 8px; color: var(--c-text-muted); font-size: 14px; }
.promo__list { display: grid; gap: 6px; font-size: 14px; }
.promo__list li { display: flex; align-items: center; gap: 8px; }
.promo__list svg { width: 18px; height: 18px; color: var(--c-accent-text); }

/* 게시판 최신글 — half 두 개 나란히 */
.board-latest { margin-top: 56px; padding: 24px; border-radius: var(--radius-lg); background: var(--c-surface); border: 1px solid var(--c-border); }
.board-latest__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.board-latest__head h2 { font-size: 20px; font-weight: 800; }
.board-latest li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--c-border); font-size: 15px; }
.board-latest li:last-child { border-bottom: 0; }
.board-latest li a { display: flex; gap: 6px; min-width: 0; }
.board-latest__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-latest__count { color: var(--c-accent-text); font-size: 13px; }
.board-latest time { flex: none; color: var(--c-text-muted); font-size: 13px; }
.board-latest__empty { padding: 24px 0; text-align: center; }

@media (max-width: 1080px) {
  .promo { grid-template-columns: auto 1fr; }
  .promo__list, .promo__cta { grid-column: 1 / -1; }
  .promo__cta { justify-self: start; }
}
@media (max-width: 900px) {
  .feature-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .half-row { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hero { min-height: var(--pb-hero-h, 440px); }
  .hero__eyebrow, .hero__headline, .hero__rich h1, .hero__rich h2 { font-size: 28px; }
  .hero__rich { font-size: 16px; } .hero__rich h3 { font-size: 21px; }
  .hero__brand { font-size: 44px; }
  .hero__ctas .btn--lg { height: 50px; padding: 0 22px; font-size: 17px; }
  .feature-strip { margin-top: -48px; padding: 14px; }
  .feature-strip li { padding: 6px 0; }
  .promo { grid-template-columns: 1fr; padding: 24px; }
  .promo__art { display: none; }
  .section-head h2 { font-size: 21px; }
}
