/* ============================================
   OpenHash - 정부 표준 디자인 시스템
   기준: 한국 정부 웹사이트 가이드 + Material Design 3
   ============================================ */

:root {
    /* Primary Colors - 정부 표준 */
    --primary: #1a3a6e;
    --primary-dark: #142d54;
    --primary-light: #2a5a9e;
    --accent: #d4a017;
    --accent-light: #f5e6c8;
    
    /* Neutral Colors */
    --gray-900: #212529;
    --gray-700: #495057;
    --gray-600: #6c757d;
    --gray-500: #868e96;
    --gray-400: #adb5bd;
    --gray-300: #dee2e6;
    --gray-200: #e9ecef;
    --gray-100: #f1f3f5;
    --gray-50: #f8f9fa;
    --white: #ffffff;
    
    /* Semantic Colors */
    --success: #0d6832;
    --success-light: #d3f9d8;
    --warning: #e67700;
    --warning-light: #fff3cd;
    --error: #c92a2a;
    --error-light: #ffe3e3;
    
    /* Typography */
    --font-primary: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Consolas', monospace;
    
    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    
    /* Layout */
    --max-width: 1200px;
    --nav-height: 56px;
    --radius: 4px;
    --radius-lg: 6px;
    
    /* Transitions */
    --transition: 0.15s ease;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-primary);
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--gray-50);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; }

/* Container */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-6); }

/* ============================================
   Navigation - 네이비 + 골드 라인
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--primary);
    border-bottom: 3px solid var(--accent);
    z-index: 1000;
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-6);
}
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
}
.logo:hover { color: var(--white); }
.logo-icon { font-size: 20px; }
.nav-menu {
    display: flex;
    gap: var(--space-1);
    list-style: none;
}
.nav-menu a {
    display: block;
    padding: var(--space-2) var(--space-4);
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    border-radius: var(--radius);
    transition: background var(--transition);
}
.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(255,255,255,0.15);
    color: var(--white);
}

/* ============================================
   Hero Section - 단색 배경 + 수평 통계
   ============================================ */
.hero {
    padding-top: calc(var(--nav-height) + var(--space-16));
    padding-bottom: var(--space-12);
    background: var(--primary);
    color: var(--white);
}
.hero-content { max-width: 1100px; }
.hero-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--space-6);
}
.hero-desc {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: var(--space-8);
    line-height: 1.8;
}

/* Hero Stats - 수평 테이블 형태 */
.hero-stats {
    display: flex;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: var(--space-8);
}
.stat-card {
    flex: 1;
    padding: var(--space-5) var(--space-4);
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.15);
}
.stat-card:last-child { border-right: none; }
.stat-value {
    display: inline;
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    display: inline;
}
.stat-unit {
    display: inline;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin-left: 2px;
}
.stat-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    margin-top: var(--space-1);
}

/* ============================================
   Section - 공통 스타일
   ============================================ */
.section {
    padding: var(--space-16) 0;
    background: var(--white);
}
.section.alt { background: var(--gray-50); }
.section-header {
    text-align: center;
    margin-bottom: var(--space-12);
}
.section-badge {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: var(--gray-100);
    color: var(--gray-600);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 2px;
    margin-bottom: var(--space-4);
    text-transform: uppercase;
}
.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-4);
}
.section-title .highlight { color: var(--primary); }
.section-desc {
    font-size: 15px;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================
   Card - 미니멀 카드
   ============================================ */
.card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    transition: border-color var(--transition);
}
.card:hover { border-color: var(--gray-300); }

/* ============================================
   Problem Section - 문제점 카드
   ============================================ */
.problem-grid {
    display: grid;
    
    gap: var(--space-5);
}
.problem-card {
    padding: var(--space-6);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
}
.problem-card h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: var(--space-3);
    color: var(--gray-900);
}
.problem-card .value {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-700);
    margin-bottom: var(--space-3);
}
.problem-card p {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.6;
}

/* ============================================
   Hierarchy Section - 계층 구조
   ============================================ */
.hierarchy-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: start;
}
.hierarchy-tower {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

/* Layer Card - 통일된 네이비 보더 */
.layer-card {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
}
.layer-card:hover,
.layer-card.active {
    background: var(--gray-50);
    border-color: var(--gray-300);
    border-left-color: var(--accent);
}
.layer-num {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 700;
}
.layer-info { flex: 1; }
.layer-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
}
.layer-code {
    font-size: 12px;
    color: var(--gray-500);
    font-family: var(--font-mono);
}
.layer-arrow {
    color: var(--gray-400);
    font-size: 14px;
}

/* Hierarchy Detail Panel */
.hierarchy-detail {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
}
.detail-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--gray-200);
}
.detail-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 14px;
    color: var(--white);
    background: var(--primary);
}
.detail-header h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
}
.detail-section {
    margin-bottom: var(--space-5);
}
.detail-section:last-child { margin-bottom: 0; }
.detail-section h5 {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: var(--space-2);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.detail-section p {
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.7;
}
.detail-section ul {
    list-style: none;
    padding: 0;
}
.detail-section li {
    font-size: 13px;
    color: var(--gray-700);
    padding: var(--space-2) 0;
    padding-left: var(--space-5);
    position: relative;
}
.detail-section li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 600;
}

/* Probability Bars */
.prob-bars {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}
.prob-item {
    display: grid;
    grid-template-columns: 70px 1fr 36px;
    align-items: center;
    gap: var(--space-3);
}
.prob-label {
    font-size: 12px;
    color: var(--gray-600);
}
.prob-bar {
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    overflow: hidden;
}
.prob-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 0.4s ease;
}
.prob-fill.high { background: var(--accent); }
.prob-value {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-700);
    text-align: right;
}

/* ============================================
   Simulation Section
   ============================================ */
.sim-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-6);
    align-items: start;
    margin-bottom: var(--space-8);
}
.sim-panel {
    padding: var(--space-6);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
}
.sim-panel h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-900);
}
.sim-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    padding-top: var(--space-8);
}
.sim-arrow {
    font-size: 24px;
    color: var(--primary);
}
.sim-result {
    padding: var(--space-5);
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    text-align: center;
    font-size: 14px;
    color: var(--gray-600);
}
.sim-result.success {
    background: var(--success-light);
    border-color: var(--success);
    color: var(--success);
}
.sim-result.error {
    background: var(--error-light);
    border-color: var(--error);
    color: var(--error);
}

/* Form Elements */
.form-group { margin-bottom: var(--space-4); }
.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: var(--space-2);
}
.form-select, .form-input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    background: var(--white);
    transition: border-color var(--transition);
}
.form-select:focus, .form-input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    font-size: 14px;
    font-weight: 500;
    border: 1px solid transparent;
    border-radius: var(--radius);
    transition: all var(--transition);
}
.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* ============================================
   Verification Pipeline - 5단계 검증
   ============================================ */
.pipeline {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    max-width: 600px;
    margin: 0 auto;
}
.step {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-5);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
}
.step-num {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}
.step-content h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: var(--space-1);
    color: var(--gray-900);
}
.step-content p {
    font-size: 13px;
    color: var(--gray-600);
}
.step.active {
    border-color: var(--primary);
    background: var(--gray-50);
}
.step.completed .step-num { background: var(--success); }

/* ============================================
   Performance Section
   ============================================ */
.perf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-5);
}
.perf-card {
    padding: var(--space-6);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
}
.perf-card h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: var(--space-4);
    color: var(--gray-900);
}
.perf-card p {
    font-size: 13px;
    color: var(--gray-600);
    margin-bottom: var(--space-3);
}
.perf-bar {
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    margin-bottom: var(--space-2);
    overflow: hidden;
}
.perf-bar-fill {
    height: 100%;
    border-radius: 3px;
}
.perf-bar-fill.bitcoin { background: var(--gray-500); }
.perf-bar-fill.openhash { background: var(--primary); }

/* ============================================
   SSI Section
   ============================================ */
.ssi-flow {
    display: flex;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-10);
    flex-wrap: wrap;
}
.ssi-step {
    flex: 1;
    min-width: 180px;
    padding: var(--space-5);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
}
.ssi-step::after {
    content: '→';
    position: absolute;
    right: -16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 16px;
}
.ssi-step:last-child::after { display: none; }
.ssi-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto var(--space-3);
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.ssi-step h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: var(--space-1);
    color: var(--gray-900);
}
.ssi-step p {
    font-size: 12px;
    color: var(--gray-600);
}
.ssi-elements {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-3);
}
.ssi-element {
    padding: var(--space-4);
    background: var(--gray-100);
    border-radius: var(--radius);
    text-align: center;
    font-size: 13px;
    color: var(--gray-700);
}
.ssi-element span {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-1);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: var(--space-10) 0;
    background: var(--primary);
    color: rgba(255,255,255,0.8);
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer .logo { color: var(--white); }
.footer-links {
    display: flex;
    gap: var(--space-6);
}
.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
}
.footer-links a:hover { color: var(--white); }
.footer p {
    text-align: center;
    margin-top: var(--space-6);
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .nav-menu { display: none; }
    .hero-stats { flex-direction: column; }
    .stat-card { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); }
    .stat-card:last-child { border-bottom: none; }
    .hierarchy-container { grid-template-columns: 1fr; }
    .sim-container { grid-template-columns: 1fr; }
    .sim-center { padding: var(--space-4) 0; }
    .sim-arrow { transform: rotate(90deg); }
    .ssi-flow { flex-direction: column; }
    .ssi-step::after { display: none; }
    .ssi-elements { grid-template-columns: repeat(2, 1fr); }
    .footer-content { flex-direction: column; gap: var(--space-6); text-align: center; }
}

/* ========================================
   Problem Cards - Material Design + Slide Panel
   ======================================== */
.problem-card {
    padding: var(--space-6);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.problem-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-2px);
    border-color: var(--gray-300);
}
.problem-card.active {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.2);
    background: linear-gradient(135deg, #fafbff 0%, #f5f7ff 100%);
}
.problem-card.active h4 {
    color: var(--primary);
}

/* Detail Panel - Slide Out */
.problem-detail-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s ease,
                margin 0.3s ease;
    opacity: 0;
    margin-top: 0;
}
.problem-detail-panel.open {
    max-height: 600px;
    opacity: 1;
    margin-top: var(--space-6);
}
.problem-detail-content {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: var(--space-8);
    position: relative;
}
.problem-detail-content .detail-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--gray-200);
}
.problem-detail-content .detail-icon {
    font-size: 2rem;
}
.problem-detail-content .detail-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}
.problem-detail-content .detail-body {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-8);
}
.problem-detail-content .detail-stats {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}
.problem-detail-content .detail-stat {
    background: var(--gray-50);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    text-align: center;
}
.problem-detail-content .detail-stat .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-1);
}
.problem-detail-content .detail-stat .stat-label {
    font-size: 0.8rem;
    color: var(--gray-600);
}
.problem-detail-content .detail-text h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0 0 var(--space-3) 0;
}
.problem-detail-content .detail-text h4:not(:first-child) {
    margin-top: var(--space-5);
}
.problem-detail-content .detail-text p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin: 0;
}
.problem-detail-content .detail-text strong {
    color: var(--gray-800);
}

/* Close button */
.problem-detail-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 32px;
    height: 32px;
    border: none;
    background: var(--gray-100);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.problem-detail-close:hover {
    background: var(--gray-200);
}
.problem-detail-close svg {
    width: 16px;
    height: 16px;
    stroke: var(--gray-600);
}

/* Responsive */
@media (max-width: 768px) {
    .problem-detail-content .detail-body {
        grid-template-columns: 1fr;
    }
    .problem-detail-content .detail-stats {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .problem-detail-content .detail-stat {
        flex: 1;
        min-width: 120px;
    }
}

/* ========================================
   Layer Selection Section
   확률적 계층 선택 시뮬레이션
   ======================================== */

/* Main Layout */
.layer-selection-container {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Map Panel - 정부 스타일 */
.map-panel {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
}
.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.map-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
}
.map-scale {
    font-size: 0.8rem;
    color: var(--gray-500);
    background: var(--gray-100);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
}
.map-container {
    position: relative;
    width: 100%;
    height: 420px;
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
    border-radius: 12px;
    overflow: hidden;
}

/* SVG Maps */
.map-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}
.map-svg.active {
    opacity: 1;
    pointer-events: auto;
}
.map-svg path, .map-svg rect, .map-svg polygon {
    fill: var(--gray-200);
    stroke: white;
    stroke-width: 1.5;
    transition: fill 0.3s;
}
.map-svg .region-active {
    fill: rgba(99, 102, 241, 0.25);
    stroke: var(--primary);
    stroke-width: 2;
}
.map-svg .region-label {
    font-size: 11px;
    fill: var(--gray-600);
    text-anchor: middle;
    pointer-events: none;
}
.map-svg .region-label-sm {
    font-size: 9px;
}

/* User Markers */
.user-marker {
    position: absolute;
    width: 44px;
    height: 44px;
    transform: translate(-50%, -50%);
    z-index: 10;
    transition: all 0.5s ease;
}
.user-marker .marker-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.user-marker .marker-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    animation: marker-pulse 2s infinite;
}
.user-marker.user-a .marker-dot { background: #ef4444; }
.user-marker.user-a .marker-pulse { background: rgba(239, 68, 68, 0.3); }
.user-marker.user-b .marker-dot { background: #3b82f6; }
.user-marker.user-b .marker-pulse { background: rgba(59, 130, 246, 0.3); }
.user-marker .marker-label {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gray-800);
    color: white;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.user-marker .marker-label::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--gray-800);
}
@keyframes marker-pulse {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

/* Connection Line */
.connection-line {
    position: absolute;
    height: 3px;
    background: linear-gradient(90deg, #ef4444, #8b5cf6, #3b82f6);
    transform-origin: left center;
    z-index: 5;
    opacity: 0;
    border-radius: 2px;
    transition: opacity 0.5s;
}
.connection-line.active { opacity: 1; }

/* Hash Animation */
.hash-flow {
    position: absolute;
    width: 24px;
    height: 24px;
    background: var(--primary);
    border-radius: 50%;
    z-index: 15;
    opacity: 0;
    box-shadow: 0 0 20px var(--primary), 0 0 40px var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    font-weight: 700;
}
.hash-flow.active { opacity: 1; }

/* Info Panel */
.info-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Cards - 정부 스타일 */
.info-card {
    background: white;
    border-radius: 8px;
    padding: 1.25rem;
    border: 1px solid var(--gray-200);
}
.info-card-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.info-card-title svg {
    width: 18px;
    height: 18px;
    color: var(--gray-500);
}

/* Layer Probability */
.layer-probs {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.layer-prob {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: opacity 0.3s;
}
.layer-prob.disabled { opacity: 0.25; }
.layer-prob.selected {
    background: rgba(99, 102, 241, 0.08);
    border-radius: 8px;
    margin: -4px -8px;
    padding: 4px 8px;
}
.layer-prob.selected .layer-name {
    color: var(--primary);
    font-weight: 600;
}
.layer-prob.selected .prob-text {
    color: var(--primary);
    font-weight: 700;
}
.layer-badge {
    min-width: 38px;
    height: 26px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    background: var(--gray-400);
    transition: all 0.3s;
}
.layer-prob.selected .layer-badge {
    background: var(--primary);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}
.layer-name {
    font-size: 0.8rem;
    color: var(--gray-600);
    width: 60px;
}
.prob-bar-wrap {
    flex: 1;
    height: 26px;
    background: var(--gray-100);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}
.prob-bar {
    height: 100%;
    border-radius: 5px;
    background: var(--gray-300);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s;
}
.layer-prob.selected .prob-bar {
    background: linear-gradient(90deg, var(--primary), #818cf8);
}
.prob-text {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-700);
}

/* Transaction Info */
.tx-info {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.tx-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.85rem;
}
.tx-row:last-child { border-bottom: none; }
.tx-label { color: var(--gray-500); }
.tx-value { font-weight: 600; color: var(--gray-800); }
.tx-value.hash {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: var(--primary);
    letter-spacing: -0.5px;
}

/* Result Card - 정부 스타일 */
.result-card {
    background: var(--gray-800);
    border-radius: 8px;
    padding: 1.25rem;
    color: white;
}
.result-card-title {
    font-size: 0.8rem;
    color: var(--gray-400);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-700);
}
.result-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.result-layer {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--gray-500);
    transition: transform 0.3s, color 0.3s;
}
.result-layer.selected {
    color: #60a5fa;
}
.result-detail { flex: 1; }
.result-node {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}
.result-note {
    font-size: 0.75rem;
    color: var(--gray-400);
}
.security-badge {
    margin-top: 1rem;
    padding: 0.625rem 0.75rem;
    background: rgba(96, 165, 250, 0.15);
    border-radius: 6px;
    font-size: 0.78rem;
    color: #93c5fd;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.security-badge svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Scenario Buttons - 정부 스타일 */
.scenario-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}
.scenario-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-300);
    background: white;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s;
}
.scenario-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}
.scenario-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Play Button - 정부 스타일 */
.play-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 1.5rem;
}
.play-btn:hover {
    background: var(--primary-dark);
}
.play-btn:disabled {
    background: var(--gray-300);
    cursor: not-allowed;
}
.play-btn svg {
    width: 20px;
    height: 20px;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-300);
    transition: all 0.3s;
}
.step-dot.active {
    background: var(--primary);
    transform: scale(1.4);
}
.step-dot.done { background: #10b981; }

/* Responsive */
@media (max-width: 900px) {
    .layer-selection-container { grid-template-columns: 1fr; }
    .map-container { height: 320px; }
}

    .hero-tagline {
        display: inline-block;
        font-size: 0.95rem;
        font-weight: 600;
        color: #fcd34d;
        letter-spacing: 1px;
        margin-bottom: 1.25rem;
        padding: 0.5rem 1.5rem;
        border: 1px solid rgba(252, 211, 77, 0.5);
        border-radius: 100px;
        background: rgba(252, 211, 77, 0.1);
    }

/* ============================================
   Value Section - OpenHash 미래 가치
   ============================================ */
.value-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    display: grid;
    
    gap: var(--space-5);
}
.value-card {
    padding: var(--space-6);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    text-align: center;
}
.value-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-2px);
    border-color: var(--gray-300);
}
.value-card.active {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(26, 58, 110, 0.2);
    background: linear-gradient(135deg, #fafbff 0%, #f5f7ff 100%);
}
.value-card-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-4);
    background: var(--gray-100);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.2s;
}
.value-card:hover .value-card-icon,
.value-card.active .value-card-icon {
    background: var(--primary);
}
.value-card h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: var(--space-2);
    color: var(--gray-900);
}
.value-card.active h4 {
    color: var(--primary);
}
.value-card p {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.6;
}

/* Value Detail Panel */
.value-detail-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease,
                margin 0.3s ease;
    opacity: 0;
    margin-top: 0;
}
.value-detail-panel.open {
    max-height: 700px;
    opacity: 1;
    margin-top: var(--space-6);
}
.value-detail-content {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: var(--space-8);
    position: relative;
}
.value-detail-content .detail-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--gray-200);
}
.value-detail-content .detail-icon {
    font-size: 2rem;
}
.value-detail-content .detail-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}
.value-detail-content .detail-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}
.value-detail-content .detail-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}
.value-detail-content .detail-stat {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: var(--space-4);
    text-align: center;
}
.value-detail-content .detail-stat .stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-1);
}
.value-detail-content .detail-stat .stat-label {
    font-size: 0.75rem;
    color: var(--gray-600);
}
.value-detail-content .detail-text h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0 0 var(--space-3) 0;
}
.value-detail-content .detail-text h4:not(:first-child) {
    margin-top: var(--space-5);
}
.value-detail-content .detail-text p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin: 0 0 var(--space-3) 0;
}
.value-detail-content .detail-text strong {
    color: var(--gray-800);
}
.value-detail-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 32px;
    height: 32px;
    border: none;
    background: var(--gray-100);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.value-detail-close:hover {
    background: var(--gray-200);
}
.value-detail-close svg {
    width: 16px;
    height: 16px;
    stroke: var(--gray-600);
}

@media (max-width: 768px) {
    .value-detail-content .detail-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   Verification Pipeline - 가로 압축 버전
   ============================================ */
.verify-pipeline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    flex-wrap: wrap;
}
.verify-step {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    min-width: 160px;
    transition: all 0.2s;
}
.verify-step:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.verify-num {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}
.verify-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 2px 0;
}
.verify-content p {
    font-size: 12px;
    color: var(--gray-500);
    margin: 0;
}
.verify-arrow {
    color: var(--gray-400);
    font-size: 18px;
    font-weight: 300;
}
.verify-footer {
    text-align: center;
    margin-top: var(--space-6);
    font-size: 14px;
    color: var(--gray-600);
}
.verify-footer strong {
    color: var(--primary);
}

@media (max-width: 1024px) {
    .verify-pipeline {
        gap: var(--space-3);
    }
    .verify-arrow {
        display: none;
    }
    .verify-step {
        flex: 1 1 calc(50% - var(--space-3));
        min-width: 140px;
    }
}
@media (max-width: 600px) {
    .verify-step {
        flex: 1 1 100%;
    }
}

/* ============================================
   Performance Cards - Slide Out/In Panel
   ============================================ */
.perf-card {
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.perf-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-2px);
    border-color: var(--gray-300);
}
.perf-card.active {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(26, 58, 110, 0.2);
    background: linear-gradient(135deg, #fafbff 0%, #f5f7ff 100%);
}
.perf-card.active h4 {
    color: var(--primary);
}

/* Performance Detail Panel */
.perf-detail-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease,
                margin 0.3s ease;
    opacity: 0;
    margin-top: 0;
}
.perf-detail-panel.open {
    max-height: 600px;
    opacity: 1;
    margin-top: var(--space-6);
}
.perf-detail-content {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: var(--space-8);
    position: relative;
}
.perf-detail-content .detail-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--gray-200);
}
.perf-detail-content .detail-icon {
    font-size: 2rem;
}
.perf-detail-content .detail-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}
.perf-detail-content .detail-body {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-8);
}
.perf-detail-content .detail-stats {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}
.perf-detail-content .detail-stat {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: var(--space-4);
    text-align: center;
}
.perf-detail-content .detail-stat.highlight {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
}
.perf-detail-content .detail-stat .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-1);
}
.perf-detail-content .detail-stat .stat-label {
    font-size: 0.75rem;
    color: var(--gray-600);
}
.perf-detail-content .detail-text h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0 0 var(--space-3) 0;
}
.perf-detail-content .detail-text h4:not(:first-child) {
    margin-top: var(--space-5);
}
.perf-detail-content .detail-text p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin: 0 0 var(--space-3) 0;
}
.perf-detail-content .detail-text strong {
    color: var(--gray-800);
}
.perf-detail-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 32px;
    height: 32px;
    border: none;
    background: var(--gray-100);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.perf-detail-close:hover {
    background: var(--gray-200);
}
.perf-detail-close svg {
    width: 16px;
    height: 16px;
    stroke: var(--gray-600);
}

@media (max-width: 768px) {
    .perf-detail-content .detail-body {
        grid-template-columns: 1fr;
    }
    .perf-detail-content .detail-stats {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .perf-detail-content .detail-stat {
        flex: 1;
        min-width: 100px;
    }
}

/* ============================================
   Verification Steps - Slide Out/In Panel
   ============================================ */
.verify-step {
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.verify-step:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-2px);
    border-color: var(--primary);
}
.verify-step.active {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(26, 58, 110, 0.2);
    background: linear-gradient(135deg, #fafbff 0%, #f5f7ff 100%);
}
.verify-step.active .verify-num {
    background: var(--accent);
}
.verify-step.active h4 {
    color: var(--primary);
}

/* Verification Detail Panel */
.verify-detail-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease,
                margin 0.3s ease;
    opacity: 0;
    margin-top: 0;
}
.verify-detail-panel.open {
    max-height: 550px;
    opacity: 1;
    margin-top: var(--space-6);
}
.verify-detail-content {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: var(--space-8);
    position: relative;
}
.verify-detail-content .detail-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--gray-200);
}
.verify-detail-content .detail-icon {
    font-size: 2rem;
}
.verify-detail-content .detail-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}
.verify-detail-content .detail-body {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--space-8);
}
.verify-detail-content .detail-stats {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}
.verify-detail-content .detail-stat {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: var(--space-4);
    text-align: center;
}
.verify-detail-content .detail-stat.highlight {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}
.verify-detail-content .detail-stat .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-1);
}
.verify-detail-content .detail-stat .stat-label {
    font-size: 0.75rem;
    color: var(--gray-600);
}
.verify-detail-content .detail-text h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0 0 var(--space-3) 0;
}
.verify-detail-content .detail-text h4:not(:first-child) {
    margin-top: var(--space-5);
}
.verify-detail-content .detail-text p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin: 0 0 var(--space-3) 0;
}
.verify-detail-content .detail-text strong {
    color: var(--gray-800);
}
.verify-detail-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 32px;
    height: 32px;
    border: none;
    background: var(--gray-100);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.verify-detail-close:hover {
    background: var(--gray-200);
}
.verify-detail-close svg {
    width: 16px;
    height: 16px;
    stroke: var(--gray-600);
}

@media (max-width: 768px) {
    .verify-detail-content .detail-body {
        grid-template-columns: 1fr;
    }
    .verify-detail-content .detail-stats {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .verify-detail-content .detail-stat {
        flex: 1;
        min-width: 100px;
    }
}
