/* =========================================
   1. 디자인 시스템 & 기본 초기화
   ========================================= */
:root { --brand-navy: #082342; --brand-navy-light: #123866; --brand-accent: #2563eb; --bg-white: #ffffff; --bg-apple-grey: #f5f5f7; --bg-light: #f8fafc; --bg-grey: #f1f5f9; --text-primary: #191f28; --text-secondary: #4e5968; --text-tertiary: #8b95a1; --border-color: rgba(15, 23, 42, 0.07); --radius-xl: 32px; --radius-lg: 24px; --radius-md: 16px; --transition-smooth: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); --transition-card: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif; color: var(--text-primary); background-color: var(--bg-white); -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }

/* =========================================
   2. 스크롤 등장 애니메이션 & 공통 헤더
   ========================================= */
.reveal { opacity: 0; transform: translateY(36px); transition: var(--transition-smooth); }
.reveal.active { opacity: 1; transform: translateY(0); }
.step-1 { transition-delay: 0.1s; }
.step-2 { transition-delay: 0.25s; }
.step-3 { transition-delay: 0.4s; }
.section-header { margin-bottom: 60px; }
.section-eyebrow { display: inline-block; font-size: 15px; font-weight: 700; color: var(--brand-accent); letter-spacing: -0.2px; margin-bottom: 12px; text-transform: uppercase; }
.section-title { font-size: 42px; font-weight: 800; line-height: 1.3; letter-spacing: -1.4px; color: var(--text-primary); word-break: keep-all; }

/* =========================================
   3. 상단 고정 네비게이션 (GNB)
   ========================================= */
header { position: fixed; top: 0; left: 0; width: 100%; height: 68px; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--border-color); z-index: 1000; transition: box-shadow 0.3s ease; }
header.scrolled { box-shadow: 0 4px 20px rgba(8, 35, 66, 0.06); }
.nav-container { max-width: 1120px; height: 100%; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; }
.logo img { height: 18px; width: auto; display: block; }
.nav-menu { display: flex; gap: 24px; }
.nav-menu a { font-size: 15px; font-weight: 600; color: var(--text-secondary); padding: 8px 14px; border-radius: 10px; transition: all 0.2s ease; }
.nav-menu a:hover, .nav-menu a.active { color: var(--brand-navy); background-color: var(--bg-grey); }

/* =========================================
   4. Section 1: Hero (메인 화면)
   ========================================= */
#hero { padding-top: 150px; padding-bottom: 110px; text-align: center; background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%); }
.hero-title { font-size: 56px; font-weight: 800; line-height: 1.25; letter-spacing: -1.8px; color: var(--brand-navy); margin-bottom: 24px; word-break: keep-all; }
.hero-subtitle { font-size: 22px; font-weight: 500; color: var(--text-secondary); line-height: 1.65; letter-spacing: -0.4px; margin-bottom: 60px; word-break: keep-all; }
.hero-subtitle strong { color: var(--text-primary); font-weight: 700; }
.hero-visual-frame { max-width: 960px; margin: 0 auto; border-radius: var(--radius-xl); overflow: hidden; box-shadow: 0 24px 60px -15px rgba(8, 35, 66, 0.12); background-color: #f7f7f5; aspect-ratio: 16 / 10; }
.hero-visual-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; display: block; transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1); }
.hero-visual-frame:hover img { transform: scale(1.02); }

/* =========================================
   5. Section 2: Business (벤토 그리드)
   ========================================= */
#business { padding: 140px 0; background-color: var(--bg-apple-grey); }
.bento-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.bento-card { background-color: var(--bg-white); border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; position: relative; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03); border: 1px solid rgba(0, 0, 0, 0.04); transition: var(--transition-card); }
.bento-card:hover { transform: translateY(-8px); box-shadow: 0 24px 48px rgba(8, 35, 66, 0.1); }
.span-6 { grid-column: span 6; }
.span-4 { grid-column: span 4; }
.card-content { padding: 36px 36px 28px; position: relative; z-index: 2; }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.card-category { font-size: 13px; font-weight: 700; color: var(--brand-navy); background-color: rgba(8, 35, 66, 0.06); padding: 6px 12px; border-radius: 100px; letter-spacing: -0.2px; }
.card-arrow { width: 36px; height: 36px; border-radius: 50%; background-color: var(--bg-apple-grey); color: var(--text-secondary); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; transition: all 0.3s ease; }
.bento-card:hover .card-arrow { background-color: var(--brand-navy); color: #ffffff; transform: translate(2px, -2px); }
.card-title { font-size: 28px; font-weight: 800; letter-spacing: -0.8px; color: var(--text-primary); margin-bottom: 10px; }
.card-desc { font-size: 16px; font-weight: 500; color: var(--text-secondary); line-height: 1.6; word-break: keep-all; }
.card-media { width: 100%; height: 240px; overflow: hidden; background-color: #eef2f6; position: relative; }
.span-4 .card-media { height: 190px; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.bento-card:hover .card-media img { transform: scale(1.05); }
.bento-card.navy-theme { background: linear-gradient(145deg, var(--brand-navy) 0%, #0f3866 100%); color: #ffffff; border: none; }
.bento-card.navy-theme .card-category { background-color: rgba(255, 255, 255, 0.14); color: #ffffff; }
.bento-card.navy-theme .card-title { color: #ffffff; }
.bento-card.navy-theme .card-desc { color: rgba(255, 255, 255, 0.78); }
.bento-card.navy-theme .card-arrow { background-color: rgba(255, 255, 255, 0.12); color: #ffffff; }
.bento-card.navy-theme:hover .card-arrow { background-color: #ffffff; color: var(--brand-navy); }
.navy-graphic { height: 190px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.navy-graphic::before { content: "YEJIBUGO"; font-size: 40px; font-weight: 900; letter-spacing: 2px; color: rgba(255, 255, 255, 0.07); user-select: none; }
.mockup-pill { position: absolute; padding: 14px 26px; border-radius: 100px; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.2); font-size: 15px; font-weight: 700; color: #ffffff; letter-spacing: -0.3px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2); transition: transform 0.5s ease; }
.bento-card.navy-theme:hover .mockup-pill { transform: scale(1.06) translateY(-4px); }

/* =========================================
   6. Section 3: About (기업철학 & CEO 인사말)
   ========================================= */
#about { padding: 150px 0; background-color: var(--bg-white); }
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.about-sticky { position: sticky; top: 120px; }
.stat-row { display: flex; gap: 36px; margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--border-color); }
.stat-item strong { display: block; font-size: 36px; font-weight: 800; color: var(--brand-navy); letter-spacing: -1px; line-height: 1.2; }
.stat-item span { font-size: 14px; font-weight: 600; color: var(--text-tertiary); }
.about-story { display: flex; flex-direction: column; gap: 32px; }
.about-img-box { width: 100%; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 16px 40px rgba(8, 35, 66, 0.08); }
.about-img-box img { width: 100%; height: auto; display: block; }
.ceo-quote { font-size: 26px; font-weight: 800; line-height: 1.4; letter-spacing: -0.8px; color: var(--text-primary); word-break: keep-all; }
.ceo-text { font-size: 18px; font-weight: 400; color: var(--text-secondary); line-height: 1.8; word-break: keep-all; }
.ceo-sign { margin-top: 12px; padding-top: 24px; border-top: 1px solid var(--border-color); display: flex; align-items: baseline; gap: 12px; }
.ceo-sign span { font-size: 15px; font-weight: 600; color: var(--text-tertiary); }
.ceo-sign strong { font-size: 22px; font-weight: 800; color: var(--brand-navy); letter-spacing: 2px; }

/* =========================================
   7. Section 4: History (연혁 타임라인)
   ========================================= */
#history { padding: 140px 0; background-color: var(--bg-apple-grey); }
.timeline-wrapper { position: relative; max-width: 860px; margin: 0 auto; padding-left: 36px; border-left: 2px solid rgba(8, 35, 66, 0.12); }
.timeline-group { position: relative; margin-bottom: 52px; }
.timeline-group:last-child { margin-bottom: 0; }
.timeline-dot { position: absolute; left: -45px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background-color: var(--bg-white); border: 4px solid var(--brand-navy); box-shadow: 0 0 0 4px rgba(8, 35, 66, 0.08); transition: all 0.3s ease; }
.timeline-group:hover .timeline-dot { transform: scale(1.25); background-color: var(--brand-navy); }
.timeline-year { font-size: 28px; font-weight: 800; color: var(--brand-navy); letter-spacing: -0.8px; line-height: 1.1; margin-bottom: 18px; }
.timeline-card { background-color: var(--bg-white); border-radius: 20px; padding: 24px 30px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02); border: 1px solid rgba(0, 0, 0, 0.04); display: flex; flex-direction: column; gap: 14px; }
.timeline-item { display: flex; align-items: baseline; gap: 20px; }
.timeline-month { font-size: 14px; font-weight: 700; color: var(--brand-accent); width: 42px; flex-shrink: 0; }
.timeline-desc { font-size: 17px; font-weight: 600; color: var(--text-primary); word-break: keep-all; }

/* =========================================
   8. Section 5: PR & News (홍보센터 & CI)
   ========================================= */
#news { padding: 140px 0; background-color: var(--bg-white); }
.pr-highlight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 56px; }
.pr-card { background-color: var(--bg-apple-grey); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--border-color); transition: var(--transition-card); }
.pr-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(8, 35, 66, 0.08); background-color: var(--bg-white); }
.pr-card-body { padding: 28px; }
.pr-tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--brand-accent); margin-bottom: 10px; }
.pr-card-title { font-size: 20px; font-weight: 800; color: var(--text-primary); line-height: 1.4; letter-spacing: -0.5px; margin-bottom: 10px; word-break: keep-all; }
.pr-card-desc { font-size: 15px; color: var(--text-secondary); line-height: 1.55; word-break: keep-all; }
.pr-card-img { width: 100%; height: 180px; background-color: #ffffff; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.pr-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.pr-card.ci-card .pr-card-img { padding: 20px; }
.pr-card.ci-card .pr-card-img img { object-fit: contain; }
.pr-card:hover .pr-card-img img { transform: scale(1.04); }
.news-board { border-top: 2px solid var(--brand-navy); }
.news-row { display: flex; align-items: center; padding: 20px 16px; border-bottom: 1px solid var(--border-color); transition: background-color 0.2s ease, padding-left 0.2s ease; }
.news-row:hover { background-color: var(--bg-light); padding-left: 24px; }
.news-num { width: 44px; font-size: 14px; font-weight: 700; color: var(--brand-accent); flex-shrink: 0; }
.news-title { flex-grow: 1; font-size: 17px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 20px; }
.news-date { font-size: 14px; font-weight: 500; color: var(--text-tertiary); flex-shrink: 0; }
.news-arrow-icon { margin-left: 16px; color: var(--text-tertiary); transition: transform 0.2s ease, color 0.2s ease; flex-shrink: 0; }
.news-row:hover .news-arrow-icon { transform: translateX(4px); color: var(--brand-navy); }

/* =========================================
   9. Section 6: Careers (인재채용)
   ========================================= */
#careers { padding: 140px 0; background-color: var(--bg-apple-grey); }
.careers-visual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 32px; }
.career-box { background-color: var(--bg-white); border-radius: 28px; padding: 36px; border: 1px solid var(--border-color); display: flex; flex-direction: column; justify-content: space-between; }
.career-box h3 { font-size: 24px; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.6px; }
.career-box p { font-size: 16px; color: var(--text-secondary); margin-bottom: 28px; word-break: keep-all; }
.career-box img { width: 100%; height: auto; border-radius: 16px; display: block; }
.career-info-card { background: linear-gradient(135deg, var(--brand-navy) 0%, #10335c 100%); border-radius: 28px; padding: 44px 48px; color: #ffffff; display: grid; grid-template-columns: 7fr 5fr; gap: 40px; align-items: center; }
.info-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; }
.info-item span { display: block; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.6); margin-bottom: 4px; }
.info-item strong { font-size: 16px; font-weight: 600; color: #ffffff; word-break: keep-all; }
.career-cta { text-align: right; border-left: 1px solid rgba(255, 255, 255, 0.12); padding-left: 40px; }
.career-cta p { font-size: 15px; color: rgba(255, 255, 255, 0.8); margin-bottom: 16px; }
.btn-white { display: inline-flex; align-items: center; gap: 8px; background-color: #ffffff; color: var(--brand-navy); font-size: 16px; font-weight: 700; padding: 15px 28px; border-radius: 14px; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2); }

/* =========================================
   10. Section 7: Contact & Footer (위치 및 푸터)
   ========================================= */
#contact { padding: 120px 0 100px; background-color: var(--bg-white); }
.contact-card { background-color: var(--bg-light); border-radius: 28px; overflow: hidden; border: 1px solid var(--border-color); display: grid; grid-template-columns: 5fr 7fr; align-items: center; }
.contact-info { padding: 48px; }
.contact-info h3 { font-size: 32px; font-weight: 800; letter-spacing: -1px; margin-bottom: 24px; }
.location-detail { display: flex; flex-direction: column; gap: 16px; }
.loc-row { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; font-weight: 500; color: var(--text-secondary); }
.loc-badge { background-color: var(--brand-navy); color: #ffffff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 6px; flex-shrink: 0; margin-top: 2px; }
.contact-map { width: 100%; height: 100%; min-height: 320px; background-color: #eef2f6; }
.contact-map img { width: 100%; height: 100%; object-fit: cover; display: block; }
footer { background-color: #f8fafc; border-top: 1px solid var(--border-color); padding: 56px 0 64px; color: var(--text-tertiary); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.footer-logo { height: 15px; opacity: 0.7; margin-bottom: 16px; }
.footer-info p { line-height: 1.8; color: var(--text-secondary); }
.footer-copy { margin-top: 12px; font-size: 13px; color: var(--text-tertiary); }

/* =========================================
   11. 반응형 미디어 쿼리 (태블릿 & 모바일)
   ========================================= */
@media (max-width: 960px) {
    .span-6, .span-4 { grid-column: span 12; }
    .card-media, .span-4 .card-media { height: 220px; }
    .about-grid, .pr-highlight-grid, .careers-visual-grid, .career-info-card, .contact-card { grid-template-columns: 1fr; }
    .about-sticky { position: static; }
    .career-cta { text-align: left; border-left: none; border-top: 1px solid rgba(255, 255, 255, 0.12); padding-left: 0; padding-top: 28px; }
}

@media (max-width: 768px) {
    header { height: 60px; }
    .logo img { height: 15px; }
    .nav-menu { display: none; }
    #hero { padding-top: 110px; padding-bottom: 70px; }
    .hero-title { font-size: 36px; letter-spacing: -1.2px; margin-bottom: 16px; }
    .hero-subtitle { font-size: 17px; margin-bottom: 40px; padding: 0 8px; }
    .hero-visual-frame { border-radius: var(--radius-lg); aspect-ratio: 4 / 3.5; }
    #business, #about, #history, #news, #careers, #contact { padding: 90px 0; }
    .section-header { margin-bottom: 40px; }
    .section-title { font-size: 30px; }
    .card-content { padding: 28px 24px 20px; }
    .card-title { font-size: 24px; }
    .stat-row { gap: 20px; flex-wrap: wrap; }
    .ceo-quote { font-size: 22px; }
    .ceo-text { font-size: 16px; }
    .timeline-wrapper { padding-left: 24px; }
    .timeline-dot { left: -33px; }
    .timeline-card { padding: 20px; }
    .timeline-desc { font-size: 15px; }
    .info-list { grid-template-columns: 1fr; }
    .career-info-card, .career-box, .contact-info { padding: 28px 24px; }
    .news-title { font-size: 15px; }
}