/* ========================================
   크루와 공통 스타일
   ======================================== */

/* CSS Variables - 앱 테마와 통일 */
:root {
    --primary: #222222;
    --primary-dark: #000000;
    --secondary: #555555;
    --text-primary: #222222;
    --text-secondary: #666666;
    --text-muted: #999999;
    --bg-light: #F5F5F5;
    --bg-white: #FFFFFF;
    --bg-dark: #222222;
    --border-color: #EEEEEE;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   Navigation
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 16px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

/* ========================================
   Sections
   ======================================== */
section {
    padding: 100px 0;
}

/* Light/Dark section backgrounds */
.section-light {
    background: var(--bg-light);
}

/* ========================================
   Contact Section
   ======================================== */
.contact-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    text-align: center;
}

.contact-section h2 {
    color: white;
    margin-bottom: 24px;
}

.contact-section p {
    font-size: 1.15rem;
    margin-bottom: 12px;
    opacity: 0.95;
}

.contact-section a {
    color: white;
    text-decoration: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    transition: var(--transition);
    font-weight: 500;
}

.contact-section a:hover {
    border-bottom-color: white;
}

/* ========================================
   Document Content (terms, privacy, etc.)
   ======================================== */
.document-content {
    background: var(--bg-white);
    margin: -40px auto 60px;
    padding: 60px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 900px;
    position: relative;
    z-index: 10;
}

.document-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 48px;
    margin-bottom: 20px;
    color: var(--primary);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}

.document-content h2:first-of-type {
    margin-top: 0;
}

.document-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.document-content p {
    margin-bottom: 16px;
    line-height: 1.9;
    color: var(--text-secondary);
}

.document-content ul,
.document-content ol {
    margin-left: 24px;
    margin-bottom: 24px;
}

.document-content li {
    margin-bottom: 12px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.document-content strong {
    color: var(--primary);
    font-weight: 600;
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, rgba(34, 34, 34, 0.06) 0%, rgba(85, 85, 85, 0.06) 100%);
    border-left: 4px solid var(--primary);
    padding: 24px;
    margin: 32px 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.info-box p {
    margin-bottom: 8px;
}

.info-box p:last-child {
    margin-bottom: 0;
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.back-link:hover {
    gap: 12px;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    section {
        padding: 60px 0;
    }

    .document-content {
        margin: -20px 16px 40px;
        padding: 32px 24px;
    }

    .document-content h2 {
        font-size: 1.4rem;
    }
}

/* ========================================
   회사소개 (오뚜기 레이아웃 차용 · 모노톤)
   ======================================== */

/* 가운데 정렬 페이지 타이틀 블록 */
.page-title-block { text-align: center; padding: 64px 24px 32px; }
.page-title { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text-primary); }
.page-subtitle { margin-top: 10px; color: var(--text-secondary); font-size: 0.95rem; }

/* pill 서브탭바 */
.subtab-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 8px 24px 40px; }
.subtab { padding: 8px 18px; border-radius: 999px; font-size: 0.9rem; font-weight: 600;
    border: 1px solid var(--border-color); color: var(--text-muted); background: var(--bg-white);
    text-decoration: none; cursor: pointer; transition: all 0.2s ease; }
.subtab:hover { border-color: var(--text-muted); color: var(--text-secondary); }
.subtab--active, .subtab--active:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* fixed 헤더 가림 방지(앵커 이동 시) */
#intro, #features, #about { scroll-margin-top: 88px; }

/* 큰 헤드라인 */
.lead-headline { max-width: 1200px; margin: 0 auto; padding: 24px;
    font-size: clamp(1.5rem, 4vw, 2.4rem); font-weight: 800; line-height: 1.35; letter-spacing: -0.02em; }

/* 히어로 이미지 */
.hero-figure { max-width: 1200px; margin: 8px auto 0; padding: 0 24px; text-align: center; }
.hero-figure img { width: 100%; max-width: 360px; border-radius: var(--radius-lg); display: inline-block; }

/* 풀폭 띠 배너 (다크 모노톤) */
.band { width: 100%; margin: 48px 0; }
.band--dark { background: var(--bg-dark); color: #fff; text-align: center;
    padding: 28px 24px; font-size: 1.1rem; font-weight: 700; }

/* 회사개요 테이블 */
.overview-table { max-width: 760px; margin: 0 auto; border-top: 2px solid var(--primary); }
.overview-table dl { display: grid; grid-template-columns: 160px 1fr; border-bottom: 1px solid var(--border-color); }
.overview-table dt { padding: 16px 20px; font-weight: 700; background: var(--bg-light); color: var(--text-primary); }
.overview-table dd { padding: 16px 20px; color: var(--text-secondary); }

/* 기능 카드 그리드 */
.feature-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
    max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.feature-card { background: var(--bg-light); border-radius: var(--radius-lg); padding: 28px; text-align: center; }
.feature-card img { width: 60%; max-width: 180px; margin: 0 auto 16px; display: block; border-radius: var(--radius-md); }
.feature-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-secondary); font-size: 0.92rem; }

/* 컬럼형 푸터 */
.site-footer { background: var(--bg-dark); color: #fff; margin-top: 64px; padding: 48px 24px 32px; }
.footer-cols { max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 48px; }
.footer-col h4 { font-size: 0.95rem; margin-bottom: 12px; }
.footer-col a { display: block; color: rgba(255,255,255,0.7); font-size: 0.88rem; padding: 4px 0; text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-bottom { max-width: 1100px; margin: 32px auto 0; padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.6); font-size: 0.82rem; }

/* 반응형 */
@media (max-width: 768px) {
    .feature-cards { grid-template-columns: 1fr; }
    .overview-table dl { grid-template-columns: 110px 1fr; }
    .footer-cols { gap: 28px; }
}

/* ========================================
   스크롤 인터랙션 (오뚜기 AOS 재현 · 의존성 0)
   ======================================== */

/* 헤더: 스크롤 시 그림자 */
.nav { transition: box-shadow 0.3s ease, background 0.3s ease; }
.nav--scrolled { box-shadow: var(--shadow-md); }

/* 등장 애니메이션 기본 */
.reveal, .reveal--zoom, .reveal--down {
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}
.reveal        { transform: translateY(28px); }   /* fade-up */
.reveal--zoom  { transform: scale(0.92); }         /* zoom-in */
.reveal--down  { transform: translateY(-28px); }   /* slide-down */

.reveal.is-visible,
.reveal--zoom.is-visible,
.reveal--down.is-visible {
    opacity: 1;
    transform: none;
}

/* 기능 카드 호버 리프트 */
.feature-card {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* 모션 비선호 사용자: 모든 모션 제거 */
@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal--zoom, .reveal--down {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .nav, .feature-card { transition: none !important; }
    .feature-card:hover { transform: none; }
    .feature-row:hover .row-media img { transform: none; }
}

/* ========================================
   콘텐츠 블록 (오뚜기 img_box+txt_box / 기업이념 재현 · 모노톤)
   ======================================== */

/* 이미지 + 텍스트 교차 블록 */
.feature-row {
    max-width: 1000px; margin: 0 auto; padding: 56px 24px;
    display: flex; align-items: center; gap: 56px;
}
.feature-row + .feature-row { border-top: 1px solid var(--border-color); }
.feature-row--reverse { flex-direction: row-reverse; }
.feature-row .row-media { flex: 0 0 38%; display: flex; justify-content: center; }
.feature-row .row-media img {
    width: 100%; max-width: 240px; border-radius: var(--radius-lg);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.feature-row:hover .row-media img { transform: translateY(-6px); }
.feature-row .row-text { flex: 1; }
.feature-row .row-tag {
    display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em;
    color: var(--text-muted); margin-bottom: 12px;
}
.feature-row .row-text h3 {
    font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.4;
    margin-bottom: 14px;
}
.feature-row .row-text p { color: var(--text-secondary); font-size: 1rem; }

/* 강조 문구 띠 (오뚜기 "인류에 필요한 기업" 띠 대응) */
.statement {
    background: var(--bg-light); text-align: center; padding: 80px 24px; margin-top: 24px;
}
.statement strong {
    display: block; max-width: 760px; margin: 0 auto;
    font-size: clamp(1.4rem, 3.5vw, 2.1rem); font-weight: 800;
    letter-spacing: -0.02em; line-height: 1.5; color: var(--text-primary);
}
.statement strong em { font-style: normal; -webkit-text-decoration: underline 2px; text-decoration: underline 2px; text-underline-offset: 6px; }

/* 크루와 가치 (오뚜기 기업이념/사훈 대응) */
.values { max-width: 1000px; margin: 0 auto; padding: 80px 24px; }
.values-title { text-align: center; font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.values-sub { text-align: center; color: var(--text-secondary); margin-bottom: 48px; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-item {
    text-align: center; padding: 36px 24px;
    border: 1px solid var(--border-color); border-radius: var(--radius-lg); background: var(--bg-white);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}
.value-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.value-item .value-hash { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.value-item p { color: var(--text-secondary); font-size: 0.92rem; }

/* 콘텐츠 블록 반응형 */
@media (max-width: 768px) {
    .feature-row, .feature-row--reverse { flex-direction: column; gap: 28px; padding: 40px 24px; text-align: center; }
    .feature-row .row-media { flex: none; }
    .feature-row .row-media img { max-width: 200px; }
    .values-grid { grid-template-columns: 1fr; }
    .statement { padding: 56px 24px; }
}
