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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans KR', sans-serif;
  background:
    linear-gradient(180deg, rgba(9, 13, 22, 0.42), rgba(9, 13, 22, 0.72)),
    url('assets/teddy-snow-bg.png') center center / cover fixed;
  min-height: 100vh;
  padding: 40px 20px;
  color: #333;
}

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

.header {
  text-align: center;
  margin-bottom: 50px;
  color: white;
}

.logo {
  display: inline-block;
  margin-bottom: 8px;
}

.logo-badge {
  position: relative;
  display: inline-block;
  background: rgba(255, 255, 255, 0.94);
  padding: 22px 44px;
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.32);
}

/* 배지 뒤로 은은하게 번지는 컬러 글로우 */
.logo-badge::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 24px;
  background: linear-gradient(120deg, #667eea, #764ba2, #5b8def, #667eea);
  background-size: 300% 100%;
  filter: blur(16px);
  opacity: 0.55;
  z-index: -1;
  animation: brandShift 6s ease-in-out infinite;
}

.brand {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1;
  background: linear-gradient(110deg, #667eea, #764ba2, #5b8def, #667eea);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: brandShift 6s ease-in-out infinite;
}

.brand .tld {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0;
}

/* 배지 주위를 도는 작은 행성 */
.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 132%;
  height: 220%;
  transform: translate(-50%, -50%);
  animation: orbit 9s linear infinite;
  pointer-events: none;
}

.orbit-dot {
  position: absolute;
  top: 0;
  left: 50%;
  width: 13px;
  height: 13px;
  margin-left: -6.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #ffffff, #7bd0ff 55%, #4a90e2);
  box-shadow: 0 0 14px #7bd0ff, 0 0 4px #ffffff;
}

.tagline {
  margin-top: 22px;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

@keyframes brandShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes orbit {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-badge::before,
  .brand,
  .orbit {
    animation: none;
  }
}

.header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.header p {
  font-size: 1.1rem;
  opacity: 0.9;
}

.demo-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
}

.filter-btn {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 9px 18px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.filter-btn.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(110deg, #667eea, #764ba2);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.45);
}

.demos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 25px;
}

.demo-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.demo-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.28);
}

.demo-card h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #667eea;
}

.demo-card p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
}

.demo-card .path {
  font-size: 0.9rem;
  color: #999;
  font-family: 'Courier New', monospace;
  background: #f5f5f5;
  padding: 5px 10px;
  border-radius: 5px;
  display: inline-block;
}

.card-actions {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.install-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(110deg, #667eea, #764ba2);
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.install-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(102, 126, 234, 0.55);
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.archive-link {
  display: block;
  width: fit-content;
  color: white;
  text-decoration: none;
  opacity: 0.9;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.12);
}

.archive-link:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.18);
}

@media (max-width: 768px) {
  .header h1 {
    font-size: 2rem;
  }

  .demos-grid {
    grid-template-columns: 1fr;
  }
}
