/* ===== Hero — KukuPDF ===== */
.hero {
  padding: var(--space-3xl) 0 var(--space-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero-mesh);
  pointer-events: none;
  animation: meshDrift 20s ease-in-out infinite alternate;
}

@keyframes meshDrift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(2%, -1%) scale(1.02); }
  100% { transform: translate(-1%, 2%) scale(0.98); }
}

/* Purple orb */
.hero::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123,47,255,0.3) 0%, transparent 70%);
  top: -100px;
  left: -100px;
  pointer-events: none;
  animation: orbFloat 20s ease-in-out infinite;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(5%, 3%) scale(1.05); }
}

.hero-content {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--fs-4xl);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: var(--space-md);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero h1 span {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-family: var(--font-ui);
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.6;
}

/* Filter Tabs */
.filter-tabs {
  position: relative;
  margin: 0 auto;
  max-width: 800px;
}

.filter-tabs-inner {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px;
  background: rgba(22, 15, 46, 0.8);
  border-radius: var(--radius-full);
  border: 1px solid rgba(123, 47, 255, 0.2);
}

.filter-tabs-inner::-webkit-scrollbar {
  display: none;
}

.filter-tab {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all var(--transition-base);
  position: relative;
}

.filter-tab:hover {
  color: var(--text-main);
  background: rgba(123, 47, 255, 0.1);
}

.filter-tab.active {
  background: rgba(57, 255, 20, 0.1);
  color: var(--accent);
  text-shadow: 0 0 12px rgba(57, 255, 20, 0.5);
  border-bottom: 2px solid var(--accent);
}

/* Fade masks */
.filter-tabs::before,
.filter-tabs::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  z-index: 2;
  pointer-events: none;
}

.filter-tabs::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-base), transparent);
  opacity: 0;
}

.filter-tabs::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg-base), transparent);
  opacity: 0;
}

.filter-tabs.scroll-left::before { opacity: 1; }
.filter-tabs.scroll-right::after { opacity: 1; }

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: var(--fs-base);
  }
  .hero {
    padding: var(--space-2xl) 0 var(--space-xl);
  }
}
