* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "IBM Plex Sans KR", sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    line-height: 1.6;
}

strong {
    font-weight: 900;
}

a {
  color: white;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    background: white;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.header h1 {
    font-size: 2.0em;
    font-weight: 900;
    color: #2c3e50;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.header .subtitle {
    font-size: 1.2em;
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 20px;
}

.header .survey-info {
    background: linear-gradient(90deg, #667eea, #764ba2);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    display: inline-block;
    font-weight: 500;
    font-size: 1.1em;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 30px 0;
}

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

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.stat-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.stat-number {
    font-size: 3.5em;
    font-weight: 900;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #6a11cb, #2575fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1.2em;
    color: #555;
    font-weight: 500;
}

.chart-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin: 30px 0;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.chart-title {
    font-size: 1.8em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

.chart-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 30px;
}

.chart {
    text-align: center;
}

.chart h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #34495e;
    font-weight: 600;
}

.bar-chart {
    margin: 20px 0;
}

.bar-item {
    display: flex;
    align-items: center;
    margin: 15px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.bar-item:hover {
    background: #e9ecef;
    transform: scale(1.02);
}

.bar-label {
  min-width: 120px;
  text-align: left;
  font-weight: 500;
  color: #495057;
  white-space: nowrap;
  flex-shrink: 0;
}

.bar-visual {
    flex: 2;
    height: 25px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 12px;
    margin: 0 15px;
    position: relative;
    overflow: hidden;
}

.bar-visual::after {
    width: var(--width);
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #f9e79f, #ff6f61);
    border-radius: 12px;
    transition: width 0.8s ease;
}

.bar-value {
    font-weight: 700;
    color: #37474f;
    min-width: 60px;
    text-align: right;
}

.highlight-section {
    background: linear-gradient(135deg, #f9c5d1, #e57393);
    color: white;
    border-radius: 20px;
    padding: 40px;
    margin: 30px 0;
    text-align: center;
}

.highlight-title {
    font-size: 2.5em;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.highlight-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.highlight-stat {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.highlight-stat .number {
    font-size: 2.5em;
    font-weight: 900;
    margin-bottom: 10px;
}

.solution-section {
    background: linear-gradient(135deg, #7fbfb0, #4caf50);
    color: white;
    border-radius: 20px;
    padding: 40px;
    margin: 30px 0;
    text-align: center;
}

.solution-title {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 30px;
}

@media (max-width: 1024px) {
  .solution-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .solution-grid {
    grid-template-columns: 1fr;
  }
}

.solution-item {
    background: rgba(255,255,255,0.15);
    padding: 25px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.solution-item .rank {
    font-size: 1.5em;
    font-weight: 900;
    margin-bottom: 10px;
}

.solution-item .text {
    font-size: 1.1em;
    font-weight: 500;
    margin-bottom: 10px;
}

.solution-item .percent {
    font-size: 2em;
    font-weight: 900;
}

.union {
    background: #4b3869;
    color: white;
    text-align: center;
    padding: 30px;
    border-radius: 20px;
    margin-top: 30px;
}

.union h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    font-weight: 700;
}

.union p {
    font-size: 1.1em;
    opacity: 0.9;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chart-section, .stat-card, .highlight-section, .solution-section {
    animation: slideIn 0.6s ease-out;
}

.comparison-chart {
    margin: 30px 0;
}

.comparison-item {
    margin: 30px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 15px;
    border-left: 5px solid #3498db;
}

.time-category {
    font-size: 1.3em;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.comparison-bars {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comparison-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.comparison-label {
    min-width: 60px;
    font-weight: 600;
    color: #495057;
    text-align: right;
}

.comparison-bar {
    flex: 1;
    height: 35px;
    background: #e9ecef;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
}

.comparison-bar.outbound .comparison-fill {
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.comparison-bar.inbound .comparison-fill {
    background: linear-gradient(90deg, #f9e79f, #ff6f61);
}

.comparison-fill {
    height: 100%;
    border-radius: 18px;
    transition: width 1s ease;
    position: relative;
}

.comparison-value {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    color: #37474f;
    text-shadow: none;
    z-index: 2;
}

.insight-box {
    background: linear-gradient(90deg, #f9e79f, #ff6f61);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin-top: 30px;
    text-align: center;
}

.insight-box h4 {
    font-size: 1.4em;
    margin-bottom: 15px;
    font-weight: 700;
}

.insight-box p {
    font-size: 1.1em;
    margin: 8px 0;
    line-height: 1.6;
}

.site-header {
  width: 100%;
  padding: 20px 0;
  text-align: center;
  background: white;
  color: #222;
}


.site-header h1 {
  font-size: 15px;
  color: #222;
  margin: 0;
}

.footer {
  width: 100%;
  padding: 20px 0;
  text-align: center;
  background-color: white;
}

.footer-content strong {
  font-size: 15px;
  display: block;
  margin-bottom: 10px;
  white-space: nowrap;
  overflow-wrap: normal;
}

.footer-content small {
  font-size: 14px;
  display: block;
}

@media (max-width: 768px) {
  .footer-content strong {
    white-space: normal !important;
    word-break: keep-all;
    line-height: 1.5;
  }
}

#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 999;
  width: 55px;
  height: 55px;
  background-color: rgba(255, 255, 255, 0.25);
  color: #333;
  border: none;
  border-radius: 50%;
  font-size: 1.5em;
  cursor: pointer;
  opacity: 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(4px);
}

#scrollTopBtn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

#scrollTopBtn.show {
  opacity: 1;
}

.past-campaign-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 22px;
  background-color: #ffffff;
  color: #4b3869; /* 푸터 배경과 조화로운 진한 보라 텍스트 */
  border: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.95em;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.past-campaign-btn:hover {
  background-color: #f1f1f1;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-content {
  background: white;
  padding: 30px 20px;
  max-width: 500px;
  width: 90%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  font-family: 'IBM Plex Sans KR', sans-serif;
  position: relative;
  text-align: left;
  line-height: 1.6;
}

.popup-content h2 {
  font-size: 20px;
  margin-bottom: 16px;
  font-weight: bold;
}

.popup-content p {
  font-size: 16px;
  margin-bottom: 10px;
}

.popup-link {
  display: block;
  width: 100%;
  margin-top: 18px;
  padding: 14px;
  background-color: #0077cc;
  color: white;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 16px;
  box-sizing: border-box;
}

.popup-link:hover {
  background-color: #005fa3;
}

.popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}
