/* 1. 변수 및 초기화 */
:root {
  --container: 1280px;
  --bg-dark: #0f172a;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e5e7eb;
  --accent: #60a5fa;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* 2. 공용 레이아웃 */
.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.hidden { display: none !important; }

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 3. 네비게이션 */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #f3f4f6;
  backdrop-filter: blur(10px);
}

.nav-inner {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

/* 4. 히어로 섹션 */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 64px 0;
  color: #fff;
  position: relative;
  background: 
    linear-gradient(rgba(15, 23, 42, 0), rgba(15, 23, 42, 0.8)), 
    url('banner.png') center/cover no-repeat;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-copy {
  max-width: 680px;
}

.hero-copy h1 {
  margin: 0 0 20px;
  font-size: clamp(2.8rem, 6vw, 4.3rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-copy p {
  margin: 0 0 28px;
  max-width: 620px;
  font-size: 1.15rem;
  line-height: 1.8;
  color: #ffffff;
}

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.32em;
  text-decoration: underline;
  text-underline-offset: 8px;
  margin-bottom: 18px;
}

.hero-visual {
  width: 100%;
  max-width: 540px;
  aspect-ratio: 4 / 3;
  position: relative;
  background: #f1f5f9;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
  pointer-events: none; 
}

/* 데이터 리포트 공통 레이아웃 */
.data-report { padding: 100px 0; background: #f8fafc; }
.report-header { text-align: center; margin-bottom: 60px; }

.chart-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: start;
}

.chart-card {
  background: #fff;
  padding: 30px;
  border-radius: 24px;
  border: 5px solid #e2e8f0;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.chart-card h4 {
  font-size: 1.1rem;
  margin-bottom: 1px;
  color: #1e293b;
  border-left: 5px solid #3b82f6;
  padding-left: 15px;
}

.full-width-chart {
  grid-column: span 2;
  height: 600px;
  display: flex;
  flex-direction: column;
}

.full-width-chart .chart-container {
  flex-grow: 1;
  position: relative;
  width: 100%;
}

.full-width-chart canvas {
  width: 100% !important;
  height: 100% !important;
}

/* 도넛 차트 카드가 너무 길어 보이지 않도록 높이 조정 */
.chart-main-doughnut .chart-card.tall {
  height: 100%;
}

.chart-main-doughnut h4 {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: #1e293b;
  border-left: 5px solid #3b82f6;
  padding-left: 15px;
}

/* 도넛 차트 중앙 텍스트 */
.doughnut-wrapper { position: relative; width: 100%; max-width: 320px; margin: 20px auto; }
.doughnut-center-text {
  position: absolute; top: 54%; left: 50%;
  transform: translate(-50%, -50%); text-align: center;
}
.percent { display: block; font-size: 3rem; font-weight: 800; color: #3b82f6; }

.chart-info-box {
  margin-top: 20px; padding: 20px;
  background: #f1f5f9; border-radius: 16px; font-size: 0.95rem;
}

/* --- 푸터 기본 스타일 --- */
.footer {
  background: #272727;
  color: #f1f2f3;
  padding: 60px 0 40px;
  border-top: 1px solid #1f2937;
  margin-top: 80px;
}

/* 어워즈 섹션 */
.footer-awards {
  padding-bottom: 60px;
  border-bottom: 1px solid #1f2937;
  margin-bottom: 40px;
}

.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.award-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.award-icon {
  font-size: 24px;
  filter: grayscale(100%);
  opacity: 0.8;
}

.award-text strong {
  display: block;
  color: #f1f5f9;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.award-text p {
  font-size: 0.8rem;
  line-height: 1.5;
  margin: 0;
  color: #9ca3af;
}

/* 하단 정보 섹션 */
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-logo {
  width: 100px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.footer-links {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.footer-links a {
  color: #f1f5f9;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.2s;
}

.footer-links a:hover { color: #3b82f6; }

.copyright {
  font-size: 0.75rem;
  color: #64748b;
  margin: 4px 0;
}

.copyright.warning {
  color: #94a3b8;
  font-weight: 500;
  margin-bottom: 8px;
}

.footer-sns a {
  color: #fff;
  margin-left: 20px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
  opacity: 0.7;
}

.footer-sns a:hover { opacity: 1; }

/* --- 모달 (다크 테마) --- */
.modal {
  position: fixed;
  z-index: 10000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: #1e1e1e;
  padding: 40px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  border: 1px solid #334155;
  color: #fff;
}

.modal-body {
  margin-top: 20px;
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.6;
}

.close {
  float: right;
  cursor: pointer;
  font-size: 24px;
  color: #64748b;
}

/* 6. 버튼 컴포넌트 */
.link-btn, .primary-btn {
  border: 0;
  cursor: pointer;
  font: inherit;
  transition: 0.2s ease;
}

.link-btn {
  background: transparent;
  padding: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 800;
  border-bottom: 2px solid #111827;
}

.primary-btn {
  background: #fff;
  color: #000;
  padding: 18px 28px;
  font-size: 1rem;
  font-weight: 800;
}

.primary-btn:hover {
  background: #e5e7eb;
  transform: translateY(-1px);
}

.primary-btn.dark { background: #000; color: #fff; }
.primary-btn.dark:hover { background: #111827; }
.answer-btn {
  width: 100%;
  text-align: left;
  padding: 22px 24px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
  margin-bottom: 12px;
}

.answer-btn:hover {
  background: #000;
  color: #fff;
}

.result_container {
  display: flex;
  flex-direction: column;
  min-height: 60vh;
}

/* --- 추가된 이메일 복사 영역 스타일 --- */
.email-copy-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0f172a; 
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 15px;
  border: 1px solid #334155;
}

.email-copy-container span {
  color: #e2e8f0;
  font-weight: 500;
  font-size: 1rem;
  word-break: break-all;
}

.copy-btn {
  background: #3b82f6;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s ease;
  white-space: nowrap;
  margin-left: 10px;
}

.copy-btn:hover {
  background: #2563eb;
}

/* 반응형 제어 */
@media (max-width: 1024px) {
  .chart-layout-grid { grid-template-columns: 1fr; }
  .full-width-chart { grid-column: span 1; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; max-width: 100%; aspect-ratio: 16 / 9; }
  .hero { padding: 48px 0 64px; }
}

@media (max-width: 768px) {
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 30px; }
  .footer-sns { margin-top: 20px; }
  .footer-sns a { margin-left: 0; margin-right: 20px; }
}

@media (max-width: 640px) {
  .nav-inner { height: 68px; }
  .hero h1 { font-size: 2.5rem; }
  .primary-btn { width: 100%; }
}