:root {
    --bj-pink: #F48FB1;
    --bj-blue: #90CAF9;
    --bj-green: #A5D6A7;
    --bj-yellow: #FFF59D;
    --bj-purple: #CE93D8;
    --bj-white: #FFFFFF;
    --bj-bg: #FAFAFA;
    --bj-dark: #37474F;
    --bj-text: #455A64;
    --font-kr: 'Jua', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font-kr); color: var(--bj-text); background: var(--bj-bg); line-height: 1.8; overflow-x: hidden; }

.header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; background: var(--bj-white); border-bottom: 3px solid; border-image: linear-gradient(90deg, var(--bj-pink), var(--bj-blue), var(--bj-green), var(--bj-yellow), var(--bj-purple)) 1; transition: all 0.3s ease; }
.header.scrolled { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; height: 4.5rem; }
.logo { font-size: 1.6rem; color: var(--bj-dark); text-decoration: none; }
.nav-menu { display: flex; list-style: none; gap: 2rem; }
.nav-menu a { color: var(--bj-text); text-decoration: none; font-size: 0.9rem; transition: color 0.3s ease; }
.nav-menu a:hover { color: var(--bj-pink); }
.nav-menu li:nth-child(1) a:hover { color: var(--bj-pink); }
.nav-menu li:nth-child(2) a:hover { color: var(--bj-blue); }
.nav-menu li:nth-child(3) a:hover { color: var(--bj-green); }
.nav-menu li:nth-child(4) a:hover { color: var(--bj-purple); }
.hamburger { display: none; flex-direction: column; cursor: pointer; gap: 5px; }
.hamburger span { width: 28px; height: 3px; background: var(--bj-dark); border-radius: 2px; transition: all 0.3s ease; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

main { padding-top: 4.5rem; }

.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; background: var(--bj-white); overflow: hidden; }
.bojagi-patches { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(4, 1fr); pointer-events: none; }
.patch { opacity: 0.15; }
.patch-1 { background: var(--bj-pink); }
.patch-2 { background: var(--bj-blue); }
.patch-3 { background: var(--bj-green); }
.patch-4 { background: var(--bj-yellow); }
.patch-5 { background: var(--bj-purple); }
.hero-content { text-align: center; position: relative; z-index: 10; padding: 2rem; }
.hero-subtitle { font-size: 0.9rem; color: var(--bj-purple); letter-spacing: 0.3em; margin-bottom: 1rem; }
.hero-title { font-size: clamp(2.5rem, 6vw, 5rem); color: var(--bj-dark); margin-bottom: 1.5rem; }
.hero-title span { background: linear-gradient(90deg, var(--bj-pink), var(--bj-blue), var(--bj-green), var(--bj-purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-desc { font-size: clamp(1rem, 2vw, 1.2rem); color: var(--bj-text); max-width: 500px; margin: 0 auto; }

.section { padding: 6rem 2rem; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-title { font-size: 2.2rem; color: var(--bj-dark); }
.section-patches { display: flex; align-items: center; justify-content: center; gap: 0.3rem; margin-top: 1rem; }
.section-patches span { width: 20px; height: 6px; border-radius: 3px; }
.section-patches span:nth-child(1) { background: var(--bj-pink); }
.section-patches span:nth-child(2) { background: var(--bj-blue); }
.section-patches span:nth-child(3) { background: var(--bj-green); }
.section-patches span:nth-child(4) { background: var(--bj-yellow); }
.section-patches span:nth-child(5) { background: var(--bj-purple); }

.boards-section { background: var(--bj-white); }
.boards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; max-width: 1200px; margin: 0 auto; }
.board-card { padding: 2rem; border-radius: 16px; border: 2px solid var(--bj-pink); background: white; transition: all 0.3s ease; }
.board-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); }
.board-card.color-1 { border-color: var(--bj-pink); }
.board-card.color-2 { border-color: var(--bj-blue); }
.board-card.color-3 { border-color: var(--bj-green); }
.board-card.color-4 { border-color: var(--bj-purple); }
.card-title { font-size: 1.3rem; color: var(--bj-dark); margin-bottom: 1rem; padding-bottom: 0.8rem; }
.color-1 .card-title { border-bottom: 2px solid var(--bj-pink); }
.color-2 .card-title { border-bottom: 2px solid var(--bj-blue); }
.color-3 .card-title { border-bottom: 2px solid var(--bj-green); }
.color-4 .card-title { border-bottom: 2px solid var(--bj-purple); }
.board-list { list-style: none; }
.board-list li { padding: 0.5rem 0; border-bottom: 1px solid rgba(0, 0, 0, 0.04); display: flex; justify-content: space-between; align-items: center; }
.board-list li a { color: var(--bj-text); text-decoration: none; font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 70%; transition: color 0.3s ease; }
.board-list li a:hover { color: var(--bj-pink); }
.post-date { font-size: 0.75rem; color: #999; }
.card-more { display: inline-block; margin-top: 1rem; text-decoration: none; font-size: 0.85rem; font-weight: 700; }
.color-1 .card-more { color: var(--bj-pink); }
.color-2 .card-more { color: var(--bj-blue); }
.color-3 .card-more { color: var(--bj-green); }
.color-4 .card-more { color: var(--bj-purple); }

.footer { padding: 4rem 1.5rem 2rem; background: var(--bj-dark); color: rgba(255, 255, 255, 0.7); }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
.footer-brand { font-size: 1.6rem; color: white; margin-bottom: 1rem; }
.footer-desc { font-size: 0.9rem; line-height: 1.8; }
.footer-title { font-size: 1rem; color: white; margin-bottom: 1rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: rgba(255, 255, 255, 0.6); text-decoration: none; font-size: 0.9rem; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--bj-pink); }
.footer-bottom { max-width: 1200px; margin: 3rem auto 0; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.1); text-align: center; font-size: 0.85rem; opacity: 0.6; }

@media (max-width: 359px) { html { font-size: 13px; } }
@media (min-width: 360px) and (max-width: 767px) {
    html { font-size: 14px; }
    .nav-menu { position: fixed; top: 4.5rem; left: 0; width: 100%; background: var(--bj-white); flex-direction: column; align-items: center; padding: 2rem 0; gap: 1.5rem; border-bottom: 3px solid; border-image: linear-gradient(90deg, var(--bj-pink), var(--bj-blue), var(--bj-green), var(--bj-yellow), var(--bj-purple)) 1; transform: translateY(-100%); opacity: 0; visibility: hidden; transition: all 0.3s ease; }
    .nav-menu.active { transform: translateY(0); opacity: 1; visibility: visible; }
    .hamburger { display: flex; }
    .boards-grid { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; }
}
@media (min-width: 768px) and (max-width: 1023px) {
    html { font-size: 15px; }
    .footer-container { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) and (max-width: 1279px) { html { font-size: 16px; } }
@media (min-width: 1920px) and (max-width: 2559px) { html { font-size: 17px; } }
@media (min-width: 2560px) and (max-width: 3839px) { html { font-size: 19px; } }
@media (min-width: 3840px) { html { font-size: 22px; } }
