.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;

  position: relative;
  padding: 120px 24px;

  /* MODIFICAT: Ara utilitza el color dinàmic de text */
  color: var(--text);
  transition: color 0.3s ease;
}

/* Glow background */
.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;

  transform: translate(-50%, -50%);

  background: radial-gradient(circle,
    rgba(168, 85, 247, 0.35),
    transparent 60%
  );

  filter: blur(60px);
  z-index: -1;
  
  /* MODIFICAT: S'adapta a l'opacitat correcta segons el tema fosc o clar */
  opacity: var(--glow-opacity);
  transition: opacity 0.3s ease;
}

.hero-container {
  max-width: 1200px;
  margin: auto;

  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
}

/* TAG */
.tag {
  display: inline-block;
  font-size: 12px;
  /* MODIFICAT: Fa servir la variable de text secundari */
  color: var(--muted);
  margin-bottom: 12px;
}

/* TITLE */
.hero h1 {
  font-size: 56px;
  line-height: 1.1;
  margin-bottom: 20px;
  /* MODIFICAT: Força l'ús del text principal */
  color: var(--text);
}

/* SUBTITLE */
.subtitle {
  font-size: 16px;
  /* MODIFICAT: Fa servir la variable de text secundari */
  color: var(--muted);
  max-width: 500px;
  margin-bottom: 30px;
}

/* BUTTONS */
.hero-buttons {
  display: flex;
  gap: 14px;
  margin-bottom: 40px;
}

.btn-primary {
  /* MODIFICAT: Fa servir els liles variables del sistema */
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  padding: 12px 18px;
  border-radius: 12px;
  color: white; /* El botó primari manté el text blanc en ambdós modes */
  text-decoration: none;
}

.btn-secondary {
  /* MODIFICAT: La vora canvia segons la variable border del tema */
  border: 1px solid var(--border);
  padding: 12px 18px;
  border-radius: 12px;
  /* MODIFICAT: El text s'adapta al tema general */
  color: var(--text);
  text-decoration: none;
  background: transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
}

/* STATS */
.hero-stats {
  display: flex;
  gap: 30px;
  margin-top: 20px;
}

.hero-stats div {
  display: flex;
  flex-direction: column;
}

.hero-stats strong {
  font-size: 16px;
  /* MODIFICAT: Força l'ús del text principal */
  color: var(--text);
}

.hero-stats span {
  font-size: 12px;
  /* MODIFICAT: Fa servir la variable de text secundari */
  color: var(--muted);
}

/* IMAGE */
.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-card {
  width: 320px;
  height: 420px;

  border-radius: 24px;
  overflow: hidden;

  /* MODIFICAT: El fons i la vora ara canvien de fosques a clares de forma automàtica */
  background: var(--card);
  border: 1px solid var(--border);

  backdrop-filter: blur(10px);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-stats {
    justify-content: center;
  }
}
