:root {
  --primary: #8b5cf6;
  --primary-light: #ddd6fe;
  --secondary: #fde047;
  --text-main: #2e1065;
  --text-body: #4b5563;
  --text-muted: #9ca3af;
  --bg-body: #ffffff;
  --bg-alt: #faf8ff;
  --radius: 12px;
  --shadow-hover: 0 10px 25px -5px rgba(139, 92, 246, 0.25);
  --transition: all 0.3s ease;
}

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

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

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-size: 1.5rem;
  color: var(--text-main);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 20px;
  background: var(--primary);
  border-radius: 3px;
}

/* Header */
header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid var(--primary-light);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary);
}
.logo img {
  height: 32px;
  width: auto;
}
.nav-links {
  display: none;
}
.nav-links a {
  margin: 0 15px;
  color: var(--text-body);
  font-weight: 500;
  position: relative;
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -22px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
}

/* Banner */
.banner {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 100%);
  padding: 60px 20px;
  border-radius: 0 0 24px 24px;
  position: relative;
  overflow: hidden;
}
.banner-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
}
.banner h1 {
  font-size: 2rem;
  color: var(--text-main);
  margin-bottom: 16px;
  line-height: 1.3;
}
.banner p {
  font-size: 1rem;
  color: var(--text-main);
  opacity: 0.8;
  margin-bottom: 24px;
  max-width: 600px;
}
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: bold;
  transition: var(--transition);
  cursor: pointer;
  text-align: center;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}
.btn-primary:hover {
  background: #7c3aed;
  transform: translateY(-2px);
}
.btn-outline {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--bg-alt);
}

/* Grids */
.grid {
  display: grid;
  gap: 20px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
.grid-6 { grid-template-columns: repeat(2, 1fr); }

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--primary-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.card-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  background: var(--bg-alt);
}
.card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-title {
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 8px;
  font-weight: 600;
}
.card-desc {
  font-size: 0.85rem;
  color: var(--text-body);
  margin-bottom: 12px;
  flex: 1;
}
.tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: bold;
}

/* Sections */
section {
  padding: 40px 0;
}
.section-alt {
  background-color: var(--bg-alt);
}

/* Radar Section */
.radar-layout {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.radar-left, .radar-right {
  flex: 1;
}
.meter {
  margin-bottom: 16px;
}
.meter-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 6px;
}
.meter-bar {
  height: 10px;
  background: var(--primary-light);
  border-radius: 5px;
  overflow: hidden;
}
.meter-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 5px;
  transition: width 1s ease-in-out;
}
.rank-list li {
  display: flex;
  align-items: center;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--primary-light);
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--text-main);
  transition: var(--transition);
}
.rank-list li:hover {
  border-color: var(--primary);
  transform: translateX(4px);
}
.rank-num {
  font-weight: bold;
  color: var(--primary);
  margin-right: 12px;
  font-size: 1.1rem;
}

/* Comments */
.comments-grid {
  display: grid;
  gap: 16px;
}
.comment-card {
  background: #fff;
  border: 1px dashed var(--primary);
  border-radius: var(--radius);
  padding: 16px;
  transition: var(--transition);
}
.comment-card:hover {
  box-shadow: var(--shadow-hover);
}
.comment-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: bold;
}
.comment-text {
  font-size: 0.9rem;
  color: var(--text-body);
  margin-bottom: 10px;
}
.like-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--primary);
  cursor: pointer;
  width: fit-content;
}
.like-btn::before {
  content: '👍';
  font-size: 0.9rem;
}

/* Screenshots */
.screenshot-wall {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}
.screenshot-wall::-webkit-scrollbar {
  height: 6px;
}
.screenshot-wall::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}
.screenshot-item {
  flex: 0 0 240px;
  scroll-snap-align: start;
  border-radius: var(--radius);
  border: 1px solid var(--primary-light);
  overflow: hidden;
}
.screenshot-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* Footer */
footer {
  background: #fff;
  border-top: 1px solid var(--primary-light);
  padding: 30px 20px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 40px;
}
footer p { margin-bottom: 8px; }
footer a { color: var(--text-muted); }
footer a:hover { color: var(--primary); }

/* Floating Button */
.float-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--primary);
  color: var(--secondary);
  padding: 14px 22px;
  border-radius: 30px;
  font-weight: bold;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
  z-index: 99;
  animation: breathe 2s infinite alternate;
}
@keyframes breathe {
  0% { box-shadow: 0 0 10px rgba(139, 92, 246, 0.3); }
  100% { box-shadow: 0 0 25px rgba(253, 224, 71, 0.6); }
}

/* Word Cloud */
.word-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 24px;
}
.word-cloud span {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: default;
}
.word-cloud span:nth-child(odd) {
  background: var(--primary-light);
  color: var(--primary);
}
.word-cloud span:nth-child(even) {
  background: var(--secondary);
  color: var(--text-main);
}

/* Responsive */
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .radar-layout { flex-direction: row; }
  .banner h1 { font-size: 2.8rem; }
  .nav-links { display: flex; }
  .comments-grid { grid-template-columns: repeat(2, 1fr); }
  .section-title { font-size: 1.8rem; }
}

@media (min-width: 1024px) {
  .grid-6 { grid-template-columns: repeat(6, 1fr); }
  .comments-grid { grid-template-columns: repeat(3, 1fr); }
  section { padding: 60px 0; }
  .banner { padding: 80px 20px; }
}