/* ===== 기본 변수 ===== */
:root {
  --bg-primary: #0a0a0f;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --text-muted: rgba(255, 255, 255, 0.5);
  --purple: #a855f7;
  --pink: #ec4899;
  --cyan: #06b6d4;
  --emerald: #10b981;
  --card-bg: rgba(255, 255, 255, 0.05);
  --border-color: rgba(255, 255, 255, 0.1);
}

/* ===== 리셋 ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* ===== 네비게이션 ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: none;
  gap: 40px;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: white;
}

.nav-btn {
  background: white;
  color: black;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.9);
}

/* ===== Hero 섹션 ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.3;
}

.hero-glow-1 {
  top: 25%;
  left: 25%;
  width: 400px;
  height: 400px;
  background: var(--purple);
  animation: pulse 4s ease-in-out infinite;
}

.hero-glow-2 {
  bottom: 25%;
  right: 25%;
  width: 400px;
  height: 400px;
  background: var(--cyan);
  animation: pulse 4s ease-in-out infinite 1s;
}

.hero-glow-3 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: var(--emerald);
  opacity: 0.1;
}

@keyframes pulse {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 24px;
  max-width: 800px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--emerald);
  border-radius: 50%;
  animation: blink 2s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-title span {
  display: block;
}

.gradient-text {
  background: linear-gradient(135deg, var(--purple), var(--pink), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

/* ===== 버튼 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: white;
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-white {
  background: white;
  color: black;
}

.btn-white:hover {
  background: rgba(255, 255, 255, 0.9);
}

/* ===== 스크롤 인디케이터 ===== */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-dot {
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 2px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
  60% { transform: translateY(-3px); }
}

/* ===== 섹션 공통 ===== */
.section {
  padding: 96px 24px;
}

.section-alt {
  background: linear-gradient(to bottom, transparent, rgba(168, 85, 247, 0.05), transparent);
}

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

.container-narrow {
  max-width: 800px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--purple);
  margin-bottom: 12px;
  display: block;
}

.section-label.cyan { color: var(--cyan); }
.section-label.green { color: var(--emerald); }

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
}

/* ===== 게임 카드 ===== */
.game-card {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .game-card { grid-template-columns: 1fr 1fr; }
}

.game-image {
  position: relative;
  aspect-ratio: 1;
}

@media (min-width: 768px) {
  .game-image { aspect-ratio: auto; min-height: 500px; }
}

.game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-primary), transparent 50%);
}

@media (min-width: 768px) {
  .game-overlay { background: linear-gradient(to right, var(--bg-primary), transparent 50%); }
}

.game-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #f59e0b;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
}

@media (min-width: 768px) {
  .game-badge.mobile-only { display: none; }
}

.desktop-only { display: none; }

@media (min-width: 768px) {
  .desktop-only { display: inline-flex; }
}

.game-content {
  padding: 32px;
}

@media (min-width: 768px) {
  .game-content { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
}

.game-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  margin-bottom: 16px;
}

.game-desc {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
  line-height: 1.7;
}

.game-feature-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 24px;
  line-height: 1.7;
}

.game-feature-desc strong {
  color: #c4b5fd;
}

.game-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.feature-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px;
  border-radius: 12px;
}

.feature-icon {
  font-size: 24px;
  margin-bottom: 8px;
  display: block;
}

.feature-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  display: block;
}

.feature-item .feature-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.game-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.game-buttons .btn { flex: 1; min-width: 140px; }

/* ===== 팀 조직도 ===== */
.team-org {
  max-width: 600px;
  margin: 0 auto;
}

.org-header {
  text-align: center;
  margin-bottom: 48px;
}

.org-header span {
  display: inline-block;
  padding: 16px 32px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.2));
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 16px;
  font-size: 20px;
  font-weight: 700;
}

.org-core {
  display: flex;
  justify-content: center;
  gap: 64px;
  margin-bottom: 32px;
}

.team-member { text-align: center; }

.member-avatar {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 12px;
}

.member-role {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 4px;
}

.member-name { font-weight: 600; }

.org-divider {
  width: 2px;
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 auto 16px;
}

.org-external-label {
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 24px;
}

.org-external {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .org-external { grid-template-columns: repeat(4, 1fr); }
}

.external-member {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px;
  border-radius: 12px;
  text-align: center;
}

.external-company {
  display: block;
  font-size: 12px;
  color: var(--cyan);
  margin-bottom: 8px;
}

.external-name { font-weight: 500; }

/* ===== 타임라인 ===== */
.timeline {
  position: relative;
  padding-left: 32px;
}

@media (min-width: 768px) {
  .timeline { padding-left: 0; }
}

.timeline-line {
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--purple), var(--cyan), var(--emerald));
}

@media (min-width: 768px) {
  .timeline-line { left: 50%; transform: translateX(-50%); }
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .timeline-item { width: 50%; padding: 0 32px; }
  .timeline-item.left { margin-left: 0; text-align: right; }
  .timeline-item.right { margin-left: 50%; text-align: left; }
}

.timeline-dot {
  position: absolute;
  left: -26px;
  top: 4px;
  width: 16px;
  height: 16px;
  background: var(--bg-primary);
  border: 2px solid var(--purple);
  border-radius: 50%;
}

@media (min-width: 768px) {
  .timeline-item.left .timeline-dot { left: auto; right: -10px; }
  .timeline-item.right .timeline-dot { left: -10px; }
}

.timeline-content {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 12px;
}

.timeline-year {
  font-size: 14px;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 4px;
}

.timeline-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

/* ===== Contact ===== */
.contact-card {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(236, 72, 153, 0.3));
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 48px 32px;
  border-radius: 20px;
  text-align: center;
}

.contact-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  margin-bottom: 16px;
}

.contact-desc {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 32px;
}

.contact-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== 푸터 ===== */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 48px 24px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .footer-content { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}

.footer-logo {
  height: 32px;
  width: auto;
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  max-width: 300px;
}

.footer-info {
  text-align: left;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

@media (min-width: 768px) {
  .footer-info { text-align: right; }
}

.footer-info p { margin-bottom: 4px; }

.footer-email { color: var(--cyan); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

.footer-bottom p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.6);
}
