/* 기본 변수 및 리셋 */
:root {
  --bg-color: #0d0e12;
  --card-bg: rgba(255, 255, 255, 0.03);
  --border-color: rgba(255, 255, 255, 0.08);
  --primary: #5865f2; /* Discord 시그니처 블루 */
  --primary-hover: #4752c4;
  --accent: #00f2fe;
  --live-color: #23a55a; /* 운영중 초록색 */
  --text-main: #f6f6f7;
  --text-sub: #949ba4;
  --font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

/* 배경 빛 효과 */
.bg-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  opacity: 0.2;
}

.bg-glow-1 {
  top: -100px;
  left: -100px;
  background: var(--primary);
}

.bg-glow-2 {
  top: 400px;
  right: -100px;
  background: var(--accent);
}

/* 네비게이션 바 */
header {
  position: fixed;
  top: 0;
  width: 100%;
  backdrop-filter: blur(12px);
  background: rgba(13, 14, 18, 0.7);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
}

.logo {
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  color: var(--primary);
}

.highlight {
  color: var(--primary);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-sub);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--text-main);
}

/* 버튼 스타일 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(88, 101, 242, 0.3);
}

.btn-secondary {
  background-color: var(--card-bg);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 0.9rem 1.8rem;
  font-size: 1rem;
}

/* HYPER Works 브랜딩 히어로 섹션 */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 170px 2rem 80px;
  text-align: center;
}

.badge {
  background: rgba(88, 101, 242, 0.15);
  color: #8ea1ff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(88, 101, 242, 0.3);
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin: 1.5rem 0 1rem;
  line-height: 1.25;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--text-sub);
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto;
}

/* 제품 라인업 섹션 */
.products {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 2rem 100px;
}

.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-title p {
  color: var(--text-sub);
}

/* 메인 제품 카드 (HYPER Canvas) */
.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  transition: transform 0.3s, border-color 0.3s;
}

.featured-product:hover {
  border-color: rgba(88, 101, 242, 0.4);
}

.product-status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.5rem;
}

.status-badge {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-live {
  background: rgba(35, 165, 90, 0.15);
  color: var(--live-color);
  border: 1px solid rgba(35, 165, 90, 0.3);
}

.status-upcoming {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-sub);
  border: 1px solid var(--border-color);
}

.product-tag {
  color: var(--text-sub);
  font-size: 0.85rem;
}

.product-body {
  margin-bottom: 2rem;
}

.product-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.product-logo i {
  font-size: 1.8rem;
  color: var(--accent);
}

.product-logo h3 {
  font-size: 1.8rem;
  font-weight: 800;
}

.product-desc {
  color: var(--text-sub);
  margin-bottom: 1.5rem;
  max-width: 800px;
}

.product-features {
  list-style: none;
  margin-bottom: 2rem;
}

.product-features li {
  color: var(--text-main);
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-features li i {
  color: var(--live-color);
  font-size: 0.85rem;
}

/* 단독 통계 그리드 박스 */
.bot-stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.bot-stat-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 1.2rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-label {
  color: var(--text-sub);
  font-size: 0.85rem;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
}

.highlight-green {
  color: var(--live-color);
}

/* 준비 중 카드 */
.coming-soon-card {
  opacity: 0.7;
  padding: 2rem 2.5rem;
}

.coming-soon-body h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.coming-soon-body p {
  color: var(--text-sub);
  font-size: 0.95rem;
}

/* 커뮤니티 지원 섹션 */
.support-section {
  max-width: 1100px;
  margin: 0 auto 100px;
  padding: 3.5rem 2rem;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.1) 0%, rgba(0, 242, 254, 0.1) 100%);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  text-align: center;
}

.support-content h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.support-content p {
  color: var(--text-sub);
  margin-bottom: 1.8rem;
}

.support-buttons {
  display: flex;
  justify-content: center;
}

/* 법적 문서 / 초대 동의 모달 */
body.modal-open {
  overflow: hidden;
}

.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
}

.legal-modal.open {
  display: block;
}

.legal-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
}

.legal-modal-panel {
  position: relative;
  width: min(760px, calc(100% - 28px));
  max-height: min(820px, calc(100vh - 40px));
  overflow: auto;
  margin: 20px auto;
  top: 50%;
  transform: translateY(-50%);
  background: #12141a;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.55);
  padding: 2rem;
}

.legal-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  border: 0;
  background: transparent;
  color: var(--text-sub);
  font-size: 2rem;
  cursor: pointer;
}

.legal-modal-badge {
  display: inline-block;
  color: #8ea1ff;
  background: rgba(88,101,242,0.14);
  border: 1px solid rgba(88,101,242,0.25);
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.legal-modal-panel h2 {
  font-size: 1.8rem;
  margin: 0.8rem 0 0.4rem;
}

.legal-intro {
  color: var(--text-sub);
  margin-bottom: 1.2rem;
}

.consent-summary {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
  border: 1px solid var(--border-color);
  background: rgba(255,255,255,0.025);
  border-radius: 14px;
}

.consent-summary div {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-main);
  font-size: 0.92rem;
}

.consent-summary i {
  color: var(--accent);
  margin-top: 4px;
}

.consent-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.text-link {
  border: 0;
  padding: 0;
  background: none;
  color: #8ea1ff;
  cursor: pointer;
  text-decoration: underline;
  font: inherit;
}

.text-link:hover {
  color: #a8b8ff;
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  margin-bottom: 1rem;
}

.consent-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  margin-top: 2px;
  flex: 0 0 auto;
}

.consent-confirm {
  width: 100%;
  justify-content: center;
}

.consent-confirm:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.hidden {
  display: none !important;
}

.back-to-consent {
  border: 0;
  background: none;
  color: #8ea1ff;
  cursor: pointer;
  font: inherit;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.legal-document-body {
  color: #e7e9ee;
  line-height: 1.75;
}

.legal-document-body h3 {
  color: #fff;
  font-size: 1rem;
  margin: 1.3rem 0 0.45rem;
}

.legal-document-body p {
  color: #c4c8d0;
  font-size: 0.9rem;
}

.legal-document-body a {
  color: #8ea1ff;
}

/* 푸터 */
footer {
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 2rem;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-sub);
  font-size: 0.9rem;
}

.footer-logo {
  font-weight: 700;
  color: var(--text-main);
}

/* 반응형 모바일 */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hero h1 {
    font-size: 2.1rem;
  }
  .bot-stats-container {
    grid-template-columns: 1fr;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
  .legal-modal-panel {
    padding: 1.4rem;
    width: calc(100% - 20px);
    max-height: calc(100vh - 20px);
    margin: 10px auto;
  }
}