/* 2025 정보보호산업 실태조사 — Data Report Theme */

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f4f6f9;
    --bg-tertiary: #e8ecf1;
    --card-bg: #ffffff;
    --text-primary: #1a1e2e;
    --text-secondary: #4a5568;
    --text-tertiary: #718096;
    --primary-color: #1a56db;
    --primary-light: #e8f0fe;
    --accent-color: #0f3d91;
    --accent-red: #c41230;
    --border-color: #e2e8f0;
    --shadow-color: rgba(0, 0, 0, 0.06);
    --shadow-hover: rgba(0, 0, 0, 0.12);
    --gradient-start: #1a56db;
    --gradient-end: #0f766e;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.7;
}

/* Navigation: uses core-styles.css defaults */

/* ===== Header ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.logo-icon { height: 24px; width: auto; }

nav ul { display: flex; list-style: none; gap: 1.5rem; }
nav ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s;
}
nav ul li a:hover { color: var(--primary-color); }

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 40%, #1a56db 100%);
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

.hero-content {
    text-align: center;
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.imple-badge {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.badge-text {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
}

.main-title {
    font-size: clamp(2.5rem, 5.5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: white;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2.5rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

/* Key Stats */
.key-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 3rem;
}

.stat-item {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s;
}
.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.15);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    display: block;
}
.stat-number .unit { font-size: 1rem; font-weight: 600; }

.stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
    margin-top: 0.4rem;
}

.stat-change {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.stat-change.up { background: rgba(16,185,129,0.8); color: white; }
.stat-change.down { background: rgba(239,68,68,0.8); color: white; }
.stat-change.neutral { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.8); }

/* ===== Content Sections ===== */
.content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.content-section h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 800px;
    line-height: 1.8;
}

.section-with-bg {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    max-width: 100%;
    padding-left: calc((100% - 1200px) / 2 + 2rem);
    padding-right: calc((100% - 1200px) / 2 + 2rem);
}

/* ===== Description Blocks ===== */
.desc-block {
    background: var(--card-bg);
    border-radius: 14px;
    padding: 1.75rem 2rem;
    margin-bottom: 2.5rem;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 8px var(--shadow-color);
}

.desc-block p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.85;
}

.desc-block p + p {
    margin-top: 0.75rem;
}

.desc-block strong {
    color: var(--text-primary);
    font-weight: 700;
}

/* ===== Cards ===== */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    box-shadow: 0 2px 8px var(--shadow-color);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px var(--shadow-hover);
    border-color: var(--primary-color);
}

.card h3 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.card h3 i { font-size: 1.2rem; }

.card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.card-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1;
}
.card-number span {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-tertiary);
}

/* ===== Charts ===== */
.dual-chart-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.chart-wrapper {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px var(--shadow-color);
}
.chart-wrapper.full-width {
    grid-column: 1 / -1;
}

.chart-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* ===== Data Tables ===== */
.data-table-wrap {
    margin-bottom: 2.5rem;
}

.table-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.table-scroll {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px var(--shadow-color);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    font-size: 0.9rem;
}

.data-table th {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 0.85rem 1rem;
    text-align: right;
    font-weight: 700;
    font-size: 0.85rem;
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}
.data-table th:first-child { text-align: center; }

.data-table td {
    padding: 0.75rem 1rem;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    white-space: nowrap;
}
.data-table td:first-child {
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
}

.data-table tr:hover { background: var(--bg-secondary); }
.data-table tr.row-highlight {
    background: var(--primary-light);
    font-weight: 700;
}
.data-table tr.row-highlight td { color: var(--text-primary); font-weight: 700; }

.data-table td.up { color: #059669; font-weight: 600; }
.data-table td.down { color: #dc2626; font-weight: 600; }

/* ===== Info Grid ===== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    background: var(--card-bg);
    border-radius: 14px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px var(--shadow-color);
    transition: all 0.3s;
}
.info-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px var(--shadow-hover);
}

.info-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.info-icon i { font-size: 1.3rem; color: var(--primary-color); }

.info-content h4 {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-bottom: 0.2rem;
}
.info-content strong {
    font-size: 1.3rem;
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.2rem;
}
.info-content p {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    line-height: 1.5;
}

/* ===== Sub Section Title ===== */
.sub-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.sub-section-title i { color: var(--primary-color); font-size: 1.4rem; }

/* ===== Insight List ===== */
.insight-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.insight-item {
    display: flex;
    gap: 1.5rem;
    background: var(--card-bg);
    border-radius: 14px;
    padding: 1.75rem 2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px var(--shadow-color);
    transition: all 0.3s;
}
.insight-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 24px var(--shadow-hover);
    border-left: 3px solid var(--primary-color);
}

.insight-number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-color);
    opacity: 0.3;
    line-height: 1;
    flex-shrink: 0;
    width: 50px;
}

.insight-content h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}
.insight-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== Source Section ===== */
.source-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.source-box {
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    border-left: 4px solid var(--primary-color);
}
.source-box p {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    line-height: 1.7;
}
.source-box p + p { margin-top: 0.5rem; }

/* ===== Footer ===== */
footer {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-tertiary);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-primary);
}

/* ===== Reveal Animation ===== */
/* core-styles.css handles .reveal base; override active class */
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .key-stats { grid-template-columns: repeat(2, 1fr); }
    .dual-chart-container { grid-template-columns: 1fr; }
    .section-with-bg {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (max-width: 768px) {
    nav ul { display: none; }
    .content-section { padding: 3rem 1.25rem; }
    .content-section h2 { font-size: 1.7rem; }
    .card-container { grid-template-columns: 1fr; }
    .info-grid { grid-template-columns: 1fr; }
    .key-stats { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .stat-number { font-size: 1.8rem; }
    .insight-item { flex-direction: column; gap: 0.5rem; }
    .insight-number { font-size: 1.5rem; width: auto; }
    .hero { padding: 5rem 1.25rem; }
    .nav-buttons { right: 1rem; bottom: 1rem; }
    .section-with-bg { padding-left: 1.25rem; padding-right: 1.25rem; }
}

@media (max-width: 480px) {
    .key-stats { grid-template-columns: 1fr; }
    .main-title { font-size: 1.8rem; }
}
