:root {
    --hg-bg: #f0f7ff;
    --hg-white: #ffffff;
    --hg-border: #bae6fd;
    --hg-border-muted: #e2e8f0;
    --hg-navy: #0f172a;
    --hg-slate: #334155;
    --hg-muted: #64748b;
    --hg-aqua: #0284c7;
    --hg-aqua-dark: #0369a1;
    --hg-aqua-soft: #e0f2fe;
    --hg-emerald: #059669;
    --hg-amber: #d97706;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; background: var(--hg-bg); color: var(--hg-navy); line-height: 1.62; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

.hg-container { max-width: 1180px; margin: 0 auto; padding: 0 18px; }

/* Navbar */
.hg-navbar { background: var(--hg-navy); color: #ffffff; position: sticky; top: 0; z-index: 100; border-bottom: 3px solid var(--hg-aqua); }
.hg-nav-inner { display: flex; justify-content: space-between; align-items: center; height: 66px; gap: 16px; }
.hg-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.hg-arch-badge { width: 38px; height: 38px; border-radius: 10px; background: var(--hg-aqua); color: #ffffff; font-weight: 900; font-size: 0.95rem; display: flex; align-items: center; justify-content: center; letter-spacing: 0.5px; }
.hg-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.hg-brand-text strong { font-size: 1.12rem; font-weight: 900; color: #ffffff; letter-spacing: 0.3px; }
.hg-brand-text span { font-family: monospace; font-size: 0.64rem; color: #7dd3fc; letter-spacing: 1px; }

.hg-silo-menu { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hg-menu-link { font-size: 0.84rem; font-weight: 800; color: #cbd5e1; padding: 7px 13px; border-radius: 8px; transition: all 0.2s; }
.hg-menu-link:hover { background: rgba(255,255,255,0.1); color: #ffffff; }
.hg-menu-link.active { background: var(--hg-aqua); color: #ffffff; }

/* ==============================================================
   🌟 기존과 완전히 다른 상단 H1: 1:1:1 3단 비대칭 갤러리 데크 🌟
   ============================================================== */
.hg-triptych-hero { padding: 28px 0 24px 0; }
.hg-triptych-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }

/* 1단: H1 타이틀 & 즉시 검색 */
.hg-deck-main { background: var(--hg-white); border: 2px solid var(--hg-navy); border-radius: 16px; padding: 24px 26px; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.hg-kicker-pill { display: inline-block; background: var(--hg-aqua-soft); color: var(--hg-aqua-dark); font-size: 0.74rem; font-weight: 900; padding: 3px 10px; border-radius: 6px; margin-bottom: 10px; width: fit-content; }
.hg-deck-main h1 { font-size: 1.62rem; font-weight: 900; line-height: 1.32; letter-spacing: -0.6px; color: var(--hg-navy); margin-bottom: 10px; }
.hg-deck-main p { font-size: 0.85rem; color: var(--hg-slate); line-height: 1.58; margin-bottom: 16px; }
.hg-search-input-wrap { display: flex; align-items: center; background: var(--hg-bg); border: 1.5px solid var(--hg-border); border-radius: 10px; padding: 7px 12px; }
.hg-search-input-wrap input { border: none; background: transparent; width: 100%; font-size: 0.84rem; font-weight: 700; color: var(--hg-navy); outline: none; }

/* 2단: 2026 3대 실측 검증 요약 보드 */
.hg-deck-verdict { background: var(--hg-navy); color: #ffffff; border-radius: 16px; padding: 22px 24px; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.hg-dv-head { font-family: monospace; font-size: 0.76rem; font-weight: 900; color: #38bdf8; letter-spacing: 1px; border-bottom: 1px solid #1e293b; padding-bottom: 8px; margin-bottom: 10px; }
.hg-dv-list { display: flex; flex-direction: column; gap: 10px; font-size: 0.82rem; color: #e2e8f0; }
.hg-dv-list li { display: flex; flex-direction: column; gap: 2px; }
.hg-dv-list strong { color: #7dd3fc; font-size: 0.86rem; }
.hg-dv-foot { margin-top: 12px; padding-top: 10px; border-top: 1px dashed #334155; font-size: 0.74rem; color: #94a3b8; display: flex; justify-content: space-between; }

/* 3단: 원클릭 익스프레스 패스 (1위·2위 직통) */
.hg-deck-express { background: linear-gradient(145deg, #0369a1 0%, #0f172a 100%); color: #ffffff; border-radius: 16px; padding: 22px 24px; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.hg-de-head { font-size: 0.88rem; font-weight: 900; color: #fde047; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.hg-express-cards { display: flex; flex-direction: column; gap: 10px; }
.hg-exp-item { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); border-radius: 10px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; transition: all 0.2s; }
.hg-exp-item:hover { background: rgba(255,255,255,0.2); border-color: #fde047; transform: translateX(3px); }
.hg-exp-logo { width: 88px; height: 32px; background: #ffffff; border-radius: 6px; padding: 2px 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hg-exp-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.hg-exp-txt { flex: 1; min-width: 0; }
.hg-exp-txt strong { display: block; font-size: 0.86rem; color: #ffffff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hg-exp-txt span { display: block; font-size: 0.73rem; color: #bae6fd; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hg-exp-go { background: #fde047; color: var(--hg-navy); font-size: 0.74rem; font-weight: 900; padding: 6px 10px; border-radius: 6px; flex-shrink: 0; }

/* ==============================================================
   🌟 1~17위 5열 클라우드 벤치마크 매트릭스 (Spec-Comparison Row) 🌟
   ============================================================== */
.hg-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin: 12px 0 16px 0; padding-bottom: 12px; border-bottom: 2px solid var(--hg-navy); }
.hg-toolbar h2 { font-size: 1.38rem; font-weight: 900; letter-spacing: -0.5px; }
.hg-filter-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.hg-filter-pill { background: var(--hg-white); border: 1px solid var(--hg-border); color: var(--hg-slate); font-size: 0.8rem; font-weight: 800; padding: 7px 14px; border-radius: 20px; cursor: pointer; transition: all 0.2s; }
.hg-filter-pill:hover, .hg-filter-pill.active { background: var(--hg-aqua-dark); border-color: var(--hg-aqua-dark); color: #ffffff; }

/* 테이블 컬럼 헤더 바 */
.hg-matrix-head-bar { display: grid; grid-template-columns: 200px minmax(0, 1.5fr) 170px 190px 140px; gap: 14px; background: var(--hg-navy); color: #cbd5e1; font-size: 0.76rem; font-weight: 900; padding: 11px 20px; border-radius: 10px 10px 0 0; }

.hg-matrix-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 52px; }
.hg-spec-row { background: var(--hg-white); border: 1px solid var(--hg-border-muted); border-radius: 10px; padding: 14px 20px; display: grid; grid-template-columns: 200px minmax(0, 1.5fr) 170px 190px 140px; align-items: center; gap: 14px; transition: all 0.2s; min-width: 0; }
.hg-spec-row:hover { border-color: var(--hg-aqua); box-shadow: 0 8px 20px rgba(2, 132, 199, 0.09); transform: translateY(-2px); }
.hg-spec-row.hg-row-prime { border: 2px solid var(--hg-aqua); background: linear-gradient(90deg, #f0f9ff 0%, #ffffff 30%); }

/* Col 1: 순위 + 화이트 공식 로고 배너 프레임 */
.hg-col-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hg-rank-tag { width: 38px; height: 38px; border-radius: 8px; background: var(--hg-navy); color: #ffffff; font-family: monospace; font-size: 0.92rem; font-weight: 900; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hg-row-prime .hg-rank-tag { background: var(--hg-aqua); }

/* 🌟 필수: 규격화된 화이트 공식 로고 배너 프레임 🌟 */
.hg-logo-frame { width: 138px; height: 48px; background: #ffffff; border: 1px solid #cbd5e1; border-radius: 8px; padding: 5px 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hg-logo-frame img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Col 2: 사이트명 + 설명 + 태그 */
.hg-col-desc { min-width: 0; }
.hg-site-title-line { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.hg-site-name { font-size: 1.12rem; font-weight: 900; color: var(--hg-navy); }
.hg-site-star { font-size: 0.78rem; font-weight: 900; color: var(--hg-amber); }
.hg-site-summary { font-size: 0.83rem; color: var(--hg-slate); line-height: 1.48; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hg-site-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.hg-site-tags span { font-size: 0.7rem; font-weight: 700; background: #f1f5f9; color: var(--hg-muted); padding: 2px 7px; border-radius: 4px; }

/* Col 3: 실측 속도 & 코덱 스펙 */
.hg-col-tech { background: #f8fafc; border: 1px solid var(--hg-border-muted); border-radius: 8px; padding: 8px 12px; font-size: 0.76rem; min-width: 0; }
.hg-tech-speed { font-family: monospace; font-size: 0.84rem; font-weight: 900; color: var(--hg-emerald); display: block; margin-bottom: 2px; }
.hg-tech-sub { color: var(--hg-slate); font-weight: 700; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Col 4: 신규 혜택 바우처 */
.hg-col-perk { min-width: 0; }
.hg-perk-badge { display: inline-block; font-size: 0.68rem; font-weight: 900; color: var(--hg-aqua-dark); background: var(--hg-aqua-soft); padding: 2px 7px; border-radius: 4px; margin-bottom: 4px; }
.hg-perk-title { font-size: 0.88rem; font-weight: 900; color: var(--hg-navy); display: block; line-height: 1.35; }

/* Col 5: CTA 버튼 */
.hg-col-cta { text-align: right; }
.hg-btn-go { background: var(--hg-navy); color: #ffffff; font-size: 0.83rem; font-weight: 900; padding: 11px 14px; border-radius: 8px; display: block; text-align: center; transition: background 0.2s; }
.hg-spec-row:hover .hg-btn-go,
.hg-row-prime .hg-btn-go { background: var(--hg-aqua); }

/* ==============================================================
   🌟 3,500자급 아코디언 폴딩 & 2단 백서 원고 데크 🌟
   ============================================================== */
.hg-whitepaper-section { background: var(--hg-white); border: 1.5px solid var(--hg-border); border-radius: 18px; padding: 36px; margin-bottom: 52px; }
.hg-wp-head { border-bottom: 2px solid var(--hg-navy); padding-bottom: 16px; margin-bottom: 24px; }
.hg-wp-head span { font-family: monospace; font-size: 0.76rem; font-weight: 900; color: var(--hg-aqua-dark); letter-spacing: 1px; }
.hg-wp-head h2 { font-size: 1.55rem; font-weight: 900; margin-top: 4px; line-height: 1.35; }

.hg-wp-lead { font-size: 0.94rem; color: var(--hg-slate); line-height: 1.85; margin-bottom: 24px; }

.hg-details-stack { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.hg-details-item { border: 1px solid var(--hg-border); border-radius: 12px; background: #f8fafc; overflow: hidden; }
.hg-details-item summary { padding: 16px 20px; font-size: 1.06rem; font-weight: 900; color: var(--hg-navy); cursor: pointer; background: var(--hg-white); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.hg-details-item summary::after { content: "▼ 열기"; font-size: 0.76rem; color: var(--hg-aqua-dark); font-weight: 800; }
.hg-details-item[open] summary { border-bottom: 1px solid var(--hg-border); background: var(--hg-aqua-soft); }
.hg-details-item[open] summary::after { content: "▲ 접기"; }
.hg-details-body { padding: 20px 22px; font-size: 0.92rem; color: var(--hg-slate); line-height: 1.82; background: var(--hg-white); }
.hg-details-body p { margin-bottom: 12px; }
.hg-details-body p:last-child { margin-bottom: 0; }

.hg-table-wrap { overflow-x: auto; border: 1px solid var(--hg-border-muted); border-radius: 10px; }
.hg-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; min-width: 600px; }
.hg-table th { background: var(--hg-navy); color: #ffffff; padding: 12px 15px; text-align: left; }
.hg-table td { padding: 11px 15px; border-bottom: 1px solid var(--hg-border-muted); color: var(--hg-slate); }
.hg-table tr:nth-child(even) td { background: #f8fafc; }

/* 4대 서브 키워드 사일로 아카이브 (가로 스트립 보드) */
.hg-silo-showcase { display: flex; flex-direction: column; gap: 20px; margin-bottom: 56px; }
.hg-silo-band { background: var(--hg-white); border: 1px solid var(--hg-border-muted); border-left: 5px solid var(--hg-aqua); border-radius: 12px; padding: 20px 24px; }
.hg-sb-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--hg-border-muted); gap: 10px; }
.hg-sb-top h3 { font-size: 1.08rem; font-weight: 900; color: var(--hg-navy); }
.hg-sb-top a { font-size: 0.8rem; font-weight: 900; color: var(--hg-aqua-dark); flex-shrink: 0; }
.hg-sb-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hg-sb-card { background: #f8fafc; border: 1px solid var(--hg-border-muted); border-radius: 8px; padding: 12px 14px; min-width: 0; overflow: hidden; transition: all 0.2s; }
.hg-sb-card:hover { border-color: var(--hg-aqua); background: var(--hg-white); }
.hg-sb-card strong { display: block; font-size: 0.86rem; font-weight: 800; color: var(--hg-navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.hg-sb-card p { font-size: 0.78rem; color: var(--hg-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 6px; }
.hg-sb-card span { font-family: monospace; font-size: 0.7rem; color: var(--hg-aqua-dark); font-weight: 700; }

/* Footer */
.hg-footer { background: var(--hg-navy); color: #94a3b8; padding: 44px 0 34px 0; border-top: 4px solid var(--hg-aqua); }
.hg-footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; padding-bottom: 24px; border-bottom: 1px solid #1e293b; margin-bottom: 18px; }
.hg-fg-title { font-family: monospace; font-size: 0.98rem; font-weight: 900; color: #ffffff; margin-bottom: 8px; }
.hg-fg-info p { font-size: 0.8rem; line-height: 1.7; color: #94a3b8; }
.hg-fg-sub { font-family: monospace; font-size: 0.75rem; font-weight: 900; color: #38bdf8; margin-bottom: 10px; }
.hg-fg-links { display: flex; flex-wrap: wrap; gap: 8px; }
.hg-fg-links a { font-size: 0.78rem; font-weight: 800; background: #1e293b; color: #e2e8f0; padding: 5px 11px; border-radius: 6px; }
.hg-fg-links a:hover { background: var(--hg-aqua); color: #ffffff; }
.hg-footer-copy { display: flex; justify-content: space-between; font-size: 0.76rem; color: #64748b; font-family: monospace; }
.hg-footer-copy a { color: #38bdf8; }

/* Responsive */
@media (max-width: 1040px) {
    .hg-triptych-grid { grid-template-columns: 1fr; }
    .hg-matrix-head-bar { display: none; }
    .hg-spec-row { grid-template-columns: 190px minmax(0, 1fr); }
    .hg-col-tech, .hg-col-perk, .hg-col-cta { grid-column: 1 / -1; }
    .hg-sb-cards { grid-template-columns: 1fr; }
    .hg-footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .hg-nav-inner { flex-direction: column; height: auto; padding: 12px 18px; align-items: flex-start; }
    .hg-silo-menu { width: 100%; overflow-x: auto; white-space: nowrap; flex-wrap: nowrap; padding-bottom: 4px; }
    .hg-spec-row { grid-template-columns: 1fr; padding: 16px; }
    .hg-whitepaper-section { padding: 22px 16px; }
    .hg-footer-copy { flex-direction: column; gap: 6px; }
}