/* =====================================================
   서비스 페이지 전용 스타일 - 스크롤 SPA 효과
   ===================================================== */

/* ── 공통 섹션 페이드/슬라이드 진입 ─────────── */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity .7s ease, transform .7s ease;
}
.reveal.from-left  { transform: translateX(-60px); }
.reveal.from-right { transform: translateX(60px); }
.reveal.visible {
    opacity: 1;
    transform: translate(0, 0);
}
.reveal.delay-1 { transition-delay: .1s; }
.reveal.delay-2 { transition-delay: .2s; }
.reveal.delay-3 { transition-delay: .3s; }
.reveal.delay-4 { transition-delay: .4s; }
.reveal.delay-5 { transition-delay: .5s; }
.reveal.delay-6 { transition-delay: .6s; }

/* ── 서비스 히어로 ─────────────────────────── */
.svc-hero {
    min-height: 70vh;
    background: linear-gradient(135deg, #0a1628 0%, #1e4fa8 55%, #00b4d8 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 80px 24px 60px;
    position: relative;
    overflow: hidden;
}
.svc-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.svc-hero-tag {
    display: inline-block;
    background: rgba(0,180,216,.3);
    border: 1px solid rgba(0,180,216,.6);
    color: #7de8ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 20px;
}
.svc-hero h1 {
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    position: relative;
}
.svc-hero h1 span { color: #00b4d8; }
.svc-hero p {
    font-size: 17px;
    opacity: .85;
    max-width: 620px;
    line-height: 1.8;
    position: relative;
}
.svc-hero .scroll-hint {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    opacity: .6;
    letter-spacing: 1px;
}
.scroll-hint .arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    animation: bounce 1.4s infinite;
}
@keyframes bounce {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(6px); }
}

/* ── 핵심사업 네비 탭 ────────────────────────── */
.core-nav {
    position: sticky;
    top: 64px;
    z-index: 50;
    background: #fff;
    border-bottom: 2px solid var(--border);
    display: flex;
    justify-content: center;
    gap: 0;
    overflow-x: auto;
}
.core-nav a {
    padding: 16px 28px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: color .2s, border-color .2s;
    text-decoration: none;
}
.core-nav a:hover, .core-nav a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* ── 서비스 블록 공통 ────────────────────────── */
.svc-block {
    padding: 100px 24px;
}
.svc-block-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.svc-block.alt { background: var(--white); }

/* ── 블록 헤더 ──────────────────────────────── */
.block-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 16px;
}
.block-title {
    font-size: clamp(22px, 3.5vw, 36px);
    font-weight: 800;
    color: #0a1628;
    margin-bottom: 12px;
    line-height: 1.3;
}
.block-title span { color: var(--primary); }
.block-desc {
    font-size: 15px;
    color: var(--text-light);
    max-width: 700px;
    line-height: 1.8;
    margin-bottom: 48px;
}

/* ── 2단 레이아웃 ─────────────────────────────── */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }
@media (max-width: 900px) {
    .two-col, .two-col.reverse { grid-template-columns: 1fr; direction: ltr; }
}

/* ── 기능 목록 ──────────────────────────────── */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 32px;
}
.feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.feature-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.feature-text h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #0a1628;
}
.feature-text p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ── 시각화 박스 (이미지 대체) ──────────────── */
.viz-box {
    background: linear-gradient(135deg, #0a1628, #1e4fa8);
    border-radius: 16px;
    padding: 32px;
    color: #fff;
    position: relative;
    overflow: hidden;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.viz-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M20 20c0-5.5-4.5-10-10-10S0 14.5 0 20s4.5 10 10 10 10-4.5 10-10zm10 0c0-5.5-4.5-10-10-10s-10 4.5-10 10 4.5 10 10 10 10-4.5 10-10z'/%3E%3C/g%3E%3C/svg%3E");
}
.viz-box .viz-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #7de8ff;
    text-transform: uppercase;
    margin-bottom: 20px;
    position: relative;
}
.viz-pipeline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    position: relative;
}
.viz-node {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    min-width: 80px;
}
.viz-node.highlight {
    background: rgba(0,180,216,.3);
    border-color: #00b4d8;
    color: #7de8ff;
}
.viz-arrow {
    color: rgba(255,255,255,.4);
    font-size: 18px;
}
.viz-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
    position: relative;
}
.viz-badge {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 11px;
    color: rgba(255,255,255,.8);
}
.viz-badge.cyan { background: rgba(0,180,216,.2); border-color: rgba(0,180,216,.5); color: #7de8ff; }
.viz-screen {
    background: rgba(0,0,0,.3);
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
    position: relative;
    font-size: 12px;
    color: rgba(255,255,255,.7);
}
.viz-screen .dot {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    margin-right: 4px;
}
.dot-red   { background: #ff5f57; }
.dot-yellow{ background: #febc2e; }
.dot-green { background: #28c840; }
.viz-log { font-family: monospace; font-size: 11px; color: #7de8ff; margin-top: 8px; line-height: 1.8; }

/* ── 스텝 카드 ──────────────────────────────── */
.step-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.step-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 24px;
    position: relative;
    overflow: hidden;
    transition: box-shadow .3s, transform .3s;
}
.step-card:hover { box-shadow: 0 12px 32px rgba(30,79,168,.12); transform: translateY(-4px); }
.step-card::before {
    content: attr(data-num);
    position: absolute;
    top: -10px;
    right: 16px;
    font-size: 72px;
    font-weight: 900;
    color: rgba(30,79,168,.06);
    line-height: 1;
}
.step-card .step-icon { font-size: 32px; margin-bottom: 14px; }
.step-card h4 { font-size: 15px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.step-card p  { font-size: 13px; color: var(--text-light); line-height: 1.7; }

/* ── 실적 배지 ──────────────────────────────── */
.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.result-card {
    background: var(--white);
    border-left: 4px solid var(--primary);
    border-radius: 0 12px 12px 0;
    padding: 24px 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    transition: box-shadow .3s;
}
.result-card:hover { box-shadow: 0 6px 24px rgba(30,79,168,.12); }
.result-card .year {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
    margin-bottom: 6px;
}
.result-card h4 { font-size: 14px; font-weight: 700; color: #0a1628; margin-bottom: 6px; }
.result-card p  { font-size: 13px; color: var(--text-light); }

/* ── CTA ──────────────────────────────────── */
.svc-cta {
    background: linear-gradient(135deg, #0a1628, #1e4fa8);
    padding: 80px 24px;
    text-align: center;
    color: #fff;
}
.svc-cta h2 { font-size: 32px; font-weight: 800; margin-bottom: 16px; }
.svc-cta p  { font-size: 16px; opacity: .85; margin-bottom: 36px; }
