@charset "UTF-8";

/* ════════════════════════════════════════
   HERO — 배경 및 오버라이드 (base는 components.css)
════════════════════════════════════════ */
.hero {
    max-height: 1230px;
    background: #000;
    overflow: hidden;
}

/* ─── Hero 비디오 ─── */
.hero-video {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 0;
}

/* ─── 어두운 오버레이 (텍스트 가독성) ─── */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

/* hero-content가 영상 위에 오도록 */
.hero-content { z-index: 2; }

/* ─── Hero 텍스트 fade-up reveal ─── */
.hero-content .label,
.hero-content h1,
.hero-content .sub,
.hero-content .hero-btns {
    opacity: 0;
    transform: translateY(32px);
    animation: heroFadeUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-content .label     { animation-delay: 0.2s; }
.hero-content h1         { animation-delay: 0.5s; font-family: 'Nanum Square', sans-serif; font-weight: 700; letter-spacing: 0.05em; }
.hero-content .sub       { animation-delay: 0.8s; }
.hero-content .hero-btns { animation-delay: 1.1s; }

@keyframes heroFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Hero 버튼 오버라이드 (Exo 2 + 아웃라인) ─── */
.hero-btn {
    font-family: 'Nanum Square', sans-serif;
    font-weight: 600;
    letter-spacing: 0.08em;
    font-size: clamp(14px, 1.3vw, 20px);
    padding: 12px 36px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.75);
    border-radius: 4px;
    color: white;
    text-transform: uppercase;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.hero-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: white;
    color: #1D0C51;
}

/* ─── 스크롤 진입 애니메이션 ─── */
.fade-up {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── 카드 3D 호버 - perspective 컨텍스트 ─── */
.card, .news-card {
    transform-style: preserve-3d;
    will-change: transform;
}


/* 메인 페이지는 hero-content가 정중앙 */
.hero-content { top: 50%; max-width: 900px; }

/* 메인 h1은 더 작은 clamp + capitalize */
.hero-content h1 {
    font-size: clamp(28px, 4vw, 48px);
    text-transform: capitalize;
    margin-bottom: 12px;
}

/* ─── SECTIONS ─── */
.main-wrap {
    display: flex;
    flex-direction: column;
    gap: clamp(48px, 6vw, 96px);
    padding: clamp(40px, 5vw, 96px) 0;
}

.section-inner {
    width: min(1550px, 92%);
    margin: 0 auto;
}

.section-title {
    font-size: clamp(24px, 2.5vw, 36px);
    font-weight: 400;
    color: black;
    margin-bottom: 20px;
}

/* ─── CARDS (사업분야) ─── */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.card {
    background: white;
    border-radius: var(--radius-card);
    outline: 1px rgba(0,0,0,.1) solid;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card img {
    width: 100%;
    height: clamp(160px, 20vw, 280px);
    object-fit: cover;
}

.card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
}

.card-title {
    font-size: clamp(18px, 1.6vw, 24px);
    font-weight: 600;
    color: black;
    margin-bottom: 8px;
}
.card-desc {
    font-size: clamp(14px, 1.1vw, 18px);
    font-weight: 500;
    color: rgba(0,0,0,.55);
    line-height: 1.55;
}
.card-link {
    font-size: clamp(14px, 1.1vw, 18px);
    font-weight: 500;
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* ─── 개발/연구 캐러셀 (좌우 대형 분할) ─── */
.btn-purple {
    display: inline-block;
    padding: 11px 28px;
    background: transparent;
    border: 2px solid var(--color-primary);
    border-radius: 6px;
    color: var(--color-primary);
    font-size: clamp(13px, 1vw, 16px);
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    text-decoration: none;
    align-self: flex-start;
    transition: background 0.25s ease, color 0.25s ease;
}
.btn-purple:hover {
    background: var(--color-primary);
    color: white;
}

.dev-carousel {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 48px rgba(0,0,0,0.08);
}

.dev-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.45, 0, 0.25, 1);
    will-change: transform;
}

.dev-slide {
    min-width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.7fr;
    min-height: clamp(380px, 42vw, 560px);
}

.dev-text {
    padding: clamp(36px, 4vw, 64px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    background: #fff;
}

.dev-title { font-size: clamp(28px, 3vw, 44px); font-weight: 700; color: #111; line-height: 1.2; }
.dev-desc  { font-size: clamp(14px, 1.1vw, 18px); font-weight: 400; color: rgba(0,0,0,0.55); line-height: 1.8; }

.dev-img { overflow: hidden; }
.dev-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
}
.dev-carousel:hover .dev-img img { transform: scale(1.04); }

/* 화살표 — 우측 하단 */
.dev-carousel-btn {
    position: absolute;
    bottom: 24px;
    top: auto;
    transform: none;
    width: 48px; height: 48px;
    background: white;
    border: 1.5px solid rgba(0,0,0,0.12);
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: background 0.22s ease, border-color 0.22s ease;
}
.dev-carousel-btn:hover { background: var(--color-primary); border-color: var(--color-primary); }
.dev-carousel-btn:hover svg { stroke: white; }
.dev-carousel-btn svg { width: 20px; height: 20px; stroke: #333; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.dev-carousel-btn.prev { right: 80px; left: auto; }
.dev-carousel-btn.next { right: 24px; left: auto; }

/* 도트 — 바 형태, 좌측 하단 */
.dev-dots {
    position: absolute;
    bottom: 36px;
    left: clamp(36px, 4vw, 64px);
    transform: none;
    display: flex;
    gap: 8px;
    z-index: 10;
}
.dev-dot {
    width: 28px; height: 3px;
    border-radius: 2px;
    background: rgba(0,0,0,0.15);
    cursor: pointer;
    transition: background 0.25s, width 0.3s;
    border: none;
}
.dev-dot.active { background: var(--color-primary); width: 52px; }

/* ─── 보도자료 ─── */
.press-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.news-card {
    background: white;
    border-radius: var(--radius-card);
    outline: 1px rgba(0,0,0,.1) solid;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.news-card img {
    width: 100%;
    height: clamp(160px, 22vw, 390px);
    object-fit: cover;
}

.news-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.news-title {
    font-size: clamp(16px, 1.4vw, 24px);
    font-weight: 600;
    color: black;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-desc {
    font-size: clamp(13px, 1vw, 18px);
    font-weight: 500;
    color: rgba(0,0,0,.55);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-link { font-size: clamp(13px, 1vw, 18px); font-weight: 500; color: black; cursor: pointer; }

/* ─── 인재채용 배너 ─── */
.recruit-banner {
    margin-bottom: clamp(48px, 6vw, 96px);
    background: #F6F8FF;
    padding: clamp(40px, 4vw, 70px) clamp(24px, 10vw, 192px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.recruit-text .big   { font-size: clamp(28px, 3.5vw, 48px); font-weight: 500; }
.recruit-text .small { font-size: clamp(14px, 1.2vw, 20px); font-weight: 500; margin-top: 8px; }

.recruit-btn {
    padding: 10px 28px;
    background: white;
    border-radius: 50px;
    outline: 2px solid var(--color-primary);
    color: var(--color-primary);
    font-size: clamp(16px, 1.4vw, 24px);
    font-family: 'Nanum Square', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: color 0.35s ease;
    z-index: 0;
}
.recruit-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-primary);
    border-radius: 50px;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: -1;
}
.recruit-btn:hover::before { transform: translateY(0); }
.recruit-btn:hover { color: white; }

/* ─── 더 보기 (sitemap) ─── */
.sitemap {
    width: min(1550px, 92%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 32px;
    padding: 50px 0;
}

.sitemap-col { display: flex; flex-direction: column; gap: 12px; }
.sitemap-col h3 { font-size: clamp(16px, 1.4vw, 24px); font-weight: 600; color: #1A1A1A; }
.sitemap-col p  { font-size: clamp(13px, 1vw, 16px); font-weight: 500; color: rgba(0,0,0,.55); line-height: 1.8; }
.sitemap-col p a { color: black; text-decoration: none; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid  { grid-template-columns: repeat(2, 1fr); }
    .sitemap    { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .cards-grid { grid-template-columns: 1fr; }
    .news-grid  { grid-template-columns: 1fr; }
    .sitemap    { grid-template-columns: repeat(2, 1fr); }
    .dev-slide  { grid-template-columns: 1fr; }
    .dev-img    { height: 240px; }
    .dev-img img { height: 100%; }
    .recruit-banner { flex-direction: column; align-items: flex-start; gap: 20px; }
}
@media (max-width: 480px) {
    .sitemap { grid-template-columns: 1fr 1fr; gap: 20px; }
}
