/* ============================================================
   service.css — Service 페이지 전용 스타일
   폰트 사이즈는 hive.css --t-* 변수 참조
   ============================================================ */

/* ===== 공통 배경/변수 오버라이드 ===== */
:root {
    --bg:  #080808;
    --bg2: #111111;
    --bg3: #1a1a1a;
    --line: rgba(255,255,255,0.07);
}

/* ===== 데이터 시각화 섹션 ===== */
.sv-data {
    padding: 130px 0;
    background: var(--bg);
    border-top: 1px solid var(--line);
}

.sv-data-header {
    margin-bottom: 80px;
}

.sv-data-heading {
    font-size: var(--t-heading);
    font-weight: 700;
    color: var(--heading);
    letter-spacing: -0.025em;
    line-height: 1.3;
    margin-top: 12px;
    margin-bottom: 14px;
    word-break: keep-all;
}

.sv-data-sub {
    font-size: var(--t-caption);
    color: var(--text3);
    letter-spacing: 0.04em;
}

.sv-data-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
}

/* Q&A 카드 */
.sv-dq-card {
    background: transparent;
    display: flex;
    flex-direction: column;
    min-height: 420px;
    transition: background 0.3s var(--ease-smooth);
}

.sv-dq-card:hover {
    background: rgba(255,255,255,0.02);
}

/* Q 섹션 (상단 전체 너비) */
.sv-dq-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 36px 44px 32px;
    border-bottom: 1px solid var(--line);
}

.sv-dq-qmark {
    font-family: 'Jost', sans-serif;
    font-size: var(--t-caption);
    font-weight: 500;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.3);
    padding-top: 2px;
    flex-shrink: 0;
}

.sv-dq-qtext {
    font-size: var(--t-body);
    color: var(--text2);
    line-height: 1.7;
    word-break: keep-all;
}

/* 하단 콘텐츠 */
.sv-dq-bottom {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 36px 44px;
    flex: 1;
}

.sv-dq-bottom-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
}

/* 답변 영역 */
.sv-dq-answer {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.sv-dq-atext {
    font-size: var(--t-body);
    color: var(--text2);
    line-height: 1.8;
    word-break: keep-all;
}

.sv-pct-hl {
    display: block;
    font-family: 'Jost', sans-serif;
    font-size: var(--t-heading);
    font-weight: 300;
    color: var(--heading);
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 8px;
}

/* 범례 */
.sv-dq-legend {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sv-legend-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sv-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sv-dot-main { background: var(--point); }
.sv-dot-mid  { background: rgba(255,255,255,0.35); }
.sv-dot-dim  { background: rgba(255,255,255,0.12); }

.sv-legend-txt {
    font-size: var(--t-caption);
    color: var(--text2);
    flex: 1;
}

.sv-legend-val {
    font-family: 'Jost', sans-serif;
    font-size: var(--t-caption);
    color: var(--heading);
    letter-spacing: 0.04em;
}

/* SVG 파이 차트 */
.sv-dq-chart {
    position: relative;
    flex-shrink: 0;
    width: 156px;
    height: 156px;
}

.sv-pie-svg {
    width: 156px;
    height: 156px;
    display: block;
}

.sv-pie-arc {
    stroke-dasharray: 439.82;
    stroke-dashoffset: 439.82;
    transition: stroke-dashoffset 1.8s cubic-bezier(0.05, 0.7, 0.1, 1.0);
}

.sv-pie-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}

.sv-pie-num {
    font-family: 'Jost', sans-serif;
    font-size: var(--t-sub);
    font-weight: 300;
    color: var(--heading);
    display: block;
    line-height: 1;
    margin-bottom: 4px;
}

.sv-pie-lbl {
    font-size: var(--t-label);
    color: var(--text3);
    letter-spacing: 0.08em;
    white-space: nowrap;
}

/* 바 차트 */
.sv-dq-bars {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sv-dq-bar-row {
    display: grid;
    grid-template-columns: 90px 1fr 40px;
    align-items: center;
    gap: 14px;
}

.sv-dq-bar-lbl {
    font-size: var(--t-caption);
    color: var(--text2);
    word-break: keep-all;
}

.sv-dq-bar-track {
    height: 38px;
    background: rgba(255,255,255,0.04);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.sv-dq-bar-fill {
    position: absolute;
    inset: 0;
    background: rgba(250,250,250,0.75);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sv-dq-bar-fill.visible {
    transform: scaleX(var(--bar-scale, 1));
}

.sv-dq-bar-row:first-child .sv-dq-bar-fill {
    background: var(--point);
}

.sv-dq-bar-val {
    font-family: 'Jost', sans-serif;
    font-size: var(--t-caption);
    color: var(--text2);
    text-align: right;
}

/* ===== Lighthouse 품질 점수 섹션 ===== */
.sv-lighthouse {
    padding: 130px 0;
    background: var(--bg);
    border-top: 1px solid var(--line);
}

.sv-lh-header {
    margin-bottom: 52px;
}

.sv-lh-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    font-family: 'Jost', sans-serif;
    font-size: var(--t-caption);
    color: rgba(255,255,255,0.28);
    letter-spacing: 0.08em;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 100px;
    padding: 5px 14px;
}

.sv-lh-device-block {
    margin-bottom: 64px;
}

.sv-lh-device-block:last-child {
    margin-bottom: 0;
}

.sv-lh-device-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Jost', sans-serif;
    font-size: var(--t-caption);
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 14px;
    margin-bottom: 32px;
    width: 100%;
}

.sv-lh-heading {
    font-size: var(--t-heading);
    font-weight: 700;
    color: var(--heading);
    letter-spacing: -0.025em;
    line-height: 1.3;
    margin-top: 12px;
    margin-bottom: 14px;
    word-break: keep-all;
}

.sv-lh-desc {
    font-size: var(--t-body);
    color: var(--text2);
    max-width: 540px;
    line-height: 1.9;
    word-break: keep-all;
}

.sv-lh-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line);
    border-radius: 2px 2px 0 0;
    overflow: hidden;
    margin-bottom: 2px;
}

.sv-lh-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 52px 32px 44px;
    border-right: 1px solid var(--line);
    background: transparent;
    transition: background 0.3s var(--ease-smooth);
}

.sv-lh-item:last-child {
    border-right: none;
}

.sv-lh-item:hover {
    background: rgba(255,255,255,0.02);
}

.sv-lh-ring {
    position: relative;
    width: 110px;
    height: 110px;
    margin-bottom: 20px;
}

.sv-lh-ring svg {
    width: 110px;
    height: 110px;
    display: block;
}

.sv-lh-arc {
    stroke-dasharray: 251.33;
    stroke-dashoffset: 251.33;
    transition: stroke-dashoffset 1.6s cubic-bezier(0.05, 0.7, 0.1, 1.0);
}

.sv-lh-num {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Jost', sans-serif;
    font-size: var(--t-sub);
    font-weight: 300;
    color: var(--heading);
    line-height: 1;
}

.sv-lh-label {
    font-size: var(--t-caption);
    color: var(--text2);
    letter-spacing: 0.04em;
    text-align: center;
}

/* Core Web Vitals 행 */
.sv-cwv-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border: 1px solid var(--line);
    border-top: none;
    border-radius: 0 0 2px 2px;
    overflow: hidden;
}

.sv-cwv-item {
    padding: 28px 32px;
    border-right: 1px solid var(--line);
    background: transparent;
    transition: background 0.3s var(--ease-smooth);
}

.sv-cwv-item:last-child {
    border-right: none;
}

.sv-cwv-item:hover {
    background: rgba(255,255,255,0.02);
}

.sv-cwv-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-right: 7px;
    flex-shrink: 0;
}

.sv-cwv-dot-green  { background: #0CCE6B; }
.sv-cwv-dot-orange { background: #D97757; }

.sv-cwv-name {
    display: flex;
    align-items: center;
    font-size: var(--t-label);
    color: var(--text3);
    letter-spacing: 0.03em;
    margin-bottom: 10px;
    word-break: keep-all;
}

.sv-cwv-val {
    font-family: 'Jost', sans-serif;
    font-size: var(--t-sub);
    font-weight: 300;
    line-height: 1;
}

.sv-cwv-val-green  { color: #0CCE6B; }
.sv-cwv-val-orange { color: #D97757; }

.sv-cwv-unit {
    font-family: 'Jost', sans-serif;
    font-size: var(--t-caption);
    margin-left: 4px;
    opacity: 0.65;
}

/* ===== 비교표 섹션 ===== */
.sv-compare {
    padding: 130px 0;
    background: var(--bg2);
    border-top: 1px solid var(--line);
}

.sv-compare-header {
    margin-bottom: 72px;
}

.sv-compare-heading {
    font-size: var(--t-heading);
    font-weight: 700;
    color: var(--heading);
    letter-spacing: -0.025em;
    line-height: 1.3;
    margin-top: 12px;
    word-break: keep-all;
}

.sv-compare-table {
    border: 1px solid var(--line);
    border-radius: 2px;
    overflow: hidden;
}

.sv-ct-head,
.sv-ct-row {
    display: grid;
    grid-template-columns: 1fr 180px 200px;
}

.sv-ct-head {
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid var(--line);
}

.sv-ct-col {
    padding: 18px 28px;
    font-size: var(--t-caption);
    display: flex;
    align-items: center;
}

.sv-ct-head .sv-ct-col {
    font-family: 'Jost', sans-serif;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text2);
    font-size: var(--t-label);
}

.sv-ct-row {
    border-bottom: 1px solid var(--line);
    transition: background 0.22s var(--ease-smooth);
}

.sv-ct-row:last-child {
    border-bottom: none;
}

.sv-ct-row:hover {
    background: rgba(255,255,255,0.02);
}

.sv-ct-feature {
    font-size: var(--t-caption);
    color: var(--text2);
    word-break: keep-all;
}

.sv-ct-general {
    border-left: 1px solid var(--line);
    justify-content: center;
}

.sv-ct-hive {
    border-left: 1px solid var(--line);
    background: transparent;
    justify-content: center;
}

.sv-ct-yes {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--heading);
    font-size: var(--t-caption);
    font-weight: 500;
}

.sv-ct-yes i {
    font-size: 14px;
    color: var(--point);
}

.sv-ct-no {
    font-size: var(--t-caption);
    color: var(--text3);
}

/* ===== 서비스 항목 섹션 ===== */
.sv-services {
    padding: 130px 0;
    background: var(--bg);
    border-top: 1px solid var(--line);
}

.sv-services-header {
    margin-bottom: 72px;
}

.sv-services-heading {
    font-size: var(--t-heading);
    font-weight: 700;
    color: var(--heading);
    letter-spacing: -0.025em;
    line-height: 1.3;
    margin-top: 12px;
}

.sv-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.sv-svc-card {
    background: transparent;
    padding: 52px 44px;
    position: relative;
    overflow: hidden;
    transition: background 0.3s var(--ease-smooth);
}

.sv-svc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--point);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.42s var(--ease-smooth);
}

.sv-svc-card:hover {
    background: rgba(255,255,255,0.02);
}

.sv-svc-card:hover::before {
    transform: scaleX(1);
}

.sv-svc-num {
    display: block;
    font-family: 'Jost', sans-serif;
    font-size: var(--t-label);
    font-weight: 400;
    letter-spacing: 0.22em;
    color: rgba(255,255,255,0.2);
    margin-bottom: 28px;
}

.sv-svc-card i {
    font-size: 32px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 24px;
    display: block;
}

.sv-svc-title {
    font-size: var(--t-sub);
    font-weight: 600;
    color: var(--heading);
    margin-bottom: 16px;
    word-break: keep-all;
}

.sv-svc-desc {
    font-size: var(--t-body);
    color: var(--text2);
    line-height: 2;
    margin-bottom: 28px;
    word-break: keep-all;
}

.sv-svc-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.sv-svc-list li {
    font-size: var(--t-caption);
    color: var(--text2);
    padding-left: 14px;
    position: relative;
    word-break: keep-all;
}

.sv-svc-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 1px;
    background: var(--text3);
}

/* ===== 숫자 임팩트 섹션 ===== */
.sv-stat-row {
    padding: 0;
    background: var(--bg2);
    border-top: 1px solid var(--line);
}

.sv-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.sv-stat-row .stat-item {
    background: transparent;
    padding: 80px 44px;
    position: relative;
    transition: background 0.3s var(--ease-smooth);
    border-right: 1px solid var(--line);
}

.sv-stat-row .stat-item:last-child {
    border-right: none;
}

.sv-stat-row .stat-item:hover {
    background: rgba(255,255,255,0.02);
}

.ab-stat-num {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 14px;
}

.ab-stat-num .stat-val {
    font-family: 'Jost', sans-serif;
    font-size: clamp(56px, 7vw, 96px);
    font-weight: 300;
    color: var(--heading);
    letter-spacing: -0.03em;
    line-height: 1;
}

.ab-stat-unit {
    font-family: 'Jost', sans-serif;
    font-size: clamp(28px, 3.5vw, 48px);
    font-weight: 300;
    color: var(--point);
    line-height: 1;
}

.ab-stat-label {
    font-size: var(--t-caption);
    color: var(--text2);
    letter-spacing: 0.06em;
}

/* ===== prefers-reduced-motion ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== 모바일 반응형 (max-width: 900px) ===== */
@media (max-width: 900px) {

    .sv-data {
        padding: 80px 0;
    }

    .sv-data-grid {
        grid-template-columns: 1fr;
    }

    .sv-dq-top {
        padding: 28px 28px 24px;
    }

    .sv-dq-bottom {
        padding: 28px 28px;
        flex-direction: column;
        align-items: stretch;
    }

    .sv-dq-chart {
        align-self: center;
        margin-top: 8px;
    }

    .sv-dq-bar-row {
        grid-template-columns: 80px 1fr 36px;
        gap: 10px;
    }

    .sv-lighthouse {
        padding: 80px 0;
    }

    .sv-lh-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sv-lh-item:nth-child(2) {
        border-right: none;
    }

    .sv-lh-item:nth-child(3) {
        border-top: 1px solid var(--line);
    }

    .sv-lh-item:nth-child(4) {
        border-top: 1px solid var(--line);
        border-right: none;
    }

    .sv-cwv-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sv-cwv-item:nth-child(even) {
        border-right: none;
    }

    .sv-cwv-item:nth-child(n+3) {
        border-top: 1px solid var(--line);
    }

    .sv-cwv-item:last-child {
        grid-column: 1 / -1;
        border-right: none;
    }

    .sv-compare {
        padding: 80px 0;
    }

    .sv-ct-head,
    .sv-ct-row {
        grid-template-columns: 1fr 110px 130px;
    }

    .sv-ct-col {
        padding: 14px 14px;
    }

    .sv-services {
        padding: 80px 0;
    }

    .sv-services-grid {
        grid-template-columns: 1fr;
    }

    .sv-svc-card {
        padding: 44px 32px;
    }

    .sv-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sv-stat-row .stat-item {
        padding: 60px 28px;
        border-bottom: 1px solid var(--line);
    }

    .sv-stat-row .stat-item:nth-child(odd) {
        border-right: 1px solid var(--line);
    }

    .sv-stat-row .stat-item:nth-child(even) {
        border-right: none;
    }

    .sv-stat-row .stat-item:nth-last-child(-n+2) {
        border-bottom: none;
    }
}

/* ===== 요금표 섹션 ===== */
.sv-price {
    padding: 130px 0;
    background: var(--bg2);
    border-top: 1px solid var(--line);
}

.sv-price-header {
    margin-bottom: 20px;
}

.sv-price-heading {
    font-size: var(--t-heading);
    font-weight: 700;
    color: var(--heading);
    letter-spacing: -0.025em;
    line-height: 1.3;
    margin-top: 12px;
    margin-bottom: 8px;
}

.sv-price-sub {
    font-size: var(--t-caption);
    color: var(--text3);
    letter-spacing: 0.01em;
}

.sv-price-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 48px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.sv-price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--t-body);
    color: var(--text);
    min-width: 680px;
}

.sv-price-table thead tr {
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.sv-price-table thead th {
    padding: 16px 20px;
    text-align: left;
    font-size: var(--t-caption);
    font-weight: 500;
    color: var(--text2);
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.sv-price-table tbody td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
    line-height: 1.5;
}

.sv-price-table tbody tr:last-child td {
    border-bottom: none;
}

.sv-pt-group-start td {
    border-top: 1px solid rgba(255,255,255,0.1);
}

.sv-pt-group-start:first-child td {
    border-top: none;
}

.sv-pt-cat {
    font-weight: 600;
    color: var(--heading);
    white-space: nowrap;
    vertical-align: middle !important;
    border-right: 1px solid var(--line);
    background: rgba(255,255,255,0.02);
}

.sv-pt-price {
    font-weight: 600;
    color: var(--point);
    white-space: nowrap;
}

.sv-pt-note {
    font-size: var(--t-caption);
    color: var(--text3);
}

.sv-pt-vat {
    display: inline-block;
    font-size: 10px;
    font-weight: 500;
    color: var(--point);
    border: 1px solid var(--point);
    border-radius: 3px;
    padding: 1px 5px;
    margin-left: 5px;
    opacity: 0.8;
    vertical-align: middle;
}

.sv-price-footnote {
    margin-top: 28px;
    font-size: var(--t-caption);
    color: var(--text3);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.sv-price-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: var(--t-caption);
    font-weight: 500;
    color: var(--point);
    text-decoration: none;
    transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.sv-price-cta-link:hover {
    opacity: 0.75;
}

@media (max-width: 900px) {
    .sv-price {
        padding: 80px 0;
    }

    .sv-price-table thead th.sv-pt-note,
    .sv-price-table tbody td.sv-pt-note {
        display: none;
    }

    .sv-price-table thead th,
    .sv-price-table tbody td {
        padding: 12px 14px;
    }

    .sv-price-footnote {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ===== 빌더 플랜 섹션 ===== */
.sv-builder {
    padding: 120px 0;
    background: var(--bg2);
}
.sv-builder-header {
    text-align: center;
    margin-bottom: 60px;
}
.sv-sec-label {
    display: block;
    font-size: var(--t-caption);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--point);
    margin-bottom: 16px;
}
.sv-sec-heading {
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 300;
    line-height: 1.25;
    letter-spacing: -0.03em;
    color: var(--heading);
    margin-bottom: 20px;
}
.sv-sec-desc {
    font-size: var(--t-lead);
    color: var(--text2);
    line-height: 1.8;
}
.sv-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.sv-cms-visual {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
}
.sv-cms-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--bg2);
}
.sv-cms-body {
    padding: 24px;
}
.sv-cms-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}
.sv-cms-row:last-child { border-bottom: none; }
.sv-cms-row-label {
    font-size: var(--t-caption);
    color: var(--text2);
}
.sv-cms-row-action {
    font-size: var(--t-caption);
    color: var(--point);
    background: color-mix(in srgb, var(--point) 10%, transparent);
    padding: 4px 12px;
    border-radius: 100px;
    border: 1px solid color-mix(in srgb, var(--point) 20%, transparent);
}
@media (max-width: 900px) {
    .sv-builder { padding: 80px 0; }
    .sv-plan-grid { grid-template-columns: 1fr; }
}
