:root {
  color-scheme: dark;
  --bg: #07111f;
  --panel: rgba(8, 18, 35, 0.9);
  --panel-strong: #0f1f36;
  --text: #e9f2ff;
  --muted: #94a9c7;
  --accent: #5eead4;
  --accent-2: #7c9cff;
  --border: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Noto Sans KR', sans-serif;
  background: linear-gradient(135deg, var(--bg), #111d31 55%, #1a2f4e);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 72px;
}

.hero {
  display: grid;
  gap: 24px;
  grid-template-columns: 1.7fr 1fr;
  align-items: center;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 3.2vw, 2.9rem);
  line-height: 1.2;
}

.hero-copy {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  max-width: 700px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(94, 234, 212, 0.12);
  color: var(--accent);
  font-size: 0.9rem;
}

.hero-card,
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
}

.hero-card {
  padding: 24px;
}

.hero-card h2 {
  margin-top: 0;
  margin-bottom: 16px;
}

.metric-grid {
  display: grid;
  gap: 12px;
}

.metric-grid div {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.metric-grid strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.metric-grid span {
  color: var(--muted);
  font-size: 0.92rem;
}

.panel {
  padding: 24px;
  margin-top: 20px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.panel-header h3 {
  margin: 0;
}

.subtle {
  color: var(--muted);
  font-size: 0.95rem;
}

.list {
  display: grid;
  gap: 12px;
}

.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.list-item:hover {
  transform: translateY(-2px);
  background: rgba(94, 234, 212, 0.12);
}

.list-item strong {
  display: block;
}

.list-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 700;
  background: rgba(94, 234, 212, 0.16);
  color: var(--accent);
}

.chart-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: 1.6fr 1fr;
}

.chart-card,
.detail-card {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
}

.select-box {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.select-box select {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel-strong);
  color: var(--text);
}

.chart-bars {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.bar-row {
  display: grid;
  grid-template-columns: 80px 1fr 60px;
  gap: 10px;
  align-items: center;
}

.bar-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.bar-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  transition: width 0.3s ease;
}

.bar-value {
  font-size: 0.9rem;
  font-weight: 700;
  text-align: right;
}

.detail-card h4 {
  margin: 0 0 8px;
}

.detail-name {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
}

.detail-summary {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.7;
}

.detail-card ul {
  padding-left: 18px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.back-link {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--accent);
  font-weight: 700;
}

.link-button {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(94, 234, 212, 0.16);
  color: var(--accent);
  font-weight: 700;
}

.search-form {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.search-form input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.search-form button {
  padding: 10px 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #03131f;
  font-weight: 700;
  cursor: pointer;
}

.result-card {
  min-height: 260px;
}

.investment-box {
  margin-top: 16px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(94, 234, 212, 0.1);
}

.metric-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 14px 0 16px;
}

.metric-grid div {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.metric-grid strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.metric-grid span {
  color: var(--muted);
  font-size: 0.9rem;
}

.investment-box h5 {
  margin: 0 0 8px;
}

.caution {
  color: #ffd68b;
  margin-bottom: 0;
}

.small {
  font-size: 0.92rem;
  margin-top: 10px;
}

@media (max-width: 860px) {
  .hero,
  .chart-layout {
    grid-template-columns: 1fr;
  }

  .panel-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
