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

body {
  font-family: 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  background: #0d0d1a;
  color: #e2e8f0;
  line-height: 1.6;
}

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

/* ===== 헤더 ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13, 13, 26, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
}

.header-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.header-brand {
  font-size: 18px;
  font-weight: 800;
  color: #e2e8f0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-nav a {
  font-size: 14px;
  color: #a0aec0;
  transition: color 0.2s;
  cursor: pointer;
}

.site-nav a:hover {
  color: #e2e8f0;
}

/* 주식 MBTI 네비게이션 버튼 */
.nav-mbti-btn {
  background: linear-gradient(135deg, #4facfe, #00f2fe) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  border: 1px solid rgba(79,172,254,0.35);
  border-radius: 20px;
  padding: 5px 14px;
  transition: all 0.2s !important;
}

.nav-mbti-btn:hover {
  background: rgba(79,172,254,0.12) !important;
  border-color: rgba(79,172,254,0.6) !important;
  -webkit-text-fill-color: #fff !important;
}

/* 언어 전환기 */
.lang-switcher {
  display: flex;
  gap: 4px;
  margin-left: 8px;
}

.lang-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 12px;
  color: #4a5568;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.lang-btn:hover {
  color: #a0aec0;
  border-color: rgba(255,255,255,0.25);
}

.lang-btn.active {
  background: rgba(99,179,237,0.15);
  border-color: rgba(99,179,237,0.4);
  color: #63b3ed;
  font-weight: 700;
}

/* ===== 언어 선택 화면 ===== */
#lang-screen {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f0c29, #302b63, #1a1a3e);
  display: none;
  align-items: center;
  justify-content: center;
}

#lang-screen.active {
  display: flex;
}

.lang-screen-inner {
  text-align: center;
  padding: 40px 24px;
  animation: fadeIn 0.5s ease;
}

.lang-screen-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}

.lang-logo-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(252,129,129,0.4));
}

.lang-logo-text {
  font-size: 32px;
  font-weight: 900;
  color: #e2e8f0;
}

#lang-screen-title {
  font-size: 26px;
  font-weight: 800;
  color: #e2e8f0;
  margin-bottom: 8px;
}

#lang-screen-sub {
  font-size: 14px;
  color: #4a5568;
  margin-bottom: 40px;
}

.lang-options {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.lang-option-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 20px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 120px;
  font-family: inherit;
}

.lang-option-btn:hover {
  background: rgba(79,172,254,0.1);
  border-color: rgba(79,172,254,0.4);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(79,172,254,0.2);
}

.lang-flag {
  font-size: 36px;
}

.lang-name {
  font-size: 15px;
  font-weight: 600;
  color: #e2e8f0;
}

/* 푸터 로고 이미지 */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* ===== 공통 ===== */
.screen {
  display: none;
}

.screen.active {
  display: block;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  color: #f7fafc;
}

.section-desc {
  text-align: center;
  color: #718096;
  font-size: 15px;
  margin-bottom: 40px;
}

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

/* ===== 히어로 ===== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 80px;
  background: linear-gradient(135deg, #0f0c29, #302b63, #1a1a3e);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99,179,237,0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* 히어로 로고 버튼 */
.hero-logo-btn {
  display: inline-block;
  background: none;
  border: none;
  cursor: pointer;
  margin-bottom: 24px;
  padding: 0;
  transition: transform 0.25s, filter 0.25s;
}

.hero-logo-btn:hover {
  transform: scale(1.08) translateY(-4px);
  filter: drop-shadow(0 8px 24px rgba(252,129,129,0.5));
}

.hero-logo-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  display: block;
}

.hero-badge {
  display: inline-block;
  background: rgba(99,179,237,0.15);
  border: 1px solid rgba(99,179,237,0.3);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  color: #63b3ed;
  margin-bottom: 20px;
}

.title {
  font-size: 52px;
  font-weight: 900;
  background: linear-gradient(90deg, #63b3ed, #76e4f7, #b794f4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  line-height: 1.2;
}

.subtitle {
  font-size: 20px;
  color: #a0aec0;
  margin-bottom: 20px;
}

.desc {
  font-size: 16px;
  color: #718096;
  line-height: 1.9;
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.btn-start {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  border: none;
  border-radius: 50px;
  padding: 16px 48px;
  font-size: 18px;
  font-weight: 700;
  color: #0f0c29;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 24px rgba(79,172,254,0.4);
  display: inline-block;
}

.btn-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(79,172,254,0.6);
}

.hero-meta {
  margin-top: 16px;
  font-size: 13px;
  color: #4a5568;
}

/* ===== 유형 소개 ===== */
.types-section {
  padding: 100px 24px;
  background: #0d0d1a;
}

.types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.type-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 24px 16px;
  text-align: center;
  transition: all 0.2s;
}

.type-card:hover {
  background: rgba(99,179,237,0.08);
  border-color: rgba(99,179,237,0.3);
  transform: translateY(-4px);
}

.type-card-emoji {
  font-size: 36px;
  margin-bottom: 8px;
}

.type-card-code {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #63b3ed;
  margin-bottom: 4px;
}

.type-card-name {
  font-size: 15px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 8px;
}

.type-card p {
  font-size: 12px;
  color: #718096;
  line-height: 1.6;
}

/* ===== 3축 설명 ===== */
.axis-section {
  padding: 100px 24px;
  background: linear-gradient(180deg, #0d0d1a, #0f0c29);
}

.axis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.axis-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 28px 20px;
  text-align: center;
}

.axis-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.axis-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 16px;
}

.axis-vs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  text-align: center;
}

.axis-left, .axis-right {
  flex: 1;
  color: #a0aec0;
  line-height: 1.6;
}

.axis-left strong, .axis-right strong {
  color: #63b3ed;
  display: block;
  margin-bottom: 4px;
}

.axis-divider {
  color: #4a5568;
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== CTA ===== */
.cta-section {
  padding: 100px 24px;
  background: linear-gradient(135deg, #1a1040, #0d0d1a);
  text-align: center;
}

.cta-section h2 {
  font-size: 28px;
  font-weight: 800;
  color: #f7fafc;
  margin-bottom: 12px;
}

.cta-section p {
  color: #718096;
  font-size: 15px;
  margin-bottom: 28px;
}

/* ===== 소개 섹션 ===== */
.about-section {
  padding: 100px 24px;
  background: #0d0d1a;
}

.about-content {
  max-width: 640px;
  margin: 0 auto;
}

.about-content p {
  color: #a0aec0;
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 16px;
}

.disclaimer {
  background: rgba(255, 200, 100, 0.08);
  border: 1px solid rgba(255, 200, 100, 0.2);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 13px;
  color: #d69e2e;
  line-height: 1.7;
  margin-top: 24px;
}

/* ===== 퀴즈 화면 ===== */
#quiz-screen {
  min-height: 100vh;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 80px 0 40px;
  background: linear-gradient(135deg, #0f0c29, #1a1a3e);
}

#quiz-screen.active {
  display: flex;
}

.quiz-container {
  width: 100%;
  animation: fadeIn 0.4s ease;
}

.progress-wrapper {
  margin-bottom: 24px;
}

.progress-info {
  font-size: 14px;
  color: #a0aec0;
  margin-bottom: 10px;
  text-align: right;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4facfe, #00f2fe);
  border-radius: 10px;
  transition: width 0.4s ease;
  width: 0%;
}

.category-label {
  display: inline-block;
  background: rgba(99,179,237,0.15);
  border: 1px solid rgba(99,179,237,0.3);
  border-radius: 20px;
  padding: 4px 16px;
  font-size: 13px;
  color: #63b3ed;
  margin-bottom: 20px;
}

.question-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 24px;
  padding: 36px 28px;
  backdrop-filter: blur(20px);
}

.question-text {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.7;
  color: #e2e8f0;
  margin-bottom: 28px;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 18px 20px;
  font-size: 15px;
  color: #e2e8f0;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.5;
}

.option-btn:hover {
  background: rgba(99,179,237,0.12);
  border-color: #63b3ed;
  transform: translateX(4px);
  color: #fff;
}

.option-btn.selected {
  background: linear-gradient(135deg, rgba(79,172,254,0.2), rgba(0,242,254,0.12));
  border-color: #4facfe;
  color: #fff;
}

.option-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  min-width: 30px;
  background: rgba(99,179,237,0.18);
  border-radius: 50%;
  font-weight: 700;
  font-size: 13px;
  color: #63b3ed;
}

.btn-back-quiz {
  margin-top: 20px;
  background: none;
  border: none;
  color: #4a5568;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s;
  padding: 8px 0;
}

.btn-back-quiz:hover {
  color: #a0aec0;
}

/* ===== 결과 화면 ===== */
#result-screen {
  min-height: 100vh;
  display: none;
  padding: 80px 0 60px;
  background: linear-gradient(135deg, #0f0c29, #1a1a3e);
}

#result-screen.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.result-label {
  font-size: 17px;
  color: #a0aec0;
  margin-bottom: 16px;
  text-align: center;
}

.result-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 28px;
  padding: 40px 28px;
  backdrop-filter: blur(20px);
  margin-bottom: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.result-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(99,179,237,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.result-emoji {
  font-size: 72px;
  margin-bottom: 12px;
}

.result-type {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 4px;
  background: linear-gradient(90deg, #63b3ed, #76e4f7, #b794f4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.result-name {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}

.result-desc {
  font-size: 15px;
  color: #a0aec0;
  line-height: 1.9;
  margin-bottom: 20px;
  text-align: left;
}

.result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.result-tags span {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 13px;
  color: #cbd5e0;
}

/* 차원 막대 */
.dimension-result {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 16px;
}

.dim-row {
  margin-bottom: 16px;
}

.dim-row:last-child {
  margin-bottom: 0;
}

.dim-labels {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #718096;
  margin-bottom: 8px;
}

.dim-label-active {
  color: #63b3ed;
  font-weight: 600;
}

.dim-bar {
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,0.07);
  border-radius: 10px;
  overflow: hidden;
}

.dim-fill {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, #4facfe, #00f2fe);
  transition: width 0.8s ease;
}

/* 팁 */
.result-tips {
  background: rgba(183,148,244,0.07);
  border: 1px solid rgba(183,148,244,0.18);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 24px;
}

.result-tips h3 {
  font-size: 14px;
  color: #b794f4;
  margin-bottom: 12px;
  text-align: center;
}

.result-tips ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.result-tips li {
  font-size: 14px;
  color: #cbd5e0;
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
}

.result-tips li::before {
  content: '•';
  position: absolute;
  left: 6px;
  color: #b794f4;
}

.result-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn-share, .btn-restart {
  border: none;
  border-radius: 50px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-share {
  background: linear-gradient(135deg, #b794f4, #9f7aea);
  color: #fff;
  box-shadow: 0 4px 16px rgba(183,148,244,0.4);
}

.btn-share:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(183,148,244,0.5);
}

.btn-restart {
  background: rgba(255,255,255,0.07);
  color: #cbd5e0;
  border: 1px solid rgba(255,255,255,0.12);
}

.btn-restart:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

/* 다른 유형 보기 */
.result-all-types {
  margin-top: 20px;
}

.result-all-types h3 {
  font-size: 16px;
  font-weight: 700;
  color: #a0aec0;
  text-align: center;
  margin-bottom: 16px;
}

.all-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.mini-type-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
  font-size: 12px;
}

.mini-type-card .emoji { font-size: 24px; margin-bottom: 4px; }
.mini-type-card .code { color: #63b3ed; font-weight: 700; font-size: 11px; letter-spacing: 1px; margin-bottom: 2px; }
.mini-type-card .name { color: #718096; }

/* ===== 푸터 ===== */
.site-footer {
  background: #080812;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 60px 0 0;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-logo {
  font-size: 18px;
  font-weight: 800;
  color: #e2e8f0;
  display: block;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  color: #4a5568;
  line-height: 1.7;
}

.footer-links h4 {
  font-size: 13px;
  font-weight: 700;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links li a {
  font-size: 14px;
  color: #4a5568;
  transition: color 0.2s;
  cursor: pointer;
}

.footer-links li a:hover {
  color: #a0aec0;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 24px 0;
}

.footer-bottom p {
  font-size: 13px;
  color: #2d3748;
  margin-bottom: 6px;
}

.footer-disclaimer {
  font-size: 12px !important;
  color: #2d3748 !important;
}

/* ===== 모달 ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: #1a1a2e;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 36px;
  max-width: 560px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  animation: fadeIn 0.25s ease;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: #718096;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s;
}

.modal-close:hover { color: #e2e8f0; }

.modal-box h2 {
  font-size: 20px;
  font-weight: 800;
  color: #e2e8f0;
  margin-bottom: 16px;
}

.modal-box h3 {
  font-size: 15px;
  font-weight: 700;
  color: #a0aec0;
  margin: 20px 0 8px;
}

.modal-box p, .modal-box li {
  font-size: 14px;
  color: #718096;
  line-height: 1.8;
}

.modal-box ul {
  padding-left: 20px;
}

.modal-box li {
  margin-bottom: 6px;
}

/* ===== 반응형 ===== */
@media (max-width: 768px) {
  .title { font-size: 36px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .site-nav { gap: 12px; }
  .site-nav a { font-size: 13px; }
  .lang-switcher { margin-left: 0; }
}

@media (max-width: 600px) {
  .site-nav #nav-types,
  .site-nav #nav-about { display: none; }
}

@media (max-width: 480px) {
  .title { font-size: 30px; }
  .question-text { font-size: 17px; }
  .result-name { font-size: 22px; }
  .result-emoji { font-size: 56px; }
  .types-grid { grid-template-columns: 1fr 1fr; }
  .axis-grid { grid-template-columns: 1fr; }
  .lang-options { gap: 10px; }
  .lang-option-btn { padding: 16px 24px; min-width: 100px; }
  .lang-flag { font-size: 28px; }
  .lang-logo-text { font-size: 24px; }
  .lang-logo-img { width: 48px; height: 48px; }
}
