/* ========== 공통 스타일 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #0a0a1a;
  color: #e0e0e0;
  line-height: 1.6;
}

a { color: #6c8cff; text-decoration: none; }
a:hover { color: #8eaaff; }

/* ========== 네비게이션 ========== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
  background: rgba(10, 10, 26, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
}

.navbar .logo {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 2px;
}

.navbar .logo span { color: #6c8cff; }

.navbar .nav-links { display: flex; gap: 24px; align-items: center; }

.navbar .nav-links a {
  color: #aaa;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.navbar .nav-links a:hover { color: #fff; }

.btn {
  padding: 10px 24px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, #4a6cf7, #6c8cff);
  color: #fff;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(74, 108, 247, 0.4); }

.btn-outline {
  background: transparent;
  color: #6c8cff;
  border: 1px solid rgba(108, 140, 255, 0.3);
}
.btn-outline:hover { background: rgba(108, 140, 255, 0.1); }

/* ========== 히어로 섹션 ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 40px 80px;
  background: radial-gradient(ellipse at 50% 30%, rgba(74, 108, 247, 0.12) 0%, transparent 60%);
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero h1 span { color: #6c8cff; }

.hero p {
  font-size: 18px;
  color: #888;
  max-width: 600px;
  margin: 0 auto 40px;
}

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

/* ========== 기능 소개 ========== */
.features {
  padding: 100px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.features h2 {
  text-align: center;
  font-size: 36px;
  color: #fff;
  margin-bottom: 60px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 36px;
  transition: all 0.3s;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-4px);
}

.feature-card .icon { font-size: 36px; margin-bottom: 16px; }
.feature-card h3 { font-size: 18px; color: #fff; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: #888; }

/* ========== 가격 섹션 ========== */
.pricing {
  padding: 100px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.pricing h2 {
  text-align: center;
  font-size: 36px;
  color: #fff;
  margin-bottom: 60px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 30px;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  transition: all 0.3s;
  position: relative;
}

.pricing-card.popular {
  border-color: rgba(74, 108, 247, 0.5);
  background: rgba(74, 108, 247, 0.05);
}

.pricing-card.popular::before {
  content: '인기';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #4a6cf7, #6c8cff);
  color: #fff;
  padding: 4px 16px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

.pricing-card h3 { font-size: 20px; color: #fff; margin-bottom: 8px; }
.pricing-card .price { font-size: 40px; font-weight: 800; color: #fff; margin: 20px 0; }
.pricing-card .price span { font-size: 16px; color: #888; font-weight: 400; }
.pricing-card .period { font-size: 14px; color: #888; margin-bottom: 30px; }
.pricing-card ul { list-style: none; margin-bottom: 30px; text-align: left; }
.pricing-card ul li { padding: 8px 0; font-size: 14px; color: #aaa; }
.pricing-card ul li::before { content: '✓'; color: #6c8cff; margin-right: 8px; font-weight: 700; }

/* ========== 푸터 ========== */
.footer {
  padding: 40px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #555;
  font-size: 13px;
}

/* ========== 폼 스타일 (로그인/회원가입) ========== */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: radial-gradient(ellipse at 50% 30%, rgba(74, 108, 247, 0.08) 0%, transparent 60%);
}

.auth-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 48px;
  width: 100%;
  max-width: 420px;
}

.auth-card h2 { color: #fff; font-size: 24px; margin-bottom: 8px; }
.auth-card .subtitle { color: #888; font-size: 14px; margin-bottom: 32px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; color: #aaa; font-size: 13px; margin-bottom: 6px; font-weight: 500; }

.form-group input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus { border-color: #6c8cff; }

.form-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #4a6cf7, #6c8cff);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
}
.form-btn:hover { box-shadow: 0 4px 20px rgba(74, 108, 247, 0.4); }
.form-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.auth-footer { text-align: center; margin-top: 24px; font-size: 13px; color: #888; }

/* ========== 대시보드 ========== */
.dashboard {
  padding: 100px 40px 40px;
  max-width: 900px;
  margin: 0 auto;
}

.dash-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
}

.dash-card h3 { color: #fff; font-size: 18px; margin-bottom: 16px; }

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}
.status-active { background: rgba(72, 199, 142, 0.15); color: #48c78e; }
.status-expired { background: rgba(255, 82, 82, 0.15); color: #ff5252; }
.status-none { background: rgba(255, 255, 255, 0.08); color: #888; }

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 14px;
}
.info-row .label { color: #888; }
.info-row .value { color: #fff; font-weight: 500; }

.server-credentials {
  background: rgba(74, 108, 247, 0.08);
  border: 1px solid rgba(74, 108, 247, 0.2);
  border-radius: 12px;
  padding: 20px;
  margin-top: 16px;
}
.server-credentials code {
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  color: #6c8cff;
}

/* ========== 사용자 드롭다운 ========== */
.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(20, 20, 40, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px 0;
  min-width: 180px;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 200;
}

.dropdown.show { display: block; }

.dropdown a {
  display: block;
  padding: 10px 20px;
  color: #ccc;
  font-size: 13px;
  transition: background 0.2s;
}

.dropdown a:hover {
  background: rgba(108, 140, 255, 0.1);
  color: #fff;
}

.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 4px 0;
}

@media (max-width: 768px) {
  .features-grid, .pricing-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .navbar { padding: 12px 20px; }
  .hero-buttons { flex-direction: column; align-items: center; }
}
