.hero {
  padding: 48px 32px;
  margin-top: 8px;
  margin-bottom: 32px;
  text-align: center;
}

.hero-rain {
  position: relative;
  overflow: hidden;
  background-color: #141417;
  border-color: #26262c;
}

.hero-rain-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero-rain .hero-title {
  color: #fff;
}

.hero-rain .hero-subtitle {
  color: rgba(255, 255, 255, 0.72);
}

html[data-theme="light"] .hero-rain {
  background-color: #ffffff;
  border-color: var(--border);
}

html[data-theme="light"] .hero-rain .hero-title {
  color: var(--text);
}

html[data-theme="light"] .hero-rain .hero-subtitle {
  color: var(--text-muted);
}

.hero-title {
  max-width: 640px;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.hero-subtitle {
  max-width: 560px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.home-section {
  margin-bottom: 32px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-link {
  flex-shrink: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

.section-link:hover {
  color: var(--accent-hover);
}

.popular-card {
  position: relative;
}

.popular-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .hero {
    padding: 32px 20px;
    margin-bottom: 24px;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .home-section {
    margin-bottom: 24px;
  }

  .section-title {
    font-size: 1.1rem;
  }
}
