:root {
  --font-main: 'Pretendard', 'Inter', system-ui, -apple-system, sans-serif;
  --bg-color: #f8fafc;
  --text-main: #1e293b;
  --text-dim: #64748b;
  
  /* MBTI 그룹 색상 (라이트 모드에 최적화) */
  --analyst-color: #7c3aed;
  --diplomat-color: #059669;
  --sentinel-color: #2563eb;
  --explorer-color: #d97706;
  
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 0, 0, 0.05);
  --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  --glow-shadow: 0 0 15px rgba(0, 0, 0, 0.03);
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* 부드러운 배경 텍스처 */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.3;
  pointer-events: none;
  z-index: -1;
}

header {
  padding: 5rem 2rem 3rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

header h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1rem;
  letter-spacing: -0.04em;
}

header p {
  color: var(--text-dim);
  font-size: 1.2rem;
  font-weight: 500;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 5rem;
}

.mbti-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}

/* 카드 및 상세 모달 애니메이션 */
mbti-card {
  display: block;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

mbti-card:hover {
  transform: translateY(-8px);
}

#detail-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#detail-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

mbti-detail {
  width: 90%;
  max-width: 650px;
  max-height: 85vh;
  overflow-y: auto;
  background: white;
  border-radius: 2.5rem;
  padding: 3.5rem;
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.15);
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.close-btn {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: #f1f5f9;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.close-btn:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

/* 제휴 문의 섹션 스타일 */
.partnership-section {
  margin-top: 6rem;
  padding: 4rem;
  background: white;
  border-radius: 2.5rem;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.section-header p {
  color: var(--text-dim);
  font-size: 1.1rem;
}

.partnership-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  margin-left: 0.5rem;
}

.form-group input, 
.form-group textarea {
  padding: 1rem 1.2rem;
  border-radius: 1rem;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.2s;
}

.form-group input:focus, 
.form-group textarea:focus {
  outline: none;
  border-color: var(--sentinel-color);
  background: white;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.submit-btn {
  margin-top: 1rem;
  padding: 1.2rem;
  border-radius: 1rem;
  border: none;
  background: var(--text-main);
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.submit-btn:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.2);
}

@media (max-width: 640px) {
  .partnership-section {
    padding: 2.5rem 1.5rem;
    margin-top: 4rem;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
  }
}
